2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="lib/saslint.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 enable_option_checking=no
613 ac_subst_vars='subdirs
624 SASL_UTIL_HEADERS_EXTRA
661 NO_SASL_DB_MANS_FALSE
665 SASL_DB_BACKEND_STATIC
724 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
794 enable_dependency_tracking
848 enable_macos_framework
852 ac_precious_vars='build_alias
861 ac_subdirs_all='saslauthd'
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 htmldir=$ac_optarg ;;
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1051 -libdir | --libdir | --libdi | --libd)
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1142 -psdir | --psdir | --psdi | --psd | --ps)
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 sbindir=$ac_optarg ;;
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 sharedstatedir=$ac_optarg ;;
1168 -site | --site | --sit)
1170 -site=* | --site=* | --sit=*)
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1210 eval with_$ac_useropt=\$ac_optarg ;;
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=no ;;
1229 # Obsolete; use --with-x.
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1297 # Be sure to have absolute directory names.
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used" >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures this package to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 --target=TARGET configure for building compilers for TARGET [HOST]
1472 if test -n "$ac_init_help"; then
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-cmulocal enable local mods for CMU [[no]]
1481 --enable-sample compile sample code [[yes]]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-staticdlopen try dynamic plugins when we are a static libsasl [no]
1490 --enable-java compile Java support [no]
1491 --enable-keep-db-open keep handle to Berkeley DB open for improved performance [no]
1492 --enable-alwaystrue enable the alwaystrue password verifier (discouraged)
1493 --enable-checkapop enable use of sasl_checkapop [yes]
1494 --enable-cram enable CRAM-MD5 authentication [yes]
1495 --enable-digest enable DIGEST-MD5 authentication [yes]
1496 --enable-otp enable OTP authentication [yes]
1497 --enable-srp enable SRP authentication [no]
1498 --enable-srp-setpass enable setting SRP secrets with saslpasswd [no]
1499 --enable-krb4 enable KERBEROS_V4 authentication [no]
1500 --enable-gssapi=<DIR> enable GSSAPI authentication [yes]
1501 --enable-gss_mutexes use mutexes around calls to the GSS library
1502 --enable-plain enable PLAIN authentication yes
1503 --enable-anon enable ANONYMOUS authentication [yes]
1504 --enable-login enable unsupported LOGIN authentication [no]
1505 --enable-ntlm enable unsupported NTLM authentication [no]
1506 --enable-passdss enable PASSDSS authentication (experimental) [no]
1507 --enable-sql enable SQL auxprop [no]
1508 --enable-ldapdb enable LDAPDB plugin no
1509 --disable-macos-framework disable building and installing replacement SASL2 Framework for MacOS X-provided SASL Framework [no]
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-purecov link with purecov
1519 --with-purify link with purify
1520 --with-javabase=PATH set path to find jni.h in /usr/java/include
1521 --with-dbpath=PATH set the DB path to use /etc/sasldb2
1522 --with-dblib=DBLIB set the DB library to use berkeley
1523 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR
1524 --with-bdb-incdir=DIR Berkeley DB include files are in DIR
1525 --with-gdbm=PATH use gdbm from PATH
1526 --with-devrandom=PATH set the path to /dev/random [/dev/random]
1527 --with-pam=DIR use PAM (rooted in DIR) [yes]
1528 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR
1529 --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [yes]
1530 --with-pwcheck=DIR enable deprecated pwcheck daemon using statedir DIR
1531 --with-ipctype={unix,doors} use ipctype [unix]
1532 --with-lib-subdir=DIR Find libraries in DIR instead of lib
1533 --with-openssl=PATH use OpenSSL from PATH
1534 --with-des=DIR with DES (look in DIR) yes
1535 --with-opie=PATH use OPIE (One Time Passwords in Everything) from PATH
1536 --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1537 choose specific GSSAPI implementation [[auto]]
1538 --with-ldap=DIR use LDAP (in DIR) for saslauthd no
1539 --with-mysql=PATH use MySQL from PATH
1540 --with-pgsql=PATH use PostgreSQL from PATH
1541 --with-sqlite=PATH use SQLite from PATH
1542 --with-plugindir=DIR set the directory where plugins will
1543 be found [/usr/lib/sasl2]
1544 --with-configdir=DIR set the directory where config files will
1545 be found /usr/lib/sasl2
1546 --with-rc4 use internal rc4 routines [yes]
1547 --with-dmalloc=DIR with DMALLOC support (for test applications) [no]
1548 --with-sfio=DIR with SFIO support (for smtptest/libsfsasl) [no]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to the package provider.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1627 generated by GNU Autoconf 2.68
1629 Copyright (C) 2010 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_compile
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_link
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_header_compile
1792 # ac_fn_c_try_run LINENO
1793 # ----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1795 # that executables *can* be run.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>&5
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1810 { { case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_try") 2>&5
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; }; }; then :
1822 $as_echo "$as_me: program exited with status $ac_status" >&5
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=$ac_status
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1834 # ac_fn_c_check_func LINENO FUNC VAR
1835 # ----------------------------------
1836 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1837 ac_fn_c_check_func ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1847 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1849 #define $2 innocuous_$2
1851 /* System header to define __stub macros and hopefully few prototypes,
1852 which can conflict with char $2 (); below.
1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1854 <limits.h> exists even on freestanding compilers. */
1857 # include <limits.h>
1859 # include <assert.h>
1864 /* Override any GCC internal prototype to avoid an error.
1865 Use char because int might match the return type of a GCC
1866 builtin and then its argument prototype would still apply. */
1871 /* The GNU C library defines this for functions which it implements
1872 to always fail with ENOSYS. Some functions are actually named
1873 something starting with __ and the normal name is an alias. */
1874 #if defined __stub_$2 || defined __stub___$2
1886 if ac_fn_c_try_link "$LINENO"; then :
1891 rm -f core conftest.err conftest.$ac_objext \
1892 conftest$ac_exeext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_func
1901 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1904 # the include files in INCLUDES and setting the cache variable VAR
1906 ac_fn_c_check_header_mongrel ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if eval \${$3+:} false; then :
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1919 # Is the header compilable?
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1921 $as_echo_n "checking $2 usability... " >&6; }
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_header_compiler=yes
1930 ac_header_compiler=no
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1934 $as_echo "$ac_header_compiler" >&6; }
1936 # Is the header present?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1938 $as_echo_n "checking $2 presence... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 ac_header_preproc=yes
1946 ac_header_preproc=no
1948 rm -f conftest.err conftest.i conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1950 $as_echo "$ac_header_preproc" >&6; }
1952 # So? What about this header?
1953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1956 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1962 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1964 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1966 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1968 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1978 eval "$3=\$ac_header_compiler"
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_header_mongrel
1988 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989 # --------------------------------------------
1990 # Tries to find the compile-time value of EXPR in a program that includes
1991 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1993 ac_fn_c_compute_int ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if test "$cross_compiling" = yes; then
1997 # Depending upon the size, compute the lo and hi bounds.
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2004 static int test_array [1 - 2 * !(($2) >= 0)];
2011 if ac_fn_c_try_compile "$LINENO"; then :
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=$ac_mid; break
2030 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031 if test $ac_lo -le $ac_mid; then
2035 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) < 0)];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_lo=$ac_mid; break
2072 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073 if test $ac_mid -le $ac_hi; then
2077 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 # Binary search between lo and hi bounds.
2088 while test "x$ac_lo" != "x$ac_hi"; do
2089 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 if ac_fn_c_try_compile "$LINENO"; then :
2106 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2118 static long int longval () { return $2; }
2119 static unsigned long int ulongval () { return $2; }
2126 FILE *f = fopen ("conftest.val", "w");
2131 long int i = longval ();
2134 fprintf (f, "%ld", i);
2138 unsigned long int i = ulongval ();
2141 fprintf (f, "%lu", i);
2143 /* Do not output a trailing newline, as this causes \r\n confusion
2144 on some platforms. */
2145 return ferror (f) || fclose (f) != 0;
2151 if ac_fn_c_try_run "$LINENO"; then :
2152 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157 conftest.$ac_objext conftest.beam conftest.$ac_ext
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2164 } # ac_fn_c_compute_int
2166 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2167 # -------------------------------------------
2168 # Tests whether TYPE exists after having included INCLUDES, setting cache
2169 # variable VAR accordingly.
2170 ac_fn_c_check_type ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2204 if ac_fn_c_try_compile "$LINENO"; then :
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 } # ac_fn_c_check_type
2219 cat >config.log <<_ACEOF
2220 This file contains any messages produced by compilers while
2221 running configure, to aid debugging if configure makes a mistake.
2223 It was created by $as_me, which was
2224 generated by GNU Autoconf 2.68. Invocation command line was
2236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2248 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 $as_echo "PATH: $as_dir"
2276 # Keep a trace of the command line.
2277 # Strip out --no-create and --no-recursion so they do not pile up.
2278 # Strip out --silent because we don't want to record it for future runs.
2279 # Also quote any args containing shell meta-characters.
2280 # Make two passes to allow for proper duplicate-argument suppression.
2284 ac_must_keep_next=false
2290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2292 | -silent | --silent | --silen | --sile | --sil)
2295 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300 as_fn_append ac_configure_args1 " '$ac_arg'"
2301 if test $ac_must_keep_next = true; then
2302 ac_must_keep_next=false # Got value, back to normal.
2305 *=* | --config-cache | -C | -disable-* | --disable-* \
2306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2308 | -with-* | --with-* | -without-* | --without-* | --x)
2309 case "$ac_configure_args0 " in
2310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313 -* ) ac_must_keep_next=true ;;
2316 as_fn_append ac_configure_args " '$ac_arg'"
2321 { ac_configure_args0=; unset ac_configure_args0;}
2322 { ac_configure_args1=; unset ac_configure_args1;}
2324 # When interrupted or exit'd, cleanup temporary files, and complete
2325 # config.log. We remove comments because anyway the quotes in there
2326 # would cause problems or look ugly.
2327 # WARNING: Use '\'' to represent an apostrophe within the trap.
2328 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2329 trap 'exit_status=$?
2330 # Save into config.log some information that might help in debugging.
2334 $as_echo "## ---------------- ##
2335 ## Cache variables. ##
2336 ## ---------------- ##"
2338 # The following way of writing the cache mishandles newlines in values,
2340 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2341 eval ac_val=\$$ac_var
2345 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2346 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349 _ | IFS | as_nl) ;; #(
2350 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2351 *) { eval $ac_var=; unset $ac_var;} ;;
2356 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2357 *${as_nl}ac_space=\ *)
2359 "s/'\''/'\''\\\\'\'''\''/g;
2360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370 $as_echo "## ----------------- ##
2371 ## Output variables. ##
2372 ## ----------------- ##"
2374 for ac_var in $ac_subst_vars
2376 eval ac_val=\$$ac_var
2378 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380 $as_echo "$ac_var='\''$ac_val'\''"
2384 if test -n "$ac_subst_files"; then
2385 $as_echo "## ------------------- ##
2386 ## File substitutions. ##
2387 ## ------------------- ##"
2389 for ac_var in $ac_subst_files
2391 eval ac_val=\$$ac_var
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 $as_echo "$ac_var='\''$ac_val'\''"
2400 if test -s confdefs.h; then
2401 $as_echo "## ----------- ##
2408 test "$ac_signal" != 0 &&
2409 $as_echo "$as_me: caught signal $ac_signal"
2410 $as_echo "$as_me: exit $exit_status"
2412 rm -f core *.core core.conftest.* &&
2413 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2416 for ac_signal in 1 2 13 15; do
2417 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2421 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2422 rm -f -r conftest* confdefs.h
2424 $as_echo "/* confdefs.h */" > confdefs.h
2426 # Predefined preprocessor variables.
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_NAME "$PACKAGE_NAME"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_STRING "$PACKAGE_STRING"
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_URL "$PACKAGE_URL"
2453 # Let the site file select an alternate cache file if it wants to.
2454 # Prefer an explicitly selected file to automatically selected ones.
2457 if test -n "$CONFIG_SITE"; then
2458 # We do not want a PATH search for config.site.
2459 case $CONFIG_SITE in #((
2460 -*) ac_site_file1=./$CONFIG_SITE;;
2461 */*) ac_site_file1=$CONFIG_SITE;;
2462 *) ac_site_file1=./$CONFIG_SITE;;
2464 elif test "x$prefix" != xNONE; then
2465 ac_site_file1=$prefix/share/config.site
2466 ac_site_file2=$prefix/etc/config.site
2468 ac_site_file1=$ac_default_prefix/share/config.site
2469 ac_site_file2=$ac_default_prefix/etc/config.site
2471 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2473 test "x$ac_site_file" = xNONE && continue
2474 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2477 sed 's/^/| /' "$ac_site_file" >&5
2479 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2486 if test -r "$cache_file"; then
2487 # Some versions of bash will fail to source /dev/null (special files
2488 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2489 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2493 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494 *) . "./$cache_file";;
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2503 # Check that the precious variables saved in the cache have kept the same
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 if test $cache_file = "/dev/null"; then
2575 cache_file="./config.cache"
2576 if test -r "$cache_file"; then
2577 # Some versions of bash will fail to source /dev/null (special files
2578 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2579 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2581 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2584 *) . "./$cache_file";;
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2589 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 for ac_dir in config "$srcdir"/config; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if ${ac_cv_build+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2649 ac_save_IFS=$IFS; IFS='-'
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if ${ac_cv_host+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2679 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2682 ac_save_IFS=$IFS; IFS='-'
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if ${ac_cv_target+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test "x$target_alias" = x; then
2701 ac_cv_target=$ac_cv_host
2703 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2712 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731 test "$program_prefix$program_suffix$program_transform_name" = \
2733 program_prefix=${target_alias}-
2735 am__api_version='1.10'
2737 # Find a good install program. We prefer a C program (faster),
2738 # so one script is as good as another. But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if ${ac_cv_path_install+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764 ./ | .// | /[cC]/* | \
2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one > conftest.one
2786 echo two > conftest.two
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789 test -s conftest.one && test -s conftest.two &&
2790 test -s conftest.dir/conftest.one &&
2791 test -s conftest.dir/conftest.two
2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2806 rm -rf conftest.one conftest.two conftest.dir
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL=$ac_cv_path_install
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL=$ac_install_sh
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2834 echo timestamp > conftest.file
2835 # Do `set' in a subshell so we don't clobber the current shell's
2836 # arguments. Must try -L first in case configure is actually a
2837 # symlink; some systems play weird games with the mod time of symlinks
2838 # (eg FreeBSD returns the mod time of the symlink's containing
2841 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2842 if test "$*" = "X"; then
2844 set X `ls -t $srcdir/configure conftest.file`
2847 if test "$*" != "X $srcdir/configure conftest.file" \
2848 && test "$*" != "X conftest.file $srcdir/configure"; then
2850 # If neither matched, then we have a broken ls. This can happen
2851 # if, for instance, CONFIG_SHELL is bash and it inherits a
2852 # broken ls alias from the environment. This has actually
2853 # happened. Such a system could not be considered "sane".
2854 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2855 alias in your environment" "$LINENO" 5
2858 test "$2" = conftest.file
2864 as_fn_error $? "newly created file is older than distributed files!
2865 Check your system clock" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 test "$program_prefix" != NONE &&
2870 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2871 # Use a double $ so make ignores it.
2872 test "$program_suffix" != NONE &&
2873 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2874 # Double any \ or $.
2875 # By default was `s,x,x', remove it if useless.
2876 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2877 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2879 # expand $ac_aux_dir to an absolute path
2880 am_aux_dir=`cd $ac_aux_dir && pwd`
2882 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2883 # Use eval to expand $SHELL
2884 if eval "$MISSING --run true"; then
2885 am_missing_run="$MISSING --run "
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2889 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2892 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2894 # Installed binaries are usually stripped using `strip' when the user
2895 # run `make install-strip'. However `strip' might not be the right
2896 # tool to use in cross-compilation environments, therefore Automake
2897 # will honor the `STRIP' environment variable to overrule this program.
2898 if test "$cross_compiling" != no; then
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_STRIP+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$STRIP"; then
2908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 STRIP=$ac_cv_prog_STRIP
2928 if test -n "$STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2930 $as_echo "$STRIP" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$ac_cv_prog_STRIP"; then
2940 # Extract the first word of "strip", so it can be a program name with args.
2941 set dummy strip; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$ac_ct_STRIP"; then
2948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_STRIP="strip"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968 if test -n "$ac_ct_STRIP"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970 $as_echo "$ac_ct_STRIP" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2976 if test "x$ac_ct_STRIP" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2988 STRIP="$ac_cv_prog_STRIP"
2992 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2995 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2996 if test -z "$MKDIR_P"; then
2997 if ${ac_cv_path_mkdir+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3004 test -z "$as_dir" && as_dir=.
3005 for ac_prog in mkdir gmkdir; do
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3008 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3009 'mkdir (GNU coreutils) '* | \
3010 'mkdir (coreutils) '* | \
3011 'mkdir (fileutils) '4.1*)
3012 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022 test -d ./--version && rmdir ./--version
3023 if test "${ac_cv_path_mkdir+set}" = set; then
3024 MKDIR_P="$ac_cv_path_mkdir -p"
3026 # As a last resort, use the slow shell script. Don't cache a
3027 # value for MKDIR_P within a source directory, because that will
3028 # break other packages using the cache if that directory is
3029 # removed, or if the value is a relative name.
3030 MKDIR_P="$ac_install_sh -d"
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3034 $as_echo "$MKDIR_P" >&6; }
3038 [\\/$]* | ?:[\\/]*) ;;
3039 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3042 for ac_prog in gawk mawk nawk awk
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$AWK"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$AWK" && break
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3085 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3087 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3088 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 cat >conftest.make <<\_ACEOF
3094 @echo '@@@%%%=$(MAKE)=@@@%%%'
3096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3099 eval ac_cv_prog_make_${ac_make}_set=yes;;
3101 eval ac_cv_prog_make_${ac_make}_set=no;;
3105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3107 $as_echo "yes" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 SET_MAKE="MAKE=${MAKE-make}"
3115 rm -rf .tst 2>/dev/null
3116 mkdir .tst 2>/dev/null
3117 if test -d .tst; then
3122 rmdir .tst 2>/dev/null
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3144 # Define the identity of the package.
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3158 # Some tools Automake needs.
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174 # We need awk for the "check" target. The system "awk" is bad on
3176 # Always define AMTAR for backward compatibility.
3178 AMTAR=${AMTAR-"${am_missing_run}tar"}
3180 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3188 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
3191 # and include our config dir scripts
3192 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config"
3196 # Check whether --enable-cmulocal was given.
3197 if test "${enable_cmulocal+set}" = set; then :
3198 enableval=$enable_cmulocal;
3204 # Check whether --enable-sample was given.
3205 if test "${enable_sample+set}" = set; then :
3206 enableval=$enable_sample; enable_sample=yes
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3254 if test -z "$ac_cv_prog_CC"; then
3256 # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_ac_ct_CC="gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3292 if test "x$ac_ct_CC" = x; then
3295 case $cross_compiling:$ac_tool_warned in
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="${ac_tool_prefix}cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$CC" && break
3448 if test -z "$CC"; then
3450 for ac_prog in cl.exe
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3489 test -n "$ac_ct_CC" && break
3492 if test "x$ac_ct_CC" = x; then
3495 case $cross_compiling:$ac_tool_warned in
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details" "$LINENO" 5; }
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3517 for ac_option in --version -v -V -qversion; do
3518 { { ac_try="$ac_compiler $ac_option >&5"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3527 if test -s conftest.err; then
3529 ... rest of stderr output deleted ...
3530 10q' conftest.err >conftest.er1
3531 cat conftest.er1 >&5
3533 rm -f conftest.er1 conftest.err
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555 $as_echo_n "checking whether the C compiler works... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3562 for ac_file in $ac_files
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571 if { { ac_try="$ac_link_default"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link_default") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3587 for ac_file in $ac_files ''
3589 test -f "$ac_file" || continue
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3594 # We found the default executable, but exeext='' is most
3598 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3600 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 # We set ac_cv_exeext here because the later test for it is not
3603 # safe: cross compilers may not add the suffix if given an `-o'
3604 # argument, so we may need to know it at that point already.
3605 # Even if this section looks crufty: it has the advantage of
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3617 if test -z "$ac_file"; then :
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error 77 "C compiler cannot create executables
3626 See \`config.log' for more details" "$LINENO" 5; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632 $as_echo_n "checking for C compiler default output file name... " >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3635 ac_exeext=$ac_cv_exeext
3637 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640 $as_echo_n "checking for suffix of executables... " >&6; }
3641 if { { ac_try="$ac_link"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3656 for ac_file in conftest.exe conftest conftest.*; do
3657 test -f "$ac_file" || continue
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details" "$LINENO" 5; }
3671 rm -f conftest conftest$ac_cv_exeext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673 $as_echo "$ac_cv_exeext" >&6; }
3675 rm -f conftest.$ac_ext
3676 EXEEXT=$ac_cv_exeext
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3684 FILE *f = fopen ("conftest.out", "w");
3685 return ferror (f) || fclose (f) != 0;
3691 ac_clean_files="$ac_clean_files conftest.out"
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695 $as_echo_n "checking whether we are cross compiling... " >&6; }
3696 if test "$cross_compiling" != yes; then
3697 { { ac_try="$ac_link"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_link") 2>&5
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 if { ac_try='./conftest$ac_cv_exeext'
3709 { { case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_try") 2>&5
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; }; then
3721 if test "$cross_compiling" = maybe; then
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details" "$LINENO" 5; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733 $as_echo "$cross_compiling" >&6; }
3735 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736 ac_clean_files=$ac_clean_files_save
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if ${ac_cv_objext+:} false; then :
3740 $as_echo_n "(cached) " >&6
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3753 rm -f conftest.o conftest.obj
3754 if { { ac_try="$ac_compile"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compile") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; then :
3765 for ac_file in conftest.o conftest.obj conftest.*; do
3766 test -f "$ac_file" || continue;
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details" "$LINENO" 5; }
3782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785 $as_echo "$ac_cv_objext" >&6; }
3786 OBJEXT=$ac_cv_objext
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790 if ${ac_cv_c_compiler_gnu+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3807 if ac_fn_c_try_compile "$LINENO"; then :
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818 if test $ac_compiler_gnu = yes; then
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3827 if ${ac_cv_prog_cc_g+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_save_c_werror_flag=$ac_c_werror_flag
3831 ac_c_werror_flag=yes
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_c_werror_flag=$ac_save_c_werror_flag
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3876 if ac_fn_c_try_compile "$LINENO"; then :
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887 $as_echo "$ac_cv_prog_cc_g" >&6; }
3888 if test "$ac_test_CFLAGS" = set; then
3889 CFLAGS=$ac_save_CFLAGS
3890 elif test $ac_cv_prog_cc_g = yes; then
3891 if test "$GCC" = yes; then
3897 if test "$GCC" = yes; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905 if ${ac_cv_prog_cc_c89+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 ac_cv_prog_cc_c89=no
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3930 s = g (p, va_arg (v,int));
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3936 function prototypes and stuff, but not '\xHH' hex character constants.
3937 These don't provoke an error unfortunately, instead are silently treated
3938 as 'x'. The following induces an error, until -std is added to get
3939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3940 array size at least. It's necessary to write '\x00'==0 to get something
3941 that's true only with -std. */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945 inside strings and character constants. */
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3966 CC="$ac_save_CC $ac_arg"
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_cv_prog_cc_c89=$ac_arg
3970 rm -f core conftest.err conftest.$ac_objext
3971 test "x$ac_cv_prog_cc_c89" != "xno" && break
3973 rm -f conftest.$ac_ext
3978 case "x$ac_cv_prog_cc_c89" in
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981 $as_echo "none needed" >&6; } ;;
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984 $as_echo "unsupported" >&6; } ;;
3986 CC="$CC $ac_cv_prog_cc_c89"
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3990 if test "x$ac_cv_prog_cc_c89" != xno; then :
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 DEPDIR="${am__leading_dot}deps"
4001 ac_config_commands="$ac_config_commands depfiles"
4004 am_make=${MAKE-make}
4005 cat > confinc << 'END'
4010 # If we don't find an include directive, just comment out the code.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4012 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4016 # First try GNU make style include.
4017 echo "include confinc" > confmf
4018 # We grep out `Entering directory' and `Leaving directory'
4019 # messages which can occur if `w' ends up in MAKEFLAGS.
4020 # In particular we don't look at `^make:' because GNU make might
4021 # be invoked under some other name (usually "gmake"), in which
4022 # case it prints its new name instead of `make'.
4023 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4028 # Now try BSD make style include.
4029 if test "$am__include" = "#"; then
4030 echo '.include "confinc"' > confmf
4031 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4032 am__include=.include
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4040 $as_echo "$_am_result" >&6; }
4041 rm -f confinc confmf
4043 # Check whether --enable-dependency-tracking was given.
4044 if test "${enable_dependency_tracking+set}" = set; then :
4045 enableval=$enable_dependency_tracking;
4048 if test "x$enable_dependency_tracking" != xno; then
4049 am_depcomp="$ac_aux_dir/depcomp"
4052 if test "x$enable_dependency_tracking" != xno; then
4062 depcc="$CC" am_compiler_list=
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4065 $as_echo_n "checking dependency style of $depcc... " >&6; }
4066 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4070 # We make a subdir and do the tests there. Otherwise we can end up
4071 # making bogus files that we don't know about and never remove. For
4072 # instance it was reported that on HP-UX the gcc test will end up
4073 # making a dummy file named `D' -- because `-MD' means `put the output
4076 # Copy depcomp to subdir because otherwise we won't find it if we're
4077 # using a relative directory.
4078 cp "$am_depcomp" conftest.dir
4080 # We will build objects and dependencies in a subdirectory because
4081 # it helps to detect inapplicable dependency modes. For instance
4082 # both Tru64's cc and ICC support -MD to output dependencies as a
4083 # side effect of compilation, but ICC will put the dependencies in
4084 # the current directory while Tru64 will put them in the object
4088 am_cv_CC_dependencies_compiler_type=none
4089 if test "$am_compiler_list" = ""; then
4090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4093 case " $depcc " in #(
4094 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4097 for depmode in $am_compiler_list; do
4098 # Setup a source with many dependencies, because some compilers
4099 # like to wrap large dependency lists on column 80 (with \), and
4100 # we should not choose a depcomp mode which is confused by this.
4102 # We need to recreate these files for each test, as the compiler may
4103 # overwrite some of them when testing with obscure command lines.
4104 # This happens at least with the AIX C compiler.
4106 for i in 1 2 3 4 5 6; do
4107 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4108 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4109 # Solaris 8's {/usr,}/bin/sh.
4110 touch sub/conftst$i.h
4112 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4115 # mode. It turns out that the SunPro C++ compiler does not properly
4116 # handle `-M -o', and we need to detect this. Also, some Intel
4117 # versions had trouble with output in subdirs
4118 am__obj=sub/conftest.${OBJEXT-o}
4119 am__minus_obj="-o $am__obj"
4122 # This depmode causes a compiler race in universal mode.
4123 test "$am__universal" = false || continue
4126 # after this tag, mechanisms are not by side-effect, so they'll
4127 # only be used when explicitly requested
4128 if test "x$enable_dependency_tracking" = xyes; then
4134 msvisualcpp | msvcmsys)
4135 # This compiler won't grok `-c -o', but also, the minuso test has
4136 # not run yet. These depmodes are late enough in the game, and
4137 # so weak that their functioning should not be impacted.
4138 am__obj=conftest.${OBJEXT-o}
4143 if depmode=$depmode \
4144 source=sub/conftest.c object=$am__obj \
4145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4146 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4147 >/dev/null 2>conftest.err &&
4148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # or remarks (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored or not supported.
4155 # When given -MP, icc 7.0 and 7.1 complain thusly:
4156 # icc: Command line warning: ignoring option '-M'; no argument required
4157 # The diagnosis changed in icc 8.0:
4158 # icc: Command line remark: option '-MP' not supported
4159 if (grep 'ignoring option' conftest.err ||
4160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4161 am_cv_CC_dependencies_compiler_type=$depmode
4170 am_cv_CC_dependencies_compiler_type=none
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4175 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4176 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4179 test "x$enable_dependency_tracking" != xno \
4180 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4182 am__fastdepCC_FALSE='#'
4184 am__fastdepCC_TRUE='#'
4185 am__fastdepCC_FALSE=
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4195 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4200 if test -z "$CPP"; then
4201 if ${ac_cv_prog_CPP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4204 # Double quotes because CPP needs to be expanded
4205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4219 # include <limits.h>
4221 # include <assert.h>
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4228 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <ac_nonexistent.h>
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: success on invalid input.
4243 # Passes both tests.
4247 rm -f conftest.err conftest.i conftest.$ac_ext
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.i conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4265 $as_echo "$CPP" >&6; }
4267 for ac_c_preproc_warn_flag in '' yes
4269 # Use a header file that comes with gcc, so configuring glibc
4270 # with a fresh cross-compiler works.
4271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272 # <limits.h> exists even on freestanding compilers.
4273 # On the NeXT, cc -E runs the code through the compiler's parser,
4274 # not just through cpp. "Syntax error" is here to catch this case.
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4278 # include <limits.h>
4280 # include <assert.h>
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4287 # Broken: fails on valid input.
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4292 # OK, works on sane cases. Now check whether nonexistent headers
4293 # can be detected and how.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <ac_nonexistent.h>
4298 if ac_fn_c_try_cpp "$LINENO"; then :
4299 # Broken: success on invalid input.
4302 # Passes both tests.
4306 rm -f conftest.err conftest.i conftest.$ac_ext
4309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310 rm -f conftest.i conftest.err conftest.$ac_ext
4311 if $ac_preproc_ok; then :
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4317 See \`config.log' for more details" "$LINENO" 5; }
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 for ac_prog in gawk mawk nawk awk
4328 # Extract the first word of "$ac_prog", so it can be a program name with args.
4329 set dummy $ac_prog; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_AWK+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$AWK"; then
4336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345 ac_cv_prog_AWK="$ac_prog"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 if test -n "$AWK"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4358 $as_echo "$AWK" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4365 test -n "$AWK" && break
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4369 $as_echo_n "checking whether ln -s works... " >&6; }
4371 if test "$LN_S" = "ln -s"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4376 $as_echo "no, using $LN_S" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4380 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4382 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4383 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4384 $as_echo_n "(cached) " >&6
4386 cat >conftest.make <<\_ACEOF
4389 @echo '@@@%%%=$(MAKE)=@@@%%%'
4391 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4394 eval ac_cv_prog_make_${ac_make}_set=yes;;
4396 eval ac_cv_prog_make_${ac_make}_set=no;;
4400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4402 $as_echo "yes" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 SET_MAKE="MAKE=${MAKE-make}"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4414 $as_echo_n "checking for __attribute__... " >&6; }
4415 if ${ac_cv___attribute__+:} false; then :
4416 $as_echo_n "(cached) " >&6
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4428 static void foo(void) __attribute__ ((noreturn));
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 ac_cv___attribute__=yes
4443 ac_cv___attribute__=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448 if test "$ac_cv___attribute__" = "yes"; then
4450 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4454 $as_echo "$ac_cv___attribute__" >&6; }
4458 # CMU GUESS RUNPATH SWITCH
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4460 $as_echo_n "checking for runpath switch... " >&6; }
4461 if ${andrew_runpath_switch+:} false; then :
4462 $as_echo_n "(cached) " >&6
4466 SAVE_LDFLAGS="${LDFLAGS}"
4467 LDFLAGS="-R /usr/lib"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4479 if ac_fn_c_try_link "$LINENO"; then :
4480 andrew_runpath_switch="-R"
4483 LDFLAGS="-Wl,-rpath,/usr/lib"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4495 if ac_fn_c_try_link "$LINENO"; then :
4496 andrew_runpath_switch="-Wl,-rpath,"
4498 andrew_runpath_switch="none"
4500 rm -f core conftest.err conftest.$ac_objext \
4501 conftest$ac_exeext conftest.$ac_ext
4504 rm -f core conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4506 LDFLAGS="${SAVE_LDFLAGS}"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4510 $as_echo "$andrew_runpath_switch" >&6; }
4513 # Check whether --with-staticsasl was given.
4514 if test "${with_staticsasl+set}" = set; then :
4515 withval=$with_staticsasl;
4518 if test "$with_staticsasl" = yes; then
4524 if test -z "$target"; then
4529 # Check whether --enable-static was given.
4530 if test "${enable_static+set}" = set; then :
4531 enableval=$enable_static; p=${PACKAGE-default}
4533 yes) enable_static=yes ;;
4534 no) enable_static=no ;;
4537 # Look at the argument we got. We use all the common list separators.
4538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4539 for pkg in $enableval; do
4541 if test "X$pkg" = "X$p"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4563 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4568 macro_version='2.2.10'
4569 macro_revision='1.3175'
4583 ltmain="$ac_aux_dir/ltmain.sh"
4585 # Backslashify metacharacters that are still active within
4586 # double-quoted strings.
4587 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4589 # Same as above, but do not quote variable references.
4590 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4592 # Sed substitution to delay expansion of an escaped shell variable in a
4593 # double_quote_subst'ed string.
4594 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4596 # Sed substitution to delay expansion of an escaped single quote.
4597 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4599 # Sed substitution to avoid accidental globbing in evaled expressions
4600 no_glob_subst='s/\*/\\\*/g'
4602 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4603 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4604 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4607 $as_echo_n "checking how to print strings... " >&6; }
4608 # Test print first, because it will be a builtin if present.
4609 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4610 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4612 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4615 # Use this function as a fallback that always works.
4616 func_fallback_echo ()
4618 eval 'cat <<_LTECHO_EOF
4622 ECHO='func_fallback_echo'
4625 # func_echo_all arg...
4626 # Invoke $ECHO with all args, space-separated.
4633 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4634 $as_echo "printf" >&6; } ;;
4635 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4636 $as_echo "print -r" >&6; } ;;
4637 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4638 $as_echo "cat" >&6; } ;;
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4655 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4656 if ${ac_cv_path_SED+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4660 for ac_i in 1 2 3 4 5 6 7; do
4661 ac_script="$ac_script$as_nl$ac_script"
4663 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4664 { ac_script=; unset ac_script;}
4665 if test -z "$SED"; then
4666 ac_path_SED_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in sed gsed; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678 # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4681 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4684 $as_echo_n 0123456789 >"conftest.in"
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo '' >> "conftest.nl"
4691 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 as_fn_arith $ac_count + 1 && ac_count=$as_val
4694 if test $ac_count -gt ${ac_path_SED_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_SED="$ac_path_SED"
4697 ac_path_SED_max=$ac_count
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 $ac_path_SED_found && break 3
4710 if test -z "$ac_cv_path_SED"; then
4711 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4719 $as_echo "$ac_cv_path_SED" >&6; }
4720 SED="$ac_cv_path_SED"
4723 test -z "$SED" && SED=sed
4724 Xsed="$SED -e 1s/^X//"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4738 if ${ac_cv_path_GREP+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 if test -z "$GREP"; then
4742 ac_path_GREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in grep ggrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4752 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4753 # Check for GNU ac_path_GREP and select it if it is found.
4754 # Check for GNU $ac_path_GREP
4755 case `"$ac_path_GREP" --version 2>&1` in
4757 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'GREP' >> "conftest.nl"
4767 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_GREP="$ac_path_GREP"
4773 ac_path_GREP_max=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 $ac_path_GREP_found && break 3
4786 if test -z "$ac_cv_path_GREP"; then
4787 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 ac_cv_path_GREP=$GREP
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4795 $as_echo "$ac_cv_path_GREP" >&6; }
4796 GREP="$ac_cv_path_GREP"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4800 $as_echo_n "checking for egrep... " >&6; }
4801 if ${ac_cv_path_EGREP+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4805 then ac_cv_path_EGREP="$GREP -E"
4807 if test -z "$EGREP"; then
4808 ac_path_EGREP_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in egrep; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4819 # Check for GNU ac_path_EGREP and select it if it is found.
4820 # Check for GNU $ac_path_EGREP
4821 case `"$ac_path_EGREP" --version 2>&1` in
4823 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4826 $as_echo_n 0123456789 >"conftest.in"
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo 'EGREP' >> "conftest.nl"
4833 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_EGREP="$ac_path_EGREP"
4839 ac_path_EGREP_max=$ac_count
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 $ac_path_EGREP_found && break 3
4852 if test -z "$ac_cv_path_EGREP"; then
4853 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856 ac_cv_path_EGREP=$EGREP
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4862 $as_echo "$ac_cv_path_EGREP" >&6; }
4863 EGREP="$ac_cv_path_EGREP"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4867 $as_echo_n "checking for fgrep... " >&6; }
4868 if ${ac_cv_path_FGREP+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4872 then ac_cv_path_FGREP="$GREP -F"
4874 if test -z "$FGREP"; then
4875 ac_path_FGREP_found=false
4876 # Loop through the user's path and test for each of PROGNAME-LIST
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881 test -z "$as_dir" && as_dir=.
4882 for ac_prog in fgrep; do
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4885 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4886 # Check for GNU ac_path_FGREP and select it if it is found.
4887 # Check for GNU $ac_path_FGREP
4888 case `"$ac_path_FGREP" --version 2>&1` in
4890 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4893 $as_echo_n 0123456789 >"conftest.in"
4896 cat "conftest.in" "conftest.in" >"conftest.tmp"
4897 mv "conftest.tmp" "conftest.in"
4898 cp "conftest.in" "conftest.nl"
4899 $as_echo 'FGREP' >> "conftest.nl"
4900 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4902 as_fn_arith $ac_count + 1 && ac_count=$as_val
4903 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4904 # Best one so far, save it but keep looking for a better one
4905 ac_cv_path_FGREP="$ac_path_FGREP"
4906 ac_path_FGREP_max=$ac_count
4908 # 10*(2^10) chars as input seems more than enough
4909 test $ac_count -gt 10 && break
4911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 $ac_path_FGREP_found && break 3
4919 if test -z "$ac_cv_path_FGREP"; then
4920 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4923 ac_cv_path_FGREP=$FGREP
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4929 $as_echo "$ac_cv_path_FGREP" >&6; }
4930 FGREP="$ac_cv_path_FGREP"
4933 test -z "$GREP" && GREP=grep
4953 # Check whether --with-gnu-ld was given.
4954 if test "${with_gnu_ld+set}" = set; then :
4955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4961 if test "$GCC" = yes; then
4962 # Check if gcc -print-prog-name=ld gives a path.
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4964 $as_echo_n "checking for ld used by $CC... " >&6; }
4967 # gcc leaves a trailing carriage return which upsets mingw
4968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4973 # Accept absolute paths.
4975 re_direlt='/[^/][^/]*/\.\./'
4976 # Canonicalize the pathname of ld
4977 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4978 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4979 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4981 test -z "$LD" && LD="$ac_prog"
4984 # If it fails, then pretend we aren't using GCC.
4988 # If it is relative, then search for the first ld in PATH.
4992 elif test "$with_gnu_ld" = yes; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4994 $as_echo_n "checking for GNU ld... " >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4997 $as_echo_n "checking for non-GNU ld... " >&6; }
4999 if ${lt_cv_path_LD+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -z "$LD"; then
5003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5004 for ac_dir in $PATH; do
5006 test -z "$ac_dir" && ac_dir=.
5007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008 lt_cv_path_LD="$ac_dir/$ac_prog"
5009 # Check to see if the program is GNU ld. I'd rather use --version,
5010 # but apparently some variants of GNU ld only accept -v.
5011 # Break only if it was the GNU/non-GNU ld that we prefer.
5012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5013 *GNU* | *'with BFD'*)
5014 test "$with_gnu_ld" != no && break
5017 test "$with_gnu_ld" != yes && break
5024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5029 if test -n "$LD"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5031 $as_echo "$LD" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5036 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5039 if ${lt_cv_prog_gnu_ld+:} false; then :
5040 $as_echo_n "(cached) " >&6
5042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5043 case `$LD -v 2>&1 </dev/null` in
5044 *GNU* | *'with BFD'*)
5045 lt_cv_prog_gnu_ld=yes
5048 lt_cv_prog_gnu_ld=no
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5054 with_gnu_ld=$lt_cv_prog_gnu_ld
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5065 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5066 if ${lt_cv_path_NM+:} false; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$NM"; then
5070 # Let the user override the test.
5073 lt_nm_to_check="${ac_tool_prefix}nm"
5074 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075 lt_nm_to_check="$lt_nm_to_check nm"
5077 for lt_tmp_nm in $lt_nm_to_check; do
5078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5081 test -z "$ac_dir" && ac_dir=.
5082 tmp_nm="$ac_dir/$lt_tmp_nm"
5083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084 # Check to see if the nm accepts a BSD-compat flag.
5085 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086 # nm: unknown option "B" ignored
5087 # Tru64's nm complains that /dev/null is an invalid object file
5088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089 */dev/null* | *'Invalid file or object type'*)
5090 lt_cv_path_NM="$tmp_nm -B"
5094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5096 lt_cv_path_NM="$tmp_nm -p"
5100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101 continue # so that we can try to find one that supports BSD flags
5110 : ${lt_cv_path_NM=no}
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5114 $as_echo "$lt_cv_path_NM" >&6; }
5115 if test "$lt_cv_path_NM" != "no"; then
5118 # Didn't find any BSD compatible name lister, look for dumpbin.
5119 if test -n "$DUMPBIN"; then :
5120 # Let the user override the test.
5122 if test -n "$ac_tool_prefix"; then
5123 for ac_prog in dumpbin "link -dump"
5125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_DUMPBIN+:} false; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$DUMPBIN"; then
5133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 DUMPBIN=$ac_cv_prog_DUMPBIN
5153 if test -n "$DUMPBIN"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5155 $as_echo "$DUMPBIN" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$DUMPBIN" && break
5165 if test -z "$DUMPBIN"; then
5166 ac_ct_DUMPBIN=$DUMPBIN
5167 for ac_prog in dumpbin "link -dump"
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$ac_ct_DUMPBIN"; then
5177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5197 if test -n "$ac_ct_DUMPBIN"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5199 $as_echo "$ac_ct_DUMPBIN" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 test -n "$ac_ct_DUMPBIN" && break
5209 if test "x$ac_ct_DUMPBIN" = x; then
5212 case $cross_compiling:$ac_tool_warned in
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5218 DUMPBIN=$ac_ct_DUMPBIN
5222 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5224 DUMPBIN="$DUMPBIN -symbols"
5232 if test "$DUMPBIN" != ":"; then
5236 test -z "$NM" && NM=nm
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5244 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5245 if ${lt_cv_nm_interface+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 lt_cv_nm_interface="BSD nm"
5249 echo "int some_variable = 0;" > conftest.$ac_ext
5250 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5251 (eval "$ac_compile" 2>conftest.err)
5252 cat conftest.err >&5
5253 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5254 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5255 cat conftest.err >&5
5256 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5257 cat conftest.out >&5
5258 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5259 lt_cv_nm_interface="MS dumpbin"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5264 $as_echo "$lt_cv_nm_interface" >&6; }
5266 # find the maximum length of command line arguments
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5269 if ${lt_cv_sys_max_cmd_len+:} false; then :
5270 $as_echo_n "(cached) " >&6
5277 # On DJGPP, this test can blow up pretty badly due to problems in libc
5278 # (any single argument exceeding 2000 bytes causes a buffer overrun
5279 # during glob expansion). Even if it were fixed, the result of this
5280 # check would be larger than it should be.
5281 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5285 # Under GNU Hurd, this test is not required because there is
5286 # no limit to the length of command line arguments.
5287 # Libtool will interpret -1 as no limit whatsoever
5288 lt_cv_sys_max_cmd_len=-1;
5291 cygwin* | mingw* | cegcc*)
5292 # On Win9x/ME, this test blows up -- it succeeds, but takes
5293 # about 5 minutes as the teststring grows exponentially.
5294 # Worse, since 9x/ME are not pre-emptively multitasking,
5295 # you end up with a "frozen" computer, even though with patience
5296 # the test eventually succeeds (with a max line length of 256k).
5297 # Instead, let's just punt: use the minimum linelength reported by
5298 # all of the supported platforms: 8192 (on NT/2K/XP).
5299 lt_cv_sys_max_cmd_len=8192;
5303 # On MiNT this can take a long time and run out of memory.
5304 lt_cv_sys_max_cmd_len=8192;
5308 # On AmigaOS with pdksh, this test takes hours, literally.
5309 # So we just punt and use a minimum line length of 8192.
5310 lt_cv_sys_max_cmd_len=8192;
5313 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5314 # This has been around since 386BSD, at least. Likely further.
5315 if test -x /sbin/sysctl; then
5316 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5317 elif test -x /usr/sbin/sysctl; then
5318 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5320 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5322 # And add a safety zone
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5329 lt_cv_sys_max_cmd_len=196608
5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5335 # nice to cause kernel panics so lets avoid the loop below.
5336 # First set a reasonable default.
5337 lt_cv_sys_max_cmd_len=16384
5339 if test -x /sbin/sysconfig; then
5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346 lt_cv_sys_max_cmd_len=102400
5348 sysv5* | sco5v6* | sysv4.2uw2*)
5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5350 if test -n "$kargmax"; then
5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5353 lt_cv_sys_max_cmd_len=32768
5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5358 if test -n "$lt_cv_sys_max_cmd_len"; then
5359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 # Make teststring a little bigger before we do anything with it.
5363 # a 1K string should be a reasonable start.
5364 for i in 1 2 3 4 5 6 7 8 ; do
5365 teststring=$teststring$teststring
5367 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5368 # If test is not a shell built-in, we'll probably end up computing a
5369 # maximum length that is only half of the actual maximum length, but
5371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5372 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5373 test $i != 17 # 1/2 MB should be enough
5376 teststring=$teststring$teststring
5378 # Only check the string length outside the loop.
5379 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5381 # Add a significant safety factor because C++ compilers can tack on
5382 # massive amounts of additional arguments before passing them to the
5383 # linker. It appears as though 1/2 is a usable value.
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5391 if test -n $lt_cv_sys_max_cmd_len ; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5396 $as_echo "none" >&6; }
5398 max_cmd_len=$lt_cv_sys_max_cmd_len
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5411 # Try some XSI features
5414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5416 && eval 'test $(( 1 + 1 )) -eq 2 \
5417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5420 $as_echo "$xsi_shell" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5424 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5426 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5428 && lt_shell_append=yes
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5430 $as_echo "$lt_shell_append" >&6; }
5433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443 # test EBCDIC or ASCII
5444 case `echo X|tr X '\101'` in
5445 A) # ASCII based system
5446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5447 lt_SP2NL='tr \040 \012'
5448 lt_NL2SP='tr \015\012 \040\040'
5450 *) # EBCDIC based system
5451 lt_SP2NL='tr \100 \n'
5452 lt_NL2SP='tr \r\n \100\100'
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5465 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5466 if ${lt_cv_ld_reload_flag+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 lt_cv_ld_reload_flag='-r'
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5473 reload_flag=$lt_cv_ld_reload_flag
5474 case $reload_flag in
5476 *) reload_flag=" $reload_flag" ;;
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481 if test "$GCC" = yes; then
5482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_OBJDUMP+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$OBJDUMP"; then
5506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 OBJDUMP=$ac_cv_prog_OBJDUMP
5526 if test -n "$OBJDUMP"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5528 $as_echo "$OBJDUMP" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5536 if test -z "$ac_cv_prog_OBJDUMP"; then
5537 ac_ct_OBJDUMP=$OBJDUMP
5538 # Extract the first word of "objdump", so it can be a program name with args.
5539 set dummy objdump; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$ac_ct_OBJDUMP"; then
5546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5566 if test -n "$ac_ct_OBJDUMP"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5568 $as_echo "$ac_ct_OBJDUMP" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5574 if test "x$ac_ct_OBJDUMP" = x; then
5577 case $cross_compiling:$ac_tool_warned in
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5583 OBJDUMP=$ac_ct_OBJDUMP
5586 OBJDUMP="$ac_cv_prog_OBJDUMP"
5589 test -z "$OBJDUMP" && OBJDUMP=objdump
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5601 if ${lt_cv_deplibs_check_method+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 lt_cv_file_magic_cmd='$MAGIC_CMD'
5605 lt_cv_file_magic_test_file=
5606 lt_cv_deplibs_check_method='unknown'
5607 # Need to set the preceding variable on all platforms that support
5608 # interlibrary dependencies.
5609 # 'none' -- dependencies not supported.
5610 # `unknown' -- same as none, but documents that we really don't know.
5611 # 'pass_all' -- all dependencies passed with no checks.
5612 # 'test_compile' -- check by making test program.
5613 # 'file_magic [[regex]]' -- check by looking for files in library path
5614 # which responds to the $file_magic_cmd with a given extended regex.
5615 # If you have `file' or equivalent on your system and you're not sure
5616 # whether `pass_all' will *always* work, you probably want this one.
5620 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_deplibs_check_method=pass_all
5628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5629 lt_cv_file_magic_cmd='/usr/bin/file -L'
5630 lt_cv_file_magic_test_file=/shlib/libc.so
5634 # func_win32_libid is a shell function defined in ltmain.sh
5635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636 lt_cv_file_magic_cmd='func_win32_libid'
5640 # Base MSYS/MinGW do not provide the 'file' command needed by
5641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5642 # unless we find 'file', for example because we are cross-compiling.
5643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5646 lt_cv_file_magic_cmd='func_win32_libid'
5648 # Keep this pattern in sync with the one in func_win32_libid.
5649 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5650 lt_cv_file_magic_cmd='$OBJDUMP -f'
5655 # use the weaker test based on 'objdump'. See mingw*.
5656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5657 lt_cv_file_magic_cmd='$OBJDUMP -f'
5660 darwin* | rhapsody*)
5661 lt_cv_deplibs_check_method=pass_all
5664 freebsd* | dragonfly*)
5665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5668 # Not sure whether the presence of OpenBSD here was a mistake.
5669 # Let's accept both of them until this is cleared up.
5670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5671 lt_cv_file_magic_cmd=/usr/bin/file
5672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5676 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_deplibs_check_method=pass_all
5685 lt_cv_deplibs_check_method=pass_all
5688 hpux10.20* | hpux11*)
5689 lt_cv_file_magic_cmd=/usr/bin/file
5692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5696 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]'
5697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5701 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5711 irix5* | irix6* | nonstopux*)
5713 *-32|*"-32 ") libmagic=32-bit;;
5714 *-n32|*"-n32 ") libmagic=N32;;
5715 *-64|*"-64 ") libmagic=64-bit;;
5716 *) libmagic=never-match;;
5718 lt_cv_deplibs_check_method=pass_all
5721 # This must be Linux ELF.
5722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5723 lt_cv_deplibs_check_method=pass_all
5727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5736 lt_cv_file_magic_cmd=/usr/bin/file
5737 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5741 lt_cv_deplibs_check_method=pass_all
5745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5752 osf3* | osf4* | osf5*)
5753 lt_cv_deplibs_check_method=pass_all
5757 lt_cv_deplibs_check_method=pass_all
5761 lt_cv_deplibs_check_method=pass_all
5764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5765 lt_cv_deplibs_check_method=pass_all
5769 case $host_vendor in
5771 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]'
5772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5775 lt_cv_deplibs_check_method=pass_all
5778 lt_cv_file_magic_cmd='/bin/file'
5779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5782 lt_cv_file_magic_cmd='/bin/file'
5783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5784 lt_cv_file_magic_test_file=/lib/libc.so
5787 lt_cv_deplibs_check_method=pass_all
5790 lt_cv_deplibs_check_method=pass_all
5796 lt_cv_deplibs_check_method=pass_all
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5802 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5803 file_magic_cmd=$lt_cv_file_magic_cmd
5804 deplibs_check_method=$lt_cv_deplibs_check_method
5805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}ar; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_AR+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 if test -n "$AR"; then
5827 ac_cv_prog_AR="$AR" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_AR="${ac_tool_prefix}ar"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 if test -n "$AR"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5849 $as_echo "$AR" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5857 if test -z "$ac_cv_prog_AR"; then
5859 # Extract the first word of "ar", so it can be a program name with args.
5860 set dummy ar; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5864 $as_echo_n "(cached) " >&6
5866 if test -n "$ac_ct_AR"; then
5867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_AR="ar"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5887 if test -n "$ac_ct_AR"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5889 $as_echo "$ac_ct_AR" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5895 if test "x$ac_ct_AR" = x; then
5898 case $cross_compiling:$ac_tool_warned in
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5910 test -z "$AR" && AR=ar
5911 test -z "$AR_FLAGS" && AR_FLAGS=cru
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_STRIP+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$STRIP"; then
5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 STRIP=$ac_cv_prog_STRIP
5952 if test -n "$STRIP"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5954 $as_echo "$STRIP" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5962 if test -z "$ac_cv_prog_STRIP"; then
5964 # Extract the first word of "strip", so it can be a program name with args.
5965 set dummy strip; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5969 $as_echo_n "(cached) " >&6
5971 if test -n "$ac_ct_STRIP"; then
5972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_STRIP="strip"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5992 if test -n "$ac_ct_STRIP"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5994 $as_echo "$ac_ct_STRIP" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6000 if test "x$ac_ct_STRIP" = x; then
6003 case $cross_compiling:$ac_tool_warned in
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6012 STRIP="$ac_cv_prog_STRIP"
6015 test -z "$STRIP" && STRIP=:
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_RANLIB+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$RANLIB"; then
6031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 RANLIB=$ac_cv_prog_RANLIB
6051 if test -n "$RANLIB"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6053 $as_echo "$RANLIB" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6061 if test -z "$ac_cv_prog_RANLIB"; then
6062 ac_ct_RANLIB=$RANLIB
6063 # Extract the first word of "ranlib", so it can be a program name with args.
6064 set dummy ranlib; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6068 $as_echo_n "(cached) " >&6
6070 if test -n "$ac_ct_RANLIB"; then
6071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_RANLIB="ranlib"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6091 if test -n "$ac_ct_RANLIB"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6093 $as_echo "$ac_ct_RANLIB" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6099 if test "x$ac_ct_RANLIB" = x; then
6102 case $cross_compiling:$ac_tool_warned in
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6108 RANLIB=$ac_ct_RANLIB
6111 RANLIB="$ac_cv_prog_RANLIB"
6114 test -z "$RANLIB" && RANLIB=:
6121 # Determine commands to create old-style static archives.
6122 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6123 old_postinstall_cmds='chmod 644 $oldlib'
6124 old_postuninstall_cmds=
6126 if test -n "$RANLIB"; then
6129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6135 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6140 lock_old_archive_extraction=yes ;;
6142 lock_old_archive_extraction=no ;;
6183 # If no C compiler was specified, use CC.
6186 # If no C compiler flags were specified, use CFLAGS.
6187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6189 # Allow CC to be a program name with arguments.
6193 # Check for command to grab the raw symbol name followed by C symbol from nm.
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6196 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6197 $as_echo_n "(cached) " >&6
6200 # These are sane defaults that work on at least a few old systems.
6201 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6203 # Character class describing NM global symbol codes.
6204 symcode='[BCDEGRST]'
6206 # Regexp to match symbols that can be accessed directly from C.
6207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6209 # Define system-specific variables.
6214 cygwin* | mingw* | pw32* | cegcc*)
6215 symcode='[ABCDGISTW]'
6218 if test "$host_cpu" = ia64; then
6219 symcode='[ABCDEGRST]'
6223 symcode='[BCDEGRST]'
6226 symcode='[BCDEGQRST]'
6237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6245 # If we're using GNU nm, then use its standard symbol codes.
6246 case `$NM -V 2>&1` in
6247 *GNU* | *'with BFD'*)
6248 symcode='[ABCDGIRSTW]' ;;
6251 # Transform an extracted symbol line into a proper C declaration.
6252 # Some systems (esp. on ia64) link data and code symbols differently,
6253 # so use this general approach.
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6256 # Transform an extracted symbol line into symbol name and symbol address
6257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6258 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'"
6260 # Handle CRLF in mingw tool chain
6264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6268 # Try without a prefix underscore, then with it.
6269 for ac_symprfx in "" "_"; do
6271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6272 symxfrm="\\1 $ac_symprfx\\2 \\2"
6274 # Write the raw and C identifiers.
6275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276 # Fake it for dumpbin and say T for any non-static function
6277 # and D for any global variable.
6278 # Also find C++ and __fastcall symbols from MSVC++,
6279 # which start with @ or ?.
6280 lt_cv_sys_global_symbol_pipe="$AWK '"\
6281 " {last_section=section; section=\$ 3};"\
6282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6283 " \$ 0!~/External *\|/{next};"\
6284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285 " {if(hide[section]) next};"\
6286 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6287 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6288 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6289 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6290 " ' prfx=^$ac_symprfx"
6292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6295 # Check to see that the pipe works correctly.
6299 cat > conftest.$ac_ext <<_LT_EOF
6304 void nm_test_func(void);
6305 void nm_test_func(void){}
6309 int main(){nm_test_var='a';nm_test_func();return(0);}
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 # Now try to grab the symbols.
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; } && test -s "$nlist"; then
6324 # Try sorting and uniquifying the output.
6325 if sort "$nlist" | uniq > "$nlist"T; then
6326 mv -f "$nlist"T "$nlist"
6331 # Make sure that we snagged all the symbols we need.
6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334 cat <<_LT_EOF > conftest.$ac_ext
6340 # Now generate the symbol file.
6341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6343 cat <<_LT_EOF >> conftest.$ac_ext
6345 /* The mapping between symbol names and symbols. */
6350 lt__PROGRAM__LTX_preloaded_symbols[] =
6352 { "@PROGRAM@", (void *) 0 },
6354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6355 cat <<\_LT_EOF >> conftest.$ac_ext
6359 /* This works around a problem in FreeBSD linker */
6360 #ifdef FREEBSD_WORKAROUND
6361 static const void *lt_preloaded_setup() {
6362 return lt__PROGRAM__LTX_preloaded_symbols;
6370 # Now try linking the two files.
6371 mv conftest.$ac_objext conftstm.$ac_objext
6372 lt_save_LIBS="$LIBS"
6373 lt_save_CFLAGS="$CFLAGS"
6374 LIBS="conftstm.$ac_objext"
6375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6377 (eval $ac_link) 2>&5
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6383 LIBS="$lt_save_LIBS"
6384 CFLAGS="$lt_save_CFLAGS"
6386 echo "cannot find nm_test_func in $nlist" >&5
6389 echo "cannot find nm_test_var in $nlist" >&5
6392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395 echo "$progname: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 rm -rf conftest* conftst*
6400 # Do not use the global_symbol_pipe unless it works.
6401 if test "$pipe_works" = yes; then
6404 lt_cv_sys_global_symbol_pipe=
6410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411 lt_cv_sys_global_symbol_to_cdecl=
6413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6415 $as_echo "failed" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6418 $as_echo "ok" >&6; }
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444 enableval=$enable_libtool_lock;
6447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6449 # Some flags need to be propagated to the compiler or linker for good
6453 # Find out which ABI we are using.
6454 echo 'int i;' > conftest.$ac_ext
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6456 (eval $ac_compile) 2>&5
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; }; then
6460 case `/usr/bin/file conftest.$ac_objext` in
6472 # Find out which ABI we are using.
6473 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475 (eval $ac_compile) 2>&5
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }; then
6479 if test "$lt_cv_prog_gnu_ld" = yes; then
6480 case `/usr/bin/file conftest.$ac_objext` in
6482 LD="${LD-ld} -melf32bsmip"
6485 LD="${LD-ld} -melf32bmipn32"
6488 LD="${LD-ld} -melf64bmip"
6492 case `/usr/bin/file conftest.$ac_objext` in
6508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6510 # Find out which ABI we are using.
6511 echo 'int i;' > conftest.$ac_ext
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 case `/usr/bin/file conftest.o` in
6520 x86_64-*kfreebsd*-gnu)
6521 LD="${LD-ld} -m elf_i386_fbsd"
6524 LD="${LD-ld} -m elf_i386"
6526 ppc64-*linux*|powerpc64-*linux*)
6527 LD="${LD-ld} -m elf32ppclinux"
6530 LD="${LD-ld} -m elf_s390"
6533 LD="${LD-ld} -m elf32_sparc"
6539 x86_64-*kfreebsd*-gnu)
6540 LD="${LD-ld} -m elf_x86_64_fbsd"
6543 LD="${LD-ld} -m elf_x86_64"
6545 ppc*-*linux*|powerpc*-*linux*)
6546 LD="${LD-ld} -m elf64ppc"
6548 s390*-*linux*|s390*-*tpf*)
6549 LD="${LD-ld} -m elf64_s390"
6552 LD="${LD-ld} -m elf64_sparc"
6562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6563 SAVE_CFLAGS="$CFLAGS"
6564 CFLAGS="$CFLAGS -belf"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6567 if ${lt_cv_cc_needs_belf+:} false; then :
6568 $as_echo_n "(cached) " >&6
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6587 if ac_fn_c_try_link "$LINENO"; then :
6588 lt_cv_cc_needs_belf=yes
6590 lt_cv_cc_needs_belf=no
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6605 CFLAGS="$SAVE_CFLAGS"
6609 # Find out which ABI we are using.
6610 echo 'int i;' > conftest.$ac_ext
6611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612 (eval $ac_compile) 2>&5
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }; then
6616 case `/usr/bin/file conftest.o` in
6618 case $lt_cv_prog_gnu_ld in
6619 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6633 need_locks="$enable_libtool_lock"
6637 rhapsody* | darwin*)
6638 if test -n "$ac_tool_prefix"; then
6639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$DSYMUTIL"; then
6647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6667 if test -n "$DSYMUTIL"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6669 $as_echo "$DSYMUTIL" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6677 if test -z "$ac_cv_prog_DSYMUTIL"; then
6678 ac_ct_DSYMUTIL=$DSYMUTIL
6679 # Extract the first word of "dsymutil", so it can be a program name with args.
6680 set dummy dsymutil; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6684 $as_echo_n "(cached) " >&6
6686 if test -n "$ac_ct_DSYMUTIL"; then
6687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6707 if test -n "$ac_ct_DSYMUTIL"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6715 if test "x$ac_ct_DSYMUTIL" = x; then
6718 case $cross_compiling:$ac_tool_warned in
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6722 ac_tool_warned=yes ;;
6724 DSYMUTIL=$ac_ct_DSYMUTIL
6727 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_NMEDIT+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 if test -n "$NMEDIT"; then
6739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 NMEDIT=$ac_cv_prog_NMEDIT
6759 if test -n "$NMEDIT"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6761 $as_echo "$NMEDIT" >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6769 if test -z "$ac_cv_prog_NMEDIT"; then
6770 ac_ct_NMEDIT=$NMEDIT
6771 # Extract the first word of "nmedit", so it can be a program name with args.
6772 set dummy nmedit; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6776 $as_echo_n "(cached) " >&6
6778 if test -n "$ac_ct_NMEDIT"; then
6779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6799 if test -n "$ac_ct_NMEDIT"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6801 $as_echo "$ac_ct_NMEDIT" >&6; }
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804 $as_echo "no" >&6; }
6807 if test "x$ac_ct_NMEDIT" = x; then
6810 case $cross_compiling:$ac_tool_warned in
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814 ac_tool_warned=yes ;;
6816 NMEDIT=$ac_ct_NMEDIT
6819 NMEDIT="$ac_cv_prog_NMEDIT"
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_LIPO+:} false; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$LIPO"; then
6831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 LIPO=$ac_cv_prog_LIPO
6851 if test -n "$LIPO"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6853 $as_echo "$LIPO" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6861 if test -z "$ac_cv_prog_LIPO"; then
6863 # Extract the first word of "lipo", so it can be a program name with args.
6864 set dummy lipo; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 if test -n "$ac_ct_LIPO"; then
6871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_LIPO="lipo"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6891 if test -n "$ac_ct_LIPO"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6893 $as_echo "$ac_ct_LIPO" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6899 if test "x$ac_ct_LIPO" = x; then
6902 case $cross_compiling:$ac_tool_warned in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6911 LIPO="$ac_cv_prog_LIPO"
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}otool; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_OTOOL+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 if test -n "$OTOOL"; then
6923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 OTOOL=$ac_cv_prog_OTOOL
6943 if test -n "$OTOOL"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6945 $as_echo "$OTOOL" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6953 if test -z "$ac_cv_prog_OTOOL"; then
6955 # Extract the first word of "otool", so it can be a program name with args.
6956 set dummy otool; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6960 $as_echo_n "(cached) " >&6
6962 if test -n "$ac_ct_OTOOL"; then
6963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_OTOOL="otool"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6983 if test -n "$ac_ct_OTOOL"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6985 $as_echo "$ac_ct_OTOOL" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6991 if test "x$ac_ct_OTOOL" = x; then
6994 case $cross_compiling:$ac_tool_warned in
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
7003 OTOOL="$ac_cv_prog_OTOOL"
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_OTOOL64+:} false; then :
7012 $as_echo_n "(cached) " >&6
7014 if test -n "$OTOOL64"; then
7015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 OTOOL64=$ac_cv_prog_OTOOL64
7035 if test -n "$OTOOL64"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7037 $as_echo "$OTOOL64" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7045 if test -z "$ac_cv_prog_OTOOL64"; then
7046 ac_ct_OTOOL64=$OTOOL64
7047 # Extract the first word of "otool64", so it can be a program name with args.
7048 set dummy otool64; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7052 $as_echo_n "(cached) " >&6
7054 if test -n "$ac_ct_OTOOL64"; then
7055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_OTOOL64="otool64"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7075 if test -n "$ac_ct_OTOOL64"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7077 $as_echo "$ac_ct_OTOOL64" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7083 if test "x$ac_ct_OTOOL64" = x; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned=yes ;;
7092 OTOOL64=$ac_ct_OTOOL64
7095 OTOOL64="$ac_cv_prog_OTOOL64"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7125 $as_echo_n "checking for -single_module linker flag... " >&6; }
7126 if ${lt_cv_apple_cc_single_mod+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 lt_cv_apple_cc_single_mod=no
7130 if test -z "${LT_MULTI_MODULE}"; then
7131 # By default we will add the -single_module flag. You can override
7132 # by either setting the environment variable LT_MULTI_MODULE
7133 # non-empty at configure time, or by adding -multi_module to the
7135 rm -rf libconftest.dylib*
7136 echo "int foo(void){return 1;}" > conftest.c
7137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7138 -dynamiclib -Wl,-single_module conftest.c" >&5
7139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7142 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7143 lt_cv_apple_cc_single_mod=yes
7145 cat conftest.err >&5
7147 rm -rf libconftest.dylib*
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 lt_cv_ld_exported_symbols_list=no
7159 save_LDFLAGS=$LDFLAGS
7160 echo "_main" > conftest.sym
7161 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7173 if ac_fn_c_try_link "$LINENO"; then :
7174 lt_cv_ld_exported_symbols_list=yes
7176 lt_cv_ld_exported_symbols_list=no
7178 rm -f core conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 LDFLAGS="$save_LDFLAGS"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7186 $as_echo_n "checking for -force_load linker flag... " >&6; }
7187 if ${lt_cv_ld_force_load+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 lt_cv_ld_force_load=no
7191 cat > conftest.c << _LT_EOF
7192 int forced_loaded() { return 2;}
7194 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7195 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7196 echo "$AR cru libconftest.a conftest.o" >&5
7197 $AR cru libconftest.a conftest.o 2>&5
7198 echo "$RANLIB libconftest.a" >&5
7199 $RANLIB libconftest.a 2>&5
7200 cat > conftest.c << _LT_EOF
7201 int main() { return 0;}
7203 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7204 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7206 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7207 lt_cv_ld_force_load=yes
7209 cat conftest.err >&5
7211 rm -f conftest.err libconftest.a conftest conftest.c
7212 rm -rf conftest.dSYM
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7216 $as_echo "$lt_cv_ld_force_load" >&6; }
7218 rhapsody* | darwin1.[012])
7219 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7221 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7222 darwin*) # darwin 5.x on
7223 # if running on 10.5 or later, the deployment target defaults
7224 # to the OS version, if on x86, and 10.4, the deployment
7225 # target defaults to 10.4. Don't you love it?
7226 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7227 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7228 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7230 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7232 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7237 _lt_dar_single_mod='$single_module'
7239 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7240 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7242 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7244 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7245 _lt_dsymutil='~$DSYMUTIL $lib || :'
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7254 $as_echo_n "checking for ANSI C header files... " >&6; }
7255 if ${ac_cv_header_stdc+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_header_stdc=yes
7276 ac_cv_header_stdc=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 if test $ac_cv_header_stdc = yes; then
7281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 $EGREP "memchr" >/dev/null 2>&1; then :
7291 ac_cv_header_stdc=no
7297 if test $ac_cv_header_stdc = yes; then
7298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "free" >/dev/null 2>&1; then :
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316 if test "$cross_compiling" = yes; then :
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 #if ((' ' & 0x0FF) == 0x020)
7324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 # define ISLOWER(c) \
7328 (('a' <= (c) && (c) <= 'i') \
7329 || ('j' <= (c) && (c) <= 'r') \
7330 || ('s' <= (c) && (c) <= 'z'))
7331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7339 for (i = 0; i < 256; i++)
7340 if (XOR (islower (i), ISLOWER (i))
7341 || toupper (i) != TOUPPER (i))
7346 if ac_fn_c_try_run "$LINENO"; then :
7349 ac_cv_header_stdc=no
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7358 $as_echo "$ac_cv_header_stdc" >&6; }
7359 if test $ac_cv_header_stdc = yes; then
7361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7367 inttypes.h stdint.h unistd.h
7369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 for ac_header in dlfcn.h
7384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7409 # Check whether --enable-shared was given.
7410 if test "${enable_shared+set}" = set; then :
7411 enableval=$enable_shared; p=${PACKAGE-default}
7413 yes) enable_shared=yes ;;
7414 no) enable_shared=no ;;
7417 # Look at the argument we got. We use all the common list separators.
7418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7419 for pkg in $enableval; do
7421 if test "X$pkg" = "X$p"; then
7442 # Check whether --with-pic was given.
7443 if test "${with_pic+set}" = set; then :
7444 withval=$with_pic; pic_mode="$withval"
7450 test -z "$pic_mode" && pic_mode=default
7458 # Check whether --enable-fast-install was given.
7459 if test "${enable_fast_install+set}" = set; then :
7460 enableval=$enable_fast_install; p=${PACKAGE-default}
7462 yes) enable_fast_install=yes ;;
7463 no) enable_fast_install=no ;;
7465 enable_fast_install=no
7466 # Look at the argument we got. We use all the common list separators.
7467 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468 for pkg in $enableval; do
7470 if test "X$pkg" = "X$p"; then
7471 enable_fast_install=yes
7478 enable_fast_install=yes
7491 # This can be used to rebuild libtool when needed
7492 LIBTOOL_DEPS="$ltmain"
7494 # Always use our own libtool.
7495 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7522 test -z "$LN_S" && LN_S="ln -s"
7537 if test -n "${ZSH_VERSION+set}" ; then
7538 setopt NO_GLOB_SUBST
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7542 $as_echo_n "checking for objdir... " >&6; }
7543 if ${lt_cv_objdir+:} false; then :
7544 $as_echo_n "(cached) " >&6
7546 rm -f .libs 2>/dev/null
7547 mkdir .libs 2>/dev/null
7548 if test -d .libs; then
7551 # MS-DOS does not allow filenames that begin with a dot.
7554 rmdir .libs 2>/dev/null
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7557 $as_echo "$lt_cv_objdir" >&6; }
7558 objdir=$lt_cv_objdir
7564 cat >>confdefs.h <<_ACEOF
7565 #define LT_OBJDIR "$lt_cv_objdir/"
7573 # AIX sometimes has problems with the GCC collect2 program. For some
7574 # reason, if we set the COLLECT_NAMES environment variable, the problems
7575 # vanish in a puff of smoke.
7576 if test "X${COLLECT_NAMES+set}" != Xset; then
7578 export COLLECT_NAMES
7585 can_build_shared=yes
7587 # All known linkers require a `.a' archive for static linking (except MSVC,
7588 # which needs '.lib').
7591 with_gnu_ld="$lt_cv_prog_gnu_ld"
7594 old_CFLAGS="$CFLAGS"
7596 # Set sane defaults for various variables
7597 test -z "$CC" && CC=cc
7598 test -z "$LTCC" && LTCC=$CC
7599 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7600 test -z "$LD" && LD=ld
7601 test -z "$ac_objext" && ac_objext=o
7603 for cc_temp in $compiler""; do
7605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7611 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7614 # Only perform the check for file, if the check method requires it
7615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7616 case $deplibs_check_method in
7618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7620 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7621 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7622 $as_echo_n "(cached) " >&6
7626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7629 lt_save_MAGIC_CMD="$MAGIC_CMD"
7630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/${ac_tool_prefix}file; then
7636 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7637 if test -n "$file_magic_test_file"; then
7638 case $deplibs_check_method in
7640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643 $EGREP "$file_magic_regex" > /dev/null; then
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such. This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem. Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7665 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7683 if test -z "$lt_cv_path_MAGIC_CMD"; then
7684 if test -n "$ac_tool_prefix"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7686 $as_echo_n "checking for file... " >&6; }
7687 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7688 $as_echo_n "(cached) " >&6
7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7695 lt_save_MAGIC_CMD="$MAGIC_CMD"
7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698 for ac_dir in $ac_dummy; do
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f $ac_dir/file; then
7702 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7703 if test -n "$file_magic_test_file"; then
7704 case $deplibs_check_method in
7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709 $EGREP "$file_magic_regex" > /dev/null; then
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such. This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem. Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7731 MAGIC_CMD="$lt_save_MAGIC_CMD"
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7755 # Use C for the default configuration in the libtool script
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 # Source file extension for C test sources.
7768 # Object file extension for compiled C test sources.
7772 # Code to be used in simple compile tests
7773 lt_simple_compile_test_code="int some_variable = 0;"
7775 # Code to be used in simple link tests
7776 lt_simple_link_test_code='int main(){return(0);}'
7784 # If no C compiler was specified, use CC.
7787 # If no C compiler flags were specified, use CFLAGS.
7788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7790 # Allow CC to be a program name with arguments.
7793 # Save the default compiler, since it gets overwritten when the other
7794 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7795 compiler_DEFAULT=$CC
7797 # save warnings/boilerplate of simple test code
7798 ac_outfile=conftest.$ac_objext
7799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801 _lt_compiler_boilerplate=`cat conftest.err`
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_linker_boilerplate=`cat conftest.err`
7812 ## There is no encapsulation within the following macros, do not change
7813 ## the running order or otherwise move them around unless you know exactly
7814 ## what you are doing...
7815 if test -n "$compiler"; then
7817 lt_prog_compiler_no_builtin_flag=
7819 if test "$GCC" = yes; then
7820 case $cc_basename in
7822 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7824 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7829 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 lt_cv_prog_compiler_rtti_exceptions=no
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835 lt_compiler_flag="-fno-rtti -fno-exceptions"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>conftest.err)
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
7853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_rtti_exceptions=yes
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7865 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7878 lt_prog_compiler_wl=
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_static=
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7885 if test "$GCC" = yes; then
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_static='-static'
7891 # All AIX code is PIC.
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 now supports IA64 processor
7894 lt_prog_compiler_static='-Bstatic'
7901 # see comment about AmigaOS4 .so support
7902 lt_prog_compiler_pic='-fPIC'
7905 # FIXME: we need at least 68020 code to build shared libraries, but
7906 # adding the `-m68020' flag to GCC prevents building anything better,
7908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914 # PIC is the default for these OSes.
7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
7920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921 # (--disable-auto-import) libraries
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
7925 darwin* | rhapsody*)
7926 # PIC is the default on this platform
7927 # Common symbols not allowed in MH_DYLIB files
7928 lt_prog_compiler_pic='-fno-common'
7932 # PIC is the default for Haiku.
7933 # The "-static" flag exists, but is broken.
7934 lt_prog_compiler_static=
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7946 lt_prog_compiler_pic='-fPIC'
7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
7959 lt_prog_compiler_can_build_shared=no
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7966 lt_prog_compiler_pic='-fPIC -shared'
7970 if test -d /usr/nec; then
7971 lt_prog_compiler_pic=-Kconform_pic
7976 lt_prog_compiler_pic='-fPIC'
7980 case $cc_basename in
7981 nvcc*) # Cuda Compiler Driver 2.2
7982 lt_prog_compiler_wl='-Xlinker '
7983 lt_prog_compiler_pic='-Xcompiler -fPIC'
7987 # PORTME Check for flag to pass linker flags through the system compiler.
7990 lt_prog_compiler_wl='-Wl,'
7991 if test "$host_cpu" = ia64; then
7992 # AIX 5 now supports IA64 processor
7993 lt_prog_compiler_static='-Bstatic'
7995 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 hpux9* | hpux10* | hpux11*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8014 lt_prog_compiler_pic='+Z'
8017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 irix5* | irix6* | nonstopux*)
8022 lt_prog_compiler_wl='-Wl,'
8023 # PIC (with -KPIC) is the default.
8024 lt_prog_compiler_static='-non_shared'
8027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8028 case $cc_basename in
8029 # old Intel for x86_64 which still supported -KPIC.
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-static'
8035 # icc used to be incompatible with GCC.
8036 # ICC 10 doesn't accept -KPIC any more.
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fPIC'
8040 lt_prog_compiler_static='-static'
8042 # Lahey Fortran 8.1.
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='--shared'
8046 lt_prog_compiler_static='--static'
8048 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8049 # Portland Group compilers (*not* the Pentium gcc compiler,
8050 # which looks to be a dead project)
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-fpic'
8053 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_wl='-Wl,'
8057 # All Alpha code is PIC.
8058 lt_prog_compiler_static='-non_shared'
8060 xl* | bgxl* | bgf* | mpixl*)
8061 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-qpic'
8064 lt_prog_compiler_static='-qstaticlink'
8067 case `$CC -V 2>&1 | sed 5q` in
8068 *Sun\ F* | *Sun*Fortran*)
8069 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl=''
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 lt_prog_compiler_pic='-fPIC -shared'
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8103 lt_prog_compiler_static='-non_shared'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8110 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8111 lt_prog_compiler_wl='-Qoption ld ';;
8113 lt_prog_compiler_wl='-Wl,';;
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8153 lt_prog_compiler_can_build_shared=no
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8161 lt_prog_compiler_pic=
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8176 # Check to make sure the PIC flag actually works.
8178 if test -n "$lt_prog_compiler_pic"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_prog_compiler_pic_works=no
8185 ac_outfile=conftest.$ac_objext
8186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 # The option is referenced via a variable to avoid confusing sed.
8193 lt_compile=`echo "$ac_compile" | $SED \
8194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196 -e 's:$: $lt_compiler_flag:'`
8197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8198 (eval "$lt_compile" 2>conftest.err)
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 if (exit $ac_status) && test -s "$ac_outfile"; then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings other than the usual output.
8205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_pic_works=yes
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218 case $lt_prog_compiler_pic in
8220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_can_build_shared=no
8235 # Check to make sure the static flag actually works.
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if ${lt_cv_prog_compiler_static_works+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_static_works=no
8244 save_LDFLAGS="$LDFLAGS"
8245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248 # The linker can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 if test -s conftest.err; then
8251 # Append any errors to the config.log.
8252 cat conftest.err 1>&5
8253 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255 if diff conftest.exp conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_static_works=yes
8259 lt_cv_prog_compiler_static_works=yes
8263 LDFLAGS="$save_LDFLAGS"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8272 lt_prog_compiler_static=
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if ${lt_cv_prog_compiler_c_o+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 lt_cv_prog_compiler_c_o=no
8287 $RM -r conftest 2>/dev/null
8291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293 lt_compiler_flag="-o out/conftest2.$ac_objext"
8294 # Insert the option either (1) after the last *FLAGS variable, or
8295 # (2) before a word containing "conftest.", or (3) at the end.
8296 # Note that $ac_compile itself does not contain backslashes and begins
8297 # with a dollar sign (not a hyphen), so the echo should work correctly.
8298 lt_compile=`echo "$ac_compile" | $SED \
8299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301 -e 's:$: $lt_compiler_flag:'`
8302 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8303 (eval "$lt_compile" 2>out/conftest.err)
8305 cat out/conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 # The compiler can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314 lt_cv_prog_compiler_c_o=yes
8319 # SGI C++ compiler will create directory out/ii_files/ for
8320 # template instantiation
8321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322 $RM out/* && rmdir out
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if ${lt_cv_prog_compiler_c_o+:} false; then :
8339 $as_echo_n "(cached) " >&6
8341 lt_cv_prog_compiler_c_o=no
8342 $RM -r conftest 2>/dev/null
8346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348 lt_compiler_flag="-o out/conftest2.$ac_objext"
8349 # Insert the option either (1) after the last *FLAGS variable, or
8350 # (2) before a word containing "conftest.", or (3) at the end.
8351 # Note that $ac_compile itself does not contain backslashes and begins
8352 # with a dollar sign (not a hyphen), so the echo should work correctly.
8353 lt_compile=`echo "$ac_compile" | $SED \
8354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356 -e 's:$: $lt_compiler_flag:'`
8357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8358 (eval "$lt_compile" 2>out/conftest.err)
8360 cat out/conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364 # The compiler can only warn and ignore the option if not recognized
8365 # So say no if there are warnings
8366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369 lt_cv_prog_compiler_c_o=yes
8374 # SGI C++ compiler will create directory out/ii_files/ for
8375 # template instantiation
8376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377 $RM out/* && rmdir out
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391 # do not overwrite the value of need_locks provided by the user
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 ln conftest.a conftest.b 2>&5 || hard_links=no
8399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402 if test "$hard_links" = no; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8420 allow_undefined_flag=
8421 always_export_symbols=no
8423 archive_expsym_cmds=
8424 compiler_needs_object=no
8425 enable_shared_with_static_runtimes=no
8426 export_dynamic_flag_spec=
8427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428 hardcode_automatic=no
8430 hardcode_direct_absolute=no
8431 hardcode_libdir_flag_spec=
8432 hardcode_libdir_flag_spec_ld=
8433 hardcode_libdir_separator=
8435 hardcode_shlibpath_var=unsupported
8437 link_all_deplibs=unknown
8440 old_archive_from_new_cmds=
8441 old_archive_from_expsyms_cmds=
8442 thread_safe_flag_spec=
8443 whole_archive_flag_spec=
8444 # include_expsyms should be a list of space-separated symbols to be *always*
8445 # included in the symbol list
8447 # exclude_expsyms can be an extended regexp of symbols to exclude
8448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450 # as well as any symbol that contains `d'.
8451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453 # platforms (ab)use it in PIC code, but their linkers get confused if
8454 # the symbol is explicitly referenced. Since portable code cannot
8455 # rely on this symbol name, it's probably fine to never include it in
8456 # preloaded symbol tables.
8457 # Exclude shared library initialization/finalization symbols.
8458 extract_expsyms_cmds=
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 if test "$GCC" != yes; then
8470 # we just hope/assume this is gcc and not c89 (= MSVC++)
8480 # On some targets, GNU ld is compatible enough with the native linker
8481 # that we're better off using the native interface for both.
8482 lt_use_gnu_ld_interface=no
8483 if test "$with_gnu_ld" = yes; then
8486 # The AIX port of GNU ld has always aspired to compatibility
8487 # with the native linker. However, as the warning in the GNU ld
8488 # block says, versions before 2.19.5* couldn't really create working
8489 # shared libraries, regardless of the interface used.
8490 case `$LD -v 2>&1` in
8491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8495 lt_use_gnu_ld_interface=yes
8500 lt_use_gnu_ld_interface=yes
8505 if test "$lt_use_gnu_ld_interface" = yes; then
8506 # If archive_cmds runs LD, not CC, wlarc should be empty
8509 # Set some defaults for GNU ld with shared library support. These
8510 # are reset later if shared libraries are not supported. Putting them
8511 # here allows them to be overridden if necessary.
8512 runpath_var=LD_RUN_PATH
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 export_dynamic_flag_spec='${wl}--export-dynamic'
8515 # ancient GNU ld didn't support --whole-archive et. al.
8516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519 whole_archive_flag_spec=
8521 supports_anon_versioning=no
8522 case `$LD -v 2>&1` in
8523 *GNU\ gold*) supports_anon_versioning=yes ;;
8524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527 *\ 2.11.*) ;; # other 2.11 versions
8528 *) supports_anon_versioning=yes ;;
8531 # See if GNU ld supports shared libraries.
8534 # On AIX/PPC, the GNU linker is very broken
8535 if test "$host_cpu" != ia64; then
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support. If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8553 # see comment about AmigaOS4 .so support
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555 archive_expsym_cmds=''
8558 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)'
8559 hardcode_libdir_flag_spec='-L$libdir'
8560 hardcode_minus_L=yes
8566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567 allow_undefined_flag=unsupported
8568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569 # support --undefined. This deserves some investigation. FIXME
8570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 cygwin* | mingw* | pw32* | cegcc*)
8577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578 # as there is no search path for DLLs.
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 export_dynamic_flag_spec='${wl}--export-all-symbols'
8581 allow_undefined_flag=unsupported
8582 always_export_symbols=no
8583 enable_shared_with_static_runtimes=yes
8584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8586 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8588 # If the export-symbols file already is a .def file (1st line
8589 # is EXPORTS), use it as is; otherwise, prepend...
8590 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8591 cp $export_symbols $output_objdir/$soname.def;
8593 echo EXPORTS > $output_objdir/$soname.def;
8594 cat $export_symbols >> $output_objdir/$soname.def;
8596 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 link_all_deplibs=yes
8609 hardcode_shlibpath_var=no
8610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8611 export_dynamic_flag_spec='${wl}-E'
8612 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8613 # Instead, shared libraries are loaded at an image base (0x10000000 by
8614 # default) and relocated if they conflict, which is a slow very memory
8615 # consuming and fragmenting process. To avoid this, we pick a random,
8616 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8617 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8618 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8619 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'
8622 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8624 if test "$host_os" = linux-dietlibc; then
8625 case $cc_basename in
8626 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8629 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8630 && test "$tmp_diet" = no
8633 tmp_sharedflag='-shared'
8634 case $cc_basename,$host_cpu in
8635 pgcc*) # Portland Group C compiler
8636 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'
8637 tmp_addflag=' $pic_flag'
8639 pgf77* | pgf90* | pgf95* | pgfortran*)
8640 # Portland Group f77 and f90 compilers
8641 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'
8642 tmp_addflag=' $pic_flag -Mnomain' ;;
8643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8644 tmp_addflag=' -i_dynamic' ;;
8645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8646 tmp_addflag=' -i_dynamic -nofor_main' ;;
8647 ifc* | ifort*) # Intel Fortran compiler
8648 tmp_addflag=' -nofor_main' ;;
8649 lf95*) # Lahey Fortran 8.1
8650 whole_archive_flag_spec=
8651 tmp_sharedflag='--shared' ;;
8652 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8653 tmp_sharedflag='-qmkshrobj'
8655 nvcc*) # Cuda Compiler Driver 2.2
8656 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'
8657 compiler_needs_object=yes
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ C*) # Sun C 5.9
8662 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'
8663 compiler_needs_object=yes
8664 tmp_sharedflag='-G' ;;
8665 *Sun\ F*) # Sun Fortran 8.3
8666 tmp_sharedflag='-G' ;;
8668 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 if test "x$supports_anon_versioning" = xyes; then
8671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8677 case $cc_basename in
8678 xlf* | bgf* | bgxlf* | mpixlf*)
8679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681 hardcode_libdir_flag_spec=
8682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes; then
8685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8720 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
8728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729 case `$LD -v 2>&1` in
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 if test "$ld_shlibs" = no; then
8778 hardcode_libdir_flag_spec=
8779 export_dynamic_flag_spec=
8780 whole_archive_flag_spec=
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8795 hardcode_direct=unsupported
8800 if test "$host_cpu" = ia64; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking=no
8804 exp_sym_flag='-Bexport'
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 # Also, AIX nm treats weak defined symbols like other global
8810 # defined symbols, whereas GNU nm marks them as "W".
8811 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812 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'
8814 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'
8816 aix_use_runtimelinking=no
8818 # Test if we are trying to use run time linking or normal
8819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820 # need to do runtime linking.
8821 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822 for ld_flag in $LDFLAGS; do
8823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824 aix_use_runtimelinking=yes
8831 exp_sym_flag='-bexport'
8832 no_entry_flag='-bnoentry'
8835 # When large executables or shared objects are built, AIX ld can
8836 # have problems creating the table of contents. If linking a library
8837 # or program results in "error TOC overflow" add -mminimal-toc to
8838 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8839 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843 hardcode_direct_absolute=yes
8844 hardcode_libdir_separator=':'
8845 link_all_deplibs=yes
8846 file_list_spec='${wl}-f,'
8848 if test "$GCC" = yes; then
8849 case $host_os in aix4.[012]|aix4.[012].*)
8850 # We only want to do this on AIX 4.2 and lower, the check
8851 # below for broken collect2 doesn't work under 4.3+
8852 collect2name=`${CC} -print-prog-name=collect2`
8853 if test -f "$collect2name" &&
8854 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8856 # We have reworked collect2
8859 # We have old collect2
8860 hardcode_direct=unsupported
8861 # It fails to find uninstalled libraries when the uninstalled
8862 # path is not listed in the libpath. Setting hardcode_minus_L
8863 # to unsupported forces relinking
8864 hardcode_minus_L=yes
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_libdir_separator=
8870 shared_flag='-shared'
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag="$shared_flag "'${wl}-G'
8876 if test "$host_cpu" = ia64; then
8877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878 # chokes on -Wl,-G. The following line is correct:
8881 if test "$aix_use_runtimelinking" = yes; then
8882 shared_flag='${wl}-G'
8884 shared_flag='${wl}-bM:SRE'
8889 export_dynamic_flag_spec='${wl}-bexpall'
8890 # It seems that -bexpall does not export symbols beginning with
8891 # underscore (_), so it is better to generate a list of symbols to export.
8892 always_export_symbols=yes
8893 if test "$aix_use_runtimelinking" = yes; then
8894 # Warning - without using the other runtime loading flags (-brtl),
8895 # -berok will link without error, but may produce a broken library.
8896 allow_undefined_flag='-berok'
8897 # Determine the default libpath from the value encoded in an
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8910 if ac_fn_c_try_link "$LINENO"; then :
8912 lt_aix_libpath_sed='
8913 /Import File Strings/,/^$/ {
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 # Check for a 64-bit object if we didn't find anything.
8921 if test -z "$aix_libpath"; then
8922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925 rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8930 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"
8932 if test "$host_cpu" = ia64; then
8933 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8934 allow_undefined_flag="-z nodefs"
8935 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"
8937 # Determine the default libpath from the value encoded in an
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940 /* end confdefs.h. */
8950 if ac_fn_c_try_link "$LINENO"; 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 rm -f core conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8970 # Warning - without using the other run time loading flags,
8971 # -berok will link without error, but may produce a broken library.
8972 no_undefined_flag=' ${wl}-bernotok'
8973 allow_undefined_flag=' ${wl}-berok'
8974 if test "$with_gnu_ld" = yes; then
8975 # We only use this code for GNU lds that support --whole-archive.
8976 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8978 # Exported symbols can be pulled into shared objects from archives
8979 whole_archive_flag_spec='$convenience'
8981 archive_cmds_need_lc=yes
8982 # This is similar to how AIX traditionally builds its shared libraries.
8983 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'
8991 # see comment about AmigaOS4 .so support
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds=''
8996 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)'
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_minus_L=yes
9004 export_dynamic_flag_spec=-rdynamic
9007 cygwin* | mingw* | pw32* | cegcc*)
9008 # When not using gcc, we currently assume that we are using
9009 # Microsoft Visual C++.
9010 # hardcode_libdir_flag_spec is actually meaningless, as there is
9011 # no search path for DLLs.
9012 hardcode_libdir_flag_spec=' '
9013 allow_undefined_flag=unsupported
9014 # Tell ltmain to make .lib files, not .a files.
9016 # Tell ltmain to make .dll files, not .so files.
9018 # FIXME: Setting linknames here is a bad hack.
9019 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9020 # The linker will automatically build a .lib file if we build a DLL.
9021 old_archive_from_new_cmds='true'
9022 # FIXME: Should let the user specify the lib program.
9023 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024 fix_srcfile_path='`cygpath -w "$srcfile"`'
9025 enable_shared_with_static_runtimes=yes
9028 darwin* | rhapsody*)
9031 archive_cmds_need_lc=no
9033 hardcode_automatic=yes
9034 hardcode_shlibpath_var=unsupported
9035 if test "$lt_cv_ld_force_load" = "yes"; then
9036 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\"`'
9038 whole_archive_flag_spec=''
9040 link_all_deplibs=yes
9041 allow_undefined_flag="$_lt_dar_allow_undefined"
9042 case $cc_basename in
9043 ifort*) _lt_dar_can_shared=yes ;;
9044 *) _lt_dar_can_shared=$GCC ;;
9046 if test "$_lt_dar_can_shared" = "yes"; then
9047 output_verbose_link_cmd=func_echo_all
9048 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050 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}"
9051 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}"
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_shlibpath_var=no
9069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070 # support. Future versions do this automatically, but an explicit c++rt0.o
9071 # does not break anything, and helps significantly (at the cost of a little
9074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075 hardcode_libdir_flag_spec='-R$libdir'
9077 hardcode_shlibpath_var=no
9080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_minus_L=yes
9085 hardcode_shlibpath_var=no
9088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089 freebsd* | dragonfly*)
9090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9091 hardcode_libdir_flag_spec='-R$libdir'
9093 hardcode_shlibpath_var=no
9097 if test "$GCC" = yes; then
9098 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'
9100 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'
9102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_separator=:
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9109 export_dynamic_flag_spec='${wl}-E'
9113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118 if test "$with_gnu_ld" = no; then
9119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120 hardcode_libdir_flag_spec_ld='+b $libdir'
9121 hardcode_libdir_separator=:
9123 hardcode_direct_absolute=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154 # Older versions of the 11.00 compiler do not understand -b yet
9155 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 lt_cv_prog_compiler__b=no
9162 save_LDFLAGS="$LDFLAGS"
9163 LDFLAGS="$LDFLAGS -b"
9164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166 # The linker can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 if test -s conftest.err; then
9169 # Append any errors to the config.log.
9170 cat conftest.err 1>&5
9171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173 if diff conftest.exp conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler__b=yes
9177 lt_cv_prog_compiler__b=yes
9181 LDFLAGS="$save_LDFLAGS"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 if test "$with_gnu_ld" = no; then
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator=:
9203 hardcode_shlibpath_var=no
9207 hardcode_direct_absolute=yes
9208 export_dynamic_flag_spec='${wl}-E'
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L=yes
9218 irix5* | irix6* | nonstopux*)
9219 if test "$GCC" = yes; then
9220 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'
9221 # Try to use the -exported_symbol ld option, if it does not
9222 # work, assume that -exports_file does not work either and
9223 # implicitly export all symbols.
9224 save_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 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'
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LDFLAGS="$save_LDFLAGS"
9238 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'
9239 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'
9241 archive_cmds_need_lc='no'
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 hardcode_libdir_separator=:
9245 link_all_deplibs=yes
9249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9254 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_shlibpath_var=no
9260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 hardcode_libdir_separator=:
9264 hardcode_shlibpath_var=no
9271 if test -f /usr/libexec/ld.so; then
9273 hardcode_shlibpath_var=no
9274 hardcode_direct_absolute=yes
9275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279 export_dynamic_flag_spec='${wl}-E'
9282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_libdir_flag_spec='-R$libdir'
9287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9300 allow_undefined_flag=unsupported
9301 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'
9302 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9306 if test "$GCC" = yes; then
9307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9308 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'
9310 allow_undefined_flag=' -expect_unresolved \*'
9311 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'
9313 archive_cmds_need_lc='no'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 hardcode_libdir_separator=:
9318 osf4* | osf5*) # as osf3* with the addition of -msym flag
9319 if test "$GCC" = yes; then
9320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321 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'
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 allow_undefined_flag=' -expect_unresolved \*'
9325 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'
9326 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~
9327 $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'
9329 # Both c and cxx compiler support -rpath directly
9330 hardcode_libdir_flag_spec='-rpath $libdir'
9332 archive_cmds_need_lc='no'
9333 hardcode_libdir_separator=:
9337 no_undefined_flag=' -z defs'
9338 if test "$GCC" = yes; then
9340 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9342 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344 case `$CC -V 2>&1` in
9347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9353 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9359 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_shlibpath_var=no
9362 solaris2.[0-5] | solaris2.[0-5].*) ;;
9364 # The compiler driver will combine and reorder linker options,
9365 # but understands `-z linker_flag'. GCC discards it without `$wl',
9366 # but is careful enough not to reorder.
9367 # Supported since Solaris 2.6 (maybe 2.5.1?)
9368 if test "$GCC" = yes; then
9369 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9375 link_all_deplibs=yes
9379 if test "x$host_vendor" = xsequent; then
9380 # Use $CC to link under sequent, because it throws in some extra .o
9381 # files that make .init and .fini sections work.
9382 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_minus_L=yes
9389 hardcode_shlibpath_var=no
9393 case $host_vendor in
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_direct=yes # is this really true???
9399 ## LD is ld it makes a PLAMLIB
9400 ## CC just makes a GrossModule.
9401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9402 reload_cmds='$CC -r -o $output$reload_objs'
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9410 runpath_var='LD_RUN_PATH'
9411 hardcode_shlibpath_var=no
9415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_shlibpath_var=no
9417 export_dynamic_flag_spec='-Bexport'
9421 if test -d /usr/nec; then
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_shlibpath_var=no
9424 runpath_var=LD_RUN_PATH
9425 hardcode_runpath_var=yes
9430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9431 no_undefined_flag='${wl}-z,text'
9432 archive_cmds_need_lc=no
9433 hardcode_shlibpath_var=no
9434 runpath_var='LD_RUN_PATH'
9436 if test "$GCC" = yes; then
9437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 sysv5* | sco3.2v5* | sco5v6*)
9446 # Note: We can NOT use -z defs as we might desire, because we do not
9447 # link with -lc, and that would cause any symbols used from libc to
9448 # always be unresolved, which means just about no library would
9449 # ever link correctly. If we're not using GNU ld we use -z text
9450 # though, which does catch some bad symbols but isn't as heavy-handed
9452 no_undefined_flag='${wl}-z,text'
9453 allow_undefined_flag='${wl}-z,nodefs'
9454 archive_cmds_need_lc=no
9455 hardcode_shlibpath_var=no
9456 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9457 hardcode_libdir_separator=':'
9458 link_all_deplibs=yes
9459 export_dynamic_flag_spec='${wl}-Bexport'
9460 runpath_var='LD_RUN_PATH'
9462 if test "$GCC" = yes; then
9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_shlibpath_var=no
9482 if test x$host_vendor = xsni; then
9484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9485 export_dynamic_flag_spec='${wl}-Blargedynsym'
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9492 $as_echo "$ld_shlibs" >&6; }
9493 test "$ld_shlibs" = no && can_build_shared=no
9495 with_gnu_ld=$with_gnu_ld
9512 # Do we need to explicitly link libc?
9514 case "x$archive_cmds_need_lc" in
9516 # Assume -lc should be added
9517 archive_cmds_need_lc=yes
9519 if test "$enable_shared" = yes && test "$GCC" = yes; then
9520 case $archive_cmds in
9522 # FIXME: we may have to deal with multi-command sequences.
9525 # Test whether the compiler implicitly links with -lc since on some
9526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9527 # to ld, don't add -lc before -lgcc.
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9530 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9531 $as_echo_n "(cached) " >&6
9534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9537 (eval $ac_compile) 2>&5
9539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9540 test $ac_status = 0; } 2>conftest.err; then
9543 libobjs=conftest.$ac_objext
9545 wl=$lt_prog_compiler_wl
9546 pic_flag=$lt_prog_compiler_pic
9552 lt_save_allow_undefined_flag=$allow_undefined_flag
9553 allow_undefined_flag=
9554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9558 test $ac_status = 0; }
9560 lt_cv_archive_cmds_need_lc=no
9562 lt_cv_archive_cmds_need_lc=yes
9564 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 cat conftest.err 1>&5
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9572 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9573 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9737 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9739 if test "$GCC" = yes; then
9741 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9742 *) lt_awk_arg="/^libraries:/" ;;
9745 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9746 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9749 case $lt_search_path_spec in
9751 # if the path contains ";" then we assume it to be the separator
9752 # otherwise default to the standard path separator (i.e. ":") - it is
9753 # assumed that no part of a normal pathname contains ";" but that should
9754 # okay in the real world where ";" in dirpaths is itself problematic.
9755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9761 # Ok, now we have the path, separated by spaces, we can step through it
9762 # and add multilib dir if necessary.
9763 lt_tmp_lt_search_path_spec=
9764 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9765 for lt_sys_path in $lt_search_path_spec; do
9766 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9767 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 test -d "$lt_sys_path" && \
9770 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9773 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9774 BEGIN {RS=" "; FS="/|\n";} {
9777 for (lt_i = NF; lt_i > 0; lt_i--) {
9778 if ($lt_i != "" && $lt_i != ".") {
9779 if ($lt_i == "..") {
9782 if (lt_count == 0) {
9783 lt_foo="/" $lt_i lt_foo;
9790 if (lt_foo != "") { lt_freq[lt_foo]++; }
9791 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9793 # AWK program above erroneously prepends '/' to C:/dos/paths
9796 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9797 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9801 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9804 libname_spec='lib$name'
9812 shlibpath_overrides_runpath=unknown
9814 dynamic_linker="$host_os ld.so"
9815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9816 need_lib_prefix=unknown
9817 hardcode_into_libs=no
9819 # when you set need_version to no, make sure it does not cause -set_version
9820 # flags to be left without arguments
9821 need_version=unknown
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9827 shlibpath_var=LIBPATH
9829 # AIX 3 has no versioning support, so we append a major version to the name.
9830 soname_spec='${libname}${release}${shared_ext}$major'
9837 hardcode_into_libs=yes
9838 if test "$host_cpu" = ia64; then
9839 # AIX 5 supports IA64
9840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9841 shlibpath_var=LD_LIBRARY_PATH
9843 # With GCC up to 2.95.x, collect2 would create an import file
9844 # for dependence libraries. The import file would start with
9845 # the line `#! .'. This would cause the generated library to
9846 # depend on `.', always an invalid library. This was fixed in
9847 # development snapshots of GCC prior to 3.0.
9849 aix4 | aix4.[01] | aix4.[01].*)
9850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9860 # soname into executable. Probably we can add versioning support to
9861 # collect2, so additional links can be useful in future.
9862 if test "$aix_use_runtimelinking" = yes; then
9863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9864 # instead of lib<name>.a to let people know that these are not
9865 # typical AIX shared libraries.
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 # We preserve .a as extension for shared libraries through AIX4.2
9869 # and later when we are not doing run time linking.
9870 library_names_spec='${libname}${release}.a $libname.a'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LIBPATH
9880 # Since July 2007 AmigaOS4 officially supports .so libraries.
9881 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 library_names_spec='$libname.ixlibrary $libname.a'
9886 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9887 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'
9893 library_names_spec='${libname}${shared_ext}'
9894 dynamic_linker="$host_os ld.so"
9895 shlibpath_var=LIBRARY_PATH
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9907 # the default ld.so.conf also contains /usr/contrib/lib and
9908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9909 # libtool to hard-code these into programs
9912 cygwin* | mingw* | pw32* | cegcc*)
9913 version_type=windows
9918 case $GCC,$host_os in
9919 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9920 library_names_spec='$libname.dll.a'
9921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922 postinstall_cmds='base_file=`basename \${file}`~
9923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9924 dldir=$destdir/`dirname \$dlpath`~
9925 test -d \$dldir || mkdir -p \$dldir~
9926 $install_prog $dir/$dlname \$dldir/$dlname~
9927 chmod a+x \$dldir/$dlname~
9928 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9929 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9932 dlpath=$dir/\$dldll~
9934 shlibpath_overrides_runpath=yes
9938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9939 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9944 # MinGW DLLs use traditional 'lib' prefix
9945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948 # pw32 DLLs use 'pw' prefix rather than 'lib'
9949 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9958 dynamic_linker='Win32 ld.exe'
9959 # FIXME: first we should search . and the directory the executable is in
9963 darwin* | rhapsody*)
9964 dynamic_linker="$host_os dyld"
9968 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9969 soname_spec='${libname}${release}${major}$shared_ext'
9970 shlibpath_overrides_runpath=yes
9971 shlibpath_var=DYLD_LIBRARY_PATH
9972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9991 freebsd* | dragonfly*)
9992 # DragonFly does not have aout. When/if they implement a new
9993 # versioning mechanism, adjust this.
9994 if test -x /usr/bin/objformat; then
9995 objformat=`/usr/bin/objformat`
9998 freebsd[123]*) objformat=aout ;;
10002 version_type=freebsd-$objformat
10003 case $version_type in
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10014 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes
10019 freebsd3.[01]* | freebsdelf3.[01]*)
10020 shlibpath_overrides_runpath=yes
10021 hardcode_into_libs=yes
10023 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025 shlibpath_overrides_runpath=no
10026 hardcode_into_libs=yes
10028 *) # from 4.6 on, and DragonFly
10029 shlibpath_overrides_runpath=yes
10030 hardcode_into_libs=yes
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 hardcode_into_libs=yes
10049 dynamic_linker="$host_os runtime_loader"
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10055 hardcode_into_libs=yes
10058 hpux9* | hpux10* | hpux11*)
10059 # Give a soname corresponding to the major version so that dld.sl refuses to
10060 # link against other versions.
10067 hardcode_into_libs=yes
10068 dynamic_linker="$host_os dld.so"
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 if test "X$HPUX_IA64_MODE" = X32; then
10074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10082 hardcode_into_libs=yes
10083 dynamic_linker="$host_os dld.sl"
10084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10093 dynamic_linker="$host_os dld.sl"
10094 shlibpath_var=SHLIB_PATH
10095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10100 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10101 postinstall_cmds='chmod 555 $lib'
10102 # or fails outright, so override atomically:
10103 install_override_mode=555
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 shlibpath_overrides_runpath=no
10115 hardcode_into_libs=yes
10118 irix5* | irix6* | nonstopux*)
10120 nonstopux*) version_type=nonstopux ;;
10122 if test "$lt_cv_prog_gnu_ld" = yes; then
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10133 irix5* | nonstopux*)
10134 libsuff= shlibsuff=
10137 case $LD in # libtool.m4 will add one of these switches to LD
10138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10139 libsuff= shlibsuff= libmagic=32-bit;;
10140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10141 libsuff=32 shlibsuff=N32 libmagic=N32;;
10142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10144 *) libsuff= shlibsuff= libmagic=never-match;;
10148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10149 shlibpath_overrides_runpath=no
10150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10152 hardcode_into_libs=yes
10155 # No shared lib support for Linux oldld, aout, or coff.
10156 linux*oldld* | linux*aout* | linux*coff*)
10160 # This must be Linux ELF.
10161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10168 shlibpath_var=LD_LIBRARY_PATH
10169 shlibpath_overrides_runpath=no
10171 # Some binutils ld are patched to set DT_RUNPATH
10172 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 lt_cv_shlibpath_overrides_runpath=no
10176 save_LDFLAGS=$LDFLAGS
10177 save_libdir=$libdir
10178 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10179 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10193 lt_cv_shlibpath_overrides_runpath=yes
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LDFLAGS=$save_LDFLAGS
10199 libdir=$save_libdir
10203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10205 # This implies no fast_install, which is unacceptable.
10206 # Some rework will be needed to allow for fast_install
10207 # before this can be enabled.
10208 hardcode_into_libs=yes
10210 # Append ld.so.conf contents to the search path
10211 if test -f /etc/ld.so.conf; then
10212 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' ' '`
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10216 # We used to test for /lib/ld.so.1 and disable shared libraries on
10217 # powerpc, because MkLinux only supported shared libraries with the
10218 # GNU dynamic linker. Since this was broken with cross compilers,
10219 # most powerpc-linux boxes support dynamic linking these days and
10220 # people can always --disable-shared, the test was removed, and we
10221 # assume the GNU/Linux dynamic linker is in use.
10222 dynamic_linker='GNU/Linux ld.so'
10229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 dynamic_linker='NetBSD (a.out) ld.so'
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 dynamic_linker='NetBSD ld.elf_so'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=no
10258 hardcode_into_libs=yes
10259 dynamic_linker='ldqnx.so'
10264 sys_lib_dlsearch_path_spec="/usr/lib"
10266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10268 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10269 *) need_version=no ;;
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10276 openbsd2.[89] | openbsd2.[89].*)
10277 shlibpath_overrides_runpath=no
10280 shlibpath_overrides_runpath=yes
10284 shlibpath_overrides_runpath=yes
10289 libname_spec='$name'
10292 library_names_spec='$libname${shared_ext} $libname.a'
10293 dynamic_linker='OS/2 ld.exe'
10294 shlibpath_var=LIBPATH
10297 osf3* | osf4* | osf5*)
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 # ldd complains unless libraries are executable
10322 postinstall_cmds='chmod +x $lib'
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 if test "$with_gnu_ld" = yes; then
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 case $host_vendor in
10344 shlibpath_overrides_runpath=no
10346 runpath_var=LD_RUN_PATH
10354 shlibpath_overrides_runpath=no
10355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10361 if test -d /usr/nec ;then
10363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10364 soname_spec='$libname${shared_ext}.$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10370 version_type=freebsd-elf
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10378 if test "$with_gnu_ld" = yes; then
10379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10388 sys_lib_dlsearch_path_spec='/usr/lib'
10392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=no
10399 hardcode_into_libs=yes
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10414 $as_echo "$dynamic_linker" >&6; }
10415 test "$dynamic_linker" = no && can_build_shared=no
10417 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10418 if test "$GCC" = yes; then
10419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10422 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10425 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10521 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10523 if test -n "$hardcode_libdir_flag_spec" ||
10524 test -n "$runpath_var" ||
10525 test "X$hardcode_automatic" = "Xyes" ; then
10527 # We can hardcode non-existent directories.
10528 if test "$hardcode_direct" != no &&
10529 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10530 # have to relink, otherwise we might link with an installed library
10531 # when we should be linking with a yet-to-be-installed one
10532 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10533 test "$hardcode_minus_L" != no; then
10534 # Linking always hardcodes the temporary library directory.
10535 hardcode_action=relink
10537 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10538 hardcode_action=immediate
10541 # We cannot hardcode anything, or else we can only hardcode existing
10543 hardcode_action=unsupported
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10546 $as_echo "$hardcode_action" >&6; }
10548 if test "$hardcode_action" = relink ||
10549 test "$inherit_rpath" = yes; then
10550 # Fast installation is not supported
10551 enable_fast_install=no
10552 elif test "$shlibpath_overrides_runpath" = yes ||
10553 test "$enable_shared" = no; then
10554 # Fast installation is not necessary
10555 enable_fast_install=needless
10563 if test "x$enable_dlopen" != xyes; then
10564 enable_dlopen=unknown
10565 enable_dlopen_self=unknown
10566 enable_dlopen_self_static=unknown
10573 lt_cv_dlopen="load_add_on"
10575 lt_cv_dlopen_self=yes
10578 mingw* | pw32* | cegcc*)
10579 lt_cv_dlopen="LoadLibrary"
10584 lt_cv_dlopen="dlopen"
10589 # if libdl is installed we need to link against it
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10592 if ${ac_cv_lib_dl_dlopen+:} false; then :
10593 $as_echo_n "(cached) " >&6
10595 ac_check_lib_save_LIBS=$LIBS
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 ac_cv_lib_dl_dlopen=yes
10618 ac_cv_lib_dl_dlopen=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10630 lt_cv_dlopen="dyld"
10632 lt_cv_dlopen_self=yes
10639 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10640 if test "x$ac_cv_func_shl_load" = xyes; then :
10641 lt_cv_dlopen="shl_load"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10644 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10645 if ${ac_cv_lib_dld_shl_load+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 ac_check_lib_save_LIBS=$LIBS
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10663 return shl_load ();
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_dld_shl_load=yes
10671 ac_cv_lib_dld_shl_load=no
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10679 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10680 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10682 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10683 if test "x$ac_cv_func_dlopen" = xyes; then :
10684 lt_cv_dlopen="dlopen"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10687 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10688 if ${ac_cv_lib_dl_dlopen+:} false; then :
10689 $as_echo_n "(cached) " >&6
10691 ac_check_lib_save_LIBS=$LIBS
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_dl_dlopen=yes
10714 ac_cv_lib_dl_dlopen=no
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10727 if ${ac_cv_lib_svld_dlopen+:} false; then :
10728 $as_echo_n "(cached) " >&6
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-lsvld $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_lib_svld_dlopen=yes
10753 ac_cv_lib_svld_dlopen=no
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10761 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10765 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10766 if ${ac_cv_lib_dld_dld_link+:} false; then :
10767 $as_echo_n "(cached) " >&6
10769 ac_check_lib_save_LIBS=$LIBS
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10784 return dld_link ();
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_dld_dld_link=yes
10792 ac_cv_lib_dld_dld_link=no
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10800 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10801 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10822 if test "x$lt_cv_dlopen" != xno; then
10828 case $lt_cv_dlopen in
10830 save_CPPFLAGS="$CPPFLAGS"
10831 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10833 save_LDFLAGS="$LDFLAGS"
10834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10837 LIBS="$lt_cv_dlopen_libs $LIBS"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10841 if ${lt_cv_dlopen_self+:} false; then :
10842 $as_echo_n "(cached) " >&6
10844 if test "$cross_compiling" = yes; then :
10845 lt_cv_dlopen_self=cross
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<_LT_EOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10860 # define LT_DLGLOBAL RTLD_GLOBAL
10863 # define LT_DLGLOBAL DL_GLOBAL
10865 # define LT_DLGLOBAL 0
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870 find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10876 # define LT_DLLAZY_OR_NOW DL_LAZY
10879 # define LT_DLLAZY_OR_NOW RTLD_NOW
10882 # define LT_DLLAZY_OR_NOW DL_NOW
10884 # define LT_DLLAZY_OR_NOW 0
10891 /* When -fvisbility=hidden is used, assume the code has been annotated
10892 correspondingly for the symbols needed. */
10893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894 void fnord () __attribute__((visibility("default")));
10897 void fnord () { int i=42; }
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 else puts (dlerror ());
10911 /* dlclose (self); */
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920 (eval $ac_link) 2>&5
10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924 (./conftest; exit; ) >&5 2>/dev/null
10926 case x$lt_status in
10927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10932 # compilation failed
10933 lt_cv_dlopen_self=no
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10941 $as_echo "$lt_cv_dlopen_self" >&6; }
10943 if test "x$lt_cv_dlopen_self" = xyes; then
10944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10947 if ${lt_cv_dlopen_self_static+:} false; then :
10948 $as_echo_n "(cached) " >&6
10950 if test "$cross_compiling" = yes; then :
10951 lt_cv_dlopen_self_static=cross
10953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10954 lt_status=$lt_dlunknown
10955 cat > conftest.$ac_ext <<_LT_EOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10966 # define LT_DLGLOBAL RTLD_GLOBAL
10969 # define LT_DLGLOBAL DL_GLOBAL
10971 # define LT_DLGLOBAL 0
10975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10976 find out it does not work in some platform. */
10977 #ifndef LT_DLLAZY_OR_NOW
10979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10982 # define LT_DLLAZY_OR_NOW DL_LAZY
10985 # define LT_DLLAZY_OR_NOW RTLD_NOW
10988 # define LT_DLLAZY_OR_NOW DL_NOW
10990 # define LT_DLLAZY_OR_NOW 0
10997 /* When -fvisbility=hidden is used, assume the code has been annotated
10998 correspondingly for the symbols needed. */
10999 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11000 void fnord () __attribute__((visibility("default")));
11003 void fnord () { int i=42; }
11006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007 int status = $lt_dlunknown;
11011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11015 else puts (dlerror ());
11017 /* dlclose (self); */
11025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11026 (eval $ac_link) 2>&5
11028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11030 (./conftest; exit; ) >&5 2>/dev/null
11032 case x$lt_status in
11033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11038 # compilation failed
11039 lt_cv_dlopen_self_static=no
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11050 CPPFLAGS="$save_CPPFLAGS"
11051 LDFLAGS="$save_LDFLAGS"
11056 case $lt_cv_dlopen_self in
11057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11058 *) enable_dlopen_self=unknown ;;
11061 case $lt_cv_dlopen_self_static in
11062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11063 *) enable_dlopen_self_static=unknown ;;
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11088 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11089 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11093 # FIXME - insert some real tests, host_os isn't really good enough
11096 if test -n "$STRIP" ; then
11097 striplib="$STRIP -x"
11098 old_striplib="$STRIP -S"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11100 $as_echo "yes" >&6; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11124 # Report which library types will actually be built
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11128 $as_echo "$can_build_shared" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11131 $as_echo_n "checking whether to build shared libraries... " >&6; }
11132 test "$can_build_shared" = "no" && enable_shared=no
11134 # On AIX, shared libraries and static libraries use the same namespace, and
11135 # are all built from PIC.
11138 test "$enable_shared" = yes && enable_static=no
11139 if test -n "$RANLIB"; then
11140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11141 postinstall_cmds='$RANLIB $lib'
11146 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11147 test "$enable_shared" = yes && enable_static=no
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11152 $as_echo "$enable_shared" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11155 $as_echo_n "checking whether to build static libraries... " >&6; }
11156 # Make sure either enable_shared or enable_static is yes.
11157 test "$enable_shared" = yes || enable_static=yes
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11159 $as_echo "$enable_static" >&6; }
11166 ac_cpp='$CPP $CPPFLAGS'
11167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11185 ac_config_commands="$ac_config_commands libtool"
11190 # Only expand once:
11194 target=$save_target
11196 if test "$enable_static" = yes; then
11197 SASL_STATIC_LIBS=libsasl2.a
11202 # Check whether --enable-staticdlopen was given.
11203 if test "${enable_staticdlopen+set}" = set; then :
11204 enableval=$enable_staticdlopen; enable_staticdlopen=$enableval
11206 enable_staticdlopen=no
11210 if test "$enable_staticdlopen" = yes; then
11212 $as_echo "#define TRY_DLOPEN_WHEN_STATIC /**/" >>confdefs.h
11216 if test "$ac_cv_c_compiler_gnu" = yes; then
11217 CFLAGS="-Wall -W ${CFLAGS}"
11221 # Check whether --with-purecov was given.
11222 if test "${with_purecov+set}" = set; then :
11223 withval=$with_purecov;
11226 if test "$with_purecov" = yes; then
11227 for ac_prog in purecov
11229 # Extract the first word of "$ac_prog", so it can be a program name with args.
11230 set dummy $ac_prog; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_PURECOV+:} false; then :
11234 $as_echo_n "(cached) " >&6
11236 if test -n "$PURECOV"; then
11237 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test.
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246 ac_cv_prog_PURECOV="$ac_prog"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 PURECOV=$ac_cv_prog_PURECOV
11257 if test -n "$PURECOV"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURECOV" >&5
11259 $as_echo "$PURECOV" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11266 test -n "$PURECOV" && break
11271 # Check whether --with-purify was given.
11272 if test "${with_purify+set}" = set; then :
11273 withval=$with_purify;
11276 if test "$with_purify" = yes; then
11277 for ac_prog in purify
11279 # Extract the first word of "$ac_prog", so it can be a program name with args.
11280 set dummy $ac_prog; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_PURIFY+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 if test -n "$PURIFY"; then
11287 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_prog_PURIFY="$ac_prog"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 PURIFY=$ac_cv_prog_PURIFY
11307 if test -n "$PURIFY"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PURIFY" >&5
11309 $as_echo "$PURIFY" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11316 test -n "$PURIFY" && break
11321 # Check whether --enable-java was given.
11322 if test "${enable_java+set}" = set; then :
11323 enableval=$enable_java; enable_java=$enableval
11328 if test "$enable_java" = yes; then
11329 # Extract the first word of "javac", so it can be a program name with args.
11330 set dummy javac; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_JAVAC+:} false; then :
11334 $as_echo_n "(cached) " >&6
11338 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11345 test -z "$as_dir" && as_dir=.
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11348 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no"
11360 JAVAC=$ac_cv_path_JAVAC
11361 if test -n "$JAVAC"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
11363 $as_echo "$JAVAC" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11370 for ac_prog in javah kaffeh
11372 # Extract the first word of "$ac_prog", so it can be a program name with args.
11373 set dummy $ac_prog; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_path_JAVAH+:} false; then :
11377 $as_echo_n "(cached) " >&6
11381 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
11384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385 for as_dir in $PATH
11388 test -z "$as_dir" && as_dir=.
11389 for ac_exec_ext in '' $ac_executable_extensions; do
11390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11391 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 JAVAH=$ac_cv_path_JAVAH
11403 if test -n "$JAVAH"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
11405 $as_echo "$JAVAH" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11412 test -n "$JAVAH" && break
11414 test -n "$JAVAH" || JAVAH="no"
11416 for ac_prog in javadoc
11418 # Extract the first word of "$ac_prog", so it can be a program name with args.
11419 set dummy $ac_prog; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if ${ac_cv_prog_JAVADOC+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 if test -n "$JAVADOC"; then
11426 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test.
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_prog_JAVADOC="$ac_prog"
11436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 JAVADOC=$ac_cv_prog_JAVADOC
11446 if test -n "$JAVADOC"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
11448 $as_echo "$JAVADOC" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11455 test -n "$JAVADOC" && break
11457 test -n "$JAVADOC" || JAVADOC=":"
11459 if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Java support" >&5
11461 $as_echo "$as_me: WARNING: Disabling Java support" >&2;}
11465 # Make distcheck work
11470 if test "$enable_java" = yes; then
11479 if test "$enable_java" = yes; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JNI cpp flags" >&5
11481 $as_echo_n "checking JNI cpp flags... " >&6; }
11482 if ${sasl_cv_java_includes+:} false; then :
11483 $as_echo_n "(cached) " >&6
11486 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then
11487 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'`
11489 java_base=`echo $JAVAC | sed 's,/bin.*,'','`
11492 # Check whether --with-javabase was given.
11493 if test "${with_javabase+set}" = set; then :
11494 withval=$with_javabase; java_base=$withval
11499 sasl_cv_java_includes=''
11500 for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do
11501 sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir"
11505 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include"
11509 JAVA_INCLUDES=$sasl_cv_java_includes
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11512 $as_echo "ok" >&6; }
11516 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'`
11517 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'`
11520 if test "$enable_sample" = yes; then
11532 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
11533 if test "x$ac_cv_func_connect" = xyes; then :
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
11537 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11538 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
11539 $as_echo_n "(cached) " >&6
11541 ac_check_lib_save_LIBS=$LIBS
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11552 char gethostbyname ();
11556 return gethostbyname ();
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_nsl_gethostbyname=yes
11564 ac_cv_lib_nsl_gethostbyname=no
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
11571 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11572 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
11573 LIB_SOCKET="-lnsl $LIB_SOCKET"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
11577 $as_echo_n "checking for connect in -lsocket... " >&6; }
11578 if ${ac_cv_lib_socket_connect+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lsocket $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_socket_connect=yes
11604 ac_cv_lib_socket_connect=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
11611 $as_echo "$ac_cv_lib_socket_connect" >&6; }
11612 if test "x$ac_cv_lib_socket_connect" = xyes; then :
11613 LIB_SOCKET="-lsocket $LIB_SOCKET"
11619 LIBS="$LIB_SOCKET $save_LIBS"
11620 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
11621 if test "x$ac_cv_func_res_search" = xyes; then :
11624 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 #include <netinet/in.h>
11630 #include <arpa/nameser.h>
11631 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
11632 #include <arpa/nameser_compat.h>
11634 #include <resolv.h>
11639 const char host[12]="openafs.org";
11641 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 LIB_SOCKET="-lresolv $LIB_SOCKET"
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11656 LIBS="$LIB_SOCKET $save_LIBS"
11657 for ac_func in dn_expand dns_lookup
11659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11661 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11675 # Check whether --with-dbpath was given.
11676 if test "${with_dbpath+set}" = set; then :
11677 withval=$with_dbpath; dbpath=$withval
11679 dbpath=/etc/sasldb2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
11683 $as_echo_n "checking DB path to use... " >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
11685 $as_echo "$dbpath" >&6; }
11687 cat >>confdefs.h <<_ACEOF
11688 #define SASL_DB_PATH "$dbpath"
11692 cmu_save_LIBS="$LIBS"
11694 # Check whether --with-dblib was given.
11695 if test "${with_dblib+set}" = set; then :
11696 withval=$with_dblib; dblib=$withval
11704 # Check whether --with-bdb-libdir was given.
11705 if test "${with_bdb_libdir+set}" = set; then :
11706 withval=$with_bdb_libdir; with_bdb_lib=$withval
11708 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
11712 # Check whether --with-bdb-incdir was given.
11713 if test "${with_bdb_incdir+set}" = set; then :
11714 withval=$with_bdb_incdir; with_bdb_inc=$withval
11716 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
11728 cmu_save_CPPFLAGS=$CPPFLAGS
11730 if test -d $with_bdb_inc; then
11731 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11732 BDB_INCADD="-I$with_bdb_inc"
11737 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11738 if test "x$ac_cv_header_db_h" = xyes; then :
11740 BDB_SAVE_LDFLAGS=$LDFLAGS
11742 if test -d $with_bdb_lib; then
11744 # this is CMU ADD LIBPATH TO
11745 if test "$andrew_runpath_switch" = "none" ; then
11746 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11748 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11752 # this is CMU ADD LIBPATH TO
11753 if test "$andrew_runpath_switch" = "none" ; then
11754 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11756 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11764 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
11766 LIBS="$saved_LIBS -l$dbname"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11773 db_create(NULL, NULL, 0);
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 if test "$dblib" = "berkeley"; then break; fi
11787 if test "$dblib" = "no"; then
11788 LIBS="$saved_LIBS -ldb"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11795 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11810 LDFLAGS=$BDB_SAVE_LDFLAGS
11818 CPPFLAGS=$cmu_save_CPPFLAGS
11820 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
11821 SASL_DB_INC=$BDB_INCADD
11822 SASL_DB_LIB="${BDB_LIBADD}"
11826 # Check whether --with-gdbm was given.
11827 if test "${with_gdbm+set}" = set; then :
11828 withval=$with_gdbm; with_gdbm="${withval}"
11832 case "$with_gdbm" in
11834 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
11835 if test "x$ac_cv_header_gdbm_h" = xyes; then :
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
11838 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
11839 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
11840 $as_echo_n "(cached) " >&6
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lgdbm $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11857 return gdbm_open ();
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_gdbm_gdbm_open=yes
11865 ac_cv_lib_gdbm_gdbm_open=no
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
11872 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
11873 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
11874 SASL_DB_LIB="-lgdbm"
11886 if test -d $with_gdbm; then
11887 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
11888 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
11889 SASL_DB_LIB="-lgdbm"
11896 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_ndbm_h" = xyes; then :
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
11900 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
11901 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
11902 $as_echo_n "(cached) " >&6
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lndbm $LIBS"
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11919 return dbm_open ();
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 ac_cv_lib_ndbm_dbm_open=yes
11927 ac_cv_lib_ndbm_dbm_open=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931 LIBS=$ac_check_lib_save_LIBS
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
11934 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
11935 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
11936 SASL_DB_LIB="-lndbm"
11939 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
11940 if test "x$ac_cv_func_dbm_open" = xyes; then :
11958 cmu_save_CPPFLAGS=$CPPFLAGS
11960 if test -d $with_bdb_inc; then
11961 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
11962 BDB_INCADD="-I$with_bdb_inc"
11967 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_db_h" = xyes; then :
11970 BDB_SAVE_LDFLAGS=$LDFLAGS
11972 if test -d $with_bdb_lib; then
11974 # this is CMU ADD LIBPATH TO
11975 if test "$andrew_runpath_switch" = "none" ; then
11976 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
11978 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
11982 # this is CMU ADD LIBPATH TO
11983 if test "$andrew_runpath_switch" = "none" ; then
11984 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
11986 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
11994 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
11996 LIBS="$saved_LIBS -l$dbname"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12003 db_create(NULL, NULL, 0);
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 if test "$dblib" = "berkeley"; then break; fi
12017 if test "$dblib" = "no"; then
12018 LIBS="$saved_LIBS -ldb"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12025 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
12035 rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12040 LDFLAGS=$BDB_SAVE_LDFLAGS
12048 CPPFLAGS=$cmu_save_CPPFLAGS
12050 if test "$dblib" = no; then
12051 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_ndbm_h" = xyes; then :
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
12055 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
12056 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
12057 $as_echo_n "(cached) " >&6
12059 ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-lndbm $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12074 return dbm_open ();
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_ndbm_dbm_open=yes
12082 ac_cv_lib_ndbm_dbm_open=no
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
12089 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
12090 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
12091 dblib="ndbm"; SASL_DB_LIB="-lndbm"
12101 if test "$dblib" = "weird"; then
12102 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
12103 if test "x$ac_cv_func_dbm_open" = xyes; then :
12111 if test "$dblib" = no; then
12112 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_gdbm_h" = xyes; then :
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
12116 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
12117 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
12118 $as_echo_n "(cached) " >&6
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lgdbm $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12135 return gdbm_open ();
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_gdbm_gdbm_open=yes
12143 ac_cv_lib_gdbm_gdbm_open=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
12150 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
12151 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
12153 SASL_DB_LIB="-lgdbm"
12165 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
12166 SASL_DB_INC=$BDB_INCADD
12167 SASL_DB_LIB="${BDB_LIBADD}"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
12176 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
12177 as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
12181 LIBS="$cmu_save_LIBS"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
12184 $as_echo_n "checking DB library to use... " >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
12186 $as_echo "$dblib" >&6; }
12188 SASL_DB_BACKEND="db_${dblib}.lo"
12189 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
12190 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
12191 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
12192 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
12196 SASL_MECHS="$SASL_MECHS libsasldb.la"
12198 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
12202 SASL_MECHS="$SASL_MECHS libsasldb.la"
12204 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
12208 SASL_MECHS="$SASL_MECHS libsasldb.la"
12210 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
12215 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
12216 SASL_DB_BACKEND="db_none.lo"
12217 SASL_DB_BACKEND_STATIC="db_none.o"
12218 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
12225 if test "$enable_static" = yes; then
12226 if test "$dblib" != "none"; then
12227 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
12228 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
12230 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
12233 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
12234 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
12246 # Do we not install the SASL DB man pages?
12247 if test "x$SASL_DB_MANS" = "x"; then
12248 NO_SASL_DB_MANS_TRUE=
12249 NO_SASL_DB_MANS_FALSE='#'
12251 NO_SASL_DB_MANS_TRUE='#'
12252 NO_SASL_DB_MANS_FALSE=
12256 # Check whether --enable-keep_db_open was given.
12257 if test "${enable_keep_db_open+set}" = set; then :
12258 enableval=$enable_keep_db_open; keep_db_open=$enableval
12264 # Disable if Berkeley DB is not used
12265 if test "$dblib" != berkeley; then
12269 if test "$keep_db_open" = yes; then
12271 $as_echo "#define KEEP_DB_OPEN /**/" >>confdefs.h
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB handle is kept open in SASLDB" >&5
12275 $as_echo_n "checking if Berkeley DB handle is kept open in SASLDB... " >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_db_open" >&5
12277 $as_echo "$keep_db_open" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12281 if ${ac_cv_lib_dl_dlopen+:} false; then :
12282 $as_echo_n "(cached) " >&6
12284 ac_check_lib_save_LIBS=$LIBS
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12304 if ac_fn_c_try_link "$LINENO"; then :
12305 ac_cv_lib_dl_dlopen=yes
12307 ac_cv_lib_dl_dlopen=no
12309 rm -f core conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12325 # Check whether --with-devrandom was given.
12326 if test "${with_devrandom+set}" = set; then :
12327 withval=$with_devrandom; devrandom=$withval
12329 devrandom=/dev/random
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking /dev/random to use" >&5
12333 $as_echo_n "checking /dev/random to use... " >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
12335 $as_echo "$devrandom" >&6; }
12337 cat >>confdefs.h <<_ACEOF
12338 #define SASL_DEV_RANDOM "$devrandom"
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_NM+:} false; then :
12350 $as_echo_n "(cached) " >&6
12352 if test -n "$NM"; then
12353 ac_cv_prog_NM="$NM" # Let the user override the test.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_prog_NM="$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 if test -n "$NM"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12375 $as_echo "$NM" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$NM" && break
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underscore before symbols" >&5
12387 $as_echo_n "checking for underscore before symbols... " >&6; }
12388 if ${sasl_cv_uscore+:} false; then :
12389 $as_echo_n "(cached) " >&6
12392 echo "main(){int i=1;}
12393 foo(){int i=6;}" > conftest.c
12394 ${CC} -o a.out conftest.c > /dev/null
12395 if (${NM} a.out | grep _foo) > /dev/null; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_uscore" >&5
12403 $as_echo "$sasl_cv_uscore" >&6; }
12404 rm -f conftest.c a.out
12406 if test $sasl_cv_uscore = yes; then
12407 if test $ac_cv_lib_dl_dlopen = yes ; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym adds the underscore for us" >&5
12409 $as_echo_n "checking whether dlsym adds the underscore for us... " >&6; }
12410 cmu_save_LIBS="$LIBS"
12411 LIBS="$LIBS $SASL_DL_LIB"
12412 if ${sasl_cv_dlsym_adds_uscore+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 if test "$cross_compiling" = yes; then :
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiler" >&5
12417 $as_echo "$as_me: WARNING: cross-compiler" >&2;}
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12425 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
12426 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo");
12427 if(ptr1 && !ptr2) exit(0); } exit(1); }
12430 if ac_fn_c_try_run "$LINENO"; then :
12431 sasl_cv_dlsym_adds_uscore=yes
12433 sasl_cv_dlsym_adds_uscore=no
12435 $as_echo "#define DLSYM_NEEDS_UNDERSCORE /**/" >>confdefs.h
12438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12439 conftest.$ac_objext conftest.beam conftest.$ac_ext
12444 LIBS="$cmu_save_LIBS"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sasl_cv_dlsym_adds_uscore" >&5
12446 $as_echo "$sasl_cv_dlsym_adds_uscore" >&6; }
12450 for ac_func in syslog
12452 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12453 if test "x$ac_cv_func_syslog" = xyes; then :
12454 cat >>confdefs.h <<_ACEOF
12455 #define HAVE_SYSLOG 1
12463 # Check whether --with-pam was given.
12464 if test "${with_pam+set}" = set; then :
12465 withval=$with_pam; with_pam=$withval
12470 if test "$with_pam" != no; then
12471 if test -d $with_pam; then
12472 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
12473 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
12475 for ac_header in security/pam_appl.h pam/pam_appl.h
12477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 cmu_save_LIBS="$LIBS"
12489 ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start"
12490 if test "x$ac_cv_func_pam_start" = xyes; then :
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 #ifdef HAVE_PAM_PAM_APPL_H
12499 #include <pam/pam_appl.h>
12501 #ifdef HAVE_SECURITY_PAM_H
12502 #include <security/pam_appl.h>
12508 const char *service="foo";
12509 const char *user="bar";
12510 pam_handle_t *pamh;
12511 struct pam_conv *conv;
12513 baz = pam_start(service, user, conv, &pamh);
12520 if ac_fn_c_try_link "$LINENO"; then :
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12528 LIBS="$cmu_save_LIBS $LIBPAM"
12532 # Check whether --with-saslauthd was given.
12533 if test "${with_saslauthd+set}" = set; then :
12534 withval=$with_saslauthd; with_saslauthd=$withval
12539 if test "$with_saslauthd" != no; then
12540 if test "$with_saslauthd" = yes; then
12541 with_saslauthd="/var/state/saslauthd"
12544 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
12547 cat >>confdefs.h <<_ACEOF
12548 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
12552 if test "$with_saslauthd" != no; then
12554 SASLAUTHD_FALSE='#'
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include saslauthd" >&5
12561 $as_echo_n "checking if I should include saslauthd... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_saslauthd" >&5
12563 $as_echo "$with_saslauthd" >&6; }
12566 # Check whether --with-authdaemond was given.
12567 if test "${with_authdaemond+set}" = set; then :
12568 withval=$with_authdaemond; with_authdaemon=$withval
12570 with_authdaemon=yes
12573 if test "$with_authdaemon" != no; then
12574 if test "$with_authdaemon" = yes; then
12575 with_authdaemon="/dev/null"
12578 $as_echo "#define HAVE_AUTHDAEMON /**/" >>confdefs.h
12581 cat >>confdefs.h <<_ACEOF
12582 #define PATH_AUTHDAEMON_SOCKET "$with_authdaemon"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include Courier authdaemond support" >&5
12587 $as_echo_n "checking to include Courier authdaemond support... " >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_authdaemon" >&5
12589 $as_echo "$with_authdaemon" >&6; }
12592 # Check whether --with-pwcheck was given.
12593 if test "${with_pwcheck+set}" = set; then :
12594 withval=$with_pwcheck; with_pwcheck=$withval
12599 if test "$with_pwcheck" != no; then
12600 if test "$with_pwcheck" = yes; then
12601 with_pwcheck=/var/pwcheck
12604 $as_echo "#define HAVE_PWCHECK /**/" >>confdefs.h
12607 cat >>confdefs.h <<_ACEOF
12608 #define PWCHECKDIR "$with_pwcheck"
12611 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
12612 if test "x$ac_cv_func_getspnam" = xyes; then :
12613 PWCHECKMETH="getspnam"
12615 PWCHECKMETH="getpwnam"
12620 if test "$with_pwcheck" != no; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include pwcheck" >&5
12629 $as_echo_n "checking if I should include pwcheck... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pwcheck" >&5
12631 $as_echo "$with_pwcheck" >&6; }
12634 # Check whether --with-ipctype was given.
12635 if test "${with_ipctype+set}" = set; then :
12636 withval=$with_ipctype; with_ipctype=$withval
12638 with_ipctype="unix"
12641 IPCTYPE=$with_ipctype
12644 if test "$with_ipctype" = "doors"; then
12647 $as_echo "#define USE_DOORS /**/" >>confdefs.h
12652 # Check whether --enable-alwaystrue was given.
12653 if test "${enable_alwaystrue+set}" = set; then :
12654 enableval=$enable_alwaystrue; enable_alwaystrue=$enableval
12656 enable_alwaystrue=no
12659 if test "$enable_alwaystrue" = yes; then
12661 $as_echo "#define HAVE_ALWAYSTRUE /**/" >>confdefs.h
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if I should include the alwaystrue verifier" >&5
12665 $as_echo_n "checking if I should include the alwaystrue verifier... " >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alwaystrue" >&5
12667 $as_echo "$enable_alwaystrue" >&6; }
12669 # Check whether --enable-checkapop was given.
12670 if test "${enable_checkapop+set}" = set; then :
12671 enableval=$enable_checkapop; checkapop=$enableval
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable sasl_checkapop" >&5
12678 $as_echo_n "checking if we should enable sasl_checkapop... " >&6; }
12679 if test "$checkapop" != no; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12681 $as_echo "enabled" >&6; }
12683 $as_echo "#define DO_SASL_CHECKAPOP /**/" >>confdefs.h
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12687 $as_echo "disabled" >&6; }
12690 # Check whether --enable-cram was given.
12691 if test "${enable_cram+set}" = set; then :
12692 enableval=$enable_cram; cram=$enableval
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CRAM-MD5" >&5
12699 $as_echo_n "checking CRAM-MD5... " >&6; }
12700 if test "$cram" != no; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
12702 $as_echo "enabled" >&6; }
12703 SASL_MECHS="$SASL_MECHS libcrammd5.la"
12704 if test "$enable_static" = yes; then
12705 SASL_STATIC_OBJS="$SASL_STATIC_OBJS cram.o"
12706 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/cram.c"
12708 $as_echo "#define STATIC_CRAMMD5 /**/" >>confdefs.h
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12713 $as_echo "disabled" >&6; }
12717 # Check whether --with-lib-subdir was given.
12718 if test "${with_lib_subdir+set}" = set; then :
12719 withval=$with_lib_subdir;
12722 # The cast to long int works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12727 $as_echo_n "checking size of long... " >&6; }
12728 if ${ac_cv_sizeof_long+:} false; then :
12729 $as_echo_n "(cached) " >&6
12731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12734 if test "$ac_cv_type_long" = yes; then
12735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12737 as_fn_error 77 "cannot compute sizeof (long)
12738 See \`config.log' for more details" "$LINENO" 5; }
12740 ac_cv_sizeof_long=0
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12746 $as_echo "$ac_cv_sizeof_long" >&6; }
12750 cat >>confdefs.h <<_ACEOF
12751 #define SIZEOF_LONG $ac_cv_sizeof_long
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
12756 $as_echo_n "checking what directory libraries are found in... " >&6; }
12757 if ${ac_cv_cmu_lib_subdir+:} false; then :
12758 $as_echo_n "(cached) " >&6
12760 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
12761 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
12762 if test "X$with_lib_subdir" = "X" ; then
12763 ac_cv_cmu_lib_subdir=lib
12764 if test $ac_cv_sizeof_long -eq 4 ; then
12765 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
12767 if test $ac_cv_sizeof_long -eq 8 ; then
12768 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
12771 ac_cv_cmu_lib_subdir=$with_lib_subdir
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
12775 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
12776 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
12782 # Check whether --with-openssl was given.
12783 if test "${with_openssl+set}" = set; then :
12784 withval=$with_openssl; with_openssl=$withval
12790 save_CPPFLAGS=$CPPFLAGS
12791 save_LDFLAGS=$LDFLAGS
12793 if test -d $with_openssl; then
12794 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
12796 # this is CMU ADD LIBPATH
12797 if test "$andrew_runpath_switch" = "none" ; then
12798 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12800 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
12805 case "$with_openssl" in
12807 with_openssl="no";;
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
12811 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
12812 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
12813 $as_echo_n "(cached) " >&6
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-lrsaref $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12826 char RSAPublicEncrypt ();
12830 return RSAPublicEncrypt ();
12835 if ac_fn_c_try_link "$LINENO"; then :
12836 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
12838 ac_cv_lib_rsaref_RSAPublicEncrypt=no
12840 rm -f core conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
12845 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
12846 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
12847 cmu_have_rsaref=yes;
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
12849 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
12850 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
12851 $as_echo_n "(cached) " >&6
12853 ac_check_lib_save_LIBS=$LIBS
12854 LIBS="-lRSAglue $LIBS"
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12864 char RSAPublicEncrypt ();
12868 return RSAPublicEncrypt ();
12873 if ac_fn_c_try_link "$LINENO"; then :
12874 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
12876 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
12878 rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
12883 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
12884 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
12885 LIB_RSAREF="-lRSAglue -lrsaref"
12887 LIB_RSAREF="-lrsaref"
12895 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
12899 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
12900 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
12901 $as_echo_n "(cached) " >&6
12903 ac_check_lib_save_LIBS=$LIBS
12904 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12914 char EVP_DigestInit ();
12918 return EVP_DigestInit ();
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 ac_cv_lib_crypto_EVP_DigestInit=yes
12926 ac_cv_lib_crypto_EVP_DigestInit=no
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
12933 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
12934 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
12948 if test "$with_openssl" != "no"; then
12950 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
12953 CPPFLAGS=$save_CPPFLAGS
12954 LDFLAGS=$save_LDFLAGS
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12958 $as_echo_n "checking for OpenSSL... " >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
12960 $as_echo "$with_openssl" >&6; }
12964 # Check whether --with-des was given.
12965 if test "${with_des+set}" = set; then :
12966 withval=$with_des; with_des=$withval
12973 if test "$with_des" != no; then
12974 if test -d $with_des; then
12975 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
12976 LDFLAGS="$LDFLAGS -L${with_des}/lib"
12979 if test "$with_openssl" != no; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
12981 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
12982 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
12983 $as_echo_n "(cached) " >&6
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lcrypto $LIB_RSAREF $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
12996 char des_cbc_encrypt ();
13000 return des_cbc_encrypt ();
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_crypto_des_cbc_encrypt=yes
13008 ac_cv_lib_crypto_des_cbc_encrypt=no
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13015 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13016 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13018 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13019 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13021 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13023 LIB_DES="-lcrypto";
13035 if test "$with_des" = no; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
13037 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
13038 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
13039 $as_echo_n "(cached) " >&6
13041 ac_check_lib_save_LIBS=$LIBS
13042 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13052 char DES_cbc_encrypt ();
13056 return DES_cbc_encrypt ();
13061 if ac_fn_c_try_link "$LINENO"; then :
13062 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13064 ac_cv_lib_crypto_DES_cbc_encrypt=no
13066 rm -f core conftest.err conftest.$ac_objext \
13067 conftest$ac_exeext conftest.$ac_ext
13068 LIBS=$ac_check_lib_save_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13071 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
13072 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
13074 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13077 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13079 LIB_DES="-lcrypto";
13093 if test "$with_des" = no; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13095 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13096 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13097 $as_echo_n "(cached) " >&6
13099 ac_check_lib_save_LIBS=$LIBS
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13110 char des_cbc_encrypt ();
13114 return des_cbc_encrypt ();
13119 if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_lib_des_des_cbc_encrypt=yes
13122 ac_cv_lib_des_des_cbc_encrypt=no
13124 rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13129 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13130 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13139 if test "$with_des" = no; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13141 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13142 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13143 $as_echo_n "(cached) " >&6
13145 ac_check_lib_save_LIBS=$LIBS
13146 LIBS="-ldes425 $LIBS"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13156 char des_cbc_encrypt ();
13160 return des_cbc_encrypt ();
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 ac_cv_lib_des425_des_cbc_encrypt=yes
13168 ac_cv_lib_des425_des_cbc_encrypt=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13175 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13176 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13177 LIB_DES="-ldes425";
13185 if test "$with_des" = no; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
13187 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
13188 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-ldes524 $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13202 char des_cbc_encrypt ();
13206 return des_cbc_encrypt ();
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_des524_des_cbc_encrypt=yes
13214 ac_cv_lib_des524_des_cbc_encrypt=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS=$ac_check_lib_save_LIBS
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
13221 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
13222 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
13223 LIB_DES="-ldes524";
13231 if test "$with_des" = no; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
13235 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
13236 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lrsaref $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13250 char RSAPublicEncrypt ();
13254 return RSAPublicEncrypt ();
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
13262 ac_cv_lib_rsaref_RSAPublicEncrypt=no
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
13269 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
13270 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
13271 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
13278 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
13279 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lcrypto $LIB_RSAREF $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char des_cbc_encrypt ();
13297 return des_cbc_encrypt ();
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_crypto_des_cbc_encrypt=yes
13305 ac_cv_lib_crypto_des_cbc_encrypt=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
13312 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
13313 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
13315 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
13316 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
13318 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
13320 LIB_DES="-lcrypto";
13334 if test "$with_des" != no; then
13336 $as_echo "#define WITH_DES /**/" >>confdefs.h
13343 # Check whether --enable-digest was given.
13344 if test "${enable_digest+set}" = set; then :
13345 enableval=$enable_digest; digest=$enableval
13351 if test "$digest" != no; then
13352 if test -d $digest; then
13353 CPPFLAGS="$CPPFLAGS -I$digest/include"
13354 LDFLAGS="$LDFLAGS -L$digest/lib"
13356 if test "$with_des" = no; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES support for DIGEST-MD5" >&5
13358 $as_echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;}
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DIGEST-MD5" >&5
13363 $as_echo_n "checking DIGEST-MD5... " >&6; }
13364 if test "$digest" != no; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13366 $as_echo "enabled" >&6; }
13367 SASL_MECHS="$SASL_MECHS libdigestmd5.la"
13368 if test "$enable_static" = yes; then
13369 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/digestmd5.c"
13370 SASL_STATIC_OBJS="$SASL_STATIC_OBJS digestmd5.o"
13372 $as_echo "#define STATIC_DIGESTMD5 /**/" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13377 $as_echo "disabled" >&6; }
13380 # Check whether --enable-otp was given.
13381 if test "${enable_otp+set}" = set; then :
13382 enableval=$enable_otp; otp=$enableval
13388 if test "$with_openssl" = no; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- OTP will be disabled" >&5
13390 $as_echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;}
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OTP" >&5
13395 $as_echo_n "checking OTP... " >&6; }
13396 if test "$otp" != no; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13398 $as_echo "enabled" >&6; }
13399 OTP_LIBS="-lcrypto $LIB_RSAREF"
13401 SASL_MECHS="$SASL_MECHS libotp.la"
13402 if test "$enable_static" = yes; then
13403 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/otp.c"
13404 SASL_STATIC_OBJS="$SASL_STATIC_OBJS otp.o"
13406 $as_echo "#define STATIC_OTP /**/" >>confdefs.h
13411 # Check whether --with-with-opie was given.
13412 if test "${with_with_opie+set}" = set; then :
13413 withval=$with_with_opie; with_opie="${withval}"
13417 case "$with_opie" in
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opiechallenge in -lopie" >&5
13420 $as_echo_n "checking for opiechallenge in -lopie... " >&6; }
13421 if ${ac_cv_lib_opie_opiechallenge+:} false; then :
13422 $as_echo_n "(cached) " >&6
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lopie $LIBS"
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13429 /* Override any GCC internal prototype to avoid an error.
13430 Use char because int might match the return type of a GCC
13431 builtin and then its argument prototype would still apply. */
13435 char opiechallenge ();
13439 return opiechallenge ();
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_lib_opie_opiechallenge=yes
13447 ac_cv_lib_opie_opiechallenge=no
13449 rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451 LIBS=$ac_check_lib_save_LIBS
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_opiechallenge" >&5
13454 $as_echo "$ac_cv_lib_opie_opiechallenge" >&6; }
13455 if test "x$ac_cv_lib_opie_opiechallenge" = xyes; then :
13457 ac_fn_c_check_header_mongrel "$LINENO" "opie.h" "ac_cv_header_opie_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_opie_h" = xyes; then :
13471 if test -d $with_opie; then
13472 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13473 LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPIE" >&5
13481 $as_echo_n "checking for OPIE... " >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_opie" >&5
13483 $as_echo "$with_opie" >&6; }
13485 if test "$with_opie" != no; then
13487 $as_echo "#define HAVE_OPIE /**/" >>confdefs.h
13489 OTP_LIBS="$OTP_LIBS -lopie"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13496 $as_echo "disabled" >&6; }
13499 # Check whether --enable-srp was given.
13500 if test "${enable_srp+set}" = set; then :
13501 enableval=$enable_srp; srp=$enableval
13507 if test "$with_openssl" = no; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- SRP will be disabled" >&5
13509 $as_echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;}
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SRP" >&5
13514 $as_echo_n "checking SRP... " >&6; }
13515 if test "$srp" != no; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13517 $as_echo "enabled" >&6; }
13518 SRP_LIBS="-lcrypto $LIB_RSAREF"
13520 SASL_MECHS="$SASL_MECHS libsrp.la"
13521 if test "$enable_static" = yes; then
13522 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/srp.c"
13523 SASL_STATIC_OBJS="$SASL_STATIC_OBJS srp.o"
13525 $as_echo "#define STATIC_SRP /**/" >>confdefs.h
13529 # Check whether --enable-srp_setpass was given.
13530 if test "${enable_srp_setpass+set}" = set; then :
13531 enableval=$enable_srp_setpass; srp_setpass=$enableval
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable setting SRP secrets with saslpasswd" >&5
13538 $as_echo_n "checking if we should enable setting SRP secrets with saslpasswd... " >&6; }
13539 if test "$srp_setpass" != no; then
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13541 $as_echo "enabled" >&6; }
13543 $as_echo "#define DO_SRP_SETPASS /**/" >>confdefs.h
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13547 $as_echo "disabled" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13553 $as_echo "disabled" >&6; }
13559 # Check whether --enable-krb4 was given.
13560 if test "${enable_krb4+set}" = set; then :
13561 enableval=$enable_krb4; krb4=$enableval
13567 if test "$krb4" != no; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
13569 $as_echo_n "checking for res_search in -lresolv... " >&6; }
13570 if ${ac_cv_lib_resolv_res_search+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 ac_check_lib_save_LIBS=$LIBS
13574 LIBS="-lresolv $LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13584 char res_search ();
13588 return res_search ();
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_resolv_res_search=yes
13596 ac_cv_lib_resolv_res_search=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
13603 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
13604 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBRESOLV 1
13609 LIBS="-lresolv $LIBS"
13614 if test -d ${krb4}; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
13616 $as_echo_n "checking for Kerberos includes... " >&6; }
13617 if ${cyrus_krbinclude+:} false; then :
13618 $as_echo_n "(cached) " >&6
13621 for krbhloc in include/kerberosIV include/kerberos include
13623 if test -f ${krb4}/${krbhloc}/krb.h ; then
13624 cyrus_krbinclude=${krb4}/${krbhloc}
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
13631 $as_echo "$cyrus_krbinclude" >&6; }
13633 if test -n "${cyrus_krbinclude}"; then
13634 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
13636 LDFLAGS="$LDFLAGS -L$krb4/lib"
13639 if test "$with_des" != no; then
13640 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13641 if test "x$ac_cv_header_krb_h" = xyes; then :
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13644 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13645 if ${ac_cv_lib_com_err_com_err+:} false; then :
13646 $as_echo_n "(cached) " >&6
13648 ac_check_lib_save_LIBS=$LIBS
13649 LIBS="-lcom_err $LIBS"
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13653 /* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 ac_cv_lib_com_err_com_err=yes
13671 ac_cv_lib_com_err_com_err=no
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675 LIBS=$ac_check_lib_save_LIBS
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13678 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13679 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13682 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13683 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13684 $as_echo_n "(cached) " >&6
13686 ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13697 char krb_mk_priv ();
13701 return krb_mk_priv ();
13706 if ac_fn_c_try_link "$LINENO"; then :
13707 ac_cv_lib_krb_krb_mk_priv=yes
13709 ac_cv_lib_krb_krb_mk_priv=no
13711 rm -f core conftest.err conftest.$ac_objext \
13712 conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13716 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13717 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13718 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
13726 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
13727 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
13728 $as_echo_n "(cached) " >&6
13730 ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lkrb $LIB_DES $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.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. */
13741 char krb_mk_priv ();
13745 return krb_mk_priv ();
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_lib_krb_krb_mk_priv=yes
13753 ac_cv_lib_krb_krb_mk_priv=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
13760 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
13761 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
13762 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
13775 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
13777 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
13778 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
13779 $as_echo_n "(cached) " >&6
13781 ac_check_lib_save_LIBS=$LIBS
13782 LIBS="-lkrb4 $LIB_DES $LIBS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13792 char krb_mk_priv ();
13796 return krb_mk_priv ();
13801 if ac_fn_c_try_link "$LINENO"; then :
13802 ac_cv_lib_krb4_krb_mk_priv=yes
13804 ac_cv_lib_krb4_krb_mk_priv=no
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
13808 LIBS=$ac_check_lib_save_LIBS
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
13811 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
13812 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
13813 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
13819 if test "$krb4" = no; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
13821 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
13825 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
13830 if test "$krb4" != no; then
13831 cmu_save_LIBS="$LIBS"
13832 LIBS="$LIBS $SASL_KRB_LIB"
13833 for ac_func in krb_get_err_text
13835 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
13836 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
13837 cat >>confdefs.h <<_ACEOF
13838 #define HAVE_KRB_GET_ERR_TEXT 1
13844 LIBS="$cmu_save_LIBS"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
13848 $as_echo_n "checking KERBEROS_V4... " >&6; }
13849 if test "$krb4" != no; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13851 $as_echo "enabled" >&6; }
13852 SASL_MECHS="$SASL_MECHS libkerberos4.la"
13853 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
13854 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
13856 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
13859 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
13861 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13864 $as_echo "disabled" >&6; }
13868 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13869 if test "x$ac_cv_func_crypt" = xyes; then :
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13873 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13874 if ${ac_cv_lib_crypt_crypt+:} false; then :
13875 $as_echo_n "(cached) " >&6
13877 ac_check_lib_save_LIBS=$LIBS
13878 LIBS="-lcrypt $LIBS"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 ac_cv_lib_crypt_crypt=yes
13900 ac_cv_lib_crypt_crypt=no
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 LIBS=$ac_check_lib_save_LIBS
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13907 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13908 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
13909 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
13920 # Check whether --enable-gssapi was given.
13921 if test "${enable_gssapi+set}" = set; then :
13922 enableval=$enable_gssapi; gssapi=$enableval
13928 # Check whether --with-gss_impl was given.
13929 if test "${with_gss_impl+set}" = set; then :
13930 withval=$with_gss_impl; gss_impl=$withval
13936 if test "$gssapi" != no; then
13949 # When should we use __sunos?
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5
13958 $as_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;}
13959 if test "$gss_impl" = "cybersafe"; then
13960 as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
13965 cmu_saved_CPPFLAGS=$CPPFLAGS
13967 if test -d ${gssapi}; then
13968 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
13969 # We want to keep -I in our CPPFLAGS, but only if we succeed
13970 cmu_saved_CPPFLAGS=$CPPFLAGS
13971 ### I am not sure how useful is this (and whether this is required at all
13972 ### especially when we have to provide two -L flags for new CyberSafe
13973 LDFLAGS="$LDFLAGS -L$gssapi/lib"
13975 if test -n "$platform"; then
13976 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
13977 CPPFLAGS="$CPPFLAGS -D$platform"
13978 if test -d "${gssapi}/appsec-sdk/include"; then
13979 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
13984 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13985 if test "x$ac_cv_header_gssapi_h" = xyes; then :
13987 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
13990 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
13995 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
14003 CPPFLAGS=$cmu_saved_CPPFLAGS
14007 if test "$gssapi" != no; then
14008 # We need to find out which gssapi implementation we are
14009 # using. Supported alternatives are: MIT Kerberos 5,
14010 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
14011 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
14012 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
14014 # The choice is reflected in GSSAPIBASE_LIBS
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14017 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14018 if ${ac_cv_lib_resolv_res_search+:} false; then :
14019 $as_echo_n "(cached) " >&6
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lresolv $LIBS"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14032 char res_search ();
14036 return res_search ();
14041 if ac_fn_c_try_link "$LINENO"; then :
14042 ac_cv_lib_resolv_res_search=yes
14044 ac_cv_lib_resolv_res_search=no
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 LIBS=$ac_check_lib_save_LIBS
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14051 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14052 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_LIBRESOLV 1
14057 LIBS="-lresolv $LIBS"
14061 if test -d ${gssapi}; then
14062 gssapi_dir="${gssapi}/lib"
14063 GSSAPIBASE_LIBS="-L$gssapi_dir"
14064 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
14066 # FIXME: This is only used for building cyrus, and then only as
14067 # a real hack. it needs to be fixed.
14068 gssapi_dir="/usr/local/lib"
14071 # Check a full link against the Heimdal libraries.
14072 # If this fails, check a full link against the MIT libraries.
14073 # If this fails, check a full link against the CyberSafe libraries.
14074 # If this fails, check a full link against the Solaris 8 and up libgss.
14076 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
14079 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
14080 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
14081 $as_echo_n "(cached) " >&6
14083 ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14094 char gss_unwrap ();
14098 return gss_unwrap ();
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_lib_gssapi_gss_unwrap=yes
14106 ac_cv_lib_gssapi_gss_unwrap=no
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
14113 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
14114 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
14120 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14125 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
14126 # check for libkrb5support first
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14128 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14129 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14130 $as_echo_n "(cached) " >&6
14132 ac_check_lib_save_LIBS=$LIBS
14133 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14137 /* Override any GCC internal prototype to avoid an error.
14138 Use char because int might match the return type of a GCC
14139 builtin and then its argument prototype would still apply. */
14143 char krb5int_getspecific ();
14147 return krb5int_getspecific ();
14152 if ac_fn_c_try_link "$LINENO"; then :
14153 ac_cv_lib_krb5support_krb5int_getspecific=yes
14155 ac_cv_lib_krb5support_krb5int_getspecific=no
14157 rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14162 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14163 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14164 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
14170 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
14171 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
14172 $as_echo_n "(cached) " >&6
14174 ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14179 /* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
14185 char gss_unwrap ();
14189 return gss_unwrap ();
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
14197 ac_cv_lib_gssapi_krb5_gss_unwrap=no
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
14204 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
14205 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
14211 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14216 # For Cybersafe one has to set a platform define in order to make compilation work
14217 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
14219 cmu_saved_CPPFLAGS=$CPPFLAGS
14220 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
14221 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
14222 if test -d "${gssapi}/appsec-rt/lib"; then
14223 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
14225 CPPFLAGS="$CPPFLAGS -D$platform"
14226 if test -d "${gssapi}/appsec-sdk/include"; then
14227 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
14232 # Check for CyberSafe with two libraries first, than fall back to a single
14233 # library (older CyberSafe)
14235 unset ac_cv_lib_gss_csf_gss_acq_user
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14237 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14238 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14239 $as_echo_n "(cached) " >&6
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14252 char csf_gss_acq_user ();
14256 return csf_gss_acq_user ();
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_lib_gss_csf_gss_acq_user=yes
14264 ac_cv_lib_gss_csf_gss_acq_user=no
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14271 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14272 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14273 gss_impl="cybersafe03"
14275 unset ac_cv_lib_gss_csf_gss_acq_user;
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
14277 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
14278 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
14279 $as_echo_n "(cached) " >&6
14281 ac_check_lib_save_LIBS=$LIBS
14282 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14292 char csf_gss_acq_user ();
14296 return csf_gss_acq_user ();
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 ac_cv_lib_gss_csf_gss_acq_user=yes
14304 ac_cv_lib_gss_csf_gss_acq_user=no
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
14311 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
14312 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
14313 gss_impl="cybersafe"
14321 if test "$gss_failed" = "1"; then
14322 # Restore variables
14323 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
14324 CPPFLAGS=$cmu_saved_CPPFLAGS
14326 if test "$gss_impl" != "auto"; then
14332 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
14335 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
14336 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
14337 $as_echo_n "(cached) " >&6
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lgss -lgss $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14350 char gss_unwrap ();
14354 return gss_unwrap ();
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 ac_cv_lib_gss_gss_unwrap=yes
14362 ac_cv_lib_gss_gss_unwrap=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
14369 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
14370 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
14376 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
14381 if test "$gss_impl" = "mit"; then
14382 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
14383 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
14384 elif test "$gss_impl" = "heimdal"; then
14385 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
14386 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
14387 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}"
14388 elif test "$gss_impl" = "cybersafe03"; then
14389 # Version of CyberSafe with two libraries
14390 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14391 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
14392 # there is no static libgss for CyberSafe
14393 GSSAPIBASE_STATIC_LIBS=none
14394 elif test "$gss_impl" = "cybersafe"; then
14395 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
14396 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
14397 # there is no static libgss for CyberSafe
14398 GSSAPIBASE_STATIC_LIBS=none
14399 elif test "$gss_impl" = "seam"; then
14400 GSSAPIBASE_LIBS=-lgss
14401 # there is no static libgss on Solaris 8 and up
14402 GSSAPIBASE_STATIC_LIBS=none
14403 elif test "$gss_impl" = "failed"; then
14406 GSSAPIBASE_STATIC_LIBS=
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
14408 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
14412 GSSAPIBASE_STATIC_LIBS=
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
14414 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
14419 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
14420 # in gssapi\rfckrb5.h
14422 if test "$gssapi" != "no"; then
14423 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <gssapi/gssapi.h>
14427 #ifdef GSS_C_NT_HOSTBASED_SERVICE
14428 hostbased_service_gss_nt_yes
14431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14432 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
14434 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14438 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14443 elif test "$ac_cv_header_gssapi_h" = "yes"; then
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <gssapi.h>
14449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14450 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14452 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14457 elif test "$ac_cv_header_gssapi_gssapi_h"; then
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14460 #include <gssapi/gssapi.h>
14463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14464 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
14466 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
14473 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 #include <gssapi/gssapi.h>
14477 #ifdef GSS_C_NT_USER_NAME
14478 user_name_yes_gss_nt
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
14484 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
14488 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
14492 elif test "$ac_cv_header_gssapi_h" = "yes"; then
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 #include <gssapi.h>
14498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14499 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14501 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #include <gssapi.h>
14511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14512 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14517 elif test "$ac_cv_header_gssapi_gssapi_h"; then
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #include <gssapi/gssapi.h>
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
14526 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14533 #include <gssapi/gssapi.h>
14536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14537 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
14547 $as_echo_n "checking GSSAPI... " >&6; }
14548 if test "$gssapi" != no; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
14550 $as_echo "with implementation ${gss_impl}" >&6; }
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
14552 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14553 if ${ac_cv_lib_resolv_res_search+:} false; then :
14554 $as_echo_n "(cached) " >&6
14556 ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-lresolv $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14567 char res_search ();
14571 return res_search ();
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_lib_resolv_res_search=yes
14579 ac_cv_lib_resolv_res_search=no
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
14586 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14587 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
14588 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
14591 SASL_MECHS="$SASL_MECHS libgssapiv2.la"
14592 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
14593 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
14594 if test "$rfc5587" = "yes"; then
14595 SASL_MECHS="$SASL_MECHS libgs2.la"
14596 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
14597 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
14599 cmu_save_LIBS="$LIBS"
14600 LIBS="$LIBS $GSSAPIBASE_LIBS"
14601 for ac_func in gsskrb5_register_acceptor_identity
14603 ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
14604 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
14612 LIBS="$cmu_save_LIBS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14615 $as_echo "disabled" >&6; }
14621 if test "$gssapi" != "no"; then
14623 $as_echo "#define STATIC_GSSAPIV2 /**/" >>confdefs.h
14626 if test "$gss_impl" = "mit"; then
14627 mutex_default="yes"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to use mutexes aroung GSS calls" >&5
14630 $as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
14631 # Check whether --enable-gss_mutexes was given.
14632 if test "${enable_gss_mutexes+set}" = set; then :
14633 enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
14635 use_gss_mutexes=$mutex_default
14638 if test $use_gss_mutexes = "yes"; then
14640 $as_echo "#define GSS_USE_MUTEXES /**/" >>confdefs.h
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gss_mutexes" >&5
14644 $as_echo "$use_gss_mutexes" >&6; }
14650 # Check whether --enable-plain was given.
14651 if test "${enable_plain+set}" = set; then :
14652 enableval=$enable_plain; plain=$enableval
14659 if test "$plain" != no; then
14660 if test "$cmu_have_crypt" = yes; then
14661 PLAIN_LIBS=$LIB_CRYPT
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLAIN" >&5
14667 $as_echo_n "checking PLAIN... " >&6; }
14668 if test "$plain" != no; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14670 $as_echo "enabled" >&6; }
14671 SASL_MECHS="$SASL_MECHS libplain.la"
14672 if test "$enable_static" = yes; then
14673 SASL_STATIC_OBJS="$SASL_STATIC_OBJS plain.o"
14674 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/plain.c"
14676 $as_echo "#define STATIC_PLAIN /**/" >>confdefs.h
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14681 $as_echo "disabled" >&6; }
14685 # Check whether --enable-anon was given.
14686 if test "${enable_anon+set}" = set; then :
14687 enableval=$enable_anon; anon=$enableval
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ANONYMOUS" >&5
14694 $as_echo_n "checking ANONYMOUS... " >&6; }
14695 if test "$anon" != no; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14697 $as_echo "enabled" >&6; }
14698 SASL_MECHS="$SASL_MECHS libanonymous.la"
14699 if test "$enable_static" = yes; then
14700 SASL_STATIC_OBJS="$SASL_STATIC_OBJS anonymous.o"
14701 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/anonymous.c"
14703 $as_echo "#define STATIC_ANONYMOUS /**/" >>confdefs.h
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14708 $as_echo "disabled" >&6; }
14711 # Check whether --enable-login was given.
14712 if test "${enable_login+set}" = set; then :
14713 enableval=$enable_login; login=$enableval
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LOGIN" >&5
14720 $as_echo_n "checking LOGIN... " >&6; }
14721 if test "$login" != no; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14723 $as_echo "enabled" >&6; }
14724 SASL_MECHS="$SASL_MECHS liblogin.la"
14725 if test "$enable_static" = yes; then
14726 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/login.c"
14727 SASL_STATIC_OBJS="$SASL_STATIC_OBJS login.o"
14729 $as_echo "#define STATIC_LOGIN /**/" >>confdefs.h
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14734 $as_echo "disabled" >&6; }
14737 # Check whether --enable-ntlm was given.
14738 if test "${enable_ntlm+set}" = set; then :
14739 enableval=$enable_ntlm; ntlm=$enableval
14745 if test "$with_openssl" = no; then
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- NTLM will be disabled" >&5
14747 $as_echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;}
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTLM" >&5
14752 $as_echo_n "checking NTLM... " >&6; }
14753 if test "$ntlm" != no; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14755 $as_echo "enabled" >&6; }
14756 NTLM_LIBS="-lcrypto $LIB_RSAREF"
14759 SASL_MECHS="$SASL_MECHS libntlm.la"
14760 if test "$enable_static" = yes; then
14761 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ntlm.c"
14762 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ntlm.o"
14764 $as_echo "#define STATIC_NTLM /**/" >>confdefs.h
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14769 $as_echo "disabled" >&6; }
14772 # Check whether --enable-passdss was given.
14773 if test "${enable_passdss+set}" = set; then :
14774 enableval=$enable_passdss; passdss=$enableval
14780 if test "$with_openssl" = no; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&5
14782 $as_echo "$as_me: WARNING: OpenSSL not found -- PASSDSS will be disabled" >&2;}
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PASSDSS" >&5
14787 $as_echo_n "checking PASSDSS... " >&6; }
14788 if test "$passdss" != no; then
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14790 $as_echo "enabled" >&6; }
14791 PASSDSS_LIBS="-lcrypto $LIB_RSAREF"
14794 SASL_MECHS="$SASL_MECHS libpassdss.la"
14795 if test "$enable_static" = yes; then
14796 SASL_STATIC_OBJS="$SASL_STATIC_OBJS passdss.o"
14797 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/passdss.c"
14799 $as_echo "#define STATIC_PASSDSS /**/" >>confdefs.h
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14804 $as_echo "disabled" >&6; }
14808 # make the option show up so people don't whine that it is only in the
14809 # saslauthd configure script --help
14811 # Check whether --with-ldap was given.
14812 if test "${with_ldap+set}" = set; then :
14813 withval=$with_ldap;
14821 # Check whether --enable-sql was given.
14822 if test "${enable_sql+set}" = set; then :
14823 enableval=$enable_sql; sql=$enableval
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL" >&5
14830 $as_echo_n "checking SQL... " >&6; }
14831 if test "$sql" != no; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
14833 $as_echo "enabled" >&6; }
14834 SASL_MECHS="$SASL_MECHS libsql.la"
14835 if test "$enable_static" = yes; then
14836 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sql.c"
14837 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sql.o"
14839 $as_echo "#define STATIC_SQL /**/" >>confdefs.h
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14844 $as_echo "disabled" >&6; }
14848 # Check whether --with-mysql was given.
14849 if test "${with_mysql+set}" = set; then :
14850 withval=$with_mysql; with_mysql=$withval
14856 # find location of library
14857 # presuming if one given then correct
14858 if test "${with_mysql}" = "yes"; then
14859 with_mysql=notfound
14860 for mysqlloc in lib/mysql lib mysql/lib
14862 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then
14863 with_mysql="${prefix}"
14865 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then
14866 with_mysql="/usr/local"
14868 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then
14877 case "$with_mysql" in
14879 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL Library not found" >&5
14880 $as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
14882 if test -d ${with_mysql}/lib/mysql; then
14884 # this is CMU ADD LIBPATH TO
14885 if test "$andrew_runpath_switch" = "none" ; then
14886 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
14888 LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib/mysql"
14891 elif test -d ${with_mysql}/mysql/lib; then
14893 # this is CMU ADD LIBPATH TO
14894 if test "$andrew_runpath_switch" = "none" ; then
14895 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
14897 LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/mysql/lib"
14900 elif test -d ${with_mysql}/lib; then
14902 # this is CMU ADD LIBPATH TO
14903 if test "$andrew_runpath_switch" = "none" ; then
14904 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
14906 LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}/lib"
14911 # this is CMU ADD LIBPATH TO
14912 if test "$andrew_runpath_switch" = "none" ; then
14913 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
14915 LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_runpath_switch${with_mysql}"
14920 LIB_MYSQL_DIR=$LIB_MYSQL
14921 LIB_MYSQL="$LIB_MYSQL -lmysqlclient"
14923 if test -d ${with_mysql}/include/mysql; then
14924 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql"
14925 elif test -d ${with_mysql}/mysql/include; then
14926 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
14927 elif test -d ${with_mysql}/include; then
14928 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
14930 CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
14933 save_LDFLAGS=$LDFLAGS
14934 LDFLAGS="$LDFLAGS $LIB_MYSQL_DIR"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_select_db in -lmysqlclient" >&5
14936 $as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
14937 if ${ac_cv_lib_mysqlclient_mysql_select_db+:} false; then :
14938 $as_echo_n "(cached) " >&6
14940 ac_check_lib_save_LIBS=$LIBS
14941 LIBS="-lmysqlclient $LIBS"
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14945 /* Override any GCC internal prototype to avoid an error.
14946 Use char because int might match the return type of a GCC
14947 builtin and then its argument prototype would still apply. */
14951 char mysql_select_db ();
14955 return mysql_select_db ();
14960 if ac_fn_c_try_link "$LINENO"; then :
14961 ac_cv_lib_mysqlclient_mysql_select_db=yes
14963 ac_cv_lib_mysqlclient_mysql_select_db=no
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14967 LIBS=$ac_check_lib_save_LIBS
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
14970 $as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
14971 if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = xyes; then :
14973 $as_echo "#define HAVE_MYSQL /**/" >>confdefs.h
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MySQL library mysqlclient does not work" >&5
14977 $as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
14981 LDFLAGS=$save_LDFLAGS;;
14987 # Check whether --with-pgsql was given.
14988 if test "${with_pgsql+set}" = set; then :
14989 withval=$with_pgsql; with_pgsql=$withval
14995 # find location of library
14996 # presuing if one given then correct
14997 if test "${with_pgsql}" = "yes"; then
14998 with_pgsql=notfound
14999 for pgsqlloc in lib/pgsql lib pgsql/lib
15001 if test -f ${prefix}/${pgsqlloc}/libpq.a; then
15002 with_pgsql="${prefix}"
15004 elif test -f /usr/local/${pgsqlloc}/libpq.a; then
15005 with_pgsql="/usr/local"
15007 elif test -f /usr/${pgsqlloc}/libpq.a; then
15016 case "$with_pgsql" in
15018 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library not found" >&5
15019 $as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
15021 if test -d ${with_pgsql}/lib/pgsql; then
15023 # this is CMU ADD LIBPATH TO
15024 if test "$andrew_runpath_switch" = "none" ; then
15025 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL}"
15027 LIB_PGSQL="-L${with_pgsql}/lib/pgsql ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib/pgsql"
15030 elif test -d ${with_pgsql}/pgsql/lib; then
15032 # this is CMU ADD LIBPATH TO
15033 if test "$andrew_runpath_switch" = "none" ; then
15034 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL}"
15036 LIB_PGSQL="-L${with_pgsql}/pgsql/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/pgsql/lib"
15039 elif test -d ${with_pgsql}/lib; then
15041 # this is CMU ADD LIBPATH TO
15042 if test "$andrew_runpath_switch" = "none" ; then
15043 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL}"
15045 LIB_PGSQL="-L${with_pgsql}/lib ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}/lib"
15050 # this is CMU ADD LIBPATH TO
15051 if test "$andrew_runpath_switch" = "none" ; then
15052 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL}"
15054 LIB_PGSQL="-L${with_pgsql} ${LIB_PGSQL} $andrew_runpath_switch${with_pgsql}"
15059 LIB_PGSQL_DIR=$LIB_PGSQL
15060 LIB_PGSQL="$LIB_PGSQL -lpq"
15062 if test -d ${with_pgsql}/include/pgsql; then
15063 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql"
15064 elif test -d ${with_pgsql}/pgsql/include; then
15065 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
15066 elif test -d ${with_pgsql}/include; then
15067 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
15069 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
15073 save_LDFLAGS=$LDFLAGS
15074 LDFLAGS="$LDFLAGS $LIB_PGSQL_DIR"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetdbLogin in -lpq" >&5
15076 $as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
15077 if ${ac_cv_lib_pq_PQsetdbLogin+:} false; then :
15078 $as_echo_n "(cached) " >&6
15080 ac_check_lib_save_LIBS=$LIBS
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15085 /* Override any GCC internal prototype to avoid an error.
15086 Use char because int might match the return type of a GCC
15087 builtin and then its argument prototype would still apply. */
15091 char PQsetdbLogin ();
15095 return PQsetdbLogin ();
15100 if ac_fn_c_try_link "$LINENO"; then :
15101 ac_cv_lib_pq_PQsetdbLogin=yes
15103 ac_cv_lib_pq_PQsetdbLogin=no
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
15110 $as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
15111 if test "x$ac_cv_lib_pq_PQsetdbLogin" = xyes; then :
15113 $as_echo "#define HAVE_PGSQL /**/" >>confdefs.h
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL Library pq does not work" >&5
15117 $as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
15121 LDFLAGS=$save_LDFLAGS;;
15127 # Check whether --with-sqlite was given.
15128 if test "${with_sqlite+set}" = set; then :
15129 withval=$with_sqlite; with_sqlite=$withval
15135 # find location of library
15136 # presuing if one given then correct
15137 if test "${with_sqlite}" = "yes"; then
15138 with_sqlite=notfound
15139 for sqliteloc in lib
15141 if test -f ${prefix}/${sqliteloc}/libsqlite.a; then
15142 with_sqlite="${prefix}"
15144 elif test -f /usr/local/${sqliteloc}/libsqlite.a; then
15145 with_sqlite="/usr/local"
15147 elif test -f /usr/${sqliteloc}/libsqlite.a; then
15156 case "$with_sqlite" in
15158 notfound) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library not found" >&5
15159 $as_echo "$as_me: WARNING: SQLite Library not found" >&2;}; true;;
15161 if test -d ${with_sqlite}/lib; then
15162 LIB_SQLITE="-L${with_sqlite}/lib -R${with_sqlite}/lib"
15164 LIB_SQLITE="-L${with_sqlite} -R${with_sqlite}"
15167 LIB_SQLITE_DIR=$LIB_SQLITE
15168 LIB_SQLITE="$LIB_SQLITE -lsqlite"
15170 if test -d ${with_sqlite}/include; then
15171 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}/include"
15173 CPPFLAGS="${CPPFLAGS} -I${with_sqlite}"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5
15176 $as_echo_n "checking for sqlite_open in -lsqlite... " >&6; }
15177 if ${ac_cv_lib_sqlite_sqlite_open+:} false; then :
15178 $as_echo_n "(cached) " >&6
15180 ac_check_lib_save_LIBS=$LIBS
15181 LIBS="-lsqlite $LIB_SQLITE_DIR $LIBS"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15185 /* Override any GCC internal prototype to avoid an error.
15186 Use char because int might match the return type of a GCC
15187 builtin and then its argument prototype would still apply. */
15191 char sqlite_open ();
15195 return sqlite_open ();
15200 if ac_fn_c_try_link "$LINENO"; then :
15201 ac_cv_lib_sqlite_sqlite_open=yes
15203 ac_cv_lib_sqlite_sqlite_open=no
15205 rm -f core conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5
15210 $as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; }
15211 if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then :
15213 $as_echo "#define HAVE_SQLITE /**/" >>confdefs.h
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SQLite Library sqlite does not work" >&5
15217 $as_echo "$as_me: WARNING: SQLite Library sqlite does not work" >&2;}
15225 if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no -a "$with_sqlite" = no; then
15226 as_fn_error $? "--enable-sql chosen but neither Postgres nor MySQL nor SQLite found" "$LINENO" 5
15229 if test "$enable_shared" = yes; then
15231 $as_echo "#define DO_DLOPEN /**/" >>confdefs.h
15235 # Check whether --enable-ldapdb was given.
15236 if test "${enable_ldapdb+set}" = set; then :
15237 enableval=$enable_ldapdb; ldapdb=$enableval
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDAPDB" >&5
15243 $as_echo_n "checking LDAPDB... " >&6; }
15244 if test "$ldapdb" != no; then
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
15246 $as_echo "enabled" >&6; }
15248 if test "$with_ldap" = no; then
15249 as_fn_error $? "Cannot enable LDAPDB plugin: You need to specify --with-ldap" "$LINENO" 5
15252 save_CPPFLAGS=$CPPFLAGS
15253 save_LDFLAGS=$LDFLAGS
15255 if test -d $with_ldap; then
15256 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
15258 # this is CMU ADD LIBPATH
15259 if test "$andrew_runpath_switch" = "none" ; then
15260 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
15262 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
15267 for ac_header in ldap.h lber.h
15269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15270 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15281 if test $ac_cv_header_ldap_h = yes -a $ac_cv_header_lber_h = yes; then
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP api" >&5
15283 $as_echo_n "checking OpenLDAP api... " >&6; }
15284 if ${cmu_cv_openldap_api+:} false; then :
15285 $as_echo_n "(cached) " >&6
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15293 #ifdef LDAP_API_FEATURE_X_OPENLDAP
15294 char *__openldap_api = LDAP_API_FEATURE_X_OPENLDAP;
15298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15299 $EGREP "__openldap_api" >/dev/null 2>&1; then :
15300 cmu_cv_openldap_api=yes
15302 cmu_cv_openldap_api=no
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_api" >&5
15308 $as_echo "$cmu_cv_openldap_api" >&6; }
15311 if test "$cmu_cv_openldap_api" = yes; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
15313 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
15314 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
15315 $as_echo_n "(cached) " >&6
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-lldap -llber $LIBS"
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15328 char ldap_initialize ();
15332 return ldap_initialize ();
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 ac_cv_lib_ldap_ldap_initialize=yes
15340 ac_cv_lib_ldap_ldap_initialize=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
15347 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
15348 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
15349 cmu_link_openldap="-lldap -llber"
15351 cmu_link_openldap=no
15357 if test "$cmu_cv_openldap_api" = no -o "$cmu_link_openldap" = no; then
15358 as_fn_error $? "Cannot enable LDAPDB plugin: Could not locate OpenLDAP" "$LINENO" 5
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenLDAP version" >&5
15361 $as_echo_n "checking OpenLDAP version... " >&6; }
15362 if ${cmu_cv_openldap_compat+:} false; then :
15363 $as_echo_n "(cached) " >&6
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15371 /* Require 2.1.27+ and 2.2.6+ */
15372 #if LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 1 && LDAP_VENDOR_VERSION_PATCH > 26
15373 char *__openldap_compat = "2.1.27 or better okay";
15374 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR == 2 && LDAP_VENDOR_VERSION_PATCH > 5
15375 char *__openldap_compat = "2.2.6 or better okay";
15376 #elif LDAP_VENDOR_VERSION_MAJOR == 2 && LDAP_VENDOR_VERSION_MINOR > 2
15377 char *__openldap_compat = "2.3 or better okay"
15381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15382 $EGREP "__openldap_compat" >/dev/null 2>&1; then :
15383 cmu_cv_openldap_compat=yes
15385 cmu_cv_openldap_compat=no
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cmu_cv_openldap_compat" >&5
15391 $as_echo "$cmu_cv_openldap_compat" >&6; }
15394 if test "$cmu_cv_openldap_compat" = no; then
15395 as_fn_error $? "Cannot enable LDAPDB plugin: OpenLDAP library located but incompatible" "$LINENO" 5
15397 LIB_LDAP=$cmu_link_openldap
15400 SASL_MECHS="$SASL_MECHS libldapdb.la"
15401 if test "$enable_static" = yes; then
15402 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/ldapdb.c"
15403 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ldapdb.o"
15405 $as_echo "#define STATIC_LDAPDB /**/" >>confdefs.h
15411 if test "$cmu_cv_openldap_compat" != yes; then
15412 CPPFLAGS=$save_CPPFLAGS
15413 LDFLAGS=$save_LDFLAGS
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15417 $as_echo "disabled" >&6; }
15426 # Check whether --with-plugindir was given.
15427 if test "${with_plugindir+set}" = set; then :
15428 withval=$with_plugindir; plugindir=$withval
15430 plugindir=/usr/lib/sasl2
15434 cat >>confdefs.h <<_ACEOF
15435 #define PLUGINDIR "$plugindir"
15441 # Check whether --with-configdir was given.
15442 if test "${with_configdir+set}" = set; then :
15443 withval=$with_configdir; configdir=$withval
15445 configdir=$plugindir:/etc/sasl2
15449 cat >>confdefs.h <<_ACEOF
15450 #define CONFIGDIR "$configdir"
15456 # Check whether --with-rc4 was given.
15457 if test "${with_rc4+set}" = set; then :
15458 withval=$with_rc4; with_rc4=$withval
15464 if test "$with_rc4" != no; then
15466 $as_echo "#define WITH_RC4 /**/" >>confdefs.h
15470 building_for_macosx=no
15473 # Check whether --enable-macos-framework was given.
15474 if test "${enable_macos_framework+set}" = set; then :
15475 enableval=$enable_macos_framework; building_for_macosx=no
15477 building_for_macosx=yes
15482 if test "$building_for_macosx" = yes; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc library" >&5
15492 $as_echo_n "checking for dmalloc library... " >&6; }
15494 # Check whether --with-dmalloc was given.
15495 if test "${with_dmalloc+set}" = set; then :
15496 withval=$with_dmalloc; with_dmalloc=$withval
15504 if test "$with_dmalloc" != "no"; then
15505 if test "$with_dmalloc" = "yes"; then
15506 with_dmalloc="/usr/local"
15509 if test -r "$with_dmalloc/libdmalloc.a"; then
15510 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a"
15512 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15515 $as_echo "yes" >&6; }
15516 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then
15517 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a"
15519 $as_echo "#define WITH_DMALLOC /**/" >>confdefs.h
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15522 $as_echo "yes" >&6; }
15524 as_fn_error please check your installation. "cannot find dmalloc library" "$LINENO" 5
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528 $as_echo "no" >&6; }
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sfio library" >&5
15534 $as_echo_n "checking for sfio library... " >&6; }
15536 # Check whether --with-sfio was given.
15537 if test "${with_sfio+set}" = set; then :
15538 withval=$with_sfio; with_sfio=$withval
15544 if test "$with_sfio" != "no"; then
15545 if test "$with_sfio" = "yes"; then
15546 with_sfio="/usr/local"
15553 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15554 SFIO_INC_DIR=$with_sfio
15555 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio;
15556 SFIO_INC_DIR=$with_sfio/include
15557 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio;
15558 SFIO_INC_DIR=$with_sfio/include/sfio
15561 if test -z "$SFIO_DIR"; then
15562 as_fn_error Please check your SFIO installation. "Cannot find sfio.h" "$LINENO" 5
15566 str="$SFIO_DIR/lib/libsfio.*"
15567 for i in `echo $str`; do
15568 if test -r $i; then
15569 SFIO_LIBDIR=$SFIO_DIR/lib
15575 str="$SFIO_DIR/lib/sfio/libsfio.*"
15576 for i in `echo $str`; do
15577 if test -r $i; then
15578 SFIO_LIBDIR=$SFIO_DIR/lib/sfio
15584 if test -z "$SFIO_LIBDIR"; then
15585 as_fn_error Please check your SFIO installation. "Cannot find sfio library" "$LINENO" 5
15588 SFIO_INC_FLAGS="-I$SFIO_INC_DIR"
15589 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio"
15590 SMTPTEST_PROGRAM="smtptest"
15591 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la
15592 SASL_UTIL_HEADERS_EXTRA=sfsasl.h
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15595 $as_echo "yes" >&6; }
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15601 SMTPTEST_PROGRAM=""
15602 SASL_UTIL_LIBS_EXTRA=""
15603 SASL_UTIL_HEADERS_EXTRA=""
15612 sasl_cv_getsubopt=no
15613 ac_fn_c_check_func "$LINENO" "getsubopt" "ac_cv_func_getsubopt"
15614 if test "x$ac_cv_func_getsubopt" = xyes; then :
15616 $as_echo "#define HAVE_GETSUBOPT /**/" >>confdefs.h
15619 sasl_cv_getsubopt=yes
15622 if test $sasl_cv_getsubopt = yes; then
15623 case " $LIBOBJS " in
15624 *" getsubopt.$ac_objext "* ) ;;
15625 *) LIBOBJS="$LIBOBJS getsubopt.$ac_objext"
15629 GETSUBOPT="getsubopt.lo"
15633 sasl_cv_snprintf=no
15635 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15636 if test "x$ac_cv_func_snprintf" = xyes; then :
15638 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
15641 sasl_cv_snprintf=yes
15644 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
15645 if test "x$ac_cv_func_vsnprintf" = xyes; then :
15647 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
15650 sasl_cv_snprintf=yes
15653 if test $sasl_cv_snprintf = yes; then
15654 case " $LIBOBJS " in
15655 *" snprintf.$ac_objext "* ) ;;
15656 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15660 SNPRINTFOBJS="snprintf.o"
15661 LTSNPRINTFOBJS="snprintf.lo"
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
15667 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
15668 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
15669 $as_echo_n "(cached) " >&6
15671 ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lresolv $LIBS"
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15686 return inet_aton ();
15691 if ac_fn_c_try_link "$LINENO"; then :
15692 ac_cv_lib_resolv_inet_aton=yes
15694 ac_cv_lib_resolv_inet_aton=no
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
15701 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
15702 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_LIBRESOLV 1
15707 LIBS="-lresolv $LIBS"
15713 sasl_cv_getaddrinfo=yes
15715 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15716 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15717 ac_cv_lib_socket_getaddrinfo=no
15718 ac_cv_lib_inet6_getaddrinfo=no
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
15722 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
15723 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
15724 $as_echo_n "(cached) " >&6
15726 ac_check_lib_save_LIBS=$LIBS
15727 LIBS="-lsocket $LIBS"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15731 /* Override any GCC internal prototype to avoid an error.
15732 Use char because int might match the return type of a GCC
15733 builtin and then its argument prototype would still apply. */
15737 char getaddrinfo ();
15741 return getaddrinfo ();
15746 if ac_fn_c_try_link "$LINENO"; then :
15747 ac_cv_lib_socket_getaddrinfo=yes
15749 ac_cv_lib_socket_getaddrinfo=no
15751 rm -f core conftest.err conftest.$ac_objext \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
15756 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
15757 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
15758 LIBS="$LIBS -lsocket"
15759 ac_cv_lib_inet6_getaddrinfo=no
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15763 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15764 if ${ipv6_cv_dir+:} false; then :
15765 $as_echo_n "(cached) " >&6
15767 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15768 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15774 $as_echo "$ipv6_cv_dir" >&6; }
15775 if test $ipv6_cv_dir = no; then
15776 ac_cv_lib_inet6_getaddrinfo=no
15778 if test x$ipv6_libinet6 = x; then
15780 SAVELDFLAGS="$LDFLAGS"
15781 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
15784 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
15785 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
15786 $as_echo_n "(cached) " >&6
15788 ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-linet6 $LIBS"
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15793 /* Override any GCC internal prototype to avoid an error.
15794 Use char because int might match the return type of a GCC
15795 builtin and then its argument prototype would still apply. */
15799 char getaddrinfo ();
15803 return getaddrinfo ();
15808 if ac_fn_c_try_link "$LINENO"; then :
15809 ac_cv_lib_inet6_getaddrinfo=yes
15811 ac_cv_lib_inet6_getaddrinfo=no
15813 rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
15818 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
15819 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
15820 if test $ipv6_libinet6 = no; then
15822 LIBS="$LIBS -linet6"
15825 if test $ipv6_libinet6 = no; then
15826 LDFLAGS="$SAVELDFLAGS"
15832 ipv6_cv_getaddrinfo=no
15833 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
15834 -o $ac_cv_lib_inet6_getaddrinfo = yes
15836 ipv6_cv_getaddrinfo=yes
15838 if test $ipv6_cv_getaddrinfo = no; then
15839 if test getaddrinfo = getaddrinfo; then
15840 for ipv6_cv_pfx in o n; do
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15847 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
15848 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
15849 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
15850 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15857 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
15859 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
15861 ipv6_cv_getaddrinfo=yes
15867 if test $ipv6_cv_getaddrinfo = yes; then
15869 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
15870 if test "x$ac_cv_func_gai_strerror" = xyes; then :
15871 ac_cv_lib_socket_gai_strerror=no
15872 ac_cv_lib_inet6_gai_strerror=no
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -lsocket" >&5
15876 $as_echo_n "checking for gai_strerror in -lsocket... " >&6; }
15877 if ${ac_cv_lib_socket_gai_strerror+:} false; then :
15878 $as_echo_n "(cached) " >&6
15880 ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lsocket $LIBS"
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15885 /* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
15891 char gai_strerror ();
15895 return gai_strerror ();
15900 if ac_fn_c_try_link "$LINENO"; then :
15901 ac_cv_lib_socket_gai_strerror=yes
15903 ac_cv_lib_socket_gai_strerror=no
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 LIBS=$ac_check_lib_save_LIBS
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gai_strerror" >&5
15910 $as_echo "$ac_cv_lib_socket_gai_strerror" >&6; }
15911 if test "x$ac_cv_lib_socket_gai_strerror" = xyes; then :
15912 LIBS="$LIBS -lsocket"
15913 ac_cv_lib_inet6_gai_strerror=no
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
15917 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
15918 if ${ipv6_cv_dir+:} false; then :
15919 $as_echo_n "(cached) " >&6
15921 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
15922 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
15928 $as_echo "$ipv6_cv_dir" >&6; }
15929 if test $ipv6_cv_dir = no; then
15930 ac_cv_lib_inet6_gai_strerror=no
15932 if test x$ipv6_libinet6 = x; then
15934 SAVELDFLAGS="$LDFLAGS"
15935 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror in -linet6" >&5
15938 $as_echo_n "checking for gai_strerror in -linet6... " >&6; }
15939 if ${ac_cv_lib_inet6_gai_strerror+:} false; then :
15940 $as_echo_n "(cached) " >&6
15942 ac_check_lib_save_LIBS=$LIBS
15943 LIBS="-linet6 $LIBS"
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15947 /* Override any GCC internal prototype to avoid an error.
15948 Use char because int might match the return type of a GCC
15949 builtin and then its argument prototype would still apply. */
15953 char gai_strerror ();
15957 return gai_strerror ();
15962 if ac_fn_c_try_link "$LINENO"; then :
15963 ac_cv_lib_inet6_gai_strerror=yes
15965 ac_cv_lib_inet6_gai_strerror=no
15967 rm -f core conftest.err conftest.$ac_objext \
15968 conftest$ac_exeext conftest.$ac_ext
15969 LIBS=$ac_check_lib_save_LIBS
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gai_strerror" >&5
15972 $as_echo "$ac_cv_lib_inet6_gai_strerror" >&6; }
15973 if test "x$ac_cv_lib_inet6_gai_strerror" = xyes; then :
15974 if test $ipv6_libinet6 = no; then
15976 LIBS="$LIBS -linet6"
15979 if test $ipv6_libinet6 = no; then
15980 LDFLAGS="$SAVELDFLAGS"
15986 ipv6_cv_gai_strerror=no
15987 if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \
15988 -o $ac_cv_lib_inet6_gai_strerror = yes
15990 ipv6_cv_gai_strerror=yes
15992 if test $ipv6_cv_gai_strerror = no; then
15993 if test gai_strerror = getaddrinfo; then
15994 for ipv6_cv_pfx in o n; do
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
16000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16001 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then :
16002 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh`
16003 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gai_strerror" "$as_ac_var"
16004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16011 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then
16013 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16015 ipv6_cv_gai_strerror=yes
16021 if test $ipv6_cv_gai_strerror = yes; then
16023 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16025 sasl_cv_getaddrinfo=no
16032 if test $sasl_cv_getaddrinfo = yes; then
16033 case " $LIBOBJS " in
16034 *" getaddrinfo.$ac_objext "* ) ;;
16035 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16039 GETADDRINFOOBJS="getaddrinfo.o"
16040 LTGETADDRINFOOBJS="getaddrinfo.lo"
16046 sasl_cv_getnameinfo=no
16048 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
16049 if test "x$ac_cv_func_getnameinfo" = xyes; then :
16050 ac_cv_lib_socket_getnameinfo=no
16051 ac_cv_lib_inet6_getnameinfo=no
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
16055 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
16056 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
16057 $as_echo_n "(cached) " >&6
16059 ac_check_lib_save_LIBS=$LIBS
16060 LIBS="-lsocket $LIBS"
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16064 /* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
16070 char getnameinfo ();
16074 return getnameinfo ();
16079 if ac_fn_c_try_link "$LINENO"; then :
16080 ac_cv_lib_socket_getnameinfo=yes
16082 ac_cv_lib_socket_getnameinfo=no
16084 rm -f core conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 LIBS=$ac_check_lib_save_LIBS
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
16089 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
16090 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
16091 LIBS="$LIBS -lsocket"
16092 ac_cv_lib_inet6_getnameinfo=no
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
16096 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
16097 if ${ipv6_cv_dir+:} false; then :
16098 $as_echo_n "(cached) " >&6
16100 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
16101 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
16107 $as_echo "$ipv6_cv_dir" >&6; }
16108 if test $ipv6_cv_dir = no; then
16109 ac_cv_lib_inet6_getnameinfo=no
16111 if test x$ipv6_libinet6 = x; then
16113 SAVELDFLAGS="$LDFLAGS"
16114 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
16117 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
16118 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
16119 $as_echo_n "(cached) " >&6
16121 ac_check_lib_save_LIBS=$LIBS
16122 LIBS="-linet6 $LIBS"
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16126 /* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
16132 char getnameinfo ();
16136 return getnameinfo ();
16141 if ac_fn_c_try_link "$LINENO"; then :
16142 ac_cv_lib_inet6_getnameinfo=yes
16144 ac_cv_lib_inet6_getnameinfo=no
16146 rm -f core conftest.err conftest.$ac_objext \
16147 conftest$ac_exeext conftest.$ac_ext
16148 LIBS=$ac_check_lib_save_LIBS
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
16151 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
16152 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
16153 if test $ipv6_libinet6 = no; then
16155 LIBS="$LIBS -linet6"
16158 if test $ipv6_libinet6 = no; then
16159 LDFLAGS="$SAVELDFLAGS"
16165 ipv6_cv_getnameinfo=no
16166 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
16167 -o $ac_cv_lib_inet6_getnameinfo = yes
16169 ipv6_cv_getnameinfo=yes
16171 if test $ipv6_cv_getnameinfo = no; then
16172 if test getnameinfo = getaddrinfo; then
16173 for ipv6_cv_pfx in o n; do
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16180 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
16181 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
16182 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
16183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16190 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
16192 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
16194 ipv6_cv_getnameinfo=yes
16200 if test $ipv6_cv_getnameinfo = yes; then
16202 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
16205 sasl_cv_getnameinfo=yes
16207 if test $sasl_cv_getnameinfo = yes; then
16208 case " $LIBOBJS " in
16209 *" getnameinfo.$ac_objext "* ) ;;
16210 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
16214 GETNAMEINFOOBJS="getnameinfo.o"
16215 LTGETNAMEINFOOBJS="getnameinfo.lo"
16220 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16224 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16225 if ${ac_cv_c_const+:} false; then :
16226 $as_echo_n "(cached) " >&6
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16234 /* FIXME: Include the comments suggested by Paul. */
16235 #ifndef __cplusplus
16236 /* Ultrix mips cc rejects this. */
16237 typedef int charset[2];
16239 /* SunOS 4.1.1 cc rejects this. */
16240 char const *const *pcpcc;
16242 /* NEC SVR4.0.2 mips cc rejects this. */
16243 struct point {int x, y;};
16244 static struct point const zero = {0,0};
16245 /* AIX XL C 1.02.0.0 rejects this.
16246 It does not let you subtract one const X* pointer from another in
16247 an arm of an if-expression whose if-part is not a constant
16249 const char *g = "string";
16250 pcpcc = &g + (g ? g-g : 0);
16251 /* HPUX 7.0 cc rejects these. */
16253 ppc = (char**) pcpcc;
16254 pcpcc = (char const *const *) ppc;
16255 { /* SCO 3.2v4 cc rejects this. */
16257 char const *s = 0 ? (char *) 0 : (char const *) 0;
16262 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16263 int x[] = {25, 17};
16264 const int *foo = &x[0];
16267 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16268 typedef const int *iptr;
16272 { /* AIX XL C 1.02.0.0 rejects this saying
16273 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16274 struct s { int j; const int *ap[3]; };
16275 struct s *b; b->j = 5;
16277 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16278 const int foo = 10;
16279 if (!foo) return 0;
16281 return !cs[0] && !zero.x;
16288 if ac_fn_c_try_compile "$LINENO"; then :
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16296 $as_echo "$ac_cv_c_const" >&6; }
16297 if test $ac_cv_c_const = no; then
16299 $as_echo "#define const /**/" >>confdefs.h
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16304 $as_echo_n "checking for inline... " >&6; }
16305 if ${ac_cv_c_inline+:} false; then :
16306 $as_echo_n "(cached) " >&6
16309 for ac_kw in inline __inline__ __inline; do
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 #ifndef __cplusplus
16314 static $ac_kw foo_t static_foo () {return 0; }
16315 $ac_kw foo_t foo () {return 0; }
16319 if ac_fn_c_try_compile "$LINENO"; then :
16320 ac_cv_c_inline=$ac_kw
16322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 test "$ac_cv_c_inline" != no && break
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16328 $as_echo "$ac_cv_c_inline" >&6; }
16330 case $ac_cv_c_inline in
16333 case $ac_cv_c_inline in
16335 *) ac_val=$ac_cv_c_inline;;
16337 cat >>confdefs.h <<_ACEOF
16338 #ifndef __cplusplus
16339 #define inline $ac_val
16345 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16346 if test "x$ac_cv_type_mode_t" = xyes; then :
16350 cat >>confdefs.h <<_ACEOF
16356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16357 if test "x$ac_cv_type_pid_t" = xyes; then :
16361 cat >>confdefs.h <<_ACEOF
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16368 $as_echo_n "checking return type of signal handlers... " >&6; }
16369 if ${ac_cv_type_signal+:} false; then :
16370 $as_echo_n "(cached) " >&6
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 #include <sys/types.h>
16375 #include <signal.h>
16380 return *(signal (0, 0)) (0) == 1;
16385 if ac_fn_c_try_compile "$LINENO"; then :
16386 ac_cv_type_signal=int
16388 ac_cv_type_signal=void
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16393 $as_echo "$ac_cv_type_signal" >&6; }
16395 cat >>confdefs.h <<_ACEOF
16396 #define RETSIGTYPE $ac_cv_type_signal
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16403 if ${ac_cv_header_time+:} false; then :
16404 $as_echo_n "(cached) " >&6
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16408 #include <sys/types.h>
16409 #include <sys/time.h>
16415 if ((struct tm *) 0)
16421 if ac_fn_c_try_compile "$LINENO"; then :
16422 ac_cv_header_time=yes
16424 ac_cv_header_time=no
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16429 $as_echo "$ac_cv_header_time" >&6; }
16430 if test $ac_cv_header_time = yes; then
16432 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16437 $as_echo_n "checking for ANSI C header files... " >&6; }
16438 if ${ac_cv_header_stdc+:} false; then :
16439 $as_echo_n "(cached) " >&6
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 #include <stdlib.h>
16444 #include <stdarg.h>
16445 #include <string.h>
16456 if ac_fn_c_try_compile "$LINENO"; then :
16457 ac_cv_header_stdc=yes
16459 ac_cv_header_stdc=no
16461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 if test $ac_cv_header_stdc = yes; then
16464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 #include <string.h>
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "memchr" >/dev/null 2>&1; then :
16474 ac_cv_header_stdc=no
16480 if test $ac_cv_header_stdc = yes; then
16481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 #include <stdlib.h>
16487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16488 $EGREP "free" >/dev/null 2>&1; then :
16491 ac_cv_header_stdc=no
16497 if test $ac_cv_header_stdc = yes; then
16498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16499 if test "$cross_compiling" = yes; then :
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16505 #include <stdlib.h>
16506 #if ((' ' & 0x0FF) == 0x020)
16507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16510 # define ISLOWER(c) \
16511 (('a' <= (c) && (c) <= 'i') \
16512 || ('j' <= (c) && (c) <= 'r') \
16513 || ('s' <= (c) && (c) <= 'z'))
16514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16522 for (i = 0; i < 256; i++)
16523 if (XOR (islower (i), ISLOWER (i))
16524 || toupper (i) != TOUPPER (i))
16529 if ac_fn_c_try_run "$LINENO"; then :
16532 ac_cv_header_stdc=no
16534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16535 conftest.$ac_objext conftest.beam conftest.$ac_ext
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16541 $as_echo "$ac_cv_header_stdc" >&6; }
16542 if test $ac_cv_header_stdc = yes; then
16544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16548 ac_header_dirent=no
16549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16550 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16552 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16553 if eval \${$as_ac_Header+:} false; then :
16554 $as_echo_n "(cached) " >&6
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 #include <sys/types.h>
16570 if ac_fn_c_try_compile "$LINENO"; then :
16571 eval "$as_ac_Header=yes"
16573 eval "$as_ac_Header=no"
16575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 eval ac_res=\$$as_ac_Header
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16579 $as_echo "$ac_res" >&6; }
16580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16581 cat >>confdefs.h <<_ACEOF
16582 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16585 ac_header_dirent=$ac_hdr; break
16589 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16590 if test $ac_header_dirent = dirent.h; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16592 $as_echo_n "checking for library containing opendir... " >&6; }
16593 if ${ac_cv_search_opendir+:} false; then :
16594 $as_echo_n "(cached) " >&6
16596 ac_func_search_save_LIBS=$LIBS
16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16600 /* Override any GCC internal prototype to avoid an error.
16601 Use char because int might match the return type of a GCC
16602 builtin and then its argument prototype would still apply. */
16615 for ac_lib in '' dir; do
16616 if test -z "$ac_lib"; then
16617 ac_res="none required"
16620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16622 if ac_fn_c_try_link "$LINENO"; then :
16623 ac_cv_search_opendir=$ac_res
16625 rm -f core conftest.err conftest.$ac_objext \
16627 if ${ac_cv_search_opendir+:} false; then :
16631 if ${ac_cv_search_opendir+:} false; then :
16634 ac_cv_search_opendir=no
16636 rm conftest.$ac_ext
16637 LIBS=$ac_func_search_save_LIBS
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16640 $as_echo "$ac_cv_search_opendir" >&6; }
16641 ac_res=$ac_cv_search_opendir
16642 if test "$ac_res" != no; then :
16643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16649 $as_echo_n "checking for library containing opendir... " >&6; }
16650 if ${ac_cv_search_opendir+:} false; then :
16651 $as_echo_n "(cached) " >&6
16653 ac_func_search_save_LIBS=$LIBS
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16672 for ac_lib in '' x; do
16673 if test -z "$ac_lib"; then
16674 ac_res="none required"
16677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16679 if ac_fn_c_try_link "$LINENO"; then :
16680 ac_cv_search_opendir=$ac_res
16682 rm -f core conftest.err conftest.$ac_objext \
16684 if ${ac_cv_search_opendir+:} false; then :
16688 if ${ac_cv_search_opendir+:} false; then :
16691 ac_cv_search_opendir=no
16693 rm conftest.$ac_ext
16694 LIBS=$ac_func_search_save_LIBS
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16697 $as_echo "$ac_cv_search_opendir" >&6; }
16698 ac_res=$ac_cv_search_opendir
16699 if test "$ac_res" != no; then :
16700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16707 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16708 if ${ac_cv_header_sys_wait_h+:} false; then :
16709 $as_echo_n "(cached) " >&6
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16713 #include <sys/types.h>
16714 #include <sys/wait.h>
16715 #ifndef WEXITSTATUS
16716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 ac_cv_header_sys_wait_h=yes
16735 ac_cv_header_sys_wait_h=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16740 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16741 if test $ac_cv_header_sys_wait_h = yes; then
16743 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16747 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
16749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16752 cat >>confdefs.h <<_ACEOF
16753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
16763 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
16764 if ${ipv6_cv_ss_family+:} false; then :
16765 $as_echo_n "(cached) " >&6
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 #include <sys/types.h>
16770 #include <sys/socket.h>
16774 struct sockaddr_storage ss; int i = ss.ss_family;
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780 ipv6_cv_ss_family=yes
16782 ipv6_cv_ss_family=no
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 if test $ipv6_cv_ss_family = yes; then
16788 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
16794 $as_echo "$ipv6_cv_ss_family" >&6; }
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
16797 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
16798 if ${ipv6_cv_sa_len+:} false; then :
16799 $as_echo_n "(cached) " >&6
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803 #include <sys/types.h>
16804 #include <sys/socket.h>
16808 struct sockaddr sa; int i = sa.sa_len;
16813 if ac_fn_c_try_compile "$LINENO"; then :
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 if test $ipv6_cv_sa_len = yes; then
16822 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
16828 $as_echo "$ipv6_cv_sa_len" >&6; }
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
16831 $as_echo_n "checking for socklen_t... " >&6; }
16832 if ${ipv6_cv_socklen_t+:} false; then :
16833 $as_echo_n "(cached) " >&6
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837 #include <sys/types.h>
16838 #include <sys/socket.h>
16847 if ac_fn_c_try_link "$LINENO"; then :
16848 ipv6_cv_socklen_t=yes
16850 ipv6_cv_socklen_t=no
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16855 if test $ipv6_cv_socklen_t = yes; then
16857 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
16863 $as_echo "$ipv6_cv_socklen_t" >&6; }
16867 for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48
16869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16872 cat >>confdefs.h <<_ACEOF
16873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16880 if test $enable_cmulocal = yes; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enabling CMU local kludges" >&5
16882 $as_echo "$as_me: WARNING: enabling CMU local kludges" >&2;}
16884 $as_echo "#define KRB4_IGNORE_IP_ADDRESS /**/" >>confdefs.h
16887 cat >>confdefs.h <<_ACEOF
16888 #define PREFER_MECH "KERBEROS_V4"
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 #include <sys/socket.h>
16898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16899 $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
16902 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
16912 subdirs="$subdirs saslauthd"
16919 ac_config_headers="$ac_config_headers config.h"
16922 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"
16924 cat >confcache <<\_ACEOF
16925 # This file is a shell script that caches the results of configure
16926 # tests run on this system so they can be shared between configure
16927 # scripts and configure runs, see configure's option --config-cache.
16928 # It is not useful on other systems. If it contains results you don't
16929 # want to keep, you may remove or edit it.
16931 # config.status only pays attention to the cache file if you give it
16932 # the --recheck option to rerun configure.
16934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16936 # following values.
16940 # The following way of writing the cache mishandles newlines in values,
16941 # but we know of no workaround that is simple, portable, and efficient.
16942 # So, we kill variables containing newlines.
16943 # Ultrix sh set writes to stderr and can't be redirected directly,
16944 # and sets the high bit in the cache file unless we assign to the vars.
16946 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16947 eval ac_val=\$$ac_var
16951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16955 _ | IFS | as_nl) ;; #(
16956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16957 *) { eval $ac_var=; unset $ac_var;} ;;
16963 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16964 *${as_nl}ac_space=\ *)
16965 # `set' does not quote correctly, so add quotes: double-quote
16966 # substitution turns \\\\ into \\, and sed turns \\ into \.
16969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16972 # `set' quotes correctly as required by POSIX, so do not add quotes.
16973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16984 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16987 if test -w "$cache_file"; then
16988 if test "x$cache_file" != "x/dev/null"; then
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16990 $as_echo "$as_me: updating cache $cache_file" >&6;}
16991 if test ! -f "$cache_file" || test -h "$cache_file"; then
16992 cat confcache >"$cache_file"
16994 case $cache_file in #(
16996 mv -f confcache "$cache_file"$$ &&
16997 mv -f "$cache_file"$$ "$cache_file" ;; #(
16999 mv -f confcache "$cache_file" ;;
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17011 # Let make expand exec_prefix.
17012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17014 DEFS=-DHAVE_CONFIG_H
17019 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17020 # 1. Remove the extension, and $U if already installed.
17021 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17022 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17023 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17024 # will be set to the directory where LIBOBJS objects are built.
17025 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17026 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17028 LIBOBJS=$ac_libobjs
17030 LTLIBOBJS=$ac_ltlibobjs
17033 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17034 as_fn_error $? "conditional \"AMDEP\" was never defined.
17035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17037 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17038 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then
17042 as_fn_error $? "conditional \"JAVA\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then
17046 as_fn_error $? "conditional \"SAMPLE\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17049 if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then
17050 as_fn_error $? "conditional \"NO_SASL_DB_MANS\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17053 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
17054 as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then
17058 as_fn_error $? "conditional \"PWCHECK\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
17062 as_fn_error $? "conditional \"MACOSX\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17066 : "${CONFIG_STATUS=./config.status}"
17068 ac_clean_files_save=$ac_clean_files
17069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17071 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17073 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17075 # Generated by $as_me.
17076 # Run this file to recreate the current configuration.
17077 # Compiler output produced by configure, useful for debugging
17078 # configure, is in config.log if it exists.
17081 ac_cs_recheck=false
17084 SHELL=\${CONFIG_SHELL-$SHELL}
17087 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17088 ## -------------------- ##
17089 ## M4sh Initialization. ##
17090 ## -------------------- ##
17092 # Be more Bourne compatible
17093 DUALCASE=1; export DUALCASE # for MKS sh
17094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17097 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17098 # is contrary to our usage. Disable this feature.
17099 alias -g '${1+"$@"}'='"$@"'
17100 setopt NO_GLOB_SUBST
17102 case `(set -o) 2>/dev/null` in #(
17114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17115 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17118 # Prefer a ksh shell builtin over an external printf program on Solaris,
17119 # but without wasting forks for bash or zsh.
17120 if test -z "$BASH_VERSION$ZSH_VERSION" \
17121 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17122 as_echo='print -r --'
17123 as_echo_n='print -rn --'
17124 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17125 as_echo='printf %s\n'
17126 as_echo_n='printf %s'
17128 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17129 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17130 as_echo_n='/usr/ucb/echo -n'
17132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17133 as_echo_n_body='eval
17137 expr "X$arg" : "X\\(.*\\)$as_nl";
17138 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17140 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17142 export as_echo_n_body
17143 as_echo_n='sh -c $as_echo_n_body as_echo'
17145 export as_echo_body
17146 as_echo='sh -c $as_echo_body as_echo'
17149 # The user is always right.
17150 if test "${PATH_SEPARATOR+set}" != set; then
17152 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17153 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17160 # We need space, tab and new line, in precisely that order. Quoting is
17161 # there to prevent editors from complaining about space-tab.
17162 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17163 # splitting by setting IFS to empty value.)
17166 # Find who we are. Look in the path if we contain no directory separator.
17169 *[\\/]* ) as_myself=$0 ;;
17170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17174 test -z "$as_dir" && as_dir=.
17175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17181 # We did not find ourselves, most probably we were run as `sh COMMAND'
17182 # in which case we are not to be found in the path.
17183 if test "x$as_myself" = x; then
17186 if test ! -f "$as_myself"; then
17187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17191 # Unset variables that we do not need and which cause bugs (e.g. in
17192 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17193 # suppresses any "Segmentation fault" message there. '((' could
17194 # trigger a bug in pdksh 5.2.14.
17195 for as_var in BASH_ENV ENV MAIL MAILPATH
17196 do eval test x\${$as_var+set} = xset \
17197 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17213 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17214 # ----------------------------------------
17215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17217 # script with STATUS, using 1 if that was 0.
17220 as_status=$1; test $as_status -eq 0 && as_status=1
17222 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17223 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17225 $as_echo "$as_me: error: $2" >&2
17226 as_fn_exit $as_status
17230 # as_fn_set_status STATUS
17231 # -----------------------
17232 # Set $? to STATUS, without forking.
17233 as_fn_set_status ()
17236 } # as_fn_set_status
17238 # as_fn_exit STATUS
17239 # -----------------
17240 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17244 as_fn_set_status $1
17250 # Portably unset VAR.
17253 { eval $1=; unset $1;}
17255 as_unset=as_fn_unset
17256 # as_fn_append VAR VALUE
17257 # ----------------------
17258 # Append the text in VALUE to the end of the definition contained in VAR. Take
17259 # advantage of any shell optimizations that allow amortized linear growth over
17260 # repeated appends, instead of the typical quadratic growth present in naive
17262 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17263 eval 'as_fn_append ()
17274 # as_fn_arith ARG...
17275 # ------------------
17276 # Perform arithmetic evaluation on the ARGs, and store the result in the
17277 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17278 # must be portable across $(()) and expr.
17279 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17280 eval 'as_fn_arith ()
17287 as_val=`expr "$@" || test $? -eq 1`
17292 if expr a : '\(a\)' >/dev/null 2>&1 &&
17293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17300 as_basename=basename
17305 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17311 as_me=`$as_basename -- "$0" ||
17312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17313 X"$0" : 'X\(//\)$' \| \
17314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17316 sed '/^.*\/\([^/][^/]*\)\/*$/{
17330 # Avoid depending upon Character Ranges.
17331 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17332 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17333 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17334 as_cr_digits='0123456789'
17335 as_cr_alnum=$as_cr_Letters$as_cr_digits
17337 ECHO_C= ECHO_N= ECHO_T=
17338 case `echo -n x` in #(((((
17340 case `echo 'xy\c'` in
17341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17343 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17350 rm -f conf$$ conf$$.exe conf$$.file
17351 if test -d conf$$.dir; then
17352 rm -f conf$$.dir/conf$$.file
17355 mkdir conf$$.dir 2>/dev/null
17357 if (echo >conf$$.file) 2>/dev/null; then
17358 if ln -s conf$$.file conf$$ 2>/dev/null; then
17360 # ... but there are two gotchas:
17361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17363 # In both cases, we have to default to `cp -p'.
17364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17366 elif ln conf$$.file conf$$ 2>/dev/null; then
17374 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17375 rmdir conf$$.dir 2>/dev/null
17380 # Create "$as_dir" as a directory, including parents if necessary.
17385 -*) as_dir=./$as_dir;;
17387 test -d "$as_dir" || eval $as_mkdir_p || {
17391 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17392 *) as_qdir=$as_dir;;
17394 as_dirs="'$as_qdir' $as_dirs"
17395 as_dir=`$as_dirname -- "$as_dir" ||
17396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17397 X"$as_dir" : 'X\(//\)[^/]' \| \
17398 X"$as_dir" : 'X\(//\)$' \| \
17399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17400 $as_echo X"$as_dir" |
17401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17405 /^X\(\/\/\)[^/].*/{
17418 test -d "$as_dir" && break
17420 test -z "$as_dirs" || eval "mkdir $as_dirs"
17421 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17425 if mkdir -p . 2>/dev/null; then
17426 as_mkdir_p='mkdir -p "$as_dir"'
17428 test -d ./-p && rmdir ./-p
17432 if test -x / >/dev/null 2>&1; then
17433 as_test_x='test -x'
17435 if ls -dL / >/dev/null 2>&1; then
17442 if test -d "$1"; then
17448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17449 ???[sx]*):;;*)false;;esac;fi
17453 as_executable_p=$as_test_x
17455 # Sed expression to map a string onto a valid CPP name.
17456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17458 # Sed expression to map a string onto a valid variable name.
17459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17463 ## ----------------------------------- ##
17464 ## Main body of $CONFIG_STATUS script. ##
17465 ## ----------------------------------- ##
17467 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470 # Save the log message, to keep $0 and so on meaningful, and to
17471 # report actual input values of CONFIG_FILES etc. instead of their
17472 # values after options handling.
17474 This file was extended by $as_me, which was
17475 generated by GNU Autoconf 2.68. Invocation command line was
17477 CONFIG_FILES = $CONFIG_FILES
17478 CONFIG_HEADERS = $CONFIG_HEADERS
17479 CONFIG_LINKS = $CONFIG_LINKS
17480 CONFIG_COMMANDS = $CONFIG_COMMANDS
17483 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17488 case $ac_config_files in *"
17489 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17492 case $ac_config_headers in *"
17493 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17498 # Files that config.status was made for.
17499 config_files="$ac_config_files"
17500 config_headers="$ac_config_headers"
17501 config_commands="$ac_config_commands"
17505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507 \`$as_me' instantiates files and other configuration actions
17508 from templates according to the current configuration. Unless the files
17509 and actions are specified as TAGs, all are instantiated by default.
17511 Usage: $0 [OPTION]... [TAG]...
17513 -h, --help print this help, then exit
17514 -V, --version print version number and configuration settings, then exit
17515 --config print configuration, then exit
17516 -q, --quiet, --silent
17517 do not print progress messages
17518 -d, --debug don't remove temporary files
17519 --recheck update $as_me by reconfiguring in the same conditions
17520 --file=FILE[:TEMPLATE]
17521 instantiate the configuration file FILE
17522 --header=FILE[:TEMPLATE]
17523 instantiate the configuration header FILE
17525 Configuration files:
17528 Configuration headers:
17531 Configuration commands:
17534 Report bugs to the package provider."
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17541 configured by $0, generated by GNU Autoconf 2.68,
17542 with options \\"\$ac_cs_config\\"
17544 Copyright (C) 2010 Free Software Foundation, Inc.
17545 This config.status script is free software; the Free Software Foundation
17546 gives unlimited permission to copy, distribute and modify it."
17553 test -n "\$AWK" || AWK=awk
17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557 # The default lists apply if the user does not specify any file.
17563 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17564 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17580 # Handling of the options.
17581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17583 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17584 $as_echo "$ac_cs_version"; exit ;;
17585 --config | --confi | --conf | --con | --co | --c )
17586 $as_echo "$ac_cs_config"; exit ;;
17587 --debug | --debu | --deb | --de | --d | -d )
17589 --file | --fil | --fi | --f )
17592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17593 '') as_fn_error $? "missing file argument" ;;
17595 as_fn_append CONFIG_FILES " '$ac_optarg'"
17596 ac_need_defaults=false;;
17597 --header | --heade | --head | --hea )
17600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17602 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17603 ac_need_defaults=false;;
17605 # Conflict between --help and --header
17606 as_fn_error $? "ambiguous option: \`$1'
17607 Try \`$0 --help' for more information.";;
17608 --help | --hel | -h )
17609 $as_echo "$ac_cs_usage"; exit ;;
17610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17614 # This is an error.
17615 -*) as_fn_error $? "unrecognized option: \`$1'
17616 Try \`$0 --help' for more information." ;;
17618 *) as_fn_append ac_config_targets " $1"
17619 ac_need_defaults=false ;;
17625 ac_configure_extra_args=
17627 if $ac_cs_silent; then
17629 ac_configure_extra_args="$ac_configure_extra_args --silent"
17633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17634 if \$ac_cs_recheck; then
17635 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17637 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17638 CONFIG_SHELL='$SHELL'
17639 export CONFIG_SHELL
17644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17649 ## Running $as_me. ##
17655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17662 # The HP-UX ksh and POSIX shell print the target directory to stdout
17663 # if CDPATH is set.
17664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17666 sed_quote_subst='$sed_quote_subst'
17667 double_quote_subst='$double_quote_subst'
17668 delay_variable_subst='$delay_variable_subst'
17669 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17670 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17671 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17672 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17673 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17674 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17675 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17676 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17677 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17678 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17679 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17680 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17681 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17682 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17683 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17684 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17685 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17686 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17687 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17688 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17689 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17690 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17691 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17692 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17693 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17694 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17695 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17696 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17697 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17698 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17699 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17700 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17701 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17704 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17705 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17706 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17707 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17708 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17709 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17710 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17711 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17712 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17713 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17714 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17716 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17717 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"`'
17718 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17719 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17720 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17721 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17722 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17723 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17724 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17725 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17726 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17727 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17728 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17729 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17730 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17731 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17732 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17733 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17734 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17735 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17736 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17737 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17738 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17739 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17740 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17741 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17742 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17743 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17744 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17745 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17746 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17747 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17748 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17749 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17750 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17751 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17752 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17753 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17754 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17755 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17756 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17757 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17758 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17759 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17760 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17761 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17762 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17763 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17764 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17765 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17766 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17767 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17768 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17769 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17770 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17771 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17772 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17773 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17774 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17775 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17776 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17777 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17778 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17779 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17780 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17781 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17782 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17783 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17784 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17785 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17786 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17787 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17788 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17791 LTCFLAGS='$LTCFLAGS'
17792 compiler='$compiler_DEFAULT'
17794 # A function that is used when there is no print builtin or printf.
17795 func_fallback_echo ()
17797 eval 'cat <<_LTECHO_EOF
17802 # Quote evaled strings.
17816 deplibs_check_method \
17825 lt_cv_sys_global_symbol_pipe \
17826 lt_cv_sys_global_symbol_to_cdecl \
17827 lt_cv_sys_global_symbol_to_c_name_address \
17828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17829 lt_prog_compiler_no_builtin_flag \
17830 lt_prog_compiler_wl \
17831 lt_prog_compiler_pic \
17832 lt_prog_compiler_static \
17833 lt_cv_prog_compiler_c_o \
17841 export_dynamic_flag_spec \
17842 whole_archive_flag_spec \
17843 compiler_needs_object \
17845 allow_undefined_flag \
17846 no_undefined_flag \
17847 hardcode_libdir_flag_spec \
17848 hardcode_libdir_flag_spec_ld \
17849 hardcode_libdir_separator \
17854 variables_saved_for_relink \
17856 library_names_spec \
17858 install_override_mode \
17862 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17863 *[\\\\\\\`\\"\\\$]*)
17864 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17867 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17872 # Double-quote double-evaled strings.
17873 for var in reload_cmds \
17874 old_postinstall_cmds \
17875 old_postuninstall_cmds \
17877 extract_expsyms_cmds \
17878 old_archive_from_new_cmds \
17879 old_archive_from_expsyms_cmds \
17881 archive_expsym_cmds \
17883 module_expsym_cmds \
17884 export_symbols_cmds \
17887 postuninstall_cmds \
17889 sys_lib_search_path_spec \
17890 sys_lib_dlsearch_path_spec; do
17891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17892 *[\\\\\\\`\\"\\\$]*)
17893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17901 ac_aux_dir='$ac_aux_dir'
17902 xsi_shell='$xsi_shell'
17903 lt_shell_append='$lt_shell_append'
17905 # See if we are running on zsh, and set the options which allow our
17906 # commands through without removal of \ escapes INIT.
17907 if test -n "\${ZSH_VERSION+set}" ; then
17908 setopt NO_GLOB_SUBST
17914 TIMESTAMP='$TIMESTAMP'
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17925 # Handling of arguments.
17926 for ac_config_target in $ac_config_targets
17928 case $ac_config_target in
17929 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17930 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17933 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17934 "sasldb/Makefile") CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;;
17935 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17936 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17937 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17938 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17939 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
17940 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
17941 "java/CyrusSasl/Makefile") CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;;
17942 "java/Test/Makefile") CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;;
17943 "java/javax/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;;
17944 "java/javax/security/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;;
17945 "java/javax/security/auth/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;;
17946 "java/javax/security/auth/callback/Makefile") CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;;
17947 "pwcheck/Makefile") CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;;
17948 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17950 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17955 # If the user did not use the arguments to specify the items to instantiate,
17956 # then the envvar interface is used. Set only those that are not.
17957 # We use the long form for the default assignment because of an extremely
17958 # bizarre bug on SunOS 4.1.3.
17959 if $ac_need_defaults; then
17960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17965 # Have a temporary directory for convenience. Make it in the build tree
17966 # simply because there is no reason against having it here, and in addition,
17967 # creating and moving files from /tmp can sometimes cause problems.
17968 # Hook for its removal unless debugging.
17969 # Note that there is a small window in which the directory will not be cleaned:
17970 # after its creation but before its name has been assigned to `$tmp'.
17974 trap 'exit_status=$?
17975 : "${ac_tmp:=$tmp}"
17976 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17978 trap 'as_fn_exit 1' 1 2 13 15
17980 # Create a (secure) tmp directory for tmp files.
17983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17987 tmp=./conf$$-$RANDOM
17988 (umask 077 && mkdir "$tmp")
17989 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17992 # Set up the scripts for CONFIG_FILES section.
17993 # No need to generate them if there are no CONFIG_FILES.
17994 # This happens for instance with `./config.status config.h'.
17995 if test -n "$CONFIG_FILES"; then
17998 ac_cr=`echo X | tr X '\015'`
17999 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18000 # But we know of no other shell where ac_cr would be empty at this
18001 # point, so we can use a bashism as a fallback.
18002 if test "x$ac_cr" = x; then
18003 eval ac_cr=\$\'\\r\'
18005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18009 ac_cs_awk_cr=$ac_cr
18012 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18017 echo "cat >conf$$subs.awk <<_ACEOF" &&
18018 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18020 } >conf$$subs.sh ||
18021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18022 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18024 for ac_last_try in false false false false false :; do
18025 . ./conf$$subs.sh ||
18026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18028 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18029 if test $ac_delim_n = $ac_delim_num; then
18031 elif $ac_last_try; then
18032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18037 rm -f conf$$subs.sh
18039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18040 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18044 s/^/S["/; s/!.*/"]=/
18054 s/\(.\{148\}\)..*/\1/
18056 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18068 s/\(.\{148\}\)..*/\1/
18070 s/["\\]/\\&/g; s/^/"/; s/$/"/
18074 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18079 ' <conf$$subs.awk | sed '
18084 ' >>$CONFIG_STATUS || ac_write_fail=1
18085 rm -f conf$$subs.awk
18086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18088 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18089 for (key in S) S_is_set[key] = 1
18095 nfields = split(line, field, "@")
18097 len = length(field[1])
18098 for (i = 2; i < nfields; i++) {
18100 keylen = length(key)
18101 if (S_is_set[key]) {
18103 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18104 len += length(value) + length(field[++i])
18115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18116 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18117 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18120 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18121 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18124 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18125 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18126 # trailing colons and then remove the whole line if VPATH becomes empty
18127 # (actually we leave an empty line to preserve line numbers).
18128 if test "x$srcdir" = x.; then
18129 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18148 fi # test -n "$CONFIG_FILES"
18150 # Set up the scripts for CONFIG_HEADERS section.
18151 # No need to generate them if there are no CONFIG_HEADERS.
18152 # This happens for instance with `./config.status Makefile'.
18153 if test -n "$CONFIG_HEADERS"; then
18154 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18158 # Transform confdefs.h into an awk script `defines.awk', embedded as
18159 # here-document in config.status, that substitutes the proper values into
18160 # config.h.in to produce config.h.
18162 # Create a delimiter string that does not exist in confdefs.h, to ease
18163 # handling of long lines.
18165 for ac_last_try in false false :; do
18166 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18167 if test -z "$ac_tt"; then
18169 elif $ac_last_try; then
18170 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18176 # For the awk script, D is an array of macro values keyed by name,
18177 # likewise P contains macro parameters if any. Preserve backslash
18178 # newline sequences.
18180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18182 s/.\{148\}/&'"$ac_delim"'/g
18185 s/^[ ]*#[ ]*define[ ][ ]*/ /
18192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18194 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18199 D["\1"]=" \3\\\\\\n"\\/p
18201 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18206 s/.\{148\}/&'"$ac_delim"'/g
18211 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18214 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18216 ' <confdefs.h | sed '
18217 s/'"$ac_delim"'/"\\\
18218 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18221 for (key in D) D_is_set[key] = 1
18224 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18226 split(line, arg, " ")
18227 if (arg[1] == "#") {
18231 defundef = substr(arg[1], 2)
18234 split(mac1, mac2, "(") #)
18236 prefix = substr(line, 1, index(line, defundef) - 1)
18237 if (D_is_set[macro]) {
18238 # Preserve the white space surrounding the "#".
18239 print prefix "define", macro P[macro] D[macro]
18242 # Replace #undef with comments. This is necessary, for example,
18243 # in the case of _POSIX_SOURCE, which is predefined and required
18244 # on some systems where configure will not decide to define it.
18245 if (defundef == "undef") {
18246 print "/*", prefix defundef, macro, "*/"
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18255 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18256 fi # test -n "$CONFIG_HEADERS"
18259 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18264 :[FHLC]) ac_mode=$ac_tag; continue;;
18266 case $ac_mode$ac_tag in
18268 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18269 :[FH]-) ac_tag=-:-;;
18270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18287 -) ac_f="$ac_tmp/stdin";;
18288 *) # Look for the file first in the build tree, then in the source tree
18289 # (if the path is not absolute). The absolute path cannot be DOS-style,
18290 # because $ac_f cannot contain `:'.
18294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18296 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18298 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18299 as_fn_append ac_file_inputs " '$ac_f'"
18302 # Let's still pretend it is `configure' which instantiates (i.e., don't
18303 # use $as_me), people would be surprised to read:
18304 # /* config.h. Generated by config.status. */
18305 configure_input='Generated from '`
18306 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18308 if test x"$ac_file" != x-; then
18309 configure_input="$ac_file. $configure_input"
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18311 $as_echo "$as_me: creating $ac_file" >&6;}
18313 # Neutralize special characters interpreted by sed in replacement strings.
18314 case $configure_input in #(
18315 *\&* | *\|* | *\\* )
18316 ac_sed_conf_input=`$as_echo "$configure_input" |
18317 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18318 *) ac_sed_conf_input=$configure_input;;
18322 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18328 ac_dir=`$as_dirname -- "$ac_file" ||
18329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18330 X"$ac_file" : 'X\(//\)[^/]' \| \
18331 X"$ac_file" : 'X\(//\)$' \| \
18332 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18333 $as_echo X"$ac_file" |
18334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18338 /^X\(\/\/\)[^/].*/{
18351 as_dir="$ac_dir"; as_fn_mkdir_p
18355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18358 # A ".." for each directory in $ac_dir_suffix.
18359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18360 case $ac_top_builddir_sub in
18361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18365 ac_abs_top_builddir=$ac_pwd
18366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18367 # for backward compatibility:
18368 ac_top_builddir=$ac_top_build_prefix
18371 .) # We are building in place.
18373 ac_top_srcdir=$ac_top_builddir_sub
18374 ac_abs_top_srcdir=$ac_pwd ;;
18375 [\\/]* | ?:[\\/]* ) # Absolute name.
18376 ac_srcdir=$srcdir$ac_dir_suffix;
18377 ac_top_srcdir=$srcdir
18378 ac_abs_top_srcdir=$srcdir ;;
18379 *) # Relative name.
18380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18381 ac_top_srcdir=$ac_top_build_prefix$srcdir
18382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18395 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18397 ac_MKDIR_P=$MKDIR_P
18399 [\\/$]* | ?:[\\/]* ) ;;
18400 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 # If the template does not know about datarootdir, expand it.
18406 # FIXME: This hack should be removed a few years after 2.60.
18407 ac_datarootdir_hack=; ac_datarootdir_seen=
18418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18419 *datarootdir*) ac_datarootdir_seen=yes;;
18420 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18425 ac_datarootdir_hack='
18426 s&@datadir@&$datadir&g
18427 s&@docdir@&$docdir&g
18428 s&@infodir@&$infodir&g
18429 s&@localedir@&$localedir&g
18430 s&@mandir@&$mandir&g
18431 s&\\\${datarootdir}&$datarootdir&g' ;;
18435 # Neutralize VPATH when `$srcdir' = `.'.
18436 # Shell code in configure.ac might set extrasub.
18437 # FIXME: do we really want to maintain this feature?
18438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18439 ac_sed_extra="$ac_vpsub
18442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18445 s|@configure_input@|$ac_sed_conf_input|;t t
18446 s&@top_builddir@&$ac_top_builddir_sub&;t t
18447 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18448 s&@srcdir@&$ac_srcdir&;t t
18449 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18450 s&@top_srcdir@&$ac_top_srcdir&;t t
18451 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18452 s&@builddir@&$ac_builddir&;t t
18453 s&@abs_builddir@&$ac_abs_builddir&;t t
18454 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18455 s&@INSTALL@&$ac_INSTALL&;t t
18456 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18457 $ac_datarootdir_hack
18459 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18460 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18462 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18463 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18464 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18465 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18467 which seems to be undefined. Please make sure it is defined" >&5
18468 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18469 which seems to be undefined. Please make sure it is defined" >&2;}
18471 rm -f "$ac_tmp/stdin"
18473 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18474 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18482 if test x"$ac_file" != x-; then
18484 $as_echo "/* $configure_input */" \
18485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18486 } >"$ac_tmp/config.h" \
18487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18488 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18490 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18493 mv "$ac_tmp/config.h" "$ac_file" \
18494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18497 $as_echo "/* $configure_input */" \
18498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18499 || as_fn_error $? "could not create -" "$LINENO" 5
18501 # Compute "$ac_file"'s index in $config_headers.
18504 for _am_header in $config_headers :; do
18505 case $_am_header in
18506 $_am_arg | $_am_arg:* )
18509 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18512 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18513 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18514 X"$_am_arg" : 'X\(//\)[^/]' \| \
18515 X"$_am_arg" : 'X\(//\)$' \| \
18516 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18517 $as_echo X"$_am_arg" |
18518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18522 /^X\(\/\/\)[^/].*/{
18534 s/.*/./; q'`/stamp-h$_am_stamp_count
18537 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18538 $as_echo "$as_me: executing $ac_file commands" >&6;}
18543 case $ac_file$ac_mode in
18544 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18545 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18546 # are listed without --file. Let's play safe and only enable the eval
18547 # if we detect the quoting.
18548 case $CONFIG_FILES in
18549 *\'*) eval set x "$CONFIG_FILES" ;;
18550 *) set x $CONFIG_FILES ;;
18555 # Strip MF so we end up with the name of the file.
18556 mf=`echo "$mf" | sed -e 's/:.*$//'`
18557 # Check whether this is an Automake generated Makefile or not.
18558 # We used to match only the files named `Makefile.in', but
18559 # some people rename them; so instead we look at the file content.
18560 # Grep'ing the first line is not enough: some people post-process
18561 # each Makefile.in and add a new line on top of each file to say so.
18562 # Grep'ing the whole file is not good either: AIX grep has a line
18563 # limit of 2048, but all sed's we know have understand at least 4000.
18564 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18565 dirpart=`$as_dirname -- "$mf" ||
18566 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567 X"$mf" : 'X\(//\)[^/]' \| \
18568 X"$mf" : 'X\(//\)$' \| \
18569 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18575 /^X\(\/\/\)[^/].*/{
18591 # Extract the definition of DEPDIR, am__include, and am__quote
18592 # from the Makefile without running `make'.
18593 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18594 test -z "$DEPDIR" && continue
18595 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18596 test -z "am__include" && continue
18597 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18598 # When using ansi2knr, U may be empty or an underscore; expand it
18599 U=`sed -n 's/^U = //p' < "$mf"`
18600 # Find all dependency output files, they are included files with
18601 # $(DEPDIR) in their names. We invoke sed twice because it is the
18602 # simplest approach to changing $(DEPDIR) to its actual value in the
18604 for file in `sed -n "
18605 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18606 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18607 # Make sure the directory exists.
18608 test -f "$dirpart/$file" && continue
18609 fdir=`$as_dirname -- "$file" ||
18610 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18611 X"$file" : 'X\(//\)[^/]' \| \
18612 X"$file" : 'X\(//\)$' \| \
18613 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18614 $as_echo X"$file" |
18615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18619 /^X\(\/\/\)[^/].*/{
18632 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18633 # echo "creating $dirpart/$file"
18634 echo '# dummy' > "$dirpart/$file"
18641 # See if we are running on zsh, and set the options which allow our
18642 # commands through without removal of \ escapes.
18643 if test -n "${ZSH_VERSION+set}" ; then
18644 setopt NO_GLOB_SUBST
18647 cfgfile="${ofile}T"
18648 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18651 cat <<_LT_EOF >> "$cfgfile"
18654 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18655 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18659 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18660 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18662 # Written by Gordon Matzigkeit, 1996
18664 # This file is part of GNU Libtool.
18666 # GNU Libtool is free software; you can redistribute it and/or
18667 # modify it under the terms of the GNU General Public License as
18668 # published by the Free Software Foundation; either version 2 of
18669 # the License, or (at your option) any later version.
18671 # As a special exception to the GNU General Public License,
18672 # if you distribute this file as part of a program or library that
18673 # is built using GNU Libtool, you may include this file under the
18674 # same distribution terms that you use for the rest of that program.
18676 # GNU Libtool is distributed in the hope that it will be useful,
18677 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18679 # GNU General Public License for more details.
18681 # You should have received a copy of the GNU General Public License
18682 # along with GNU Libtool; see the file COPYING. If not, a copy
18683 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18684 # obtained by writing to the Free Software Foundation, Inc.,
18685 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18688 # The names of the tagged configurations supported by this script.
18691 # ### BEGIN LIBTOOL CONFIG
18693 # Whether or not to build static libraries.
18694 build_old_libs=$enable_static
18696 # Which release of libtool.m4 was used?
18697 macro_version=$macro_version
18698 macro_revision=$macro_revision
18700 # Whether or not to build shared libraries.
18701 build_libtool_libs=$enable_shared
18703 # What type of objects to build.
18706 # Whether or not to optimize for fast installation.
18707 fast_install=$enable_fast_install
18709 # Shell to use when invoking shell scripts.
18712 # An echo program that protects backslashes.
18716 host_alias=$host_alias
18720 # The build system.
18721 build_alias=$build_alias
18725 # A sed program that does not truncate output.
18728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18729 Xsed="\$SED -e 1s/^X//"
18731 # A grep program that handles long lines.
18737 # A literal string matcher.
18740 # A BSD- or MS-compatible name lister.
18743 # Whether we need soft or hard links.
18746 # What is the maximum length of a command?
18747 max_cmd_len=$max_cmd_len
18749 # Object file suffix (normally "o").
18752 # Executable file suffix (normally "").
18755 # whether the shell understands "unset".
18758 # turn spaces into newlines.
18761 # turn newlines into spaces.
18764 # An object symbol dumper.
18765 OBJDUMP=$lt_OBJDUMP
18767 # Method to check whether dependent libraries are shared objects.
18768 deplibs_check_method=$lt_deplibs_check_method
18770 # Command to use when deplibs_check_method == "file_magic".
18771 file_magic_cmd=$lt_file_magic_cmd
18775 AR_FLAGS=$lt_AR_FLAGS
18777 # A symbol stripping program.
18780 # Commands used to install an old-style archive.
18782 old_postinstall_cmds=$lt_old_postinstall_cmds
18783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18785 # Whether to use a lock for old archive extraction.
18786 lock_old_archive_extraction=$lock_old_archive_extraction
18791 # LTCC compiler flags.
18792 LTCFLAGS=$lt_CFLAGS
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797 # Transform the output of nm in a proper C declaration.
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800 # Transform the output of nm in a C name address pair.
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803 # Transform the output of nm in a C name address pair when lib prefix is needed.
18804 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18806 # The name of the directory that contains temporary libtool files.
18809 # Used to examine libraries when file_magic_cmd begins with "file".
18810 MAGIC_CMD=$MAGIC_CMD
18812 # Must we lock files when doing compilation?
18813 need_locks=$lt_need_locks
18815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18816 DSYMUTIL=$lt_DSYMUTIL
18818 # Tool to change global to local symbols on Mac OS X.
18821 # Tool to manipulate fat objects and archives on Mac OS X.
18824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18828 OTOOL64=$lt_OTOOL64
18830 # Old archive suffix (normally "a").
18833 # Shared library suffix (normally ".so").
18834 shrext_cmds=$lt_shrext_cmds
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at link time.
18841 variables_saved_for_relink=$lt_variables_saved_for_relink
18843 # Do we need the "lib" prefix for modules?
18844 need_lib_prefix=$need_lib_prefix
18846 # Do we need a version for libraries?
18847 need_version=$need_version
18849 # Library versioning type.
18850 version_type=$version_type
18852 # Shared library runtime path variable.
18853 runpath_var=$runpath_var
18855 # Shared library path variable.
18856 shlibpath_var=$shlibpath_var
18858 # Is shlibpath searched before the hard-coded library search path?
18859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18861 # Format of library name prefix.
18862 libname_spec=$lt_libname_spec
18864 # List of archive names. First name is the real one, the rest are links.
18865 # The last name is the one that the linker finds with -lNAME
18866 library_names_spec=$lt_library_names_spec
18868 # The coded name of the library, if different from the real name.
18869 soname_spec=$lt_soname_spec
18871 # Permission mode override for installation of shared libraries.
18872 install_override_mode=$lt_install_override_mode
18874 # Command to use after installation of a shared archive.
18875 postinstall_cmds=$lt_postinstall_cmds
18877 # Command to use after uninstallation of a shared archive.
18878 postuninstall_cmds=$lt_postuninstall_cmds
18880 # Commands used to finish a libtool library installation in a directory.
18881 finish_cmds=$lt_finish_cmds
18883 # As "finish_cmds", except a single script fragment to be evaled but
18885 finish_eval=$lt_finish_eval
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18890 # Compile-time system search path for libraries.
18891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18893 # Run-time system search path for libraries.
18894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18896 # Whether dlopen is supported.
18897 dlopen_support=$enable_dlopen
18899 # Whether dlopen of programs is supported.
18900 dlopen_self=$enable_dlopen_self
18902 # Whether dlopen of statically linked programs is supported.
18903 dlopen_self_static=$enable_dlopen_self_static
18905 # Commands to strip libraries.
18906 old_striplib=$lt_old_striplib
18907 striplib=$lt_striplib
18910 # The linker used to build libraries.
18913 # How to create reloadable object files.
18914 reload_flag=$lt_reload_flag
18915 reload_cmds=$lt_reload_cmds
18917 # Commands used to build an old-style archive.
18918 old_archive_cmds=$lt_old_archive_cmds
18920 # A language specific compiler.
18923 # Is the compiler the GNU compiler?
18926 # Compiler flag to turn off builtin functions.
18927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl
18932 # Additional compiler flags for building library objects.
18933 pic_flag=$lt_lt_prog_compiler_pic
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc
18944 # Whether or not to disallow shared libs when runtime libs are static.
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18947 # Compiler flag to allow reflexive dlopens.
18948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18950 # Compiler flag to generate shared objects directly from archives.
18951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18953 # Whether the compiler copes with passing no objects directly.
18954 compiler_needs_object=$lt_compiler_needs_object
18956 # Create an old-style archive from a shared archive.
18957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18959 # Create a temporary old-style archive to link instead of a shared archive.
18960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18962 # Commands used to build a shared archive.
18963 archive_cmds=$lt_archive_cmds
18964 archive_expsym_cmds=$lt_archive_expsym_cmds
18966 # Commands used to build a loadable module if different from building
18967 # a shared archive.
18968 module_cmds=$lt_module_cmds
18969 module_expsym_cmds=$lt_module_expsym_cmds
18971 # Whether we are building with GNU ld or not.
18972 with_gnu_ld=$lt_with_gnu_ld
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag
18977 # Flag that enforces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag
18980 # Flag to hardcode \$libdir into a binary during linking.
18981 # This must work even if \$libdir does not exist
18982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18984 # If ld is used when linking, flag to hardcode \$libdir into a binary
18985 # during linking. This must work even if \$libdir does not exist.
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18988 # Whether we need a single "-rpath" flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18992 # DIR into the resulting binary.
18993 hardcode_direct=$hardcode_direct
18995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18996 # DIR into the resulting binary and the resulting library dependency is
18997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18998 # library is relocated.
18999 hardcode_direct_absolute=$hardcode_direct_absolute
19001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19002 # into the resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L
19005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19006 # into the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var
19009 # Set to "yes" if building a shared library automatically hardcodes DIR
19010 # into the library and all subsequent libraries and executables linked
19012 hardcode_automatic=$hardcode_automatic
19014 # Set to yes if linker adds runtime paths of dependent libraries
19015 # to runtime path list.
19016 inherit_rpath=$inherit_rpath
19018 # Whether libtool must link a program against all its dependency libraries.
19019 link_all_deplibs=$link_all_deplibs
19021 # Fix the shell variable \$srcfile for the compiler.
19022 fix_srcfile_path=$lt_fix_srcfile_path
19024 # Set to "yes" if exported symbols are required.
19025 always_export_symbols=$always_export_symbols
19027 # The commands to list exported symbols.
19028 export_symbols_cmds=$lt_export_symbols_cmds
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms
19036 # Commands necessary for linking programs (against libraries) with templates.
19037 prelink_cmds=$lt_prelink_cmds
19039 # Specify filename containing input files.
19040 file_list_spec=$lt_file_list_spec
19042 # How to hardcode a shared library path into an executable.
19043 hardcode_action=$hardcode_action
19045 # ### END LIBTOOL CONFIG
19051 cat <<\_LT_EOF >> "$cfgfile"
19052 # AIX sometimes has problems with the GCC collect2 program. For some
19053 # reason, if we set the COLLECT_NAMES environment variable, the problems
19054 # vanish in a puff of smoke.
19055 if test "X${COLLECT_NAMES+set}" != Xset; then
19057 export COLLECT_NAMES
19064 ltmain="$ac_aux_dir/ltmain.sh"
19067 # We use sed instead of cat because bash on DJGPP gets confused if
19068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19069 # text mode, it properly converts lines to CR/LF. This bash problem
19070 # is reportedly fixed, but why not run on old versions too?
19071 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19072 || (rm -f "$cfgfile"; exit 1)
19076 cat << \_LT_EOF >> "$cfgfile"
19078 # func_dirname file append nondir_replacement
19079 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19080 # otherwise set result to NONDIR_REPLACEMENT.
19084 */*) func_dirname_result="${1%/*}${2}" ;;
19085 * ) func_dirname_result="${3}" ;;
19089 # func_basename file
19092 func_basename_result="${1##*/}"
19095 # func_dirname_and_basename file append nondir_replacement
19096 # perform func_basename and func_dirname in a single function
19098 # dirname: Compute the dirname of FILE. If nonempty,
19099 # add APPEND to the result, otherwise set result
19100 # to NONDIR_REPLACEMENT.
19101 # value returned in "$func_dirname_result"
19102 # basename: Compute filename of FILE.
19103 # value retuned in "$func_basename_result"
19104 # Implementation must be kept synchronized with func_dirname
19105 # and func_basename. For efficiency, we do not delegate to
19106 # those functions but instead duplicate the functionality here.
19107 func_dirname_and_basename ()
19110 */*) func_dirname_result="${1%/*}${2}" ;;
19111 * ) func_dirname_result="${3}" ;;
19113 func_basename_result="${1##*/}"
19116 # func_stripname prefix suffix name
19117 # strip PREFIX and SUFFIX off of NAME.
19118 # PREFIX and SUFFIX must not contain globbing or regex special
19119 # characters, hashes, percent signs, but SUFFIX may contain a leading
19120 # dot (in which case that matches only a dot).
19123 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19124 # positional parameters, so assign one to ordinary parameter first.
19125 func_stripname_result=${3}
19126 func_stripname_result=${func_stripname_result#"${1}"}
19127 func_stripname_result=${func_stripname_result%"${2}"}
19133 func_opt_split_opt=${1%%=*}
19134 func_opt_split_arg=${1#*=}
19141 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19142 *) func_lo2o_result=${1} ;;
19146 # func_xform libobj-or-source
19149 func_xform_result=${1%.*}.lo
19152 # func_arith arithmetic-term...
19155 func_arith_result=$(( $* ))
19159 # STRING may not start with a hyphen.
19162 func_len_result=${#1}
19167 *) # Bourne compatible functions.
19168 cat << \_LT_EOF >> "$cfgfile"
19170 # func_dirname file append nondir_replacement
19171 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19172 # otherwise set result to NONDIR_REPLACEMENT.
19175 # Extract subdirectory from the argument.
19176 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19177 if test "X$func_dirname_result" = "X${1}"; then
19178 func_dirname_result="${3}"
19180 func_dirname_result="$func_dirname_result${2}"
19184 # func_basename file
19187 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19191 # func_stripname prefix suffix name
19192 # strip PREFIX and SUFFIX off of NAME.
19193 # PREFIX and SUFFIX must not contain globbing or regex special
19194 # characters, hashes, percent signs, but SUFFIX may contain a leading
19195 # dot (in which case that matches only a dot).
19196 # func_strip_suffix prefix name
19200 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19201 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19206 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19207 my_sed_long_arg='1s/^-[^=]*=//'
19212 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19213 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19219 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19222 # func_xform libobj-or-source
19225 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19228 # func_arith arithmetic-term...
19231 func_arith_result=`expr "$@"`
19235 # STRING may not start with a hyphen.
19238 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19244 case $lt_shell_append in
19246 cat << \_LT_EOF >> "$cfgfile"
19248 # func_append var value
19249 # Append VALUE to the end of shell variable VAR.
19257 cat << \_LT_EOF >> "$cfgfile"
19259 # func_append var value
19260 # Append VALUE to the end of shell variable VAR.
19271 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19272 || (rm -f "$cfgfile"; exit 1)
19274 mv -f "$cfgfile" "$ofile" ||
19275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19286 ac_clean_files=$ac_clean_files_save
19288 test $ac_write_fail = 0 ||
19289 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19292 # configure is writing to config.log, and then calls config.status.
19293 # config.status does its own redirection, appending to config.log.
19294 # Unfortunately, on DOS this fails, as config.log is still kept open
19295 # by configure, so config.status won't be able to write to it; its
19296 # output is simply discarded. So we exec the FD to /dev/null,
19297 # effectively closing config.log, so it can be properly (re)opened and
19298 # appended to by config.status. When coming back to configure, we
19299 # need to make the FD available again.
19300 if test "$no_create" != yes; then
19302 ac_config_status_args=
19303 test "$silent" = yes &&
19304 ac_config_status_args="$ac_config_status_args --quiet"
19306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19309 # would make configure fail if this is the last instruction.
19310 $ac_cs_success || as_fn_exit 1
19314 # CONFIG_SUBDIRS section.
19316 if test "$no_recursion" != yes; then
19318 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19319 # so they do not pile up.
19320 ac_sub_configure_args=
19322 eval "set x $ac_configure_args"
19326 if test -n "$ac_prev"; then
19331 -cache-file | --cache-file | --cache-fil | --cache-fi \
19332 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19333 ac_prev=cache_file ;;
19334 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19335 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19338 --config-cache | -C)
19340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19348 --disable-option-checking)
19352 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19354 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19358 # Always prepend --prefix to ensure using the same prefix
19359 # in subdir configurations.
19360 ac_arg="--prefix=$prefix"
19362 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19364 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19367 if test "$silent" = yes; then
19368 ac_sub_configure_args="--silent $ac_sub_configure_args"
19371 # Always prepend --disable-option-checking to silence warnings, since
19372 # different subdirs can have different --enable and --with options.
19373 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19376 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19378 # Do not complain, so a configure script can configure whichever
19379 # parts of a large source tree are present.
19380 test -d "$srcdir/$ac_dir" || continue
19382 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19383 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19384 $as_echo "$ac_msg" >&6
19385 as_dir="$ac_dir"; as_fn_mkdir_p
19389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19392 # A ".." for each directory in $ac_dir_suffix.
19393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19394 case $ac_top_builddir_sub in
19395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19399 ac_abs_top_builddir=$ac_pwd
19400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19401 # for backward compatibility:
19402 ac_top_builddir=$ac_top_build_prefix
19405 .) # We are building in place.
19407 ac_top_srcdir=$ac_top_builddir_sub
19408 ac_abs_top_srcdir=$ac_pwd ;;
19409 [\\/]* | ?:[\\/]* ) # Absolute name.
19410 ac_srcdir=$srcdir$ac_dir_suffix;
19411 ac_top_srcdir=$srcdir
19412 ac_abs_top_srcdir=$srcdir ;;
19413 *) # Relative name.
19414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19415 ac_top_srcdir=$ac_top_build_prefix$srcdir
19416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19423 # Check for guested configure; otherwise get Cygnus style configure.
19424 if test -f "$ac_srcdir/configure.gnu"; then
19425 ac_sub_configure=$ac_srcdir/configure.gnu
19426 elif test -f "$ac_srcdir/configure"; then
19427 ac_sub_configure=$ac_srcdir/configure
19428 elif test -f "$ac_srcdir/configure.in"; then
19429 # This should be Cygnus configure.
19430 ac_sub_configure=$ac_aux_dir/configure
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19437 # The recursion is here.
19438 if test -n "$ac_sub_configure"; then
19439 # Make the cache file name correct relative to the subdirectory.
19440 case $cache_file in
19441 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19442 *) # Relative name.
19443 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19447 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19448 # The eval makes quoting arguments work.
19449 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19450 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19451 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19463 echo Configuration Complete. Type \'make\' to build.