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
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="mechanisms.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars='LIBOBJS
609 SASL_DB_BACKEND_STATIC
649 INSTALL_STRIP_PROGRAM
701 program_transform_name
714 enable_option_checking
716 enable_dependency_tracking
735 ac_precious_vars='build_alias
746 # Initialize some variables set by options.
748 ac_init_version=false
749 ac_unrecognized_opts=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name=s,x,x,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE}'
785 infodir='${datarootdir}/info'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
806 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 -build | --build | --buil | --bui | --bu)
823 ac_prev=build_alias ;;
824 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
825 build_alias=$ac_optarg ;;
827 -cache-file | --cache-file | --cache-fil | --cache-fi \
828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
829 ac_prev=cache_file ;;
830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
832 cache_file=$ac_optarg ;;
835 cache_file=config.cache ;;
837 -datadir | --datadir | --datadi | --datad)
839 -datadir=* | --datadir=* | --datadi=* | --datad=*)
840 datadir=$ac_optarg ;;
842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
843 | --dataroo | --dataro | --datar)
844 ac_prev=datarootdir ;;
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;;
849 -disable-* | --disable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 as_fn_error $? "invalid feature name: $ac_useropt"
854 ac_useropt_orig=$ac_useropt
855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856 case $ac_user_opts in
860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
861 ac_unrecognized_sep=', ';;
863 eval enable_$ac_useropt=no ;;
865 -docdir | --docdir | --docdi | --doc | --do)
867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 -enable-* | --enable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
889 eval enable_$ac_useropt=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
904 -help | --help | --hel | --he | -h)
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 # Obsolete; use --without-fp.
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1053 -site=* | --site=* | --sit=*)
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval with_$ac_useropt=\$ac_optarg ;;
1095 -without-* | --without-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=no ;;
1112 # Obsolete; use --with-x.
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 Try \`$0 --help' for more information"
1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1135 # Reject names that are not valid shell variable names.
1136 case $ac_envvar in #(
1137 '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 as_fn_error $? "missing argument to $ac_option"
1159 if test -n "$ac_unrecognized_opts"; then
1160 case $enable_option_checking in
1162 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 # Check all directory arguments for consistency.
1168 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir
1173 eval ac_val=\$$ac_var
1174 # Remove trailing slashes.
1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1178 eval $ac_var=\$ac_val;;
1180 # Be sure to have absolute directory names.
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used" >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 as_fn_error $? "working directory cannot be determined"
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 as_fn_error $? "pwd does not report name of working directory"
1220 # Find the source files, if location was not specified.
1221 if test -z "$srcdir"; then
1222 ac_srcdir_defaulted=yes
1223 # Try the directory containing this script, then the parent directory.
1224 ac_confdir=`$as_dirname -- "$as_myself" ||
1225 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226 X"$as_myself" : 'X\(//\)[^/]' \| \
1227 X"$as_myself" : 'X\(//\)$' \| \
1228 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1229 $as_echo X"$as_myself" |
1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1252 ac_srcdir_defaulted=no
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1270 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 for ac_var in $ac_precious_vars; do
1273 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_${ac_var}_value=\$${ac_var}
1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1286 \`configure' configures this package to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking ...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1344 --program-prefix=PREFIX prepend PREFIX to installed program names
1345 --program-suffix=SUFFIX append SUFFIX to installed program names
1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 if test -n "$ac_init_help"; then
1359 --disable-option-checking ignore unrecognized --enable/--with options
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --disable-dependency-tracking speeds up one-time build
1363 --enable-dependency-tracking do not reject slow dependency extractors
1364 --enable-krb4 enable KERBEROS_V4 authentication [no]
1365 --enable-gssapi=<DIR> enable GSSAPI authentication [yes]
1366 --enable-sia enable SIA authentication no
1367 --enable-auth-sasldb enable experimental SASLdb authentication module no
1368 --enable-httpform enable HTTP form authentication [no]
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1373 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR
1374 --with-lib-subdir=DIR Find libraries in DIR instead of lib
1375 --with-openssl=PATH use OpenSSL from PATH
1376 --with-des=DIR with DES (look in DIR) yes
1377 --with-gss_impl={heimdal|mit|cybersafe|seam|auto}
1378 choose specific GSSAPI implementation [[auto]]
1379 --with-dbpath=PATH set the DB path to use /etc/sasldb2
1380 --with-dblib=DBLIB set the DB library to use berkeley
1381 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR
1382 --with-bdb-incdir=DIR Berkeley DB include files are in DIR
1383 --with-gdbm=PATH use gdbm from PATH
1384 --with-pam=DIR use PAM (rooted in DIR) yes
1385 --with-ipctype={unix,doors} use ipctype unix
1386 --with-ldap=DIR use LDAP (in DIR) no
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to the package provider.
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1431 .) # We are building in place.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1465 generated by GNU Autoconf 2.68
1467 Copyright (C) 2010 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_cpp LINENO
1517 # ----------------------
1518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_cpp conftest.$ac_ext"
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } > conftest.i && {
1538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1553 # ac_fn_c_try_link LINENO
1554 # -----------------------
1555 # Try to link conftest.$ac_ext, and return whether this succeeded.
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1597 } # ac_fn_c_try_link
1599 # ac_fn_c_check_func LINENO FUNC VAR
1600 # ----------------------------------
1601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1602 ac_fn_c_check_func ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1614 #define $2 innocuous_$2
1616 /* System header to define __stub macros and hopefully few prototypes,
1617 which can conflict with char $2 (); below.
1618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1619 <limits.h> exists even on freestanding compilers. */
1622 # include <limits.h>
1624 # include <assert.h>
1629 /* Override any GCC internal prototype to avoid an error.
1630 Use char because int might match the return type of a GCC
1631 builtin and then its argument prototype would still apply. */
1636 /* The GNU C library defines this for functions which it implements
1637 to always fail with ENOSYS. Some functions are actually named
1638 something starting with __ and the normal name is an alias. */
1639 #if defined __stub_$2 || defined __stub___$2
1651 if ac_fn_c_try_link "$LINENO"; then :
1656 rm -f core conftest.err conftest.$ac_objext \
1657 conftest$ac_exeext conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 } # ac_fn_c_check_func
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=$ac_status
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1709 # --------------------------------------------
1710 # Tries to find the compile-time value of EXPR in a program that includes
1711 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1713 ac_fn_c_compute_int ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if test "$cross_compiling" = yes; then
1717 # Depending upon the size, compute the lo and hi bounds.
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1724 static int test_array [1 - 2 * !(($2) >= 0)];
1731 if ac_fn_c_try_compile "$LINENO"; then :
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1740 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 ac_hi=$ac_mid; break
1750 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1751 if test $ac_lo -le $ac_mid; then
1755 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1766 static int test_array [1 - 2 * !(($2) < 0)];
1773 if ac_fn_c_try_compile "$LINENO"; then :
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1782 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_lo=$ac_mid; break
1792 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1793 if test $ac_mid -le $ac_hi; then
1797 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 # Binary search between lo and hi bounds.
1808 while test "x$ac_lo" != "x$ac_hi"; do
1809 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1816 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1823 if ac_fn_c_try_compile "$LINENO"; then :
1826 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1838 static long int longval () { return $2; }
1839 static unsigned long int ulongval () { return $2; }
1846 FILE *f = fopen ("conftest.val", "w");
1851 long int i = longval ();
1854 fprintf (f, "%ld", i);
1858 unsigned long int i = ulongval ();
1861 fprintf (f, "%lu", i);
1863 /* Do not output a trailing newline, as this causes \r\n confusion
1864 on some platforms. */
1865 return ferror (f) || fclose (f) != 0;
1871 if ac_fn_c_try_run "$LINENO"; then :
1872 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1877 conftest.$ac_objext conftest.beam conftest.$ac_ext
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_compute_int
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_c_try_compile "$LINENO"; then :
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_compile
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1994 eval "$3=\$ac_header_compiler"
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005 # -------------------------------------------
2006 # Tests whether TYPE exists after having included INCLUDES, setting cache
2007 # variable VAR accordingly.
2008 ac_fn_c_check_type ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_type
2057 cat >config.log <<_ACEOF
2058 This file contains any messages produced by compilers while
2059 running configure, to aid debugging if configure makes a mistake.
2061 It was created by $as_me, which was
2062 generated by GNU Autoconf 2.68. Invocation command line was
2074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2086 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 test -z "$as_dir" && as_dir=.
2098 $as_echo "PATH: $as_dir"
2114 # Keep a trace of the command line.
2115 # Strip out --no-create and --no-recursion so they do not pile up.
2116 # Strip out --silent because we don't want to record it for future runs.
2117 # Also quote any args containing shell meta-characters.
2118 # Make two passes to allow for proper duplicate-argument suppression.
2122 ac_must_keep_next=false
2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138 as_fn_append ac_configure_args1 " '$ac_arg'"
2139 if test $ac_must_keep_next = true; then
2140 ac_must_keep_next=false # Got value, back to normal.
2143 *=* | --config-cache | -C | -disable-* | --disable-* \
2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2146 | -with-* | --with-* | -without-* | --without-* | --x)
2147 case "$ac_configure_args0 " in
2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 -* ) ac_must_keep_next=true ;;
2154 as_fn_append ac_configure_args " '$ac_arg'"
2159 { ac_configure_args0=; unset ac_configure_args0;}
2160 { ac_configure_args1=; unset ac_configure_args1;}
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log. We remove comments because anyway the quotes in there
2164 # would cause problems or look ugly.
2165 # WARNING: Use '\'' to represent an apostrophe within the trap.
2166 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2167 trap 'exit_status=$?
2168 # Save into config.log some information that might help in debugging.
2172 $as_echo "## ---------------- ##
2173 ## Cache variables. ##
2174 ## ---------------- ##"
2176 # The following way of writing the cache mishandles newlines in values,
2178 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2179 eval ac_val=\$$ac_var
2183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2184 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 _ | IFS | as_nl) ;; #(
2188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2189 *) { eval $ac_var=; unset $ac_var;} ;;
2194 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2195 *${as_nl}ac_space=\ *)
2197 "s/'\''/'\''\\\\'\'''\''/g;
2198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2208 $as_echo "## ----------------- ##
2209 ## Output variables. ##
2210 ## ----------------- ##"
2212 for ac_var in $ac_subst_vars
2214 eval ac_val=\$$ac_var
2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 $as_echo "$ac_var='\''$ac_val'\''"
2222 if test -n "$ac_subst_files"; then
2223 $as_echo "## ------------------- ##
2224 ## File substitutions. ##
2225 ## ------------------- ##"
2227 for ac_var in $ac_subst_files
2229 eval ac_val=\$$ac_var
2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 $as_echo "$ac_var='\''$ac_val'\''"
2238 if test -s confdefs.h; then
2239 $as_echo "## ----------- ##
2246 test "$ac_signal" != 0 &&
2247 $as_echo "$as_me: caught signal $ac_signal"
2248 $as_echo "$as_me: exit $exit_status"
2250 rm -f core *.core core.conftest.* &&
2251 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 for ac_signal in 1 2 13 15; do
2255 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2259 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2260 rm -f -r conftest* confdefs.h
2262 $as_echo "/* confdefs.h */" > confdefs.h
2264 # Predefined preprocessor variables.
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_URL "$PACKAGE_URL"
2291 # Let the site file select an alternate cache file if it wants to.
2292 # Prefer an explicitly selected file to automatically selected ones.
2295 if test -n "$CONFIG_SITE"; then
2296 # We do not want a PATH search for config.site.
2297 case $CONFIG_SITE in #((
2298 -*) ac_site_file1=./$CONFIG_SITE;;
2299 */*) ac_site_file1=$CONFIG_SITE;;
2300 *) ac_site_file1=./$CONFIG_SITE;;
2302 elif test "x$prefix" != xNONE; then
2303 ac_site_file1=$prefix/share/config.site
2304 ac_site_file2=$prefix/etc/config.site
2306 ac_site_file1=$ac_default_prefix/share/config.site
2307 ac_site_file2=$ac_default_prefix/etc/config.site
2309 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311 test "x$ac_site_file" = xNONE && continue
2312 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2315 sed 's/^/| /' "$ac_site_file" >&5
2317 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See \`config.log' for more details" "$LINENO" 5; }
2324 if test -r "$cache_file"; then
2325 # Some versions of bash will fail to source /dev/null (special files
2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 $as_echo "$as_me: loading cache $cache_file" >&6;}
2331 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332 *) . "./$cache_file";;
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 $as_echo "$as_me: creating cache $cache_file" >&6;}
2341 # Check that the precious variables saved in the cache have kept the same
2343 ac_cache_corrupted=false
2344 for ac_var in $ac_precious_vars; do
2345 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2346 eval ac_new_set=\$ac_env_${ac_var}_set
2347 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2348 eval ac_new_val=\$ac_env_${ac_var}_value
2349 case $ac_old_set,$ac_new_set in
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2353 ac_cache_corrupted=: ;;
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2360 if test "x$ac_old_val" != "x$ac_new_val"; then
2361 # differences in whitespace do not lead to failure.
2362 ac_old_val_w=`echo x $ac_old_val`
2363 ac_new_val_w=`echo x $ac_new_val`
2364 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2366 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2367 ac_cache_corrupted=:
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2370 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2371 eval $ac_var=\$ac_old_val
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2374 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2376 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2379 # Pass precious variables to config.status.
2380 if test "$ac_new_set" = set; then
2382 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2383 *) ac_arg=$ac_var=$ac_new_val ;;
2385 case " $ac_configure_args " in
2386 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2387 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2391 if $ac_cache_corrupted; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2395 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2396 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398 ## -------------------- ##
2399 ## Main body of script. ##
2400 ## -------------------- ##
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 for ac_dir in config "$srcdir"/config; do
2413 if test -f "$ac_dir/install-sh"; then
2415 ac_install_sh="$ac_aux_dir/install-sh -c"
2417 elif test -f "$ac_dir/install.sh"; then
2419 ac_install_sh="$ac_aux_dir/install.sh -c"
2421 elif test -f "$ac_dir/shtool"; then
2423 ac_install_sh="$ac_aux_dir/shtool install -c"
2427 if test -z "$ac_aux_dir"; then
2428 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2431 # These three variables are undocumented and unsupported,
2432 # and are intended to be withdrawn in a future Autoconf release.
2433 # They can cause serious problems if a builder's source tree is in a directory
2434 # whose full name contains unusual characters.
2435 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2436 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2437 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2440 # Make sure we can run config.sub.
2441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2445 $as_echo_n "checking build system type... " >&6; }
2446 if ${ac_cv_build+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2459 $as_echo "$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if ${ac_cv_host+:} false; then :
2481 $as_echo_n "(cached) " >&6
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2492 $as_echo "$ac_cv_host" >&6; }
2495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2498 ac_save_IFS=$IFS; IFS='-'
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513 # Check whether --with-saslauthd was given.
2514 if test "${with_saslauthd+set}" = set; then :
2515 withval=$with_saslauthd; with_saslauthd=$withval
2520 if test "$with_saslauthd" = yes; then
2521 with_saslauthd="/var/state/saslauthd"
2524 $as_echo "#define HAVE_SASLAUTHD /**/" >>confdefs.h
2527 cat >>confdefs.h <<_ACEOF
2528 #define PATH_SASLAUTHD_RUNDIR "$with_saslauthd"
2531 if test "$with_saslauthd" != no; then
2540 am__api_version='1.10'
2542 # Find a good install program. We prefer a C program (faster),
2543 # so one script is as good as another. But avoid the broken or
2544 # incompatible versions:
2545 # SysV /etc/install, /usr/sbin/install
2546 # SunOS /usr/etc/install
2547 # IRIX /sbin/install
2549 # AmigaOS /C/install, which installs bootblocks on floppy discs
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # OS/2's system install, which has a completely different semantic
2554 # ./install, which can be erroneously created by make from ./install.sh.
2555 # Reject install programs that cannot install multiple files.
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2557 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2558 if test -z "$INSTALL"; then
2559 if ${ac_cv_path_install+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 # Account for people who put trailing slashes in PATH elements.
2568 case $as_dir/ in #((
2569 ./ | .// | /[cC]/* | \
2570 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2571 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2574 # OSF1 and SCO ODT 3.0 have their own names for install.
2575 # Don't use installbsd from OSF since it installs stuff as root
2577 for ac_prog in ginstall scoinst install; do
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2580 if test $ac_prog = install &&
2581 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # AIX install. It has an incompatible calling convention.
2584 elif test $ac_prog = install &&
2585 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # program-specific install script used by HP pwplus--don't use.
2589 rm -rf conftest.one conftest.two conftest.dir
2590 echo one > conftest.one
2591 echo two > conftest.two
2593 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2594 test -s conftest.one && test -s conftest.two &&
2595 test -s conftest.dir/conftest.one &&
2596 test -s conftest.dir/conftest.two
2598 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2611 rm -rf conftest.one conftest.two conftest.dir
2614 if test "${ac_cv_path_install+set}" = set; then
2615 INSTALL=$ac_cv_path_install
2617 # As a last resort, use the slow shell script. Don't cache a
2618 # value for INSTALL within a source directory, because that will
2619 # break other packages using the cache if that directory is
2620 # removed, or if the value is a relative name.
2621 INSTALL=$ac_install_sh
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2625 $as_echo "$INSTALL" >&6; }
2627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2628 # It thinks the first close brace ends the variable substitution.
2629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2636 $as_echo_n "checking whether build environment is sane... " >&6; }
2639 echo timestamp > conftest.file
2640 # Do `set' in a subshell so we don't clobber the current shell's
2641 # arguments. Must try -L first in case configure is actually a
2642 # symlink; some systems play weird games with the mod time of symlinks
2643 # (eg FreeBSD returns the mod time of the symlink's containing
2646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2647 if test "$*" = "X"; then
2649 set X `ls -t $srcdir/configure conftest.file`
2652 if test "$*" != "X $srcdir/configure conftest.file" \
2653 && test "$*" != "X conftest.file $srcdir/configure"; then
2655 # If neither matched, then we have a broken ls. This can happen
2656 # if, for instance, CONFIG_SHELL is bash and it inherits a
2657 # broken ls alias from the environment. This has actually
2658 # happened. Such a system could not be considered "sane".
2659 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2660 alias in your environment" "$LINENO" 5
2663 test "$2" = conftest.file
2669 as_fn_error $? "newly created file is older than distributed files!
2670 Check your system clock" "$LINENO" 5
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2673 $as_echo "yes" >&6; }
2674 test "$program_prefix" != NONE &&
2675 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2676 # Use a double $ so make ignores it.
2677 test "$program_suffix" != NONE &&
2678 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2679 # Double any \ or $.
2680 # By default was `s,x,x', remove it if useless.
2681 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2682 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2684 # expand $ac_aux_dir to an absolute path
2685 am_aux_dir=`cd $ac_aux_dir && pwd`
2687 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2688 # Use eval to expand $SHELL
2689 if eval "$MISSING --run true"; then
2690 am_missing_run="$MISSING --run "
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2694 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2697 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2699 # Installed binaries are usually stripped using `strip' when the user
2700 # run `make install-strip'. However `strip' might not be the right
2701 # tool to use in cross-compilation environments, therefore Automake
2702 # will honor the `STRIP' environment variable to overrule this program.
2703 if test "$cross_compiling" != no; then
2704 if test -n "$ac_tool_prefix"; then
2705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}strip; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_STRIP+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$STRIP"; then
2713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 STRIP=$ac_cv_prog_STRIP
2733 if test -n "$STRIP"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735 $as_echo "$STRIP" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2743 if test -z "$ac_cv_prog_STRIP"; then
2745 # Extract the first word of "strip", so it can be a program name with args.
2746 set dummy strip; ac_word=$2
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$ac_ct_STRIP"; then
2753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_STRIP="strip"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773 if test -n "$ac_ct_STRIP"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775 $as_echo "$ac_ct_STRIP" >&6; }
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 $as_echo "no" >&6; }
2781 if test "x$ac_ct_STRIP" = x; then
2784 case $cross_compiling:$ac_tool_warned in
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned=yes ;;
2793 STRIP="$ac_cv_prog_STRIP"
2797 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2801 if test -z "$MKDIR_P"; then
2802 if ${ac_cv_path_mkdir+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2809 test -z "$as_dir" && as_dir=.
2810 for ac_prog in mkdir gmkdir; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2813 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814 'mkdir (GNU coreutils) '* | \
2815 'mkdir (coreutils) '* | \
2816 'mkdir (fileutils) '4.1*)
2817 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2827 test -d ./--version && rmdir ./--version
2828 if test "${ac_cv_path_mkdir+set}" = set; then
2829 MKDIR_P="$ac_cv_path_mkdir -p"
2831 # As a last resort, use the slow shell script. Don't cache a
2832 # value for MKDIR_P within a source directory, because that will
2833 # break other packages using the cache if that directory is
2834 # removed, or if the value is a relative name.
2835 MKDIR_P="$ac_install_sh -d"
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839 $as_echo "$MKDIR_P" >&6; }
2843 [\\/$]* | ?:[\\/]*) ;;
2844 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2847 for ac_prog in gawk mawk nawk awk
2849 # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_AWK+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$AWK"; then
2857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_AWK="$ac_prog"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$AWK"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2879 $as_echo "$AWK" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2886 test -n "$AWK" && break
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2892 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2893 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 cat >conftest.make <<\_ACEOF
2899 @echo '@@@%%%=$(MAKE)=@@@%%%'
2901 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2902 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2904 eval ac_cv_prog_make_${ac_make}_set=yes;;
2906 eval ac_cv_prog_make_${ac_make}_set=no;;
2910 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912 $as_echo "yes" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2917 SET_MAKE="MAKE=${MAKE-make}"
2920 rm -rf .tst 2>/dev/null
2921 mkdir .tst 2>/dev/null
2922 if test -d .tst; then
2927 rmdir .tst 2>/dev/null
2929 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2931 # is not polluted with repeated "-I."
2932 am__isrc=' -I$(srcdir)'
2933 # test to see if srcdir already configured
2934 if test -f $srcdir/config.status; then
2935 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2939 # test whether we have cygpath
2940 if test -z "$CYGPATH_W"; then
2941 if (cygpath --version) >/dev/null 2>/dev/null; then
2942 CYGPATH_W='cygpath -w'
2949 # Define the identity of the package.
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE "$PACKAGE"
2959 cat >>confdefs.h <<_ACEOF
2960 #define VERSION "$VERSION"
2963 # Some tools Automake needs.
2965 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2971 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2977 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2979 # We need awk for the "check" target. The system "awk" is bad on
2981 # Always define AMTAR for backward compatibility.
2983 AMTAR=${AMTAR-"${am_missing_run}tar"}
2985 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2993 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal"
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$ac_cv_prog_CC"; then
3042 # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="gcc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3078 if test "x$ac_ct_CC" = x; then
3081 case $cross_compiling:$ac_tool_warned in
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="${ac_tool_prefix}cc"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3134 if test -z "$CC"; then
3135 # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_CC+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154 ac_prog_rejected=yes
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test $ac_prog_rejected = yes; then
3166 # We found a bogon in the path, so make sure we never use it.
3167 set dummy $ac_cv_prog_CC
3169 if test $# != 0; then
3170 # We chose a different compiler from the bogus one.
3171 # However, it has the same basename, so the bogon will be chosen
3172 # first if we set CC to just the basename; use the full file name.
3174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 for ac_prog in cl.exe
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3231 test -n "$CC" && break
3234 if test -z "$CC"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$ac_ct_CC" && break
3278 if test "x$ac_ct_CC" = x; then
3281 case $cross_compiling:$ac_tool_warned in
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details" "$LINENO" 5; }
3299 # Provide some information about the compiler.
3300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3303 for ac_option in --version -v -V -qversion; do
3304 { { ac_try="$ac_compiler $ac_option >&5"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3313 if test -s conftest.err; then
3315 ... rest of stderr output deleted ...
3316 10q' conftest.err >conftest.er1
3317 cat conftest.er1 >&5
3319 rm -f conftest.er1 conftest.err
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3337 # Try to create an executable without -o first, disregard a.out.
3338 # It will help us diagnose broken compilers, and finding out an intuition
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3341 $as_echo_n "checking whether the C compiler works... " >&6; }
3342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3344 # The possible output files:
3345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3348 for ac_file in $ac_files
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3357 if { { ac_try="$ac_link_default"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link_default") 2>&5
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3371 # so that the user can short-circuit this test for compilers unknown to
3373 for ac_file in $ac_files ''
3375 test -f "$ac_file" || continue
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3380 # We found the default executable, but exeext='' is most
3384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388 # We set ac_cv_exeext here because the later test for it is not
3389 # safe: cross compilers may not add the suffix if given an `-o'
3390 # argument, so we may need to know it at that point already.
3391 # Even if this section looks crufty: it has the advantage of
3398 test "$ac_cv_exeext" = no && ac_cv_exeext=
3403 if test -z "$ac_file"; then :
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error 77 "C compiler cannot create executables
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3418 $as_echo_n "checking for C compiler default output file name... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3420 $as_echo "$ac_file" >&6; }
3421 ac_exeext=$ac_cv_exeext
3423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { { ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; then :
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details" "$LINENO" 5; }
3457 rm -f conftest conftest$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3470 FILE *f = fopen ("conftest.out", "w");
3471 return ferror (f) || fclose (f) != 0;
3477 ac_clean_files="$ac_clean_files conftest.out"
3478 # Check that the compiler produces executables we can run. If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3481 $as_echo_n "checking whether we are cross compiling... " >&6; }
3482 if test "$cross_compiling" != yes; then
3483 { { ac_try="$ac_link"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_link") 2>&5
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }
3494 if { ac_try='./conftest$ac_cv_exeext'
3495 { { case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_try") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; }; then
3507 if test "$cross_compiling" = maybe; then
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details" "$LINENO" 5; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3519 $as_echo "$cross_compiling" >&6; }
3521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3524 $as_echo_n "checking for suffix of object files... " >&6; }
3525 if ${ac_cv_objext+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3539 rm -f conftest.o conftest.obj
3540 if { { ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_compile") 2>&5
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 for ac_file in conftest.o conftest.obj conftest.*; do
3552 test -f "$ac_file" || continue;
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3560 $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "cannot compute suffix of object files: cannot compile
3566 See \`config.log' for more details" "$LINENO" 5; }
3568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3571 $as_echo "$ac_cv_objext" >&6; }
3572 OBJEXT=$ac_cv_objext
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3576 if ${ac_cv_c_compiler_gnu+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"; then :
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604 if test $ac_compiler_gnu = yes; then
3609 ac_test_CFLAGS=${CFLAGS+set}
3610 ac_save_CFLAGS=$CFLAGS
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3613 if ${ac_cv_prog_cc_g+:} false; then :
3614 $as_echo_n "(cached) " >&6
3616 ac_save_c_werror_flag=$ac_c_werror_flag
3617 ac_c_werror_flag=yes
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"; then :
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3646 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_c_werror_flag=$ac_save_c_werror_flag
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675 CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677 if test "$GCC" = yes; then
3683 if test "$GCC" = yes; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if ${ac_cv_prog_cc_c89+:} false; then :
3692 $as_echo_n "(cached) " >&6
3694 ac_cv_prog_cc_c89=no
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3703 struct buf { int x; };
3704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3705 static char *e (p, i)
3711 static char *f (char * (*g) (char **, int), char **p, ...)
3716 s = g (p, va_arg (v,int));
3721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3722 function prototypes and stuff, but not '\xHH' hex character constants.
3723 These don't provoke an error unfortunately, instead are silently treated
3724 as 'x'. The following induces an error, until -std is added to get
3725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3726 array size at least. It's necessary to write '\x00'==0 to get something
3727 that's true only with -std. */
3728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3731 inside strings and character constants. */
3733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735 int test (int i, double x);
3736 struct s1 {int (*f) (int a);};
3737 struct s2 {int (*f) (double a);};
3738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 CC="$ac_save_CC $ac_arg"
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_c89=$ac_arg
3756 rm -f core conftest.err conftest.$ac_objext
3757 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 rm -f conftest.$ac_ext
3764 case "x$ac_cv_prog_cc_c89" in
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3772 CC="$CC $ac_cv_prog_cc_c89"
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3776 if test "x$ac_cv_prog_cc_c89" != xno; then :
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 DEPDIR="${am__leading_dot}deps"
3787 ac_config_commands="$ac_config_commands depfiles"
3790 am_make=${MAKE-make}
3791 cat > confinc << 'END'
3796 # If we don't find an include directive, just comment out the code.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3798 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3802 # First try GNU make style include.
3803 echo "include confinc" > confmf
3804 # We grep out `Entering directory' and `Leaving directory'
3805 # messages which can occur if `w' ends up in MAKEFLAGS.
3806 # In particular we don't look at `^make:' because GNU make might
3807 # be invoked under some other name (usually "gmake"), in which
3808 # case it prints its new name instead of `make'.
3809 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3814 # Now try BSD make style include.
3815 if test "$am__include" = "#"; then
3816 echo '.include "confinc"' > confmf
3817 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3818 am__include=.include
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3826 $as_echo "$_am_result" >&6; }
3827 rm -f confinc confmf
3829 # Check whether --enable-dependency-tracking was given.
3830 if test "${enable_dependency_tracking+set}" = set; then :
3831 enableval=$enable_dependency_tracking;
3834 if test "x$enable_dependency_tracking" != xno; then
3835 am_depcomp="$ac_aux_dir/depcomp"
3838 if test "x$enable_dependency_tracking" != xno; then
3848 depcc="$CC" am_compiler_list=
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3851 $as_echo_n "checking dependency style of $depcc... " >&6; }
3852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3856 # We make a subdir and do the tests there. Otherwise we can end up
3857 # making bogus files that we don't know about and never remove. For
3858 # instance it was reported that on HP-UX the gcc test will end up
3859 # making a dummy file named `D' -- because `-MD' means `put the output
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3874 am_cv_CC_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879 case " $depcc " in #(
3880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895 # Solaris 8's {/usr,}/bin/sh.
3896 touch sub/conftst$i.h
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901 # mode. It turns out that the SunPro C++ compiler does not properly
3902 # handle `-M -o', and we need to detect this. Also, some Intel
3903 # versions had trouble with output in subdirs
3904 am__obj=sub/conftest.${OBJEXT-o}
3905 am__minus_obj="-o $am__obj"
3908 # This depmode causes a compiler race in universal mode.
3909 test "$am__universal" = false || continue
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes; then
3920 msvisualcpp | msvcmsys)
3921 # This compiler won't grok `-c -o', but also, the minuso test has
3922 # not run yet. These depmodes are late enough in the game, and
3923 # so weak that their functioning should not be impacted.
3924 am__obj=conftest.${OBJEXT-o}
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=$am__obj \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3956 am_cv_CC_dependencies_compiler_type=none
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3968 am__fastdepCC_FALSE='#'
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3986 if test -z "$CPP"; then
3987 if ${ac_cv_prog_CPP+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 # Double quotes because CPP needs to be expanded
3991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3994 for ac_c_preproc_warn_flag in '' yes
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4005 # include <limits.h>
4007 # include <assert.h>
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4014 # Broken: fails on valid input.
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4029 # Passes both tests.
4033 rm -f conftest.err conftest.i conftest.$ac_ext
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.i conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4051 $as_echo "$CPP" >&6; }
4053 for ac_c_preproc_warn_flag in '' yes
4055 # Use a header file that comes with gcc, so configuring glibc
4056 # with a fresh cross-compiler works.
4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058 # <limits.h> exists even on freestanding compilers.
4059 # On the NeXT, cc -E runs the code through the compiler's parser,
4060 # not just through cpp. "Syntax error" is here to catch this case.
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4064 # include <limits.h>
4066 # include <assert.h>
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4073 # Broken: fails on valid input.
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4078 # OK, works on sane cases. Now check whether nonexistent headers
4079 # can be detected and how.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <ac_nonexistent.h>
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4085 # Broken: success on invalid input.
4088 # Passes both tests.
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096 rm -f conftest.i conftest.err conftest.$ac_ext
4097 if $ac_preproc_ok; then :
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4103 See \`config.log' for more details" "$LINENO" 5; }
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 for ac_prog in gawk mawk nawk awk
4114 # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy $ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_AWK+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 if test -n "$AWK"; then
4122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_AWK="$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 if test -n "$AWK"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4144 $as_echo "$AWK" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4151 test -n "$AWK" && break
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4158 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 cat >conftest.make <<\_ACEOF
4164 @echo '@@@%%%=$(MAKE)=@@@%%%'
4166 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4169 eval ac_cv_prog_make_${ac_make}_set=yes;;
4171 eval ac_cv_prog_make_${ac_make}_set=no;;
4175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4177 $as_echo "yes" >&6; }
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 SET_MAKE="MAKE=${MAKE-make}"
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4186 $as_echo_n "checking whether ln -s works... " >&6; }
4188 if test "$LN_S" = "ln -s"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4190 $as_echo "yes" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4193 $as_echo "no, using $LN_S" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4201 $as_echo_n "checking for __attribute__... " >&6; }
4202 if ${ac_cv___attribute__+:} false; then :
4203 $as_echo_n "(cached) " >&6
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4215 static void foo(void) __attribute__ ((noreturn));
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv___attribute__=yes
4230 ac_cv___attribute__=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 if test "$ac_cv___attribute__" = "yes"; then
4237 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4241 $as_echo "$ac_cv___attribute__" >&6; }
4244 # CMU GUESS RUNPATH SWITCH
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for runpath switch" >&5
4246 $as_echo_n "checking for runpath switch... " >&6; }
4247 if ${andrew_runpath_switch+:} false; then :
4248 $as_echo_n "(cached) " >&6
4252 SAVE_LDFLAGS="${LDFLAGS}"
4253 LDFLAGS="-R /usr/lib"
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4265 if ac_fn_c_try_link "$LINENO"; then :
4266 andrew_runpath_switch="-R"
4269 LDFLAGS="-Wl,-rpath,/usr/lib"
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4281 if ac_fn_c_try_link "$LINENO"; then :
4282 andrew_runpath_switch="-Wl,-rpath,"
4284 andrew_runpath_switch="none"
4286 rm -f core conftest.err conftest.$ac_objext \
4287 conftest$ac_exeext conftest.$ac_ext
4290 rm -f core conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext conftest.$ac_ext
4292 LDFLAGS="${SAVE_LDFLAGS}"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $andrew_runpath_switch" >&5
4296 $as_echo "$andrew_runpath_switch" >&6; }
4301 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4302 if test "x$ac_cv_func_connect" = xyes; then :
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4306 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4307 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 ac_check_lib_save_LIBS=$LIBS
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4315 /* Override any GCC internal prototype to avoid an error.
4316 Use char because int might match the return type of a GCC
4317 builtin and then its argument prototype would still apply. */
4321 char gethostbyname ();
4325 return gethostbyname ();
4330 if ac_fn_c_try_link "$LINENO"; then :
4331 ac_cv_lib_nsl_gethostbyname=yes
4333 ac_cv_lib_nsl_gethostbyname=no
4335 rm -f core conftest.err conftest.$ac_objext \
4336 conftest$ac_exeext conftest.$ac_ext
4337 LIBS=$ac_check_lib_save_LIBS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4340 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4341 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4342 LIB_SOCKET="-lnsl $LIB_SOCKET"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4346 $as_echo_n "checking for connect in -lsocket... " >&6; }
4347 if ${ac_cv_lib_socket_connect+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 ac_check_lib_save_LIBS=$LIBS
4351 LIBS="-lsocket $LIBS"
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4355 /* Override any GCC internal prototype to avoid an error.
4356 Use char because int might match the return type of a GCC
4357 builtin and then its argument prototype would still apply. */
4370 if ac_fn_c_try_link "$LINENO"; then :
4371 ac_cv_lib_socket_connect=yes
4373 ac_cv_lib_socket_connect=no
4375 rm -f core conftest.err conftest.$ac_objext \
4376 conftest$ac_exeext conftest.$ac_ext
4377 LIBS=$ac_check_lib_save_LIBS
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4380 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4381 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4382 LIB_SOCKET="-lsocket $LIB_SOCKET"
4388 LIBS="$LIB_SOCKET $save_LIBS"
4389 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
4390 if test "x$ac_cv_func_res_search" = xyes; then :
4393 LIBS="-lresolv $LIB_SOCKET $save_LIBS"
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 #include <sys/types.h>
4398 #include <netinet/in.h>
4399 #include <arpa/nameser.h>
4400 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
4401 #include <arpa/nameser_compat.h>
4408 const char host[12]="openafs.org";
4410 res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans));
4417 if ac_fn_c_try_link "$LINENO"; then :
4418 LIB_SOCKET="-lresolv $LIB_SOCKET"
4420 rm -f core conftest.err conftest.$ac_objext \
4421 conftest$ac_exeext conftest.$ac_ext
4425 LIBS="$LIB_SOCKET $save_LIBS"
4426 for ac_func in dn_expand dns_lookup
4428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4431 cat >>confdefs.h <<_ACEOF
4432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4444 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4445 if ${ac_cv_path_GREP+:} false; then :
4446 $as_echo_n "(cached) " >&6
4448 if test -z "$GREP"; then
4449 ac_path_GREP_found=false
4450 # Loop through the user's path and test for each of PROGNAME-LIST
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 test -z "$as_dir" && as_dir=.
4456 for ac_prog in grep ggrep; do
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4459 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4460 # Check for GNU ac_path_GREP and select it if it is found.
4461 # Check for GNU $ac_path_GREP
4462 case `"$ac_path_GREP" --version 2>&1` in
4464 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4467 $as_echo_n 0123456789 >"conftest.in"
4470 cat "conftest.in" "conftest.in" >"conftest.tmp"
4471 mv "conftest.tmp" "conftest.in"
4472 cp "conftest.in" "conftest.nl"
4473 $as_echo 'GREP' >> "conftest.nl"
4474 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4476 as_fn_arith $ac_count + 1 && ac_count=$as_val
4477 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4478 # Best one so far, save it but keep looking for a better one
4479 ac_cv_path_GREP="$ac_path_GREP"
4480 ac_path_GREP_max=$ac_count
4482 # 10*(2^10) chars as input seems more than enough
4483 test $ac_count -gt 10 && break
4485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 $ac_path_GREP_found && break 3
4493 if test -z "$ac_cv_path_GREP"; then
4494 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 ac_cv_path_GREP=$GREP
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4502 $as_echo "$ac_cv_path_GREP" >&6; }
4503 GREP="$ac_cv_path_GREP"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4507 $as_echo_n "checking for egrep... " >&6; }
4508 if ${ac_cv_path_EGREP+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4512 then ac_cv_path_EGREP="$GREP -E"
4514 if test -z "$EGREP"; then
4515 ac_path_EGREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in egrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4526 # Check for GNU ac_path_EGREP and select it if it is found.
4527 # Check for GNU $ac_path_EGREP
4528 case `"$ac_path_EGREP" --version 2>&1` in
4530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4533 $as_echo_n 0123456789 >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'EGREP' >> "conftest.nl"
4540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_EGREP="$ac_path_EGREP"
4546 ac_path_EGREP_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 $ac_path_EGREP_found && break 3
4559 if test -z "$ac_cv_path_EGREP"; then
4560 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 ac_cv_path_EGREP=$EGREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4569 $as_echo "$ac_cv_path_EGREP" >&6; }
4570 EGREP="$ac_cv_path_EGREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4574 $as_echo_n "checking for ANSI C header files... " >&6; }
4575 if ${ac_cv_header_stdc+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_header_stdc=yes
4596 ac_cv_header_stdc=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 if test $ac_cv_header_stdc = yes; then
4601 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "memchr" >/dev/null 2>&1; then :
4611 ac_cv_header_stdc=no
4617 if test $ac_cv_header_stdc = yes; then
4618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625 $EGREP "free" >/dev/null 2>&1; then :
4628 ac_cv_header_stdc=no
4634 if test $ac_cv_header_stdc = yes; then
4635 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636 if test "$cross_compiling" = yes; then :
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4643 #if ((' ' & 0x0FF) == 0x020)
4644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647 # define ISLOWER(c) \
4648 (('a' <= (c) && (c) <= 'i') \
4649 || ('j' <= (c) && (c) <= 'r') \
4650 || ('s' <= (c) && (c) <= 'z'))
4651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659 for (i = 0; i < 256; i++)
4660 if (XOR (islower (i), ISLOWER (i))
4661 || toupper (i) != TOUPPER (i))
4666 if ac_fn_c_try_run "$LINENO"; then :
4669 ac_cv_header_stdc=no
4671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4672 conftest.$ac_objext conftest.beam conftest.$ac_ext
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4678 $as_echo "$ac_cv_header_stdc" >&6; }
4679 if test $ac_cv_header_stdc = yes; then
4681 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687 inttypes.h stdint.h unistd.h
4689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4692 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4693 cat >>confdefs.h <<_ACEOF
4694 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703 # Check whether --with-lib-subdir was given.
4704 if test "${with_lib_subdir+set}" = set; then :
4705 withval=$with_lib_subdir;
4708 # The cast to long int works around a bug in the HP C Compiler
4709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4711 # This bug is HP SR number 8606223364.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4713 $as_echo_n "checking size of long... " >&6; }
4714 if ${ac_cv_sizeof_long+:} false; then :
4715 $as_echo_n "(cached) " >&6
4717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4720 if test "$ac_cv_type_long" = yes; then
4721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4723 as_fn_error 77 "cannot compute sizeof (long)
4724 See \`config.log' for more details" "$LINENO" 5; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4732 $as_echo "$ac_cv_sizeof_long" >&6; }
4736 cat >>confdefs.h <<_ACEOF
4737 #define SIZEOF_LONG $ac_cv_sizeof_long
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what directory libraries are found in" >&5
4742 $as_echo_n "checking what directory libraries are found in... " >&6; }
4743 if ${ac_cv_cmu_lib_subdir+:} false; then :
4744 $as_echo_n "(cached) " >&6
4746 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir=
4747 test "X$with_lib_subdir" = "Xno" && with_lib_subdir=
4748 if test "X$with_lib_subdir" = "X" ; then
4749 ac_cv_cmu_lib_subdir=lib
4750 if test $ac_cv_sizeof_long -eq 4 ; then
4751 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32
4753 if test $ac_cv_sizeof_long -eq 8 ; then
4754 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64
4757 ac_cv_cmu_lib_subdir=$with_lib_subdir
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmu_lib_subdir" >&5
4761 $as_echo "$ac_cv_cmu_lib_subdir" >&6; }
4762 CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir
4768 # Check whether --with-openssl was given.
4769 if test "${with_openssl+set}" = set; then :
4770 withval=$with_openssl; with_openssl=$withval
4776 save_CPPFLAGS=$CPPFLAGS
4777 save_LDFLAGS=$LDFLAGS
4779 if test -d $with_openssl; then
4780 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include"
4782 # this is CMU ADD LIBPATH
4783 if test "$andrew_runpath_switch" = "none" ; then
4784 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4786 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}"
4791 case "$with_openssl" in
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
4797 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
4798 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-lrsaref $LIBS"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4806 /* Override any GCC internal prototype to avoid an error.
4807 Use char because int might match the return type of a GCC
4808 builtin and then its argument prototype would still apply. */
4812 char RSAPublicEncrypt ();
4816 return RSAPublicEncrypt ();
4821 if ac_fn_c_try_link "$LINENO"; then :
4822 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
4824 ac_cv_lib_rsaref_RSAPublicEncrypt=no
4826 rm -f core conftest.err conftest.$ac_objext \
4827 conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
4831 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
4832 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
4833 cmu_have_rsaref=yes;
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lRSAglue" >&5
4835 $as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; }
4836 if ${ac_cv_lib_RSAglue_RSAPublicEncrypt+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 ac_check_lib_save_LIBS=$LIBS
4840 LIBS="-lRSAglue $LIBS"
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4844 /* Override any GCC internal prototype to avoid an error.
4845 Use char because int might match the return type of a GCC
4846 builtin and then its argument prototype would still apply. */
4850 char RSAPublicEncrypt ();
4854 return RSAPublicEncrypt ();
4859 if ac_fn_c_try_link "$LINENO"; then :
4860 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes
4862 ac_cv_lib_RSAglue_RSAPublicEncrypt=no
4864 rm -f core conftest.err conftest.$ac_objext \
4865 conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5
4869 $as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; }
4870 if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = xyes; then :
4871 LIB_RSAREF="-lRSAglue -lrsaref"
4873 LIB_RSAREF="-lrsaref"
4881 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
4882 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5
4885 $as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; }
4886 if ${ac_cv_lib_crypto_EVP_DigestInit+:} false; then :
4887 $as_echo_n "(cached) " >&6
4889 ac_check_lib_save_LIBS=$LIBS
4890 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 /* Override any GCC internal prototype to avoid an error.
4895 Use char because int might match the return type of a GCC
4896 builtin and then its argument prototype would still apply. */
4900 char EVP_DigestInit ();
4904 return EVP_DigestInit ();
4909 if ac_fn_c_try_link "$LINENO"; then :
4910 ac_cv_lib_crypto_EVP_DigestInit=yes
4912 ac_cv_lib_crypto_EVP_DigestInit=no
4914 rm -f core conftest.err conftest.$ac_objext \
4915 conftest$ac_exeext conftest.$ac_ext
4916 LIBS=$ac_check_lib_save_LIBS
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
4919 $as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
4920 if test "x$ac_cv_lib_crypto_EVP_DigestInit" = xyes; then :
4934 if test "$with_openssl" != "no"; then
4936 $as_echo "#define HAVE_OPENSSL /**/" >>confdefs.h
4939 CPPFLAGS=$save_CPPFLAGS
4940 LDFLAGS=$save_LDFLAGS
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
4944 $as_echo_n "checking for OpenSSL... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
4946 $as_echo "$with_openssl" >&6; }
4950 # Check whether --with-des was given.
4951 if test "${with_des+set}" = set; then :
4952 withval=$with_des; with_des=$withval
4959 if test "$with_des" != no; then
4960 if test -d $with_des; then
4961 CPPFLAGS="$CPPFLAGS -I${with_des}/include"
4962 LDFLAGS="$LDFLAGS -L${with_des}/lib"
4965 if test "$with_openssl" != no; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
4967 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
4968 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 ac_check_lib_save_LIBS=$LIBS
4972 LIBS="-lcrypto $LIB_RSAREF $LIBS"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4976 /* Override any GCC internal prototype to avoid an error.
4977 Use char because int might match the return type of a GCC
4978 builtin and then its argument prototype would still apply. */
4982 char des_cbc_encrypt ();
4986 return des_cbc_encrypt ();
4991 if ac_fn_c_try_link "$LINENO"; then :
4992 ac_cv_lib_crypto_des_cbc_encrypt=yes
4994 ac_cv_lib_crypto_des_cbc_encrypt=no
4996 rm -f core conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
4998 LIBS=$ac_check_lib_save_LIBS
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5001 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
5002 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
5004 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5005 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5007 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5021 if test "$with_des" = no; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DES_cbc_encrypt in -lcrypto" >&5
5023 $as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; }
5024 if ${ac_cv_lib_crypto_DES_cbc_encrypt+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 ac_check_lib_save_LIBS=$LIBS
5028 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5032 /* Override any GCC internal prototype to avoid an error.
5033 Use char because int might match the return type of a GCC
5034 builtin and then its argument prototype would still apply. */
5038 char DES_cbc_encrypt ();
5042 return DES_cbc_encrypt ();
5047 if ac_fn_c_try_link "$LINENO"; then :
5048 ac_cv_lib_crypto_DES_cbc_encrypt=yes
5050 ac_cv_lib_crypto_DES_cbc_encrypt=no
5052 rm -f core conftest.err conftest.$ac_objext \
5053 conftest$ac_exeext conftest.$ac_ext
5054 LIBS=$ac_check_lib_save_LIBS
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
5057 $as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; }
5058 if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = xyes; then :
5060 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5063 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5079 if test "$with_des" = no; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
5081 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
5082 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 ac_check_lib_save_LIBS=$LIBS
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5090 /* Override any GCC internal prototype to avoid an error.
5091 Use char because int might match the return type of a GCC
5092 builtin and then its argument prototype would still apply. */
5096 char des_cbc_encrypt ();
5100 return des_cbc_encrypt ();
5105 if ac_fn_c_try_link "$LINENO"; then :
5106 ac_cv_lib_des_des_cbc_encrypt=yes
5108 ac_cv_lib_des_des_cbc_encrypt=no
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 LIBS=$ac_check_lib_save_LIBS
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
5115 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
5116 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
5125 if test "$with_des" = no; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
5127 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
5128 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 ac_check_lib_save_LIBS=$LIBS
5132 LIBS="-ldes425 $LIBS"
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5136 /* Override any GCC internal prototype to avoid an error.
5137 Use char because int might match the return type of a GCC
5138 builtin and then its argument prototype would still apply. */
5142 char des_cbc_encrypt ();
5146 return des_cbc_encrypt ();
5151 if ac_fn_c_try_link "$LINENO"; then :
5152 ac_cv_lib_des425_des_cbc_encrypt=yes
5154 ac_cv_lib_des425_des_cbc_encrypt=no
5156 rm -f core conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
5161 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
5162 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
5171 if test "$with_des" = no; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes524" >&5
5173 $as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; }
5174 if ${ac_cv_lib_des524_des_cbc_encrypt+:} false; then :
5175 $as_echo_n "(cached) " >&6
5177 ac_check_lib_save_LIBS=$LIBS
5178 LIBS="-ldes524 $LIBS"
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5182 /* Override any GCC internal prototype to avoid an error.
5183 Use char because int might match the return type of a GCC
5184 builtin and then its argument prototype would still apply. */
5188 char des_cbc_encrypt ();
5192 return des_cbc_encrypt ();
5197 if ac_fn_c_try_link "$LINENO"; then :
5198 ac_cv_lib_des524_des_cbc_encrypt=yes
5200 ac_cv_lib_des524_des_cbc_encrypt=no
5202 rm -f core conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
5204 LIBS=$ac_check_lib_save_LIBS
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5
5207 $as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; }
5208 if test "x$ac_cv_lib_des524_des_cbc_encrypt" = xyes; then :
5217 if test "$with_des" = no; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSAPublicEncrypt in -lrsaref" >&5
5221 $as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; }
5222 if ${ac_cv_lib_rsaref_RSAPublicEncrypt+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 ac_check_lib_save_LIBS=$LIBS
5226 LIBS="-lrsaref $LIBS"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5230 /* Override any GCC internal prototype to avoid an error.
5231 Use char because int might match the return type of a GCC
5232 builtin and then its argument prototype would still apply. */
5236 char RSAPublicEncrypt ();
5240 return RSAPublicEncrypt ();
5245 if ac_fn_c_try_link "$LINENO"; then :
5246 ac_cv_lib_rsaref_RSAPublicEncrypt=yes
5248 ac_cv_lib_rsaref_RSAPublicEncrypt=no
5250 rm -f core conftest.err conftest.$ac_objext \
5251 conftest$ac_exeext conftest.$ac_ext
5252 LIBS=$ac_check_lib_save_LIBS
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5
5255 $as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; }
5256 if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = xyes; then :
5257 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -lcrypto" >&5
5264 $as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; }
5265 if ${ac_cv_lib_crypto_des_cbc_encrypt+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 ac_check_lib_save_LIBS=$LIBS
5269 LIBS="-lcrypto $LIB_RSAREF $LIBS"
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 /* Override any GCC internal prototype to avoid an error.
5274 Use char because int might match the return type of a GCC
5275 builtin and then its argument prototype would still apply. */
5279 char des_cbc_encrypt ();
5283 return des_cbc_encrypt ();
5288 if ac_fn_c_try_link "$LINENO"; then :
5289 ac_cv_lib_crypto_des_cbc_encrypt=yes
5291 ac_cv_lib_crypto_des_cbc_encrypt=no
5293 rm -f core conftest.err conftest.$ac_objext \
5294 conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
5298 $as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; }
5299 if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = xyes; then :
5301 ac_fn_c_check_header_mongrel "$LINENO" "openssl/des.h" "ac_cv_header_openssl_des_h" "$ac_includes_default"
5302 if test "x$ac_cv_header_openssl_des_h" = xyes; then :
5304 $as_echo "#define WITH_SSL_DES /**/" >>confdefs.h
5320 if test "$with_des" != no; then
5322 $as_echo "#define WITH_DES /**/" >>confdefs.h
5332 # Check whether --enable-krb4 was given.
5333 if test "${enable_krb4+set}" = set; then :
5334 enableval=$enable_krb4; krb4=$enableval
5340 if test "$krb4" != no; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
5342 $as_echo_n "checking for res_search in -lresolv... " >&6; }
5343 if ${ac_cv_lib_resolv_res_search+:} false; then :
5344 $as_echo_n "(cached) " >&6
5346 ac_check_lib_save_LIBS=$LIBS
5347 LIBS="-lresolv $LIBS"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 /* Override any GCC internal prototype to avoid an error.
5352 Use char because int might match the return type of a GCC
5353 builtin and then its argument prototype would still apply. */
5361 return res_search ();
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 ac_cv_lib_resolv_res_search=yes
5369 ac_cv_lib_resolv_res_search=no
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 LIBS=$ac_check_lib_save_LIBS
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
5376 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
5377 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
5378 cat >>confdefs.h <<_ACEOF
5379 #define HAVE_LIBRESOLV 1
5382 LIBS="-lresolv $LIBS"
5387 if test -d ${krb4}; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos includes" >&5
5389 $as_echo_n "checking for Kerberos includes... " >&6; }
5390 if ${cyrus_krbinclude+:} false; then :
5391 $as_echo_n "(cached) " >&6
5394 for krbhloc in include/kerberosIV include/kerberos include
5396 if test -f ${krb4}/${krbhloc}/krb.h ; then
5397 cyrus_krbinclude=${krb4}/${krbhloc}
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cyrus_krbinclude" >&5
5404 $as_echo "$cyrus_krbinclude" >&6; }
5406 if test -n "${cyrus_krbinclude}"; then
5407 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
5409 LDFLAGS="$LDFLAGS -L$krb4/lib"
5412 if test "$with_des" != no; then
5413 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_krb_h" = xyes; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
5417 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
5418 if ${ac_cv_lib_com_err_com_err+:} false; then :
5419 $as_echo_n "(cached) " >&6
5421 ac_check_lib_save_LIBS=$LIBS
5422 LIBS="-lcom_err $LIBS"
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5426 /* Override any GCC internal prototype to avoid an error.
5427 Use char because int might match the return type of a GCC
5428 builtin and then its argument prototype would still apply. */
5441 if ac_fn_c_try_link "$LINENO"; then :
5442 ac_cv_lib_com_err_com_err=yes
5444 ac_cv_lib_com_err_com_err=no
5446 rm -f core conftest.err conftest.$ac_objext \
5447 conftest$ac_exeext conftest.$ac_ext
5448 LIBS=$ac_check_lib_save_LIBS
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
5451 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
5452 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
5455 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
5456 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
5457 $as_echo_n "(cached) " >&6
5459 ac_check_lib_save_LIBS=$LIBS
5460 LIBS="-lkrb $LIB_DES -lcom_err $LIBS"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5464 /* Override any GCC internal prototype to avoid an error.
5465 Use char because int might match the return type of a GCC
5466 builtin and then its argument prototype would still apply. */
5470 char krb_mk_priv ();
5474 return krb_mk_priv ();
5479 if ac_fn_c_try_link "$LINENO"; then :
5480 ac_cv_lib_krb_krb_mk_priv=yes
5482 ac_cv_lib_krb_krb_mk_priv=no
5484 rm -f core conftest.err conftest.$ac_objext \
5485 conftest$ac_exeext conftest.$ac_ext
5486 LIBS=$ac_check_lib_save_LIBS
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
5489 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
5490 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
5491 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb" >&5
5499 $as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; }
5500 if ${ac_cv_lib_krb_krb_mk_priv+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-lkrb $LIB_DES $LIBS"
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 /* Override any GCC internal prototype to avoid an error.
5509 Use char because int might match the return type of a GCC
5510 builtin and then its argument prototype would still apply. */
5514 char krb_mk_priv ();
5518 return krb_mk_priv ();
5523 if ac_fn_c_try_link "$LINENO"; then :
5524 ac_cv_lib_krb_krb_mk_priv=yes
5526 ac_cv_lib_krb_krb_mk_priv=no
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 LIBS=$ac_check_lib_save_LIBS
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_mk_priv" >&5
5533 $as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; }
5534 if test "x$ac_cv_lib_krb_krb_mk_priv" = xyes; then :
5535 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes"
5548 if test "$krb4" != "no" -a "$krb4lib" = "no"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_mk_priv in -lkrb4" >&5
5550 $as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; }
5551 if ${ac_cv_lib_krb4_krb_mk_priv+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 ac_check_lib_save_LIBS=$LIBS
5555 LIBS="-lkrb4 $LIB_DES $LIBS"
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5559 /* Override any GCC internal prototype to avoid an error.
5560 Use char because int might match the return type of a GCC
5561 builtin and then its argument prototype would still apply. */
5565 char krb_mk_priv ();
5569 return krb_mk_priv ();
5574 if ac_fn_c_try_link "$LINENO"; then :
5575 ac_cv_lib_krb4_krb_mk_priv=yes
5577 ac_cv_lib_krb4_krb_mk_priv=no
5579 rm -f core conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_mk_priv" >&5
5584 $as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; }
5585 if test "x$ac_cv_lib_krb4_krb_mk_priv" = xyes; then :
5586 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes
5592 if test "$krb4" = no; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Kerberos V4 found" >&5
5594 $as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;}
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No DES library found for Kerberos V4 support" >&5
5598 $as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;}
5603 if test "$krb4" != no; then
5604 cmu_save_LIBS="$LIBS"
5605 LIBS="$LIBS $SASL_KRB_LIB"
5606 for ac_func in krb_get_err_text
5608 ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
5609 if test "x$ac_cv_func_krb_get_err_text" = xyes; then :
5610 cat >>confdefs.h <<_ACEOF
5611 #define HAVE_KRB_GET_ERR_TEXT 1
5617 LIBS="$cmu_save_LIBS"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KERBEROS_V4" >&5
5621 $as_echo_n "checking KERBEROS_V4... " >&6; }
5622 if test "$krb4" != no; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
5624 $as_echo "enabled" >&6; }
5625 SASL_MECHS="$SASL_MECHS libkerberos4.la"
5626 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/kerberos4.c"
5627 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o"
5629 $as_echo "#define STATIC_KERBEROS4 /**/" >>confdefs.h
5632 $as_echo "#define HAVE_KRB /**/" >>confdefs.h
5634 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR"
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5637 $as_echo "disabled" >&6; }
5641 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
5642 if test "x$ac_cv_func_crypt" = xyes; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
5646 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
5647 if ${ac_cv_lib_crypt_crypt+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 ac_check_lib_save_LIBS=$LIBS
5651 LIBS="-lcrypt $LIBS"
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_lib_crypt_crypt=yes
5673 ac_cv_lib_crypt_crypt=no
5675 rm -f core conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
5680 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
5681 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
5682 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
5693 # Check whether --enable-gssapi was given.
5694 if test "${enable_gssapi+set}" = set; then :
5695 enableval=$enable_gssapi; gssapi=$enableval
5701 # Check whether --with-gss_impl was given.
5702 if test "${with_gss_impl+set}" = set; then :
5703 withval=$with_gss_impl; gss_impl=$withval
5709 if test "$gssapi" != no; then
5722 # When should we use __sunos?
5730 { $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
5731 $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;}
5732 if test "$gss_impl" = "cybersafe"; then
5733 as_fn_error $? "CyberSafe was forced, cannot continue as platform is not supported" "$LINENO" 5
5738 cmu_saved_CPPFLAGS=$CPPFLAGS
5740 if test -d ${gssapi}; then
5741 CPPFLAGS="$CPPFLAGS -I$gssapi/include"
5742 # We want to keep -I in our CPPFLAGS, but only if we succeed
5743 cmu_saved_CPPFLAGS=$CPPFLAGS
5744 ### I am not sure how useful is this (and whether this is required at all
5745 ### especially when we have to provide two -L flags for new CyberSafe
5746 LDFLAGS="$LDFLAGS -L$gssapi/lib"
5748 if test -n "$platform"; then
5749 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
5750 CPPFLAGS="$CPPFLAGS -D$platform"
5751 if test -d "${gssapi}/appsec-sdk/include"; then
5752 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
5757 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
5758 if test "x$ac_cv_header_gssapi_h" = xyes; then :
5760 $as_echo "#define HAVE_GSSAPI_H /**/" >>confdefs.h
5763 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
5764 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no include files found" >&5
5768 $as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no
5775 for ac_header in gssapi/gssapi_ext.h
5777 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
5778 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes; then :
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
5787 CPPFLAGS=$cmu_saved_CPPFLAGS
5791 if test "$gssapi" != no; then
5792 # We need to find out which gssapi implementation we are
5793 # using. Supported alternatives are: MIT Kerberos 5,
5794 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal),
5795 # CyberSafe Kerberos 5 (http://www.cybersafe.com/)
5796 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/)
5798 # The choice is reflected in GSSAPIBASE_LIBS
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
5801 $as_echo_n "checking for res_search in -lresolv... " >&6; }
5802 if ${ac_cv_lib_resolv_res_search+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-lresolv $LIBS"
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5820 return res_search ();
5825 if ac_fn_c_try_link "$LINENO"; then :
5826 ac_cv_lib_resolv_res_search=yes
5828 ac_cv_lib_resolv_res_search=no
5830 rm -f core conftest.err conftest.$ac_objext \
5831 conftest$ac_exeext conftest.$ac_ext
5832 LIBS=$ac_check_lib_save_LIBS
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
5835 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
5836 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
5837 cat >>confdefs.h <<_ACEOF
5838 #define HAVE_LIBRESOLV 1
5841 LIBS="-lresolv $LIBS"
5845 if test -d ${gssapi}; then
5846 gssapi_dir="${gssapi}/lib"
5847 GSSAPIBASE_LIBS="-L$gssapi_dir"
5848 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir"
5850 # FIXME: This is only used for building cyrus, and then only as
5851 # a real hack. it needs to be fixed.
5852 gssapi_dir="/usr/local/lib"
5855 # Check a full link against the Heimdal libraries.
5856 # If this fails, check a full link against the MIT libraries.
5857 # If this fails, check a full link against the CyberSafe libraries.
5858 # If this fails, check a full link against the Solaris 8 and up libgss.
5860 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi" >&5
5863 $as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; }
5864 if ${ac_cv_lib_gssapi_gss_unwrap+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 ac_check_lib_save_LIBS=$LIBS
5868 LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS"
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5882 return gss_unwrap ();
5887 if ac_fn_c_try_link "$LINENO"; then :
5888 ac_cv_lib_gssapi_gss_unwrap=yes
5890 ac_cv_lib_gssapi_gss_unwrap=no
5892 rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LIBS=$ac_check_lib_save_LIBS
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_unwrap" >&5
5897 $as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; }
5898 if test "x$ac_cv_lib_gssapi_gss_unwrap" = xyes; then :
5904 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
5909 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then
5910 # check for libkrb5support first
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
5912 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
5913 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
5914 $as_echo_n "(cached) " >&6
5916 ac_check_lib_save_LIBS=$LIBS
5917 LIBS="-lkrb5support ${LIB_SOCKET} $LIBS"
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5921 /* Override any GCC internal prototype to avoid an error.
5922 Use char because int might match the return type of a GCC
5923 builtin and then its argument prototype would still apply. */
5927 char krb5int_getspecific ();
5931 return krb5int_getspecific ();
5936 if ac_fn_c_try_link "$LINENO"; then :
5937 ac_cv_lib_krb5support_krb5int_getspecific=yes
5939 ac_cv_lib_krb5support_krb5int_getspecific=no
5941 rm -f core conftest.err conftest.$ac_objext \
5942 conftest$ac_exeext conftest.$ac_ext
5943 LIBS=$ac_check_lib_save_LIBS
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
5946 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
5947 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
5948 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgssapi_krb5" >&5
5954 $as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; }
5955 if ${ac_cv_lib_gssapi_krb5_gss_unwrap+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS"
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5973 return gss_unwrap ();
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 ac_cv_lib_gssapi_krb5_gss_unwrap=yes
5981 ac_cv_lib_gssapi_krb5_gss_unwrap=no
5983 rm -f core conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext conftest.$ac_ext
5985 LIBS=$ac_check_lib_save_LIBS
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5
5988 $as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; }
5989 if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = xyes; then :
5995 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6000 # For Cybersafe one has to set a platform define in order to make compilation work
6001 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then
6003 cmu_saved_CPPFLAGS=$CPPFLAGS
6004 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS
6005 # FIXME - Note that the libraries are in .../lib64 for 64bit kernels
6006 if test -d "${gssapi}/appsec-rt/lib"; then
6007 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib"
6009 CPPFLAGS="$CPPFLAGS -D$platform"
6010 if test -d "${gssapi}/appsec-sdk/include"; then
6011 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include"
6016 # Check for CyberSafe with two libraries first, than fall back to a single
6017 # library (older CyberSafe)
6019 unset ac_cv_lib_gss_csf_gss_acq_user
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
6021 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
6022 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 ac_check_lib_save_LIBS=$LIBS
6026 LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS"
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6036 char csf_gss_acq_user ();
6040 return csf_gss_acq_user ();
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_lib_gss_csf_gss_acq_user=yes
6048 ac_cv_lib_gss_csf_gss_acq_user=no
6050 rm -f core conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 LIBS=$ac_check_lib_save_LIBS
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
6055 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
6056 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
6057 gss_impl="cybersafe03"
6059 unset ac_cv_lib_gss_csf_gss_acq_user;
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csf_gss_acq_user in -lgss" >&5
6061 $as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; }
6062 if ${ac_cv_lib_gss_csf_gss_acq_user+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 ac_check_lib_save_LIBS=$LIBS
6066 LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS"
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6076 char csf_gss_acq_user ();
6080 return csf_gss_acq_user ();
6085 if ac_fn_c_try_link "$LINENO"; then :
6086 ac_cv_lib_gss_csf_gss_acq_user=yes
6088 ac_cv_lib_gss_csf_gss_acq_user=no
6090 rm -f core conftest.err conftest.$ac_objext \
6091 conftest$ac_exeext conftest.$ac_ext
6092 LIBS=$ac_check_lib_save_LIBS
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5
6095 $as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; }
6096 if test "x$ac_cv_lib_gss_csf_gss_acq_user" = xyes; then :
6097 gss_impl="cybersafe"
6105 if test "$gss_failed" = "1"; then
6107 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS
6108 CPPFLAGS=$cmu_saved_CPPFLAGS
6110 if test "$gss_impl" != "auto"; then
6116 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_unwrap in -lgss" >&5
6119 $as_echo_n "checking for gss_unwrap in -lgss... " >&6; }
6120 if ${ac_cv_lib_gss_gss_unwrap+:} false; then :
6121 $as_echo_n "(cached) " >&6
6123 ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lgss -lgss $LIBS"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6128 /* Override any GCC internal prototype to avoid an error.
6129 Use char because int might match the return type of a GCC
6130 builtin and then its argument prototype would still apply. */
6138 return gss_unwrap ();
6143 if ac_fn_c_try_link "$LINENO"; then :
6144 ac_cv_lib_gss_gss_unwrap=yes
6146 ac_cv_lib_gss_gss_unwrap=no
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_unwrap" >&5
6153 $as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; }
6154 if test "x$ac_cv_lib_gss_gss_unwrap" = xyes; then :
6160 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then
6165 if test "$gss_impl" = "mit"; then
6166 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}"
6167 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}"
6168 elif test "$gss_impl" = "heimdal"; then
6169 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
6170 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err"
6171 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}"
6172 elif test "$gss_impl" = "cybersafe03"; then
6173 # Version of CyberSafe with two libraries
6174 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
6175 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5"
6176 # there is no static libgss for CyberSafe
6177 GSSAPIBASE_STATIC_LIBS=none
6178 elif test "$gss_impl" = "cybersafe"; then
6179 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
6180 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss"
6181 # there is no static libgss for CyberSafe
6182 GSSAPIBASE_STATIC_LIBS=none
6183 elif test "$gss_impl" = "seam"; then
6184 GSSAPIBASE_LIBS=-lgss
6185 # there is no static libgss on Solaris 8 and up
6186 GSSAPIBASE_STATIC_LIBS=none
6187 elif test "$gss_impl" = "failed"; then
6190 GSSAPIBASE_STATIC_LIBS=
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - specified library not found" >&5
6192 $as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;}
6196 GSSAPIBASE_STATIC_LIBS=
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GSSAPI - no library" >&5
6198 $as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;}
6203 # Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME
6204 # in gssapi\rfckrb5.h
6206 if test "$gssapi" != "no"; then
6207 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <gssapi/gssapi.h>
6211 #ifdef GSS_C_NT_HOSTBASED_SERVICE
6212 hostbased_service_gss_nt_yes
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then :
6218 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
6222 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
6227 elif test "$ac_cv_header_gssapi_h" = "yes"; then
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
6236 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6241 elif test "$ac_cv_header_gssapi_gssapi_h"; then
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #include <gssapi/gssapi.h>
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then :
6250 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/" >>confdefs.h
6257 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <gssapi/gssapi.h>
6261 #ifdef GSS_C_NT_USER_NAME
6262 user_name_yes_gss_nt
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then :
6268 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cybersafe define not found" >&5
6272 $as_echo "$as_me: WARNING: Cybersafe define not found" >&2;}
6276 elif test "$ac_cv_header_gssapi_h" = "yes"; then
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
6285 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6296 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
6301 elif test "$ac_cv_header_gssapi_gssapi_h"; then
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <gssapi/gssapi.h>
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then :
6310 $as_echo "#define HAVE_GSS_C_NT_USER_NAME /**/" >>confdefs.h
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #include <gssapi/gssapi.h>
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then :
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSSAPI" >&5
6331 $as_echo_n "checking GSSAPI... " >&6; }
6332 if test "$gssapi" != no; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: with implementation ${gss_impl}" >&5
6334 $as_echo "with implementation ${gss_impl}" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
6336 $as_echo_n "checking for res_search in -lresolv... " >&6; }
6337 if ${ac_cv_lib_resolv_res_search+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-lresolv $LIBS"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6345 /* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6355 return res_search ();
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 ac_cv_lib_resolv_res_search=yes
6363 ac_cv_lib_resolv_res_search=no
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_check_lib_save_LIBS
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
6370 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
6371 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
6372 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv"
6375 SASL_MECHS="$SASL_MECHS libgssapiv2.la"
6376 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o"
6377 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gssapi.c"
6378 if test "$rfc5587" = "yes"; then
6379 SASL_MECHS="$SASL_MECHS libgs2.la"
6380 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o"
6381 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/gs2.c"
6383 cmu_save_LIBS="$LIBS"
6384 LIBS="$LIBS $GSSAPIBASE_LIBS"
6385 for ac_func in gsskrb5_register_acceptor_identity
6387 ac_fn_c_check_func "$LINENO" "gsskrb5_register_acceptor_identity" "ac_cv_func_gsskrb5_register_acceptor_identity"
6388 if test "x$ac_cv_func_gsskrb5_register_acceptor_identity" = xyes; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
6396 for ac_func in gss_decapsulate_token
6398 ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
6399 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
6400 cat >>confdefs.h <<_ACEOF
6401 #define HAVE_GSS_DECAPSULATE_TOKEN 1
6407 for ac_func in gss_encapsulate_token
6409 ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
6410 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
6418 for ac_func in gss_oid_equal
6420 ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
6421 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
6422 cat >>confdefs.h <<_ACEOF
6423 #define HAVE_GSS_OID_EQUAL 1
6429 LIBS="$cmu_save_LIBS"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6432 $as_echo "disabled" >&6; }
6438 if test "$gssapi" != no; then
6439 if test "$gss_impl" = "heimdal"; then
6441 $as_echo "#define KRB5_HEIMDAL /**/" >>confdefs.h
6445 $as_echo "#define HAVE_GSSAPI /**/" >>confdefs.h
6449 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
6450 if test "x$ac_cv_func_crypt" = xyes; then :
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
6454 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
6455 if ${ac_cv_lib_crypt_crypt+:} false; then :
6456 $as_echo_n "(cached) " >&6
6458 ac_check_lib_save_LIBS=$LIBS
6459 LIBS="-lcrypt $LIBS"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6463 /* Override any GCC internal prototype to avoid an error.
6464 Use char because int might match the return type of a GCC
6465 builtin and then its argument prototype would still apply. */
6478 if ac_fn_c_try_link "$LINENO"; then :
6479 ac_cv_lib_crypt_crypt=yes
6481 ac_cv_lib_crypt_crypt=no
6483 rm -f core conftest.err conftest.$ac_objext \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
6488 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
6489 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
6490 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes
6500 # Check whether --enable-sia was given.
6501 if test "${enable_sia+set}" = set; then :
6502 enableval=$enable_sia; sia=$enableval
6508 if test "$sia" != no; then
6509 if test -f /etc/sia/matrix.conf; then
6511 $as_echo "#define HAVE_SIA /**/" >>confdefs.h
6513 LIB_SIA="-lsecurity -ldb -lm -laud"
6515 as_fn_error $? "No support for SIA found" "$LINENO" 5
6520 # Check whether --enable-auth-sasldb was given.
6521 if test "${enable_auth_sasldb+set}" = set; then :
6522 enableval=$enable_auth_sasldb; authsasldb=$enableval
6527 if test "$authsasldb" != no; then
6528 if test ! -d "../sasldb"; then
6529 echo "ERROR: Cannot build sasldb module outside of the full SASL source tree."
6533 $as_echo "#define AUTH_SASLDB /**/" >>confdefs.h
6537 # Check whether --with-dbpath was given.
6538 if test "${with_dbpath+set}" = set; then :
6539 withval=$with_dbpath; dbpath=$withval
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB path to use" >&5
6545 $as_echo_n "checking DB path to use... " >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbpath" >&5
6547 $as_echo "$dbpath" >&6; }
6549 cat >>confdefs.h <<_ACEOF
6550 #define SASL_DB_PATH "$dbpath"
6554 cmu_save_LIBS="$LIBS"
6556 # Check whether --with-dblib was given.
6557 if test "${with_dblib+set}" = set; then :
6558 withval=$with_dblib; dblib=$withval
6566 # Check whether --with-bdb-libdir was given.
6567 if test "${with_bdb_libdir+set}" = set; then :
6568 withval=$with_bdb_libdir; with_bdb_lib=$withval
6570 test "${with_bdb_lib+set}" = set || with_bdb_lib=none
6574 # Check whether --with-bdb-incdir was given.
6575 if test "${with_bdb_incdir+set}" = set; then :
6576 withval=$with_bdb_incdir; with_bdb_inc=$withval
6578 test "${with_bdb_inc+set}" = set || with_bdb_inc=none
6590 cmu_save_CPPFLAGS=$CPPFLAGS
6592 if test -d $with_bdb_inc; then
6593 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6594 BDB_INCADD="-I$with_bdb_inc"
6599 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
6600 if test "x$ac_cv_header_db_h" = xyes; then :
6602 BDB_SAVE_LDFLAGS=$LDFLAGS
6604 if test -d $with_bdb_lib; then
6606 # this is CMU ADD LIBPATH TO
6607 if test "$andrew_runpath_switch" = "none" ; then
6608 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6610 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6614 # this is CMU ADD LIBPATH TO
6615 if test "$andrew_runpath_switch" = "none" ; then
6616 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6618 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6626 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
6628 LIBS="$saved_LIBS -l$dbname"
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6635 db_create(NULL, NULL, 0);
6640 if ac_fn_c_try_link "$LINENO"; then :
6641 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 if test "$dblib" = "berkeley"; then break; fi
6649 if test "$dblib" = "no"; then
6650 LIBS="$saved_LIBS -ldb"
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6657 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6662 if ac_fn_c_try_link "$LINENO"; then :
6663 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6667 rm -f core conftest.err conftest.$ac_objext \
6668 conftest$ac_exeext conftest.$ac_ext
6672 LDFLAGS=$BDB_SAVE_LDFLAGS
6680 CPPFLAGS=$cmu_save_CPPFLAGS
6682 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
6683 SASL_DB_INC=$BDB_INCADD
6684 SASL_DB_LIB="${BDB_LIBADD}"
6688 # Check whether --with-gdbm was given.
6689 if test "${with_gdbm+set}" = set; then :
6690 withval=$with_gdbm; with_gdbm="${withval}"
6694 case "$with_gdbm" in
6696 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
6697 if test "x$ac_cv_header_gdbm_h" = xyes; then :
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
6700 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
6701 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 ac_check_lib_save_LIBS=$LIBS
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6709 /* Override any GCC internal prototype to avoid an error.
6710 Use char because int might match the return type of a GCC
6711 builtin and then its argument prototype would still apply. */
6719 return gdbm_open ();
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 ac_cv_lib_gdbm_gdbm_open=yes
6727 ac_cv_lib_gdbm_gdbm_open=no
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 LIBS=$ac_check_lib_save_LIBS
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
6734 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
6735 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
6736 SASL_DB_LIB="-lgdbm"
6748 if test -d $with_gdbm; then
6749 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include"
6750 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib"
6751 SASL_DB_LIB="-lgdbm"
6758 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
6759 if test "x$ac_cv_header_ndbm_h" = xyes; then :
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
6762 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
6763 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 ac_check_lib_save_LIBS=$LIBS
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6771 /* Override any GCC internal prototype to avoid an error.
6772 Use char because int might match the return type of a GCC
6773 builtin and then its argument prototype would still apply. */
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 ac_cv_lib_ndbm_dbm_open=yes
6789 ac_cv_lib_ndbm_dbm_open=no
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 LIBS=$ac_check_lib_save_LIBS
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
6796 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
6797 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
6798 SASL_DB_LIB="-lndbm"
6801 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
6802 if test "x$ac_cv_func_dbm_open" = xyes; then :
6820 cmu_save_CPPFLAGS=$CPPFLAGS
6822 if test -d $with_bdb_inc; then
6823 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc"
6824 BDB_INCADD="-I$with_bdb_inc"
6829 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
6830 if test "x$ac_cv_header_db_h" = xyes; then :
6832 BDB_SAVE_LDFLAGS=$LDFLAGS
6834 if test -d $with_bdb_lib; then
6836 # this is CMU ADD LIBPATH TO
6837 if test "$andrew_runpath_switch" = "none" ; then
6838 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}"
6840 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_runpath_switch$with_bdb_lib"
6844 # this is CMU ADD LIBPATH TO
6845 if test "$andrew_runpath_switch" = "none" ; then
6846 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}"
6848 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib"
6856 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
6858 LIBS="$saved_LIBS -l$dbname"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6865 db_create(NULL, NULL, 0);
6870 if ac_fn_c_try_link "$LINENO"; then :
6871 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db
6875 rm -f core conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext conftest.$ac_ext
6877 if test "$dblib" = "berkeley"; then break; fi
6879 if test "$dblib" = "no"; then
6880 LIBS="$saved_LIBS -ldb"
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6887 db_open(NULL, 0, 0, 0, NULL, NULL, NULL);
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6902 LDFLAGS=$BDB_SAVE_LDFLAGS
6910 CPPFLAGS=$cmu_save_CPPFLAGS
6912 if test "$dblib" = no; then
6913 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
6914 if test "x$ac_cv_header_ndbm_h" = xyes; then :
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lndbm" >&5
6917 $as_echo_n "checking for dbm_open in -lndbm... " >&6; }
6918 if ${ac_cv_lib_ndbm_dbm_open+:} false; then :
6919 $as_echo_n "(cached) " >&6
6921 ac_check_lib_save_LIBS=$LIBS
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6926 /* Override any GCC internal prototype to avoid an error.
6927 Use char because int might match the return type of a GCC
6928 builtin and then its argument prototype would still apply. */
6941 if ac_fn_c_try_link "$LINENO"; then :
6942 ac_cv_lib_ndbm_dbm_open=yes
6944 ac_cv_lib_ndbm_dbm_open=no
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_open" >&5
6951 $as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; }
6952 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then :
6953 dblib="ndbm"; SASL_DB_LIB="-lndbm"
6963 if test "$dblib" = "weird"; then
6964 ac_fn_c_check_func "$LINENO" "dbm_open" "ac_cv_func_dbm_open"
6965 if test "x$ac_cv_func_dbm_open" = xyes; then :
6973 if test "$dblib" = no; then
6974 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
6975 if test "x$ac_cv_header_gdbm_h" = xyes; then :
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
6978 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
6979 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 ac_check_lib_save_LIBS=$LIBS
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6987 /* Override any GCC internal prototype to avoid an error.
6988 Use char because int might match the return type of a GCC
6989 builtin and then its argument prototype would still apply. */
6997 return gdbm_open ();
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 ac_cv_lib_gdbm_gdbm_open=yes
7005 ac_cv_lib_gdbm_gdbm_open=no
7007 rm -f core conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 LIBS=$ac_check_lib_save_LIBS
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
7012 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
7013 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
7015 SASL_DB_LIB="-lgdbm"
7027 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}"
7028 SASL_DB_INC=$BDB_INCADD
7029 SASL_DB_LIB="${BDB_LIBADD}"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bad DB library implementation specified;" >&5
7038 $as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;}
7039 as_fn_error $? "Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" "$LINENO" 5
7043 LIBS="$cmu_save_LIBS"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DB library to use" >&5
7046 $as_echo_n "checking DB library to use... " >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dblib" >&5
7048 $as_echo "$dblib" >&6; }
7050 SASL_DB_BACKEND="db_${dblib}.lo"
7051 SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o"
7052 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_${dblib}.c ../sasldb/allockey.c"
7053 SASL_DB_UTILS="saslpasswd2 sasldblistusers2"
7054 SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8"
7058 SASL_MECHS="$SASL_MECHS libsasldb.la"
7060 $as_echo "#define SASL_GDBM /**/" >>confdefs.h
7064 SASL_MECHS="$SASL_MECHS libsasldb.la"
7066 $as_echo "#define SASL_NDBM /**/" >>confdefs.h
7070 SASL_MECHS="$SASL_MECHS libsasldb.la"
7072 $as_echo "#define SASL_BERKELEYDB /**/" >>confdefs.h
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling SASL authentication database support" >&5
7077 $as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;}
7078 SASL_DB_BACKEND="db_none.lo"
7079 SASL_DB_BACKEND_STATIC="db_none.o"
7080 SASL_DB_BACKEND_STATIC_SRCS="../sasldb/db_none.c"
7087 if test "$enable_static" = yes; then
7088 if test "$dblib" != "none"; then
7089 SASL_STATIC_SRCS="$SASL_STATIC_SRCS ../plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS"
7090 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC"
7092 $as_echo "#define STATIC_SASLDB /**/" >>confdefs.h
7095 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC"
7096 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS"
7107 SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al"
7110 # Check whether --enable-httpform was given.
7111 if test "${enable_httpform+set}" = set; then :
7112 enableval=$enable_httpform; httpform=$enableval
7117 if test "$httpform" != no; then
7119 $as_echo "#define HAVE_HTTPFORM /**/" >>confdefs.h
7124 # Check whether --with-pam was given.
7125 if test "${with_pam+set}" = set; then :
7126 withval=$with_pam; with_pam=$withval
7131 if test "$with_pam" != no; then
7132 if test -d $with_pam; then
7133 CPPFLAGS="$CPPFLAGS -I${with_pam}/include"
7134 LDFLAGS="$LDFLAGS -L${with_pam}/lib"
7136 cmu_save_LIBS="$LIBS"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
7138 $as_echo_n "checking for pam_start in -lpam... " >&6; }
7139 if ${ac_cv_lib_pam_pam_start+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 ac_check_lib_save_LIBS=$LIBS
7143 LIBS="-lpam $SASL_DL_LIB $LIBS"
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7157 return pam_start ();
7162 if ac_fn_c_try_link "$LINENO"; then :
7163 ac_cv_lib_pam_pam_start=yes
7165 ac_cv_lib_pam_pam_start=no
7167 rm -f core conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7169 LIBS=$ac_check_lib_save_LIBS
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
7172 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
7173 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
7175 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
7176 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
7187 LIBS="$cmu_save_LIBS"
7191 # Check whether --with-ipctype was given.
7192 if test "${with_ipctype+set}" = set; then :
7193 withval=$with_ipctype; with_ipctype=$withval
7198 MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o"
7200 if test "$with_ipctype" = "doors"; then
7202 $as_echo "#define USE_DOORS /**/" >>confdefs.h
7205 $as_echo "#define SASLAUTHD_THREADED /**/" >>confdefs.h
7207 LIBS="$LIBS -ldoor -lpthread"
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAM support" >&5
7211 $as_echo_n "checking for PAM support... " >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7213 $as_echo "$with_pam" >&6; }
7215 if test "$with_pam" != no; then
7217 $as_echo "#define HAVE_PAM /**/" >>confdefs.h
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
7224 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
7225 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
7226 $as_echo_n "(cached) " >&6
7228 ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-lresolv $LIBS"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7243 return inet_aton ();
7248 if ac_fn_c_try_link "$LINENO"; then :
7249 ac_cv_lib_resolv_inet_aton=yes
7251 ac_cv_lib_resolv_inet_aton=no
7253 rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
7258 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
7259 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
7260 cat >>confdefs.h <<_ACEOF
7261 #define HAVE_LIBRESOLV 1
7264 LIBS="-lresolv $LIBS"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to include LDAP support" >&5
7270 $as_echo_n "checking to include LDAP support... " >&6; }
7272 # Check whether --with-ldap was given.
7273 if test "${with_ldap+set}" = set; then :
7274 withval=$with_ldap; with_ldap=$withval
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7280 $as_echo "$with_ldap" >&6; }
7282 if test -d $with_ldap; then
7283 CPPFLAGS="$CPPFLAGS -I${with_ldap}/include"
7285 # this is CMU ADD LIBPATH
7286 if test "$andrew_runpath_switch" = "none" ; then
7287 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}"
7289 LDFLAGS="-L${with_ldap}/lib $andrew_runpath_switch${with_ldap}/lib ${LDFLAGS}"
7295 if test "$with_ldap" != no; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
7297 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
7298 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 ac_check_lib_save_LIBS=$LIBS
7302 LIBS="-lldap -llber $LIBS"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7306 /* Override any GCC internal prototype to avoid an error.
7307 Use char because int might match the return type of a GCC
7308 builtin and then its argument prototype would still apply. */
7312 char ldap_initialize ();
7316 return ldap_initialize ();
7321 if ac_fn_c_try_link "$LINENO"; then :
7322 ac_cv_lib_ldap_ldap_initialize=yes
7324 ac_cv_lib_ldap_ldap_initialize=no
7326 rm -f core conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7328 LIBS=$ac_check_lib_save_LIBS
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
7331 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
7332 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
7334 $as_echo "#define HAVE_LDAP /**/" >>confdefs.h
7336 LDAP_LIBS="-lldap -llber"
7337 if test "$with_openssl" != "no"; then
7338 LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7348 $as_echo_n "checking for ANSI C header files... " >&6; }
7349 if ${ac_cv_header_stdc+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 ac_cv_header_stdc=yes
7370 ac_cv_header_stdc=no
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 if test $ac_cv_header_stdc = yes; then
7375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 $EGREP "memchr" >/dev/null 2>&1; then :
7385 ac_cv_header_stdc=no
7391 if test $ac_cv_header_stdc = yes; then
7392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399 $EGREP "free" >/dev/null 2>&1; then :
7402 ac_cv_header_stdc=no
7408 if test $ac_cv_header_stdc = yes; then
7409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7410 if test "$cross_compiling" = yes; then :
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7417 #if ((' ' & 0x0FF) == 0x020)
7418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7421 # define ISLOWER(c) \
7422 (('a' <= (c) && (c) <= 'i') \
7423 || ('j' <= (c) && (c) <= 'r') \
7424 || ('s' <= (c) && (c) <= 'z'))
7425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7433 for (i = 0; i < 256; i++)
7434 if (XOR (islower (i), ISLOWER (i))
7435 || toupper (i) != TOUPPER (i))
7440 if ac_fn_c_try_run "$LINENO"; then :
7443 ac_cv_header_stdc=no
7445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7446 conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7452 $as_echo "$ac_cv_header_stdc" >&6; }
7453 if test $ac_cv_header_stdc = yes; then
7455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7460 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7461 if ${ac_cv_header_sys_wait_h+:} false; then :
7462 $as_echo_n "(cached) " >&6
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 #include <sys/wait.h>
7469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7480 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_cv_header_sys_wait_h=yes
7488 ac_cv_header_sys_wait_h=no
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7493 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7494 if test $ac_cv_header_sys_wait_h = yes; then
7496 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7501 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7502 if ${ac_cv_header_time+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7508 #include <sys/time.h>
7514 if ((struct tm *) 0)
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 ac_cv_header_time=yes
7523 ac_cv_header_time=no
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7528 $as_echo "$ac_cv_header_time" >&6; }
7529 if test $ac_cv_header_time = yes; then
7531 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7535 for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h
7537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7540 cat >>confdefs.h <<_ACEOF
7541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7550 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7551 if ${ac_cv_c_const+:} false; then :
7552 $as_echo_n "(cached) " >&6
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7560 /* FIXME: Include the comments suggested by Paul. */
7562 /* Ultrix mips cc rejects this. */
7563 typedef int charset[2];
7565 /* SunOS 4.1.1 cc rejects this. */
7566 char const *const *pcpcc;
7568 /* NEC SVR4.0.2 mips cc rejects this. */
7569 struct point {int x, y;};
7570 static struct point const zero = {0,0};
7571 /* AIX XL C 1.02.0.0 rejects this.
7572 It does not let you subtract one const X* pointer from another in
7573 an arm of an if-expression whose if-part is not a constant
7575 const char *g = "string";
7576 pcpcc = &g + (g ? g-g : 0);
7577 /* HPUX 7.0 cc rejects these. */
7579 ppc = (char**) pcpcc;
7580 pcpcc = (char const *const *) ppc;
7581 { /* SCO 3.2v4 cc rejects this. */
7583 char const *s = 0 ? (char *) 0 : (char const *) 0;
7588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7590 const int *foo = &x[0];
7593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7594 typedef const int *iptr;
7598 { /* AIX XL C 1.02.0.0 rejects this saying
7599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7600 struct s { int j; const int *ap[3]; };
7601 struct s *b; b->j = 5;
7603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7607 return !cs[0] && !zero.x;
7614 if ac_fn_c_try_compile "$LINENO"; then :
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7622 $as_echo "$ac_cv_c_const" >&6; }
7623 if test $ac_cv_c_const = no; then
7625 $as_echo "#define const /**/" >>confdefs.h
7629 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7630 if test "x$ac_cv_type_pid_t" = xyes; then :
7634 cat >>confdefs.h <<_ACEOF
7641 LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
7645 $as_echo_n "checking whether $CC implements __func__... " >&6; }
7646 if ${have_func+:} false; then :
7647 $as_echo_n "(cached) " >&6
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7655 printf("%s", __func__);
7660 if ac_fn_c_try_link "$LINENO"; then :
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_func" >&5
7670 $as_echo "$have_func" >&6; }
7671 if test "$have_func" = yes; then
7673 $as_echo "#define HAVE_FUNC /**/" >>confdefs.h
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __PRETTY_FUNCTION__" >&5
7677 $as_echo_n "checking whether $CC implements __PRETTY_FUNCTION__... " >&6; }
7678 if ${have_pretty_function+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7687 printf("%s", __PRETTY_FUNCTION__);
7692 if ac_fn_c_try_link "$LINENO"; then :
7693 have_pretty_function=yes
7695 have_pretty_function=no
7697 rm -f core conftest.err conftest.$ac_objext \
7698 conftest$ac_exeext conftest.$ac_ext
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pretty_function" >&5
7702 $as_echo "$have_pretty_function" >&6; }
7703 if test "$have_pretty_function" = yes; then
7705 $as_echo "#define HAVE_PRETTY_FUNCTION /**/" >>confdefs.h
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
7709 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
7710 if ${have_function+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7719 printf("%s", __FUNCTION__);
7724 if ac_fn_c_try_link "$LINENO"; then :
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_function" >&5
7734 $as_echo "$have_function" >&6; }
7735 if test "$have_function" = yes; then
7737 $as_echo "#define HAVE_FUNCTION /**/" >>confdefs.h
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7744 $as_echo_n "checking return type of signal handlers... " >&6; }
7745 if ${ac_cv_type_signal+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 #include <sys/types.h>
7756 return *(signal (0, 0)) (0) == 1;
7761 if ac_fn_c_try_compile "$LINENO"; then :
7762 ac_cv_type_signal=int
7764 ac_cv_type_signal=void
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7769 $as_echo "$ac_cv_type_signal" >&6; }
7771 cat >>confdefs.h <<_ACEOF
7772 #define RETSIGTYPE $ac_cv_type_signal
7776 for ac_func in gethostname mkdir socket strdup
7778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7781 cat >>confdefs.h <<_ACEOF
7782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7788 for ac_func in getspnam getuserpw
7790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7792 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7793 cat >>confdefs.h <<_ACEOF
7794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7800 for ac_func in strlcat strlcpy
7802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7805 cat >>confdefs.h <<_ACEOF
7806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7813 if test $ac_cv_func_getspnam = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwnam_r/getspnam_r take 5 arguments" >&5
7815 $as_echo_n "checking if getpwnam_r/getspnam_r take 5 arguments... " >&6; }
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7819 #include <sys/types.h>
7828 struct passwd pwbuf;
7830 (void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw);
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7840 $as_echo "#define GETXXNAM_R_5ARG 1" >>confdefs.h
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 sasl_cv_getaddrinfo=no
7853 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7854 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
7855 ac_cv_lib_socket_getaddrinfo=no
7856 ac_cv_lib_inet6_getaddrinfo=no
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
7860 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
7861 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
7862 $as_echo_n "(cached) " >&6
7864 ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-lsocket $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7875 char getaddrinfo ();
7879 return getaddrinfo ();
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_socket_getaddrinfo=yes
7887 ac_cv_lib_socket_getaddrinfo=no
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
7894 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
7895 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
7896 LIBS="$LIBS -lsocket"
7897 ac_cv_lib_inet6_getaddrinfo=no
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
7901 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
7902 if ${ipv6_cv_dir+:} false; then :
7903 $as_echo_n "(cached) " >&6
7905 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
7906 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
7912 $as_echo "$ipv6_cv_dir" >&6; }
7913 if test $ipv6_cv_dir = no; then
7914 ac_cv_lib_inet6_getaddrinfo=no
7916 if test x$ipv6_libinet6 = x; then
7918 SAVELDFLAGS="$LDFLAGS"
7919 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
7922 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
7923 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-linet6 $LIBS"
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7931 /* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7937 char getaddrinfo ();
7941 return getaddrinfo ();
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 ac_cv_lib_inet6_getaddrinfo=yes
7949 ac_cv_lib_inet6_getaddrinfo=no
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
7956 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
7957 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
7958 if test $ipv6_libinet6 = no; then
7960 LIBS="$LIBS -linet6"
7963 if test $ipv6_libinet6 = no; then
7964 LDFLAGS="$SAVELDFLAGS"
7970 ipv6_cv_getaddrinfo=no
7971 if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
7972 -o $ac_cv_lib_inet6_getaddrinfo = yes
7974 ipv6_cv_getaddrinfo=yes
7976 if test $ipv6_cv_getaddrinfo = no; then
7977 if test getaddrinfo = getaddrinfo; then
7978 for ipv6_cv_pfx in o n; do
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
7986 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
7987 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
7988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7995 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
7997 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
7999 ipv6_cv_getaddrinfo=yes
8005 if test $ipv6_cv_getaddrinfo = yes; then
8007 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
8010 sasl_cv_getaddrinfo=yes
8012 if test $sasl_cv_getaddrinfo = yes; then
8013 case " $LIBOBJS " in
8014 *" getaddrinfo.$ac_objext "* ) ;;
8015 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
8022 sasl_cv_getnameinfo=no
8024 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
8025 if test "x$ac_cv_func_getnameinfo" = xyes; then :
8026 ac_cv_lib_socket_getnameinfo=no
8027 ac_cv_lib_inet6_getnameinfo=no
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
8031 $as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
8032 if ${ac_cv_lib_socket_getnameinfo+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lsocket $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8046 char getnameinfo ();
8050 return getnameinfo ();
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 ac_cv_lib_socket_getnameinfo=yes
8058 ac_cv_lib_socket_getnameinfo=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
8065 $as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
8066 if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
8067 LIBS="$LIBS -lsocket"
8068 ac_cv_lib_inet6_getnameinfo=no
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
8072 $as_echo_n "checking whether your system has IPv6 directory... " >&6; }
8073 if ${ipv6_cv_dir+:} false; then :
8074 $as_echo_n "(cached) " >&6
8076 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
8077 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
8083 $as_echo "$ipv6_cv_dir" >&6; }
8084 if test $ipv6_cv_dir = no; then
8085 ac_cv_lib_inet6_getnameinfo=no
8087 if test x$ipv6_libinet6 = x; then
8089 SAVELDFLAGS="$LDFLAGS"
8090 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
8093 $as_echo_n "checking for getnameinfo in -linet6... " >&6; }
8094 if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
8095 $as_echo_n "(cached) " >&6
8097 ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-linet6 $LIBS"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8102 /* Override any GCC internal prototype to avoid an error.
8103 Use char because int might match the return type of a GCC
8104 builtin and then its argument prototype would still apply. */
8108 char getnameinfo ();
8112 return getnameinfo ();
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 ac_cv_lib_inet6_getnameinfo=yes
8120 ac_cv_lib_inet6_getnameinfo=no
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 LIBS=$ac_check_lib_save_LIBS
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
8127 $as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
8128 if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
8129 if test $ipv6_libinet6 = no; then
8131 LIBS="$LIBS -linet6"
8134 if test $ipv6_libinet6 = no; then
8135 LDFLAGS="$SAVELDFLAGS"
8141 ipv6_cv_getnameinfo=no
8142 if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
8143 -o $ac_cv_lib_inet6_getnameinfo = yes
8145 ipv6_cv_getnameinfo=yes
8147 if test $ipv6_cv_getnameinfo = no; then
8148 if test getnameinfo = getaddrinfo; then
8149 for ipv6_cv_pfx in o n; do
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
8157 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
8158 ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
8159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8166 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
8168 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
8170 ipv6_cv_getnameinfo=yes
8176 if test $ipv6_cv_getnameinfo = yes; then
8178 $as_echo "#define HAVE_GETNAMEINFO /**/" >>confdefs.h
8181 sasl_cv_getnameinfo=yes
8183 if test $sasl_cv_getnameinfo = yes; then
8184 case " $LIBOBJS " in
8185 *" getnameinfo.$ac_objext "* ) ;;
8186 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have ss_family in struct sockaddr_storage" >&5
8194 $as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; }
8195 if ${ipv6_cv_ss_family+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <sys/types.h>
8201 #include <sys/socket.h>
8205 struct sockaddr_storage ss; int i = ss.ss_family;
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 ipv6_cv_ss_family=yes
8213 ipv6_cv_ss_family=no
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 if test $ipv6_cv_ss_family = yes; then
8219 $as_echo "#define HAVE_SS_FAMILY /**/" >>confdefs.h
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_ss_family" >&5
8225 $as_echo "$ipv6_cv_ss_family" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
8228 $as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
8229 if ${ipv6_cv_sa_len+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <sys/socket.h>
8239 struct sockaddr sa; int i = sa.sa_len;
8244 if ac_fn_c_try_compile "$LINENO"; then :
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 if test $ipv6_cv_sa_len = yes; then
8253 $as_echo "#define HAVE_SOCKADDR_SA_LEN /**/" >>confdefs.h
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_sa_len" >&5
8259 $as_echo "$ipv6_cv_sa_len" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
8262 $as_echo_n "checking for socklen_t... " >&6; }
8263 if ${ipv6_cv_socklen_t+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <sys/types.h>
8269 #include <sys/socket.h>
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 ipv6_cv_socklen_t=yes
8281 ipv6_cv_socklen_t=no
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8286 if test $ipv6_cv_socklen_t = yes; then
8288 $as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_socklen_t" >&5
8294 $as_echo "$ipv6_cv_socklen_t" >&6; }
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 #include <sys/socket.h>
8301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8302 $EGREP "sockaddr_storage" >/dev/null 2>&1; then :
8304 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE /**/" >>confdefs.h
8314 ac_config_headers="$ac_config_headers saslauthd.h"
8317 ac_config_files="$ac_config_files Makefile"
8319 cat >confcache <<\_ACEOF
8320 # This file is a shell script that caches the results of configure
8321 # tests run on this system so they can be shared between configure
8322 # scripts and configure runs, see configure's option --config-cache.
8323 # It is not useful on other systems. If it contains results you don't
8324 # want to keep, you may remove or edit it.
8326 # config.status only pays attention to the cache file if you give it
8327 # the --recheck option to rerun configure.
8329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8335 # The following way of writing the cache mishandles newlines in values,
8336 # but we know of no workaround that is simple, portable, and efficient.
8337 # So, we kill variables containing newlines.
8338 # Ultrix sh set writes to stderr and can't be redirected directly,
8339 # and sets the high bit in the cache file unless we assign to the vars.
8341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8342 eval ac_val=\$$ac_var
8346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8350 _ | IFS | as_nl) ;; #(
8351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8352 *) { eval $ac_var=; unset $ac_var;} ;;
8358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8359 *${as_nl}ac_space=\ *)
8360 # `set' does not quote correctly, so add quotes: double-quote
8361 # substitution turns \\\\ into \\, and sed turns \\ into \.
8364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8367 # `set' quotes correctly as required by POSIX, so do not add quotes.
8368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8382 if test -w "$cache_file"; then
8383 if test "x$cache_file" != "x/dev/null"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8385 $as_echo "$as_me: updating cache $cache_file" >&6;}
8386 if test ! -f "$cache_file" || test -h "$cache_file"; then
8387 cat confcache >"$cache_file"
8389 case $cache_file in #(
8391 mv -f confcache "$cache_file"$$ &&
8392 mv -f "$cache_file"$$ "$cache_file" ;; #(
8394 mv -f confcache "$cache_file" ;;
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8400 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8406 # Let make expand exec_prefix.
8407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8409 DEFS=-DHAVE_CONFIG_H
8414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8415 # 1. Remove the extension, and $U if already installed.
8416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8419 # will be set to the directory where LIBOBJS objects are built.
8420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8425 LTLIBOBJS=$ac_ltlibobjs
8428 if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then
8429 as_fn_error $? "conditional \"SASLAUTHD\" was never defined.
8430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8433 as_fn_error $? "conditional \"AMDEP\" was never defined.
8434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8436 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8437 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8441 : "${CONFIG_STATUS=./config.status}"
8443 ac_clean_files_save=$ac_clean_files
8444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8448 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8450 # Generated by $as_me.
8451 # Run this file to recreate the current configuration.
8452 # Compiler output produced by configure, useful for debugging
8453 # configure, is in config.log if it exists.
8459 SHELL=\${CONFIG_SHELL-$SHELL}
8462 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8463 ## -------------------- ##
8464 ## M4sh Initialization. ##
8465 ## -------------------- ##
8467 # Be more Bourne compatible
8468 DUALCASE=1; export DUALCASE # for MKS sh
8469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8473 # is contrary to our usage. Disable this feature.
8474 alias -g '${1+"$@"}'='"$@"'
8475 setopt NO_GLOB_SUBST
8477 case `(set -o) 2>/dev/null` in #(
8489 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8490 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8493 # Prefer a ksh shell builtin over an external printf program on Solaris,
8494 # but without wasting forks for bash or zsh.
8495 if test -z "$BASH_VERSION$ZSH_VERSION" \
8496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8497 as_echo='print -r --'
8498 as_echo_n='print -rn --'
8499 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8500 as_echo='printf %s\n'
8501 as_echo_n='printf %s'
8503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8505 as_echo_n='/usr/ucb/echo -n'
8507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8508 as_echo_n_body='eval
8512 expr "X$arg" : "X\\(.*\\)$as_nl";
8513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8517 export as_echo_n_body
8518 as_echo_n='sh -c $as_echo_n_body as_echo'
8521 as_echo='sh -c $as_echo_body as_echo'
8524 # The user is always right.
8525 if test "${PATH_SEPARATOR+set}" != set; then
8527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8535 # We need space, tab and new line, in precisely that order. Quoting is
8536 # there to prevent editors from complaining about space-tab.
8537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8538 # splitting by setting IFS to empty value.)
8541 # Find who we are. Look in the path if we contain no directory separator.
8544 *[\\/]* ) as_myself=$0 ;;
8545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir=.
8550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8556 # We did not find ourselves, most probably we were run as `sh COMMAND'
8557 # in which case we are not to be found in the path.
8558 if test "x$as_myself" = x; then
8561 if test ! -f "$as_myself"; then
8562 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8566 # Unset variables that we do not need and which cause bugs (e.g. in
8567 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8568 # suppresses any "Segmentation fault" message there. '((' could
8569 # trigger a bug in pdksh 5.2.14.
8570 for as_var in BASH_ENV ENV MAIL MAILPATH
8571 do eval test x\${$as_var+set} = xset \
8572 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8588 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8589 # ----------------------------------------
8590 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8591 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8592 # script with STATUS, using 1 if that was 0.
8595 as_status=$1; test $as_status -eq 0 && as_status=1
8597 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8598 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8600 $as_echo "$as_me: error: $2" >&2
8601 as_fn_exit $as_status
8605 # as_fn_set_status STATUS
8606 # -----------------------
8607 # Set $? to STATUS, without forking.
8611 } # as_fn_set_status
8615 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8625 # Portably unset VAR.
8628 { eval $1=; unset $1;}
8630 as_unset=as_fn_unset
8631 # as_fn_append VAR VALUE
8632 # ----------------------
8633 # Append the text in VALUE to the end of the definition contained in VAR. Take
8634 # advantage of any shell optimizations that allow amortized linear growth over
8635 # repeated appends, instead of the typical quadratic growth present in naive
8637 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8638 eval 'as_fn_append ()
8649 # as_fn_arith ARG...
8650 # ------------------
8651 # Perform arithmetic evaluation on the ARGs, and store the result in the
8652 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8653 # must be portable across $(()) and expr.
8654 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8655 eval 'as_fn_arith ()
8662 as_val=`expr "$@" || test $? -eq 1`
8667 if expr a : '\(a\)' >/dev/null 2>&1 &&
8668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8675 as_basename=basename
8680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8686 as_me=`$as_basename -- "$0" ||
8687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8688 X"$0" : 'X\(//\)$' \| \
8689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8691 sed '/^.*\/\([^/][^/]*\)\/*$/{
8705 # Avoid depending upon Character Ranges.
8706 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8707 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8708 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8709 as_cr_digits='0123456789'
8710 as_cr_alnum=$as_cr_Letters$as_cr_digits
8712 ECHO_C= ECHO_N= ECHO_T=
8713 case `echo -n x` in #(((((
8715 case `echo 'xy\c'` in
8716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8718 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8725 rm -f conf$$ conf$$.exe conf$$.file
8726 if test -d conf$$.dir; then
8727 rm -f conf$$.dir/conf$$.file
8730 mkdir conf$$.dir 2>/dev/null
8732 if (echo >conf$$.file) 2>/dev/null; then
8733 if ln -s conf$$.file conf$$ 2>/dev/null; then
8735 # ... but there are two gotchas:
8736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8738 # In both cases, we have to default to `cp -p'.
8739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8741 elif ln conf$$.file conf$$ 2>/dev/null; then
8749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8750 rmdir conf$$.dir 2>/dev/null
8755 # Create "$as_dir" as a directory, including parents if necessary.
8760 -*) as_dir=./$as_dir;;
8762 test -d "$as_dir" || eval $as_mkdir_p || {
8766 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8767 *) as_qdir=$as_dir;;
8769 as_dirs="'$as_qdir' $as_dirs"
8770 as_dir=`$as_dirname -- "$as_dir" ||
8771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8772 X"$as_dir" : 'X\(//\)[^/]' \| \
8773 X"$as_dir" : 'X\(//\)$' \| \
8774 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8775 $as_echo X"$as_dir" |
8776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8793 test -d "$as_dir" && break
8795 test -z "$as_dirs" || eval "mkdir $as_dirs"
8796 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8800 if mkdir -p . 2>/dev/null; then
8801 as_mkdir_p='mkdir -p "$as_dir"'
8803 test -d ./-p && rmdir ./-p
8807 if test -x / >/dev/null 2>&1; then
8810 if ls -dL / >/dev/null 2>&1; then
8817 if test -d "$1"; then
8823 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8824 ???[sx]*):;;*)false;;esac;fi
8828 as_executable_p=$as_test_x
8830 # Sed expression to map a string onto a valid CPP name.
8831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8833 # Sed expression to map a string onto a valid variable name.
8834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8838 ## ----------------------------------- ##
8839 ## Main body of $CONFIG_STATUS script. ##
8840 ## ----------------------------------- ##
8842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8845 # Save the log message, to keep $0 and so on meaningful, and to
8846 # report actual input values of CONFIG_FILES etc. instead of their
8847 # values after options handling.
8849 This file was extended by $as_me, which was
8850 generated by GNU Autoconf 2.68. Invocation command line was
8852 CONFIG_FILES = $CONFIG_FILES
8853 CONFIG_HEADERS = $CONFIG_HEADERS
8854 CONFIG_LINKS = $CONFIG_LINKS
8855 CONFIG_COMMANDS = $CONFIG_COMMANDS
8858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8863 case $ac_config_files in *"
8864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8867 case $ac_config_headers in *"
8868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8873 # Files that config.status was made for.
8874 config_files="$ac_config_files"
8875 config_headers="$ac_config_headers"
8876 config_commands="$ac_config_commands"
8880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8882 \`$as_me' instantiates files and other configuration actions
8883 from templates according to the current configuration. Unless the files
8884 and actions are specified as TAGs, all are instantiated by default.
8886 Usage: $0 [OPTION]... [TAG]...
8888 -h, --help print this help, then exit
8889 -V, --version print version number and configuration settings, then exit
8890 --config print configuration, then exit
8891 -q, --quiet, --silent
8892 do not print progress messages
8893 -d, --debug don't remove temporary files
8894 --recheck update $as_me by reconfiguring in the same conditions
8895 --file=FILE[:TEMPLATE]
8896 instantiate the configuration file FILE
8897 --header=FILE[:TEMPLATE]
8898 instantiate the configuration header FILE
8900 Configuration files:
8903 Configuration headers:
8906 Configuration commands:
8909 Report bugs to the package provider."
8912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8916 configured by $0, generated by GNU Autoconf 2.68,
8917 with options \\"\$ac_cs_config\\"
8919 Copyright (C) 2010 Free Software Foundation, Inc.
8920 This config.status script is free software; the Free Software Foundation
8921 gives unlimited permission to copy, distribute and modify it."
8928 test -n "\$AWK" || AWK=awk
8931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8932 # The default lists apply if the user does not specify any file.
8938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8955 # Handling of the options.
8956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8959 $as_echo "$ac_cs_version"; exit ;;
8960 --config | --confi | --conf | --con | --co | --c )
8961 $as_echo "$ac_cs_config"; exit ;;
8962 --debug | --debu | --deb | --de | --d | -d )
8964 --file | --fil | --fi | --f )
8967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8968 '') as_fn_error $? "missing file argument" ;;
8970 as_fn_append CONFIG_FILES " '$ac_optarg'"
8971 ac_need_defaults=false;;
8972 --header | --heade | --head | --hea )
8975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8977 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8978 ac_need_defaults=false;;
8980 # Conflict between --help and --header
8981 as_fn_error $? "ambiguous option: \`$1'
8982 Try \`$0 --help' for more information.";;
8983 --help | --hel | -h )
8984 $as_echo "$ac_cs_usage"; exit ;;
8985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8990 -*) as_fn_error $? "unrecognized option: \`$1'
8991 Try \`$0 --help' for more information." ;;
8993 *) as_fn_append ac_config_targets " $1"
8994 ac_need_defaults=false ;;
9000 ac_configure_extra_args=
9002 if $ac_cs_silent; then
9004 ac_configure_extra_args="$ac_configure_extra_args --silent"
9008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9009 if \$ac_cs_recheck; then
9010 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9012 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9013 CONFIG_SHELL='$SHELL'
9019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9024 ## Running $as_me. ##
9030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9034 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9040 # Handling of arguments.
9041 for ac_config_target in $ac_config_targets
9043 case $ac_config_target in
9044 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9045 "saslauthd.h") CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;;
9046 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9048 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9053 # If the user did not use the arguments to specify the items to instantiate,
9054 # then the envvar interface is used. Set only those that are not.
9055 # We use the long form for the default assignment because of an extremely
9056 # bizarre bug on SunOS 4.1.3.
9057 if $ac_need_defaults; then
9058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9063 # Have a temporary directory for convenience. Make it in the build tree
9064 # simply because there is no reason against having it here, and in addition,
9065 # creating and moving files from /tmp can sometimes cause problems.
9066 # Hook for its removal unless debugging.
9067 # Note that there is a small window in which the directory will not be cleaned:
9068 # after its creation but before its name has been assigned to `$tmp'.
9072 trap 'exit_status=$?
9074 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9076 trap 'as_fn_exit 1' 1 2 13 15
9078 # Create a (secure) tmp directory for tmp files.
9081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9085 tmp=./conf$$-$RANDOM
9086 (umask 077 && mkdir "$tmp")
9087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9090 # Set up the scripts for CONFIG_FILES section.
9091 # No need to generate them if there are no CONFIG_FILES.
9092 # This happens for instance with `./config.status config.h'.
9093 if test -n "$CONFIG_FILES"; then
9096 ac_cr=`echo X | tr X '\015'`
9097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9098 # But we know of no other shell where ac_cr would be empty at this
9099 # point, so we can use a bashism as a fallback.
9100 if test "x$ac_cr" = x; then
9101 eval ac_cr=\$\'\\r\'
9103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9115 echo "cat >conf$$subs.awk <<_ACEOF" &&
9116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9122 for ac_last_try in false false false false false :; do
9123 . ./conf$$subs.sh ||
9124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9127 if test $ac_delim_n = $ac_delim_num; then
9129 elif $ac_last_try; then
9130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9142 s/^/S["/; s/!.*/"]=/
9152 s/\(.\{148\}\)..*/\1/
9154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9166 s/\(.\{148\}\)..*/\1/
9168 s/["\\]/\\&/g; s/^/"/; s/$/"/
9172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9177 ' <conf$$subs.awk | sed '
9182 ' >>$CONFIG_STATUS || ac_write_fail=1
9183 rm -f conf$$subs.awk
9184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9187 for (key in S) S_is_set[key] = 1
9193 nfields = split(line, field, "@")
9195 len = length(field[1])
9196 for (i = 2; i < nfields; i++) {
9198 keylen = length(key)
9199 if (S_is_set[key]) {
9201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9202 len += length(value) + length(field[++i])
9213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9219 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9224 # trailing colons and then remove the whole line if VPATH becomes empty
9225 # (actually we leave an empty line to preserve line numbers).
9226 if test "x$srcdir" = x.; then
9227 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9246 fi # test -n "$CONFIG_FILES"
9248 # Set up the scripts for CONFIG_HEADERS section.
9249 # No need to generate them if there are no CONFIG_HEADERS.
9250 # This happens for instance with `./config.status Makefile'.
9251 if test -n "$CONFIG_HEADERS"; then
9252 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9256 # Transform confdefs.h into an awk script `defines.awk', embedded as
9257 # here-document in config.status, that substitutes the proper values into
9258 # config.h.in to produce config.h.
9260 # Create a delimiter string that does not exist in confdefs.h, to ease
9261 # handling of long lines.
9263 for ac_last_try in false false :; do
9264 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9265 if test -z "$ac_tt"; then
9267 elif $ac_last_try; then
9268 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9274 # For the awk script, D is an array of macro values keyed by name,
9275 # likewise P contains macro parameters if any. Preserve backslash
9276 # newline sequences.
9278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9280 s/.\{148\}/&'"$ac_delim"'/g
9283 s/^[ ]*#[ ]*define[ ][ ]*/ /
9290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9297 D["\1"]=" \3\\\\\\n"\\/p
9299 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9304 s/.\{148\}/&'"$ac_delim"'/g
9309 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9312 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9314 ' <confdefs.h | sed '
9315 s/'"$ac_delim"'/"\\\
9316 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9319 for (key in D) D_is_set[key] = 1
9322 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9324 split(line, arg, " ")
9325 if (arg[1] == "#") {
9329 defundef = substr(arg[1], 2)
9332 split(mac1, mac2, "(") #)
9334 prefix = substr(line, 1, index(line, defundef) - 1)
9335 if (D_is_set[macro]) {
9336 # Preserve the white space surrounding the "#".
9337 print prefix "define", macro P[macro] D[macro]
9340 # Replace #undef with comments. This is necessary, for example,
9341 # in the case of _POSIX_SOURCE, which is predefined and required
9342 # on some systems where configure will not decide to define it.
9343 if (defundef == "undef") {
9344 print "/*", prefix defundef, macro, "*/"
9352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9353 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9354 fi # test -n "$CONFIG_HEADERS"
9357 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9362 :[FHLC]) ac_mode=$ac_tag; continue;;
9364 case $ac_mode$ac_tag in
9366 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9367 :[FH]-) ac_tag=-:-;;
9368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9385 -) ac_f="$ac_tmp/stdin";;
9386 *) # Look for the file first in the build tree, then in the source tree
9387 # (if the path is not absolute). The absolute path cannot be DOS-style,
9388 # because $ac_f cannot contain `:'.
9392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9394 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9396 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9397 as_fn_append ac_file_inputs " '$ac_f'"
9400 # Let's still pretend it is `configure' which instantiates (i.e., don't
9401 # use $as_me), people would be surprised to read:
9402 # /* config.h. Generated by config.status. */
9403 configure_input='Generated from '`
9404 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9406 if test x"$ac_file" != x-; then
9407 configure_input="$ac_file. $configure_input"
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9409 $as_echo "$as_me: creating $ac_file" >&6;}
9411 # Neutralize special characters interpreted by sed in replacement strings.
9412 case $configure_input in #(
9413 *\&* | *\|* | *\\* )
9414 ac_sed_conf_input=`$as_echo "$configure_input" |
9415 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9416 *) ac_sed_conf_input=$configure_input;;
9420 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9426 ac_dir=`$as_dirname -- "$ac_file" ||
9427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428 X"$ac_file" : 'X\(//\)[^/]' \| \
9429 X"$ac_file" : 'X\(//\)$' \| \
9430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9431 $as_echo X"$ac_file" |
9432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9449 as_dir="$ac_dir"; as_fn_mkdir_p
9453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9456 # A ".." for each directory in $ac_dir_suffix.
9457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9458 case $ac_top_builddir_sub in
9459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9463 ac_abs_top_builddir=$ac_pwd
9464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9465 # for backward compatibility:
9466 ac_top_builddir=$ac_top_build_prefix
9469 .) # We are building in place.
9471 ac_top_srcdir=$ac_top_builddir_sub
9472 ac_abs_top_srcdir=$ac_pwd ;;
9473 [\\/]* | ?:[\\/]* ) # Absolute name.
9474 ac_srcdir=$srcdir$ac_dir_suffix;
9475 ac_top_srcdir=$srcdir
9476 ac_abs_top_srcdir=$srcdir ;;
9478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9479 ac_top_srcdir=$ac_top_build_prefix$srcdir
9480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9493 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9497 [\\/$]* | ?:[\\/]* ) ;;
9498 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9503 # If the template does not know about datarootdir, expand it.
9504 # FIXME: This hack should be removed a few years after 2.60.
9505 ac_datarootdir_hack=; ac_datarootdir_seen=
9516 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9517 *datarootdir*) ac_datarootdir_seen=yes;;
9518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9520 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9523 ac_datarootdir_hack='
9524 s&@datadir@&$datadir&g
9525 s&@docdir@&$docdir&g
9526 s&@infodir@&$infodir&g
9527 s&@localedir@&$localedir&g
9528 s&@mandir@&$mandir&g
9529 s&\\\${datarootdir}&$datarootdir&g' ;;
9533 # Neutralize VPATH when `$srcdir' = `.'.
9534 # Shell code in configure.ac might set extrasub.
9535 # FIXME: do we really want to maintain this feature?
9536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9537 ac_sed_extra="$ac_vpsub
9540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9543 s|@configure_input@|$ac_sed_conf_input|;t t
9544 s&@top_builddir@&$ac_top_builddir_sub&;t t
9545 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9546 s&@srcdir@&$ac_srcdir&;t t
9547 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9548 s&@top_srcdir@&$ac_top_srcdir&;t t
9549 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9550 s&@builddir@&$ac_builddir&;t t
9551 s&@abs_builddir@&$ac_abs_builddir&;t t
9552 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9553 s&@INSTALL@&$ac_INSTALL&;t t
9554 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9555 $ac_datarootdir_hack
9557 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9558 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9560 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9561 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9562 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9563 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9565 which seems to be undefined. Please make sure it is defined" >&5
9566 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9567 which seems to be undefined. Please make sure it is defined" >&2;}
9569 rm -f "$ac_tmp/stdin"
9571 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9572 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9580 if test x"$ac_file" != x-; then
9582 $as_echo "/* $configure_input */" \
9583 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9584 } >"$ac_tmp/config.h" \
9585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9586 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9588 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9591 mv "$ac_tmp/config.h" "$ac_file" \
9592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9595 $as_echo "/* $configure_input */" \
9596 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9597 || as_fn_error $? "could not create -" "$LINENO" 5
9599 # Compute "$ac_file"'s index in $config_headers.
9602 for _am_header in $config_headers :; do
9604 $_am_arg | $_am_arg:* )
9607 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9610 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9611 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612 X"$_am_arg" : 'X\(//\)[^/]' \| \
9613 X"$_am_arg" : 'X\(//\)$' \| \
9614 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9615 $as_echo X"$_am_arg" |
9616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9632 s/.*/./; q'`/stamp-h$_am_stamp_count
9635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9636 $as_echo "$as_me: executing $ac_file commands" >&6;}
9641 case $ac_file$ac_mode in
9642 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9643 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9644 # are listed without --file. Let's play safe and only enable the eval
9645 # if we detect the quoting.
9646 case $CONFIG_FILES in
9647 *\'*) eval set x "$CONFIG_FILES" ;;
9648 *) set x $CONFIG_FILES ;;
9653 # Strip MF so we end up with the name of the file.
9654 mf=`echo "$mf" | sed -e 's/:.*$//'`
9655 # Check whether this is an Automake generated Makefile or not.
9656 # We used to match only the files named `Makefile.in', but
9657 # some people rename them; so instead we look at the file content.
9658 # Grep'ing the first line is not enough: some people post-process
9659 # each Makefile.in and add a new line on top of each file to say so.
9660 # Grep'ing the whole file is not good either: AIX grep has a line
9661 # limit of 2048, but all sed's we know have understand at least 4000.
9662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9663 dirpart=`$as_dirname -- "$mf" ||
9664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9665 X"$mf" : 'X\(//\)[^/]' \| \
9666 X"$mf" : 'X\(//\)$' \| \
9667 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9689 # Extract the definition of DEPDIR, am__include, and am__quote
9690 # from the Makefile without running `make'.
9691 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9692 test -z "$DEPDIR" && continue
9693 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9694 test -z "am__include" && continue
9695 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9696 # When using ansi2knr, U may be empty or an underscore; expand it
9697 U=`sed -n 's/^U = //p' < "$mf"`
9698 # Find all dependency output files, they are included files with
9699 # $(DEPDIR) in their names. We invoke sed twice because it is the
9700 # simplest approach to changing $(DEPDIR) to its actual value in the
9702 for file in `sed -n "
9703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9705 # Make sure the directory exists.
9706 test -f "$dirpart/$file" && continue
9707 fdir=`$as_dirname -- "$file" ||
9708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9709 X"$file" : 'X\(//\)[^/]' \| \
9710 X"$file" : 'X\(//\)$' \| \
9711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9731 # echo "creating $dirpart/$file"
9732 echo '# dummy' > "$dirpart/$file"
9744 ac_clean_files=$ac_clean_files_save
9746 test $ac_write_fail = 0 ||
9747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9750 # configure is writing to config.log, and then calls config.status.
9751 # config.status does its own redirection, appending to config.log.
9752 # Unfortunately, on DOS this fails, as config.log is still kept open
9753 # by configure, so config.status won't be able to write to it; its
9754 # output is simply discarded. So we exec the FD to /dev/null,
9755 # effectively closing config.log, so it can be properly (re)opened and
9756 # appended to by config.status. When coming back to configure, we
9757 # need to make the FD available again.
9758 if test "$no_create" != yes; then
9760 ac_config_status_args=
9761 test "$silent" = yes &&
9762 ac_config_status_args="$ac_config_status_args --quiet"
9764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9767 # would make configure fail if this is the last instruction.
9768 $ac_cs_success || as_fn_exit 1
9770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}