1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 as_mkdir_p=false 222fi 223 224as_executable_p="test -f" 225 226# Sed expression to map a string onto a valid CPP name. 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229# Sed expression to map a string onto a valid variable name. 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233# IFS 234# We need space, tab and new line, in precisely that order. 235as_nl=' 236' 237IFS=" $as_nl" 238 239# CDPATH. 240$as_unset CDPATH 241 242 243# Name of the host. 244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# so uname gets run too. 246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248exec 6>&1 249 250# 251# Initializations. 252# 253ac_default_prefix=/usr 254ac_config_libobj_dir=. 255cross_compiling=no 256subdirs= 257MFLAGS= 258MAKEFLAGS= 259SHELL=${CONFIG_SHELL-/bin/sh} 260 261# Maximum number of lines to put in a shell here document. 262# This variable seems obsolete. It should probably be removed, and 263# only ac_max_sed_lines should be used. 264: ${ac_max_here_lines=38} 265 266# Identity of this package. 267PACKAGE_NAME= 268PACKAGE_TARNAME= 269PACKAGE_VERSION= 270PACKAGE_STRING= 271PACKAGE_BUGREPORT= 272 273ac_unique_file="lib/saslint.h" 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_subdirs_all="$ac_subdirs_all saslauthd" 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S RANLIB ac_ct_RANLIB LIBTOOL PURECOV PURIFY JAVAC JAVAH JAVADOC JAVA_TRUE JAVA_FALSE JAVA_INCLUDES JAVAROOT SAMPLE_TRUE SAMPLE_FALSE LIB_SOCKET EGREP SASL_DB_UTILS SASL_DB_MANS SASL_DB_BACKEND SASL_DB_BACKEND_STATIC SASL_DB_INC SASL_DB_LIB NO_SASL_DB_MANS_TRUE NO_SASL_DB_MANS_FALSE SASL_DL_LIB NM SASLAUTHD_TRUE SASLAUTHD_FALSE PWCHECKMETH PWCHECK_TRUE PWCHECK_FALSE IPCTYPE LIB_DES OTP_LIBS SRP_LIBS SASL_KRB_LIB LIB_CRYPT GSSAPI_LIBS GSSAPIBASE_LIBS PLAIN_LIBS NTLM_LIBS LIB_MYSQL LIB_PGSQL SASL_MECHS SASL_STATIC_OBJS SASL_STATIC_LIBS plugindir MACOSX_TRUE MACOSX_FALSE DMALLOC_LIBS SFIO_INC_FLAGS SFIO_LIB_FLAGS SMTPTEST_PROGRAM SASL_UTIL_LIBS_EXTRA SASL_UTIL_HEADERS_EXTRA LIBOBJS GETSUBOPT SNPRINTFOBJS LTSNPRINTFOBJS GETADDRINFOOBJS LTGETADDRINFOOBJS GETNAMEINFOOBJS LTGETNAMEINFOOBJS LTLIBOBJS DIRS subdirs' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839System types: 840 --build=BUILD configure for building on BUILD [guessed] 841 --host=HOST cross-compile to build programs to run on HOST [BUILD] 842 --target=TARGET configure for building compilers for TARGET [HOST] 843_ACEOF 844fi 845 846if test -n "$ac_init_help"; then 847 848 cat <<\_ACEOF 849 850Optional Features: 851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 853 --enable-cmulocal enable local mods for CMU no 854 --enable-sample compile sample code yes 855 --disable-dependency-tracking Speeds up one-time builds 856 --enable-dependency-tracking Do not reject slow dependency extractors 857 --enable-static=PKGS build static libraries default=no 858 --enable-shared=PKGS build shared libraries default=yes 859 --enable-fast-install=PKGS optimize for fast installation default=yes 860 --disable-libtool-lock avoid locking (might break parallel builds) 861 --enable-staticdlopen try dynamic plugins when we are a static libsasl no 862 --enable-java compile Java support no 863 --enable-alwaystrue enable the alwaystrue password verifier (discouraged) 864 --enable-checkapop enable use of sasl_checkapop yes 865 --enable-cram enable CRAM-MD5 authentication yes 866 --enable-digest enable DIGEST-MD5 authentication yes 867 --enable-otp enable OTP authentication yes 868 --enable-srp enable SRP authentication no 869 --enable-srp-setpass enable setting SRP secrets with saslpasswd no 870 --enable-krb4 enable KERBEROS_V4 authentication [no] 871 --enable-gssapi=<DIR> enable GSSAPI authentication yes 872 --enable-plain enable PLAIN authentication yes 873 --enable-anon enable ANONYMOUS authentication yes 874 --enable-login enable unsupported LOGIN authentication no 875 --enable-ntlm enable unsupported NTLM authentication no 876 --enable-sql enable SQL auxprop [no] 877 878Optional Packages: 879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 881 882 --with-gnu-ld assume the C compiler uses GNU ld default=no 883 --with-purecov link with purecov 884 --with-purify link with purify 885 --with-javabase=PATH set path to find jni.h in /usr/java/include 886 --with-dbpath=PATH set the DB path to use /etc/sasldb2 887 --with-dblib=DBLIB set the DB library to use berkeley 888 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR 889 --with-bdb-incdir=DIR Berkeley DB include files are in DIR 890 --with-gdbm=PATH use gdbm from PATH 891 --with-devrandom=PATH set the path to /dev/random /dev/random 892 --with-pam=DIR use PAM (rooted in DIR) yes 893 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR 894 --with-authdaemond=PATH enable use of authdaemon with default socket=PATH [no] 895 --with-pwcheck=DIR enable deprecated pwcheck daemon using statedir DIR 896 --with-ipctype={unix,doors} use ipctype unix 897 --with-openssl=PATH use OpenSSL from PATH 898 --with-des=DIR with DES (look in DIR) yes 899 --with-opie=PATH use OPIE (One Time Passwords in Everything) from PATH 900 --with-gss_impl={heimdal|mit|cybersafe|seam|auto} choose specific GSSAPI implementation [auto] 901 --with-ldap=DIR use LDAP (in DIR) for saslauthd no 902 --with-mysql=PATH use MySQL from PATH 903 --with-pgsql=PATH use PostgreSQL from PATH 904 --with-plugindir=DIR set the directory where plugins will 905 be found /usr/lib/sasl2 906 --with-rc4 use internal rc4 routines yes 907 --with-dmalloc=DIR with DMALLOC support (for test applications) no 908 --with-sfio=DIR with SFIO support (for smtptest/libsfsasl) no 909 910Some influential environment variables: 911 CC C compiler command 912 CFLAGS C compiler flags 913 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 914 nonstandard directory <lib dir> 915 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 916 headers in a nonstandard directory <include dir> 917 CPP C preprocessor 918 919Use these variables to override the choices made by `configure' or to help 920it to find libraries and programs with nonstandard names/locations. 921 922_ACEOF 923fi 924 925if test "$ac_init_help" = "recursive"; then 926 # If there are subdirs, report their specific --help. 927 ac_popdir=`pwd` 928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 929 test -d $ac_dir || continue 930 ac_builddir=. 931 932if test "$ac_dir" != .; then 933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 934 # A "../" for each directory in $ac_dir_suffix. 935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 936else 937 ac_dir_suffix= ac_top_builddir= 938fi 939 940case $srcdir in 941 .) # No --srcdir option. We are building in place. 942 ac_srcdir=. 943 if test -z "$ac_top_builddir"; then 944 ac_top_srcdir=. 945 else 946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 947 fi ;; 948 [\\/]* | ?:[\\/]* ) # Absolute path. 949 ac_srcdir=$srcdir$ac_dir_suffix; 950 ac_top_srcdir=$srcdir ;; 951 *) # Relative path. 952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 953 ac_top_srcdir=$ac_top_builddir$srcdir ;; 954esac 955# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 956# absolute. 957ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 958ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 959ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 960ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 961 962 cd $ac_dir 963 # Check for guested configure; otherwise get Cygnus style configure. 964 if test -f $ac_srcdir/configure.gnu; then 965 echo 966 $SHELL $ac_srcdir/configure.gnu --help=recursive 967 elif test -f $ac_srcdir/configure; then 968 echo 969 $SHELL $ac_srcdir/configure --help=recursive 970 elif test -f $ac_srcdir/configure.ac || 971 test -f $ac_srcdir/configure.in; then 972 echo 973 $ac_configure --help 974 else 975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 976 fi 977 cd $ac_popdir 978 done 979fi 980 981test -n "$ac_init_help" && exit 0 982if $ac_init_version; then 983 cat <<\_ACEOF 984 985Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 986Free Software Foundation, Inc. 987This configure script is free software; the Free Software Foundation 988gives unlimited permission to copy, distribute and modify it. 989_ACEOF 990 exit 0 991fi 992exec 5>config.log 993cat >&5 <<_ACEOF 994This file contains any messages produced by compilers while 995running configure, to aid debugging if configure makes a mistake. 996 997It was created by $as_me, which was 998generated by GNU Autoconf 2.57. Invocation command line was 999 1000 $ $0 $@ 1001 1002_ACEOF 1003{ 1004cat <<_ASUNAME 1005## --------- ## 1006## Platform. ## 1007## --------- ## 1008 1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1010uname -m = `(uname -m) 2>/dev/null || echo unknown` 1011uname -r = `(uname -r) 2>/dev/null || echo unknown` 1012uname -s = `(uname -s) 2>/dev/null || echo unknown` 1013uname -v = `(uname -v) 2>/dev/null || echo unknown` 1014 1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1017 1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1025 1026_ASUNAME 1027 1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1029for as_dir in $PATH 1030do 1031 IFS=$as_save_IFS 1032 test -z "$as_dir" && as_dir=. 1033 echo "PATH: $as_dir" 1034done 1035 1036} >&5 1037 1038cat >&5 <<_ACEOF 1039 1040 1041## ----------- ## 1042## Core tests. ## 1043## ----------- ## 1044 1045_ACEOF 1046 1047 1048# Keep a trace of the command line. 1049# Strip out --no-create and --no-recursion so they do not pile up. 1050# Strip out --silent because we don't want to record it for future runs. 1051# Also quote any args containing shell meta-characters. 1052# Make two passes to allow for proper duplicate-argument suppression. 1053ac_configure_args= 1054ac_configure_args0= 1055ac_configure_args1= 1056ac_sep= 1057ac_must_keep_next=false 1058for ac_pass in 1 2 1059do 1060 for ac_arg 1061 do 1062 case $ac_arg in 1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 continue ;; 1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1069 esac 1070 case $ac_pass in 1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1072 2) 1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1074 if test $ac_must_keep_next = true; then 1075 ac_must_keep_next=false # Got value, back to normal. 1076 else 1077 case $ac_arg in 1078 *=* | --config-cache | -C | -disable-* | --disable-* \ 1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1081 | -with-* | --with-* | -without-* | --without-* | --x) 1082 case "$ac_configure_args0 " in 1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1084 esac 1085 ;; 1086 -* ) ac_must_keep_next=true ;; 1087 esac 1088 fi 1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1090 # Get rid of the leading space. 1091 ac_sep=" " 1092 ;; 1093 esac 1094 done 1095done 1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1098 1099# When interrupted or exit'd, cleanup temporary files, and complete 1100# config.log. We remove comments because anyway the quotes in there 1101# would cause problems or look ugly. 1102# WARNING: Be sure not to use single quotes in there, as some shells, 1103# such as our DU 5.0 friend, will then `close' the trap. 1104trap 'exit_status=$? 1105 # Save into config.log some information that might help in debugging. 1106 { 1107 echo 1108 1109 cat <<\_ASBOX 1110## ---------------- ## 1111## Cache variables. ## 1112## ---------------- ## 1113_ASBOX 1114 echo 1115 # The following way of writing the cache mishandles newlines in values, 1116{ 1117 (set) 2>&1 | 1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1119 *ac_space=\ *) 1120 sed -n \ 1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1123 ;; 1124 *) 1125 sed -n \ 1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1127 ;; 1128 esac; 1129} 1130 echo 1131 1132 cat <<\_ASBOX 1133## ----------------- ## 1134## Output variables. ## 1135## ----------------- ## 1136_ASBOX 1137 echo 1138 for ac_var in $ac_subst_vars 1139 do 1140 eval ac_val=$`echo $ac_var` 1141 echo "$ac_var='"'"'$ac_val'"'"'" 1142 done | sort 1143 echo 1144 1145 if test -n "$ac_subst_files"; then 1146 cat <<\_ASBOX 1147## ------------- ## 1148## Output files. ## 1149## ------------- ## 1150_ASBOX 1151 echo 1152 for ac_var in $ac_subst_files 1153 do 1154 eval ac_val=$`echo $ac_var` 1155 echo "$ac_var='"'"'$ac_val'"'"'" 1156 done | sort 1157 echo 1158 fi 1159 1160 if test -s confdefs.h; then 1161 cat <<\_ASBOX 1162## ----------- ## 1163## confdefs.h. ## 1164## ----------- ## 1165_ASBOX 1166 echo 1167 sed "/^$/d" confdefs.h | sort 1168 echo 1169 fi 1170 test "$ac_signal" != 0 && 1171 echo "$as_me: caught signal $ac_signal" 1172 echo "$as_me: exit $exit_status" 1173 } >&5 1174 rm -f core core.* *.core && 1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1176 exit $exit_status 1177 ' 0 1178for ac_signal in 1 2 13 15; do 1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1180done 1181ac_signal=0 1182 1183# confdefs.h avoids OS command line length limits that DEFS can exceed. 1184rm -rf conftest* confdefs.h 1185# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1186echo >confdefs.h 1187 1188# Predefined preprocessor variables. 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_NAME "$PACKAGE_NAME" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1197_ACEOF 1198 1199 1200cat >>confdefs.h <<_ACEOF 1201#define PACKAGE_VERSION "$PACKAGE_VERSION" 1202_ACEOF 1203 1204 1205cat >>confdefs.h <<_ACEOF 1206#define PACKAGE_STRING "$PACKAGE_STRING" 1207_ACEOF 1208 1209 1210cat >>confdefs.h <<_ACEOF 1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1212_ACEOF 1213 1214 1215# Let the site file select an alternate cache file if it wants to. 1216# Prefer explicitly selected file to automatically selected ones. 1217if test -z "$CONFIG_SITE"; then 1218 if test "x$prefix" != xNONE; then 1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1220 else 1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1222 fi 1223fi 1224for ac_site_file in $CONFIG_SITE; do 1225 if test -r "$ac_site_file"; then 1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1227echo "$as_me: loading site script $ac_site_file" >&6;} 1228 sed 's/^/| /' "$ac_site_file" >&5 1229 . "$ac_site_file" 1230 fi 1231done 1232 1233if test -r "$cache_file"; then 1234 # Some versions of bash will fail to source /dev/null (special 1235 # files actually), so we avoid doing that. 1236 if test -f "$cache_file"; then 1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1238echo "$as_me: loading cache $cache_file" >&6;} 1239 case $cache_file in 1240 [\\/]* | ?:[\\/]* ) . $cache_file;; 1241 *) . ./$cache_file;; 1242 esac 1243 fi 1244else 1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1246echo "$as_me: creating cache $cache_file" >&6;} 1247 >$cache_file 1248fi 1249 1250# Check that the precious variables saved in the cache have kept the same 1251# value. 1252ac_cache_corrupted=false 1253for ac_var in `(set) 2>&1 | 1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1256 eval ac_new_set=\$ac_env_${ac_var}_set 1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1258 eval ac_new_val="\$ac_env_${ac_var}_value" 1259 case $ac_old_set,$ac_new_set in 1260 set,) 1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1263 ac_cache_corrupted=: ;; 1264 ,set) 1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1267 ac_cache_corrupted=: ;; 1268 ,);; 1269 *) 1270 if test "x$ac_old_val" != "x$ac_new_val"; then 1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1274echo "$as_me: former value: $ac_old_val" >&2;} 1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1276echo "$as_me: current value: $ac_new_val" >&2;} 1277 ac_cache_corrupted=: 1278 fi;; 1279 esac 1280 # Pass precious variables to config.status. 1281 if test "$ac_new_set" = set; then 1282 case $ac_new_val in 1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1285 *) ac_arg=$ac_var=$ac_new_val ;; 1286 esac 1287 case " $ac_configure_args " in 1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1290 esac 1291 fi 1292done 1293if $ac_cache_corrupted; then 1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1295echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1298 { (exit 1); exit 1; }; } 1299fi 1300 1301ac_ext=c 1302ac_cpp='$CPP $CPPFLAGS' 1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1305ac_compiler_gnu=$ac_cv_c_compiler_gnu 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327if test $cache_file = "/dev/null"; then 1328cache_file="./config.cache" 1329if test -r "$cache_file"; then 1330 # Some versions of bash will fail to source /dev/null (special 1331 # files actually), so we avoid doing that. 1332 if test -f "$cache_file"; then 1333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1334echo "$as_me: loading cache $cache_file" >&6;} 1335 case $cache_file in 1336 [\\/]* | ?:[\\/]* ) . $cache_file;; 1337 *) . ./$cache_file;; 1338 esac 1339 fi 1340else 1341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1342echo "$as_me: creating cache $cache_file" >&6;} 1343 >$cache_file 1344fi 1345 1346fi 1347 1348ac_aux_dir= 1349for ac_dir in config $srcdir/config; do 1350 if test -f $ac_dir/install-sh; then 1351 ac_aux_dir=$ac_dir 1352 ac_install_sh="$ac_aux_dir/install-sh -c" 1353 break 1354 elif test -f $ac_dir/install.sh; then 1355 ac_aux_dir=$ac_dir 1356 ac_install_sh="$ac_aux_dir/install.sh -c" 1357 break 1358 elif test -f $ac_dir/shtool; then 1359 ac_aux_dir=$ac_dir 1360 ac_install_sh="$ac_aux_dir/shtool install -c" 1361 break 1362 fi 1363done 1364if test -z "$ac_aux_dir"; then 1365 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1366echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1367 { (exit 1); exit 1; }; } 1368fi 1369ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1370ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1371ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1372 1373# Make sure we can run config.sub. 1374$ac_config_sub sun4 >/dev/null 2>&1 || 1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1376echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1377 { (exit 1); exit 1; }; } 1378 1379echo "$as_me:$LINENO: checking build system type" >&5 1380echo $ECHO_N "checking build system type... $ECHO_C" >&6 1381if test "${ac_cv_build+set}" = set; then 1382 echo $ECHO_N "(cached) $ECHO_C" >&6 1383else 1384 ac_cv_build_alias=$build_alias 1385test -z "$ac_cv_build_alias" && 1386 ac_cv_build_alias=`$ac_config_guess` 1387test -z "$ac_cv_build_alias" && 1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1389echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1390 { (exit 1); exit 1; }; } 1391ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1393echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1394 { (exit 1); exit 1; }; } 1395 1396fi 1397echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1398echo "${ECHO_T}$ac_cv_build" >&6 1399build=$ac_cv_build 1400build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1401build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1402build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1403 1404 1405echo "$as_me:$LINENO: checking host system type" >&5 1406echo $ECHO_N "checking host system type... $ECHO_C" >&6 1407if test "${ac_cv_host+set}" = set; then 1408 echo $ECHO_N "(cached) $ECHO_C" >&6 1409else 1410 ac_cv_host_alias=$host_alias 1411test -z "$ac_cv_host_alias" && 1412 ac_cv_host_alias=$ac_cv_build_alias 1413ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1415echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1416 { (exit 1); exit 1; }; } 1417 1418fi 1419echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1420echo "${ECHO_T}$ac_cv_host" >&6 1421host=$ac_cv_host 1422host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1423host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1424host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1425 1426 1427echo "$as_me:$LINENO: checking target system type" >&5 1428echo $ECHO_N "checking target system type... $ECHO_C" >&6 1429if test "${ac_cv_target+set}" = set; then 1430 echo $ECHO_N "(cached) $ECHO_C" >&6 1431else 1432 ac_cv_target_alias=$target_alias 1433test "x$ac_cv_target_alias" = "x" && 1434 ac_cv_target_alias=$ac_cv_host_alias 1435ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1437echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1438 { (exit 1); exit 1; }; } 1439 1440fi 1441echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1442echo "${ECHO_T}$ac_cv_target" >&6 1443target=$ac_cv_target 1444target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1445target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1446target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1447 1448 1449# The aliases save the names the user supplied, while $host etc. 1450# will get canonicalized. 1451test -n "$target_alias" && 1452 test "$program_prefix$program_suffix$program_transform_name" = \ 1453 NONENONEs,x,x, && 1454 program_prefix=${target_alias}- 1455 1456am__api_version="1.7" 1457# Find a good install program. We prefer a C program (faster), 1458# so one script is as good as another. But avoid the broken or 1459# incompatible versions: 1460# SysV /etc/install, /usr/sbin/install 1461# SunOS /usr/etc/install 1462# IRIX /sbin/install 1463# AIX /bin/install 1464# AmigaOS /C/install, which installs bootblocks on floppy discs 1465# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1466# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1467# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1468# ./install, which can be erroneously created by make from ./install.sh. 1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1471if test -z "$INSTALL"; then 1472if test "${ac_cv_path_install+set}" = set; then 1473 echo $ECHO_N "(cached) $ECHO_C" >&6 1474else 1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1476for as_dir in $PATH 1477do 1478 IFS=$as_save_IFS 1479 test -z "$as_dir" && as_dir=. 1480 # Account for people who put trailing slashes in PATH elements. 1481case $as_dir/ in 1482 ./ | .// | /cC/* | \ 1483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1484 /usr/ucb/* ) ;; 1485 *) 1486 # OSF1 and SCO ODT 3.0 have their own names for install. 1487 # Don't use installbsd from OSF since it installs stuff as root 1488 # by default. 1489 for ac_prog in ginstall scoinst install; do 1490 for ac_exec_ext in '' $ac_executable_extensions; do 1491 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1492 if test $ac_prog = install && 1493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1494 # AIX install. It has an incompatible calling convention. 1495 : 1496 elif test $ac_prog = install && 1497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1498 # program-specific install script used by HP pwplus--don't use. 1499 : 1500 else 1501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1502 break 3 1503 fi 1504 fi 1505 done 1506 done 1507 ;; 1508esac 1509done 1510 1511 1512fi 1513 if test "${ac_cv_path_install+set}" = set; then 1514 INSTALL=$ac_cv_path_install 1515 else 1516 # As a last resort, use the slow shell script. We don't cache a 1517 # path for INSTALL within a source directory, because that will 1518 # break other packages using the cache if that directory is 1519 # removed, or if the path is relative. 1520 INSTALL=$ac_install_sh 1521 fi 1522fi 1523echo "$as_me:$LINENO: result: $INSTALL" >&5 1524echo "${ECHO_T}$INSTALL" >&6 1525 1526# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1527# It thinks the first close brace ends the variable substitution. 1528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1529 1530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1531 1532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1533 1534echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1535echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1536# Just in case 1537sleep 1 1538echo timestamp > conftest.file 1539# Do `set' in a subshell so we don't clobber the current shell's 1540# arguments. Must try -L first in case configure is actually a 1541# symlink; some systems play weird games with the mod time of symlinks 1542# (eg FreeBSD returns the mod time of the symlink's containing 1543# directory). 1544if ( 1545 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1546 if test "$*" = "X"; then 1547 # -L didn't work. 1548 set X `ls -t $srcdir/configure conftest.file` 1549 fi 1550 rm -f conftest.file 1551 if test "$*" != "X $srcdir/configure conftest.file" \ 1552 && test "$*" != "X conftest.file $srcdir/configure"; then 1553 1554 # If neither matched, then we have a broken ls. This can happen 1555 # if, for instance, CONFIG_SHELL is bash and it inherits a 1556 # broken ls alias from the environment. This has actually 1557 # happened. Such a system could not be considered "sane". 1558 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1559alias in your environment" >&5 1560echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1561alias in your environment" >&2;} 1562 { (exit 1); exit 1; }; } 1563 fi 1564 1565 test "$2" = conftest.file 1566 ) 1567then 1568 # Ok. 1569 : 1570else 1571 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1572Check your system clock" >&5 1573echo "$as_me: error: newly created file is older than distributed files! 1574Check your system clock" >&2;} 1575 { (exit 1); exit 1; }; } 1576fi 1577echo "$as_me:$LINENO: result: yes" >&5 1578echo "${ECHO_T}yes" >&6 1579test "$program_prefix" != NONE && 1580 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1581# Use a double $ so make ignores it. 1582test "$program_suffix" != NONE && 1583 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1584# Double any \ or $. echo might interpret backslashes. 1585# By default was `s,x,x', remove it if useless. 1586cat <<\_ACEOF >conftest.sed 1587s/[\\$]/&&/g;s/;s,x,x,$// 1588_ACEOF 1589program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1590rm conftest.sed 1591 1592 1593# expand $ac_aux_dir to an absolute path 1594am_aux_dir=`cd $ac_aux_dir && pwd` 1595 1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1597# Use eval to expand $SHELL 1598if eval "$MISSING --run true"; then 1599 am_missing_run="$MISSING --run " 1600else 1601 am_missing_run= 1602 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1604fi 1605 1606for ac_prog in gawk mawk nawk awk 1607do 1608 # Extract the first word of "$ac_prog", so it can be a program name with args. 1609set dummy $ac_prog; ac_word=$2 1610echo "$as_me:$LINENO: checking for $ac_word" >&5 1611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1612if test "${ac_cv_prog_AWK+set}" = set; then 1613 echo $ECHO_N "(cached) $ECHO_C" >&6 1614else 1615 if test -n "$AWK"; then 1616 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1617else 1618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1619for as_dir in $PATH 1620do 1621 IFS=$as_save_IFS 1622 test -z "$as_dir" && as_dir=. 1623 for ac_exec_ext in '' $ac_executable_extensions; do 1624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1625 ac_cv_prog_AWK="$ac_prog" 1626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1627 break 2 1628 fi 1629done 1630done 1631 1632fi 1633fi 1634AWK=$ac_cv_prog_AWK 1635if test -n "$AWK"; then 1636 echo "$as_me:$LINENO: result: $AWK" >&5 1637echo "${ECHO_T}$AWK" >&6 1638else 1639 echo "$as_me:$LINENO: result: no" >&5 1640echo "${ECHO_T}no" >&6 1641fi 1642 1643 test -n "$AWK" && break 1644done 1645 1646echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1647echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1648set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1649if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1650 echo $ECHO_N "(cached) $ECHO_C" >&6 1651else 1652 cat >conftest.make <<\_ACEOF 1653all: 1654 @echo 'ac_maketemp="$(MAKE)"' 1655_ACEOF 1656# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1657eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1658if test -n "$ac_maketemp"; then 1659 eval ac_cv_prog_make_${ac_make}_set=yes 1660else 1661 eval ac_cv_prog_make_${ac_make}_set=no 1662fi 1663rm -f conftest.make 1664fi 1665if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1666 echo "$as_me:$LINENO: result: yes" >&5 1667echo "${ECHO_T}yes" >&6 1668 SET_MAKE= 1669else 1670 echo "$as_me:$LINENO: result: no" >&5 1671echo "${ECHO_T}no" >&6 1672 SET_MAKE="MAKE=${MAKE-make}" 1673fi 1674 1675 # test to see if srcdir already configured 1676if test "`cd $srcdir && pwd`" != "`pwd`" && 1677 test -f $srcdir/config.status; then 1678 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1679echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1680 { (exit 1); exit 1; }; } 1681fi 1682 1683# test whether we have cygpath 1684if test -z "$CYGPATH_W"; then 1685 if (cygpath --version) >/dev/null 2>/dev/null; then 1686 CYGPATH_W='cygpath -w' 1687 else 1688 CYGPATH_W=echo 1689 fi 1690fi 1691 1692 1693# Define the identity of the package. 1694 PACKAGE=cyrus-sasl 1695 VERSION=2.1.18 1696 1697 1698cat >>confdefs.h <<_ACEOF 1699#define PACKAGE "$PACKAGE" 1700_ACEOF 1701 1702 1703cat >>confdefs.h <<_ACEOF 1704#define VERSION "$VERSION" 1705_ACEOF 1706 1707# Some tools Automake needs. 1708 1709ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1710 1711 1712AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1713 1714 1715AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1716 1717 1718AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1719 1720 1721MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1722 1723 1724AMTAR=${AMTAR-"${am_missing_run}tar"} 1725 1726install_sh=${install_sh-"$am_aux_dir/install-sh"} 1727 1728# Installed binaries are usually stripped using `strip' when the user 1729# run `make install-strip'. However `strip' might not be the right 1730# tool to use in cross-compilation environments, therefore Automake 1731# will honor the `STRIP' environment variable to overrule this program. 1732if test "$cross_compiling" != no; then 1733 if test -n "$ac_tool_prefix"; then 1734 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1735set dummy ${ac_tool_prefix}strip; ac_word=$2 1736echo "$as_me:$LINENO: checking for $ac_word" >&5 1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1738if test "${ac_cv_prog_STRIP+set}" = set; then 1739 echo $ECHO_N "(cached) $ECHO_C" >&6 1740else 1741 if test -n "$STRIP"; then 1742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1743else 1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1745for as_dir in $PATH 1746do 1747 IFS=$as_save_IFS 1748 test -z "$as_dir" && as_dir=. 1749 for ac_exec_ext in '' $ac_executable_extensions; do 1750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1751 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1753 break 2 1754 fi 1755done 1756done 1757 1758fi 1759fi 1760STRIP=$ac_cv_prog_STRIP 1761if test -n "$STRIP"; then 1762 echo "$as_me:$LINENO: result: $STRIP" >&5 1763echo "${ECHO_T}$STRIP" >&6 1764else 1765 echo "$as_me:$LINENO: result: no" >&5 1766echo "${ECHO_T}no" >&6 1767fi 1768 1769fi 1770if test -z "$ac_cv_prog_STRIP"; then 1771 ac_ct_STRIP=$STRIP 1772 # Extract the first word of "strip", so it can be a program name with args. 1773set dummy strip; ac_word=$2 1774echo "$as_me:$LINENO: checking for $ac_word" >&5 1775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1776if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1777 echo $ECHO_N "(cached) $ECHO_C" >&6 1778else 1779 if test -n "$ac_ct_STRIP"; then 1780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1781else 1782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1783for as_dir in $PATH 1784do 1785 IFS=$as_save_IFS 1786 test -z "$as_dir" && as_dir=. 1787 for ac_exec_ext in '' $ac_executable_extensions; do 1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1789 ac_cv_prog_ac_ct_STRIP="strip" 1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1791 break 2 1792 fi 1793done 1794done 1795 1796 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1797fi 1798fi 1799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1800if test -n "$ac_ct_STRIP"; then 1801 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1802echo "${ECHO_T}$ac_ct_STRIP" >&6 1803else 1804 echo "$as_me:$LINENO: result: no" >&5 1805echo "${ECHO_T}no" >&6 1806fi 1807 1808 STRIP=$ac_ct_STRIP 1809else 1810 STRIP="$ac_cv_prog_STRIP" 1811fi 1812 1813fi 1814INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1815 1816# We need awk for the "check" target. The system "awk" is bad on 1817# some platforms. 1818 1819 1820 1821 1822 1823 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal" 1824 1825 1826# and include our config dir scripts 1827ACLOCAL="$ACLOCAL -I \$(top_srcdir)/config" 1828 1829DIRS="" 1830 1831# Check whether --enable-cmulocal or --disable-cmulocal was given. 1832if test "${enable_cmulocal+set}" = set; then 1833 enableval="$enable_cmulocal" 1834 1835else 1836 enable_cmulocal=no 1837fi; 1838 1839# Check whether --enable-sample or --disable-sample was given. 1840if test "${enable_sample+set}" = set; then 1841 enableval="$enable_sample" 1842 1843else 1844 enable_sample=yes 1845fi; 1846 1847ac_ext=c 1848ac_cpp='$CPP $CPPFLAGS' 1849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1851ac_compiler_gnu=$ac_cv_c_compiler_gnu 1852if test -n "$ac_tool_prefix"; then 1853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1854set dummy ${ac_tool_prefix}gcc; ac_word=$2 1855echo "$as_me:$LINENO: checking for $ac_word" >&5 1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1857if test "${ac_cv_prog_CC+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859else 1860 if test -n "$CC"; then 1861 ac_cv_prog_CC="$CC" # Let the user override the test. 1862else 1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1864for as_dir in $PATH 1865do 1866 IFS=$as_save_IFS 1867 test -z "$as_dir" && as_dir=. 1868 for ac_exec_ext in '' $ac_executable_extensions; do 1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1870 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1872 break 2 1873 fi 1874done 1875done 1876 1877fi 1878fi 1879CC=$ac_cv_prog_CC 1880if test -n "$CC"; then 1881 echo "$as_me:$LINENO: result: $CC" >&5 1882echo "${ECHO_T}$CC" >&6 1883else 1884 echo "$as_me:$LINENO: result: no" >&5 1885echo "${ECHO_T}no" >&6 1886fi 1887 1888fi 1889if test -z "$ac_cv_prog_CC"; then 1890 ac_ct_CC=$CC 1891 # Extract the first word of "gcc", so it can be a program name with args. 1892set dummy gcc; ac_word=$2 1893echo "$as_me:$LINENO: checking for $ac_word" >&5 1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1895if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1896 echo $ECHO_N "(cached) $ECHO_C" >&6 1897else 1898 if test -n "$ac_ct_CC"; then 1899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1900else 1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902for as_dir in $PATH 1903do 1904 IFS=$as_save_IFS 1905 test -z "$as_dir" && as_dir=. 1906 for ac_exec_ext in '' $ac_executable_extensions; do 1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1908 ac_cv_prog_ac_ct_CC="gcc" 1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1910 break 2 1911 fi 1912done 1913done 1914 1915fi 1916fi 1917ac_ct_CC=$ac_cv_prog_ac_ct_CC 1918if test -n "$ac_ct_CC"; then 1919 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1920echo "${ECHO_T}$ac_ct_CC" >&6 1921else 1922 echo "$as_me:$LINENO: result: no" >&5 1923echo "${ECHO_T}no" >&6 1924fi 1925 1926 CC=$ac_ct_CC 1927else 1928 CC="$ac_cv_prog_CC" 1929fi 1930 1931if test -z "$CC"; then 1932 if test -n "$ac_tool_prefix"; then 1933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1934set dummy ${ac_tool_prefix}cc; ac_word=$2 1935echo "$as_me:$LINENO: checking for $ac_word" >&5 1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1937if test "${ac_cv_prog_CC+set}" = set; then 1938 echo $ECHO_N "(cached) $ECHO_C" >&6 1939else 1940 if test -n "$CC"; then 1941 ac_cv_prog_CC="$CC" # Let the user override the test. 1942else 1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1944for as_dir in $PATH 1945do 1946 IFS=$as_save_IFS 1947 test -z "$as_dir" && as_dir=. 1948 for ac_exec_ext in '' $ac_executable_extensions; do 1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1950 ac_cv_prog_CC="${ac_tool_prefix}cc" 1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1952 break 2 1953 fi 1954done 1955done 1956 1957fi 1958fi 1959CC=$ac_cv_prog_CC 1960if test -n "$CC"; then 1961 echo "$as_me:$LINENO: result: $CC" >&5 1962echo "${ECHO_T}$CC" >&6 1963else 1964 echo "$as_me:$LINENO: result: no" >&5 1965echo "${ECHO_T}no" >&6 1966fi 1967 1968fi 1969if test -z "$ac_cv_prog_CC"; then 1970 ac_ct_CC=$CC 1971 # Extract the first word of "cc", so it can be a program name with args. 1972set dummy cc; ac_word=$2 1973echo "$as_me:$LINENO: checking for $ac_word" >&5 1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1975if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1976 echo $ECHO_N "(cached) $ECHO_C" >&6 1977else 1978 if test -n "$ac_ct_CC"; then 1979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1980else 1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1982for as_dir in $PATH 1983do 1984 IFS=$as_save_IFS 1985 test -z "$as_dir" && as_dir=. 1986 for ac_exec_ext in '' $ac_executable_extensions; do 1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1988 ac_cv_prog_ac_ct_CC="cc" 1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1990 break 2 1991 fi 1992done 1993done 1994 1995fi 1996fi 1997ac_ct_CC=$ac_cv_prog_ac_ct_CC 1998if test -n "$ac_ct_CC"; then 1999 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2000echo "${ECHO_T}$ac_ct_CC" >&6 2001else 2002 echo "$as_me:$LINENO: result: no" >&5 2003echo "${ECHO_T}no" >&6 2004fi 2005 2006 CC=$ac_ct_CC 2007else 2008 CC="$ac_cv_prog_CC" 2009fi 2010 2011fi 2012if test -z "$CC"; then 2013 # Extract the first word of "cc", so it can be a program name with args. 2014set dummy cc; ac_word=$2 2015echo "$as_me:$LINENO: checking for $ac_word" >&5 2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2017if test "${ac_cv_prog_CC+set}" = set; then 2018 echo $ECHO_N "(cached) $ECHO_C" >&6 2019else 2020 if test -n "$CC"; then 2021 ac_cv_prog_CC="$CC" # Let the user override the test. 2022else 2023 ac_prog_rejected=no 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 for ac_exec_ext in '' $ac_executable_extensions; do 2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2032 ac_prog_rejected=yes 2033 continue 2034 fi 2035 ac_cv_prog_CC="cc" 2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2037 break 2 2038 fi 2039done 2040done 2041 2042if test $ac_prog_rejected = yes; then 2043 # We found a bogon in the path, so make sure we never use it. 2044 set dummy $ac_cv_prog_CC 2045 shift 2046 if test $# != 0; then 2047 # We chose a different compiler from the bogus one. 2048 # However, it has the same basename, so the bogon will be chosen 2049 # first if we set CC to just the basename; use the full file name. 2050 shift 2051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2052 fi 2053fi 2054fi 2055fi 2056CC=$ac_cv_prog_CC 2057if test -n "$CC"; then 2058 echo "$as_me:$LINENO: result: $CC" >&5 2059echo "${ECHO_T}$CC" >&6 2060else 2061 echo "$as_me:$LINENO: result: no" >&5 2062echo "${ECHO_T}no" >&6 2063fi 2064 2065fi 2066if test -z "$CC"; then 2067 if test -n "$ac_tool_prefix"; then 2068 for ac_prog in cl 2069 do 2070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2071set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2072echo "$as_me:$LINENO: checking for $ac_word" >&5 2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2074if test "${ac_cv_prog_CC+set}" = set; then 2075 echo $ECHO_N "(cached) $ECHO_C" >&6 2076else 2077 if test -n "$CC"; then 2078 ac_cv_prog_CC="$CC" # Let the user override the test. 2079else 2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2081for as_dir in $PATH 2082do 2083 IFS=$as_save_IFS 2084 test -z "$as_dir" && as_dir=. 2085 for ac_exec_ext in '' $ac_executable_extensions; do 2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2089 break 2 2090 fi 2091done 2092done 2093 2094fi 2095fi 2096CC=$ac_cv_prog_CC 2097if test -n "$CC"; then 2098 echo "$as_me:$LINENO: result: $CC" >&5 2099echo "${ECHO_T}$CC" >&6 2100else 2101 echo "$as_me:$LINENO: result: no" >&5 2102echo "${ECHO_T}no" >&6 2103fi 2104 2105 test -n "$CC" && break 2106 done 2107fi 2108if test -z "$CC"; then 2109 ac_ct_CC=$CC 2110 for ac_prog in cl 2111do 2112 # Extract the first word of "$ac_prog", so it can be a program name with args. 2113set dummy $ac_prog; ac_word=$2 2114echo "$as_me:$LINENO: checking for $ac_word" >&5 2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2117 echo $ECHO_N "(cached) $ECHO_C" >&6 2118else 2119 if test -n "$ac_ct_CC"; then 2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2121else 2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2123for as_dir in $PATH 2124do 2125 IFS=$as_save_IFS 2126 test -z "$as_dir" && as_dir=. 2127 for ac_exec_ext in '' $ac_executable_extensions; do 2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2129 ac_cv_prog_ac_ct_CC="$ac_prog" 2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2131 break 2 2132 fi 2133done 2134done 2135 2136fi 2137fi 2138ac_ct_CC=$ac_cv_prog_ac_ct_CC 2139if test -n "$ac_ct_CC"; then 2140 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2141echo "${ECHO_T}$ac_ct_CC" >&6 2142else 2143 echo "$as_me:$LINENO: result: no" >&5 2144echo "${ECHO_T}no" >&6 2145fi 2146 2147 test -n "$ac_ct_CC" && break 2148done 2149 2150 CC=$ac_ct_CC 2151fi 2152 2153fi 2154 2155 2156test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2157See \`config.log' for more details." >&5 2158echo "$as_me: error: no acceptable C compiler found in \$PATH 2159See \`config.log' for more details." >&2;} 2160 { (exit 1); exit 1; }; } 2161 2162# Provide some information about the compiler. 2163echo "$as_me:$LINENO:" \ 2164 "checking for C compiler version" >&5 2165ac_compiler=`set X $ac_compile; echo $2` 2166{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2167 (eval $ac_compiler --version </dev/null >&5) 2>&5 2168 ac_status=$? 2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2170 (exit $ac_status); } 2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2172 (eval $ac_compiler -v </dev/null >&5) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); } 2176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2177 (eval $ac_compiler -V </dev/null >&5) 2>&5 2178 ac_status=$? 2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2180 (exit $ac_status); } 2181 2182cat >conftest.$ac_ext <<_ACEOF 2183#line $LINENO "configure" 2184/* confdefs.h. */ 2185_ACEOF 2186cat confdefs.h >>conftest.$ac_ext 2187cat >>conftest.$ac_ext <<_ACEOF 2188/* end confdefs.h. */ 2189 2190int 2191main () 2192{ 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198ac_clean_files_save=$ac_clean_files 2199ac_clean_files="$ac_clean_files a.out a.exe b.out" 2200# Try to create an executable without -o first, disregard a.out. 2201# It will help us diagnose broken compilers, and finding out an intuition 2202# of exeext. 2203echo "$as_me:$LINENO: checking for C compiler default output" >&5 2204echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2205ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2206if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2207 (eval $ac_link_default) 2>&5 2208 ac_status=$? 2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2210 (exit $ac_status); }; then 2211 # Find the output, starting from the most likely. This scheme is 2212# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2213# resort. 2214 2215# Be careful to initialize this variable, since it used to be cached. 2216# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2217ac_cv_exeext= 2218# b.out is created by i960 compilers. 2219for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2220do 2221 test -f "$ac_file" || continue 2222 case $ac_file in 2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2224 ;; 2225 conftest.$ac_ext ) 2226 # This is the source file. 2227 ;; 2228 [ab].out ) 2229 # We found the default executable, but exeext='' is most 2230 # certainly right. 2231 break;; 2232 *.* ) 2233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2234 # FIXME: I believe we export ac_cv_exeext for Libtool, 2235 # but it would be cool to find out if it's true. Does anybody 2236 # maintain Libtool? --akim. 2237 export ac_cv_exeext 2238 break;; 2239 * ) 2240 break;; 2241 esac 2242done 2243else 2244 echo "$as_me: failed program was:" >&5 2245sed 's/^/| /' conftest.$ac_ext >&5 2246 2247{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2248See \`config.log' for more details." >&5 2249echo "$as_me: error: C compiler cannot create executables 2250See \`config.log' for more details." >&2;} 2251 { (exit 77); exit 77; }; } 2252fi 2253 2254ac_exeext=$ac_cv_exeext 2255echo "$as_me:$LINENO: result: $ac_file" >&5 2256echo "${ECHO_T}$ac_file" >&6 2257 2258# Check the compiler produces executables we can run. If not, either 2259# the compiler is broken, or we cross compile. 2260echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2261echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2262# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2263# If not cross compiling, check that we can run a simple program. 2264if test "$cross_compiling" != yes; then 2265 if { ac_try='./$ac_file' 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2267 (eval $ac_try) 2>&5 2268 ac_status=$? 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2270 (exit $ac_status); }; }; then 2271 cross_compiling=no 2272 else 2273 if test "$cross_compiling" = maybe; then 2274 cross_compiling=yes 2275 else 2276 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2277If you meant to cross compile, use \`--host'. 2278See \`config.log' for more details." >&5 2279echo "$as_me: error: cannot run C compiled programs. 2280If you meant to cross compile, use \`--host'. 2281See \`config.log' for more details." >&2;} 2282 { (exit 1); exit 1; }; } 2283 fi 2284 fi 2285fi 2286echo "$as_me:$LINENO: result: yes" >&5 2287echo "${ECHO_T}yes" >&6 2288 2289rm -f a.out a.exe conftest$ac_cv_exeext b.out 2290ac_clean_files=$ac_clean_files_save 2291# Check the compiler produces executables we can run. If not, either 2292# the compiler is broken, or we cross compile. 2293echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2294echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2295echo "$as_me:$LINENO: result: $cross_compiling" >&5 2296echo "${ECHO_T}$cross_compiling" >&6 2297 2298echo "$as_me:$LINENO: checking for suffix of executables" >&5 2299echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2301 (eval $ac_link) 2>&5 2302 ac_status=$? 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); }; then 2305 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2306# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2307# work properly (i.e., refer to `conftest.exe'), while it won't with 2308# `rm'. 2309for ac_file in conftest.exe conftest conftest.*; do 2310 test -f "$ac_file" || continue 2311 case $ac_file in 2312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2314 export ac_cv_exeext 2315 break;; 2316 * ) break;; 2317 esac 2318done 2319else 2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2321See \`config.log' for more details." >&5 2322echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2323See \`config.log' for more details." >&2;} 2324 { (exit 1); exit 1; }; } 2325fi 2326 2327rm -f conftest$ac_cv_exeext 2328echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2329echo "${ECHO_T}$ac_cv_exeext" >&6 2330 2331rm -f conftest.$ac_ext 2332EXEEXT=$ac_cv_exeext 2333ac_exeext=$EXEEXT 2334echo "$as_me:$LINENO: checking for suffix of object files" >&5 2335echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2336if test "${ac_cv_objext+set}" = set; then 2337 echo $ECHO_N "(cached) $ECHO_C" >&6 2338else 2339 cat >conftest.$ac_ext <<_ACEOF 2340#line $LINENO "configure" 2341/* confdefs.h. */ 2342_ACEOF 2343cat confdefs.h >>conftest.$ac_ext 2344cat >>conftest.$ac_ext <<_ACEOF 2345/* end confdefs.h. */ 2346 2347int 2348main () 2349{ 2350 2351 ; 2352 return 0; 2353} 2354_ACEOF 2355rm -f conftest.o conftest.obj 2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2357 (eval $ac_compile) 2>&5 2358 ac_status=$? 2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 (exit $ac_status); }; then 2361 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2362 case $ac_file in 2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2365 break;; 2366 esac 2367done 2368else 2369 echo "$as_me: failed program was:" >&5 2370sed 's/^/| /' conftest.$ac_ext >&5 2371 2372{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2373See \`config.log' for more details." >&5 2374echo "$as_me: error: cannot compute suffix of object files: cannot compile 2375See \`config.log' for more details." >&2;} 2376 { (exit 1); exit 1; }; } 2377fi 2378 2379rm -f conftest.$ac_cv_objext conftest.$ac_ext 2380fi 2381echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2382echo "${ECHO_T}$ac_cv_objext" >&6 2383OBJEXT=$ac_cv_objext 2384ac_objext=$OBJEXT 2385echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2386echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2387if test "${ac_cv_c_compiler_gnu+set}" = set; then 2388 echo $ECHO_N "(cached) $ECHO_C" >&6 2389else 2390 cat >conftest.$ac_ext <<_ACEOF 2391#line $LINENO "configure" 2392/* confdefs.h. */ 2393_ACEOF 2394cat confdefs.h >>conftest.$ac_ext 2395cat >>conftest.$ac_ext <<_ACEOF 2396/* end confdefs.h. */ 2397 2398int 2399main () 2400{ 2401#ifndef __GNUC__ 2402 choke me 2403#endif 2404 2405 ; 2406 return 0; 2407} 2408_ACEOF 2409rm -f conftest.$ac_objext 2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2411 (eval $ac_compile) 2>&5 2412 ac_status=$? 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); } && 2415 { ac_try='test -s conftest.$ac_objext' 2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2417 (eval $ac_try) 2>&5 2418 ac_status=$? 2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2420 (exit $ac_status); }; }; then 2421 ac_compiler_gnu=yes 2422else 2423 echo "$as_me: failed program was:" >&5 2424sed 's/^/| /' conftest.$ac_ext >&5 2425 2426ac_compiler_gnu=no 2427fi 2428rm -f conftest.$ac_objext conftest.$ac_ext 2429ac_cv_c_compiler_gnu=$ac_compiler_gnu 2430 2431fi 2432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2434GCC=`test $ac_compiler_gnu = yes && echo yes` 2435ac_test_CFLAGS=${CFLAGS+set} 2436ac_save_CFLAGS=$CFLAGS 2437CFLAGS="-g" 2438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2440if test "${ac_cv_prog_cc_g+set}" = set; then 2441 echo $ECHO_N "(cached) $ECHO_C" >&6 2442else 2443 cat >conftest.$ac_ext <<_ACEOF 2444#line $LINENO "configure" 2445/* confdefs.h. */ 2446_ACEOF 2447cat confdefs.h >>conftest.$ac_ext 2448cat >>conftest.$ac_ext <<_ACEOF 2449/* end confdefs.h. */ 2450 2451int 2452main () 2453{ 2454 2455 ; 2456 return 0; 2457} 2458_ACEOF 2459rm -f conftest.$ac_objext 2460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2461 (eval $ac_compile) 2>&5 2462 ac_status=$? 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } && 2465 { ac_try='test -s conftest.$ac_objext' 2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2467 (eval $ac_try) 2>&5 2468 ac_status=$? 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); }; }; then 2471 ac_cv_prog_cc_g=yes 2472else 2473 echo "$as_me: failed program was:" >&5 2474sed 's/^/| /' conftest.$ac_ext >&5 2475 2476ac_cv_prog_cc_g=no 2477fi 2478rm -f conftest.$ac_objext conftest.$ac_ext 2479fi 2480echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2481echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2482if test "$ac_test_CFLAGS" = set; then 2483 CFLAGS=$ac_save_CFLAGS 2484elif test $ac_cv_prog_cc_g = yes; then 2485 if test "$GCC" = yes; then 2486 CFLAGS="-g -O2" 2487 else 2488 CFLAGS="-g" 2489 fi 2490else 2491 if test "$GCC" = yes; then 2492 CFLAGS="-O2" 2493 else 2494 CFLAGS= 2495 fi 2496fi 2497echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2498echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2499if test "${ac_cv_prog_cc_stdc+set}" = set; then 2500 echo $ECHO_N "(cached) $ECHO_C" >&6 2501else 2502 ac_cv_prog_cc_stdc=no 2503ac_save_CC=$CC 2504cat >conftest.$ac_ext <<_ACEOF 2505#line $LINENO "configure" 2506/* confdefs.h. */ 2507_ACEOF 2508cat confdefs.h >>conftest.$ac_ext 2509cat >>conftest.$ac_ext <<_ACEOF 2510/* end confdefs.h. */ 2511#include <stdarg.h> 2512#include <stdio.h> 2513#include <sys/types.h> 2514#include <sys/stat.h> 2515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2516struct buf { int x; }; 2517FILE * (*rcsopen) (struct buf *, struct stat *, int); 2518static char *e (p, i) 2519 char **p; 2520 int i; 2521{ 2522 return p[i]; 2523} 2524static char *f (char * (*g) (char **, int), char **p, ...) 2525{ 2526 char *s; 2527 va_list v; 2528 va_start (v,p); 2529 s = g (p, va_arg (v,int)); 2530 va_end (v); 2531 return s; 2532} 2533int test (int i, double x); 2534struct s1 {int (*f) (int a);}; 2535struct s2 {int (*f) (double a);}; 2536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2537int argc; 2538char **argv; 2539int 2540main () 2541{ 2542return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2543 ; 2544 return 0; 2545} 2546_ACEOF 2547# Don't try gcc -ansi; that turns off useful extensions and 2548# breaks some systems' header files. 2549# AIX -qlanglvl=ansi 2550# Ultrix and OSF/1 -std1 2551# HP-UX 10.20 and later -Ae 2552# HP-UX older versions -Aa -D_HPUX_SOURCE 2553# SVR4 -Xc -D__EXTENSIONS__ 2554for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2555do 2556 CC="$ac_save_CC $ac_arg" 2557 rm -f conftest.$ac_objext 2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2559 (eval $ac_compile) 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); } && 2563 { ac_try='test -s conftest.$ac_objext' 2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2565 (eval $ac_try) 2>&5 2566 ac_status=$? 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); }; }; then 2569 ac_cv_prog_cc_stdc=$ac_arg 2570break 2571else 2572 echo "$as_me: failed program was:" >&5 2573sed 's/^/| /' conftest.$ac_ext >&5 2574 2575fi 2576rm -f conftest.$ac_objext 2577done 2578rm -f conftest.$ac_ext conftest.$ac_objext 2579CC=$ac_save_CC 2580 2581fi 2582 2583case "x$ac_cv_prog_cc_stdc" in 2584 x|xno) 2585 echo "$as_me:$LINENO: result: none needed" >&5 2586echo "${ECHO_T}none needed" >&6 ;; 2587 *) 2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2589echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2590 CC="$CC $ac_cv_prog_cc_stdc" ;; 2591esac 2592 2593# Some people use a C++ compiler to compile C. Since we use `exit', 2594# in C++ we need to declare it. In case someone uses the same compiler 2595# for both compiling C and C++ we need to have the C++ compiler decide 2596# the declaration of exit, since it's the most demanding environment. 2597cat >conftest.$ac_ext <<_ACEOF 2598#ifndef __cplusplus 2599 choke me 2600#endif 2601_ACEOF 2602rm -f conftest.$ac_objext 2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2604 (eval $ac_compile) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); } && 2608 { ac_try='test -s conftest.$ac_objext' 2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2610 (eval $ac_try) 2>&5 2611 ac_status=$? 2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2613 (exit $ac_status); }; }; then 2614 for ac_declaration in \ 2615 ''\ 2616 '#include <stdlib.h>' \ 2617 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2618 'extern "C" void std::exit (int); using std::exit;' \ 2619 'extern "C" void exit (int) throw ();' \ 2620 'extern "C" void exit (int);' \ 2621 'void exit (int);' 2622do 2623 cat >conftest.$ac_ext <<_ACEOF 2624#line $LINENO "configure" 2625/* confdefs.h. */ 2626_ACEOF 2627cat confdefs.h >>conftest.$ac_ext 2628cat >>conftest.$ac_ext <<_ACEOF 2629/* end confdefs.h. */ 2630#include <stdlib.h> 2631$ac_declaration 2632int 2633main () 2634{ 2635exit (42); 2636 ; 2637 return 0; 2638} 2639_ACEOF 2640rm -f conftest.$ac_objext 2641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2642 (eval $ac_compile) 2>&5 2643 ac_status=$? 2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2645 (exit $ac_status); } && 2646 { ac_try='test -s conftest.$ac_objext' 2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2648 (eval $ac_try) 2>&5 2649 ac_status=$? 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); }; }; then 2652 : 2653else 2654 echo "$as_me: failed program was:" >&5 2655sed 's/^/| /' conftest.$ac_ext >&5 2656 2657continue 2658fi 2659rm -f conftest.$ac_objext conftest.$ac_ext 2660 cat >conftest.$ac_ext <<_ACEOF 2661#line $LINENO "configure" 2662/* confdefs.h. */ 2663_ACEOF 2664cat confdefs.h >>conftest.$ac_ext 2665cat >>conftest.$ac_ext <<_ACEOF 2666/* end confdefs.h. */ 2667$ac_declaration 2668int 2669main () 2670{ 2671exit (42); 2672 ; 2673 return 0; 2674} 2675_ACEOF 2676rm -f conftest.$ac_objext 2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2678 (eval $ac_compile) 2>&5 2679 ac_status=$? 2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 (exit $ac_status); } && 2682 { ac_try='test -s conftest.$ac_objext' 2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2684 (eval $ac_try) 2>&5 2685 ac_status=$? 2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2687 (exit $ac_status); }; }; then 2688 break 2689else 2690 echo "$as_me: failed program was:" >&5 2691sed 's/^/| /' conftest.$ac_ext >&5 2692 2693fi 2694rm -f conftest.$ac_objext conftest.$ac_ext 2695done 2696rm -f conftest* 2697if test -n "$ac_declaration"; then 2698 echo '#ifdef __cplusplus' >>confdefs.h 2699 echo $ac_declaration >>confdefs.h 2700 echo '#endif' >>confdefs.h 2701fi 2702 2703else 2704 echo "$as_me: failed program was:" >&5 2705sed 's/^/| /' conftest.$ac_ext >&5 2706 2707fi 2708rm -f conftest.$ac_objext conftest.$ac_ext 2709ac_ext=c 2710ac_cpp='$CPP $CPPFLAGS' 2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2713ac_compiler_gnu=$ac_cv_c_compiler_gnu 2714rm -f .deps 2>/dev/null 2715mkdir .deps 2>/dev/null 2716if test -d .deps; then 2717 DEPDIR=.deps 2718else 2719 # MS-DOS does not allow filenames that begin with a dot. 2720 DEPDIR=_deps 2721fi 2722rmdir .deps 2>/dev/null 2723 2724 2725 ac_config_commands="$ac_config_commands depfiles" 2726 2727 2728am_make=${MAKE-make} 2729cat > confinc << 'END' 2730doit: 2731 @echo done 2732END 2733# If we don't find an include directive, just comment out the code. 2734echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2735echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2736am__include="#" 2737am__quote= 2738_am_result=none 2739# First try GNU make style include. 2740echo "include confinc" > confmf 2741# We grep out `Entering directory' and `Leaving directory' 2742# messages which can occur if `w' ends up in MAKEFLAGS. 2743# In particular we don't look at `^make:' because GNU make might 2744# be invoked under some other name (usually "gmake"), in which 2745# case it prints its new name instead of `make'. 2746if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2747 am__include=include 2748 am__quote= 2749 _am_result=GNU 2750fi 2751# Now try BSD make style include. 2752if test "$am__include" = "#"; then 2753 echo '.include "confinc"' > confmf 2754 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2755 am__include=.include 2756 am__quote="\"" 2757 _am_result=BSD 2758 fi 2759fi 2760 2761 2762echo "$as_me:$LINENO: result: $_am_result" >&5 2763echo "${ECHO_T}$_am_result" >&6 2764rm -f confinc confmf 2765 2766# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2767if test "${enable_dependency_tracking+set}" = set; then 2768 enableval="$enable_dependency_tracking" 2769 2770fi; 2771if test "x$enable_dependency_tracking" != xno; then 2772 am_depcomp="$ac_aux_dir/depcomp" 2773 AMDEPBACKSLASH='\' 2774fi 2775 2776 2777if test "x$enable_dependency_tracking" != xno; then 2778 AMDEP_TRUE= 2779 AMDEP_FALSE='#' 2780else 2781 AMDEP_TRUE='#' 2782 AMDEP_FALSE= 2783fi 2784 2785 2786 2787 2788depcc="$CC" am_compiler_list= 2789 2790echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2791echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2792if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2793 echo $ECHO_N "(cached) $ECHO_C" >&6 2794else 2795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2796 # We make a subdir and do the tests there. Otherwise we can end up 2797 # making bogus files that we don't know about and never remove. For 2798 # instance it was reported that on HP-UX the gcc test will end up 2799 # making a dummy file named `D' -- because `-MD' means `put the output 2800 # in D'. 2801 mkdir conftest.dir 2802 # Copy depcomp to subdir because otherwise we won't find it if we're 2803 # using a relative directory. 2804 cp "$am_depcomp" conftest.dir 2805 cd conftest.dir 2806 2807 am_cv_CC_dependencies_compiler_type=none 2808 if test "$am_compiler_list" = ""; then 2809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2810 fi 2811 for depmode in $am_compiler_list; do 2812 # We need to recreate these files for each test, as the compiler may 2813 # overwrite some of them when testing with obscure command lines. 2814 # This happens at least with the AIX C compiler. 2815 echo '#include "conftest.h"' > conftest.c 2816 echo 'int i;' > conftest.h 2817 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2818 2819 case $depmode in 2820 nosideeffect) 2821 # after this tag, mechanisms are not by side-effect, so they'll 2822 # only be used when explicitly requested 2823 if test "x$enable_dependency_tracking" = xyes; then 2824 continue 2825 else 2826 break 2827 fi 2828 ;; 2829 none) break ;; 2830 esac 2831 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2832 # mode. It turns out that the SunPro C++ compiler does not properly 2833 # handle `-M -o', and we need to detect this. 2834 if depmode=$depmode \ 2835 source=conftest.c object=conftest.o \ 2836 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2837 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 && 2838 grep conftest.h conftest.Po > /dev/null 2>&1 && 2839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2840 am_cv_CC_dependencies_compiler_type=$depmode 2841 break 2842 fi 2843 done 2844 2845 cd .. 2846 rm -rf conftest.dir 2847else 2848 am_cv_CC_dependencies_compiler_type=none 2849fi 2850 2851fi 2852echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2853echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2855 2856 2857 2858if 2859 test "x$enable_dependency_tracking" != xno \ 2860 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2861 am__fastdepCC_TRUE= 2862 am__fastdepCC_FALSE='#' 2863else 2864 am__fastdepCC_TRUE='#' 2865 am__fastdepCC_FALSE= 2866fi 2867 2868 2869ac_ext=c 2870ac_cpp='$CPP $CPPFLAGS' 2871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2873ac_compiler_gnu=$ac_cv_c_compiler_gnu 2874echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2875echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2876# On Suns, sometimes $CPP names a directory. 2877if test -n "$CPP" && test -d "$CPP"; then 2878 CPP= 2879fi 2880if test -z "$CPP"; then 2881 if test "${ac_cv_prog_CPP+set}" = set; then 2882 echo $ECHO_N "(cached) $ECHO_C" >&6 2883else 2884 # Double quotes because CPP needs to be expanded 2885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2886 do 2887 ac_preproc_ok=false 2888for ac_c_preproc_warn_flag in '' yes 2889do 2890 # Use a header file that comes with gcc, so configuring glibc 2891 # with a fresh cross-compiler works. 2892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2893 # <limits.h> exists even on freestanding compilers. 2894 # On the NeXT, cc -E runs the code through the compiler's parser, 2895 # not just through cpp. "Syntax error" is here to catch this case. 2896 cat >conftest.$ac_ext <<_ACEOF 2897#line $LINENO "configure" 2898/* confdefs.h. */ 2899_ACEOF 2900cat confdefs.h >>conftest.$ac_ext 2901cat >>conftest.$ac_ext <<_ACEOF 2902/* end confdefs.h. */ 2903#ifdef __STDC__ 2904# include <limits.h> 2905#else 2906# include <assert.h> 2907#endif 2908 Syntax error 2909_ACEOF 2910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2912 ac_status=$? 2913 grep -v '^ *+' conftest.er1 >conftest.err 2914 rm -f conftest.er1 2915 cat conftest.err >&5 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } >/dev/null; then 2918 if test -s conftest.err; then 2919 ac_cpp_err=$ac_c_preproc_warn_flag 2920 else 2921 ac_cpp_err= 2922 fi 2923else 2924 ac_cpp_err=yes 2925fi 2926if test -z "$ac_cpp_err"; then 2927 : 2928else 2929 echo "$as_me: failed program was:" >&5 2930sed 's/^/| /' conftest.$ac_ext >&5 2931 2932 # Broken: fails on valid input. 2933continue 2934fi 2935rm -f conftest.err conftest.$ac_ext 2936 2937 # OK, works on sane cases. Now check whether non-existent headers 2938 # can be detected and how. 2939 cat >conftest.$ac_ext <<_ACEOF 2940#line $LINENO "configure" 2941/* confdefs.h. */ 2942_ACEOF 2943cat confdefs.h >>conftest.$ac_ext 2944cat >>conftest.$ac_ext <<_ACEOF 2945/* end confdefs.h. */ 2946#include <ac_nonexistent.h> 2947_ACEOF 2948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2950 ac_status=$? 2951 grep -v '^ *+' conftest.er1 >conftest.err 2952 rm -f conftest.er1 2953 cat conftest.err >&5 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); } >/dev/null; then 2956 if test -s conftest.err; then 2957 ac_cpp_err=$ac_c_preproc_warn_flag 2958 else 2959 ac_cpp_err= 2960 fi 2961else 2962 ac_cpp_err=yes 2963fi 2964if test -z "$ac_cpp_err"; then 2965 # Broken: success on invalid input. 2966continue 2967else 2968 echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971 # Passes both tests. 2972ac_preproc_ok=: 2973break 2974fi 2975rm -f conftest.err conftest.$ac_ext 2976 2977done 2978# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2979rm -f conftest.err conftest.$ac_ext 2980if $ac_preproc_ok; then 2981 break 2982fi 2983 2984 done 2985 ac_cv_prog_CPP=$CPP 2986 2987fi 2988 CPP=$ac_cv_prog_CPP 2989else 2990 ac_cv_prog_CPP=$CPP 2991fi 2992echo "$as_me:$LINENO: result: $CPP" >&5 2993echo "${ECHO_T}$CPP" >&6 2994ac_preproc_ok=false 2995for ac_c_preproc_warn_flag in '' yes 2996do 2997 # Use a header file that comes with gcc, so configuring glibc 2998 # with a fresh cross-compiler works. 2999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3000 # <limits.h> exists even on freestanding compilers. 3001 # On the NeXT, cc -E runs the code through the compiler's parser, 3002 # not just through cpp. "Syntax error" is here to catch this case. 3003 cat >conftest.$ac_ext <<_ACEOF 3004#line $LINENO "configure" 3005/* confdefs.h. */ 3006_ACEOF 3007cat confdefs.h >>conftest.$ac_ext 3008cat >>conftest.$ac_ext <<_ACEOF 3009/* end confdefs.h. */ 3010#ifdef __STDC__ 3011# include <limits.h> 3012#else 3013# include <assert.h> 3014#endif 3015 Syntax error 3016_ACEOF 3017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3019 ac_status=$? 3020 grep -v '^ *+' conftest.er1 >conftest.err 3021 rm -f conftest.er1 3022 cat conftest.err >&5 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); } >/dev/null; then 3025 if test -s conftest.err; then 3026 ac_cpp_err=$ac_c_preproc_warn_flag 3027 else 3028 ac_cpp_err= 3029 fi 3030else 3031 ac_cpp_err=yes 3032fi 3033if test -z "$ac_cpp_err"; then 3034 : 3035else 3036 echo "$as_me: failed program was:" >&5 3037sed 's/^/| /' conftest.$ac_ext >&5 3038 3039 # Broken: fails on valid input. 3040continue 3041fi 3042rm -f conftest.err conftest.$ac_ext 3043 3044 # OK, works on sane cases. Now check whether non-existent headers 3045 # can be detected and how. 3046 cat >conftest.$ac_ext <<_ACEOF 3047#line $LINENO "configure" 3048/* confdefs.h. */ 3049_ACEOF 3050cat confdefs.h >>conftest.$ac_ext 3051cat >>conftest.$ac_ext <<_ACEOF 3052/* end confdefs.h. */ 3053#include <ac_nonexistent.h> 3054_ACEOF 3055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3057 ac_status=$? 3058 grep -v '^ *+' conftest.er1 >conftest.err 3059 rm -f conftest.er1 3060 cat conftest.err >&5 3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3062 (exit $ac_status); } >/dev/null; then 3063 if test -s conftest.err; then 3064 ac_cpp_err=$ac_c_preproc_warn_flag 3065 else 3066 ac_cpp_err= 3067 fi 3068else 3069 ac_cpp_err=yes 3070fi 3071if test -z "$ac_cpp_err"; then 3072 # Broken: success on invalid input. 3073continue 3074else 3075 echo "$as_me: failed program was:" >&5 3076sed 's/^/| /' conftest.$ac_ext >&5 3077 3078 # Passes both tests. 3079ac_preproc_ok=: 3080break 3081fi 3082rm -f conftest.err conftest.$ac_ext 3083 3084done 3085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3086rm -f conftest.err conftest.$ac_ext 3087if $ac_preproc_ok; then 3088 : 3089else 3090 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3091See \`config.log' for more details." >&5 3092echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3093See \`config.log' for more details." >&2;} 3094 { (exit 1); exit 1; }; } 3095fi 3096 3097ac_ext=c 3098ac_cpp='$CPP $CPPFLAGS' 3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3101ac_compiler_gnu=$ac_cv_c_compiler_gnu 3102 3103for ac_prog in gawk mawk nawk awk 3104do 3105 # Extract the first word of "$ac_prog", so it can be a program name with args. 3106set dummy $ac_prog; ac_word=$2 3107echo "$as_me:$LINENO: checking for $ac_word" >&5 3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3109if test "${ac_cv_prog_AWK+set}" = set; then 3110 echo $ECHO_N "(cached) $ECHO_C" >&6 3111else 3112 if test -n "$AWK"; then 3113 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3114else 3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 test -z "$as_dir" && as_dir=. 3120 for ac_exec_ext in '' $ac_executable_extensions; do 3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3122 ac_cv_prog_AWK="$ac_prog" 3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3124 break 2 3125 fi 3126done 3127done 3128 3129fi 3130fi 3131AWK=$ac_cv_prog_AWK 3132if test -n "$AWK"; then 3133 echo "$as_me:$LINENO: result: $AWK" >&5 3134echo "${ECHO_T}$AWK" >&6 3135else 3136 echo "$as_me:$LINENO: result: no" >&5 3137echo "${ECHO_T}no" >&6 3138fi 3139 3140 test -n "$AWK" && break 3141done 3142 3143echo "$as_me:$LINENO: checking whether ln -s works" >&5 3144echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3145LN_S=$as_ln_s 3146if test "$LN_S" = "ln -s"; then 3147 echo "$as_me:$LINENO: result: yes" >&5 3148echo "${ECHO_T}yes" >&6 3149else 3150 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3151echo "${ECHO_T}no, using $LN_S" >&6 3152fi 3153 3154echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3155echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3156set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3157if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3158 echo $ECHO_N "(cached) $ECHO_C" >&6 3159else 3160 cat >conftest.make <<\_ACEOF 3161all: 3162 @echo 'ac_maketemp="$(MAKE)"' 3163_ACEOF 3164# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3165eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3166if test -n "$ac_maketemp"; then 3167 eval ac_cv_prog_make_${ac_make}_set=yes 3168else 3169 eval ac_cv_prog_make_${ac_make}_set=no 3170fi 3171rm -f conftest.make 3172fi 3173if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3174 echo "$as_me:$LINENO: result: yes" >&5 3175echo "${ECHO_T}yes" >&6 3176 SET_MAKE= 3177else 3178 echo "$as_me:$LINENO: result: no" >&5 3179echo "${ECHO_T}no" >&6 3180 SET_MAKE="MAKE=${MAKE-make}" 3181fi 3182 3183# Find a good install program. We prefer a C program (faster), 3184# so one script is as good as another. But avoid the broken or 3185# incompatible versions: 3186# SysV /etc/install, /usr/sbin/install 3187# SunOS /usr/etc/install 3188# IRIX /sbin/install 3189# AIX /bin/install 3190# AmigaOS /C/install, which installs bootblocks on floppy discs 3191# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3192# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3193# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3194# ./install, which can be erroneously created by make from ./install.sh. 3195echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3196echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3197if test -z "$INSTALL"; then 3198if test "${ac_cv_path_install+set}" = set; then 3199 echo $ECHO_N "(cached) $ECHO_C" >&6 3200else 3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3202for as_dir in $PATH 3203do 3204 IFS=$as_save_IFS 3205 test -z "$as_dir" && as_dir=. 3206 # Account for people who put trailing slashes in PATH elements. 3207case $as_dir/ in 3208 ./ | .// | /cC/* | \ 3209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3210 /usr/ucb/* ) ;; 3211 *) 3212 # OSF1 and SCO ODT 3.0 have their own names for install. 3213 # Don't use installbsd from OSF since it installs stuff as root 3214 # by default. 3215 for ac_prog in ginstall scoinst install; do 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3218 if test $ac_prog = install && 3219 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3220 # AIX install. It has an incompatible calling convention. 3221 : 3222 elif test $ac_prog = install && 3223 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3224 # program-specific install script used by HP pwplus--don't use. 3225 : 3226 else 3227 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3228 break 3 3229 fi 3230 fi 3231 done 3232 done 3233 ;; 3234esac 3235done 3236 3237 3238fi 3239 if test "${ac_cv_path_install+set}" = set; then 3240 INSTALL=$ac_cv_path_install 3241 else 3242 # As a last resort, use the slow shell script. We don't cache a 3243 # path for INSTALL within a source directory, because that will 3244 # break other packages using the cache if that directory is 3245 # removed, or if the path is relative. 3246 INSTALL=$ac_install_sh 3247 fi 3248fi 3249echo "$as_me:$LINENO: result: $INSTALL" >&5 3250echo "${ECHO_T}$INSTALL" >&6 3251 3252# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3253# It thinks the first close brace ends the variable substitution. 3254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3255 3256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3257 3258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3259 3260 3261 3262echo "$as_me:$LINENO: checking for __attribute__" >&5 3263echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 3264if test "${ac_cv___attribute__+set}" = set; then 3265 echo $ECHO_N "(cached) $ECHO_C" >&6 3266else 3267 3268cat >conftest.$ac_ext <<_ACEOF 3269#line $LINENO "configure" 3270/* confdefs.h. */ 3271_ACEOF 3272cat confdefs.h >>conftest.$ac_ext 3273cat >>conftest.$ac_ext <<_ACEOF 3274/* end confdefs.h. */ 3275 3276#include <stdlib.h> 3277 3278int 3279main () 3280{ 3281 3282static void foo(void) __attribute__ ((noreturn)); 3283 3284static void 3285foo(void) 3286{ 3287 exit(1); 3288} 3289 3290 ; 3291 return 0; 3292} 3293_ACEOF 3294rm -f conftest.$ac_objext 3295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3296 (eval $ac_compile) 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && 3300 { ac_try='test -s conftest.$ac_objext' 3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3302 (eval $ac_try) 2>&5 3303 ac_status=$? 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); }; }; then 3306 ac_cv___attribute__=yes 3307else 3308 echo "$as_me: failed program was:" >&5 3309sed 's/^/| /' conftest.$ac_ext >&5 3310 3311ac_cv___attribute__=no 3312fi 3313rm -f conftest.$ac_objext conftest.$ac_ext 3314fi 3315 3316if test "$ac_cv___attribute__" = "yes"; then 3317 3318cat >>confdefs.h <<\_ACEOF 3319#define HAVE___ATTRIBUTE__ 1 3320_ACEOF 3321 3322fi 3323echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3324echo "${ECHO_T}$ac_cv___attribute__" >&6 3325 3326 3327 3328 # CMU GUESS RUNPATH SWITCH 3329 echo "$as_me:$LINENO: checking for runpath switch" >&5 3330echo $ECHO_N "checking for runpath switch... $ECHO_C" >&6 3331if test "${andrew_runpath_switch+set}" = set; then 3332 echo $ECHO_N "(cached) $ECHO_C" >&6 3333else 3334 3335 # first, try -R 3336 SAVE_LDFLAGS="${LDFLAGS}" 3337 LDFLAGS="-R /usr/lib" 3338 cat >conftest.$ac_ext <<_ACEOF 3339#line $LINENO "configure" 3340/* confdefs.h. */ 3341_ACEOF 3342cat confdefs.h >>conftest.$ac_ext 3343cat >>conftest.$ac_ext <<_ACEOF 3344/* end confdefs.h. */ 3345 3346int 3347main () 3348{ 3349 3350 ; 3351 return 0; 3352} 3353_ACEOF 3354rm -f conftest.$ac_objext conftest$ac_exeext 3355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3356 (eval $ac_link) 2>&5 3357 ac_status=$? 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } && 3360 { ac_try='test -s conftest$ac_exeext' 3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3362 (eval $ac_try) 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); }; }; then 3366 andrew_runpath_switch="-R" 3367else 3368 echo "$as_me: failed program was:" >&5 3369sed 's/^/| /' conftest.$ac_ext >&5 3370 3371 3372 LDFLAGS="-Wl,-rpath,/usr/lib" 3373 cat >conftest.$ac_ext <<_ACEOF 3374#line $LINENO "configure" 3375/* confdefs.h. */ 3376_ACEOF 3377cat confdefs.h >>conftest.$ac_ext 3378cat >>conftest.$ac_ext <<_ACEOF 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389rm -f conftest.$ac_objext conftest$ac_exeext 3390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3391 (eval $ac_link) 2>&5 3392 ac_status=$? 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } && 3395 { ac_try='test -s conftest$ac_exeext' 3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3397 (eval $ac_try) 2>&5 3398 ac_status=$? 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); }; }; then 3401 andrew_runpath_switch="-Wl,-rpath," 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406andrew_runpath_switch="none" 3407fi 3408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3409 3410fi 3411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3412 LDFLAGS="${SAVE_LDFLAGS}" 3413 3414fi 3415echo "$as_me:$LINENO: result: $andrew_runpath_switch" >&5 3416echo "${ECHO_T}$andrew_runpath_switch" >&6 3417 3418 3419# Check whether --with-staticsasl or --without-staticsasl was given. 3420if test "${with_staticsasl+set}" = set; then 3421 withval="$with_staticsasl" 3422 3423fi; 3424if test "$with_staticsasl" = yes; then 3425 enable_shared=yes 3426 enable_static=yes 3427fi 3428 3429save_target=$target 3430if test -z "$target"; then 3431 target="NONE" 3432fi 3433 3434# new libtool 3435# Check whether --enable-static or --disable-static was given. 3436if test "${enable_static+set}" = set; then 3437 enableval="$enable_static" 3438 p=${PACKAGE-default} 3439case "$enableval" in 3440yes) enable_static=yes ;; 3441no) enable_static=no ;; 3442*) 3443 enable_static=no 3444 # Look at the argument we got. We use all the common list separators. 3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3446 for pkg in $enableval; do 3447 if test "X$pkg" = "X$p"; then 3448 enable_static=yes 3449 fi 3450 done 3451 IFS="$ac_save_ifs" 3452 ;; 3453esac 3454else 3455 enable_static=no 3456fi; 3457# Check whether --enable-shared or --disable-shared was given. 3458if test "${enable_shared+set}" = set; then 3459 enableval="$enable_shared" 3460 p=${PACKAGE-default} 3461case "$enableval" in 3462yes) enable_shared=yes ;; 3463no) enable_shared=no ;; 3464*) 3465 enable_shared=no 3466 # Look at the argument we got. We use all the common list separators. 3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3468 for pkg in $enableval; do 3469 if test "X$pkg" = "X$p"; then 3470 enable_shared=yes 3471 fi 3472 done 3473 IFS="$ac_save_ifs" 3474 ;; 3475esac 3476else 3477 enable_shared=yes 3478fi; 3479# Check whether --enable-fast-install or --disable-fast-install was given. 3480if test "${enable_fast_install+set}" = set; then 3481 enableval="$enable_fast_install" 3482 p=${PACKAGE-default} 3483case "$enableval" in 3484yes) enable_fast_install=yes ;; 3485no) enable_fast_install=no ;; 3486*) 3487 enable_fast_install=no 3488 # Look at the argument we got. We use all the common list separators. 3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3490 for pkg in $enableval; do 3491 if test "X$pkg" = "X$p"; then 3492 enable_fast_install=yes 3493 fi 3494 done 3495 IFS="$ac_save_ifs" 3496 ;; 3497esac 3498else 3499 enable_fast_install=yes 3500fi; 3501if test -n "$ac_tool_prefix"; then 3502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3503set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3504echo "$as_me:$LINENO: checking for $ac_word" >&5 3505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3506if test "${ac_cv_prog_RANLIB+set}" = set; then 3507 echo $ECHO_N "(cached) $ECHO_C" >&6 3508else 3509 if test -n "$RANLIB"; then 3510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3511else 3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524done 3525 3526fi 3527fi 3528RANLIB=$ac_cv_prog_RANLIB 3529if test -n "$RANLIB"; then 3530 echo "$as_me:$LINENO: result: $RANLIB" >&5 3531echo "${ECHO_T}$RANLIB" >&6 3532else 3533 echo "$as_me:$LINENO: result: no" >&5 3534echo "${ECHO_T}no" >&6 3535fi 3536 3537fi 3538if test -z "$ac_cv_prog_RANLIB"; then 3539 ac_ct_RANLIB=$RANLIB 3540 # Extract the first word of "ranlib", so it can be a program name with args. 3541set dummy ranlib; ac_word=$2 3542echo "$as_me:$LINENO: checking for $ac_word" >&5 3543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3544if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3545 echo $ECHO_N "(cached) $ECHO_C" >&6 3546else 3547 if test -n "$ac_ct_RANLIB"; then 3548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3549else 3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3551for as_dir in $PATH 3552do 3553 IFS=$as_save_IFS 3554 test -z "$as_dir" && as_dir=. 3555 for ac_exec_ext in '' $ac_executable_extensions; do 3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3557 ac_cv_prog_ac_ct_RANLIB="ranlib" 3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3559 break 2 3560 fi 3561done 3562done 3563 3564 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3565fi 3566fi 3567ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3568if test -n "$ac_ct_RANLIB"; then 3569 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3570echo "${ECHO_T}$ac_ct_RANLIB" >&6 3571else 3572 echo "$as_me:$LINENO: result: no" >&5 3573echo "${ECHO_T}no" >&6 3574fi 3575 3576 RANLIB=$ac_ct_RANLIB 3577else 3578 RANLIB="$ac_cv_prog_RANLIB" 3579fi 3580 3581 3582# Check whether --with-gnu-ld or --without-gnu-ld was given. 3583if test "${with_gnu_ld+set}" = set; then 3584 withval="$with_gnu_ld" 3585 test "$withval" = no || with_gnu_ld=yes 3586else 3587 with_gnu_ld=no 3588fi; 3589ac_prog=ld 3590if test "$ac_cv_c_compiler_gnu" = yes; then 3591 # Check if gcc -print-prog-name=ld gives a path. 3592 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3593echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3594 ac_prog=`($CC -print-prog-name=ld) 2>&5` 3595 case "$ac_prog" in 3596 # Accept absolute paths. 3597 [\\/]* | [A-Za-z]:[\\/]*) 3598 re_direlt='/[^/][^/]*/\.\./' 3599 # Canonicalize the path of ld 3600 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3602 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3603 done 3604 test -z "$LD" && LD="$ac_prog" 3605 ;; 3606 "") 3607 # If it fails, then pretend we aren't using GCC. 3608 ac_prog=ld 3609 ;; 3610 *) 3611 # If it is relative, then search for the first ld in PATH. 3612 with_gnu_ld=unknown 3613 ;; 3614 esac 3615elif test "$with_gnu_ld" = yes; then 3616 echo "$as_me:$LINENO: checking for GNU ld" >&5 3617echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3618else 3619 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3620echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3621fi 3622if test "${ac_cv_path_LD+set}" = set; then 3623 echo $ECHO_N "(cached) $ECHO_C" >&6 3624else 3625 if test -z "$LD"; then 3626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3627 for ac_dir in $PATH; do 3628 test -z "$ac_dir" && ac_dir=. 3629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3630 ac_cv_path_LD="$ac_dir/$ac_prog" 3631 # Check to see if the program is GNU ld. I'd rather use --version, 3632 # but apparently some GNU ld's only accept -v. 3633 # Break only if it was the GNU/non-GNU ld that we prefer. 3634 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3635 test "$with_gnu_ld" != no && break 3636 else 3637 test "$with_gnu_ld" != yes && break 3638 fi 3639 fi 3640 done 3641 IFS="$ac_save_ifs" 3642else 3643 ac_cv_path_LD="$LD" # Let the user override the test with a path. 3644fi 3645fi 3646 3647LD="$ac_cv_path_LD" 3648if test -n "$LD"; then 3649 echo "$as_me:$LINENO: result: $LD" >&5 3650echo "${ECHO_T}$LD" >&6 3651else 3652 echo "$as_me:$LINENO: result: no" >&5 3653echo "${ECHO_T}no" >&6 3654fi 3655test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3656echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3657 { (exit 1); exit 1; }; } 3658echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3659echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3660if test "${ac_cv_prog_gnu_ld+set}" = set; then 3661 echo $ECHO_N "(cached) $ECHO_C" >&6 3662else 3663 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3664if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3665 ac_cv_prog_gnu_ld=yes 3666else 3667 ac_cv_prog_gnu_ld=no 3668fi 3669fi 3670echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5 3671echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 3672 3673 3674echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3675echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3676if test "${ac_cv_path_NM+set}" = set; then 3677 echo $ECHO_N "(cached) $ECHO_C" >&6 3678else 3679 if test -n "$NM"; then 3680 # Let the user override the test. 3681 ac_cv_path_NM="$NM" 3682else 3683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3684 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3685 test -z "$ac_dir" && ac_dir=. 3686 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 3687 # Check to see if the nm accepts a BSD-compat flag. 3688 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3689 # nm: unknown option "B" ignored 3690 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3691 ac_cv_path_NM="$ac_dir/nm -B" 3692 break 3693 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3694 ac_cv_path_NM="$ac_dir/nm -p" 3695 break 3696 else 3697 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 3698 continue # so that we can try to find one that supports BSD flags 3699 fi 3700 fi 3701 done 3702 IFS="$ac_save_ifs" 3703 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 3704fi 3705fi 3706 3707NM="$ac_cv_path_NM" 3708echo "$as_me:$LINENO: result: $NM" >&5 3709echo "${ECHO_T}$NM" >&6 3710 3711 3712case "$target" in 3713NONE) lt_target="$host" ;; 3714*) lt_target="$target" ;; 3715esac 3716 3717# Check for any special flags to pass to ltconfig. 3718libtool_flags="--cache-file=$cache_file" 3719test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3720test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3721test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3722test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc" 3723test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3724 3725 3726# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3727if test "${enable_libtool_lock+set}" = set; then 3728 enableval="$enable_libtool_lock" 3729 3730fi; 3731test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3732test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3733 3734# Some flags need to be propagated to the compiler or linker for good 3735# libtool support. 3736case "$lt_target" in 3737*-*-irix6*) 3738 # Find out which ABI we are using. 3739 echo '#line 3739 "configure"' > conftest.$ac_ext 3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3741 (eval $ac_compile) 2>&5 3742 ac_status=$? 3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3744 (exit $ac_status); }; then 3745 case "`/usr/bin/file conftest.o`" in 3746 *32-bit*) 3747 LD="${LD-ld} -32" 3748 ;; 3749 *N32*) 3750 LD="${LD-ld} -n32" 3751 ;; 3752 *64-bit*) 3753 LD="${LD-ld} -64" 3754 ;; 3755 esac 3756 fi 3757 rm -rf conftest* 3758 ;; 3759 3760*-*-sco3.2v5*) 3761 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3762 SAVE_CFLAGS="$CFLAGS" 3763 CFLAGS="$CFLAGS -belf" 3764 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3765echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3766if test "${lt_cv_cc_needs_belf+set}" = set; then 3767 echo $ECHO_N "(cached) $ECHO_C" >&6 3768else 3769 cat >conftest.$ac_ext <<_ACEOF 3770#line $LINENO "configure" 3771/* confdefs.h. */ 3772_ACEOF 3773cat confdefs.h >>conftest.$ac_ext 3774cat >>conftest.$ac_ext <<_ACEOF 3775/* end confdefs.h. */ 3776 3777int 3778main () 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785rm -f conftest.$ac_objext conftest$ac_exeext 3786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3787 (eval $ac_link) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); } && 3791 { ac_try='test -s conftest$ac_exeext' 3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3793 (eval $ac_try) 2>&5 3794 ac_status=$? 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); }; }; then 3797 lt_cv_cc_needs_belf=yes 3798else 3799 echo "$as_me: failed program was:" >&5 3800sed 's/^/| /' conftest.$ac_ext >&5 3801 3802lt_cv_cc_needs_belf=no 3803fi 3804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3805fi 3806echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3807echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3808 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3810 CFLAGS="$SAVE_CFLAGS" 3811 fi 3812 ;; 3813 3814 3815esac 3816 3817 3818# Save cache, so that ltconfig can load it 3819cat >confcache <<\_ACEOF 3820# This file is a shell script that caches the results of configure 3821# tests run on this system so they can be shared between configure 3822# scripts and configure runs, see configure's option --config-cache. 3823# It is not useful on other systems. If it contains results you don't 3824# want to keep, you may remove or edit it. 3825# 3826# config.status only pays attention to the cache file if you give it 3827# the --recheck option to rerun configure. 3828# 3829# `ac_cv_env_foo' variables (set or unset) will be overridden when 3830# loading this file, other *unset* `ac_cv_foo' will be assigned the 3831# following values. 3832 3833_ACEOF 3834 3835# The following way of writing the cache mishandles newlines in values, 3836# but we know of no workaround that is simple, portable, and efficient. 3837# So, don't put newlines in cache variables' values. 3838# Ultrix sh set writes to stderr and can't be redirected directly, 3839# and sets the high bit in the cache file unless we assign to the vars. 3840{ 3841 (set) 2>&1 | 3842 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3843 *ac_space=\ *) 3844 # `set' does not quote correctly, so add quotes (double-quote 3845 # substitution turns \\\\ into \\, and sed turns \\ into \). 3846 sed -n \ 3847 "s/'/'\\\\''/g; 3848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3849 ;; 3850 *) 3851 # `set' quotes correctly as required by POSIX, so do not add quotes. 3852 sed -n \ 3853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3854 ;; 3855 esac; 3856} | 3857 sed ' 3858 t clear 3859 : clear 3860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3861 t end 3862 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3863 : end' >>confcache 3864if diff $cache_file confcache >/dev/null 2>&1; then :; else 3865 if test -w $cache_file; then 3866 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3867 cat confcache >$cache_file 3868 else 3869 echo "not updating unwritable cache $cache_file" 3870 fi 3871fi 3872rm -f confcache 3873 3874# Actually configure libtool. ac_aux_dir is where install-sh is found. 3875CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 3876LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 3877LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 3878DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 3879${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 3880$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ 3881|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 3882echo "$as_me: error: libtool configure failed" >&2;} 3883 { (exit 1); exit 1; }; } 3884 3885# Reload cache, that may have been modified by ltconfig 3886if test -r "$cache_file"; then 3887 # Some versions of bash will fail to source /dev/null (special 3888 # files actually), so we avoid doing that. 3889 if test -f "$cache_file"; then 3890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 3891echo "$as_me: loading cache $cache_file" >&6;} 3892 case $cache_file in 3893 [\\/]* | ?:[\\/]* ) . $cache_file;; 3894 *) . ./$cache_file;; 3895 esac 3896 fi 3897else 3898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 3899echo "$as_me: creating cache $cache_file" >&6;} 3900 >$cache_file 3901fi 3902 3903 3904# This can be used to rebuild libtool when needed 3905LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 3906 3907# Always use our own libtool. 3908LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3909 3910# Redirect the config.log output again, so that the ltconfig log is not 3911# clobbered by the next message. 3912exec 5>>./config.log 3913 3914 3915target=$save_target 3916 3917if test "$enable_static" = yes; then 3918 SASL_STATIC_LIBS=libsasl2.a 3919else 3920 SASL_STATIC_LIBS= 3921fi 3922 3923# Check whether --enable-staticdlopen or --disable-staticdlopen was given. 3924if test "${enable_staticdlopen+set}" = set; then 3925 enableval="$enable_staticdlopen" 3926 enable_staticdlopen=$enableval 3927else 3928 enable_staticdlopen=no 3929fi; 3930 3931if test "$enable_staticdlopen" = yes; then 3932 3933cat >>confdefs.h <<\_ACEOF 3934#define TRY_DLOPEN_WHEN_STATIC 3935_ACEOF 3936 3937fi 3938 3939if test "$ac_cv_c_compiler_gnu" = yes; then 3940 CFLAGS="-Wall -W ${CFLAGS}" 3941fi 3942 3943 3944# Check whether --with-purecov or --without-purecov was given. 3945if test "${with_purecov+set}" = set; then 3946 withval="$with_purecov" 3947 3948fi; 3949if test "$with_purecov" = yes; then 3950 for ac_prog in purecov 3951do 3952 # Extract the first word of "$ac_prog", so it can be a program name with args. 3953set dummy $ac_prog; ac_word=$2 3954echo "$as_me:$LINENO: checking for $ac_word" >&5 3955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3956if test "${ac_cv_prog_PURECOV+set}" = set; then 3957 echo $ECHO_N "(cached) $ECHO_C" >&6 3958else 3959 if test -n "$PURECOV"; then 3960 ac_cv_prog_PURECOV="$PURECOV" # Let the user override the test. 3961else 3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3963for as_dir in $PATH 3964do 3965 IFS=$as_save_IFS 3966 test -z "$as_dir" && as_dir=. 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3969 ac_cv_prog_PURECOV="$ac_prog" 3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3971 break 2 3972 fi 3973done 3974done 3975 3976fi 3977fi 3978PURECOV=$ac_cv_prog_PURECOV 3979if test -n "$PURECOV"; then 3980 echo "$as_me:$LINENO: result: $PURECOV" >&5 3981echo "${ECHO_T}$PURECOV" >&6 3982else 3983 echo "$as_me:$LINENO: result: no" >&5 3984echo "${ECHO_T}no" >&6 3985fi 3986 3987 test -n "$PURECOV" && break 3988done 3989 3990fi 3991 3992# Check whether --with-purify or --without-purify was given. 3993if test "${with_purify+set}" = set; then 3994 withval="$with_purify" 3995 3996fi; 3997if test "$with_purify" = yes; then 3998 for ac_prog in purify 3999do 4000 # Extract the first word of "$ac_prog", so it can be a program name with args. 4001set dummy $ac_prog; ac_word=$2 4002echo "$as_me:$LINENO: checking for $ac_word" >&5 4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4004if test "${ac_cv_prog_PURIFY+set}" = set; then 4005 echo $ECHO_N "(cached) $ECHO_C" >&6 4006else 4007 if test -n "$PURIFY"; then 4008 ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test. 4009else 4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011for as_dir in $PATH 4012do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_exec_ext in '' $ac_executable_extensions; do 4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4017 ac_cv_prog_PURIFY="$ac_prog" 4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4019 break 2 4020 fi 4021done 4022done 4023 4024fi 4025fi 4026PURIFY=$ac_cv_prog_PURIFY 4027if test -n "$PURIFY"; then 4028 echo "$as_me:$LINENO: result: $PURIFY" >&5 4029echo "${ECHO_T}$PURIFY" >&6 4030else 4031 echo "$as_me:$LINENO: result: no" >&5 4032echo "${ECHO_T}no" >&6 4033fi 4034 4035 test -n "$PURIFY" && break 4036done 4037 4038fi 4039 4040# Check whether --enable-java or --disable-java was given. 4041if test "${enable_java+set}" = set; then 4042 enableval="$enable_java" 4043 enable_java=$enableval 4044else 4045 enable_java=no 4046fi; 4047if test "$enable_java" = yes; then 4048 # Extract the first word of "javac", so it can be a program name with args. 4049set dummy javac; ac_word=$2 4050echo "$as_me:$LINENO: checking for $ac_word" >&5 4051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4052if test "${ac_cv_path_JAVAC+set}" = set; then 4053 echo $ECHO_N "(cached) $ECHO_C" >&6 4054else 4055 case $JAVAC in 4056 [\\/]* | ?:[\\/]*) 4057 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 4058 ;; 4059 *) 4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061for as_dir in $PATH 4062do 4063 IFS=$as_save_IFS 4064 test -z "$as_dir" && as_dir=. 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4067 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4069 break 2 4070 fi 4071done 4072done 4073 4074 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no" 4075 ;; 4076esac 4077fi 4078JAVAC=$ac_cv_path_JAVAC 4079 4080if test -n "$JAVAC"; then 4081 echo "$as_me:$LINENO: result: $JAVAC" >&5 4082echo "${ECHO_T}$JAVAC" >&6 4083else 4084 echo "$as_me:$LINENO: result: no" >&5 4085echo "${ECHO_T}no" >&6 4086fi 4087 4088 for ac_prog in javah kaffeh 4089do 4090 # Extract the first word of "$ac_prog", so it can be a program name with args. 4091set dummy $ac_prog; ac_word=$2 4092echo "$as_me:$LINENO: checking for $ac_word" >&5 4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4094if test "${ac_cv_path_JAVAH+set}" = set; then 4095 echo $ECHO_N "(cached) $ECHO_C" >&6 4096else 4097 case $JAVAH in 4098 [\\/]* | ?:[\\/]*) 4099 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 4100 ;; 4101 *) 4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4103for as_dir in $PATH 4104do 4105 IFS=$as_save_IFS 4106 test -z "$as_dir" && as_dir=. 4107 for ac_exec_ext in '' $ac_executable_extensions; do 4108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4109 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4111 break 2 4112 fi 4113done 4114done 4115 4116 ;; 4117esac 4118fi 4119JAVAH=$ac_cv_path_JAVAH 4120 4121if test -n "$JAVAH"; then 4122 echo "$as_me:$LINENO: result: $JAVAH" >&5 4123echo "${ECHO_T}$JAVAH" >&6 4124else 4125 echo "$as_me:$LINENO: result: no" >&5 4126echo "${ECHO_T}no" >&6 4127fi 4128 4129 test -n "$JAVAH" && break 4130done 4131test -n "$JAVAH" || JAVAH="no" 4132 4133 for ac_prog in javadoc 4134do 4135 # Extract the first word of "$ac_prog", so it can be a program name with args. 4136set dummy $ac_prog; ac_word=$2 4137echo "$as_me:$LINENO: checking for $ac_word" >&5 4138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4139if test "${ac_cv_prog_JAVADOC+set}" = set; then 4140 echo $ECHO_N "(cached) $ECHO_C" >&6 4141else 4142 if test -n "$JAVADOC"; then 4143 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test. 4144else 4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4152 ac_cv_prog_JAVADOC="$ac_prog" 4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4154 break 2 4155 fi 4156done 4157done 4158 4159fi 4160fi 4161JAVADOC=$ac_cv_prog_JAVADOC 4162if test -n "$JAVADOC"; then 4163 echo "$as_me:$LINENO: result: $JAVADOC" >&5 4164echo "${ECHO_T}$JAVADOC" >&6 4165else 4166 echo "$as_me:$LINENO: result: no" >&5 4167echo "${ECHO_T}no" >&6 4168fi 4169 4170 test -n "$JAVADOC" && break 4171done 4172test -n "$JAVADOC" || JAVADOC=":" 4173 4174 if test "$JAVAC" = "no" -o "$JAVAH" = "no"; then 4175 { echo "$as_me:$LINENO: WARNING: Disabling Java support" >&5 4176echo "$as_me: WARNING: Disabling Java support" >&2;} 4177 enable_java=no 4178 fi 4179else 4180# Make distcheck work 4181 JAVAC="true" 4182 JAVAH="true" 4183 JAVADOC="true" 4184fi 4185 4186 4187if test "$enable_java" = yes; then 4188 JAVA_TRUE= 4189 JAVA_FALSE='#' 4190else 4191 JAVA_TRUE='#' 4192 JAVA_FALSE= 4193fi 4194 4195 4196if test "$enable_java" = yes; then 4197 echo "$as_me:$LINENO: checking JNI cpp flags" >&5 4198echo $ECHO_N "checking JNI cpp flags... $ECHO_C" >&6 4199 if test "${sasl_cv_java_includes+set}" = set; then 4200 echo $ECHO_N "(cached) $ECHO_C" >&6 4201else 4202 4203 if test `echo $JAVAH | sed 's,.*/,,'` = "kaffeh"; then 4204 sasl_cv_java_includes=-I`echo $JAVAH | sed -e 's,/bin.*,/include/kaffe,'` 4205 else 4206 java_base=`echo $JAVAC | sed 's,/bin.*,'','` 4207 4208 4209# Check whether --with-javabase or --without-javabase was given. 4210if test "${with_javabase+set}" = set; then 4211 withval="$with_javabase" 4212 java_base=$withval 4213fi; 4214 4215 4216 sasl_cv_java_includes='' 4217 for dir in `find ${java_base}/include -follow -type d -print | grep -v green_threads`; do 4218 sasl_cv_java_includes="${sasl_cv_java_includes} -I$dir" 4219 done 4220 fi 4221 4222 sasl_cv_java_includes="${sasl_cv_java_includes} -I$javapath/include" 4223fi 4224 4225 4226 JAVA_INCLUDES=$sasl_cv_java_includes 4227 4228 echo "$as_me:$LINENO: result: ok" >&5 4229echo "${ECHO_T}ok" >&6 4230 4231 JAVAROOT=".." 4232 4233 JAVAC=`echo "$JAVAC" | sed 's,.*/,,'` 4234 JAVAH=`echo "$JAVAH" | sed 's,.*/,,'` 4235fi 4236 4237 4238 4239if test "$enable_sample" = yes; then 4240 SAMPLE_TRUE= 4241 SAMPLE_FALSE='#' 4242else 4243 SAMPLE_TRUE='#' 4244 SAMPLE_FALSE= 4245fi 4246 4247 4248 4249 save_LIBS="$LIBS" 4250 LIB_SOCKET="" 4251 echo "$as_me:$LINENO: checking for connect" >&5 4252echo $ECHO_N "checking for connect... $ECHO_C" >&6 4253if test "${ac_cv_func_connect+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 cat >conftest.$ac_ext <<_ACEOF 4257#line $LINENO "configure" 4258/* confdefs.h. */ 4259_ACEOF 4260cat confdefs.h >>conftest.$ac_ext 4261cat >>conftest.$ac_ext <<_ACEOF 4262/* end confdefs.h. */ 4263/* System header to define __stub macros and hopefully few prototypes, 4264 which can conflict with char connect (); below. 4265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4266 <limits.h> exists even on freestanding compilers. */ 4267#ifdef __STDC__ 4268# include <limits.h> 4269#else 4270# include <assert.h> 4271#endif 4272/* Override any gcc2 internal prototype to avoid an error. */ 4273#ifdef __cplusplus 4274extern "C" 4275{ 4276#endif 4277/* We use char because int might match the return type of a gcc2 4278 builtin and then its argument prototype would still apply. */ 4279char connect (); 4280/* The GNU C library defines this for functions which it implements 4281 to always fail with ENOSYS. Some functions are actually named 4282 something starting with __ and the normal name is an alias. */ 4283#if defined (__stub_connect) || defined (__stub___connect) 4284choke me 4285#else 4286char (*f) () = connect; 4287#endif 4288#ifdef __cplusplus 4289} 4290#endif 4291 4292int 4293main () 4294{ 4295return f != connect; 4296 ; 4297 return 0; 4298} 4299_ACEOF 4300rm -f conftest.$ac_objext conftest$ac_exeext 4301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4302 (eval $ac_link) 2>&5 4303 ac_status=$? 4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 (exit $ac_status); } && 4306 { ac_try='test -s conftest$ac_exeext' 4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4308 (eval $ac_try) 2>&5 4309 ac_status=$? 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); }; }; then 4312 ac_cv_func_connect=yes 4313else 4314 echo "$as_me: failed program was:" >&5 4315sed 's/^/| /' conftest.$ac_ext >&5 4316 4317ac_cv_func_connect=no 4318fi 4319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4320fi 4321echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4322echo "${ECHO_T}$ac_cv_func_connect" >&6 4323if test $ac_cv_func_connect = yes; then 4324 : 4325else 4326 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4327echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4328if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330else 4331 ac_check_lib_save_LIBS=$LIBS 4332LIBS="-lnsl $LIBS" 4333cat >conftest.$ac_ext <<_ACEOF 4334#line $LINENO "configure" 4335/* confdefs.h. */ 4336_ACEOF 4337cat confdefs.h >>conftest.$ac_ext 4338cat >>conftest.$ac_ext <<_ACEOF 4339/* end confdefs.h. */ 4340 4341/* Override any gcc2 internal prototype to avoid an error. */ 4342#ifdef __cplusplus 4343extern "C" 4344#endif 4345/* We use char because int might match the return type of a gcc2 4346 builtin and then its argument prototype would still apply. */ 4347char gethostbyname (); 4348int 4349main () 4350{ 4351gethostbyname (); 4352 ; 4353 return 0; 4354} 4355_ACEOF 4356rm -f conftest.$ac_objext conftest$ac_exeext 4357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4358 (eval $ac_link) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); } && 4362 { ac_try='test -s conftest$ac_exeext' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; }; then 4368 ac_cv_lib_nsl_gethostbyname=yes 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373ac_cv_lib_nsl_gethostbyname=no 4374fi 4375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4376LIBS=$ac_check_lib_save_LIBS 4377fi 4378echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4379echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4380if test $ac_cv_lib_nsl_gethostbyname = yes; then 4381 LIB_SOCKET="-lnsl $LIB_SOCKET" 4382fi 4383 4384 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4385echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 4386if test "${ac_cv_lib_socket_connect+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 ac_check_lib_save_LIBS=$LIBS 4390LIBS="-lsocket $LIBS" 4391cat >conftest.$ac_ext <<_ACEOF 4392#line $LINENO "configure" 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398 4399/* Override any gcc2 internal prototype to avoid an error. */ 4400#ifdef __cplusplus 4401extern "C" 4402#endif 4403/* We use char because int might match the return type of a gcc2 4404 builtin and then its argument prototype would still apply. */ 4405char connect (); 4406int 4407main () 4408{ 4409connect (); 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414rm -f conftest.$ac_objext conftest$ac_exeext 4415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4416 (eval $ac_link) 2>&5 4417 ac_status=$? 4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419 (exit $ac_status); } && 4420 { ac_try='test -s conftest$ac_exeext' 4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4422 (eval $ac_try) 2>&5 4423 ac_status=$? 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); }; }; then 4426 ac_cv_lib_socket_connect=yes 4427else 4428 echo "$as_me: failed program was:" >&5 4429sed 's/^/| /' conftest.$ac_ext >&5 4430 4431ac_cv_lib_socket_connect=no 4432fi 4433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4434LIBS=$ac_check_lib_save_LIBS 4435fi 4436echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4437echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 4438if test $ac_cv_lib_socket_connect = yes; then 4439 LIB_SOCKET="-lsocket $LIB_SOCKET" 4440fi 4441 4442 4443fi 4444 4445 LIBS="$LIB_SOCKET $save_LIBS" 4446 echo "$as_me:$LINENO: checking for res_search" >&5 4447echo $ECHO_N "checking for res_search... $ECHO_C" >&6 4448if test "${ac_cv_func_res_search+set}" = set; then 4449 echo $ECHO_N "(cached) $ECHO_C" >&6 4450else 4451 cat >conftest.$ac_ext <<_ACEOF 4452#line $LINENO "configure" 4453/* confdefs.h. */ 4454_ACEOF 4455cat confdefs.h >>conftest.$ac_ext 4456cat >>conftest.$ac_ext <<_ACEOF 4457/* end confdefs.h. */ 4458/* System header to define __stub macros and hopefully few prototypes, 4459 which can conflict with char res_search (); below. 4460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4461 <limits.h> exists even on freestanding compilers. */ 4462#ifdef __STDC__ 4463# include <limits.h> 4464#else 4465# include <assert.h> 4466#endif 4467/* Override any gcc2 internal prototype to avoid an error. */ 4468#ifdef __cplusplus 4469extern "C" 4470{ 4471#endif 4472/* We use char because int might match the return type of a gcc2 4473 builtin and then its argument prototype would still apply. */ 4474char res_search (); 4475/* The GNU C library defines this for functions which it implements 4476 to always fail with ENOSYS. Some functions are actually named 4477 something starting with __ and the normal name is an alias. */ 4478#if defined (__stub_res_search) || defined (__stub___res_search) 4479choke me 4480#else 4481char (*f) () = res_search; 4482#endif 4483#ifdef __cplusplus 4484} 4485#endif 4486 4487int 4488main () 4489{ 4490return f != res_search; 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495rm -f conftest.$ac_objext conftest$ac_exeext 4496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4497 (eval $ac_link) 2>&5 4498 ac_status=$? 4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4500 (exit $ac_status); } && 4501 { ac_try='test -s conftest$ac_exeext' 4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4503 (eval $ac_try) 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); }; }; then 4507 ac_cv_func_res_search=yes 4508else 4509 echo "$as_me: failed program was:" >&5 4510sed 's/^/| /' conftest.$ac_ext >&5 4511 4512ac_cv_func_res_search=no 4513fi 4514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4515fi 4516echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5 4517echo "${ECHO_T}$ac_cv_func_res_search" >&6 4518if test $ac_cv_func_res_search = yes; then 4519 : 4520else 4521 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 4522echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 4523if test "${ac_cv_lib_resolv_res_search+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525else 4526 ac_check_lib_save_LIBS=$LIBS 4527LIBS="-lresolv $LIBS" 4528cat >conftest.$ac_ext <<_ACEOF 4529#line $LINENO "configure" 4530/* confdefs.h. */ 4531_ACEOF 4532cat confdefs.h >>conftest.$ac_ext 4533cat >>conftest.$ac_ext <<_ACEOF 4534/* end confdefs.h. */ 4535 4536/* Override any gcc2 internal prototype to avoid an error. */ 4537#ifdef __cplusplus 4538extern "C" 4539#endif 4540/* We use char because int might match the return type of a gcc2 4541 builtin and then its argument prototype would still apply. */ 4542char res_search (); 4543int 4544main () 4545{ 4546res_search (); 4547 ; 4548 return 0; 4549} 4550_ACEOF 4551rm -f conftest.$ac_objext conftest$ac_exeext 4552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4553 (eval $ac_link) 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } && 4557 { ac_try='test -s conftest$ac_exeext' 4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4559 (eval $ac_try) 2>&5 4560 ac_status=$? 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); }; }; then 4563 ac_cv_lib_resolv_res_search=yes 4564else 4565 echo "$as_me: failed program was:" >&5 4566sed 's/^/| /' conftest.$ac_ext >&5 4567 4568ac_cv_lib_resolv_res_search=no 4569fi 4570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4571LIBS=$ac_check_lib_save_LIBS 4572fi 4573echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 4574echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 4575if test $ac_cv_lib_resolv_res_search = yes; then 4576 LIB_SOCKET="-lresolv $LIB_SOCKET" 4577fi 4578 4579 4580fi 4581 4582 LIBS="$LIB_SOCKET $save_LIBS" 4583 4584 4585for ac_func in dn_expand dns_lookup 4586do 4587as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4588echo "$as_me:$LINENO: checking for $ac_func" >&5 4589echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4590if eval "test \"\${$as_ac_var+set}\" = set"; then 4591 echo $ECHO_N "(cached) $ECHO_C" >&6 4592else 4593 cat >conftest.$ac_ext <<_ACEOF 4594#line $LINENO "configure" 4595/* confdefs.h. */ 4596_ACEOF 4597cat confdefs.h >>conftest.$ac_ext 4598cat >>conftest.$ac_ext <<_ACEOF 4599/* end confdefs.h. */ 4600/* System header to define __stub macros and hopefully few prototypes, 4601 which can conflict with char $ac_func (); below. 4602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4603 <limits.h> exists even on freestanding compilers. */ 4604#ifdef __STDC__ 4605# include <limits.h> 4606#else 4607# include <assert.h> 4608#endif 4609/* Override any gcc2 internal prototype to avoid an error. */ 4610#ifdef __cplusplus 4611extern "C" 4612{ 4613#endif 4614/* We use char because int might match the return type of a gcc2 4615 builtin and then its argument prototype would still apply. */ 4616char $ac_func (); 4617/* The GNU C library defines this for functions which it implements 4618 to always fail with ENOSYS. Some functions are actually named 4619 something starting with __ and the normal name is an alias. */ 4620#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4621choke me 4622#else 4623char (*f) () = $ac_func; 4624#endif 4625#ifdef __cplusplus 4626} 4627#endif 4628 4629int 4630main () 4631{ 4632return f != $ac_func; 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637rm -f conftest.$ac_objext conftest$ac_exeext 4638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4639 (eval $ac_link) 2>&5 4640 ac_status=$? 4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4642 (exit $ac_status); } && 4643 { ac_try='test -s conftest$ac_exeext' 4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4645 (eval $ac_try) 2>&5 4646 ac_status=$? 4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4648 (exit $ac_status); }; }; then 4649 eval "$as_ac_var=yes" 4650else 4651 echo "$as_me: failed program was:" >&5 4652sed 's/^/| /' conftest.$ac_ext >&5 4653 4654eval "$as_ac_var=no" 4655fi 4656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4657fi 4658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4660if test `eval echo '${'$as_ac_var'}'` = yes; then 4661 cat >>confdefs.h <<_ACEOF 4662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4663_ACEOF 4664 4665fi 4666done 4667 4668 LIBS="$save_LIBS" 4669 4670 4671 4672 4673 4674# Check whether --with-dbpath or --without-dbpath was given. 4675if test "${with_dbpath+set}" = set; then 4676 withval="$with_dbpath" 4677 dbpath=$withval 4678else 4679 dbpath=/etc/sasldb2 4680fi; 4681echo "$as_me:$LINENO: checking DB path to use" >&5 4682echo $ECHO_N "checking DB path to use... $ECHO_C" >&6 4683echo "$as_me:$LINENO: result: $dbpath" >&5 4684echo "${ECHO_T}$dbpath" >&6 4685 4686cat >>confdefs.h <<_ACEOF 4687#define SASL_DB_PATH "$dbpath" 4688_ACEOF 4689 4690 4691echo "$as_me:$LINENO: checking for egrep" >&5 4692echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4693if test "${ac_cv_prog_egrep+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4697 then ac_cv_prog_egrep='grep -E' 4698 else ac_cv_prog_egrep='egrep' 4699 fi 4700fi 4701echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4702echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4703 EGREP=$ac_cv_prog_egrep 4704 4705 4706echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4707echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4708if test "${ac_cv_header_stdc+set}" = set; then 4709 echo $ECHO_N "(cached) $ECHO_C" >&6 4710else 4711 cat >conftest.$ac_ext <<_ACEOF 4712#line $LINENO "configure" 4713/* confdefs.h. */ 4714_ACEOF 4715cat confdefs.h >>conftest.$ac_ext 4716cat >>conftest.$ac_ext <<_ACEOF 4717/* end confdefs.h. */ 4718#include <stdlib.h> 4719#include <stdarg.h> 4720#include <string.h> 4721#include <float.h> 4722 4723int 4724main () 4725{ 4726 4727 ; 4728 return 0; 4729} 4730_ACEOF 4731rm -f conftest.$ac_objext 4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4733 (eval $ac_compile) 2>&5 4734 ac_status=$? 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); } && 4737 { ac_try='test -s conftest.$ac_objext' 4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4739 (eval $ac_try) 2>&5 4740 ac_status=$? 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); }; }; then 4743 ac_cv_header_stdc=yes 4744else 4745 echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748ac_cv_header_stdc=no 4749fi 4750rm -f conftest.$ac_objext conftest.$ac_ext 4751 4752if test $ac_cv_header_stdc = yes; then 4753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4754 cat >conftest.$ac_ext <<_ACEOF 4755#line $LINENO "configure" 4756/* confdefs.h. */ 4757_ACEOF 4758cat confdefs.h >>conftest.$ac_ext 4759cat >>conftest.$ac_ext <<_ACEOF 4760/* end confdefs.h. */ 4761#include <string.h> 4762 4763_ACEOF 4764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4765 $EGREP "memchr" >/dev/null 2>&1; then 4766 : 4767else 4768 ac_cv_header_stdc=no 4769fi 4770rm -f conftest* 4771 4772fi 4773 4774if test $ac_cv_header_stdc = yes; then 4775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4776 cat >conftest.$ac_ext <<_ACEOF 4777#line $LINENO "configure" 4778/* confdefs.h. */ 4779_ACEOF 4780cat confdefs.h >>conftest.$ac_ext 4781cat >>conftest.$ac_ext <<_ACEOF 4782/* end confdefs.h. */ 4783#include <stdlib.h> 4784 4785_ACEOF 4786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4787 $EGREP "free" >/dev/null 2>&1; then 4788 : 4789else 4790 ac_cv_header_stdc=no 4791fi 4792rm -f conftest* 4793 4794fi 4795 4796if test $ac_cv_header_stdc = yes; then 4797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4798 if test "$cross_compiling" = yes; then 4799 : 4800else 4801 cat >conftest.$ac_ext <<_ACEOF 4802#line $LINENO "configure" 4803/* confdefs.h. */ 4804_ACEOF 4805cat confdefs.h >>conftest.$ac_ext 4806cat >>conftest.$ac_ext <<_ACEOF 4807/* end confdefs.h. */ 4808#include <ctype.h> 4809#if ((' ' & 0x0FF) == 0x020) 4810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4812#else 4813# define ISLOWER(c) \ 4814 (('a' <= (c) && (c) <= 'i') \ 4815 || ('j' <= (c) && (c) <= 'r') \ 4816 || ('s' <= (c) && (c) <= 'z')) 4817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4818#endif 4819 4820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4821int 4822main () 4823{ 4824 int i; 4825 for (i = 0; i < 256; i++) 4826 if (XOR (islower (i), ISLOWER (i)) 4827 || toupper (i) != TOUPPER (i)) 4828 exit(2); 4829 exit (0); 4830} 4831_ACEOF 4832rm -f conftest$ac_exeext 4833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4834 (eval $ac_link) 2>&5 4835 ac_status=$? 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4839 (eval $ac_try) 2>&5 4840 ac_status=$? 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); }; }; then 4843 : 4844else 4845 echo "$as_me: program exited with status $ac_status" >&5 4846echo "$as_me: failed program was:" >&5 4847sed 's/^/| /' conftest.$ac_ext >&5 4848 4849( exit $ac_status ) 4850ac_cv_header_stdc=no 4851fi 4852rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4853fi 4854fi 4855fi 4856echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4857echo "${ECHO_T}$ac_cv_header_stdc" >&6 4858if test $ac_cv_header_stdc = yes; then 4859 4860cat >>confdefs.h <<\_ACEOF 4861#define STDC_HEADERS 1 4862_ACEOF 4863 4864fi 4865 4866# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4877 inttypes.h stdint.h unistd.h 4878do 4879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4880echo "$as_me:$LINENO: checking for $ac_header" >&5 4881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4882if eval "test \"\${$as_ac_Header+set}\" = set"; then 4883 echo $ECHO_N "(cached) $ECHO_C" >&6 4884else 4885 cat >conftest.$ac_ext <<_ACEOF 4886#line $LINENO "configure" 4887/* confdefs.h. */ 4888_ACEOF 4889cat confdefs.h >>conftest.$ac_ext 4890cat >>conftest.$ac_ext <<_ACEOF 4891/* end confdefs.h. */ 4892$ac_includes_default 4893 4894#include <$ac_header> 4895_ACEOF 4896rm -f conftest.$ac_objext 4897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4898 (eval $ac_compile) 2>&5 4899 ac_status=$? 4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4901 (exit $ac_status); } && 4902 { ac_try='test -s conftest.$ac_objext' 4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4904 (eval $ac_try) 2>&5 4905 ac_status=$? 4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4907 (exit $ac_status); }; }; then 4908 eval "$as_ac_Header=yes" 4909else 4910 echo "$as_me: failed program was:" >&5 4911sed 's/^/| /' conftest.$ac_ext >&5 4912 4913eval "$as_ac_Header=no" 4914fi 4915rm -f conftest.$ac_objext conftest.$ac_ext 4916fi 4917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4919if test `eval echo '${'$as_ac_Header'}'` = yes; then 4920 cat >>confdefs.h <<_ACEOF 4921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4922_ACEOF 4923 4924fi 4925 4926done 4927 4928 4929 4930cmu_save_LIBS="$LIBS" 4931 4932# Check whether --with-dblib or --without-dblib was given. 4933if test "${with_dblib+set}" = set; then 4934 withval="$with_dblib" 4935 dblib=$withval 4936else 4937 dblib=auto_detect 4938fi; 4939 4940 4941 4942# Check whether --with-bdb-libdir or --without-bdb-libdir was given. 4943if test "${with_bdb_libdir+set}" = set; then 4944 withval="$with_bdb_libdir" 4945 with_bdb_lib=$withval 4946else 4947 test "${with_bdb_lib+set}" = set || with_bdb_lib=none 4948fi; 4949 4950# Check whether --with-bdb-incdir or --without-bdb-incdir was given. 4951if test "${with_bdb_incdir+set}" = set; then 4952 withval="$with_bdb_incdir" 4953 with_bdb_inc=$withval 4954else 4955 test "${with_bdb_inc+set}" = set || with_bdb_inc=none 4956fi; 4957 4958 4959SASL_DB_LIB="" 4960 4961case "$dblib" in 4962 berkeley) 4963 4964 4965 4966 cmu_save_CPPFLAGS=$CPPFLAGS 4967 4968 if test -d $with_bdb_inc; then 4969 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 4970 BDB_INCADD="-I$with_bdb_inc" 4971 else 4972 BDB_INCADD="" 4973 fi 4974 4975 if test "${ac_cv_header_db_h+set}" = set; then 4976 echo "$as_me:$LINENO: checking for db.h" >&5 4977echo $ECHO_N "checking for db.h... $ECHO_C" >&6 4978if test "${ac_cv_header_db_h+set}" = set; then 4979 echo $ECHO_N "(cached) $ECHO_C" >&6 4980fi 4981echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 4982echo "${ECHO_T}$ac_cv_header_db_h" >&6 4983else 4984 # Is the header compilable? 4985echo "$as_me:$LINENO: checking db.h usability" >&5 4986echo $ECHO_N "checking db.h usability... $ECHO_C" >&6 4987cat >conftest.$ac_ext <<_ACEOF 4988#line $LINENO "configure" 4989/* confdefs.h. */ 4990_ACEOF 4991cat confdefs.h >>conftest.$ac_ext 4992cat >>conftest.$ac_ext <<_ACEOF 4993/* end confdefs.h. */ 4994$ac_includes_default 4995#include <db.h> 4996_ACEOF 4997rm -f conftest.$ac_objext 4998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4999 (eval $ac_compile) 2>&5 5000 ac_status=$? 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && 5003 { ac_try='test -s conftest.$ac_objext' 5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5005 (eval $ac_try) 2>&5 5006 ac_status=$? 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); }; }; then 5009 ac_header_compiler=yes 5010else 5011 echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014ac_header_compiler=no 5015fi 5016rm -f conftest.$ac_objext conftest.$ac_ext 5017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5018echo "${ECHO_T}$ac_header_compiler" >&6 5019 5020# Is the header present? 5021echo "$as_me:$LINENO: checking db.h presence" >&5 5022echo $ECHO_N "checking db.h presence... $ECHO_C" >&6 5023cat >conftest.$ac_ext <<_ACEOF 5024#line $LINENO "configure" 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030#include <db.h> 5031_ACEOF 5032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5034 ac_status=$? 5035 grep -v '^ *+' conftest.er1 >conftest.err 5036 rm -f conftest.er1 5037 cat conftest.err >&5 5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 (exit $ac_status); } >/dev/null; then 5040 if test -s conftest.err; then 5041 ac_cpp_err=$ac_c_preproc_warn_flag 5042 else 5043 ac_cpp_err= 5044 fi 5045else 5046 ac_cpp_err=yes 5047fi 5048if test -z "$ac_cpp_err"; then 5049 ac_header_preproc=yes 5050else 5051 echo "$as_me: failed program was:" >&5 5052sed 's/^/| /' conftest.$ac_ext >&5 5053 5054 ac_header_preproc=no 5055fi 5056rm -f conftest.err conftest.$ac_ext 5057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5058echo "${ECHO_T}$ac_header_preproc" >&6 5059 5060# So? What about this header? 5061case $ac_header_compiler:$ac_header_preproc in 5062 yes:no ) 5063 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5 5064echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5065 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 5066echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 5067 ( 5068 cat <<\_ASBOX 5069## ------------------------------------ ## 5070## Report this to bug-autoconf@gnu.org. ## 5071## ------------------------------------ ## 5072_ASBOX 5073 ) | 5074 sed "s/^/$as_me: WARNING: /" >&2 5075 ;; 5076 no:yes ) 5077 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5 5078echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;} 5079 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5 5080echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;} 5081 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 5082echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 5083 ( 5084 cat <<\_ASBOX 5085## ------------------------------------ ## 5086## Report this to bug-autoconf@gnu.org. ## 5087## ------------------------------------ ## 5088_ASBOX 5089 ) | 5090 sed "s/^/$as_me: WARNING: /" >&2 5091 ;; 5092esac 5093echo "$as_me:$LINENO: checking for db.h" >&5 5094echo $ECHO_N "checking for db.h... $ECHO_C" >&6 5095if test "${ac_cv_header_db_h+set}" = set; then 5096 echo $ECHO_N "(cached) $ECHO_C" >&6 5097else 5098 ac_cv_header_db_h=$ac_header_preproc 5099fi 5100echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 5101echo "${ECHO_T}$ac_cv_header_db_h" >&6 5102 5103fi 5104if test $ac_cv_header_db_h = yes; then 5105 5106 BDB_SAVE_LIBS=$LIBS 5107 5108 if test -d $with_bdb_lib; then 5109 5110 # this is CMU ADD LIBPATH TO 5111 if test "$andrew_runpath_switch" = "none" ; then 5112 LIBS="-L$with_bdb_lib ${LIBS}" 5113 else 5114 LIBS="-L$with_bdb_lib ${LIBS} $andrew_runpath_switch$with_bdb_lib" 5115 fi 5116 5117 5118 # this is CMU ADD LIBPATH TO 5119 if test "$andrew_runpath_switch" = "none" ; then 5120 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 5121 else 5122 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib" 5123 fi 5124 5125 else 5126 BDB_LIBADD="" 5127 fi 5128 5129 for dbname in 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 5130 do 5131 as_ac_Lib=`echo "ac_cv_lib_$dbname''_db_create" | $as_tr_sh` 5132echo "$as_me:$LINENO: checking for db_create in -l$dbname" >&5 5133echo $ECHO_N "checking for db_create in -l$dbname... $ECHO_C" >&6 5134if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5135 echo $ECHO_N "(cached) $ECHO_C" >&6 5136else 5137 ac_check_lib_save_LIBS=$LIBS 5138LIBS="-l$dbname $LIBS" 5139cat >conftest.$ac_ext <<_ACEOF 5140#line $LINENO "configure" 5141/* confdefs.h. */ 5142_ACEOF 5143cat confdefs.h >>conftest.$ac_ext 5144cat >>conftest.$ac_ext <<_ACEOF 5145/* end confdefs.h. */ 5146 5147/* Override any gcc2 internal prototype to avoid an error. */ 5148#ifdef __cplusplus 5149extern "C" 5150#endif 5151/* We use char because int might match the return type of a gcc2 5152 builtin and then its argument prototype would still apply. */ 5153char db_create (); 5154int 5155main () 5156{ 5157db_create (); 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162rm -f conftest.$ac_objext conftest$ac_exeext 5163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5164 (eval $ac_link) 2>&5 5165 ac_status=$? 5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5167 (exit $ac_status); } && 5168 { ac_try='test -s conftest$ac_exeext' 5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5170 (eval $ac_try) 2>&5 5171 ac_status=$? 5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 (exit $ac_status); }; }; then 5174 eval "$as_ac_Lib=yes" 5175else 5176 echo "$as_me: failed program was:" >&5 5177sed 's/^/| /' conftest.$ac_ext >&5 5178 5179eval "$as_ac_Lib=no" 5180fi 5181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5182LIBS=$ac_check_lib_save_LIBS 5183fi 5184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5185echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5186if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5187 BDB_LIBADD="$BDB_LIBADD -l$dbname"; 5188 dblib="berkeley"; break 5189else 5190 dblib="no" 5191fi 5192 5193 done 5194 if test "$dblib" = "no"; then 5195 echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 5196echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6 5197if test "${ac_cv_lib_db_db_open+set}" = set; then 5198 echo $ECHO_N "(cached) $ECHO_C" >&6 5199else 5200 ac_check_lib_save_LIBS=$LIBS 5201LIBS="-ldb $LIBS" 5202cat >conftest.$ac_ext <<_ACEOF 5203#line $LINENO "configure" 5204/* confdefs.h. */ 5205_ACEOF 5206cat confdefs.h >>conftest.$ac_ext 5207cat >>conftest.$ac_ext <<_ACEOF 5208/* end confdefs.h. */ 5209 5210/* Override any gcc2 internal prototype to avoid an error. */ 5211#ifdef __cplusplus 5212extern "C" 5213#endif 5214/* We use char because int might match the return type of a gcc2 5215 builtin and then its argument prototype would still apply. */ 5216char db_open (); 5217int 5218main () 5219{ 5220db_open (); 5221 ; 5222 return 0; 5223} 5224_ACEOF 5225rm -f conftest.$ac_objext conftest$ac_exeext 5226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5227 (eval $ac_link) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); } && 5231 { ac_try='test -s conftest$ac_exeext' 5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5233 (eval $ac_try) 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); }; }; then 5237 ac_cv_lib_db_db_open=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242ac_cv_lib_db_db_open=no 5243fi 5244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5245LIBS=$ac_check_lib_save_LIBS 5246fi 5247echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 5248echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6 5249if test $ac_cv_lib_db_db_open = yes; then 5250 BDB_LIBADD="$BDB_LIBADD -ldb"; 5251 dblib="berkeley"; dbname=db 5252else 5253 dblib="no" 5254fi 5255 5256 fi 5257 5258 LIBS=$BDB_SAVE_LIBS 5259 5260else 5261 dblib="no" 5262fi 5263 5264 5265 5266 CPPFLAGS=$cmu_save_CPPFLAGS 5267 5268 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 5269 SASL_DB_INC=$BDB_INCADD 5270 SASL_DB_LIB="${BDB_LIBADD}" 5271 ;; 5272 gdbm) 5273 5274# Check whether --with-gdbm or --without-gdbm was given. 5275if test "${with_gdbm+set}" = set; then 5276 withval="$with_gdbm" 5277 with_gdbm="${withval}" 5278fi; 5279 5280 case "$with_gdbm" in 5281 ""|yes) 5282 if test "${ac_cv_header_gdbm_h+set}" = set; then 5283 echo "$as_me:$LINENO: checking for gdbm.h" >&5 5284echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6 5285if test "${ac_cv_header_gdbm_h+set}" = set; then 5286 echo $ECHO_N "(cached) $ECHO_C" >&6 5287fi 5288echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 5289echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6 5290else 5291 # Is the header compilable? 5292echo "$as_me:$LINENO: checking gdbm.h usability" >&5 5293echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6 5294cat >conftest.$ac_ext <<_ACEOF 5295#line $LINENO "configure" 5296/* confdefs.h. */ 5297_ACEOF 5298cat confdefs.h >>conftest.$ac_ext 5299cat >>conftest.$ac_ext <<_ACEOF 5300/* end confdefs.h. */ 5301$ac_includes_default 5302#include <gdbm.h> 5303_ACEOF 5304rm -f conftest.$ac_objext 5305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5306 (eval $ac_compile) 2>&5 5307 ac_status=$? 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5309 (exit $ac_status); } && 5310 { ac_try='test -s conftest.$ac_objext' 5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5312 (eval $ac_try) 2>&5 5313 ac_status=$? 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5315 (exit $ac_status); }; }; then 5316 ac_header_compiler=yes 5317else 5318 echo "$as_me: failed program was:" >&5 5319sed 's/^/| /' conftest.$ac_ext >&5 5320 5321ac_header_compiler=no 5322fi 5323rm -f conftest.$ac_objext conftest.$ac_ext 5324echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5325echo "${ECHO_T}$ac_header_compiler" >&6 5326 5327# Is the header present? 5328echo "$as_me:$LINENO: checking gdbm.h presence" >&5 5329echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6 5330cat >conftest.$ac_ext <<_ACEOF 5331#line $LINENO "configure" 5332/* confdefs.h. */ 5333_ACEOF 5334cat confdefs.h >>conftest.$ac_ext 5335cat >>conftest.$ac_ext <<_ACEOF 5336/* end confdefs.h. */ 5337#include <gdbm.h> 5338_ACEOF 5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5341 ac_status=$? 5342 grep -v '^ *+' conftest.er1 >conftest.err 5343 rm -f conftest.er1 5344 cat conftest.err >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5346 (exit $ac_status); } >/dev/null; then 5347 if test -s conftest.err; then 5348 ac_cpp_err=$ac_c_preproc_warn_flag 5349 else 5350 ac_cpp_err= 5351 fi 5352else 5353 ac_cpp_err=yes 5354fi 5355if test -z "$ac_cpp_err"; then 5356 ac_header_preproc=yes 5357else 5358 echo "$as_me: failed program was:" >&5 5359sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 ac_header_preproc=no 5362fi 5363rm -f conftest.err conftest.$ac_ext 5364echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5365echo "${ECHO_T}$ac_header_preproc" >&6 5366 5367# So? What about this header? 5368case $ac_header_compiler:$ac_header_preproc in 5369 yes:no ) 5370 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 5371echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5372 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 5373echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 5374 ( 5375 cat <<\_ASBOX 5376## ------------------------------------ ## 5377## Report this to bug-autoconf@gnu.org. ## 5378## ------------------------------------ ## 5379_ASBOX 5380 ) | 5381 sed "s/^/$as_me: WARNING: /" >&2 5382 ;; 5383 no:yes ) 5384 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5 5385echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;} 5386 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5 5387echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;} 5388 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 5389echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 5390 ( 5391 cat <<\_ASBOX 5392## ------------------------------------ ## 5393## Report this to bug-autoconf@gnu.org. ## 5394## ------------------------------------ ## 5395_ASBOX 5396 ) | 5397 sed "s/^/$as_me: WARNING: /" >&2 5398 ;; 5399esac 5400echo "$as_me:$LINENO: checking for gdbm.h" >&5 5401echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6 5402if test "${ac_cv_header_gdbm_h+set}" = set; then 5403 echo $ECHO_N "(cached) $ECHO_C" >&6 5404else 5405 ac_cv_header_gdbm_h=$ac_header_preproc 5406fi 5407echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 5408echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6 5409 5410fi 5411if test $ac_cv_header_gdbm_h = yes; then 5412 5413 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 5414echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6 5415if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then 5416 echo $ECHO_N "(cached) $ECHO_C" >&6 5417else 5418 ac_check_lib_save_LIBS=$LIBS 5419LIBS="-lgdbm $LIBS" 5420cat >conftest.$ac_ext <<_ACEOF 5421#line $LINENO "configure" 5422/* confdefs.h. */ 5423_ACEOF 5424cat confdefs.h >>conftest.$ac_ext 5425cat >>conftest.$ac_ext <<_ACEOF 5426/* end confdefs.h. */ 5427 5428/* Override any gcc2 internal prototype to avoid an error. */ 5429#ifdef __cplusplus 5430extern "C" 5431#endif 5432/* We use char because int might match the return type of a gcc2 5433 builtin and then its argument prototype would still apply. */ 5434char gdbm_open (); 5435int 5436main () 5437{ 5438gdbm_open (); 5439 ; 5440 return 0; 5441} 5442_ACEOF 5443rm -f conftest.$ac_objext conftest$ac_exeext 5444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5445 (eval $ac_link) 2>&5 5446 ac_status=$? 5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5448 (exit $ac_status); } && 5449 { ac_try='test -s conftest$ac_exeext' 5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5451 (eval $ac_try) 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; }; then 5455 ac_cv_lib_gdbm_gdbm_open=yes 5456else 5457 echo "$as_me: failed program was:" >&5 5458sed 's/^/| /' conftest.$ac_ext >&5 5459 5460ac_cv_lib_gdbm_gdbm_open=no 5461fi 5462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5463LIBS=$ac_check_lib_save_LIBS 5464fi 5465echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 5466echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6 5467if test $ac_cv_lib_gdbm_gdbm_open = yes; then 5468 SASL_DB_LIB="-lgdbm" 5469else 5470 dblib="no" 5471fi 5472 5473else 5474 dblib="no" 5475fi 5476 5477 5478 ;; 5479 *) 5480 if test -d $with_gdbm; then 5481 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include" 5482 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib" 5483 SASL_DB_LIB="-lgdbm" 5484 else 5485 with_gdbm="no" 5486 fi 5487 esac 5488 ;; 5489 ndbm) 5490 if test "${ac_cv_header_ndbm_h+set}" = set; then 5491 echo "$as_me:$LINENO: checking for ndbm.h" >&5 5492echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6 5493if test "${ac_cv_header_ndbm_h+set}" = set; then 5494 echo $ECHO_N "(cached) $ECHO_C" >&6 5495fi 5496echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 5497echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6 5498else 5499 # Is the header compilable? 5500echo "$as_me:$LINENO: checking ndbm.h usability" >&5 5501echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6 5502cat >conftest.$ac_ext <<_ACEOF 5503#line $LINENO "configure" 5504/* confdefs.h. */ 5505_ACEOF 5506cat confdefs.h >>conftest.$ac_ext 5507cat >>conftest.$ac_ext <<_ACEOF 5508/* end confdefs.h. */ 5509$ac_includes_default 5510#include <ndbm.h> 5511_ACEOF 5512rm -f conftest.$ac_objext 5513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5514 (eval $ac_compile) 2>&5 5515 ac_status=$? 5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } && 5518 { ac_try='test -s conftest.$ac_objext' 5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5520 (eval $ac_try) 2>&5 5521 ac_status=$? 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); }; }; then 5524 ac_header_compiler=yes 5525else 5526 echo "$as_me: failed program was:" >&5 5527sed 's/^/| /' conftest.$ac_ext >&5 5528 5529ac_header_compiler=no 5530fi 5531rm -f conftest.$ac_objext conftest.$ac_ext 5532echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5533echo "${ECHO_T}$ac_header_compiler" >&6 5534 5535# Is the header present? 5536echo "$as_me:$LINENO: checking ndbm.h presence" >&5 5537echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6 5538cat >conftest.$ac_ext <<_ACEOF 5539#line $LINENO "configure" 5540/* confdefs.h. */ 5541_ACEOF 5542cat confdefs.h >>conftest.$ac_ext 5543cat >>conftest.$ac_ext <<_ACEOF 5544/* end confdefs.h. */ 5545#include <ndbm.h> 5546_ACEOF 5547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5549 ac_status=$? 5550 grep -v '^ *+' conftest.er1 >conftest.err 5551 rm -f conftest.er1 5552 cat conftest.err >&5 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); } >/dev/null; then 5555 if test -s conftest.err; then 5556 ac_cpp_err=$ac_c_preproc_warn_flag 5557 else 5558 ac_cpp_err= 5559 fi 5560else 5561 ac_cpp_err=yes 5562fi 5563if test -z "$ac_cpp_err"; then 5564 ac_header_preproc=yes 5565else 5566 echo "$as_me: failed program was:" >&5 5567sed 's/^/| /' conftest.$ac_ext >&5 5568 5569 ac_header_preproc=no 5570fi 5571rm -f conftest.err conftest.$ac_ext 5572echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5573echo "${ECHO_T}$ac_header_preproc" >&6 5574 5575# So? What about this header? 5576case $ac_header_compiler:$ac_header_preproc in 5577 yes:no ) 5578 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 5579echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5580 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 5581echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 5582 ( 5583 cat <<\_ASBOX 5584## ------------------------------------ ## 5585## Report this to bug-autoconf@gnu.org. ## 5586## ------------------------------------ ## 5587_ASBOX 5588 ) | 5589 sed "s/^/$as_me: WARNING: /" >&2 5590 ;; 5591 no:yes ) 5592 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5 5593echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;} 5594 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5 5595echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;} 5596 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 5597echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 5598 ( 5599 cat <<\_ASBOX 5600## ------------------------------------ ## 5601## Report this to bug-autoconf@gnu.org. ## 5602## ------------------------------------ ## 5603_ASBOX 5604 ) | 5605 sed "s/^/$as_me: WARNING: /" >&2 5606 ;; 5607esac 5608echo "$as_me:$LINENO: checking for ndbm.h" >&5 5609echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6 5610if test "${ac_cv_header_ndbm_h+set}" = set; then 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 5612else 5613 ac_cv_header_ndbm_h=$ac_header_preproc 5614fi 5615echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 5616echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6 5617 5618fi 5619if test $ac_cv_header_ndbm_h = yes; then 5620 5621 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5 5622echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6 5623if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then 5624 echo $ECHO_N "(cached) $ECHO_C" >&6 5625else 5626 ac_check_lib_save_LIBS=$LIBS 5627LIBS="-lndbm $LIBS" 5628cat >conftest.$ac_ext <<_ACEOF 5629#line $LINENO "configure" 5630/* confdefs.h. */ 5631_ACEOF 5632cat confdefs.h >>conftest.$ac_ext 5633cat >>conftest.$ac_ext <<_ACEOF 5634/* end confdefs.h. */ 5635 5636/* Override any gcc2 internal prototype to avoid an error. */ 5637#ifdef __cplusplus 5638extern "C" 5639#endif 5640/* We use char because int might match the return type of a gcc2 5641 builtin and then its argument prototype would still apply. */ 5642char dbm_open (); 5643int 5644main () 5645{ 5646dbm_open (); 5647 ; 5648 return 0; 5649} 5650_ACEOF 5651rm -f conftest.$ac_objext conftest$ac_exeext 5652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5653 (eval $ac_link) 2>&5 5654 ac_status=$? 5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5656 (exit $ac_status); } && 5657 { ac_try='test -s conftest$ac_exeext' 5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5659 (eval $ac_try) 2>&5 5660 ac_status=$? 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5662 (exit $ac_status); }; }; then 5663 ac_cv_lib_ndbm_dbm_open=yes 5664else 5665 echo "$as_me: failed program was:" >&5 5666sed 's/^/| /' conftest.$ac_ext >&5 5667 5668ac_cv_lib_ndbm_dbm_open=no 5669fi 5670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5671LIBS=$ac_check_lib_save_LIBS 5672fi 5673echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5 5674echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6 5675if test $ac_cv_lib_ndbm_dbm_open = yes; then 5676 SASL_DB_LIB="-lndbm" 5677else 5678 5679 echo "$as_me:$LINENO: checking for dbm_open" >&5 5680echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6 5681if test "${ac_cv_func_dbm_open+set}" = set; then 5682 echo $ECHO_N "(cached) $ECHO_C" >&6 5683else 5684 cat >conftest.$ac_ext <<_ACEOF 5685#line $LINENO "configure" 5686/* confdefs.h. */ 5687_ACEOF 5688cat confdefs.h >>conftest.$ac_ext 5689cat >>conftest.$ac_ext <<_ACEOF 5690/* end confdefs.h. */ 5691/* System header to define __stub macros and hopefully few prototypes, 5692 which can conflict with char dbm_open (); below. 5693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5694 <limits.h> exists even on freestanding compilers. */ 5695#ifdef __STDC__ 5696# include <limits.h> 5697#else 5698# include <assert.h> 5699#endif 5700/* Override any gcc2 internal prototype to avoid an error. */ 5701#ifdef __cplusplus 5702extern "C" 5703{ 5704#endif 5705/* We use char because int might match the return type of a gcc2 5706 builtin and then its argument prototype would still apply. */ 5707char dbm_open (); 5708/* The GNU C library defines this for functions which it implements 5709 to always fail with ENOSYS. Some functions are actually named 5710 something starting with __ and the normal name is an alias. */ 5711#if defined (__stub_dbm_open) || defined (__stub___dbm_open) 5712choke me 5713#else 5714char (*f) () = dbm_open; 5715#endif 5716#ifdef __cplusplus 5717} 5718#endif 5719 5720int 5721main () 5722{ 5723return f != dbm_open; 5724 ; 5725 return 0; 5726} 5727_ACEOF 5728rm -f conftest.$ac_objext conftest$ac_exeext 5729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5730 (eval $ac_link) 2>&5 5731 ac_status=$? 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); } && 5734 { ac_try='test -s conftest$ac_exeext' 5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5736 (eval $ac_try) 2>&5 5737 ac_status=$? 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); }; }; then 5740 ac_cv_func_dbm_open=yes 5741else 5742 echo "$as_me: failed program was:" >&5 5743sed 's/^/| /' conftest.$ac_ext >&5 5744 5745ac_cv_func_dbm_open=no 5746fi 5747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5748fi 5749echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5 5750echo "${ECHO_T}$ac_cv_func_dbm_open" >&6 5751if test $ac_cv_func_dbm_open = yes; then 5752 : 5753else 5754 dblib="no" 5755fi 5756 5757fi 5758 5759else 5760 dblib="no" 5761fi 5762 5763 5764 ;; 5765 auto_detect) 5766 5767 5768 5769 cmu_save_CPPFLAGS=$CPPFLAGS 5770 5771 if test -d $with_bdb_inc; then 5772 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 5773 BDB_INCADD="-I$with_bdb_inc" 5774 else 5775 BDB_INCADD="" 5776 fi 5777 5778 if test "${ac_cv_header_db_h+set}" = set; then 5779 echo "$as_me:$LINENO: checking for db.h" >&5 5780echo $ECHO_N "checking for db.h... $ECHO_C" >&6 5781if test "${ac_cv_header_db_h+set}" = set; then 5782 echo $ECHO_N "(cached) $ECHO_C" >&6 5783fi 5784echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 5785echo "${ECHO_T}$ac_cv_header_db_h" >&6 5786else 5787 # Is the header compilable? 5788echo "$as_me:$LINENO: checking db.h usability" >&5 5789echo $ECHO_N "checking db.h usability... $ECHO_C" >&6 5790cat >conftest.$ac_ext <<_ACEOF 5791#line $LINENO "configure" 5792/* confdefs.h. */ 5793_ACEOF 5794cat confdefs.h >>conftest.$ac_ext 5795cat >>conftest.$ac_ext <<_ACEOF 5796/* end confdefs.h. */ 5797$ac_includes_default 5798#include <db.h> 5799_ACEOF 5800rm -f conftest.$ac_objext 5801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5802 (eval $ac_compile) 2>&5 5803 ac_status=$? 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); } && 5806 { ac_try='test -s conftest.$ac_objext' 5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5808 (eval $ac_try) 2>&5 5809 ac_status=$? 5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5811 (exit $ac_status); }; }; then 5812 ac_header_compiler=yes 5813else 5814 echo "$as_me: failed program was:" >&5 5815sed 's/^/| /' conftest.$ac_ext >&5 5816 5817ac_header_compiler=no 5818fi 5819rm -f conftest.$ac_objext conftest.$ac_ext 5820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5821echo "${ECHO_T}$ac_header_compiler" >&6 5822 5823# Is the header present? 5824echo "$as_me:$LINENO: checking db.h presence" >&5 5825echo $ECHO_N "checking db.h presence... $ECHO_C" >&6 5826cat >conftest.$ac_ext <<_ACEOF 5827#line $LINENO "configure" 5828/* confdefs.h. */ 5829_ACEOF 5830cat confdefs.h >>conftest.$ac_ext 5831cat >>conftest.$ac_ext <<_ACEOF 5832/* end confdefs.h. */ 5833#include <db.h> 5834_ACEOF 5835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5837 ac_status=$? 5838 grep -v '^ *+' conftest.er1 >conftest.err 5839 rm -f conftest.er1 5840 cat conftest.err >&5 5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); } >/dev/null; then 5843 if test -s conftest.err; then 5844 ac_cpp_err=$ac_c_preproc_warn_flag 5845 else 5846 ac_cpp_err= 5847 fi 5848else 5849 ac_cpp_err=yes 5850fi 5851if test -z "$ac_cpp_err"; then 5852 ac_header_preproc=yes 5853else 5854 echo "$as_me: failed program was:" >&5 5855sed 's/^/| /' conftest.$ac_ext >&5 5856 5857 ac_header_preproc=no 5858fi 5859rm -f conftest.err conftest.$ac_ext 5860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5861echo "${ECHO_T}$ac_header_preproc" >&6 5862 5863# So? What about this header? 5864case $ac_header_compiler:$ac_header_preproc in 5865 yes:no ) 5866 { echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5 5867echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5868 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 5869echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 5870 ( 5871 cat <<\_ASBOX 5872## ------------------------------------ ## 5873## Report this to bug-autoconf@gnu.org. ## 5874## ------------------------------------ ## 5875_ASBOX 5876 ) | 5877 sed "s/^/$as_me: WARNING: /" >&2 5878 ;; 5879 no:yes ) 5880 { echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5 5881echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;} 5882 { echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5 5883echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;} 5884 { echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 5885echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 5886 ( 5887 cat <<\_ASBOX 5888## ------------------------------------ ## 5889## Report this to bug-autoconf@gnu.org. ## 5890## ------------------------------------ ## 5891_ASBOX 5892 ) | 5893 sed "s/^/$as_me: WARNING: /" >&2 5894 ;; 5895esac 5896echo "$as_me:$LINENO: checking for db.h" >&5 5897echo $ECHO_N "checking for db.h... $ECHO_C" >&6 5898if test "${ac_cv_header_db_h+set}" = set; then 5899 echo $ECHO_N "(cached) $ECHO_C" >&6 5900else 5901 ac_cv_header_db_h=$ac_header_preproc 5902fi 5903echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 5904echo "${ECHO_T}$ac_cv_header_db_h" >&6 5905 5906fi 5907if test $ac_cv_header_db_h = yes; then 5908 5909 BDB_SAVE_LIBS=$LIBS 5910 5911 if test -d $with_bdb_lib; then 5912 5913 # this is CMU ADD LIBPATH TO 5914 if test "$andrew_runpath_switch" = "none" ; then 5915 LIBS="-L$with_bdb_lib ${LIBS}" 5916 else 5917 LIBS="-L$with_bdb_lib ${LIBS} $andrew_runpath_switch$with_bdb_lib" 5918 fi 5919 5920 5921 # this is CMU ADD LIBPATH TO 5922 if test "$andrew_runpath_switch" = "none" ; then 5923 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 5924 else 5925 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_runpath_switch$with_bdb_lib" 5926 fi 5927 5928 else 5929 BDB_LIBADD="" 5930 fi 5931 5932 for dbname in 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 5933 do 5934 as_ac_Lib=`echo "ac_cv_lib_$dbname''_db_create" | $as_tr_sh` 5935echo "$as_me:$LINENO: checking for db_create in -l$dbname" >&5 5936echo $ECHO_N "checking for db_create in -l$dbname... $ECHO_C" >&6 5937if eval "test \"\${$as_ac_Lib+set}\" = set"; then 5938 echo $ECHO_N "(cached) $ECHO_C" >&6 5939else 5940 ac_check_lib_save_LIBS=$LIBS 5941LIBS="-l$dbname $LIBS" 5942cat >conftest.$ac_ext <<_ACEOF 5943#line $LINENO "configure" 5944/* confdefs.h. */ 5945_ACEOF 5946cat confdefs.h >>conftest.$ac_ext 5947cat >>conftest.$ac_ext <<_ACEOF 5948/* end confdefs.h. */ 5949 5950/* Override any gcc2 internal prototype to avoid an error. */ 5951#ifdef __cplusplus 5952extern "C" 5953#endif 5954/* We use char because int might match the return type of a gcc2 5955 builtin and then its argument prototype would still apply. */ 5956char db_create (); 5957int 5958main () 5959{ 5960db_create (); 5961 ; 5962 return 0; 5963} 5964_ACEOF 5965rm -f conftest.$ac_objext conftest$ac_exeext 5966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5967 (eval $ac_link) 2>&5 5968 ac_status=$? 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5970 (exit $ac_status); } && 5971 { ac_try='test -s conftest$ac_exeext' 5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5973 (eval $ac_try) 2>&5 5974 ac_status=$? 5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 (exit $ac_status); }; }; then 5977 eval "$as_ac_Lib=yes" 5978else 5979 echo "$as_me: failed program was:" >&5 5980sed 's/^/| /' conftest.$ac_ext >&5 5981 5982eval "$as_ac_Lib=no" 5983fi 5984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5985LIBS=$ac_check_lib_save_LIBS 5986fi 5987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 5988echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 5989if test `eval echo '${'$as_ac_Lib'}'` = yes; then 5990 BDB_LIBADD="$BDB_LIBADD -l$dbname"; 5991 dblib="berkeley"; break 5992else 5993 dblib="no" 5994fi 5995 5996 done 5997 if test "$dblib" = "no"; then 5998 echo "$as_me:$LINENO: checking for db_open in -ldb" >&5 5999echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6 6000if test "${ac_cv_lib_db_db_open+set}" = set; then 6001 echo $ECHO_N "(cached) $ECHO_C" >&6 6002else 6003 ac_check_lib_save_LIBS=$LIBS 6004LIBS="-ldb $LIBS" 6005cat >conftest.$ac_ext <<_ACEOF 6006#line $LINENO "configure" 6007/* confdefs.h. */ 6008_ACEOF 6009cat confdefs.h >>conftest.$ac_ext 6010cat >>conftest.$ac_ext <<_ACEOF 6011/* end confdefs.h. */ 6012 6013/* Override any gcc2 internal prototype to avoid an error. */ 6014#ifdef __cplusplus 6015extern "C" 6016#endif 6017/* We use char because int might match the return type of a gcc2 6018 builtin and then its argument prototype would still apply. */ 6019char db_open (); 6020int 6021main () 6022{ 6023db_open (); 6024 ; 6025 return 0; 6026} 6027_ACEOF 6028rm -f conftest.$ac_objext conftest$ac_exeext 6029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6030 (eval $ac_link) 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); } && 6034 { ac_try='test -s conftest$ac_exeext' 6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6036 (eval $ac_try) 2>&5 6037 ac_status=$? 6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6039 (exit $ac_status); }; }; then 6040 ac_cv_lib_db_db_open=yes 6041else 6042 echo "$as_me: failed program was:" >&5 6043sed 's/^/| /' conftest.$ac_ext >&5 6044 6045ac_cv_lib_db_db_open=no 6046fi 6047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6048LIBS=$ac_check_lib_save_LIBS 6049fi 6050echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5 6051echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6 6052if test $ac_cv_lib_db_db_open = yes; then 6053 BDB_LIBADD="$BDB_LIBADD -ldb"; 6054 dblib="berkeley"; dbname=db 6055else 6056 dblib="no" 6057fi 6058 6059 fi 6060 6061 LIBS=$BDB_SAVE_LIBS 6062 6063else 6064 dblib="no" 6065fi 6066 6067 6068 6069 CPPFLAGS=$cmu_save_CPPFLAGS 6070 6071 if test "$dblib" = no; then 6072 if test "${ac_cv_header_ndbm_h+set}" = set; then 6073 echo "$as_me:$LINENO: checking for ndbm.h" >&5 6074echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6 6075if test "${ac_cv_header_ndbm_h+set}" = set; then 6076 echo $ECHO_N "(cached) $ECHO_C" >&6 6077fi 6078echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 6079echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6 6080else 6081 # Is the header compilable? 6082echo "$as_me:$LINENO: checking ndbm.h usability" >&5 6083echo $ECHO_N "checking ndbm.h usability... $ECHO_C" >&6 6084cat >conftest.$ac_ext <<_ACEOF 6085#line $LINENO "configure" 6086/* confdefs.h. */ 6087_ACEOF 6088cat confdefs.h >>conftest.$ac_ext 6089cat >>conftest.$ac_ext <<_ACEOF 6090/* end confdefs.h. */ 6091$ac_includes_default 6092#include <ndbm.h> 6093_ACEOF 6094rm -f conftest.$ac_objext 6095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6096 (eval $ac_compile) 2>&5 6097 ac_status=$? 6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6099 (exit $ac_status); } && 6100 { ac_try='test -s conftest.$ac_objext' 6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6102 (eval $ac_try) 2>&5 6103 ac_status=$? 6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6105 (exit $ac_status); }; }; then 6106 ac_header_compiler=yes 6107else 6108 echo "$as_me: failed program was:" >&5 6109sed 's/^/| /' conftest.$ac_ext >&5 6110 6111ac_header_compiler=no 6112fi 6113rm -f conftest.$ac_objext conftest.$ac_ext 6114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6115echo "${ECHO_T}$ac_header_compiler" >&6 6116 6117# Is the header present? 6118echo "$as_me:$LINENO: checking ndbm.h presence" >&5 6119echo $ECHO_N "checking ndbm.h presence... $ECHO_C" >&6 6120cat >conftest.$ac_ext <<_ACEOF 6121#line $LINENO "configure" 6122/* confdefs.h. */ 6123_ACEOF 6124cat confdefs.h >>conftest.$ac_ext 6125cat >>conftest.$ac_ext <<_ACEOF 6126/* end confdefs.h. */ 6127#include <ndbm.h> 6128_ACEOF 6129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6131 ac_status=$? 6132 grep -v '^ *+' conftest.er1 >conftest.err 6133 rm -f conftest.er1 6134 cat conftest.err >&5 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); } >/dev/null; then 6137 if test -s conftest.err; then 6138 ac_cpp_err=$ac_c_preproc_warn_flag 6139 else 6140 ac_cpp_err= 6141 fi 6142else 6143 ac_cpp_err=yes 6144fi 6145if test -z "$ac_cpp_err"; then 6146 ac_header_preproc=yes 6147else 6148 echo "$as_me: failed program was:" >&5 6149sed 's/^/| /' conftest.$ac_ext >&5 6150 6151 ac_header_preproc=no 6152fi 6153rm -f conftest.err conftest.$ac_ext 6154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6155echo "${ECHO_T}$ac_header_preproc" >&6 6156 6157# So? What about this header? 6158case $ac_header_compiler:$ac_header_preproc in 6159 yes:no ) 6160 { echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 6161echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6162 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 6163echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 6164 ( 6165 cat <<\_ASBOX 6166## ------------------------------------ ## 6167## Report this to bug-autoconf@gnu.org. ## 6168## ------------------------------------ ## 6169_ASBOX 6170 ) | 6171 sed "s/^/$as_me: WARNING: /" >&2 6172 ;; 6173 no:yes ) 6174 { echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5 6175echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;} 6176 { echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5 6177echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;} 6178 { echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 6179echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 6180 ( 6181 cat <<\_ASBOX 6182## ------------------------------------ ## 6183## Report this to bug-autoconf@gnu.org. ## 6184## ------------------------------------ ## 6185_ASBOX 6186 ) | 6187 sed "s/^/$as_me: WARNING: /" >&2 6188 ;; 6189esac 6190echo "$as_me:$LINENO: checking for ndbm.h" >&5 6191echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6 6192if test "${ac_cv_header_ndbm_h+set}" = set; then 6193 echo $ECHO_N "(cached) $ECHO_C" >&6 6194else 6195 ac_cv_header_ndbm_h=$ac_header_preproc 6196fi 6197echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 6198echo "${ECHO_T}$ac_cv_header_ndbm_h" >&6 6199 6200fi 6201if test $ac_cv_header_ndbm_h = yes; then 6202 6203 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5 6204echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6 6205if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then 6206 echo $ECHO_N "(cached) $ECHO_C" >&6 6207else 6208 ac_check_lib_save_LIBS=$LIBS 6209LIBS="-lndbm $LIBS" 6210cat >conftest.$ac_ext <<_ACEOF 6211#line $LINENO "configure" 6212/* confdefs.h. */ 6213_ACEOF 6214cat confdefs.h >>conftest.$ac_ext 6215cat >>conftest.$ac_ext <<_ACEOF 6216/* end confdefs.h. */ 6217 6218/* Override any gcc2 internal prototype to avoid an error. */ 6219#ifdef __cplusplus 6220extern "C" 6221#endif 6222/* We use char because int might match the return type of a gcc2 6223 builtin and then its argument prototype would still apply. */ 6224char dbm_open (); 6225int 6226main () 6227{ 6228dbm_open (); 6229 ; 6230 return 0; 6231} 6232_ACEOF 6233rm -f conftest.$ac_objext conftest$ac_exeext 6234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6235 (eval $ac_link) 2>&5 6236 ac_status=$? 6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6238 (exit $ac_status); } && 6239 { ac_try='test -s conftest$ac_exeext' 6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6241 (eval $ac_try) 2>&5 6242 ac_status=$? 6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); }; }; then 6245 ac_cv_lib_ndbm_dbm_open=yes 6246else 6247 echo "$as_me: failed program was:" >&5 6248sed 's/^/| /' conftest.$ac_ext >&5 6249 6250ac_cv_lib_ndbm_dbm_open=no 6251fi 6252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6253LIBS=$ac_check_lib_save_LIBS 6254fi 6255echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5 6256echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6 6257if test $ac_cv_lib_ndbm_dbm_open = yes; then 6258 dblib="ndbm"; SASL_DB_LIB="-lndbm" 6259else 6260 dblib="weird" 6261fi 6262 6263else 6264 dblib="no" 6265fi 6266 6267 6268 if test "$dblib" = "weird"; then 6269 echo "$as_me:$LINENO: checking for dbm_open" >&5 6270echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6 6271if test "${ac_cv_func_dbm_open+set}" = set; then 6272 echo $ECHO_N "(cached) $ECHO_C" >&6 6273else 6274 cat >conftest.$ac_ext <<_ACEOF 6275#line $LINENO "configure" 6276/* confdefs.h. */ 6277_ACEOF 6278cat confdefs.h >>conftest.$ac_ext 6279cat >>conftest.$ac_ext <<_ACEOF 6280/* end confdefs.h. */ 6281/* System header to define __stub macros and hopefully few prototypes, 6282 which can conflict with char dbm_open (); below. 6283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6284 <limits.h> exists even on freestanding compilers. */ 6285#ifdef __STDC__ 6286# include <limits.h> 6287#else 6288# include <assert.h> 6289#endif 6290/* Override any gcc2 internal prototype to avoid an error. */ 6291#ifdef __cplusplus 6292extern "C" 6293{ 6294#endif 6295/* We use char because int might match the return type of a gcc2 6296 builtin and then its argument prototype would still apply. */ 6297char dbm_open (); 6298/* The GNU C library defines this for functions which it implements 6299 to always fail with ENOSYS. Some functions are actually named 6300 something starting with __ and the normal name is an alias. */ 6301#if defined (__stub_dbm_open) || defined (__stub___dbm_open) 6302choke me 6303#else 6304char (*f) () = dbm_open; 6305#endif 6306#ifdef __cplusplus 6307} 6308#endif 6309 6310int 6311main () 6312{ 6313return f != dbm_open; 6314 ; 6315 return 0; 6316} 6317_ACEOF 6318rm -f conftest.$ac_objext conftest$ac_exeext 6319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6320 (eval $ac_link) 2>&5 6321 ac_status=$? 6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6323 (exit $ac_status); } && 6324 { ac_try='test -s conftest$ac_exeext' 6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6326 (eval $ac_try) 2>&5 6327 ac_status=$? 6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6329 (exit $ac_status); }; }; then 6330 ac_cv_func_dbm_open=yes 6331else 6332 echo "$as_me: failed program was:" >&5 6333sed 's/^/| /' conftest.$ac_ext >&5 6334 6335ac_cv_func_dbm_open=no 6336fi 6337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6338fi 6339echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5 6340echo "${ECHO_T}$ac_cv_func_dbm_open" >&6 6341if test $ac_cv_func_dbm_open = yes; then 6342 dblib="ndbm" 6343else 6344 dblib="no" 6345fi 6346 6347 fi 6348 6349 if test "$dblib" = no; then 6350 if test "${ac_cv_header_gdbm_h+set}" = set; then 6351 echo "$as_me:$LINENO: checking for gdbm.h" >&5 6352echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6 6353if test "${ac_cv_header_gdbm_h+set}" = set; then 6354 echo $ECHO_N "(cached) $ECHO_C" >&6 6355fi 6356echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 6357echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6 6358else 6359 # Is the header compilable? 6360echo "$as_me:$LINENO: checking gdbm.h usability" >&5 6361echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6 6362cat >conftest.$ac_ext <<_ACEOF 6363#line $LINENO "configure" 6364/* confdefs.h. */ 6365_ACEOF 6366cat confdefs.h >>conftest.$ac_ext 6367cat >>conftest.$ac_ext <<_ACEOF 6368/* end confdefs.h. */ 6369$ac_includes_default 6370#include <gdbm.h> 6371_ACEOF 6372rm -f conftest.$ac_objext 6373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6374 (eval $ac_compile) 2>&5 6375 ac_status=$? 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6377 (exit $ac_status); } && 6378 { ac_try='test -s conftest.$ac_objext' 6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6380 (eval $ac_try) 2>&5 6381 ac_status=$? 6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6383 (exit $ac_status); }; }; then 6384 ac_header_compiler=yes 6385else 6386 echo "$as_me: failed program was:" >&5 6387sed 's/^/| /' conftest.$ac_ext >&5 6388 6389ac_header_compiler=no 6390fi 6391rm -f conftest.$ac_objext conftest.$ac_ext 6392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6393echo "${ECHO_T}$ac_header_compiler" >&6 6394 6395# Is the header present? 6396echo "$as_me:$LINENO: checking gdbm.h presence" >&5 6397echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6 6398cat >conftest.$ac_ext <<_ACEOF 6399#line $LINENO "configure" 6400/* confdefs.h. */ 6401_ACEOF 6402cat confdefs.h >>conftest.$ac_ext 6403cat >>conftest.$ac_ext <<_ACEOF 6404/* end confdefs.h. */ 6405#include <gdbm.h> 6406_ACEOF 6407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6409 ac_status=$? 6410 grep -v '^ *+' conftest.er1 >conftest.err 6411 rm -f conftest.er1 6412 cat conftest.err >&5 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); } >/dev/null; then 6415 if test -s conftest.err; then 6416 ac_cpp_err=$ac_c_preproc_warn_flag 6417 else 6418 ac_cpp_err= 6419 fi 6420else 6421 ac_cpp_err=yes 6422fi 6423if test -z "$ac_cpp_err"; then 6424 ac_header_preproc=yes 6425else 6426 echo "$as_me: failed program was:" >&5 6427sed 's/^/| /' conftest.$ac_ext >&5 6428 6429 ac_header_preproc=no 6430fi 6431rm -f conftest.err conftest.$ac_ext 6432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6433echo "${ECHO_T}$ac_header_preproc" >&6 6434 6435# So? What about this header? 6436case $ac_header_compiler:$ac_header_preproc in 6437 yes:no ) 6438 { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 6439echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6440 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 6441echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 6442 ( 6443 cat <<\_ASBOX 6444## ------------------------------------ ## 6445## Report this to bug-autoconf@gnu.org. ## 6446## ------------------------------------ ## 6447_ASBOX 6448 ) | 6449 sed "s/^/$as_me: WARNING: /" >&2 6450 ;; 6451 no:yes ) 6452 { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5 6453echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;} 6454 { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5 6455echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;} 6456 { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 6457echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 6458 ( 6459 cat <<\_ASBOX 6460## ------------------------------------ ## 6461## Report this to bug-autoconf@gnu.org. ## 6462## ------------------------------------ ## 6463_ASBOX 6464 ) | 6465 sed "s/^/$as_me: WARNING: /" >&2 6466 ;; 6467esac 6468echo "$as_me:$LINENO: checking for gdbm.h" >&5 6469echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6 6470if test "${ac_cv_header_gdbm_h+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 ac_cv_header_gdbm_h=$ac_header_preproc 6474fi 6475echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 6476echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6 6477 6478fi 6479if test $ac_cv_header_gdbm_h = yes; then 6480 6481 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 6482echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6 6483if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then 6484 echo $ECHO_N "(cached) $ECHO_C" >&6 6485else 6486 ac_check_lib_save_LIBS=$LIBS 6487LIBS="-lgdbm $LIBS" 6488cat >conftest.$ac_ext <<_ACEOF 6489#line $LINENO "configure" 6490/* confdefs.h. */ 6491_ACEOF 6492cat confdefs.h >>conftest.$ac_ext 6493cat >>conftest.$ac_ext <<_ACEOF 6494/* end confdefs.h. */ 6495 6496/* Override any gcc2 internal prototype to avoid an error. */ 6497#ifdef __cplusplus 6498extern "C" 6499#endif 6500/* We use char because int might match the return type of a gcc2 6501 builtin and then its argument prototype would still apply. */ 6502char gdbm_open (); 6503int 6504main () 6505{ 6506gdbm_open (); 6507 ; 6508 return 0; 6509} 6510_ACEOF 6511rm -f conftest.$ac_objext conftest$ac_exeext 6512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6513 (eval $ac_link) 2>&5 6514 ac_status=$? 6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6516 (exit $ac_status); } && 6517 { ac_try='test -s conftest$ac_exeext' 6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6519 (eval $ac_try) 2>&5 6520 ac_status=$? 6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6522 (exit $ac_status); }; }; then 6523 ac_cv_lib_gdbm_gdbm_open=yes 6524else 6525 echo "$as_me: failed program was:" >&5 6526sed 's/^/| /' conftest.$ac_ext >&5 6527 6528ac_cv_lib_gdbm_gdbm_open=no 6529fi 6530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6531LIBS=$ac_check_lib_save_LIBS 6532fi 6533echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 6534echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6 6535if test $ac_cv_lib_gdbm_gdbm_open = yes; then 6536 dblib="gdbm"; 6537 SASL_DB_LIB="-lgdbm" 6538else 6539 dblib="no" 6540fi 6541 6542else 6543 dblib="no" 6544fi 6545 6546 6547 fi 6548 else 6549 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 6550 SASL_DB_INC=$BDB_INCADD 6551 SASL_DB_LIB="${BDB_LIBADD}" 6552 fi 6553 ;; 6554 none) 6555 ;; 6556 no) 6557 ;; 6558 *) 6559 { echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5 6560echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;} 6561 { { echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5 6562echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;} 6563 { (exit 1); exit 1; }; } 6564 dblib=no 6565 ;; 6566esac 6567LIBS="$cmu_save_LIBS" 6568 6569echo "$as_me:$LINENO: checking DB library to use" >&5 6570echo $ECHO_N "checking DB library to use... $ECHO_C" >&6 6571echo "$as_me:$LINENO: result: $dblib" >&5 6572echo "${ECHO_T}$dblib" >&6 6573 6574SASL_DB_BACKEND="db_${dblib}.lo" 6575SASL_DB_BACKEND_STATIC="../sasldb/db_${dblib}.o ../sasldb/allockey.o" 6576SASL_DB_UTILS="saslpasswd2 sasldblistusers2" 6577SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8" 6578 6579case "$dblib" in 6580 gdbm) 6581 SASL_MECHS="$SASL_MECHS libsasldb.la" 6582 6583cat >>confdefs.h <<\_ACEOF 6584#define SASL_GDBM 6585_ACEOF 6586 6587 ;; 6588 ndbm) 6589 SASL_MECHS="$SASL_MECHS libsasldb.la" 6590 6591cat >>confdefs.h <<\_ACEOF 6592#define SASL_NDBM 6593_ACEOF 6594 6595 ;; 6596 berkeley) 6597 SASL_MECHS="$SASL_MECHS libsasldb.la" 6598 6599cat >>confdefs.h <<\_ACEOF 6600#define SASL_BERKELEYDB 6601_ACEOF 6602 6603 ;; 6604 *) 6605 { echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5 6606echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;} 6607 SASL_DB_BACKEND="db_none.lo" 6608 SASL_DB_BACKEND_STATIC="../sasldb/db_none.o" 6609 SASL_DB_UTILS="" 6610 SASL_DB_MANS="" 6611 SASL_DB_LIB="" 6612 ;; 6613esac 6614 6615if test "$enable_static" = yes; then 6616 if test "$dblib" != "none"; then 6617 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/sasldb.o $SASL_DB_BACKEND_STATIC" 6618 6619cat >>confdefs.h <<\_ACEOF 6620#define STATIC_SASLDB 6621_ACEOF 6622 6623 else 6624 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC" 6625 fi 6626fi 6627 6628 6629 6630 6631 6632 6633 6634 6635# Do we not install the SASL DB man pages? 6636 6637 6638if test "x$SASL_DB_MANS" = "x"; then 6639 NO_SASL_DB_MANS_TRUE= 6640 NO_SASL_DB_MANS_FALSE='#' 6641else 6642 NO_SASL_DB_MANS_TRUE='#' 6643 NO_SASL_DB_MANS_FALSE= 6644fi 6645 6646 6647echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 6648echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 6649if test "${ac_cv_lib_dl_dlopen+set}" = set; then 6650 echo $ECHO_N "(cached) $ECHO_C" >&6 6651else 6652 ac_check_lib_save_LIBS=$LIBS 6653LIBS="-ldl $LIBS" 6654cat >conftest.$ac_ext <<_ACEOF 6655#line $LINENO "configure" 6656/* confdefs.h. */ 6657_ACEOF 6658cat confdefs.h >>conftest.$ac_ext 6659cat >>conftest.$ac_ext <<_ACEOF 6660/* end confdefs.h. */ 6661 6662/* Override any gcc2 internal prototype to avoid an error. */ 6663#ifdef __cplusplus 6664extern "C" 6665#endif 6666/* We use char because int might match the return type of a gcc2 6667 builtin and then its argument prototype would still apply. */ 6668char dlopen (); 6669int 6670main () 6671{ 6672dlopen (); 6673 ; 6674 return 0; 6675} 6676_ACEOF 6677rm -f conftest.$ac_objext conftest$ac_exeext 6678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6679 (eval $ac_link) 2>&5 6680 ac_status=$? 6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6682 (exit $ac_status); } && 6683 { ac_try='test -s conftest$ac_exeext' 6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6685 (eval $ac_try) 2>&5 6686 ac_status=$? 6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6688 (exit $ac_status); }; }; then 6689 ac_cv_lib_dl_dlopen=yes 6690else 6691 echo "$as_me: failed program was:" >&5 6692sed 's/^/| /' conftest.$ac_ext >&5 6693 6694ac_cv_lib_dl_dlopen=no 6695fi 6696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6697LIBS=$ac_check_lib_save_LIBS 6698fi 6699echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6700echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6701if test $ac_cv_lib_dl_dlopen = yes; then 6702 SASL_DL_LIB="-ldl" 6703else 6704 SASL_DL_LIB="" 6705fi 6706 6707 6708 6709 6710 6711# Check whether --with-devrandom or --without-devrandom was given. 6712if test "${with_devrandom+set}" = set; then 6713 withval="$with_devrandom" 6714 devrandom=$withval 6715else 6716 devrandom=/dev/random 6717fi; 6718echo "$as_me:$LINENO: checking /dev/random to use" >&5 6719echo $ECHO_N "checking /dev/random to use... $ECHO_C" >&6 6720echo "$as_me:$LINENO: result: $devrandom" >&5 6721echo "${ECHO_T}$devrandom" >&6 6722 6723cat >>confdefs.h <<_ACEOF 6724#define SASL_DEV_RANDOM "$devrandom" 6725_ACEOF 6726 6727 6728 6729for ac_prog in nm 6730do 6731 # Extract the first word of "$ac_prog", so it can be a program name with args. 6732set dummy $ac_prog; ac_word=$2 6733echo "$as_me:$LINENO: checking for $ac_word" >&5 6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6735if test "${ac_cv_prog_NM+set}" = set; then 6736 echo $ECHO_N "(cached) $ECHO_C" >&6 6737else 6738 if test -n "$NM"; then 6739 ac_cv_prog_NM="$NM" # Let the user override the test. 6740else 6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6742for as_dir in $PATH 6743do 6744 IFS=$as_save_IFS 6745 test -z "$as_dir" && as_dir=. 6746 for ac_exec_ext in '' $ac_executable_extensions; do 6747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6748 ac_cv_prog_NM="$ac_prog" 6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6750 break 2 6751 fi 6752done 6753done 6754 6755fi 6756fi 6757NM=$ac_cv_prog_NM 6758if test -n "$NM"; then 6759 echo "$as_me:$LINENO: result: $NM" >&5 6760echo "${ECHO_T}$NM" >&6 6761else 6762 echo "$as_me:$LINENO: result: no" >&5 6763echo "${ECHO_T}no" >&6 6764fi 6765 6766 test -n "$NM" && break 6767done 6768 6769 6770echo "$as_me:$LINENO: checking for underscore before symbols" >&5 6771echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6 6772if test "${sasl_cv_uscore+set}" = set; then 6773 echo $ECHO_N "(cached) $ECHO_C" >&6 6774else 6775 6776 echo "main(){int i=1;} 6777 foo(){int i=6;}" > conftest.c 6778 ${CC} -o a.out conftest.c > /dev/null 6779 if (${NM} a.out | grep _foo) > /dev/null; then 6780 sasl_cv_uscore=yes 6781 else 6782 sasl_cv_uscore=no 6783 fi 6784fi 6785 6786echo "$as_me:$LINENO: result: $sasl_cv_uscore" >&5 6787echo "${ECHO_T}$sasl_cv_uscore" >&6 6788rm -f conftest.c a.out 6789 6790if test $sasl_cv_uscore = yes; then 6791 if test $ac_cv_lib_dl_dlopen = yes ; then 6792 echo "$as_me:$LINENO: checking whether dlsym adds the underscore for us" >&5 6793echo $ECHO_N "checking whether dlsym adds the underscore for us... $ECHO_C" >&6 6794 cmu_save_LIBS="$LIBS" 6795 LIBS="$LIBS $SASL_DL_LIB" 6796 if test "${sasl_cv_dlsym_adds_uscore+set}" = set; then 6797 echo $ECHO_N "(cached) $ECHO_C" >&6 6798else 6799 if test "$cross_compiling" = yes; then 6800 { echo "$as_me:$LINENO: WARNING: cross-compiler" >&5 6801echo "$as_me: WARNING: cross-compiler" >&2;} 6802else 6803 cat >conftest.$ac_ext <<_ACEOF 6804#line $LINENO "configure" 6805/* confdefs.h. */ 6806_ACEOF 6807cat confdefs.h >>conftest.$ac_ext 6808cat >>conftest.$ac_ext <<_ACEOF 6809/* end confdefs.h. */ 6810 6811#include <dlfcn.h> 6812#include <stdio.h> 6813foo() { int i=0;} 6814main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY); 6815 if(self) { ptr1=dlsym(self,"foo"); ptr2=dlsym(self,"_foo"); 6816 if(ptr1 && !ptr2) exit(0); } exit(1); } 6817 6818_ACEOF 6819rm -f conftest$ac_exeext 6820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6821 (eval $ac_link) 2>&5 6822 ac_status=$? 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 (eval $ac_try) 2>&5 6827 ac_status=$? 6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 (exit $ac_status); }; }; then 6830 sasl_cv_dlsym_adds_uscore=yes 6831else 6832 echo "$as_me: program exited with status $ac_status" >&5 6833echo "$as_me: failed program was:" >&5 6834sed 's/^/| /' conftest.$ac_ext >&5 6835 6836( exit $ac_status ) 6837sasl_cv_dlsym_adds_uscore=no 6838 6839cat >>confdefs.h <<\_ACEOF 6840#define DLSYM_NEEDS_UNDERSCORE 6841_ACEOF 6842 6843fi 6844rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6845fi 6846fi 6847 6848 LIBS="$cmu_save_LIBS" 6849 echo "$as_me:$LINENO: result: $sasl_cv_dlsym_adds_uscore" >&5 6850echo "${ECHO_T}$sasl_cv_dlsym_adds_uscore" >&6 6851 fi 6852fi 6853 6854 6855for ac_func in syslog 6856do 6857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6858echo "$as_me:$LINENO: checking for $ac_func" >&5 6859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6860if eval "test \"\${$as_ac_var+set}\" = set"; then 6861 echo $ECHO_N "(cached) $ECHO_C" >&6 6862else 6863 cat >conftest.$ac_ext <<_ACEOF 6864#line $LINENO "configure" 6865/* confdefs.h. */ 6866_ACEOF 6867cat confdefs.h >>conftest.$ac_ext 6868cat >>conftest.$ac_ext <<_ACEOF 6869/* end confdefs.h. */ 6870/* System header to define __stub macros and hopefully few prototypes, 6871 which can conflict with char $ac_func (); below. 6872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6873 <limits.h> exists even on freestanding compilers. */ 6874#ifdef __STDC__ 6875# include <limits.h> 6876#else 6877# include <assert.h> 6878#endif 6879/* Override any gcc2 internal prototype to avoid an error. */ 6880#ifdef __cplusplus 6881extern "C" 6882{ 6883#endif 6884/* We use char because int might match the return type of a gcc2 6885 builtin and then its argument prototype would still apply. */ 6886char $ac_func (); 6887/* The GNU C library defines this for functions which it implements 6888 to always fail with ENOSYS. Some functions are actually named 6889 something starting with __ and the normal name is an alias. */ 6890#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6891choke me 6892#else 6893char (*f) () = $ac_func; 6894#endif 6895#ifdef __cplusplus 6896} 6897#endif 6898 6899int 6900main () 6901{ 6902return f != $ac_func; 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907rm -f conftest.$ac_objext conftest$ac_exeext 6908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6909 (eval $ac_link) 2>&5 6910 ac_status=$? 6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6912 (exit $ac_status); } && 6913 { ac_try='test -s conftest$ac_exeext' 6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6915 (eval $ac_try) 2>&5 6916 ac_status=$? 6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6918 (exit $ac_status); }; }; then 6919 eval "$as_ac_var=yes" 6920else 6921 echo "$as_me: failed program was:" >&5 6922sed 's/^/| /' conftest.$ac_ext >&5 6923 6924eval "$as_ac_var=no" 6925fi 6926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6927fi 6928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6930if test `eval echo '${'$as_ac_var'}'` = yes; then 6931 cat >>confdefs.h <<_ACEOF 6932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6933_ACEOF 6934 6935fi 6936done 6937 6938 6939 6940# Check whether --with-pam or --without-pam was given. 6941if test "${with_pam+set}" = set; then 6942 withval="$with_pam" 6943 with_pam=$withval 6944else 6945 with_pam=yes 6946fi; 6947if test "$with_pam" != no; then 6948 if test -d $with_pam; then 6949 CPPFLAGS="$CPPFLAGS -I${with_pam}/include" 6950 LDFLAGS="$LDFLAGS -L${with_pam}/lib" 6951 fi 6952 cmu_save_LIBS="$LIBS" 6953 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 6954echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 6955if test "${ac_cv_lib_pam_pam_start+set}" = set; then 6956 echo $ECHO_N "(cached) $ECHO_C" >&6 6957else 6958 ac_check_lib_save_LIBS=$LIBS 6959LIBS="-lpam $SASL_DL_LIB $LIBS" 6960cat >conftest.$ac_ext <<_ACEOF 6961#line $LINENO "configure" 6962/* confdefs.h. */ 6963_ACEOF 6964cat confdefs.h >>conftest.$ac_ext 6965cat >>conftest.$ac_ext <<_ACEOF 6966/* end confdefs.h. */ 6967 6968/* Override any gcc2 internal prototype to avoid an error. */ 6969#ifdef __cplusplus 6970extern "C" 6971#endif 6972/* We use char because int might match the return type of a gcc2 6973 builtin and then its argument prototype would still apply. */ 6974char pam_start (); 6975int 6976main () 6977{ 6978pam_start (); 6979 ; 6980 return 0; 6981} 6982_ACEOF 6983rm -f conftest.$ac_objext conftest$ac_exeext 6984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6985 (eval $ac_link) 2>&5 6986 ac_status=$? 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); } && 6989 { ac_try='test -s conftest$ac_exeext' 6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6991 (eval $ac_try) 2>&5 6992 ac_status=$? 6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6994 (exit $ac_status); }; }; then 6995 ac_cv_lib_pam_pam_start=yes 6996else 6997 echo "$as_me: failed program was:" >&5 6998sed 's/^/| /' conftest.$ac_ext >&5 6999 7000ac_cv_lib_pam_pam_start=no 7001fi 7002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7003LIBS=$ac_check_lib_save_LIBS 7004fi 7005echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 7006echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 7007if test $ac_cv_lib_pam_pam_start = yes; then 7008 7009 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 7010 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5 7011echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6 7012if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014fi 7015echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5 7016echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6 7017else 7018 # Is the header compilable? 7019echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5 7020echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6 7021cat >conftest.$ac_ext <<_ACEOF 7022#line $LINENO "configure" 7023/* confdefs.h. */ 7024_ACEOF 7025cat confdefs.h >>conftest.$ac_ext 7026cat >>conftest.$ac_ext <<_ACEOF 7027/* end confdefs.h. */ 7028$ac_includes_default 7029#include <security/pam_appl.h> 7030_ACEOF 7031rm -f conftest.$ac_objext 7032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7033 (eval $ac_compile) 2>&5 7034 ac_status=$? 7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7036 (exit $ac_status); } && 7037 { ac_try='test -s conftest.$ac_objext' 7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7039 (eval $ac_try) 2>&5 7040 ac_status=$? 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); }; }; then 7043 ac_header_compiler=yes 7044else 7045 echo "$as_me: failed program was:" >&5 7046sed 's/^/| /' conftest.$ac_ext >&5 7047 7048ac_header_compiler=no 7049fi 7050rm -f conftest.$ac_objext conftest.$ac_ext 7051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7052echo "${ECHO_T}$ac_header_compiler" >&6 7053 7054# Is the header present? 7055echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5 7056echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6 7057cat >conftest.$ac_ext <<_ACEOF 7058#line $LINENO "configure" 7059/* confdefs.h. */ 7060_ACEOF 7061cat confdefs.h >>conftest.$ac_ext 7062cat >>conftest.$ac_ext <<_ACEOF 7063/* end confdefs.h. */ 7064#include <security/pam_appl.h> 7065_ACEOF 7066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7068 ac_status=$? 7069 grep -v '^ *+' conftest.er1 >conftest.err 7070 rm -f conftest.er1 7071 cat conftest.err >&5 7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 (exit $ac_status); } >/dev/null; then 7074 if test -s conftest.err; then 7075 ac_cpp_err=$ac_c_preproc_warn_flag 7076 else 7077 ac_cpp_err= 7078 fi 7079else 7080 ac_cpp_err=yes 7081fi 7082if test -z "$ac_cpp_err"; then 7083 ac_header_preproc=yes 7084else 7085 echo "$as_me: failed program was:" >&5 7086sed 's/^/| /' conftest.$ac_ext >&5 7087 7088 ac_header_preproc=no 7089fi 7090rm -f conftest.err conftest.$ac_ext 7091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7092echo "${ECHO_T}$ac_header_preproc" >&6 7093 7094# So? What about this header? 7095case $ac_header_compiler:$ac_header_preproc in 7096 yes:no ) 7097 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5 7098echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7099 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5 7100echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;} 7101 ( 7102 cat <<\_ASBOX 7103## ------------------------------------ ## 7104## Report this to bug-autoconf@gnu.org. ## 7105## ------------------------------------ ## 7106_ASBOX 7107 ) | 7108 sed "s/^/$as_me: WARNING: /" >&2 7109 ;; 7110 no:yes ) 7111 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5 7112echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;} 7113 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5 7114echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;} 7115 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5 7116echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;} 7117 ( 7118 cat <<\_ASBOX 7119## ------------------------------------ ## 7120## Report this to bug-autoconf@gnu.org. ## 7121## ------------------------------------ ## 7122_ASBOX 7123 ) | 7124 sed "s/^/$as_me: WARNING: /" >&2 7125 ;; 7126esac 7127echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5 7128echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6 7129if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 7130 echo $ECHO_N "(cached) $ECHO_C" >&6 7131else 7132 ac_cv_header_security_pam_appl_h=$ac_header_preproc 7133fi 7134echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5 7135echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6 7136 7137fi 7138if test $ac_cv_header_security_pam_appl_h = yes; then 7139 : 7140else 7141 with_pam=no 7142fi 7143 7144 7145else 7146 with_pam=no 7147fi 7148 7149 LIBS="$cmu_save_LIBS" 7150fi 7151 7152 7153# Check whether --with-saslauthd or --without-saslauthd was given. 7154if test "${with_saslauthd+set}" = set; then 7155 withval="$with_saslauthd" 7156 with_saslauthd=$withval 7157else 7158 with_saslauthd=yes 7159fi; 7160if test "$with_saslauthd" != no; then 7161 if test "$with_saslauthd" = yes; then 7162 with_saslauthd="/var/state/saslauthd" 7163 fi 7164 7165cat >>confdefs.h <<\_ACEOF 7166#define HAVE_SASLAUTHD 7167_ACEOF 7168 7169 7170cat >>confdefs.h <<_ACEOF 7171#define PATH_SASLAUTHD_RUNDIR "$with_saslauthd" 7172_ACEOF 7173 7174fi 7175 7176 7177if test "$with_saslauthd" != no; then 7178 SASLAUTHD_TRUE= 7179 SASLAUTHD_FALSE='#' 7180else 7181 SASLAUTHD_TRUE='#' 7182 SASLAUTHD_FALSE= 7183fi 7184 7185echo "$as_me:$LINENO: checking if I should include saslauthd" >&5 7186echo $ECHO_N "checking if I should include saslauthd... $ECHO_C" >&6 7187echo "$as_me:$LINENO: result: $with_saslauthd" >&5 7188echo "${ECHO_T}$with_saslauthd" >&6 7189 7190 7191# Check whether --with-authdaemond or --without-authdaemond was given. 7192if test "${with_authdaemond+set}" = set; then 7193 withval="$with_authdaemond" 7194 with_authdaemon=$withval 7195else 7196 with_authdaemon=yes 7197fi; 7198if test "$with_authdaemon" != no; then 7199 if test "$with_authdaemon" = yes; then 7200 with_authdaemon="/dev/null" 7201 fi 7202 7203cat >>confdefs.h <<\_ACEOF 7204#define HAVE_AUTHDAEMON 7205_ACEOF 7206 7207 7208cat >>confdefs.h <<_ACEOF 7209#define PATH_AUTHDAEMON_SOCKET "$with_authdaemon" 7210_ACEOF 7211 7212fi 7213echo "$as_me:$LINENO: checking to include Courier authdaemond support" >&5 7214echo $ECHO_N "checking to include Courier authdaemond support... $ECHO_C" >&6 7215echo "$as_me:$LINENO: result: $with_authdaemon" >&5 7216echo "${ECHO_T}$with_authdaemon" >&6 7217 7218 7219# Check whether --with-pwcheck or --without-pwcheck was given. 7220if test "${with_pwcheck+set}" = set; then 7221 withval="$with_pwcheck" 7222 with_pwcheck=$withval 7223else 7224 with_pwcheck=no 7225fi; 7226if test "$with_pwcheck" != no; then 7227 if test "$with_pwcheck" = yes; then 7228 with_pwcheck=/var/pwcheck 7229 fi 7230 7231cat >>confdefs.h <<\_ACEOF 7232#define HAVE_PWCHECK 7233_ACEOF 7234 7235 7236cat >>confdefs.h <<_ACEOF 7237#define PWCHECKDIR "$with_pwcheck" 7238_ACEOF 7239 7240 echo "$as_me:$LINENO: checking for getspnam" >&5 7241echo $ECHO_N "checking for getspnam... $ECHO_C" >&6 7242if test "${ac_cv_func_getspnam+set}" = set; then 7243 echo $ECHO_N "(cached) $ECHO_C" >&6 7244else 7245 cat >conftest.$ac_ext <<_ACEOF 7246#line $LINENO "configure" 7247/* confdefs.h. */ 7248_ACEOF 7249cat confdefs.h >>conftest.$ac_ext 7250cat >>conftest.$ac_ext <<_ACEOF 7251/* end confdefs.h. */ 7252/* System header to define __stub macros and hopefully few prototypes, 7253 which can conflict with char getspnam (); below. 7254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7255 <limits.h> exists even on freestanding compilers. */ 7256#ifdef __STDC__ 7257# include <limits.h> 7258#else 7259# include <assert.h> 7260#endif 7261/* Override any gcc2 internal prototype to avoid an error. */ 7262#ifdef __cplusplus 7263extern "C" 7264{ 7265#endif 7266/* We use char because int might match the return type of a gcc2 7267 builtin and then its argument prototype would still apply. */ 7268char getspnam (); 7269/* The GNU C library defines this for functions which it implements 7270 to always fail with ENOSYS. Some functions are actually named 7271 something starting with __ and the normal name is an alias. */ 7272#if defined (__stub_getspnam) || defined (__stub___getspnam) 7273choke me 7274#else 7275char (*f) () = getspnam; 7276#endif 7277#ifdef __cplusplus 7278} 7279#endif 7280 7281int 7282main () 7283{ 7284return f != getspnam; 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289rm -f conftest.$ac_objext conftest$ac_exeext 7290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7291 (eval $ac_link) 2>&5 7292 ac_status=$? 7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7294 (exit $ac_status); } && 7295 { ac_try='test -s conftest$ac_exeext' 7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7297 (eval $ac_try) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); }; }; then 7301 ac_cv_func_getspnam=yes 7302else 7303 echo "$as_me: failed program was:" >&5 7304sed 's/^/| /' conftest.$ac_ext >&5 7305 7306ac_cv_func_getspnam=no 7307fi 7308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7309fi 7310echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 7311echo "${ECHO_T}$ac_cv_func_getspnam" >&6 7312if test $ac_cv_func_getspnam = yes; then 7313 PWCHECKMETH="getspnam" 7314else 7315 PWCHECKMETH="getpwnam" 7316fi 7317 7318 7319fi 7320 7321 7322if test "$with_pwcheck" != no; then 7323 PWCHECK_TRUE= 7324 PWCHECK_FALSE='#' 7325else 7326 PWCHECK_TRUE='#' 7327 PWCHECK_FALSE= 7328fi 7329 7330echo "$as_me:$LINENO: checking if I should include pwcheck" >&5 7331echo $ECHO_N "checking if I should include pwcheck... $ECHO_C" >&6 7332echo "$as_me:$LINENO: result: $with_pwcheck" >&5 7333echo "${ECHO_T}$with_pwcheck" >&6 7334 7335 7336# Check whether --with-ipctype or --without-ipctype was given. 7337if test "${with_ipctype+set}" = set; then 7338 withval="$with_ipctype" 7339 with_ipctype=$withval 7340else 7341 with_ipctype="unix" 7342fi; 7343IPCTYPE=$with_ipctype 7344 7345if test "$with_ipctype" = "doors"; then 7346 LIBS="$LIBS -ldoor -lpthread" 7347 7348cat >>confdefs.h <<\_ACEOF 7349#define USE_DOORS 7350_ACEOF 7351 7352fi 7353 7354# Check whether --enable-alwaystrue or --disable-alwaystrue was given. 7355if test "${enable_alwaystrue+set}" = set; then 7356 enableval="$enable_alwaystrue" 7357 enable_alwaystrue=$enableval 7358else 7359 enable_alwaystrue=no 7360fi; 7361if test "$enable_alwaystrue" = yes; then 7362 7363cat >>confdefs.h <<\_ACEOF 7364#define HAVE_ALWAYSTRUE 7365_ACEOF 7366 7367fi 7368echo "$as_me:$LINENO: checking if I should include the alwaystrue verifier" >&5 7369echo $ECHO_N "checking if I should include the alwaystrue verifier... $ECHO_C" >&6 7370echo "$as_me:$LINENO: result: $enable_alwaystrue" >&5 7371echo "${ECHO_T}$enable_alwaystrue" >&6 7372 7373# Check whether --enable-checkapop or --disable-checkapop was given. 7374if test "${enable_checkapop+set}" = set; then 7375 enableval="$enable_checkapop" 7376 checkapop=$enableval 7377else 7378 checkapop=yes 7379fi; 7380 7381echo "$as_me:$LINENO: checking if we should enable sasl_checkapop" >&5 7382echo $ECHO_N "checking if we should enable sasl_checkapop... $ECHO_C" >&6 7383if test "$checkapop" != no; then 7384 echo "$as_me:$LINENO: result: enabled" >&5 7385echo "${ECHO_T}enabled" >&6 7386 7387cat >>confdefs.h <<\_ACEOF 7388#define DO_SASL_CHECKAPOP 7389_ACEOF 7390 7391else 7392 echo "$as_me:$LINENO: result: disabled" >&5 7393echo "${ECHO_T}disabled" >&6 7394fi 7395 7396# Check whether --enable-cram or --disable-cram was given. 7397if test "${enable_cram+set}" = set; then 7398 enableval="$enable_cram" 7399 cram=$enableval 7400else 7401 cram=yes 7402fi; 7403 7404echo "$as_me:$LINENO: checking CRAM-MD5" >&5 7405echo $ECHO_N "checking CRAM-MD5... $ECHO_C" >&6 7406if test "$cram" != no; then 7407 echo "$as_me:$LINENO: result: enabled" >&5 7408echo "${ECHO_T}enabled" >&6 7409 SASL_MECHS="$SASL_MECHS libcrammd5.la" 7410 if test "$enable_static" = yes; then 7411 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/cram.o" 7412 7413cat >>confdefs.h <<\_ACEOF 7414#define STATIC_CRAMMD5 7415_ACEOF 7416 7417 fi 7418else 7419 echo "$as_me:$LINENO: result: disabled" >&5 7420echo "${ECHO_T}disabled" >&6 7421fi 7422 7423 7424 7425# Check whether --with-openssl or --without-openssl was given. 7426if test "${with_openssl+set}" = set; then 7427 withval="$with_openssl" 7428 with_openssl=$withval 7429else 7430 with_openssl="yes" 7431fi; 7432 7433 save_CPPFLAGS=$CPPFLAGS 7434 save_LDFLAGS=$LDFLAGS 7435 7436 if test -d $with_openssl; then 7437 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include" 7438 7439 # this is CMU ADD LIBPATH 7440 if test "$andrew_runpath_switch" = "none" ; then 7441 LDFLAGS="-L${with_openssl}/lib ${LDFLAGS}" 7442 else 7443 LDFLAGS="-L${with_openssl}/lib $andrew_runpath_switch${with_openssl}/lib ${LDFLAGS}" 7444 fi 7445 7446 fi 7447 7448case "$with_openssl" in 7449 no) 7450 with_openssl="no";; 7451 *) 7452 LIB_RSAREF="" 7453 echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5 7454echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6 7455if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then 7456 echo $ECHO_N "(cached) $ECHO_C" >&6 7457else 7458 ac_check_lib_save_LIBS=$LIBS 7459LIBS="-lrsaref $LIBS" 7460cat >conftest.$ac_ext <<_ACEOF 7461#line $LINENO "configure" 7462/* confdefs.h. */ 7463_ACEOF 7464cat confdefs.h >>conftest.$ac_ext 7465cat >>conftest.$ac_ext <<_ACEOF 7466/* end confdefs.h. */ 7467 7468/* Override any gcc2 internal prototype to avoid an error. */ 7469#ifdef __cplusplus 7470extern "C" 7471#endif 7472/* We use char because int might match the return type of a gcc2 7473 builtin and then its argument prototype would still apply. */ 7474char RSAPublicEncrypt (); 7475int 7476main () 7477{ 7478RSAPublicEncrypt (); 7479 ; 7480 return 0; 7481} 7482_ACEOF 7483rm -f conftest.$ac_objext conftest$ac_exeext 7484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7485 (eval $ac_link) 2>&5 7486 ac_status=$? 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7488 (exit $ac_status); } && 7489 { ac_try='test -s conftest$ac_exeext' 7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7491 (eval $ac_try) 2>&5 7492 ac_status=$? 7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7494 (exit $ac_status); }; }; then 7495 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 7496else 7497 echo "$as_me: failed program was:" >&5 7498sed 's/^/| /' conftest.$ac_ext >&5 7499 7500ac_cv_lib_rsaref_RSAPublicEncrypt=no 7501fi 7502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7503LIBS=$ac_check_lib_save_LIBS 7504fi 7505echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 7506echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6 7507if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then 7508 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes 7509else 7510 cmu_have_rsaref=no 7511fi 7512 7513 7514 if test "${ac_cv_header_openssl_evp_h+set}" = set; then 7515 echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 7516echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6 7517if test "${ac_cv_header_openssl_evp_h+set}" = set; then 7518 echo $ECHO_N "(cached) $ECHO_C" >&6 7519fi 7520echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 7521echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6 7522else 7523 # Is the header compilable? 7524echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5 7525echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6 7526cat >conftest.$ac_ext <<_ACEOF 7527#line $LINENO "configure" 7528/* confdefs.h. */ 7529_ACEOF 7530cat confdefs.h >>conftest.$ac_ext 7531cat >>conftest.$ac_ext <<_ACEOF 7532/* end confdefs.h. */ 7533$ac_includes_default 7534#include <openssl/evp.h> 7535_ACEOF 7536rm -f conftest.$ac_objext 7537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7538 (eval $ac_compile) 2>&5 7539 ac_status=$? 7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7541 (exit $ac_status); } && 7542 { ac_try='test -s conftest.$ac_objext' 7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7544 (eval $ac_try) 2>&5 7545 ac_status=$? 7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7547 (exit $ac_status); }; }; then 7548 ac_header_compiler=yes 7549else 7550 echo "$as_me: failed program was:" >&5 7551sed 's/^/| /' conftest.$ac_ext >&5 7552 7553ac_header_compiler=no 7554fi 7555rm -f conftest.$ac_objext conftest.$ac_ext 7556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7557echo "${ECHO_T}$ac_header_compiler" >&6 7558 7559# Is the header present? 7560echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5 7561echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6 7562cat >conftest.$ac_ext <<_ACEOF 7563#line $LINENO "configure" 7564/* confdefs.h. */ 7565_ACEOF 7566cat confdefs.h >>conftest.$ac_ext 7567cat >>conftest.$ac_ext <<_ACEOF 7568/* end confdefs.h. */ 7569#include <openssl/evp.h> 7570_ACEOF 7571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7573 ac_status=$? 7574 grep -v '^ *+' conftest.er1 >conftest.err 7575 rm -f conftest.er1 7576 cat conftest.err >&5 7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7578 (exit $ac_status); } >/dev/null; then 7579 if test -s conftest.err; then 7580 ac_cpp_err=$ac_c_preproc_warn_flag 7581 else 7582 ac_cpp_err= 7583 fi 7584else 7585 ac_cpp_err=yes 7586fi 7587if test -z "$ac_cpp_err"; then 7588 ac_header_preproc=yes 7589else 7590 echo "$as_me: failed program was:" >&5 7591sed 's/^/| /' conftest.$ac_ext >&5 7592 7593 ac_header_preproc=no 7594fi 7595rm -f conftest.err conftest.$ac_ext 7596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7597echo "${ECHO_T}$ac_header_preproc" >&6 7598 7599# So? What about this header? 7600case $ac_header_compiler:$ac_header_preproc in 7601 yes:no ) 7602 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5 7603echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7604 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 7605echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} 7606 ( 7607 cat <<\_ASBOX 7608## ------------------------------------ ## 7609## Report this to bug-autoconf@gnu.org. ## 7610## ------------------------------------ ## 7611_ASBOX 7612 ) | 7613 sed "s/^/$as_me: WARNING: /" >&2 7614 ;; 7615 no:yes ) 7616 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5 7617echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;} 7618 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5 7619echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;} 7620 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 7621echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} 7622 ( 7623 cat <<\_ASBOX 7624## ------------------------------------ ## 7625## Report this to bug-autoconf@gnu.org. ## 7626## ------------------------------------ ## 7627_ASBOX 7628 ) | 7629 sed "s/^/$as_me: WARNING: /" >&2 7630 ;; 7631esac 7632echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 7633echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6 7634if test "${ac_cv_header_openssl_evp_h+set}" = set; then 7635 echo $ECHO_N "(cached) $ECHO_C" >&6 7636else 7637 ac_cv_header_openssl_evp_h=$ac_header_preproc 7638fi 7639echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 7640echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6 7641 7642fi 7643if test $ac_cv_header_openssl_evp_h = yes; then 7644 7645 echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5 7646echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6 7647if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then 7648 echo $ECHO_N "(cached) $ECHO_C" >&6 7649else 7650 ac_check_lib_save_LIBS=$LIBS 7651LIBS="-lcrypto $LIB_RSAREF $LIBS" 7652cat >conftest.$ac_ext <<_ACEOF 7653#line $LINENO "configure" 7654/* confdefs.h. */ 7655_ACEOF 7656cat confdefs.h >>conftest.$ac_ext 7657cat >>conftest.$ac_ext <<_ACEOF 7658/* end confdefs.h. */ 7659 7660/* Override any gcc2 internal prototype to avoid an error. */ 7661#ifdef __cplusplus 7662extern "C" 7663#endif 7664/* We use char because int might match the return type of a gcc2 7665 builtin and then its argument prototype would still apply. */ 7666char EVP_DigestInit (); 7667int 7668main () 7669{ 7670EVP_DigestInit (); 7671 ; 7672 return 0; 7673} 7674_ACEOF 7675rm -f conftest.$ac_objext conftest$ac_exeext 7676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7677 (eval $ac_link) 2>&5 7678 ac_status=$? 7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7680 (exit $ac_status); } && 7681 { ac_try='test -s conftest$ac_exeext' 7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7683 (eval $ac_try) 2>&5 7684 ac_status=$? 7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7686 (exit $ac_status); }; }; then 7687 ac_cv_lib_crypto_EVP_DigestInit=yes 7688else 7689 echo "$as_me: failed program was:" >&5 7690sed 's/^/| /' conftest.$ac_ext >&5 7691 7692ac_cv_lib_crypto_EVP_DigestInit=no 7693fi 7694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7695LIBS=$ac_check_lib_save_LIBS 7696fi 7697echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5 7698echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6 7699if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then 7700 with_openssl="yes" 7701else 7702 with_openssl="no" 7703fi 7704 7705else 7706 with_openssl=no 7707fi 7708 7709 7710 ;; 7711esac 7712 7713 if test "$with_openssl" != "no"; then 7714 7715cat >>confdefs.h <<\_ACEOF 7716#define HAVE_OPENSSL 7717_ACEOF 7718 7719 else 7720 CPPFLAGS=$save_CPPFLAGS 7721 LDFLAGS=$save_LDFLAGS 7722 fi 7723 7724echo "$as_me:$LINENO: checking for OpenSSL" >&5 7725echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6 7726echo "$as_me:$LINENO: result: $with_openssl" >&5 7727echo "${ECHO_T}$with_openssl" >&6 7728 7729 7730 7731# Check whether --with-des or --without-des was given. 7732if test "${with_des+set}" = set; then 7733 withval="$with_des" 7734 with_des=$withval 7735else 7736 with_des=yes 7737fi; 7738 7739LIB_DES="" 7740if test "$with_des" != no; then 7741 if test -d $with_des; then 7742 CPPFLAGS="$CPPFLAGS -I${with_des}/include" 7743 LDFLAGS="$LDFLAGS -L${with_des}/lib" 7744 fi 7745 7746 if test "$with_openssl" != no; then 7747 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5 7748echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 7749if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then 7750 echo $ECHO_N "(cached) $ECHO_C" >&6 7751else 7752 ac_check_lib_save_LIBS=$LIBS 7753LIBS="-lcrypto $LIB_RSAREF $LIBS" 7754cat >conftest.$ac_ext <<_ACEOF 7755#line $LINENO "configure" 7756/* confdefs.h. */ 7757_ACEOF 7758cat confdefs.h >>conftest.$ac_ext 7759cat >>conftest.$ac_ext <<_ACEOF 7760/* end confdefs.h. */ 7761 7762/* Override any gcc2 internal prototype to avoid an error. */ 7763#ifdef __cplusplus 7764extern "C" 7765#endif 7766/* We use char because int might match the return type of a gcc2 7767 builtin and then its argument prototype would still apply. */ 7768char des_cbc_encrypt (); 7769int 7770main () 7771{ 7772des_cbc_encrypt (); 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777rm -f conftest.$ac_objext conftest$ac_exeext 7778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7779 (eval $ac_link) 2>&5 7780 ac_status=$? 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && 7783 { ac_try='test -s conftest$ac_exeext' 7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7785 (eval $ac_try) 2>&5 7786 ac_status=$? 7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 (exit $ac_status); }; }; then 7789 ac_cv_lib_crypto_des_cbc_encrypt=yes 7790else 7791 echo "$as_me: failed program was:" >&5 7792sed 's/^/| /' conftest.$ac_ext >&5 7793 7794ac_cv_lib_crypto_des_cbc_encrypt=no 7795fi 7796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7797LIBS=$ac_check_lib_save_LIBS 7798fi 7799echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 7800echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6 7801if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then 7802 7803 if test "${ac_cv_header_openssl_des_h+set}" = set; then 7804 echo "$as_me:$LINENO: checking for openssl/des.h" >&5 7805echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 7806if test "${ac_cv_header_openssl_des_h+set}" = set; then 7807 echo $ECHO_N "(cached) $ECHO_C" >&6 7808fi 7809echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 7810echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 7811else 7812 # Is the header compilable? 7813echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 7814echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6 7815cat >conftest.$ac_ext <<_ACEOF 7816#line $LINENO "configure" 7817/* confdefs.h. */ 7818_ACEOF 7819cat confdefs.h >>conftest.$ac_ext 7820cat >>conftest.$ac_ext <<_ACEOF 7821/* end confdefs.h. */ 7822$ac_includes_default 7823#include <openssl/des.h> 7824_ACEOF 7825rm -f conftest.$ac_objext 7826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7827 (eval $ac_compile) 2>&5 7828 ac_status=$? 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 (exit $ac_status); } && 7831 { ac_try='test -s conftest.$ac_objext' 7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7833 (eval $ac_try) 2>&5 7834 ac_status=$? 7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7836 (exit $ac_status); }; }; then 7837 ac_header_compiler=yes 7838else 7839 echo "$as_me: failed program was:" >&5 7840sed 's/^/| /' conftest.$ac_ext >&5 7841 7842ac_header_compiler=no 7843fi 7844rm -f conftest.$ac_objext conftest.$ac_ext 7845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7846echo "${ECHO_T}$ac_header_compiler" >&6 7847 7848# Is the header present? 7849echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 7850echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6 7851cat >conftest.$ac_ext <<_ACEOF 7852#line $LINENO "configure" 7853/* confdefs.h. */ 7854_ACEOF 7855cat confdefs.h >>conftest.$ac_ext 7856cat >>conftest.$ac_ext <<_ACEOF 7857/* end confdefs.h. */ 7858#include <openssl/des.h> 7859_ACEOF 7860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7862 ac_status=$? 7863 grep -v '^ *+' conftest.er1 >conftest.err 7864 rm -f conftest.er1 7865 cat conftest.err >&5 7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7867 (exit $ac_status); } >/dev/null; then 7868 if test -s conftest.err; then 7869 ac_cpp_err=$ac_c_preproc_warn_flag 7870 else 7871 ac_cpp_err= 7872 fi 7873else 7874 ac_cpp_err=yes 7875fi 7876if test -z "$ac_cpp_err"; then 7877 ac_header_preproc=yes 7878else 7879 echo "$as_me: failed program was:" >&5 7880sed 's/^/| /' conftest.$ac_ext >&5 7881 7882 ac_header_preproc=no 7883fi 7884rm -f conftest.err conftest.$ac_ext 7885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7886echo "${ECHO_T}$ac_header_preproc" >&6 7887 7888# So? What about this header? 7889case $ac_header_compiler:$ac_header_preproc in 7890 yes:no ) 7891 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 7892echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7893 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 7894echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 7895 ( 7896 cat <<\_ASBOX 7897## ------------------------------------ ## 7898## Report this to bug-autoconf@gnu.org. ## 7899## ------------------------------------ ## 7900_ASBOX 7901 ) | 7902 sed "s/^/$as_me: WARNING: /" >&2 7903 ;; 7904 no:yes ) 7905 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 7906echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 7907 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 7908echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 7909 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 7910echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 7911 ( 7912 cat <<\_ASBOX 7913## ------------------------------------ ## 7914## Report this to bug-autoconf@gnu.org. ## 7915## ------------------------------------ ## 7916_ASBOX 7917 ) | 7918 sed "s/^/$as_me: WARNING: /" >&2 7919 ;; 7920esac 7921echo "$as_me:$LINENO: checking for openssl/des.h" >&5 7922echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 7923if test "${ac_cv_header_openssl_des_h+set}" = set; then 7924 echo $ECHO_N "(cached) $ECHO_C" >&6 7925else 7926 ac_cv_header_openssl_des_h=$ac_header_preproc 7927fi 7928echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 7929echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 7930 7931fi 7932if test $ac_cv_header_openssl_des_h = yes; then 7933 7934cat >>confdefs.h <<\_ACEOF 7935#define WITH_SSL_DES 7936_ACEOF 7937 7938 LIB_DES="-lcrypto"; 7939 with_des=yes 7940else 7941 with_des=no 7942fi 7943 7944 7945else 7946 with_des=no 7947fi 7948 7949 7950 if test "$with_des" = no; then 7951 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 7952echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6 7953if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 7954 echo $ECHO_N "(cached) $ECHO_C" >&6 7955else 7956 ac_check_lib_save_LIBS=$LIBS 7957LIBS="-lcrypto $LIB_RSAREF $LIBS" 7958cat >conftest.$ac_ext <<_ACEOF 7959#line $LINENO "configure" 7960/* confdefs.h. */ 7961_ACEOF 7962cat confdefs.h >>conftest.$ac_ext 7963cat >>conftest.$ac_ext <<_ACEOF 7964/* end confdefs.h. */ 7965 7966/* Override any gcc2 internal prototype to avoid an error. */ 7967#ifdef __cplusplus 7968extern "C" 7969#endif 7970/* We use char because int might match the return type of a gcc2 7971 builtin and then its argument prototype would still apply. */ 7972char DES_cbc_encrypt (); 7973int 7974main () 7975{ 7976DES_cbc_encrypt (); 7977 ; 7978 return 0; 7979} 7980_ACEOF 7981rm -f conftest.$ac_objext conftest$ac_exeext 7982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7983 (eval $ac_link) 2>&5 7984 ac_status=$? 7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7986 (exit $ac_status); } && 7987 { ac_try='test -s conftest$ac_exeext' 7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7989 (eval $ac_try) 2>&5 7990 ac_status=$? 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7992 (exit $ac_status); }; }; then 7993 ac_cv_lib_crypto_DES_cbc_encrypt=yes 7994else 7995 echo "$as_me: failed program was:" >&5 7996sed 's/^/| /' conftest.$ac_ext >&5 7997 7998ac_cv_lib_crypto_DES_cbc_encrypt=no 7999fi 8000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8001LIBS=$ac_check_lib_save_LIBS 8002fi 8003echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 8004echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6 8005if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then 8006 8007 if test "${ac_cv_header_openssl_des_h+set}" = set; then 8008 echo "$as_me:$LINENO: checking for openssl/des.h" >&5 8009echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 8010if test "${ac_cv_header_openssl_des_h+set}" = set; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012fi 8013echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 8014echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 8015else 8016 # Is the header compilable? 8017echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 8018echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6 8019cat >conftest.$ac_ext <<_ACEOF 8020#line $LINENO "configure" 8021/* confdefs.h. */ 8022_ACEOF 8023cat confdefs.h >>conftest.$ac_ext 8024cat >>conftest.$ac_ext <<_ACEOF 8025/* end confdefs.h. */ 8026$ac_includes_default 8027#include <openssl/des.h> 8028_ACEOF 8029rm -f conftest.$ac_objext 8030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8031 (eval $ac_compile) 2>&5 8032 ac_status=$? 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8034 (exit $ac_status); } && 8035 { ac_try='test -s conftest.$ac_objext' 8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8037 (eval $ac_try) 2>&5 8038 ac_status=$? 8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 (exit $ac_status); }; }; then 8041 ac_header_compiler=yes 8042else 8043 echo "$as_me: failed program was:" >&5 8044sed 's/^/| /' conftest.$ac_ext >&5 8045 8046ac_header_compiler=no 8047fi 8048rm -f conftest.$ac_objext conftest.$ac_ext 8049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8050echo "${ECHO_T}$ac_header_compiler" >&6 8051 8052# Is the header present? 8053echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 8054echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6 8055cat >conftest.$ac_ext <<_ACEOF 8056#line $LINENO "configure" 8057/* confdefs.h. */ 8058_ACEOF 8059cat confdefs.h >>conftest.$ac_ext 8060cat >>conftest.$ac_ext <<_ACEOF 8061/* end confdefs.h. */ 8062#include <openssl/des.h> 8063_ACEOF 8064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8066 ac_status=$? 8067 grep -v '^ *+' conftest.er1 >conftest.err 8068 rm -f conftest.er1 8069 cat conftest.err >&5 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 (exit $ac_status); } >/dev/null; then 8072 if test -s conftest.err; then 8073 ac_cpp_err=$ac_c_preproc_warn_flag 8074 else 8075 ac_cpp_err= 8076 fi 8077else 8078 ac_cpp_err=yes 8079fi 8080if test -z "$ac_cpp_err"; then 8081 ac_header_preproc=yes 8082else 8083 echo "$as_me: failed program was:" >&5 8084sed 's/^/| /' conftest.$ac_ext >&5 8085 8086 ac_header_preproc=no 8087fi 8088rm -f conftest.err conftest.$ac_ext 8089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8090echo "${ECHO_T}$ac_header_preproc" >&6 8091 8092# So? What about this header? 8093case $ac_header_compiler:$ac_header_preproc in 8094 yes:no ) 8095 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 8096echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8097 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 8098echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 8099 ( 8100 cat <<\_ASBOX 8101## ------------------------------------ ## 8102## Report this to bug-autoconf@gnu.org. ## 8103## ------------------------------------ ## 8104_ASBOX 8105 ) | 8106 sed "s/^/$as_me: WARNING: /" >&2 8107 ;; 8108 no:yes ) 8109 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 8110echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 8111 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 8112echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 8113 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 8114echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 8115 ( 8116 cat <<\_ASBOX 8117## ------------------------------------ ## 8118## Report this to bug-autoconf@gnu.org. ## 8119## ------------------------------------ ## 8120_ASBOX 8121 ) | 8122 sed "s/^/$as_me: WARNING: /" >&2 8123 ;; 8124esac 8125echo "$as_me:$LINENO: checking for openssl/des.h" >&5 8126echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 8127if test "${ac_cv_header_openssl_des_h+set}" = set; then 8128 echo $ECHO_N "(cached) $ECHO_C" >&6 8129else 8130 ac_cv_header_openssl_des_h=$ac_header_preproc 8131fi 8132echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 8133echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 8134 8135fi 8136if test $ac_cv_header_openssl_des_h = yes; then 8137 8138cat >>confdefs.h <<\_ACEOF 8139#define WITH_SSL_DES 8140_ACEOF 8141 8142 LIB_DES="-lcrypto"; 8143 with_des=yes 8144else 8145 with_des=no 8146fi 8147 8148 8149else 8150 with_des=no 8151fi 8152 8153 fi 8154 fi 8155 8156 if test "$with_des" = no; then 8157 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 8158echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 8159if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 8160 echo $ECHO_N "(cached) $ECHO_C" >&6 8161else 8162 ac_check_lib_save_LIBS=$LIBS 8163LIBS="-ldes $LIBS" 8164cat >conftest.$ac_ext <<_ACEOF 8165#line $LINENO "configure" 8166/* confdefs.h. */ 8167_ACEOF 8168cat confdefs.h >>conftest.$ac_ext 8169cat >>conftest.$ac_ext <<_ACEOF 8170/* end confdefs.h. */ 8171 8172/* Override any gcc2 internal prototype to avoid an error. */ 8173#ifdef __cplusplus 8174extern "C" 8175#endif 8176/* We use char because int might match the return type of a gcc2 8177 builtin and then its argument prototype would still apply. */ 8178char des_cbc_encrypt (); 8179int 8180main () 8181{ 8182des_cbc_encrypt (); 8183 ; 8184 return 0; 8185} 8186_ACEOF 8187rm -f conftest.$ac_objext conftest$ac_exeext 8188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8189 (eval $ac_link) 2>&5 8190 ac_status=$? 8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8192 (exit $ac_status); } && 8193 { ac_try='test -s conftest$ac_exeext' 8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8195 (eval $ac_try) 2>&5 8196 ac_status=$? 8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 (exit $ac_status); }; }; then 8199 ac_cv_lib_des_des_cbc_encrypt=yes 8200else 8201 echo "$as_me: failed program was:" >&5 8202sed 's/^/| /' conftest.$ac_ext >&5 8203 8204ac_cv_lib_des_des_cbc_encrypt=no 8205fi 8206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8207LIBS=$ac_check_lib_save_LIBS 8208fi 8209echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 8210echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 8211if test $ac_cv_lib_des_des_cbc_encrypt = yes; then 8212 LIB_DES="-ldes"; 8213 with_des=yes 8214else 8215 with_des=no 8216fi 8217 8218 fi 8219 8220 if test "$with_des" = no; then 8221 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 8222echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 8223if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 8224 echo $ECHO_N "(cached) $ECHO_C" >&6 8225else 8226 ac_check_lib_save_LIBS=$LIBS 8227LIBS="-ldes425 $LIBS" 8228cat >conftest.$ac_ext <<_ACEOF 8229#line $LINENO "configure" 8230/* confdefs.h. */ 8231_ACEOF 8232cat confdefs.h >>conftest.$ac_ext 8233cat >>conftest.$ac_ext <<_ACEOF 8234/* end confdefs.h. */ 8235 8236/* Override any gcc2 internal prototype to avoid an error. */ 8237#ifdef __cplusplus 8238extern "C" 8239#endif 8240/* We use char because int might match the return type of a gcc2 8241 builtin and then its argument prototype would still apply. */ 8242char des_cbc_encrypt (); 8243int 8244main () 8245{ 8246des_cbc_encrypt (); 8247 ; 8248 return 0; 8249} 8250_ACEOF 8251rm -f conftest.$ac_objext conftest$ac_exeext 8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8253 (eval $ac_link) 2>&5 8254 ac_status=$? 8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8256 (exit $ac_status); } && 8257 { ac_try='test -s conftest$ac_exeext' 8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8259 (eval $ac_try) 2>&5 8260 ac_status=$? 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8262 (exit $ac_status); }; }; then 8263 ac_cv_lib_des425_des_cbc_encrypt=yes 8264else 8265 echo "$as_me: failed program was:" >&5 8266sed 's/^/| /' conftest.$ac_ext >&5 8267 8268ac_cv_lib_des425_des_cbc_encrypt=no 8269fi 8270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8271LIBS=$ac_check_lib_save_LIBS 8272fi 8273echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 8274echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 8275if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 8276 LIB_DES="-ldes425"; 8277 with_des=yes 8278else 8279 with_des=no 8280fi 8281 8282 fi 8283 8284 if test "$with_des" = no; then 8285 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5 8286echo $ECHO_N "checking for des_cbc_encrypt in -ldes524... $ECHO_C" >&6 8287if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then 8288 echo $ECHO_N "(cached) $ECHO_C" >&6 8289else 8290 ac_check_lib_save_LIBS=$LIBS 8291LIBS="-ldes524 $LIBS" 8292cat >conftest.$ac_ext <<_ACEOF 8293#line $LINENO "configure" 8294/* confdefs.h. */ 8295_ACEOF 8296cat confdefs.h >>conftest.$ac_ext 8297cat >>conftest.$ac_ext <<_ACEOF 8298/* end confdefs.h. */ 8299 8300/* Override any gcc2 internal prototype to avoid an error. */ 8301#ifdef __cplusplus 8302extern "C" 8303#endif 8304/* We use char because int might match the return type of a gcc2 8305 builtin and then its argument prototype would still apply. */ 8306char des_cbc_encrypt (); 8307int 8308main () 8309{ 8310des_cbc_encrypt (); 8311 ; 8312 return 0; 8313} 8314_ACEOF 8315rm -f conftest.$ac_objext conftest$ac_exeext 8316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8317 (eval $ac_link) 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); } && 8321 { ac_try='test -s conftest$ac_exeext' 8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8323 (eval $ac_try) 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); }; }; then 8327 ac_cv_lib_des524_des_cbc_encrypt=yes 8328else 8329 echo "$as_me: failed program was:" >&5 8330sed 's/^/| /' conftest.$ac_ext >&5 8331 8332ac_cv_lib_des524_des_cbc_encrypt=no 8333fi 8334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8335LIBS=$ac_check_lib_save_LIBS 8336fi 8337echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5 8338echo "${ECHO_T}$ac_cv_lib_des524_des_cbc_encrypt" >&6 8339if test $ac_cv_lib_des524_des_cbc_encrypt = yes; then 8340 LIB_DES="-ldes524"; 8341 with_des=yes 8342else 8343 with_des=no 8344fi 8345 8346 fi 8347 8348 if test "$with_des" = no; then 8349 8350 LIB_RSAREF="" 8351 echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5 8352echo $ECHO_N "checking for RSAPublicEncrypt in -lrsaref... $ECHO_C" >&6 8353if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then 8354 echo $ECHO_N "(cached) $ECHO_C" >&6 8355else 8356 ac_check_lib_save_LIBS=$LIBS 8357LIBS="-lrsaref $LIBS" 8358cat >conftest.$ac_ext <<_ACEOF 8359#line $LINENO "configure" 8360/* confdefs.h. */ 8361_ACEOF 8362cat confdefs.h >>conftest.$ac_ext 8363cat >>conftest.$ac_ext <<_ACEOF 8364/* end confdefs.h. */ 8365 8366/* Override any gcc2 internal prototype to avoid an error. */ 8367#ifdef __cplusplus 8368extern "C" 8369#endif 8370/* We use char because int might match the return type of a gcc2 8371 builtin and then its argument prototype would still apply. */ 8372char RSAPublicEncrypt (); 8373int 8374main () 8375{ 8376RSAPublicEncrypt (); 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381rm -f conftest.$ac_objext conftest$ac_exeext 8382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8383 (eval $ac_link) 2>&5 8384 ac_status=$? 8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 (exit $ac_status); } && 8387 { ac_try='test -s conftest$ac_exeext' 8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8389 (eval $ac_try) 2>&5 8390 ac_status=$? 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); }; }; then 8393 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 8394else 8395 echo "$as_me: failed program was:" >&5 8396sed 's/^/| /' conftest.$ac_ext >&5 8397 8398ac_cv_lib_rsaref_RSAPublicEncrypt=no 8399fi 8400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8401LIBS=$ac_check_lib_save_LIBS 8402fi 8403echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 8404echo "${ECHO_T}$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6 8405if test $ac_cv_lib_rsaref_RSAPublicEncrypt = yes; then 8406 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes 8407else 8408 cmu_have_rsaref=no 8409fi 8410 8411 8412 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5 8413echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 8414if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then 8415 echo $ECHO_N "(cached) $ECHO_C" >&6 8416else 8417 ac_check_lib_save_LIBS=$LIBS 8418LIBS="-lcrypto $LIB_RSAREF $LIBS" 8419cat >conftest.$ac_ext <<_ACEOF 8420#line $LINENO "configure" 8421/* confdefs.h. */ 8422_ACEOF 8423cat confdefs.h >>conftest.$ac_ext 8424cat >>conftest.$ac_ext <<_ACEOF 8425/* end confdefs.h. */ 8426 8427/* Override any gcc2 internal prototype to avoid an error. */ 8428#ifdef __cplusplus 8429extern "C" 8430#endif 8431/* We use char because int might match the return type of a gcc2 8432 builtin and then its argument prototype would still apply. */ 8433char des_cbc_encrypt (); 8434int 8435main () 8436{ 8437des_cbc_encrypt (); 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442rm -f conftest.$ac_objext conftest$ac_exeext 8443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8444 (eval $ac_link) 2>&5 8445 ac_status=$? 8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 (exit $ac_status); } && 8448 { ac_try='test -s conftest$ac_exeext' 8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8450 (eval $ac_try) 2>&5 8451 ac_status=$? 8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8453 (exit $ac_status); }; }; then 8454 ac_cv_lib_crypto_des_cbc_encrypt=yes 8455else 8456 echo "$as_me: failed program was:" >&5 8457sed 's/^/| /' conftest.$ac_ext >&5 8458 8459ac_cv_lib_crypto_des_cbc_encrypt=no 8460fi 8461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8462LIBS=$ac_check_lib_save_LIBS 8463fi 8464echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 8465echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6 8466if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then 8467 8468 if test "${ac_cv_header_openssl_des_h+set}" = set; then 8469 echo "$as_me:$LINENO: checking for openssl/des.h" >&5 8470echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 8471if test "${ac_cv_header_openssl_des_h+set}" = set; then 8472 echo $ECHO_N "(cached) $ECHO_C" >&6 8473fi 8474echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 8475echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 8476else 8477 # Is the header compilable? 8478echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 8479echo $ECHO_N "checking openssl/des.h usability... $ECHO_C" >&6 8480cat >conftest.$ac_ext <<_ACEOF 8481#line $LINENO "configure" 8482/* confdefs.h. */ 8483_ACEOF 8484cat confdefs.h >>conftest.$ac_ext 8485cat >>conftest.$ac_ext <<_ACEOF 8486/* end confdefs.h. */ 8487$ac_includes_default 8488#include <openssl/des.h> 8489_ACEOF 8490rm -f conftest.$ac_objext 8491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8492 (eval $ac_compile) 2>&5 8493 ac_status=$? 8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 (exit $ac_status); } && 8496 { ac_try='test -s conftest.$ac_objext' 8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8498 (eval $ac_try) 2>&5 8499 ac_status=$? 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8501 (exit $ac_status); }; }; then 8502 ac_header_compiler=yes 8503else 8504 echo "$as_me: failed program was:" >&5 8505sed 's/^/| /' conftest.$ac_ext >&5 8506 8507ac_header_compiler=no 8508fi 8509rm -f conftest.$ac_objext conftest.$ac_ext 8510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8511echo "${ECHO_T}$ac_header_compiler" >&6 8512 8513# Is the header present? 8514echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 8515echo $ECHO_N "checking openssl/des.h presence... $ECHO_C" >&6 8516cat >conftest.$ac_ext <<_ACEOF 8517#line $LINENO "configure" 8518/* confdefs.h. */ 8519_ACEOF 8520cat confdefs.h >>conftest.$ac_ext 8521cat >>conftest.$ac_ext <<_ACEOF 8522/* end confdefs.h. */ 8523#include <openssl/des.h> 8524_ACEOF 8525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8527 ac_status=$? 8528 grep -v '^ *+' conftest.er1 >conftest.err 8529 rm -f conftest.er1 8530 cat conftest.err >&5 8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8532 (exit $ac_status); } >/dev/null; then 8533 if test -s conftest.err; then 8534 ac_cpp_err=$ac_c_preproc_warn_flag 8535 else 8536 ac_cpp_err= 8537 fi 8538else 8539 ac_cpp_err=yes 8540fi 8541if test -z "$ac_cpp_err"; then 8542 ac_header_preproc=yes 8543else 8544 echo "$as_me: failed program was:" >&5 8545sed 's/^/| /' conftest.$ac_ext >&5 8546 8547 ac_header_preproc=no 8548fi 8549rm -f conftest.err conftest.$ac_ext 8550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8551echo "${ECHO_T}$ac_header_preproc" >&6 8552 8553# So? What about this header? 8554case $ac_header_compiler:$ac_header_preproc in 8555 yes:no ) 8556 { echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 8557echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8558 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 8559echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 8560 ( 8561 cat <<\_ASBOX 8562## ------------------------------------ ## 8563## Report this to bug-autoconf@gnu.org. ## 8564## ------------------------------------ ## 8565_ASBOX 8566 ) | 8567 sed "s/^/$as_me: WARNING: /" >&2 8568 ;; 8569 no:yes ) 8570 { echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 8571echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 8572 { echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 8573echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 8574 { echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 8575echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 8576 ( 8577 cat <<\_ASBOX 8578## ------------------------------------ ## 8579## Report this to bug-autoconf@gnu.org. ## 8580## ------------------------------------ ## 8581_ASBOX 8582 ) | 8583 sed "s/^/$as_me: WARNING: /" >&2 8584 ;; 8585esac 8586echo "$as_me:$LINENO: checking for openssl/des.h" >&5 8587echo $ECHO_N "checking for openssl/des.h... $ECHO_C" >&6 8588if test "${ac_cv_header_openssl_des_h+set}" = set; then 8589 echo $ECHO_N "(cached) $ECHO_C" >&6 8590else 8591 ac_cv_header_openssl_des_h=$ac_header_preproc 8592fi 8593echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 8594echo "${ECHO_T}$ac_cv_header_openssl_des_h" >&6 8595 8596fi 8597if test $ac_cv_header_openssl_des_h = yes; then 8598 8599cat >>confdefs.h <<\_ACEOF 8600#define WITH_SSL_DES 8601_ACEOF 8602 8603 LIB_DES="-lcrypto"; 8604 with_des=yes 8605else 8606 with_des=no 8607fi 8608 8609 8610else 8611 with_des=no 8612fi 8613 8614 fi 8615fi 8616 8617if test "$with_des" != no; then 8618 8619cat >>confdefs.h <<\_ACEOF 8620#define WITH_DES 8621_ACEOF 8622 8623fi 8624 8625 8626 8627 8628# Check whether --enable-digest or --disable-digest was given. 8629if test "${enable_digest+set}" = set; then 8630 enableval="$enable_digest" 8631 digest=$enableval 8632else 8633 digest=yes 8634fi; 8635 8636if test "$digest" != no; then 8637 if test -d $digest; then 8638 CPPFLAGS="$CPPFLAGS -I$digest/include" 8639 LDFLAGS="$LDFLAGS -L$digest/lib" 8640 fi 8641 if test "$with_des" = no; then 8642 { echo "$as_me:$LINENO: WARNING: No DES support for DIGEST-MD5" >&5 8643echo "$as_me: WARNING: No DES support for DIGEST-MD5" >&2;} 8644 fi 8645fi 8646 8647echo "$as_me:$LINENO: checking DIGEST-MD5" >&5 8648echo $ECHO_N "checking DIGEST-MD5... $ECHO_C" >&6 8649if test "$digest" != no; then 8650 echo "$as_me:$LINENO: result: enabled" >&5 8651echo "${ECHO_T}enabled" >&6 8652 SASL_MECHS="$SASL_MECHS libdigestmd5.la" 8653 if test "$enable_static" = yes; then 8654 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/digestmd5.o" 8655 8656cat >>confdefs.h <<\_ACEOF 8657#define STATIC_DIGESTMD5 8658_ACEOF 8659 8660 fi 8661else 8662 echo "$as_me:$LINENO: result: disabled" >&5 8663echo "${ECHO_T}disabled" >&6 8664fi 8665 8666# Check whether --enable-otp or --disable-otp was given. 8667if test "${enable_otp+set}" = set; then 8668 enableval="$enable_otp" 8669 otp=$enableval 8670else 8671 otp=yes 8672fi; 8673 8674if test "$with_openssl" = no; then 8675 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- OTP will be disabled" >&5 8676echo "$as_me: WARNING: OpenSSL not found -- OTP will be disabled" >&2;} 8677 otp=no 8678fi 8679 8680echo "$as_me:$LINENO: checking OTP" >&5 8681echo $ECHO_N "checking OTP... $ECHO_C" >&6 8682if test "$otp" != no; then 8683 echo "$as_me:$LINENO: result: enabled" >&5 8684echo "${ECHO_T}enabled" >&6 8685 OTP_LIBS="-lcrypto $LIB_RSAREF" 8686 8687 SASL_MECHS="$SASL_MECHS libotp.la" 8688 if test "$enable_static" = yes; then 8689 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/otp.o" 8690 8691cat >>confdefs.h <<\_ACEOF 8692#define STATIC_OTP 8693_ACEOF 8694 8695 fi 8696 8697 8698# Check whether --with-with-opie or --without-with-opie was given. 8699if test "${with_with_opie+set}" = set; then 8700 withval="$with_with_opie" 8701 with_opie="${withval}" 8702fi; 8703 8704 case "$with_opie" in 8705 ""|yes) 8706 echo "$as_me:$LINENO: checking for opiechallenge in -lopie" >&5 8707echo $ECHO_N "checking for opiechallenge in -lopie... $ECHO_C" >&6 8708if test "${ac_cv_lib_opie_opiechallenge+set}" = set; then 8709 echo $ECHO_N "(cached) $ECHO_C" >&6 8710else 8711 ac_check_lib_save_LIBS=$LIBS 8712LIBS="-lopie $LIBS" 8713cat >conftest.$ac_ext <<_ACEOF 8714#line $LINENO "configure" 8715/* confdefs.h. */ 8716_ACEOF 8717cat confdefs.h >>conftest.$ac_ext 8718cat >>conftest.$ac_ext <<_ACEOF 8719/* end confdefs.h. */ 8720 8721/* Override any gcc2 internal prototype to avoid an error. */ 8722#ifdef __cplusplus 8723extern "C" 8724#endif 8725/* We use char because int might match the return type of a gcc2 8726 builtin and then its argument prototype would still apply. */ 8727char opiechallenge (); 8728int 8729main () 8730{ 8731opiechallenge (); 8732 ; 8733 return 0; 8734} 8735_ACEOF 8736rm -f conftest.$ac_objext conftest$ac_exeext 8737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8738 (eval $ac_link) 2>&5 8739 ac_status=$? 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); } && 8742 { ac_try='test -s conftest$ac_exeext' 8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8744 (eval $ac_try) 2>&5 8745 ac_status=$? 8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8747 (exit $ac_status); }; }; then 8748 ac_cv_lib_opie_opiechallenge=yes 8749else 8750 echo "$as_me: failed program was:" >&5 8751sed 's/^/| /' conftest.$ac_ext >&5 8752 8753ac_cv_lib_opie_opiechallenge=no 8754fi 8755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8756LIBS=$ac_check_lib_save_LIBS 8757fi 8758echo "$as_me:$LINENO: result: $ac_cv_lib_opie_opiechallenge" >&5 8759echo "${ECHO_T}$ac_cv_lib_opie_opiechallenge" >&6 8760if test $ac_cv_lib_opie_opiechallenge = yes; then 8761 8762 if test "${ac_cv_header_opie_h+set}" = set; then 8763 echo "$as_me:$LINENO: checking for opie.h" >&5 8764echo $ECHO_N "checking for opie.h... $ECHO_C" >&6 8765if test "${ac_cv_header_opie_h+set}" = set; then 8766 echo $ECHO_N "(cached) $ECHO_C" >&6 8767fi 8768echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5 8769echo "${ECHO_T}$ac_cv_header_opie_h" >&6 8770else 8771 # Is the header compilable? 8772echo "$as_me:$LINENO: checking opie.h usability" >&5 8773echo $ECHO_N "checking opie.h usability... $ECHO_C" >&6 8774cat >conftest.$ac_ext <<_ACEOF 8775#line $LINENO "configure" 8776/* confdefs.h. */ 8777_ACEOF 8778cat confdefs.h >>conftest.$ac_ext 8779cat >>conftest.$ac_ext <<_ACEOF 8780/* end confdefs.h. */ 8781$ac_includes_default 8782#include <opie.h> 8783_ACEOF 8784rm -f conftest.$ac_objext 8785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8786 (eval $ac_compile) 2>&5 8787 ac_status=$? 8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8789 (exit $ac_status); } && 8790 { ac_try='test -s conftest.$ac_objext' 8791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8792 (eval $ac_try) 2>&5 8793 ac_status=$? 8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); }; }; then 8796 ac_header_compiler=yes 8797else 8798 echo "$as_me: failed program was:" >&5 8799sed 's/^/| /' conftest.$ac_ext >&5 8800 8801ac_header_compiler=no 8802fi 8803rm -f conftest.$ac_objext conftest.$ac_ext 8804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8805echo "${ECHO_T}$ac_header_compiler" >&6 8806 8807# Is the header present? 8808echo "$as_me:$LINENO: checking opie.h presence" >&5 8809echo $ECHO_N "checking opie.h presence... $ECHO_C" >&6 8810cat >conftest.$ac_ext <<_ACEOF 8811#line $LINENO "configure" 8812/* confdefs.h. */ 8813_ACEOF 8814cat confdefs.h >>conftest.$ac_ext 8815cat >>conftest.$ac_ext <<_ACEOF 8816/* end confdefs.h. */ 8817#include <opie.h> 8818_ACEOF 8819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8821 ac_status=$? 8822 grep -v '^ *+' conftest.er1 >conftest.err 8823 rm -f conftest.er1 8824 cat conftest.err >&5 8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8826 (exit $ac_status); } >/dev/null; then 8827 if test -s conftest.err; then 8828 ac_cpp_err=$ac_c_preproc_warn_flag 8829 else 8830 ac_cpp_err= 8831 fi 8832else 8833 ac_cpp_err=yes 8834fi 8835if test -z "$ac_cpp_err"; then 8836 ac_header_preproc=yes 8837else 8838 echo "$as_me: failed program was:" >&5 8839sed 's/^/| /' conftest.$ac_ext >&5 8840 8841 ac_header_preproc=no 8842fi 8843rm -f conftest.err conftest.$ac_ext 8844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8845echo "${ECHO_T}$ac_header_preproc" >&6 8846 8847# So? What about this header? 8848case $ac_header_compiler:$ac_header_preproc in 8849 yes:no ) 8850 { echo "$as_me:$LINENO: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&5 8851echo "$as_me: WARNING: opie.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8852 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5 8853echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;} 8854 ( 8855 cat <<\_ASBOX 8856## ------------------------------------ ## 8857## Report this to bug-autoconf@gnu.org. ## 8858## ------------------------------------ ## 8859_ASBOX 8860 ) | 8861 sed "s/^/$as_me: WARNING: /" >&2 8862 ;; 8863 no:yes ) 8864 { echo "$as_me:$LINENO: WARNING: opie.h: present but cannot be compiled" >&5 8865echo "$as_me: WARNING: opie.h: present but cannot be compiled" >&2;} 8866 { echo "$as_me:$LINENO: WARNING: opie.h: check for missing prerequisite headers?" >&5 8867echo "$as_me: WARNING: opie.h: check for missing prerequisite headers?" >&2;} 8868 { echo "$as_me:$LINENO: WARNING: opie.h: proceeding with the preprocessor's result" >&5 8869echo "$as_me: WARNING: opie.h: proceeding with the preprocessor's result" >&2;} 8870 ( 8871 cat <<\_ASBOX 8872## ------------------------------------ ## 8873## Report this to bug-autoconf@gnu.org. ## 8874## ------------------------------------ ## 8875_ASBOX 8876 ) | 8877 sed "s/^/$as_me: WARNING: /" >&2 8878 ;; 8879esac 8880echo "$as_me:$LINENO: checking for opie.h" >&5 8881echo $ECHO_N "checking for opie.h... $ECHO_C" >&6 8882if test "${ac_cv_header_opie_h+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 ac_cv_header_opie_h=$ac_header_preproc 8886fi 8887echo "$as_me:$LINENO: result: $ac_cv_header_opie_h" >&5 8888echo "${ECHO_T}$ac_cv_header_opie_h" >&6 8889 8890fi 8891if test $ac_cv_header_opie_h = yes; then 8892 with_opie="yes" 8893else 8894 with_opie="no" 8895fi 8896 8897 8898else 8899 with_opie="no" 8900fi 8901 8902 ;; 8903 *) 8904 if test -d $with_opie; then 8905 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include" 8906 LDFLAGS="${LDFLAGS} -L${with_opie}/lib" 8907 else 8908 with_opie="no" 8909 fi 8910 ;; 8911 esac 8912 8913 echo "$as_me:$LINENO: checking for OPIE" >&5 8914echo $ECHO_N "checking for OPIE... $ECHO_C" >&6 8915 echo "$as_me:$LINENO: result: $with_opie" >&5 8916echo "${ECHO_T}$with_opie" >&6 8917 8918 if test "$with_opie" != no; then 8919 8920cat >>confdefs.h <<\_ACEOF 8921#define HAVE_OPIE 8922_ACEOF 8923 8924 OTP_LIBS="$OTP_LIBS -lopie" 8925 fi 8926 8927 8928 8929else 8930 echo "$as_me:$LINENO: result: disabled" >&5 8931echo "${ECHO_T}disabled" >&6 8932fi 8933 8934# Check whether --enable-srp or --disable-srp was given. 8935if test "${enable_srp+set}" = set; then 8936 enableval="$enable_srp" 8937 srp=$enableval 8938else 8939 srp=no 8940fi; 8941 8942if test "$with_openssl" = no; then 8943 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- SRP will be disabled" >&5 8944echo "$as_me: WARNING: OpenSSL not found -- SRP will be disabled" >&2;} 8945 srp=no 8946fi 8947 8948echo "$as_me:$LINENO: checking SRP" >&5 8949echo $ECHO_N "checking SRP... $ECHO_C" >&6 8950if test "$srp" != no; then 8951 echo "$as_me:$LINENO: result: enabled" >&5 8952echo "${ECHO_T}enabled" >&6 8953 SRP_LIBS="-lcrypto $LIB_RSAREF" 8954 8955 SASL_MECHS="$SASL_MECHS libsrp.la" 8956 if test "$enable_static" = yes; then 8957 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/srp.o" 8958 8959cat >>confdefs.h <<\_ACEOF 8960#define STATIC_SRP 8961_ACEOF 8962 8963 fi 8964 8965 # Check whether --enable-srp_setpass or --disable-srp_setpass was given. 8966if test "${enable_srp_setpass+set}" = set; then 8967 enableval="$enable_srp_setpass" 8968 srp_setpass=$enableval 8969else 8970 srp_setpass=no 8971fi; 8972 8973 echo "$as_me:$LINENO: checking if we should enable setting SRP secrets with saslpasswd" >&5 8974echo $ECHO_N "checking if we should enable setting SRP secrets with saslpasswd... $ECHO_C" >&6 8975 if test "$srp_setpass" != no; then 8976 echo "$as_me:$LINENO: result: enabled" >&5 8977echo "${ECHO_T}enabled" >&6 8978 8979cat >>confdefs.h <<\_ACEOF 8980#define DO_SRP_SETPASS 8981_ACEOF 8982 8983 else 8984 echo "$as_me:$LINENO: result: disabled" >&5 8985echo "${ECHO_T}disabled" >&6 8986 fi 8987 8988 8989else 8990 echo "$as_me:$LINENO: result: disabled" >&5 8991echo "${ECHO_T}disabled" >&6 8992fi 8993 8994 8995 8996 8997 # Check whether --enable-krb4 or --disable-krb4 was given. 8998if test "${enable_krb4+set}" = set; then 8999 enableval="$enable_krb4" 9000 krb4=$enableval 9001else 9002 krb4=no 9003fi; 9004 9005 if test "$krb4" != no; then 9006 9007echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 9008echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 9009if test "${ac_cv_lib_resolv_res_search+set}" = set; then 9010 echo $ECHO_N "(cached) $ECHO_C" >&6 9011else 9012 ac_check_lib_save_LIBS=$LIBS 9013LIBS="-lresolv $LIBS" 9014cat >conftest.$ac_ext <<_ACEOF 9015#line $LINENO "configure" 9016/* confdefs.h. */ 9017_ACEOF 9018cat confdefs.h >>conftest.$ac_ext 9019cat >>conftest.$ac_ext <<_ACEOF 9020/* end confdefs.h. */ 9021 9022/* Override any gcc2 internal prototype to avoid an error. */ 9023#ifdef __cplusplus 9024extern "C" 9025#endif 9026/* We use char because int might match the return type of a gcc2 9027 builtin and then its argument prototype would still apply. */ 9028char res_search (); 9029int 9030main () 9031{ 9032res_search (); 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037rm -f conftest.$ac_objext conftest$ac_exeext 9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9039 (eval $ac_link) 2>&5 9040 ac_status=$? 9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9042 (exit $ac_status); } && 9043 { ac_try='test -s conftest$ac_exeext' 9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9045 (eval $ac_try) 2>&5 9046 ac_status=$? 9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9048 (exit $ac_status); }; }; then 9049 ac_cv_lib_resolv_res_search=yes 9050else 9051 echo "$as_me: failed program was:" >&5 9052sed 's/^/| /' conftest.$ac_ext >&5 9053 9054ac_cv_lib_resolv_res_search=no 9055fi 9056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9057LIBS=$ac_check_lib_save_LIBS 9058fi 9059echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 9060echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 9061if test $ac_cv_lib_resolv_res_search = yes; then 9062 cat >>confdefs.h <<_ACEOF 9063#define HAVE_LIBRESOLV 1 9064_ACEOF 9065 9066 LIBS="-lresolv $LIBS" 9067 9068fi 9069 9070 9071 if test -d ${krb4}; then 9072 echo "$as_me:$LINENO: checking for Kerberos includes" >&5 9073echo $ECHO_N "checking for Kerberos includes... $ECHO_C" >&6 9074if test "${cyrus_krbinclude+set}" = set; then 9075 echo $ECHO_N "(cached) $ECHO_C" >&6 9076else 9077 9078 for krbhloc in include/kerberosIV include/kerberos include 9079 do 9080 if test -f ${krb4}/${krbhloc}/krb.h ; then 9081 cyrus_krbinclude=${krb4}/${krbhloc} 9082 break 9083 fi 9084 done 9085 9086fi 9087echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5 9088echo "${ECHO_T}$cyrus_krbinclude" >&6 9089 9090 if test -n "${cyrus_krbinclude}"; then 9091 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}" 9092 fi 9093 LDFLAGS="$LDFLAGS -L$krb4/lib" 9094 fi 9095 9096 if test "$with_des" != no; then 9097 if test "${ac_cv_header_krb_h+set}" = set; then 9098 echo "$as_me:$LINENO: checking for krb.h" >&5 9099echo $ECHO_N "checking for krb.h... $ECHO_C" >&6 9100if test "${ac_cv_header_krb_h+set}" = set; then 9101 echo $ECHO_N "(cached) $ECHO_C" >&6 9102fi 9103echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5 9104echo "${ECHO_T}$ac_cv_header_krb_h" >&6 9105else 9106 # Is the header compilable? 9107echo "$as_me:$LINENO: checking krb.h usability" >&5 9108echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6 9109cat >conftest.$ac_ext <<_ACEOF 9110#line $LINENO "configure" 9111/* confdefs.h. */ 9112_ACEOF 9113cat confdefs.h >>conftest.$ac_ext 9114cat >>conftest.$ac_ext <<_ACEOF 9115/* end confdefs.h. */ 9116$ac_includes_default 9117#include <krb.h> 9118_ACEOF 9119rm -f conftest.$ac_objext 9120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9121 (eval $ac_compile) 2>&5 9122 ac_status=$? 9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9124 (exit $ac_status); } && 9125 { ac_try='test -s conftest.$ac_objext' 9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9127 (eval $ac_try) 2>&5 9128 ac_status=$? 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 (exit $ac_status); }; }; then 9131 ac_header_compiler=yes 9132else 9133 echo "$as_me: failed program was:" >&5 9134sed 's/^/| /' conftest.$ac_ext >&5 9135 9136ac_header_compiler=no 9137fi 9138rm -f conftest.$ac_objext conftest.$ac_ext 9139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9140echo "${ECHO_T}$ac_header_compiler" >&6 9141 9142# Is the header present? 9143echo "$as_me:$LINENO: checking krb.h presence" >&5 9144echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6 9145cat >conftest.$ac_ext <<_ACEOF 9146#line $LINENO "configure" 9147/* confdefs.h. */ 9148_ACEOF 9149cat confdefs.h >>conftest.$ac_ext 9150cat >>conftest.$ac_ext <<_ACEOF 9151/* end confdefs.h. */ 9152#include <krb.h> 9153_ACEOF 9154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9156 ac_status=$? 9157 grep -v '^ *+' conftest.er1 >conftest.err 9158 rm -f conftest.er1 9159 cat conftest.err >&5 9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9161 (exit $ac_status); } >/dev/null; then 9162 if test -s conftest.err; then 9163 ac_cpp_err=$ac_c_preproc_warn_flag 9164 else 9165 ac_cpp_err= 9166 fi 9167else 9168 ac_cpp_err=yes 9169fi 9170if test -z "$ac_cpp_err"; then 9171 ac_header_preproc=yes 9172else 9173 echo "$as_me: failed program was:" >&5 9174sed 's/^/| /' conftest.$ac_ext >&5 9175 9176 ac_header_preproc=no 9177fi 9178rm -f conftest.err conftest.$ac_ext 9179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9180echo "${ECHO_T}$ac_header_preproc" >&6 9181 9182# So? What about this header? 9183case $ac_header_compiler:$ac_header_preproc in 9184 yes:no ) 9185 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5 9186echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9187 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5 9188echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;} 9189 ( 9190 cat <<\_ASBOX 9191## ------------------------------------ ## 9192## Report this to bug-autoconf@gnu.org. ## 9193## ------------------------------------ ## 9194_ASBOX 9195 ) | 9196 sed "s/^/$as_me: WARNING: /" >&2 9197 ;; 9198 no:yes ) 9199 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5 9200echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;} 9201 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5 9202echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;} 9203 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5 9204echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;} 9205 ( 9206 cat <<\_ASBOX 9207## ------------------------------------ ## 9208## Report this to bug-autoconf@gnu.org. ## 9209## ------------------------------------ ## 9210_ASBOX 9211 ) | 9212 sed "s/^/$as_me: WARNING: /" >&2 9213 ;; 9214esac 9215echo "$as_me:$LINENO: checking for krb.h" >&5 9216echo $ECHO_N "checking for krb.h... $ECHO_C" >&6 9217if test "${ac_cv_header_krb_h+set}" = set; then 9218 echo $ECHO_N "(cached) $ECHO_C" >&6 9219else 9220 ac_cv_header_krb_h=$ac_header_preproc 9221fi 9222echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5 9223echo "${ECHO_T}$ac_cv_header_krb_h" >&6 9224 9225fi 9226if test $ac_cv_header_krb_h = yes; then 9227 9228 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 9229echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 9230if test "${ac_cv_lib_com_err_com_err+set}" = set; then 9231 echo $ECHO_N "(cached) $ECHO_C" >&6 9232else 9233 ac_check_lib_save_LIBS=$LIBS 9234LIBS="-lcom_err $LIBS" 9235cat >conftest.$ac_ext <<_ACEOF 9236#line $LINENO "configure" 9237/* confdefs.h. */ 9238_ACEOF 9239cat confdefs.h >>conftest.$ac_ext 9240cat >>conftest.$ac_ext <<_ACEOF 9241/* end confdefs.h. */ 9242 9243/* Override any gcc2 internal prototype to avoid an error. */ 9244#ifdef __cplusplus 9245extern "C" 9246#endif 9247/* We use char because int might match the return type of a gcc2 9248 builtin and then its argument prototype would still apply. */ 9249char com_err (); 9250int 9251main () 9252{ 9253com_err (); 9254 ; 9255 return 0; 9256} 9257_ACEOF 9258rm -f conftest.$ac_objext conftest$ac_exeext 9259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9260 (eval $ac_link) 2>&5 9261 ac_status=$? 9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9263 (exit $ac_status); } && 9264 { ac_try='test -s conftest$ac_exeext' 9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9266 (eval $ac_try) 2>&5 9267 ac_status=$? 9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9269 (exit $ac_status); }; }; then 9270 ac_cv_lib_com_err_com_err=yes 9271else 9272 echo "$as_me: failed program was:" >&5 9273sed 's/^/| /' conftest.$ac_ext >&5 9274 9275ac_cv_lib_com_err_com_err=no 9276fi 9277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9278LIBS=$ac_check_lib_save_LIBS 9279fi 9280echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 9281echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 9282if test $ac_cv_lib_com_err_com_err = yes; then 9283 9284 echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5 9285echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6 9286if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then 9287 echo $ECHO_N "(cached) $ECHO_C" >&6 9288else 9289 ac_check_lib_save_LIBS=$LIBS 9290LIBS="-lkrb $LIB_DES -lcom_err $LIBS" 9291cat >conftest.$ac_ext <<_ACEOF 9292#line $LINENO "configure" 9293/* confdefs.h. */ 9294_ACEOF 9295cat confdefs.h >>conftest.$ac_ext 9296cat >>conftest.$ac_ext <<_ACEOF 9297/* end confdefs.h. */ 9298 9299/* Override any gcc2 internal prototype to avoid an error. */ 9300#ifdef __cplusplus 9301extern "C" 9302#endif 9303/* We use char because int might match the return type of a gcc2 9304 builtin and then its argument prototype would still apply. */ 9305char krb_mk_priv (); 9306int 9307main () 9308{ 9309krb_mk_priv (); 9310 ; 9311 return 0; 9312} 9313_ACEOF 9314rm -f conftest.$ac_objext conftest$ac_exeext 9315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9316 (eval $ac_link) 2>&5 9317 ac_status=$? 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 (exit $ac_status); } && 9320 { ac_try='test -s conftest$ac_exeext' 9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9322 (eval $ac_try) 2>&5 9323 ac_status=$? 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 (exit $ac_status); }; }; then 9326 ac_cv_lib_krb_krb_mk_priv=yes 9327else 9328 echo "$as_me: failed program was:" >&5 9329sed 's/^/| /' conftest.$ac_ext >&5 9330 9331ac_cv_lib_krb_krb_mk_priv=no 9332fi 9333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9334LIBS=$ac_check_lib_save_LIBS 9335fi 9336echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5 9337echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6 9338if test $ac_cv_lib_krb_krb_mk_priv = yes; then 9339 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 9340else 9341 krb4lib=no 9342fi 9343 9344else 9345 9346 echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5 9347echo $ECHO_N "checking for krb_mk_priv in -lkrb... $ECHO_C" >&6 9348if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then 9349 echo $ECHO_N "(cached) $ECHO_C" >&6 9350else 9351 ac_check_lib_save_LIBS=$LIBS 9352LIBS="-lkrb $LIB_DES $LIBS" 9353cat >conftest.$ac_ext <<_ACEOF 9354#line $LINENO "configure" 9355/* confdefs.h. */ 9356_ACEOF 9357cat confdefs.h >>conftest.$ac_ext 9358cat >>conftest.$ac_ext <<_ACEOF 9359/* end confdefs.h. */ 9360 9361/* Override any gcc2 internal prototype to avoid an error. */ 9362#ifdef __cplusplus 9363extern "C" 9364#endif 9365/* We use char because int might match the return type of a gcc2 9366 builtin and then its argument prototype would still apply. */ 9367char krb_mk_priv (); 9368int 9369main () 9370{ 9371krb_mk_priv (); 9372 ; 9373 return 0; 9374} 9375_ACEOF 9376rm -f conftest.$ac_objext conftest$ac_exeext 9377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9378 (eval $ac_link) 2>&5 9379 ac_status=$? 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } && 9382 { ac_try='test -s conftest$ac_exeext' 9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9384 (eval $ac_try) 2>&5 9385 ac_status=$? 9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9387 (exit $ac_status); }; }; then 9388 ac_cv_lib_krb_krb_mk_priv=yes 9389else 9390 echo "$as_me: failed program was:" >&5 9391sed 's/^/| /' conftest.$ac_ext >&5 9392 9393ac_cv_lib_krb_krb_mk_priv=no 9394fi 9395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9396LIBS=$ac_check_lib_save_LIBS 9397fi 9398echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5 9399echo "${ECHO_T}$ac_cv_lib_krb_krb_mk_priv" >&6 9400if test $ac_cv_lib_krb_krb_mk_priv = yes; then 9401 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 9402else 9403 krb4lib=no 9404fi 9405 9406fi 9407 9408else 9409 krb4="no" 9410fi 9411 9412 9413 9414 if test "$krb4" != "no" -a "$krb4lib" = "no"; then 9415 echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5 9416echo $ECHO_N "checking for krb_mk_priv in -lkrb4... $ECHO_C" >&6 9417if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then 9418 echo $ECHO_N "(cached) $ECHO_C" >&6 9419else 9420 ac_check_lib_save_LIBS=$LIBS 9421LIBS="-lkrb4 $LIB_DES $LIBS" 9422cat >conftest.$ac_ext <<_ACEOF 9423#line $LINENO "configure" 9424/* confdefs.h. */ 9425_ACEOF 9426cat confdefs.h >>conftest.$ac_ext 9427cat >>conftest.$ac_ext <<_ACEOF 9428/* end confdefs.h. */ 9429 9430/* Override any gcc2 internal prototype to avoid an error. */ 9431#ifdef __cplusplus 9432extern "C" 9433#endif 9434/* We use char because int might match the return type of a gcc2 9435 builtin and then its argument prototype would still apply. */ 9436char krb_mk_priv (); 9437int 9438main () 9439{ 9440krb_mk_priv (); 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445rm -f conftest.$ac_objext conftest$ac_exeext 9446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9447 (eval $ac_link) 2>&5 9448 ac_status=$? 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); } && 9451 { ac_try='test -s conftest$ac_exeext' 9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9453 (eval $ac_try) 2>&5 9454 ac_status=$? 9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9456 (exit $ac_status); }; }; then 9457 ac_cv_lib_krb4_krb_mk_priv=yes 9458else 9459 echo "$as_me: failed program was:" >&5 9460sed 's/^/| /' conftest.$ac_ext >&5 9461 9462ac_cv_lib_krb4_krb_mk_priv=no 9463fi 9464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9465LIBS=$ac_check_lib_save_LIBS 9466fi 9467echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5 9468echo "${ECHO_T}$ac_cv_lib_krb4_krb_mk_priv" >&6 9469if test $ac_cv_lib_krb4_krb_mk_priv = yes; then 9470 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes 9471else 9472 krb4=no 9473fi 9474 9475 fi 9476 if test "$krb4" = no; then 9477 { echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5 9478echo "$as_me: WARNING: No Kerberos V4 found" >&2;} 9479 fi 9480 else 9481 { echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5 9482echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;} 9483 krb4=no 9484 fi 9485 fi 9486 9487 if test "$krb4" != no; then 9488 cmu_save_LIBS="$LIBS" 9489 LIBS="$LIBS $SASL_KRB_LIB" 9490 9491for ac_func in krb_get_err_text 9492do 9493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9494echo "$as_me:$LINENO: checking for $ac_func" >&5 9495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9496if eval "test \"\${$as_ac_var+set}\" = set"; then 9497 echo $ECHO_N "(cached) $ECHO_C" >&6 9498else 9499 cat >conftest.$ac_ext <<_ACEOF 9500#line $LINENO "configure" 9501/* confdefs.h. */ 9502_ACEOF 9503cat confdefs.h >>conftest.$ac_ext 9504cat >>conftest.$ac_ext <<_ACEOF 9505/* end confdefs.h. */ 9506/* System header to define __stub macros and hopefully few prototypes, 9507 which can conflict with char $ac_func (); below. 9508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9509 <limits.h> exists even on freestanding compilers. */ 9510#ifdef __STDC__ 9511# include <limits.h> 9512#else 9513# include <assert.h> 9514#endif 9515/* Override any gcc2 internal prototype to avoid an error. */ 9516#ifdef __cplusplus 9517extern "C" 9518{ 9519#endif 9520/* We use char because int might match the return type of a gcc2 9521 builtin and then its argument prototype would still apply. */ 9522char $ac_func (); 9523/* The GNU C library defines this for functions which it implements 9524 to always fail with ENOSYS. Some functions are actually named 9525 something starting with __ and the normal name is an alias. */ 9526#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9527choke me 9528#else 9529char (*f) () = $ac_func; 9530#endif 9531#ifdef __cplusplus 9532} 9533#endif 9534 9535int 9536main () 9537{ 9538return f != $ac_func; 9539 ; 9540 return 0; 9541} 9542_ACEOF 9543rm -f conftest.$ac_objext conftest$ac_exeext 9544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9545 (eval $ac_link) 2>&5 9546 ac_status=$? 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); } && 9549 { ac_try='test -s conftest$ac_exeext' 9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9551 (eval $ac_try) 2>&5 9552 ac_status=$? 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 (exit $ac_status); }; }; then 9555 eval "$as_ac_var=yes" 9556else 9557 echo "$as_me: failed program was:" >&5 9558sed 's/^/| /' conftest.$ac_ext >&5 9559 9560eval "$as_ac_var=no" 9561fi 9562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9563fi 9564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9566if test `eval echo '${'$as_ac_var'}'` = yes; then 9567 cat >>confdefs.h <<_ACEOF 9568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9569_ACEOF 9570 9571fi 9572done 9573 9574 LIBS="$cmu_save_LIBS" 9575 fi 9576 9577 echo "$as_me:$LINENO: checking KERBEROS_V4" >&5 9578echo $ECHO_N "checking KERBEROS_V4... $ECHO_C" >&6 9579 if test "$krb4" != no; then 9580 echo "$as_me:$LINENO: result: enabled" >&5 9581echo "${ECHO_T}enabled" >&6 9582 SASL_MECHS="$SASL_MECHS libkerberos4.la" 9583 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/kerberos4.o" 9584 9585cat >>confdefs.h <<\_ACEOF 9586#define STATIC_KERBEROS4 9587_ACEOF 9588 9589 9590cat >>confdefs.h <<\_ACEOF 9591#define HAVE_KRB 9592_ACEOF 9593 9594 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR" 9595 else 9596 echo "$as_me:$LINENO: result: disabled" >&5 9597echo "${ECHO_T}disabled" >&6 9598 fi 9599 9600 9601 9602 echo "$as_me:$LINENO: checking for crypt" >&5 9603echo $ECHO_N "checking for crypt... $ECHO_C" >&6 9604if test "${ac_cv_func_crypt+set}" = set; then 9605 echo $ECHO_N "(cached) $ECHO_C" >&6 9606else 9607 cat >conftest.$ac_ext <<_ACEOF 9608#line $LINENO "configure" 9609/* confdefs.h. */ 9610_ACEOF 9611cat confdefs.h >>conftest.$ac_ext 9612cat >>conftest.$ac_ext <<_ACEOF 9613/* end confdefs.h. */ 9614/* System header to define __stub macros and hopefully few prototypes, 9615 which can conflict with char crypt (); below. 9616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9617 <limits.h> exists even on freestanding compilers. */ 9618#ifdef __STDC__ 9619# include <limits.h> 9620#else 9621# include <assert.h> 9622#endif 9623/* Override any gcc2 internal prototype to avoid an error. */ 9624#ifdef __cplusplus 9625extern "C" 9626{ 9627#endif 9628/* We use char because int might match the return type of a gcc2 9629 builtin and then its argument prototype would still apply. */ 9630char crypt (); 9631/* The GNU C library defines this for functions which it implements 9632 to always fail with ENOSYS. Some functions are actually named 9633 something starting with __ and the normal name is an alias. */ 9634#if defined (__stub_crypt) || defined (__stub___crypt) 9635choke me 9636#else 9637char (*f) () = crypt; 9638#endif 9639#ifdef __cplusplus 9640} 9641#endif 9642 9643int 9644main () 9645{ 9646return f != crypt; 9647 ; 9648 return 0; 9649} 9650_ACEOF 9651rm -f conftest.$ac_objext conftest$ac_exeext 9652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9653 (eval $ac_link) 2>&5 9654 ac_status=$? 9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9656 (exit $ac_status); } && 9657 { ac_try='test -s conftest$ac_exeext' 9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9659 (eval $ac_try) 2>&5 9660 ac_status=$? 9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9662 (exit $ac_status); }; }; then 9663 ac_cv_func_crypt=yes 9664else 9665 echo "$as_me: failed program was:" >&5 9666sed 's/^/| /' conftest.$ac_ext >&5 9667 9668ac_cv_func_crypt=no 9669fi 9670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9671fi 9672echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 9673echo "${ECHO_T}$ac_cv_func_crypt" >&6 9674if test $ac_cv_func_crypt = yes; then 9675 cmu_have_crypt=yes 9676else 9677 9678 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 9679echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 9680if test "${ac_cv_lib_crypt_crypt+set}" = set; then 9681 echo $ECHO_N "(cached) $ECHO_C" >&6 9682else 9683 ac_check_lib_save_LIBS=$LIBS 9684LIBS="-lcrypt $LIBS" 9685cat >conftest.$ac_ext <<_ACEOF 9686#line $LINENO "configure" 9687/* confdefs.h. */ 9688_ACEOF 9689cat confdefs.h >>conftest.$ac_ext 9690cat >>conftest.$ac_ext <<_ACEOF 9691/* end confdefs.h. */ 9692 9693/* Override any gcc2 internal prototype to avoid an error. */ 9694#ifdef __cplusplus 9695extern "C" 9696#endif 9697/* We use char because int might match the return type of a gcc2 9698 builtin and then its argument prototype would still apply. */ 9699char crypt (); 9700int 9701main () 9702{ 9703crypt (); 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708rm -f conftest.$ac_objext conftest$ac_exeext 9709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9710 (eval $ac_link) 2>&5 9711 ac_status=$? 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); } && 9714 { ac_try='test -s conftest$ac_exeext' 9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9716 (eval $ac_try) 2>&5 9717 ac_status=$? 9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9719 (exit $ac_status); }; }; then 9720 ac_cv_lib_crypt_crypt=yes 9721else 9722 echo "$as_me: failed program was:" >&5 9723sed 's/^/| /' conftest.$ac_ext >&5 9724 9725ac_cv_lib_crypt_crypt=no 9726fi 9727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9728LIBS=$ac_check_lib_save_LIBS 9729fi 9730echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 9731echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 9732if test $ac_cv_lib_crypt_crypt = yes; then 9733 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes 9734else 9735 cmu_have_crypt=no 9736fi 9737 9738fi 9739 9740 9741 9742 9743 # Check whether --enable-gssapi or --disable-gssapi was given. 9744if test "${enable_gssapi+set}" = set; then 9745 enableval="$enable_gssapi" 9746 gssapi=$enableval 9747else 9748 gssapi=yes 9749fi; 9750 9751# Check whether --with-gss_impl or --without-gss_impl was given. 9752if test "${with_gss_impl+set}" = set; then 9753 withval="$with_gss_impl" 9754 gss_impl=$withval 9755else 9756 gss_impl=auto 9757fi; 9758 9759 9760 9761 if test "$gssapi" != no; then 9762 platform= 9763 case "${host}" in 9764 *-*-linux*) 9765 platform=__linux 9766 ;; 9767 *-*-hpux*) 9768 platform=__hpux 9769 ;; 9770 *-*-irix*) 9771 platform=__irix 9772 ;; 9773 *-*-solaris2*) 9774# When should we use __sunos? 9775 platform=__solaris 9776 ;; 9777 *-*-aix*) 9778 platform=__aix 9779 ;; 9780 *) 9781 { echo "$as_me:$LINENO: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&5 9782echo "$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;} 9783 ;; 9784 esac 9785 9786 cmu_saved_CPPFLAGS=$CPPFLAGS 9787 9788 if test -d ${gssapi}; then 9789 CPPFLAGS="$CPPFLAGS -I$gssapi/include" 9790# We want to keep -I in our CPPFLAGS, but only if we succeed 9791 cmu_saved_CPPFLAGS=$CPPFLAGS 9792 LDFLAGS="$LDFLAGS -L$gssapi/lib" 9793 9794 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 9795 CPPFLAGS="$CPPFLAGS -D$platform" 9796 if test -d "${gssapi}/appsec-sdk/include"; then 9797 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 9798 fi 9799 fi 9800 fi 9801 if test "${ac_cv_header_gssapi_h+set}" = set; then 9802 echo "$as_me:$LINENO: checking for gssapi.h" >&5 9803echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 9804if test "${ac_cv_header_gssapi_h+set}" = set; then 9805 echo $ECHO_N "(cached) $ECHO_C" >&6 9806fi 9807echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 9808echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 9809else 9810 # Is the header compilable? 9811echo "$as_me:$LINENO: checking gssapi.h usability" >&5 9812echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6 9813cat >conftest.$ac_ext <<_ACEOF 9814#line $LINENO "configure" 9815/* confdefs.h. */ 9816_ACEOF 9817cat confdefs.h >>conftest.$ac_ext 9818cat >>conftest.$ac_ext <<_ACEOF 9819/* end confdefs.h. */ 9820$ac_includes_default 9821#include <gssapi.h> 9822_ACEOF 9823rm -f conftest.$ac_objext 9824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9825 (eval $ac_compile) 2>&5 9826 ac_status=$? 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && 9829 { ac_try='test -s conftest.$ac_objext' 9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9831 (eval $ac_try) 2>&5 9832 ac_status=$? 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9834 (exit $ac_status); }; }; then 9835 ac_header_compiler=yes 9836else 9837 echo "$as_me: failed program was:" >&5 9838sed 's/^/| /' conftest.$ac_ext >&5 9839 9840ac_header_compiler=no 9841fi 9842rm -f conftest.$ac_objext conftest.$ac_ext 9843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9844echo "${ECHO_T}$ac_header_compiler" >&6 9845 9846# Is the header present? 9847echo "$as_me:$LINENO: checking gssapi.h presence" >&5 9848echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6 9849cat >conftest.$ac_ext <<_ACEOF 9850#line $LINENO "configure" 9851/* confdefs.h. */ 9852_ACEOF 9853cat confdefs.h >>conftest.$ac_ext 9854cat >>conftest.$ac_ext <<_ACEOF 9855/* end confdefs.h. */ 9856#include <gssapi.h> 9857_ACEOF 9858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9860 ac_status=$? 9861 grep -v '^ *+' conftest.er1 >conftest.err 9862 rm -f conftest.er1 9863 cat conftest.err >&5 9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9865 (exit $ac_status); } >/dev/null; then 9866 if test -s conftest.err; then 9867 ac_cpp_err=$ac_c_preproc_warn_flag 9868 else 9869 ac_cpp_err= 9870 fi 9871else 9872 ac_cpp_err=yes 9873fi 9874if test -z "$ac_cpp_err"; then 9875 ac_header_preproc=yes 9876else 9877 echo "$as_me: failed program was:" >&5 9878sed 's/^/| /' conftest.$ac_ext >&5 9879 9880 ac_header_preproc=no 9881fi 9882rm -f conftest.err conftest.$ac_ext 9883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9884echo "${ECHO_T}$ac_header_preproc" >&6 9885 9886# So? What about this header? 9887case $ac_header_compiler:$ac_header_preproc in 9888 yes:no ) 9889 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 9890echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9891 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 9892echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} 9893 ( 9894 cat <<\_ASBOX 9895## ------------------------------------ ## 9896## Report this to bug-autoconf@gnu.org. ## 9897## ------------------------------------ ## 9898_ASBOX 9899 ) | 9900 sed "s/^/$as_me: WARNING: /" >&2 9901 ;; 9902 no:yes ) 9903 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 9904echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} 9905 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 9906echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} 9907 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 9908echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} 9909 ( 9910 cat <<\_ASBOX 9911## ------------------------------------ ## 9912## Report this to bug-autoconf@gnu.org. ## 9913## ------------------------------------ ## 9914_ASBOX 9915 ) | 9916 sed "s/^/$as_me: WARNING: /" >&2 9917 ;; 9918esac 9919echo "$as_me:$LINENO: checking for gssapi.h" >&5 9920echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6 9921if test "${ac_cv_header_gssapi_h+set}" = set; then 9922 echo $ECHO_N "(cached) $ECHO_C" >&6 9923else 9924 ac_cv_header_gssapi_h=$ac_header_preproc 9925fi 9926echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 9927echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6 9928 9929fi 9930if test $ac_cv_header_gssapi_h = yes; then 9931 9932cat >>confdefs.h <<\_ACEOF 9933#define HAVE_GSSAPI_H 9934_ACEOF 9935 9936else 9937 9938 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 9939 echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5 9940echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6 9941if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 9942 echo $ECHO_N "(cached) $ECHO_C" >&6 9943fi 9944echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5 9945echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6 9946else 9947 # Is the header compilable? 9948echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5 9949echo $ECHO_N "checking gssapi/gssapi.h usability... $ECHO_C" >&6 9950cat >conftest.$ac_ext <<_ACEOF 9951#line $LINENO "configure" 9952/* confdefs.h. */ 9953_ACEOF 9954cat confdefs.h >>conftest.$ac_ext 9955cat >>conftest.$ac_ext <<_ACEOF 9956/* end confdefs.h. */ 9957$ac_includes_default 9958#include <gssapi/gssapi.h> 9959_ACEOF 9960rm -f conftest.$ac_objext 9961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9962 (eval $ac_compile) 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); } && 9966 { ac_try='test -s conftest.$ac_objext' 9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9968 (eval $ac_try) 2>&5 9969 ac_status=$? 9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9971 (exit $ac_status); }; }; then 9972 ac_header_compiler=yes 9973else 9974 echo "$as_me: failed program was:" >&5 9975sed 's/^/| /' conftest.$ac_ext >&5 9976 9977ac_header_compiler=no 9978fi 9979rm -f conftest.$ac_objext conftest.$ac_ext 9980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9981echo "${ECHO_T}$ac_header_compiler" >&6 9982 9983# Is the header present? 9984echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5 9985echo $ECHO_N "checking gssapi/gssapi.h presence... $ECHO_C" >&6 9986cat >conftest.$ac_ext <<_ACEOF 9987#line $LINENO "configure" 9988/* confdefs.h. */ 9989_ACEOF 9990cat confdefs.h >>conftest.$ac_ext 9991cat >>conftest.$ac_ext <<_ACEOF 9992/* end confdefs.h. */ 9993#include <gssapi/gssapi.h> 9994_ACEOF 9995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9997 ac_status=$? 9998 grep -v '^ *+' conftest.er1 >conftest.err 9999 rm -f conftest.er1 10000 cat conftest.err >&5 10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10002 (exit $ac_status); } >/dev/null; then 10003 if test -s conftest.err; then 10004 ac_cpp_err=$ac_c_preproc_warn_flag 10005 else 10006 ac_cpp_err= 10007 fi 10008else 10009 ac_cpp_err=yes 10010fi 10011if test -z "$ac_cpp_err"; then 10012 ac_header_preproc=yes 10013else 10014 echo "$as_me: failed program was:" >&5 10015sed 's/^/| /' conftest.$ac_ext >&5 10016 10017 ac_header_preproc=no 10018fi 10019rm -f conftest.err conftest.$ac_ext 10020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10021echo "${ECHO_T}$ac_header_preproc" >&6 10022 10023# So? What about this header? 10024case $ac_header_compiler:$ac_header_preproc in 10025 yes:no ) 10026 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 10027echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10028 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5 10029echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;} 10030 ( 10031 cat <<\_ASBOX 10032## ------------------------------------ ## 10033## Report this to bug-autoconf@gnu.org. ## 10034## ------------------------------------ ## 10035_ASBOX 10036 ) | 10037 sed "s/^/$as_me: WARNING: /" >&2 10038 ;; 10039 no:yes ) 10040 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5 10041echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;} 10042 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5 10043echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;} 10044 { echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5 10045echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;} 10046 ( 10047 cat <<\_ASBOX 10048## ------------------------------------ ## 10049## Report this to bug-autoconf@gnu.org. ## 10050## ------------------------------------ ## 10051_ASBOX 10052 ) | 10053 sed "s/^/$as_me: WARNING: /" >&2 10054 ;; 10055esac 10056echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5 10057echo $ECHO_N "checking for gssapi/gssapi.h... $ECHO_C" >&6 10058if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 10059 echo $ECHO_N "(cached) $ECHO_C" >&6 10060else 10061 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc 10062fi 10063echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5 10064echo "${ECHO_T}$ac_cv_header_gssapi_gssapi_h" >&6 10065 10066fi 10067if test $ac_cv_header_gssapi_gssapi_h = yes; then 10068 : 10069else 10070 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5 10071echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no 10072fi 10073 10074 10075fi 10076 10077 10078 10079 CPPFLAGS=$cmu_saved_CPPFLAGS 10080 10081 fi 10082 10083 if test "$gssapi" != no; then 10084 10085 10086echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 10087echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 10088if test "${ac_cv_lib_resolv_res_search+set}" = set; then 10089 echo $ECHO_N "(cached) $ECHO_C" >&6 10090else 10091 ac_check_lib_save_LIBS=$LIBS 10092LIBS="-lresolv $LIBS" 10093cat >conftest.$ac_ext <<_ACEOF 10094#line $LINENO "configure" 10095/* confdefs.h. */ 10096_ACEOF 10097cat confdefs.h >>conftest.$ac_ext 10098cat >>conftest.$ac_ext <<_ACEOF 10099/* end confdefs.h. */ 10100 10101/* Override any gcc2 internal prototype to avoid an error. */ 10102#ifdef __cplusplus 10103extern "C" 10104#endif 10105/* We use char because int might match the return type of a gcc2 10106 builtin and then its argument prototype would still apply. */ 10107char res_search (); 10108int 10109main () 10110{ 10111res_search (); 10112 ; 10113 return 0; 10114} 10115_ACEOF 10116rm -f conftest.$ac_objext conftest$ac_exeext 10117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10118 (eval $ac_link) 2>&5 10119 ac_status=$? 10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10121 (exit $ac_status); } && 10122 { ac_try='test -s conftest$ac_exeext' 10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10124 (eval $ac_try) 2>&5 10125 ac_status=$? 10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10127 (exit $ac_status); }; }; then 10128 ac_cv_lib_resolv_res_search=yes 10129else 10130 echo "$as_me: failed program was:" >&5 10131sed 's/^/| /' conftest.$ac_ext >&5 10132 10133ac_cv_lib_resolv_res_search=no 10134fi 10135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10136LIBS=$ac_check_lib_save_LIBS 10137fi 10138echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 10139echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 10140if test $ac_cv_lib_resolv_res_search = yes; then 10141 cat >>confdefs.h <<_ACEOF 10142#define HAVE_LIBRESOLV 1 10143_ACEOF 10144 10145 LIBS="-lresolv $LIBS" 10146 10147fi 10148 10149 if test -d ${gssapi}; then 10150 gssapi_dir="${gssapi}/lib" 10151 GSSAPIBASE_LIBS="-L$gssapi_dir" 10152 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir" 10153 else 10154 gssapi_dir="/usr/local/lib" 10155 fi 10156 10157 # Check a full link against the Heimdal libraries. 10158 # If this fails, check a full link against the MIT libraries. 10159 # If this fails, check a full link against the CyberSafe libraries. 10160 # If this fails, check a full link against the Solaris 8 and up libgss. 10161 10162 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then 10163 gss_failed=0 10164 echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5 10165echo $ECHO_N "checking for gss_unwrap in -lgssapi... $ECHO_C" >&6 10166if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then 10167 echo $ECHO_N "(cached) $ECHO_C" >&6 10168else 10169 ac_check_lib_save_LIBS=$LIBS 10170LIBS="-lgssapi $GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS" 10171cat >conftest.$ac_ext <<_ACEOF 10172#line $LINENO "configure" 10173/* confdefs.h. */ 10174_ACEOF 10175cat confdefs.h >>conftest.$ac_ext 10176cat >>conftest.$ac_ext <<_ACEOF 10177/* end confdefs.h. */ 10178 10179/* Override any gcc2 internal prototype to avoid an error. */ 10180#ifdef __cplusplus 10181extern "C" 10182#endif 10183/* We use char because int might match the return type of a gcc2 10184 builtin and then its argument prototype would still apply. */ 10185char gss_unwrap (); 10186int 10187main () 10188{ 10189gss_unwrap (); 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194rm -f conftest.$ac_objext conftest$ac_exeext 10195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10196 (eval $ac_link) 2>&5 10197 ac_status=$? 10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10199 (exit $ac_status); } && 10200 { ac_try='test -s conftest$ac_exeext' 10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10202 (eval $ac_try) 2>&5 10203 ac_status=$? 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); }; }; then 10206 ac_cv_lib_gssapi_gss_unwrap=yes 10207else 10208 echo "$as_me: failed program was:" >&5 10209sed 's/^/| /' conftest.$ac_ext >&5 10210 10211ac_cv_lib_gssapi_gss_unwrap=no 10212fi 10213rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10214LIBS=$ac_check_lib_save_LIBS 10215fi 10216echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5 10217echo "${ECHO_T}$ac_cv_lib_gssapi_gss_unwrap" >&6 10218if test $ac_cv_lib_gssapi_gss_unwrap = yes; then 10219 gss_impl="heimdal" 10220else 10221 gss_failed=1 10222fi 10223 10224 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 10225 gss_impl="failed" 10226 fi 10227 fi 10228 10229 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then 10230 gss_failed=0 10231 echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5 10232echo $ECHO_N "checking for gss_unwrap in -lgssapi_krb5... $ECHO_C" >&6 10233if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then 10234 echo $ECHO_N "(cached) $ECHO_C" >&6 10235else 10236 ac_check_lib_save_LIBS=$LIBS 10237LIBS="-lgssapi_krb5 $GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${LIB_SOCKET} $LIBS" 10238cat >conftest.$ac_ext <<_ACEOF 10239#line $LINENO "configure" 10240/* confdefs.h. */ 10241_ACEOF 10242cat confdefs.h >>conftest.$ac_ext 10243cat >>conftest.$ac_ext <<_ACEOF 10244/* end confdefs.h. */ 10245 10246/* Override any gcc2 internal prototype to avoid an error. */ 10247#ifdef __cplusplus 10248extern "C" 10249#endif 10250/* We use char because int might match the return type of a gcc2 10251 builtin and then its argument prototype would still apply. */ 10252char gss_unwrap (); 10253int 10254main () 10255{ 10256gss_unwrap (); 10257 ; 10258 return 0; 10259} 10260_ACEOF 10261rm -f conftest.$ac_objext conftest$ac_exeext 10262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10263 (eval $ac_link) 2>&5 10264 ac_status=$? 10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10266 (exit $ac_status); } && 10267 { ac_try='test -s conftest$ac_exeext' 10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10269 (eval $ac_try) 2>&5 10270 ac_status=$? 10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 (exit $ac_status); }; }; then 10273 ac_cv_lib_gssapi_krb5_gss_unwrap=yes 10274else 10275 echo "$as_me: failed program was:" >&5 10276sed 's/^/| /' conftest.$ac_ext >&5 10277 10278ac_cv_lib_gssapi_krb5_gss_unwrap=no 10279fi 10280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10281LIBS=$ac_check_lib_save_LIBS 10282fi 10283echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5 10284echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6 10285if test $ac_cv_lib_gssapi_krb5_gss_unwrap = yes; then 10286 gss_impl="mit" 10287else 10288 gss_failed=1 10289fi 10290 10291 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 10292 gss_impl="failed" 10293 fi 10294 fi 10295 10296 # For Cybersafe one has to set a platform define in order to make compilation work 10297 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 10298 10299 cmu_saved_CPPFLAGS=$CPPFLAGS 10300 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS 10301# FIX ME - Note that the libraries are in .../lib/64 for 64bit kernels 10302 if test -d "${gssapi}/appsec-rt/lib"; then 10303 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib" 10304 fi 10305 CPPFLAGS="$CPPFLAGS -D$platform" 10306 if test -d "${gssapi}/appsec-sdk/include"; then 10307 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 10308 fi 10309 10310 gss_failed=0 10311 10312# Check for CyberSafe with two libraries first, than fall back to a single 10313# library (older CyberSafe) 10314 10315 unset ac_cv_lib_gss_csf_gss_acq_user 10316 echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5 10317echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6 10318if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then 10319 echo $ECHO_N "(cached) $ECHO_C" >&6 10320else 10321 ac_check_lib_save_LIBS=$LIBS 10322LIBS="-lgss $GSSAPIBASE_LIBS -lgss -lcstbk5 $LIBS" 10323cat >conftest.$ac_ext <<_ACEOF 10324#line $LINENO "configure" 10325/* confdefs.h. */ 10326_ACEOF 10327cat confdefs.h >>conftest.$ac_ext 10328cat >>conftest.$ac_ext <<_ACEOF 10329/* end confdefs.h. */ 10330 10331/* Override any gcc2 internal prototype to avoid an error. */ 10332#ifdef __cplusplus 10333extern "C" 10334#endif 10335/* We use char because int might match the return type of a gcc2 10336 builtin and then its argument prototype would still apply. */ 10337char csf_gss_acq_user (); 10338int 10339main () 10340{ 10341csf_gss_acq_user (); 10342 ; 10343 return 0; 10344} 10345_ACEOF 10346rm -f conftest.$ac_objext conftest$ac_exeext 10347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10348 (eval $ac_link) 2>&5 10349 ac_status=$? 10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10351 (exit $ac_status); } && 10352 { ac_try='test -s conftest$ac_exeext' 10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10354 (eval $ac_try) 2>&5 10355 ac_status=$? 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10357 (exit $ac_status); }; }; then 10358 ac_cv_lib_gss_csf_gss_acq_user=yes 10359else 10360 echo "$as_me: failed program was:" >&5 10361sed 's/^/| /' conftest.$ac_ext >&5 10362 10363ac_cv_lib_gss_csf_gss_acq_user=no 10364fi 10365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10366LIBS=$ac_check_lib_save_LIBS 10367fi 10368echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 10369echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6 10370if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then 10371 gss_impl="cybersafe03" 10372else 10373 10374 unset ac_cv_lib_gss_csf_gss_acq_user;echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5 10375echo $ECHO_N "checking for csf_gss_acq_user in -lgss... $ECHO_C" >&6 10376if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then 10377 echo $ECHO_N "(cached) $ECHO_C" >&6 10378else 10379 ac_check_lib_save_LIBS=$LIBS 10380LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS" 10381cat >conftest.$ac_ext <<_ACEOF 10382#line $LINENO "configure" 10383/* confdefs.h. */ 10384_ACEOF 10385cat confdefs.h >>conftest.$ac_ext 10386cat >>conftest.$ac_ext <<_ACEOF 10387/* end confdefs.h. */ 10388 10389/* Override any gcc2 internal prototype to avoid an error. */ 10390#ifdef __cplusplus 10391extern "C" 10392#endif 10393/* We use char because int might match the return type of a gcc2 10394 builtin and then its argument prototype would still apply. */ 10395char csf_gss_acq_user (); 10396int 10397main () 10398{ 10399csf_gss_acq_user (); 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404rm -f conftest.$ac_objext conftest$ac_exeext 10405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10406 (eval $ac_link) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); } && 10410 { ac_try='test -s conftest$ac_exeext' 10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10412 (eval $ac_try) 2>&5 10413 ac_status=$? 10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10415 (exit $ac_status); }; }; then 10416 ac_cv_lib_gss_csf_gss_acq_user=yes 10417else 10418 echo "$as_me: failed program was:" >&5 10419sed 's/^/| /' conftest.$ac_ext >&5 10420 10421ac_cv_lib_gss_csf_gss_acq_user=no 10422fi 10423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10424LIBS=$ac_check_lib_save_LIBS 10425fi 10426echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 10427echo "${ECHO_T}$ac_cv_lib_gss_csf_gss_acq_user" >&6 10428if test $ac_cv_lib_gss_csf_gss_acq_user = yes; then 10429 gss_impl="cybersafe" 10430else 10431 gss_failed=1 10432fi 10433 10434fi 10435 10436 10437 if test "$gss_failed" = "1"; then 10438# Restore variables 10439 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS 10440 CPPFLAGS=$cmu_saved_CPPFLAGS 10441 10442 if test "$gss_impl" != "auto"; then 10443 gss_impl="failed" 10444 fi 10445 fi 10446 fi 10447 10448 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then 10449 gss_failed=0 10450 echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5 10451echo $ECHO_N "checking for gss_unwrap in -lgss... $ECHO_C" >&6 10452if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then 10453 echo $ECHO_N "(cached) $ECHO_C" >&6 10454else 10455 ac_check_lib_save_LIBS=$LIBS 10456LIBS="-lgss -lgss $LIBS" 10457cat >conftest.$ac_ext <<_ACEOF 10458#line $LINENO "configure" 10459/* confdefs.h. */ 10460_ACEOF 10461cat confdefs.h >>conftest.$ac_ext 10462cat >>conftest.$ac_ext <<_ACEOF 10463/* end confdefs.h. */ 10464 10465/* Override any gcc2 internal prototype to avoid an error. */ 10466#ifdef __cplusplus 10467extern "C" 10468#endif 10469/* We use char because int might match the return type of a gcc2 10470 builtin and then its argument prototype would still apply. */ 10471char gss_unwrap (); 10472int 10473main () 10474{ 10475gss_unwrap (); 10476 ; 10477 return 0; 10478} 10479_ACEOF 10480rm -f conftest.$ac_objext conftest$ac_exeext 10481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10482 (eval $ac_link) 2>&5 10483 ac_status=$? 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 (exit $ac_status); } && 10486 { ac_try='test -s conftest$ac_exeext' 10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10488 (eval $ac_try) 2>&5 10489 ac_status=$? 10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10491 (exit $ac_status); }; }; then 10492 ac_cv_lib_gss_gss_unwrap=yes 10493else 10494 echo "$as_me: failed program was:" >&5 10495sed 's/^/| /' conftest.$ac_ext >&5 10496 10497ac_cv_lib_gss_gss_unwrap=no 10498fi 10499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10500LIBS=$ac_check_lib_save_LIBS 10501fi 10502echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5 10503echo "${ECHO_T}$ac_cv_lib_gss_gss_unwrap" >&6 10504if test $ac_cv_lib_gss_gss_unwrap = yes; then 10505 gss_impl="seam" 10506else 10507 gss_failed=1 10508fi 10509 10510 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 10511 gss_impl="failed" 10512 fi 10513 fi 10514 10515 if test "$gss_impl" = "mit"; then 10516 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" 10517 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a" 10518 elif test "$gss_impl" = "heimdal"; then 10519 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err" 10520 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}" 10521 elif test "$gss_impl" = "cybersafe03"; then 10522# Version of CyberSafe with two libraries 10523 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 10524 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5" 10525 # there is no static libgss for CyberSafe 10526 GSSAPIBASE_STATIC_LIBS=none 10527 elif test "$gss_impl" = "cybersafe"; then 10528 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 10529 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss" 10530 # there is no static libgss for CyberSafe 10531 GSSAPIBASE_STATIC_LIBS=none 10532 elif test "$gss_impl" = "seam"; then 10533 GSSAPIBASE_LIBS=-lgss 10534 # there is no static libgss on Solaris 8 and up 10535 GSSAPIBASE_STATIC_LIBS=none 10536 elif test "$gss_impl" = "failed"; then 10537 gssapi="no" 10538 GSSAPIBASE_LIBS= 10539 GSSAPIBASE_STATIC_LIBS= 10540 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5 10541echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;} 10542 else 10543 gssapi="no" 10544 GSSAPIBASE_LIBS= 10545 GSSAPIBASE_STATIC_LIBS= 10546 { echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5 10547echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;} 10548 fi 10549 fi 10550 10551# 10552# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME in gssapi\rfckrb5.h 10553# 10554 if test "$gssapi" != "no"; then 10555 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 10556 cat >conftest.$ac_ext <<_ACEOF 10557#line $LINENO "configure" 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563#include <gssapi/gssapi.h> 10564 #ifdef GSS_C_NT_HOSTBASED_SERVICE 10565 hostbased_service_gss_nt_yes 10566 #endif 10567 10568_ACEOF 10569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10570 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then 10571 10572cat >>confdefs.h <<\_ACEOF 10573#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 10574_ACEOF 10575 10576else 10577 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5 10578echo "$as_me: WARNING: Cybersafe define not found" >&2;} 10579fi 10580rm -f conftest* 10581 10582 10583 elif test "$ac_cv_header_gssapi_h" = "yes"; then 10584 cat >conftest.$ac_ext <<_ACEOF 10585#line $LINENO "configure" 10586/* confdefs.h. */ 10587_ACEOF 10588cat confdefs.h >>conftest.$ac_ext 10589cat >>conftest.$ac_ext <<_ACEOF 10590/* end confdefs.h. */ 10591#include <gssapi.h> 10592 10593_ACEOF 10594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10595 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 10596 10597cat >>confdefs.h <<\_ACEOF 10598#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 10599_ACEOF 10600 10601fi 10602rm -f conftest* 10603 10604 elif test "$ac_cv_header_gssapi_gssapi_h"; then 10605 10606 cat >conftest.$ac_ext <<_ACEOF 10607#line $LINENO "configure" 10608/* confdefs.h. */ 10609_ACEOF 10610cat confdefs.h >>conftest.$ac_ext 10611cat >>conftest.$ac_ext <<_ACEOF 10612/* end confdefs.h. */ 10613#include <gssapi/gssapi.h> 10614 10615_ACEOF 10616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10617 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 10618 10619cat >>confdefs.h <<\_ACEOF 10620#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 10621_ACEOF 10622 10623fi 10624rm -f conftest* 10625 10626 fi 10627 10628 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 10629 cat >conftest.$ac_ext <<_ACEOF 10630#line $LINENO "configure" 10631/* confdefs.h. */ 10632_ACEOF 10633cat confdefs.h >>conftest.$ac_ext 10634cat >>conftest.$ac_ext <<_ACEOF 10635/* end confdefs.h. */ 10636#include <gssapi/gssapi.h> 10637 #ifdef GSS_C_NT_USER_NAME 10638 user_name_yes_gss_nt 10639 #endif 10640 10641_ACEOF 10642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10643 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then 10644 10645cat >>confdefs.h <<\_ACEOF 10646#define HAVE_GSS_C_NT_USER_NAME 10647_ACEOF 10648 10649else 10650 { echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5 10651echo "$as_me: WARNING: Cybersafe define not found" >&2;} 10652fi 10653rm -f conftest* 10654 10655 elif test "$ac_cv_header_gssapi_h" = "yes"; then 10656 cat >conftest.$ac_ext <<_ACEOF 10657#line $LINENO "configure" 10658/* confdefs.h. */ 10659_ACEOF 10660cat confdefs.h >>conftest.$ac_ext 10661cat >>conftest.$ac_ext <<_ACEOF 10662/* end confdefs.h. */ 10663#include <gssapi.h> 10664 10665_ACEOF 10666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10667 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then 10668 10669cat >>confdefs.h <<\_ACEOF 10670#define HAVE_GSS_C_NT_USER_NAME 10671_ACEOF 10672 10673fi 10674rm -f conftest* 10675 10676 elif test "$ac_cv_header_gssapi_gssapi_h"; then 10677 cat >conftest.$ac_ext <<_ACEOF 10678#line $LINENO "configure" 10679/* confdefs.h. */ 10680_ACEOF 10681cat confdefs.h >>conftest.$ac_ext 10682cat >>conftest.$ac_ext <<_ACEOF 10683/* end confdefs.h. */ 10684#include <gssapi/gssapi.h> 10685 10686_ACEOF 10687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10688 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then 10689 10690cat >>confdefs.h <<\_ACEOF 10691#define HAVE_GSS_C_NT_USER_NAME 10692_ACEOF 10693 10694fi 10695rm -f conftest* 10696 10697 fi 10698 fi 10699 10700 GSSAPI_LIBS="" 10701 echo "$as_me:$LINENO: checking GSSAPI" >&5 10702echo $ECHO_N "checking GSSAPI... $ECHO_C" >&6 10703 if test "$gssapi" != no; then 10704 echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5 10705echo "${ECHO_T}with implementation ${gss_impl}" >&6 10706 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 10707echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6 10708if test "${ac_cv_lib_resolv_res_search+set}" = set; then 10709 echo $ECHO_N "(cached) $ECHO_C" >&6 10710else 10711 ac_check_lib_save_LIBS=$LIBS 10712LIBS="-lresolv $LIBS" 10713cat >conftest.$ac_ext <<_ACEOF 10714#line $LINENO "configure" 10715/* confdefs.h. */ 10716_ACEOF 10717cat confdefs.h >>conftest.$ac_ext 10718cat >>conftest.$ac_ext <<_ACEOF 10719/* end confdefs.h. */ 10720 10721/* Override any gcc2 internal prototype to avoid an error. */ 10722#ifdef __cplusplus 10723extern "C" 10724#endif 10725/* We use char because int might match the return type of a gcc2 10726 builtin and then its argument prototype would still apply. */ 10727char res_search (); 10728int 10729main () 10730{ 10731res_search (); 10732 ; 10733 return 0; 10734} 10735_ACEOF 10736rm -f conftest.$ac_objext conftest$ac_exeext 10737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10738 (eval $ac_link) 2>&5 10739 ac_status=$? 10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10741 (exit $ac_status); } && 10742 { ac_try='test -s conftest$ac_exeext' 10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10744 (eval $ac_try) 2>&5 10745 ac_status=$? 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 (exit $ac_status); }; }; then 10748 ac_cv_lib_resolv_res_search=yes 10749else 10750 echo "$as_me: failed program was:" >&5 10751sed 's/^/| /' conftest.$ac_ext >&5 10752 10753ac_cv_lib_resolv_res_search=no 10754fi 10755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10756LIBS=$ac_check_lib_save_LIBS 10757fi 10758echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 10759echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6 10760if test $ac_cv_lib_resolv_res_search = yes; then 10761 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv" 10762fi 10763 10764 SASL_MECHS="$SASL_MECHS libgssapiv2.la" 10765 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/gssapi.o" 10766 10767 cmu_save_LIBS="$LIBS" 10768 LIBS="$LIBS $GSSAPIBASE_LIBS" 10769 10770for ac_func in gsskrb5_register_acceptor_identity 10771do 10772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10773echo "$as_me:$LINENO: checking for $ac_func" >&5 10774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10775if eval "test \"\${$as_ac_var+set}\" = set"; then 10776 echo $ECHO_N "(cached) $ECHO_C" >&6 10777else 10778 cat >conftest.$ac_ext <<_ACEOF 10779#line $LINENO "configure" 10780/* confdefs.h. */ 10781_ACEOF 10782cat confdefs.h >>conftest.$ac_ext 10783cat >>conftest.$ac_ext <<_ACEOF 10784/* end confdefs.h. */ 10785/* System header to define __stub macros and hopefully few prototypes, 10786 which can conflict with char $ac_func (); below. 10787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10788 <limits.h> exists even on freestanding compilers. */ 10789#ifdef __STDC__ 10790# include <limits.h> 10791#else 10792# include <assert.h> 10793#endif 10794/* Override any gcc2 internal prototype to avoid an error. */ 10795#ifdef __cplusplus 10796extern "C" 10797{ 10798#endif 10799/* We use char because int might match the return type of a gcc2 10800 builtin and then its argument prototype would still apply. */ 10801char $ac_func (); 10802/* The GNU C library defines this for functions which it implements 10803 to always fail with ENOSYS. Some functions are actually named 10804 something starting with __ and the normal name is an alias. */ 10805#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10806choke me 10807#else 10808char (*f) () = $ac_func; 10809#endif 10810#ifdef __cplusplus 10811} 10812#endif 10813 10814int 10815main () 10816{ 10817return f != $ac_func; 10818 ; 10819 return 0; 10820} 10821_ACEOF 10822rm -f conftest.$ac_objext conftest$ac_exeext 10823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10824 (eval $ac_link) 2>&5 10825 ac_status=$? 10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10827 (exit $ac_status); } && 10828 { ac_try='test -s conftest$ac_exeext' 10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10830 (eval $ac_try) 2>&5 10831 ac_status=$? 10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10833 (exit $ac_status); }; }; then 10834 eval "$as_ac_var=yes" 10835else 10836 echo "$as_me: failed program was:" >&5 10837sed 's/^/| /' conftest.$ac_ext >&5 10838 10839eval "$as_ac_var=no" 10840fi 10841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10842fi 10843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10845if test `eval echo '${'$as_ac_var'}'` = yes; then 10846 cat >>confdefs.h <<_ACEOF 10847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10848_ACEOF 10849 10850fi 10851done 10852 10853 LIBS="$cmu_save_LIBS" 10854else 10855 echo "$as_me:$LINENO: result: disabled" >&5 10856echo "${ECHO_T}disabled" >&6 10857fi 10858 10859 10860 10861 10862 10863 10864 # Check whether --enable-plain or --disable-plain was given. 10865if test "${enable_plain+set}" = set; then 10866 enableval="$enable_plain" 10867 plain=$enableval 10868else 10869 plain=yes 10870fi; 10871 10872 PLAIN_LIBS="" 10873 if test "$plain" != no; then 10874 if test "$cmu_have_crypt" = yes; then 10875 PLAIN_LIBS=$LIB_CRYPT 10876 fi 10877 fi 10878 10879 10880 echo "$as_me:$LINENO: checking PLAIN" >&5 10881echo $ECHO_N "checking PLAIN... $ECHO_C" >&6 10882 if test "$plain" != no; then 10883 echo "$as_me:$LINENO: result: enabled" >&5 10884echo "${ECHO_T}enabled" >&6 10885 SASL_MECHS="$SASL_MECHS libplain.la" 10886 if test "$enable_static" = yes; then 10887 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/plain.o" 10888 10889cat >>confdefs.h <<\_ACEOF 10890#define STATIC_PLAIN 10891_ACEOF 10892 10893 fi 10894 else 10895 echo "$as_me:$LINENO: result: disabled" >&5 10896echo "${ECHO_T}disabled" >&6 10897 fi 10898 10899 10900if test "$gssapi" != "no"; then 10901 10902cat >>confdefs.h <<\_ACEOF 10903#define STATIC_GSSAPIV2 10904_ACEOF 10905 10906fi 10907 10908# Check whether --enable-anon or --disable-anon was given. 10909if test "${enable_anon+set}" = set; then 10910 enableval="$enable_anon" 10911 anon=$enableval 10912else 10913 anon=yes 10914fi; 10915 10916echo "$as_me:$LINENO: checking ANONYMOUS" >&5 10917echo $ECHO_N "checking ANONYMOUS... $ECHO_C" >&6 10918if test "$anon" != no; then 10919 echo "$as_me:$LINENO: result: enabled" >&5 10920echo "${ECHO_T}enabled" >&6 10921 SASL_MECHS="$SASL_MECHS libanonymous.la" 10922 if test "$enable_static" = yes; then 10923 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/anonymous.o" 10924 10925cat >>confdefs.h <<\_ACEOF 10926#define STATIC_ANONYMOUS 10927_ACEOF 10928 10929 fi 10930else 10931 echo "$as_me:$LINENO: result: disabled" >&5 10932echo "${ECHO_T}disabled" >&6 10933fi 10934 10935# Check whether --enable-login or --disable-login was given. 10936if test "${enable_login+set}" = set; then 10937 enableval="$enable_login" 10938 login=$enableval 10939else 10940 login=no 10941fi; 10942 10943echo "$as_me:$LINENO: checking LOGIN" >&5 10944echo $ECHO_N "checking LOGIN... $ECHO_C" >&6 10945if test "$login" != no; then 10946 echo "$as_me:$LINENO: result: enabled" >&5 10947echo "${ECHO_T}enabled" >&6 10948 SASL_MECHS="$SASL_MECHS liblogin.la" 10949 if test "$enable_static" = yes; then 10950 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/login.o" 10951 10952cat >>confdefs.h <<\_ACEOF 10953#define STATIC_LOGIN 10954_ACEOF 10955 10956 fi 10957else 10958 echo "$as_me:$LINENO: result: disabled" >&5 10959echo "${ECHO_T}disabled" >&6 10960fi 10961 10962# Check whether --enable-ntlm or --disable-ntlm was given. 10963if test "${enable_ntlm+set}" = set; then 10964 enableval="$enable_ntlm" 10965 ntlm=$enableval 10966else 10967 ntlm=no 10968fi; 10969 10970if test "$with_openssl" = no; then 10971 { echo "$as_me:$LINENO: WARNING: OpenSSL not found -- NTLM will be disabled" >&5 10972echo "$as_me: WARNING: OpenSSL not found -- NTLM will be disabled" >&2;} 10973 ntlm=no 10974fi 10975 10976echo "$as_me:$LINENO: checking NTLM" >&5 10977echo $ECHO_N "checking NTLM... $ECHO_C" >&6 10978if test "$ntlm" != no; then 10979 echo "$as_me:$LINENO: result: enabled" >&5 10980echo "${ECHO_T}enabled" >&6 10981 NTLM_LIBS="-lcrypto $LIB_RSAREF" 10982 10983 10984 SASL_MECHS="$SASL_MECHS libntlm.la" 10985 if test "$enable_static" = yes; then 10986 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/ntlm.o" 10987 10988cat >>confdefs.h <<\_ACEOF 10989#define STATIC_NTLM 10990_ACEOF 10991 10992 fi 10993else 10994 echo "$as_me:$LINENO: result: disabled" >&5 10995echo "${ECHO_T}disabled" >&6 10996fi 10997 10998 10999# make the option show up so people don't whine that it is only in the 11000# saslauthd configure script --help 11001 11002# Check whether --with-ldap or --without-ldap was given. 11003if test "${with_ldap+set}" = set; then 11004 withval="$with_ldap" 11005 11006fi; 11007 11008 11009 11010# Check whether --enable-sql or --disable-sql was given. 11011if test "${enable_sql+set}" = set; then 11012 enableval="$enable_sql" 11013 sql=$enableval 11014else 11015 sql=no 11016fi; 11017 11018echo "$as_me:$LINENO: checking SQL" >&5 11019echo $ECHO_N "checking SQL... $ECHO_C" >&6 11020if test "$sql" != no; then 11021 echo "$as_me:$LINENO: result: enabled" >&5 11022echo "${ECHO_T}enabled" >&6 11023 SASL_MECHS="$SASL_MECHS libsql.la" 11024 if test "$enable_static" = yes; then 11025 SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/sql.o" 11026 11027cat >>confdefs.h <<\_ACEOF 11028#define STATIC_SQL 11029_ACEOF 11030 11031 fi 11032else 11033 echo "$as_me:$LINENO: result: disabled" >&5 11034echo "${ECHO_T}disabled" >&6 11035fi 11036 11037 11038# Check whether --with-mysql or --without-mysql was given. 11039if test "${with_mysql+set}" = set; then 11040 withval="$with_mysql" 11041 with_mysql=$withval 11042else 11043 with_mysql=$sql 11044fi; 11045 11046# find location of library 11047# presuming if one given then correct 11048if test "${with_mysql}" = "yes"; then 11049 with_mysql=notfound 11050 for mysqlloc in lib/mysql lib mysql/lib 11051 do 11052 if test -f ${prefix}/${mysqlloc}/libmysqlclient.a; then 11053 with_mysql="${prefix}" 11054 break 11055 elif test -f /usr/local/${mysqlloc}/libmysqlclient.a; then 11056 with_mysql="/usr/local" 11057 break 11058 elif test -f /usr/${mysqlloc}/libmysqlclient.a; then 11059 with_mysql="/usr" 11060 break 11061 fi 11062 done 11063fi 11064 11065LIB_MYSQL="" 11066 11067case "$with_mysql" in 11068 no) true;; 11069 notfound) { echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5 11070echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;; 11071 *) 11072 if test -d ${with_mysql}/lib/mysql; then 11073 LIB_MYSQL="-L${with_mysql}/lib/mysql -R${with_mysql}/lib/mysql" 11074 elif test -d ${with_mysql}/mysql/lib; then 11075 LIB_MYSQL="-L${with_mysql}/mysql/lib -R${with_mysql}/mysql/lib" 11076 elif test -d ${with_mysql}/lib; then 11077 LIB_MYSQL="-L${with_mysql}/lib -R${with_mysql}/lib" 11078 else 11079 LIB_MYSQL="-L${with_mysql} -R${with_mysql}" 11080 fi 11081 11082 LIB_MYSQL_DIR=$LIB_MYSQL 11083 LIB_MYSQL="$LIB_MYSQL -lmysqlclient" 11084 11085 if test -d ${with_mysql}/include/mysql; then 11086 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include/mysql" 11087 elif test -d ${with_mysql}/mysql/include; then 11088 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include" 11089 elif test -d ${with_mysql}/include; then 11090 CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include" 11091 else 11092 CPPFLAGS="${CPPFLAGS} -I${with_mysql}" 11093 fi 11094 echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5 11095echo $ECHO_N "checking for mysql_select_db in -lmysqlclient... $ECHO_C" >&6 11096if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then 11097 echo $ECHO_N "(cached) $ECHO_C" >&6 11098else 11099 ac_check_lib_save_LIBS=$LIBS 11100LIBS="-lmysqlclient $LIB_MYSQL_DIR $LIBS" 11101cat >conftest.$ac_ext <<_ACEOF 11102#line $LINENO "configure" 11103/* confdefs.h. */ 11104_ACEOF 11105cat confdefs.h >>conftest.$ac_ext 11106cat >>conftest.$ac_ext <<_ACEOF 11107/* end confdefs.h. */ 11108 11109/* Override any gcc2 internal prototype to avoid an error. */ 11110#ifdef __cplusplus 11111extern "C" 11112#endif 11113/* We use char because int might match the return type of a gcc2 11114 builtin and then its argument prototype would still apply. */ 11115char mysql_select_db (); 11116int 11117main () 11118{ 11119mysql_select_db (); 11120 ; 11121 return 0; 11122} 11123_ACEOF 11124rm -f conftest.$ac_objext conftest$ac_exeext 11125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11126 (eval $ac_link) 2>&5 11127 ac_status=$? 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && 11130 { ac_try='test -s conftest$ac_exeext' 11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11132 (eval $ac_try) 2>&5 11133 ac_status=$? 11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11135 (exit $ac_status); }; }; then 11136 ac_cv_lib_mysqlclient_mysql_select_db=yes 11137else 11138 echo "$as_me: failed program was:" >&5 11139sed 's/^/| /' conftest.$ac_ext >&5 11140 11141ac_cv_lib_mysqlclient_mysql_select_db=no 11142fi 11143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11144LIBS=$ac_check_lib_save_LIBS 11145fi 11146echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5 11147echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_select_db" >&6 11148if test $ac_cv_lib_mysqlclient_mysql_select_db = yes; then 11149 11150cat >>confdefs.h <<\_ACEOF 11151#define HAVE_MYSQL 11152_ACEOF 11153 11154else 11155 { echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5 11156echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;} 11157 with_mysql=no 11158fi 11159;; 11160 11161esac 11162 11163 11164 11165# Check whether --with-pgsql or --without-pgsql was given. 11166if test "${with_pgsql+set}" = set; then 11167 withval="$with_pgsql" 11168 with_pgsql=$withval 11169else 11170 with_pgsql=$sql 11171fi; 11172 11173# find location of library 11174# presuing if one given then correct 11175if test "${with_pgsql}" = "yes"; then 11176 with_pgsql=notfound 11177 for pgsqlloc in lib/pgsql lib pgsql/lib 11178 do 11179 if test -f ${prefix}/${pgsqlloc}/libpq.a; then 11180 with_pgsql="${prefix}" 11181 break 11182 elif test -f /usr/local/${pgsqlloc}/libpq.a; then 11183 with_pgsql="/usr/local" 11184 break 11185 elif test -f /usr/${pgsqlloc}/libpq.a; then 11186 with_pgsql="/usr" 11187 break 11188 fi 11189 done 11190fi 11191 11192LIB_PGSQL="" 11193 11194case "$with_pgsql" in 11195 no) true;; 11196 notfound) { echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5 11197echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;; 11198 *) 11199 if test -d ${with_pgsql}/lib/pgsql; then 11200 LIB_PGSQL="-L${with_pgsql}/lib/pgsql -R${with_pgsql}/lib/pgsql" 11201 elif test -d ${with_pgsql}/pgsql/lib; then 11202 LIB_PGSQL="-L${with_pgsql}/pgsql/lib -R${with_pgsql}/pgsql/lib" 11203 elif test -d ${with_pgsql}/lib; then 11204 LIB_PGSQL="-L${with_pgsql}/lib -R${with_pgsql}/lib" 11205 else 11206 LIB_PGSQL="-L${with_pgsql} -R${with_pgsql}" 11207 fi 11208 11209 LIB_PGSQL_DIR=$LIB_PGSQL 11210 LIB_PGSQL="$LIB_PGSQL -lpq" 11211 11212 if test -d ${with_pgsql}/include/pgsql; then 11213 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql" 11214 elif test -d ${with_pgsql}/pgsql/include; then 11215 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include" 11216 elif test -d ${with_pgsql}/include; then 11217 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include" 11218 else 11219 CPPFLAGS="${CPPFLAGS} -I${with_pgsql}" 11220 fi 11221 echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5 11222echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6 11223if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then 11224 echo $ECHO_N "(cached) $ECHO_C" >&6 11225else 11226 ac_check_lib_save_LIBS=$LIBS 11227LIBS="-lpq $LIB_PGSQL_DIR $LIBS" 11228cat >conftest.$ac_ext <<_ACEOF 11229#line $LINENO "configure" 11230/* confdefs.h. */ 11231_ACEOF 11232cat confdefs.h >>conftest.$ac_ext 11233cat >>conftest.$ac_ext <<_ACEOF 11234/* end confdefs.h. */ 11235 11236/* Override any gcc2 internal prototype to avoid an error. */ 11237#ifdef __cplusplus 11238extern "C" 11239#endif 11240/* We use char because int might match the return type of a gcc2 11241 builtin and then its argument prototype would still apply. */ 11242char PQsetdbLogin (); 11243int 11244main () 11245{ 11246PQsetdbLogin (); 11247 ; 11248 return 0; 11249} 11250_ACEOF 11251rm -f conftest.$ac_objext conftest$ac_exeext 11252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11253 (eval $ac_link) 2>&5 11254 ac_status=$? 11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11256 (exit $ac_status); } && 11257 { ac_try='test -s conftest$ac_exeext' 11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11259 (eval $ac_try) 2>&5 11260 ac_status=$? 11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11262 (exit $ac_status); }; }; then 11263 ac_cv_lib_pq_PQsetdbLogin=yes 11264else 11265 echo "$as_me: failed program was:" >&5 11266sed 's/^/| /' conftest.$ac_ext >&5 11267 11268ac_cv_lib_pq_PQsetdbLogin=no 11269fi 11270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11271LIBS=$ac_check_lib_save_LIBS 11272fi 11273echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5 11274echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6 11275if test $ac_cv_lib_pq_PQsetdbLogin = yes; then 11276 11277cat >>confdefs.h <<\_ACEOF 11278#define HAVE_PGSQL 11279_ACEOF 11280 11281else 11282 { echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5 11283echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;} 11284 with_pgsql=no 11285fi 11286;; 11287 11288esac 11289 11290 11291if test "$sql" = yes -a "$with_pgsql" = no -a "$with_mysql" = no; then 11292 { { echo "$as_me:$LINENO: error: --enable-sql chosen but neither Postgres nor MySQL found" >&5 11293echo "$as_me: error: --enable-sql chosen but neither Postgres nor MySQL found" >&2;} 11294 { (exit 1); exit 1; }; } 11295fi 11296 11297if test "$enable_shared" = yes; then 11298 11299cat >>confdefs.h <<\_ACEOF 11300#define DO_DLOPEN 11301_ACEOF 11302 11303fi 11304 11305 11306 11307 11308 11309 11310# Check whether --with-plugindir or --without-plugindir was given. 11311if test "${with_plugindir+set}" = set; then 11312 withval="$with_plugindir" 11313 plugindir=$withval 11314else 11315 plugindir=/usr/lib/sasl2 11316fi; 11317 11318cat >>confdefs.h <<_ACEOF 11319#define PLUGINDIR "$plugindir" 11320_ACEOF 11321 11322 11323 11324 11325# Check whether --with-rc4 or --without-rc4 was given. 11326if test "${with_rc4+set}" = set; then 11327 withval="$with_rc4" 11328 with_rc4=$withval 11329else 11330 with_rc4=yes 11331fi; 11332 11333if test "$with_rc4" != no; then 11334 11335cat >>confdefs.h <<\_ACEOF 11336#define WITH_RC4 11337_ACEOF 11338 11339fi 11340 11341building_for_macosx=no 11342case "$host_os" in 11343 darwin*) 11344 building_for_macosx=yes 11345 ;; 11346esac 11347 11348 11349if test "$building_for_macosx" = yes; then 11350 MACOSX_TRUE= 11351 MACOSX_FALSE='#' 11352else 11353 MACOSX_TRUE='#' 11354 MACOSX_FALSE= 11355fi 11356 11357 11358echo "$as_me:$LINENO: checking for dmalloc library" >&5 11359echo $ECHO_N "checking for dmalloc library... $ECHO_C" >&6 11360 11361# Check whether --with-dmalloc or --without-dmalloc was given. 11362if test "${with_dmalloc+set}" = set; then 11363 withval="$with_dmalloc" 11364 with_dmalloc=$withval 11365else 11366 with_dmalloc=no 11367fi; 11368 11369DMALLOC_LIBS="" 11370 11371if test "$with_dmalloc" != "no"; then 11372 if test "$with_dmalloc" = "yes"; then 11373 with_dmalloc="/usr/local" 11374 fi 11375 11376 if test -r "$with_dmalloc/libdmalloc.a"; then 11377 DMALLOC_LIBS="$with_dmalloc/libdmalloc.a" 11378 11379cat >>confdefs.h <<\_ACEOF 11380#define WITH_DMALLOC 11381_ACEOF 11382 11383 echo "$as_me:$LINENO: result: yes" >&5 11384echo "${ECHO_T}yes" >&6 11385 elif test -r "$with_dmalloc/lib/libdmalloc.a"; then 11386 DMALLOC_LIBS="$with_dmalloc/lib/libdmalloc.a" 11387 11388cat >>confdefs.h <<\_ACEOF 11389#define WITH_DMALLOC 11390_ACEOF 11391 11392 echo "$as_me:$LINENO: result: yes" >&5 11393echo "${ECHO_T}yes" >&6 11394 else 11395 { { echo "$as_me:$LINENO: error: cannot find dmalloc library" >&5 11396echo "$as_me: error: cannot find dmalloc library" >&2;} 11397 { (exit please check your installation.); exit please check your installation.; }; } 11398 fi 11399else 11400 echo "$as_me:$LINENO: result: no" >&5 11401echo "${ECHO_T}no" >&6 11402fi 11403 11404 11405 11406echo "$as_me:$LINENO: checking for sfio library" >&5 11407echo $ECHO_N "checking for sfio library... $ECHO_C" >&6 11408 11409# Check whether --with-sfio or --without-sfio was given. 11410if test "${with_sfio+set}" = set; then 11411 withval="$with_sfio" 11412 with_sfio=$withval 11413else 11414 with_sfio=no 11415fi; 11416 11417if test "$with_sfio" != "no"; then 11418 if test "$with_sfio" = "yes"; then 11419 with_sfio="/usr/local" 11420 fi 11421 11422 11423 11424 11425 11426 if test -r "$with_sfio/sfio.h"; then SFIO_DIR=$with_sfio; 11427 SFIO_INC_DIR=$with_sfio 11428 elif test -r "$with_sfio/include/sfio.h"; then SFIO_DIR=$with_sfio; 11429 SFIO_INC_DIR=$with_sfio/include 11430 elif test -r "$with_sfio/include/sfio/sfio.h"; then SFIO_DIR=$with_sfio; 11431 SFIO_INC_DIR=$with_sfio/include/sfio 11432 fi 11433 11434 if test -z "$SFIO_DIR"; then 11435 { { echo "$as_me:$LINENO: error: Cannot find sfio.h" >&5 11436echo "$as_me: error: Cannot find sfio.h" >&2;} 11437 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; } 11438 fi 11439 11440 11441 str="$SFIO_DIR/lib/libsfio.*" 11442 for i in `echo $str`; do 11443 if test -r $i; then 11444 SFIO_LIBDIR=$SFIO_DIR/lib 11445 break 2 11446 fi 11447 done 11448 11449 11450 str="$SFIO_DIR/lib/sfio/libsfio.*" 11451 for i in `echo $str`; do 11452 if test -r $i; then 11453 SFIO_LIBDIR=$SFIO_DIR/lib/sfio 11454 break 2 11455 fi 11456 done 11457 11458 11459 if test -z "$SFIO_LIBDIR"; then 11460 { { echo "$as_me:$LINENO: error: Cannot find sfio library" >&5 11461echo "$as_me: error: Cannot find sfio library" >&2;} 11462 { (exit Please check your SFIO installation.); exit Please check your SFIO installation.; }; } 11463 fi 11464 11465 SFIO_INC_FLAGS="-I$SFIO_INC_DIR" 11466 SFIO_LIB_FLAGS="-L$SFIO_LIBDIR -lsfio" 11467 SMTPTEST_PROGRAM="smtptest" 11468 SASL_UTIL_LIBS_EXTRA=libsfsasl2.la 11469 SASL_UTIL_HEADERS_EXTRA=sfsasl.h 11470 11471 echo "$as_me:$LINENO: result: yes" >&5 11472echo "${ECHO_T}yes" >&6 11473else 11474 echo "$as_me:$LINENO: result: no" >&5 11475echo "${ECHO_T}no" >&6 11476 SFIO_INC_FLAGS="" 11477 SFIO_LIB_FLAGS="" 11478 SMTPTEST_PROGRAM="" 11479 SASL_UTIL_LIBS_EXTRA="" 11480 SASL_UTIL_HEADERS_EXTRA="" 11481fi 11482 11483 11484 11485 11486 11487 11488 11489sasl_cv_getsubopt=no 11490echo "$as_me:$LINENO: checking for getsubopt" >&5 11491echo $ECHO_N "checking for getsubopt... $ECHO_C" >&6 11492if test "${ac_cv_func_getsubopt+set}" = set; then 11493 echo $ECHO_N "(cached) $ECHO_C" >&6 11494else 11495 cat >conftest.$ac_ext <<_ACEOF 11496#line $LINENO "configure" 11497/* confdefs.h. */ 11498_ACEOF 11499cat confdefs.h >>conftest.$ac_ext 11500cat >>conftest.$ac_ext <<_ACEOF 11501/* end confdefs.h. */ 11502/* System header to define __stub macros and hopefully few prototypes, 11503 which can conflict with char getsubopt (); below. 11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11505 <limits.h> exists even on freestanding compilers. */ 11506#ifdef __STDC__ 11507# include <limits.h> 11508#else 11509# include <assert.h> 11510#endif 11511/* Override any gcc2 internal prototype to avoid an error. */ 11512#ifdef __cplusplus 11513extern "C" 11514{ 11515#endif 11516/* We use char because int might match the return type of a gcc2 11517 builtin and then its argument prototype would still apply. */ 11518char getsubopt (); 11519/* The GNU C library defines this for functions which it implements 11520 to always fail with ENOSYS. Some functions are actually named 11521 something starting with __ and the normal name is an alias. */ 11522#if defined (__stub_getsubopt) || defined (__stub___getsubopt) 11523choke me 11524#else 11525char (*f) () = getsubopt; 11526#endif 11527#ifdef __cplusplus 11528} 11529#endif 11530 11531int 11532main () 11533{ 11534return f != getsubopt; 11535 ; 11536 return 0; 11537} 11538_ACEOF 11539rm -f conftest.$ac_objext conftest$ac_exeext 11540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11541 (eval $ac_link) 2>&5 11542 ac_status=$? 11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11544 (exit $ac_status); } && 11545 { ac_try='test -s conftest$ac_exeext' 11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11547 (eval $ac_try) 2>&5 11548 ac_status=$? 11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11550 (exit $ac_status); }; }; then 11551 ac_cv_func_getsubopt=yes 11552else 11553 echo "$as_me: failed program was:" >&5 11554sed 's/^/| /' conftest.$ac_ext >&5 11555 11556ac_cv_func_getsubopt=no 11557fi 11558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11559fi 11560echo "$as_me:$LINENO: result: $ac_cv_func_getsubopt" >&5 11561echo "${ECHO_T}$ac_cv_func_getsubopt" >&6 11562if test $ac_cv_func_getsubopt = yes; then 11563 11564cat >>confdefs.h <<\_ACEOF 11565#define HAVE_GETSUBOPT 11566_ACEOF 11567 11568else 11569 sasl_cv_getsubopt=yes 11570fi 11571 11572if test $sasl_cv_getsubopt = yes; then 11573 LIBOBJS="$LIBOBJS getsubopt.$ac_objext" 11574 GETSUBOPT="getsubopt.lo" 11575fi 11576 11577 11578sasl_cv_snprintf=no 11579SNPRINTFOBJS="" 11580echo "$as_me:$LINENO: checking for snprintf" >&5 11581echo $ECHO_N "checking for snprintf... $ECHO_C" >&6 11582if test "${ac_cv_func_snprintf+set}" = set; then 11583 echo $ECHO_N "(cached) $ECHO_C" >&6 11584else 11585 cat >conftest.$ac_ext <<_ACEOF 11586#line $LINENO "configure" 11587/* confdefs.h. */ 11588_ACEOF 11589cat confdefs.h >>conftest.$ac_ext 11590cat >>conftest.$ac_ext <<_ACEOF 11591/* end confdefs.h. */ 11592/* System header to define __stub macros and hopefully few prototypes, 11593 which can conflict with char snprintf (); below. 11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11595 <limits.h> exists even on freestanding compilers. */ 11596#ifdef __STDC__ 11597# include <limits.h> 11598#else 11599# include <assert.h> 11600#endif 11601/* Override any gcc2 internal prototype to avoid an error. */ 11602#ifdef __cplusplus 11603extern "C" 11604{ 11605#endif 11606/* We use char because int might match the return type of a gcc2 11607 builtin and then its argument prototype would still apply. */ 11608char snprintf (); 11609/* The GNU C library defines this for functions which it implements 11610 to always fail with ENOSYS. Some functions are actually named 11611 something starting with __ and the normal name is an alias. */ 11612#if defined (__stub_snprintf) || defined (__stub___snprintf) 11613choke me 11614#else 11615char (*f) () = snprintf; 11616#endif 11617#ifdef __cplusplus 11618} 11619#endif 11620 11621int 11622main () 11623{ 11624return f != snprintf; 11625 ; 11626 return 0; 11627} 11628_ACEOF 11629rm -f conftest.$ac_objext conftest$ac_exeext 11630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11631 (eval $ac_link) 2>&5 11632 ac_status=$? 11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11634 (exit $ac_status); } && 11635 { ac_try='test -s conftest$ac_exeext' 11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11637 (eval $ac_try) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); }; }; then 11641 ac_cv_func_snprintf=yes 11642else 11643 echo "$as_me: failed program was:" >&5 11644sed 's/^/| /' conftest.$ac_ext >&5 11645 11646ac_cv_func_snprintf=no 11647fi 11648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11649fi 11650echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 11651echo "${ECHO_T}$ac_cv_func_snprintf" >&6 11652if test $ac_cv_func_snprintf = yes; then 11653 11654cat >>confdefs.h <<\_ACEOF 11655#define HAVE_SNPRINTF 11656_ACEOF 11657 11658else 11659 sasl_cv_snprintf=yes 11660fi 11661 11662echo "$as_me:$LINENO: checking for vsnprintf" >&5 11663echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6 11664if test "${ac_cv_func_vsnprintf+set}" = set; then 11665 echo $ECHO_N "(cached) $ECHO_C" >&6 11666else 11667 cat >conftest.$ac_ext <<_ACEOF 11668#line $LINENO "configure" 11669/* confdefs.h. */ 11670_ACEOF 11671cat confdefs.h >>conftest.$ac_ext 11672cat >>conftest.$ac_ext <<_ACEOF 11673/* end confdefs.h. */ 11674/* System header to define __stub macros and hopefully few prototypes, 11675 which can conflict with char vsnprintf (); below. 11676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11677 <limits.h> exists even on freestanding compilers. */ 11678#ifdef __STDC__ 11679# include <limits.h> 11680#else 11681# include <assert.h> 11682#endif 11683/* Override any gcc2 internal prototype to avoid an error. */ 11684#ifdef __cplusplus 11685extern "C" 11686{ 11687#endif 11688/* We use char because int might match the return type of a gcc2 11689 builtin and then its argument prototype would still apply. */ 11690char vsnprintf (); 11691/* The GNU C library defines this for functions which it implements 11692 to always fail with ENOSYS. Some functions are actually named 11693 something starting with __ and the normal name is an alias. */ 11694#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) 11695choke me 11696#else 11697char (*f) () = vsnprintf; 11698#endif 11699#ifdef __cplusplus 11700} 11701#endif 11702 11703int 11704main () 11705{ 11706return f != vsnprintf; 11707 ; 11708 return 0; 11709} 11710_ACEOF 11711rm -f conftest.$ac_objext conftest$ac_exeext 11712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11713 (eval $ac_link) 2>&5 11714 ac_status=$? 11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11716 (exit $ac_status); } && 11717 { ac_try='test -s conftest$ac_exeext' 11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11719 (eval $ac_try) 2>&5 11720 ac_status=$? 11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11722 (exit $ac_status); }; }; then 11723 ac_cv_func_vsnprintf=yes 11724else 11725 echo "$as_me: failed program was:" >&5 11726sed 's/^/| /' conftest.$ac_ext >&5 11727 11728ac_cv_func_vsnprintf=no 11729fi 11730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11731fi 11732echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 11733echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6 11734if test $ac_cv_func_vsnprintf = yes; then 11735 11736cat >>confdefs.h <<\_ACEOF 11737#define HAVE_VSNPRINTF 11738_ACEOF 11739 11740else 11741 sasl_cv_snprintf=yes 11742fi 11743 11744if test $sasl_cv_snprintf = yes; then 11745 LIBOBJS="$LIBOBJS snprintf.$ac_objext" 11746 SNPRINTFOBJS="snprintf.o" 11747 LTSNPRINTFOBJS="snprintf.lo" 11748fi 11749 11750 11751 11752 11753echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 11754echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 11755if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then 11756 echo $ECHO_N "(cached) $ECHO_C" >&6 11757else 11758 ac_check_lib_save_LIBS=$LIBS 11759LIBS="-lresolv $LIBS" 11760cat >conftest.$ac_ext <<_ACEOF 11761#line $LINENO "configure" 11762/* confdefs.h. */ 11763_ACEOF 11764cat confdefs.h >>conftest.$ac_ext 11765cat >>conftest.$ac_ext <<_ACEOF 11766/* end confdefs.h. */ 11767 11768/* Override any gcc2 internal prototype to avoid an error. */ 11769#ifdef __cplusplus 11770extern "C" 11771#endif 11772/* We use char because int might match the return type of a gcc2 11773 builtin and then its argument prototype would still apply. */ 11774char inet_aton (); 11775int 11776main () 11777{ 11778inet_aton (); 11779 ; 11780 return 0; 11781} 11782_ACEOF 11783rm -f conftest.$ac_objext conftest$ac_exeext 11784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11785 (eval $ac_link) 2>&5 11786 ac_status=$? 11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11788 (exit $ac_status); } && 11789 { ac_try='test -s conftest$ac_exeext' 11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11791 (eval $ac_try) 2>&5 11792 ac_status=$? 11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 (exit $ac_status); }; }; then 11795 ac_cv_lib_resolv_inet_aton=yes 11796else 11797 echo "$as_me: failed program was:" >&5 11798sed 's/^/| /' conftest.$ac_ext >&5 11799 11800ac_cv_lib_resolv_inet_aton=no 11801fi 11802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11803LIBS=$ac_check_lib_save_LIBS 11804fi 11805echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 11806echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 11807if test $ac_cv_lib_resolv_inet_aton = yes; then 11808 cat >>confdefs.h <<_ACEOF 11809#define HAVE_LIBRESOLV 1 11810_ACEOF 11811 11812 LIBS="-lresolv $LIBS" 11813 11814fi 11815 11816 11817GETADDRINFOOBJS="" 11818sasl_cv_getaddrinfo=yes 11819 11820echo "$as_me:$LINENO: checking for getaddrinfo" >&5 11821echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 11822if test "${ac_cv_func_getaddrinfo+set}" = set; then 11823 echo $ECHO_N "(cached) $ECHO_C" >&6 11824else 11825 cat >conftest.$ac_ext <<_ACEOF 11826#line $LINENO "configure" 11827/* confdefs.h. */ 11828_ACEOF 11829cat confdefs.h >>conftest.$ac_ext 11830cat >>conftest.$ac_ext <<_ACEOF 11831/* end confdefs.h. */ 11832/* System header to define __stub macros and hopefully few prototypes, 11833 which can conflict with char getaddrinfo (); below. 11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11835 <limits.h> exists even on freestanding compilers. */ 11836#ifdef __STDC__ 11837# include <limits.h> 11838#else 11839# include <assert.h> 11840#endif 11841/* Override any gcc2 internal prototype to avoid an error. */ 11842#ifdef __cplusplus 11843extern "C" 11844{ 11845#endif 11846/* We use char because int might match the return type of a gcc2 11847 builtin and then its argument prototype would still apply. */ 11848char getaddrinfo (); 11849/* The GNU C library defines this for functions which it implements 11850 to always fail with ENOSYS. Some functions are actually named 11851 something starting with __ and the normal name is an alias. */ 11852#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo) 11853choke me 11854#else 11855char (*f) () = getaddrinfo; 11856#endif 11857#ifdef __cplusplus 11858} 11859#endif 11860 11861int 11862main () 11863{ 11864return f != getaddrinfo; 11865 ; 11866 return 0; 11867} 11868_ACEOF 11869rm -f conftest.$ac_objext conftest$ac_exeext 11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11871 (eval $ac_link) 2>&5 11872 ac_status=$? 11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11874 (exit $ac_status); } && 11875 { ac_try='test -s conftest$ac_exeext' 11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11877 (eval $ac_try) 2>&5 11878 ac_status=$? 11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11880 (exit $ac_status); }; }; then 11881 ac_cv_func_getaddrinfo=yes 11882else 11883 echo "$as_me: failed program was:" >&5 11884sed 's/^/| /' conftest.$ac_ext >&5 11885 11886ac_cv_func_getaddrinfo=no 11887fi 11888rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11889fi 11890echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 11891echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6 11892if test $ac_cv_func_getaddrinfo = yes; then 11893 ac_cv_lib_socket_getaddrinfo=no 11894 ac_cv_lib_inet6_getaddrinfo=no 11895 11896else 11897 echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5 11898echo $ECHO_N "checking for getaddrinfo in -lsocket... $ECHO_C" >&6 11899if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then 11900 echo $ECHO_N "(cached) $ECHO_C" >&6 11901else 11902 ac_check_lib_save_LIBS=$LIBS 11903LIBS="-lsocket $LIBS" 11904cat >conftest.$ac_ext <<_ACEOF 11905#line $LINENO "configure" 11906/* confdefs.h. */ 11907_ACEOF 11908cat confdefs.h >>conftest.$ac_ext 11909cat >>conftest.$ac_ext <<_ACEOF 11910/* end confdefs.h. */ 11911 11912/* Override any gcc2 internal prototype to avoid an error. */ 11913#ifdef __cplusplus 11914extern "C" 11915#endif 11916/* We use char because int might match the return type of a gcc2 11917 builtin and then its argument prototype would still apply. */ 11918char getaddrinfo (); 11919int 11920main () 11921{ 11922getaddrinfo (); 11923 ; 11924 return 0; 11925} 11926_ACEOF 11927rm -f conftest.$ac_objext conftest$ac_exeext 11928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11929 (eval $ac_link) 2>&5 11930 ac_status=$? 11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11932 (exit $ac_status); } && 11933 { ac_try='test -s conftest$ac_exeext' 11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11935 (eval $ac_try) 2>&5 11936 ac_status=$? 11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11938 (exit $ac_status); }; }; then 11939 ac_cv_lib_socket_getaddrinfo=yes 11940else 11941 echo "$as_me: failed program was:" >&5 11942sed 's/^/| /' conftest.$ac_ext >&5 11943 11944ac_cv_lib_socket_getaddrinfo=no 11945fi 11946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11947LIBS=$ac_check_lib_save_LIBS 11948fi 11949echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5 11950echo "${ECHO_T}$ac_cv_lib_socket_getaddrinfo" >&6 11951if test $ac_cv_lib_socket_getaddrinfo = yes; then 11952 LIBS="$LIBS -lsocket" 11953 ac_cv_lib_inet6_getaddrinfo=no 11954 11955else 11956 echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5 11957echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6 11958 if test "${ipv6_cv_dir+set}" = set; then 11959 echo $ECHO_N "(cached) $ECHO_C" >&6 11960else 11961 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 11962 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 11963 break 11964 fi 11965 done 11966fi 11967 echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5 11968echo "${ECHO_T}$ipv6_cv_dir" >&6 11969 if test $ipv6_cv_dir = no; then 11970 ac_cv_lib_inet6_getaddrinfo=no 11971 else 11972 if test x$ipv6_libinet6 = x; then 11973 ipv6_libinet6=no 11974 SAVELDFLAGS="$LDFLAGS" 11975 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 11976 fi 11977 echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5 11978echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6 11979if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then 11980 echo $ECHO_N "(cached) $ECHO_C" >&6 11981else 11982 ac_check_lib_save_LIBS=$LIBS 11983LIBS="-linet6 $LIBS" 11984cat >conftest.$ac_ext <<_ACEOF 11985#line $LINENO "configure" 11986/* confdefs.h. */ 11987_ACEOF 11988cat confdefs.h >>conftest.$ac_ext 11989cat >>conftest.$ac_ext <<_ACEOF 11990/* end confdefs.h. */ 11991 11992/* Override any gcc2 internal prototype to avoid an error. */ 11993#ifdef __cplusplus 11994extern "C" 11995#endif 11996/* We use char because int might match the return type of a gcc2 11997 builtin and then its argument prototype would still apply. */ 11998char getaddrinfo (); 11999int 12000main () 12001{ 12002getaddrinfo (); 12003 ; 12004 return 0; 12005} 12006_ACEOF 12007rm -f conftest.$ac_objext conftest$ac_exeext 12008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12009 (eval $ac_link) 2>&5 12010 ac_status=$? 12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12012 (exit $ac_status); } && 12013 { ac_try='test -s conftest$ac_exeext' 12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12015 (eval $ac_try) 2>&5 12016 ac_status=$? 12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12018 (exit $ac_status); }; }; then 12019 ac_cv_lib_inet6_getaddrinfo=yes 12020else 12021 echo "$as_me: failed program was:" >&5 12022sed 's/^/| /' conftest.$ac_ext >&5 12023 12024ac_cv_lib_inet6_getaddrinfo=no 12025fi 12026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12027LIBS=$ac_check_lib_save_LIBS 12028fi 12029echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5 12030echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6 12031if test $ac_cv_lib_inet6_getaddrinfo = yes; then 12032 if test $ipv6_libinet6 = no; then 12033 ipv6_libinet6=yes 12034 LIBS="$LIBS -linet6" 12035 fi 12036fi 12037 if test $ipv6_libinet6 = no; then 12038 LDFLAGS="$SAVELDFLAGS" 12039 fi 12040 fi 12041fi 12042 12043fi 12044ipv6_cv_getaddrinfo=no 12045if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \ 12046 -o $ac_cv_lib_inet6_getaddrinfo = yes 12047then 12048 ipv6_cv_getaddrinfo=yes 12049fi 12050if test $ipv6_cv_getaddrinfo = no; then 12051 if test getaddrinfo = getaddrinfo; then 12052 for ipv6_cv_pfx in o n; do 12053 cat >conftest.$ac_ext <<_ACEOF 12054#line $LINENO "configure" 12055/* confdefs.h. */ 12056_ACEOF 12057cat confdefs.h >>conftest.$ac_ext 12058cat >>conftest.$ac_ext <<_ACEOF 12059/* end confdefs.h. */ 12060#include <netdb.h> 12061 12062_ACEOF 12063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12064 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then 12065 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh` 12066echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5 12067echo $ECHO_N "checking for ${ipv6_cv_pfx}getaddrinfo... $ECHO_C" >&6 12068if eval "test \"\${$as_ac_var+set}\" = set"; then 12069 echo $ECHO_N "(cached) $ECHO_C" >&6 12070else 12071 cat >conftest.$ac_ext <<_ACEOF 12072#line $LINENO "configure" 12073/* confdefs.h. */ 12074_ACEOF 12075cat confdefs.h >>conftest.$ac_ext 12076cat >>conftest.$ac_ext <<_ACEOF 12077/* end confdefs.h. */ 12078/* System header to define __stub macros and hopefully few prototypes, 12079 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below. 12080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12081 <limits.h> exists even on freestanding compilers. */ 12082#ifdef __STDC__ 12083# include <limits.h> 12084#else 12085# include <assert.h> 12086#endif 12087/* Override any gcc2 internal prototype to avoid an error. */ 12088#ifdef __cplusplus 12089extern "C" 12090{ 12091#endif 12092/* We use char because int might match the return type of a gcc2 12093 builtin and then its argument prototype would still apply. */ 12094char ${ipv6_cv_pfx}getaddrinfo (); 12095/* The GNU C library defines this for functions which it implements 12096 to always fail with ENOSYS. Some functions are actually named 12097 something starting with __ and the normal name is an alias. */ 12098#if defined (__stub_${ipv6_cv_pfx}getaddrinfo) || defined (__stub___${ipv6_cv_pfx}getaddrinfo) 12099choke me 12100#else 12101char (*f) () = ${ipv6_cv_pfx}getaddrinfo; 12102#endif 12103#ifdef __cplusplus 12104} 12105#endif 12106 12107int 12108main () 12109{ 12110return f != ${ipv6_cv_pfx}getaddrinfo; 12111 ; 12112 return 0; 12113} 12114_ACEOF 12115rm -f conftest.$ac_objext conftest$ac_exeext 12116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12117 (eval $ac_link) 2>&5 12118 ac_status=$? 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12120 (exit $ac_status); } && 12121 { ac_try='test -s conftest$ac_exeext' 12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12123 (eval $ac_try) 2>&5 12124 ac_status=$? 12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12126 (exit $ac_status); }; }; then 12127 eval "$as_ac_var=yes" 12128else 12129 echo "$as_me: failed program was:" >&5 12130sed 's/^/| /' conftest.$ac_ext >&5 12131 12132eval "$as_ac_var=no" 12133fi 12134rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12135fi 12136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12138 12139fi 12140rm -f conftest* 12141 12142 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then 12143 12144cat >>confdefs.h <<\_ACEOF 12145#define HAVE_GETADDRINFO 12146_ACEOF 12147 12148 ipv6_cv_getaddrinfo=yes 12149 break 12150 fi 12151 done 12152 fi 12153fi 12154if test $ipv6_cv_getaddrinfo = yes; then 12155 12156echo "$as_me:$LINENO: checking for gai_strerror" >&5 12157echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6 12158if test "${ac_cv_func_gai_strerror+set}" = set; then 12159 echo $ECHO_N "(cached) $ECHO_C" >&6 12160else 12161 cat >conftest.$ac_ext <<_ACEOF 12162#line $LINENO "configure" 12163/* confdefs.h. */ 12164_ACEOF 12165cat confdefs.h >>conftest.$ac_ext 12166cat >>conftest.$ac_ext <<_ACEOF 12167/* end confdefs.h. */ 12168/* System header to define __stub macros and hopefully few prototypes, 12169 which can conflict with char gai_strerror (); below. 12170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12171 <limits.h> exists even on freestanding compilers. */ 12172#ifdef __STDC__ 12173# include <limits.h> 12174#else 12175# include <assert.h> 12176#endif 12177/* Override any gcc2 internal prototype to avoid an error. */ 12178#ifdef __cplusplus 12179extern "C" 12180{ 12181#endif 12182/* We use char because int might match the return type of a gcc2 12183 builtin and then its argument prototype would still apply. */ 12184char gai_strerror (); 12185/* The GNU C library defines this for functions which it implements 12186 to always fail with ENOSYS. Some functions are actually named 12187 something starting with __ and the normal name is an alias. */ 12188#if defined (__stub_gai_strerror) || defined (__stub___gai_strerror) 12189choke me 12190#else 12191char (*f) () = gai_strerror; 12192#endif 12193#ifdef __cplusplus 12194} 12195#endif 12196 12197int 12198main () 12199{ 12200return f != gai_strerror; 12201 ; 12202 return 0; 12203} 12204_ACEOF 12205rm -f conftest.$ac_objext conftest$ac_exeext 12206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12207 (eval $ac_link) 2>&5 12208 ac_status=$? 12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12210 (exit $ac_status); } && 12211 { ac_try='test -s conftest$ac_exeext' 12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12213 (eval $ac_try) 2>&5 12214 ac_status=$? 12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12216 (exit $ac_status); }; }; then 12217 ac_cv_func_gai_strerror=yes 12218else 12219 echo "$as_me: failed program was:" >&5 12220sed 's/^/| /' conftest.$ac_ext >&5 12221 12222ac_cv_func_gai_strerror=no 12223fi 12224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12225fi 12226echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5 12227echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6 12228if test $ac_cv_func_gai_strerror = yes; then 12229 ac_cv_lib_socket_gai_strerror=no 12230 ac_cv_lib_inet6_gai_strerror=no 12231 12232else 12233 echo "$as_me:$LINENO: checking for gai_strerror in -lsocket" >&5 12234echo $ECHO_N "checking for gai_strerror in -lsocket... $ECHO_C" >&6 12235if test "${ac_cv_lib_socket_gai_strerror+set}" = set; then 12236 echo $ECHO_N "(cached) $ECHO_C" >&6 12237else 12238 ac_check_lib_save_LIBS=$LIBS 12239LIBS="-lsocket $LIBS" 12240cat >conftest.$ac_ext <<_ACEOF 12241#line $LINENO "configure" 12242/* confdefs.h. */ 12243_ACEOF 12244cat confdefs.h >>conftest.$ac_ext 12245cat >>conftest.$ac_ext <<_ACEOF 12246/* end confdefs.h. */ 12247 12248/* Override any gcc2 internal prototype to avoid an error. */ 12249#ifdef __cplusplus 12250extern "C" 12251#endif 12252/* We use char because int might match the return type of a gcc2 12253 builtin and then its argument prototype would still apply. */ 12254char gai_strerror (); 12255int 12256main () 12257{ 12258gai_strerror (); 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263rm -f conftest.$ac_objext conftest$ac_exeext 12264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12265 (eval $ac_link) 2>&5 12266 ac_status=$? 12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12268 (exit $ac_status); } && 12269 { ac_try='test -s conftest$ac_exeext' 12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12271 (eval $ac_try) 2>&5 12272 ac_status=$? 12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12274 (exit $ac_status); }; }; then 12275 ac_cv_lib_socket_gai_strerror=yes 12276else 12277 echo "$as_me: failed program was:" >&5 12278sed 's/^/| /' conftest.$ac_ext >&5 12279 12280ac_cv_lib_socket_gai_strerror=no 12281fi 12282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12283LIBS=$ac_check_lib_save_LIBS 12284fi 12285echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gai_strerror" >&5 12286echo "${ECHO_T}$ac_cv_lib_socket_gai_strerror" >&6 12287if test $ac_cv_lib_socket_gai_strerror = yes; then 12288 LIBS="$LIBS -lsocket" 12289 ac_cv_lib_inet6_gai_strerror=no 12290 12291else 12292 echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5 12293echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6 12294 if test "${ipv6_cv_dir+set}" = set; then 12295 echo $ECHO_N "(cached) $ECHO_C" >&6 12296else 12297 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 12298 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 12299 break 12300 fi 12301 done 12302fi 12303 echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5 12304echo "${ECHO_T}$ipv6_cv_dir" >&6 12305 if test $ipv6_cv_dir = no; then 12306 ac_cv_lib_inet6_gai_strerror=no 12307 else 12308 if test x$ipv6_libinet6 = x; then 12309 ipv6_libinet6=no 12310 SAVELDFLAGS="$LDFLAGS" 12311 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 12312 fi 12313 echo "$as_me:$LINENO: checking for gai_strerror in -linet6" >&5 12314echo $ECHO_N "checking for gai_strerror in -linet6... $ECHO_C" >&6 12315if test "${ac_cv_lib_inet6_gai_strerror+set}" = set; then 12316 echo $ECHO_N "(cached) $ECHO_C" >&6 12317else 12318 ac_check_lib_save_LIBS=$LIBS 12319LIBS="-linet6 $LIBS" 12320cat >conftest.$ac_ext <<_ACEOF 12321#line $LINENO "configure" 12322/* confdefs.h. */ 12323_ACEOF 12324cat confdefs.h >>conftest.$ac_ext 12325cat >>conftest.$ac_ext <<_ACEOF 12326/* end confdefs.h. */ 12327 12328/* Override any gcc2 internal prototype to avoid an error. */ 12329#ifdef __cplusplus 12330extern "C" 12331#endif 12332/* We use char because int might match the return type of a gcc2 12333 builtin and then its argument prototype would still apply. */ 12334char gai_strerror (); 12335int 12336main () 12337{ 12338gai_strerror (); 12339 ; 12340 return 0; 12341} 12342_ACEOF 12343rm -f conftest.$ac_objext conftest$ac_exeext 12344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12345 (eval $ac_link) 2>&5 12346 ac_status=$? 12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12348 (exit $ac_status); } && 12349 { ac_try='test -s conftest$ac_exeext' 12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12351 (eval $ac_try) 2>&5 12352 ac_status=$? 12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12354 (exit $ac_status); }; }; then 12355 ac_cv_lib_inet6_gai_strerror=yes 12356else 12357 echo "$as_me: failed program was:" >&5 12358sed 's/^/| /' conftest.$ac_ext >&5 12359 12360ac_cv_lib_inet6_gai_strerror=no 12361fi 12362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12363LIBS=$ac_check_lib_save_LIBS 12364fi 12365echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_gai_strerror" >&5 12366echo "${ECHO_T}$ac_cv_lib_inet6_gai_strerror" >&6 12367if test $ac_cv_lib_inet6_gai_strerror = yes; then 12368 if test $ipv6_libinet6 = no; then 12369 ipv6_libinet6=yes 12370 LIBS="$LIBS -linet6" 12371 fi 12372fi 12373 if test $ipv6_libinet6 = no; then 12374 LDFLAGS="$SAVELDFLAGS" 12375 fi 12376 fi 12377fi 12378 12379fi 12380ipv6_cv_gai_strerror=no 12381if test $ac_cv_func_gai_strerror = yes -o $ac_cv_lib_socket_gai_strerror = yes \ 12382 -o $ac_cv_lib_inet6_gai_strerror = yes 12383then 12384 ipv6_cv_gai_strerror=yes 12385fi 12386if test $ipv6_cv_gai_strerror = no; then 12387 if test gai_strerror = getaddrinfo; then 12388 for ipv6_cv_pfx in o n; do 12389 cat >conftest.$ac_ext <<_ACEOF 12390#line $LINENO "configure" 12391/* confdefs.h. */ 12392_ACEOF 12393cat confdefs.h >>conftest.$ac_ext 12394cat >>conftest.$ac_ext <<_ACEOF 12395/* end confdefs.h. */ 12396#include <netdb.h> 12397 12398_ACEOF 12399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12400 $EGREP "${ipv6_cv_pfx}gai_strerror" >/dev/null 2>&1; then 12401 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}gai_strerror" | $as_tr_sh` 12402echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}gai_strerror" >&5 12403echo $ECHO_N "checking for ${ipv6_cv_pfx}gai_strerror... $ECHO_C" >&6 12404if eval "test \"\${$as_ac_var+set}\" = set"; then 12405 echo $ECHO_N "(cached) $ECHO_C" >&6 12406else 12407 cat >conftest.$ac_ext <<_ACEOF 12408#line $LINENO "configure" 12409/* confdefs.h. */ 12410_ACEOF 12411cat confdefs.h >>conftest.$ac_ext 12412cat >>conftest.$ac_ext <<_ACEOF 12413/* end confdefs.h. */ 12414/* System header to define __stub macros and hopefully few prototypes, 12415 which can conflict with char ${ipv6_cv_pfx}gai_strerror (); below. 12416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12417 <limits.h> exists even on freestanding compilers. */ 12418#ifdef __STDC__ 12419# include <limits.h> 12420#else 12421# include <assert.h> 12422#endif 12423/* Override any gcc2 internal prototype to avoid an error. */ 12424#ifdef __cplusplus 12425extern "C" 12426{ 12427#endif 12428/* We use char because int might match the return type of a gcc2 12429 builtin and then its argument prototype would still apply. */ 12430char ${ipv6_cv_pfx}gai_strerror (); 12431/* The GNU C library defines this for functions which it implements 12432 to always fail with ENOSYS. Some functions are actually named 12433 something starting with __ and the normal name is an alias. */ 12434#if defined (__stub_${ipv6_cv_pfx}gai_strerror) || defined (__stub___${ipv6_cv_pfx}gai_strerror) 12435choke me 12436#else 12437char (*f) () = ${ipv6_cv_pfx}gai_strerror; 12438#endif 12439#ifdef __cplusplus 12440} 12441#endif 12442 12443int 12444main () 12445{ 12446return f != ${ipv6_cv_pfx}gai_strerror; 12447 ; 12448 return 0; 12449} 12450_ACEOF 12451rm -f conftest.$ac_objext conftest$ac_exeext 12452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12453 (eval $ac_link) 2>&5 12454 ac_status=$? 12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12456 (exit $ac_status); } && 12457 { ac_try='test -s conftest$ac_exeext' 12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12459 (eval $ac_try) 2>&5 12460 ac_status=$? 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); }; }; then 12463 eval "$as_ac_var=yes" 12464else 12465 echo "$as_me: failed program was:" >&5 12466sed 's/^/| /' conftest.$ac_ext >&5 12467 12468eval "$as_ac_var=no" 12469fi 12470rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12471fi 12472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12474 12475fi 12476rm -f conftest* 12477 12478 if eval test X\$ac_cv_func_${ipv6_cv_pfx}gai_strerror = Xyes; then 12479 12480cat >>confdefs.h <<\_ACEOF 12481#define HAVE_GETADDRINFO 12482_ACEOF 12483 12484 ipv6_cv_gai_strerror=yes 12485 break 12486 fi 12487 done 12488 fi 12489fi 12490if test $ipv6_cv_gai_strerror = yes; then 12491 12492cat >>confdefs.h <<\_ACEOF 12493#define HAVE_GETADDRINFO 12494_ACEOF 12495 12496 sasl_cv_getaddrinfo=no 12497else 12498 : 12499fi 12500else 12501 : 12502fi 12503if test $sasl_cv_getaddrinfo = yes; then 12504 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 12505 GETADDRINFOOBJS="getaddrinfo.o" 12506 LTGETADDRINFOOBJS="getaddrinfo.lo" 12507fi 12508 12509 12510 12511GETNAMEINFOOBJS="" 12512sasl_cv_getnameinfo=no 12513 12514echo "$as_me:$LINENO: checking for getnameinfo" >&5 12515echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6 12516if test "${ac_cv_func_getnameinfo+set}" = set; then 12517 echo $ECHO_N "(cached) $ECHO_C" >&6 12518else 12519 cat >conftest.$ac_ext <<_ACEOF 12520#line $LINENO "configure" 12521/* confdefs.h. */ 12522_ACEOF 12523cat confdefs.h >>conftest.$ac_ext 12524cat >>conftest.$ac_ext <<_ACEOF 12525/* end confdefs.h. */ 12526/* System header to define __stub macros and hopefully few prototypes, 12527 which can conflict with char getnameinfo (); below. 12528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12529 <limits.h> exists even on freestanding compilers. */ 12530#ifdef __STDC__ 12531# include <limits.h> 12532#else 12533# include <assert.h> 12534#endif 12535/* Override any gcc2 internal prototype to avoid an error. */ 12536#ifdef __cplusplus 12537extern "C" 12538{ 12539#endif 12540/* We use char because int might match the return type of a gcc2 12541 builtin and then its argument prototype would still apply. */ 12542char getnameinfo (); 12543/* The GNU C library defines this for functions which it implements 12544 to always fail with ENOSYS. Some functions are actually named 12545 something starting with __ and the normal name is an alias. */ 12546#if defined (__stub_getnameinfo) || defined (__stub___getnameinfo) 12547choke me 12548#else 12549char (*f) () = getnameinfo; 12550#endif 12551#ifdef __cplusplus 12552} 12553#endif 12554 12555int 12556main () 12557{ 12558return f != getnameinfo; 12559 ; 12560 return 0; 12561} 12562_ACEOF 12563rm -f conftest.$ac_objext conftest$ac_exeext 12564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12565 (eval $ac_link) 2>&5 12566 ac_status=$? 12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12568 (exit $ac_status); } && 12569 { ac_try='test -s conftest$ac_exeext' 12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12571 (eval $ac_try) 2>&5 12572 ac_status=$? 12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12574 (exit $ac_status); }; }; then 12575 ac_cv_func_getnameinfo=yes 12576else 12577 echo "$as_me: failed program was:" >&5 12578sed 's/^/| /' conftest.$ac_ext >&5 12579 12580ac_cv_func_getnameinfo=no 12581fi 12582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12583fi 12584echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5 12585echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6 12586if test $ac_cv_func_getnameinfo = yes; then 12587 ac_cv_lib_socket_getnameinfo=no 12588 ac_cv_lib_inet6_getnameinfo=no 12589 12590else 12591 echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5 12592echo $ECHO_N "checking for getnameinfo in -lsocket... $ECHO_C" >&6 12593if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then 12594 echo $ECHO_N "(cached) $ECHO_C" >&6 12595else 12596 ac_check_lib_save_LIBS=$LIBS 12597LIBS="-lsocket $LIBS" 12598cat >conftest.$ac_ext <<_ACEOF 12599#line $LINENO "configure" 12600/* confdefs.h. */ 12601_ACEOF 12602cat confdefs.h >>conftest.$ac_ext 12603cat >>conftest.$ac_ext <<_ACEOF 12604/* end confdefs.h. */ 12605 12606/* Override any gcc2 internal prototype to avoid an error. */ 12607#ifdef __cplusplus 12608extern "C" 12609#endif 12610/* We use char because int might match the return type of a gcc2 12611 builtin and then its argument prototype would still apply. */ 12612char getnameinfo (); 12613int 12614main () 12615{ 12616getnameinfo (); 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621rm -f conftest.$ac_objext conftest$ac_exeext 12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12623 (eval $ac_link) 2>&5 12624 ac_status=$? 12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12626 (exit $ac_status); } && 12627 { ac_try='test -s conftest$ac_exeext' 12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12629 (eval $ac_try) 2>&5 12630 ac_status=$? 12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12632 (exit $ac_status); }; }; then 12633 ac_cv_lib_socket_getnameinfo=yes 12634else 12635 echo "$as_me: failed program was:" >&5 12636sed 's/^/| /' conftest.$ac_ext >&5 12637 12638ac_cv_lib_socket_getnameinfo=no 12639fi 12640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12641LIBS=$ac_check_lib_save_LIBS 12642fi 12643echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5 12644echo "${ECHO_T}$ac_cv_lib_socket_getnameinfo" >&6 12645if test $ac_cv_lib_socket_getnameinfo = yes; then 12646 LIBS="$LIBS -lsocket" 12647 ac_cv_lib_inet6_getnameinfo=no 12648 12649else 12650 echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5 12651echo $ECHO_N "checking whether your system has IPv6 directory... $ECHO_C" >&6 12652 if test "${ipv6_cv_dir+set}" = set; then 12653 echo $ECHO_N "(cached) $ECHO_C" >&6 12654else 12655 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 12656 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 12657 break 12658 fi 12659 done 12660fi 12661 echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5 12662echo "${ECHO_T}$ipv6_cv_dir" >&6 12663 if test $ipv6_cv_dir = no; then 12664 ac_cv_lib_inet6_getnameinfo=no 12665 else 12666 if test x$ipv6_libinet6 = x; then 12667 ipv6_libinet6=no 12668 SAVELDFLAGS="$LDFLAGS" 12669 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 12670 fi 12671 echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5 12672echo $ECHO_N "checking for getnameinfo in -linet6... $ECHO_C" >&6 12673if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then 12674 echo $ECHO_N "(cached) $ECHO_C" >&6 12675else 12676 ac_check_lib_save_LIBS=$LIBS 12677LIBS="-linet6 $LIBS" 12678cat >conftest.$ac_ext <<_ACEOF 12679#line $LINENO "configure" 12680/* confdefs.h. */ 12681_ACEOF 12682cat confdefs.h >>conftest.$ac_ext 12683cat >>conftest.$ac_ext <<_ACEOF 12684/* end confdefs.h. */ 12685 12686/* Override any gcc2 internal prototype to avoid an error. */ 12687#ifdef __cplusplus 12688extern "C" 12689#endif 12690/* We use char because int might match the return type of a gcc2 12691 builtin and then its argument prototype would still apply. */ 12692char getnameinfo (); 12693int 12694main () 12695{ 12696getnameinfo (); 12697 ; 12698 return 0; 12699} 12700_ACEOF 12701rm -f conftest.$ac_objext conftest$ac_exeext 12702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12703 (eval $ac_link) 2>&5 12704 ac_status=$? 12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12706 (exit $ac_status); } && 12707 { ac_try='test -s conftest$ac_exeext' 12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12709 (eval $ac_try) 2>&5 12710 ac_status=$? 12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); }; }; then 12713 ac_cv_lib_inet6_getnameinfo=yes 12714else 12715 echo "$as_me: failed program was:" >&5 12716sed 's/^/| /' conftest.$ac_ext >&5 12717 12718ac_cv_lib_inet6_getnameinfo=no 12719fi 12720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12721LIBS=$ac_check_lib_save_LIBS 12722fi 12723echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5 12724echo "${ECHO_T}$ac_cv_lib_inet6_getnameinfo" >&6 12725if test $ac_cv_lib_inet6_getnameinfo = yes; then 12726 if test $ipv6_libinet6 = no; then 12727 ipv6_libinet6=yes 12728 LIBS="$LIBS -linet6" 12729 fi 12730fi 12731 if test $ipv6_libinet6 = no; then 12732 LDFLAGS="$SAVELDFLAGS" 12733 fi 12734 fi 12735fi 12736 12737fi 12738ipv6_cv_getnameinfo=no 12739if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \ 12740 -o $ac_cv_lib_inet6_getnameinfo = yes 12741then 12742 ipv6_cv_getnameinfo=yes 12743fi 12744if test $ipv6_cv_getnameinfo = no; then 12745 if test getnameinfo = getaddrinfo; then 12746 for ipv6_cv_pfx in o n; do 12747 cat >conftest.$ac_ext <<_ACEOF 12748#line $LINENO "configure" 12749/* confdefs.h. */ 12750_ACEOF 12751cat confdefs.h >>conftest.$ac_ext 12752cat >>conftest.$ac_ext <<_ACEOF 12753/* end confdefs.h. */ 12754#include <netdb.h> 12755 12756_ACEOF 12757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12758 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then 12759 as_ac_var=`echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh` 12760echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5 12761echo $ECHO_N "checking for ${ipv6_cv_pfx}getnameinfo... $ECHO_C" >&6 12762if eval "test \"\${$as_ac_var+set}\" = set"; then 12763 echo $ECHO_N "(cached) $ECHO_C" >&6 12764else 12765 cat >conftest.$ac_ext <<_ACEOF 12766#line $LINENO "configure" 12767/* confdefs.h. */ 12768_ACEOF 12769cat confdefs.h >>conftest.$ac_ext 12770cat >>conftest.$ac_ext <<_ACEOF 12771/* end confdefs.h. */ 12772/* System header to define __stub macros and hopefully few prototypes, 12773 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below. 12774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12775 <limits.h> exists even on freestanding compilers. */ 12776#ifdef __STDC__ 12777# include <limits.h> 12778#else 12779# include <assert.h> 12780#endif 12781/* Override any gcc2 internal prototype to avoid an error. */ 12782#ifdef __cplusplus 12783extern "C" 12784{ 12785#endif 12786/* We use char because int might match the return type of a gcc2 12787 builtin and then its argument prototype would still apply. */ 12788char ${ipv6_cv_pfx}getnameinfo (); 12789/* The GNU C library defines this for functions which it implements 12790 to always fail with ENOSYS. Some functions are actually named 12791 something starting with __ and the normal name is an alias. */ 12792#if defined (__stub_${ipv6_cv_pfx}getnameinfo) || defined (__stub___${ipv6_cv_pfx}getnameinfo) 12793choke me 12794#else 12795char (*f) () = ${ipv6_cv_pfx}getnameinfo; 12796#endif 12797#ifdef __cplusplus 12798} 12799#endif 12800 12801int 12802main () 12803{ 12804return f != ${ipv6_cv_pfx}getnameinfo; 12805 ; 12806 return 0; 12807} 12808_ACEOF 12809rm -f conftest.$ac_objext conftest$ac_exeext 12810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12811 (eval $ac_link) 2>&5 12812 ac_status=$? 12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12814 (exit $ac_status); } && 12815 { ac_try='test -s conftest$ac_exeext' 12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12817 (eval $ac_try) 2>&5 12818 ac_status=$? 12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12820 (exit $ac_status); }; }; then 12821 eval "$as_ac_var=yes" 12822else 12823 echo "$as_me: failed program was:" >&5 12824sed 's/^/| /' conftest.$ac_ext >&5 12825 12826eval "$as_ac_var=no" 12827fi 12828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12829fi 12830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12832 12833fi 12834rm -f conftest* 12835 12836 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then 12837 12838cat >>confdefs.h <<\_ACEOF 12839#define HAVE_GETADDRINFO 12840_ACEOF 12841 12842 ipv6_cv_getnameinfo=yes 12843 break 12844 fi 12845 done 12846 fi 12847fi 12848if test $ipv6_cv_getnameinfo = yes; then 12849 12850cat >>confdefs.h <<\_ACEOF 12851#define HAVE_GETNAMEINFO 12852_ACEOF 12853 12854else 12855 sasl_cv_getnameinfo=yes 12856fi 12857if test $sasl_cv_getnameinfo = yes; then 12858 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 12859 GETNAMEINFOOBJS="getnameinfo.o" 12860 LTGETNAMEINFOOBJS="getnameinfo.lo" 12861fi 12862 12863 12864 12865LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 12866 12867 12868echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12869echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 12870if test "${ac_cv_c_const+set}" = set; then 12871 echo $ECHO_N "(cached) $ECHO_C" >&6 12872else 12873 cat >conftest.$ac_ext <<_ACEOF 12874#line $LINENO "configure" 12875/* confdefs.h. */ 12876_ACEOF 12877cat confdefs.h >>conftest.$ac_ext 12878cat >>conftest.$ac_ext <<_ACEOF 12879/* end confdefs.h. */ 12880 12881int 12882main () 12883{ 12884/* FIXME: Include the comments suggested by Paul. */ 12885#ifndef __cplusplus 12886 /* Ultrix mips cc rejects this. */ 12887 typedef int charset[2]; 12888 const charset x; 12889 /* SunOS 4.1.1 cc rejects this. */ 12890 char const *const *ccp; 12891 char **p; 12892 /* NEC SVR4.0.2 mips cc rejects this. */ 12893 struct point {int x, y;}; 12894 static struct point const zero = {0,0}; 12895 /* AIX XL C 1.02.0.0 rejects this. 12896 It does not let you subtract one const X* pointer from another in 12897 an arm of an if-expression whose if-part is not a constant 12898 expression */ 12899 const char *g = "string"; 12900 ccp = &g + (g ? g-g : 0); 12901 /* HPUX 7.0 cc rejects these. */ 12902 ++ccp; 12903 p = (char**) ccp; 12904 ccp = (char const *const *) p; 12905 { /* SCO 3.2v4 cc rejects this. */ 12906 char *t; 12907 char const *s = 0 ? (char *) 0 : (char const *) 0; 12908 12909 *t++ = 0; 12910 } 12911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12912 int x[] = {25, 17}; 12913 const int *foo = &x[0]; 12914 ++foo; 12915 } 12916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12917 typedef const int *iptr; 12918 iptr p = 0; 12919 ++p; 12920 } 12921 { /* AIX XL C 1.02.0.0 rejects this saying 12922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12923 struct s { int j; const int *ap[3]; }; 12924 struct s *b; b->j = 5; 12925 } 12926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12927 const int foo = 10; 12928 } 12929#endif 12930 12931 ; 12932 return 0; 12933} 12934_ACEOF 12935rm -f conftest.$ac_objext 12936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12937 (eval $ac_compile) 2>&5 12938 ac_status=$? 12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12940 (exit $ac_status); } && 12941 { ac_try='test -s conftest.$ac_objext' 12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12943 (eval $ac_try) 2>&5 12944 ac_status=$? 12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12946 (exit $ac_status); }; }; then 12947 ac_cv_c_const=yes 12948else 12949 echo "$as_me: failed program was:" >&5 12950sed 's/^/| /' conftest.$ac_ext >&5 12951 12952ac_cv_c_const=no 12953fi 12954rm -f conftest.$ac_objext conftest.$ac_ext 12955fi 12956echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12957echo "${ECHO_T}$ac_cv_c_const" >&6 12958if test $ac_cv_c_const = no; then 12959 12960cat >>confdefs.h <<\_ACEOF 12961#define const 12962_ACEOF 12963 12964fi 12965 12966echo "$as_me:$LINENO: checking for inline" >&5 12967echo $ECHO_N "checking for inline... $ECHO_C" >&6 12968if test "${ac_cv_c_inline+set}" = set; then 12969 echo $ECHO_N "(cached) $ECHO_C" >&6 12970else 12971 ac_cv_c_inline=no 12972for ac_kw in inline __inline__ __inline; do 12973 cat >conftest.$ac_ext <<_ACEOF 12974#line $LINENO "configure" 12975/* confdefs.h. */ 12976_ACEOF 12977cat confdefs.h >>conftest.$ac_ext 12978cat >>conftest.$ac_ext <<_ACEOF 12979/* end confdefs.h. */ 12980#ifndef __cplusplus 12981typedef int foo_t; 12982static $ac_kw foo_t static_foo () {return 0; } 12983$ac_kw foo_t foo () {return 0; } 12984#endif 12985 12986_ACEOF 12987rm -f conftest.$ac_objext 12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12989 (eval $ac_compile) 2>&5 12990 ac_status=$? 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12992 (exit $ac_status); } && 12993 { ac_try='test -s conftest.$ac_objext' 12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12995 (eval $ac_try) 2>&5 12996 ac_status=$? 12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12998 (exit $ac_status); }; }; then 12999 ac_cv_c_inline=$ac_kw; break 13000else 13001 echo "$as_me: failed program was:" >&5 13002sed 's/^/| /' conftest.$ac_ext >&5 13003 13004fi 13005rm -f conftest.$ac_objext conftest.$ac_ext 13006done 13007 13008fi 13009echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 13010echo "${ECHO_T}$ac_cv_c_inline" >&6 13011case $ac_cv_c_inline in 13012 inline | yes) ;; 13013 no) 13014cat >>confdefs.h <<\_ACEOF 13015#define inline 13016_ACEOF 13017 ;; 13018 *) cat >>confdefs.h <<_ACEOF 13019#define inline $ac_cv_c_inline 13020_ACEOF 13021 ;; 13022esac 13023 13024echo "$as_me:$LINENO: checking for mode_t" >&5 13025echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 13026if test "${ac_cv_type_mode_t+set}" = set; then 13027 echo $ECHO_N "(cached) $ECHO_C" >&6 13028else 13029 cat >conftest.$ac_ext <<_ACEOF 13030#line $LINENO "configure" 13031/* confdefs.h. */ 13032_ACEOF 13033cat confdefs.h >>conftest.$ac_ext 13034cat >>conftest.$ac_ext <<_ACEOF 13035/* end confdefs.h. */ 13036$ac_includes_default 13037int 13038main () 13039{ 13040if ((mode_t *) 0) 13041 return 0; 13042if (sizeof (mode_t)) 13043 return 0; 13044 ; 13045 return 0; 13046} 13047_ACEOF 13048rm -f conftest.$ac_objext 13049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13050 (eval $ac_compile) 2>&5 13051 ac_status=$? 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); } && 13054 { ac_try='test -s conftest.$ac_objext' 13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13056 (eval $ac_try) 2>&5 13057 ac_status=$? 13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13059 (exit $ac_status); }; }; then 13060 ac_cv_type_mode_t=yes 13061else 13062 echo "$as_me: failed program was:" >&5 13063sed 's/^/| /' conftest.$ac_ext >&5 13064 13065ac_cv_type_mode_t=no 13066fi 13067rm -f conftest.$ac_objext conftest.$ac_ext 13068fi 13069echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 13070echo "${ECHO_T}$ac_cv_type_mode_t" >&6 13071if test $ac_cv_type_mode_t = yes; then 13072 : 13073else 13074 13075cat >>confdefs.h <<_ACEOF 13076#define mode_t int 13077_ACEOF 13078 13079fi 13080 13081echo "$as_me:$LINENO: checking for pid_t" >&5 13082echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 13083if test "${ac_cv_type_pid_t+set}" = set; then 13084 echo $ECHO_N "(cached) $ECHO_C" >&6 13085else 13086 cat >conftest.$ac_ext <<_ACEOF 13087#line $LINENO "configure" 13088/* confdefs.h. */ 13089_ACEOF 13090cat confdefs.h >>conftest.$ac_ext 13091cat >>conftest.$ac_ext <<_ACEOF 13092/* end confdefs.h. */ 13093$ac_includes_default 13094int 13095main () 13096{ 13097if ((pid_t *) 0) 13098 return 0; 13099if (sizeof (pid_t)) 13100 return 0; 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105rm -f conftest.$ac_objext 13106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13107 (eval $ac_compile) 2>&5 13108 ac_status=$? 13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13110 (exit $ac_status); } && 13111 { ac_try='test -s conftest.$ac_objext' 13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13113 (eval $ac_try) 2>&5 13114 ac_status=$? 13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13116 (exit $ac_status); }; }; then 13117 ac_cv_type_pid_t=yes 13118else 13119 echo "$as_me: failed program was:" >&5 13120sed 's/^/| /' conftest.$ac_ext >&5 13121 13122ac_cv_type_pid_t=no 13123fi 13124rm -f conftest.$ac_objext conftest.$ac_ext 13125fi 13126echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 13127echo "${ECHO_T}$ac_cv_type_pid_t" >&6 13128if test $ac_cv_type_pid_t = yes; then 13129 : 13130else 13131 13132cat >>confdefs.h <<_ACEOF 13133#define pid_t int 13134_ACEOF 13135 13136fi 13137 13138echo "$as_me:$LINENO: checking return type of signal handlers" >&5 13139echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 13140if test "${ac_cv_type_signal+set}" = set; then 13141 echo $ECHO_N "(cached) $ECHO_C" >&6 13142else 13143 cat >conftest.$ac_ext <<_ACEOF 13144#line $LINENO "configure" 13145/* confdefs.h. */ 13146_ACEOF 13147cat confdefs.h >>conftest.$ac_ext 13148cat >>conftest.$ac_ext <<_ACEOF 13149/* end confdefs.h. */ 13150#include <sys/types.h> 13151#include <signal.h> 13152#ifdef signal 13153# undef signal 13154#endif 13155#ifdef __cplusplus 13156extern "C" void (*signal (int, void (*)(int)))(int); 13157#else 13158void (*signal ()) (); 13159#endif 13160 13161int 13162main () 13163{ 13164int i; 13165 ; 13166 return 0; 13167} 13168_ACEOF 13169rm -f conftest.$ac_objext 13170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13171 (eval $ac_compile) 2>&5 13172 ac_status=$? 13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13174 (exit $ac_status); } && 13175 { ac_try='test -s conftest.$ac_objext' 13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13177 (eval $ac_try) 2>&5 13178 ac_status=$? 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); }; }; then 13181 ac_cv_type_signal=void 13182else 13183 echo "$as_me: failed program was:" >&5 13184sed 's/^/| /' conftest.$ac_ext >&5 13185 13186ac_cv_type_signal=int 13187fi 13188rm -f conftest.$ac_objext conftest.$ac_ext 13189fi 13190echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 13191echo "${ECHO_T}$ac_cv_type_signal" >&6 13192 13193cat >>confdefs.h <<_ACEOF 13194#define RETSIGTYPE $ac_cv_type_signal 13195_ACEOF 13196 13197 13198 13199echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 13200echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 13201if test "${ac_cv_header_time+set}" = set; then 13202 echo $ECHO_N "(cached) $ECHO_C" >&6 13203else 13204 cat >conftest.$ac_ext <<_ACEOF 13205#line $LINENO "configure" 13206/* confdefs.h. */ 13207_ACEOF 13208cat confdefs.h >>conftest.$ac_ext 13209cat >>conftest.$ac_ext <<_ACEOF 13210/* end confdefs.h. */ 13211#include <sys/types.h> 13212#include <sys/time.h> 13213#include <time.h> 13214 13215int 13216main () 13217{ 13218if ((struct tm *) 0) 13219return 0; 13220 ; 13221 return 0; 13222} 13223_ACEOF 13224rm -f conftest.$ac_objext 13225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13226 (eval $ac_compile) 2>&5 13227 ac_status=$? 13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 (exit $ac_status); } && 13230 { ac_try='test -s conftest.$ac_objext' 13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13232 (eval $ac_try) 2>&5 13233 ac_status=$? 13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 (exit $ac_status); }; }; then 13236 ac_cv_header_time=yes 13237else 13238 echo "$as_me: failed program was:" >&5 13239sed 's/^/| /' conftest.$ac_ext >&5 13240 13241ac_cv_header_time=no 13242fi 13243rm -f conftest.$ac_objext conftest.$ac_ext 13244fi 13245echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 13246echo "${ECHO_T}$ac_cv_header_time" >&6 13247if test $ac_cv_header_time = yes; then 13248 13249cat >>confdefs.h <<\_ACEOF 13250#define TIME_WITH_SYS_TIME 1 13251_ACEOF 13252 13253fi 13254 13255echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13256echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 13257if test "${ac_cv_header_stdc+set}" = set; then 13258 echo $ECHO_N "(cached) $ECHO_C" >&6 13259else 13260 cat >conftest.$ac_ext <<_ACEOF 13261#line $LINENO "configure" 13262/* confdefs.h. */ 13263_ACEOF 13264cat confdefs.h >>conftest.$ac_ext 13265cat >>conftest.$ac_ext <<_ACEOF 13266/* end confdefs.h. */ 13267#include <stdlib.h> 13268#include <stdarg.h> 13269#include <string.h> 13270#include <float.h> 13271 13272int 13273main () 13274{ 13275 13276 ; 13277 return 0; 13278} 13279_ACEOF 13280rm -f conftest.$ac_objext 13281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13282 (eval $ac_compile) 2>&5 13283 ac_status=$? 13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13285 (exit $ac_status); } && 13286 { ac_try='test -s conftest.$ac_objext' 13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13288 (eval $ac_try) 2>&5 13289 ac_status=$? 13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13291 (exit $ac_status); }; }; then 13292 ac_cv_header_stdc=yes 13293else 13294 echo "$as_me: failed program was:" >&5 13295sed 's/^/| /' conftest.$ac_ext >&5 13296 13297ac_cv_header_stdc=no 13298fi 13299rm -f conftest.$ac_objext conftest.$ac_ext 13300 13301if test $ac_cv_header_stdc = yes; then 13302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13303 cat >conftest.$ac_ext <<_ACEOF 13304#line $LINENO "configure" 13305/* confdefs.h. */ 13306_ACEOF 13307cat confdefs.h >>conftest.$ac_ext 13308cat >>conftest.$ac_ext <<_ACEOF 13309/* end confdefs.h. */ 13310#include <string.h> 13311 13312_ACEOF 13313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13314 $EGREP "memchr" >/dev/null 2>&1; then 13315 : 13316else 13317 ac_cv_header_stdc=no 13318fi 13319rm -f conftest* 13320 13321fi 13322 13323if test $ac_cv_header_stdc = yes; then 13324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13325 cat >conftest.$ac_ext <<_ACEOF 13326#line $LINENO "configure" 13327/* confdefs.h. */ 13328_ACEOF 13329cat confdefs.h >>conftest.$ac_ext 13330cat >>conftest.$ac_ext <<_ACEOF 13331/* end confdefs.h. */ 13332#include <stdlib.h> 13333 13334_ACEOF 13335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13336 $EGREP "free" >/dev/null 2>&1; then 13337 : 13338else 13339 ac_cv_header_stdc=no 13340fi 13341rm -f conftest* 13342 13343fi 13344 13345if test $ac_cv_header_stdc = yes; then 13346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13347 if test "$cross_compiling" = yes; then 13348 : 13349else 13350 cat >conftest.$ac_ext <<_ACEOF 13351#line $LINENO "configure" 13352/* confdefs.h. */ 13353_ACEOF 13354cat confdefs.h >>conftest.$ac_ext 13355cat >>conftest.$ac_ext <<_ACEOF 13356/* end confdefs.h. */ 13357#include <ctype.h> 13358#if ((' ' & 0x0FF) == 0x020) 13359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13361#else 13362# define ISLOWER(c) \ 13363 (('a' <= (c) && (c) <= 'i') \ 13364 || ('j' <= (c) && (c) <= 'r') \ 13365 || ('s' <= (c) && (c) <= 'z')) 13366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13367#endif 13368 13369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13370int 13371main () 13372{ 13373 int i; 13374 for (i = 0; i < 256; i++) 13375 if (XOR (islower (i), ISLOWER (i)) 13376 || toupper (i) != TOUPPER (i)) 13377 exit(2); 13378 exit (0); 13379} 13380_ACEOF 13381rm -f conftest$ac_exeext 13382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13383 (eval $ac_link) 2>&5 13384 ac_status=$? 13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13388 (eval $ac_try) 2>&5 13389 ac_status=$? 13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); }; }; then 13392 : 13393else 13394 echo "$as_me: program exited with status $ac_status" >&5 13395echo "$as_me: failed program was:" >&5 13396sed 's/^/| /' conftest.$ac_ext >&5 13397 13398( exit $ac_status ) 13399ac_cv_header_stdc=no 13400fi 13401rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13402fi 13403fi 13404fi 13405echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13406echo "${ECHO_T}$ac_cv_header_stdc" >&6 13407if test $ac_cv_header_stdc = yes; then 13408 13409cat >>confdefs.h <<\_ACEOF 13410#define STDC_HEADERS 1 13411_ACEOF 13412 13413fi 13414 13415 13416 13417 13418 13419 13420ac_header_dirent=no 13421for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13422 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13423echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13424echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 13425if eval "test \"\${$as_ac_Header+set}\" = set"; then 13426 echo $ECHO_N "(cached) $ECHO_C" >&6 13427else 13428 cat >conftest.$ac_ext <<_ACEOF 13429#line $LINENO "configure" 13430/* confdefs.h. */ 13431_ACEOF 13432cat confdefs.h >>conftest.$ac_ext 13433cat >>conftest.$ac_ext <<_ACEOF 13434/* end confdefs.h. */ 13435#include <sys/types.h> 13436#include <$ac_hdr> 13437 13438int 13439main () 13440{ 13441if ((DIR *) 0) 13442return 0; 13443 ; 13444 return 0; 13445} 13446_ACEOF 13447rm -f conftest.$ac_objext 13448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13449 (eval $ac_compile) 2>&5 13450 ac_status=$? 13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13452 (exit $ac_status); } && 13453 { ac_try='test -s conftest.$ac_objext' 13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13455 (eval $ac_try) 2>&5 13456 ac_status=$? 13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13458 (exit $ac_status); }; }; then 13459 eval "$as_ac_Header=yes" 13460else 13461 echo "$as_me: failed program was:" >&5 13462sed 's/^/| /' conftest.$ac_ext >&5 13463 13464eval "$as_ac_Header=no" 13465fi 13466rm -f conftest.$ac_objext conftest.$ac_ext 13467fi 13468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13470if test `eval echo '${'$as_ac_Header'}'` = yes; then 13471 cat >>confdefs.h <<_ACEOF 13472#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13473_ACEOF 13474 13475ac_header_dirent=$ac_hdr; break 13476fi 13477 13478done 13479# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13480if test $ac_header_dirent = dirent.h; then 13481 echo "$as_me:$LINENO: checking for library containing opendir" >&5 13482echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 13483if test "${ac_cv_search_opendir+set}" = set; then 13484 echo $ECHO_N "(cached) $ECHO_C" >&6 13485else 13486 ac_func_search_save_LIBS=$LIBS 13487ac_cv_search_opendir=no 13488cat >conftest.$ac_ext <<_ACEOF 13489#line $LINENO "configure" 13490/* confdefs.h. */ 13491_ACEOF 13492cat confdefs.h >>conftest.$ac_ext 13493cat >>conftest.$ac_ext <<_ACEOF 13494/* end confdefs.h. */ 13495 13496/* Override any gcc2 internal prototype to avoid an error. */ 13497#ifdef __cplusplus 13498extern "C" 13499#endif 13500/* We use char because int might match the return type of a gcc2 13501 builtin and then its argument prototype would still apply. */ 13502char opendir (); 13503int 13504main () 13505{ 13506opendir (); 13507 ; 13508 return 0; 13509} 13510_ACEOF 13511rm -f conftest.$ac_objext conftest$ac_exeext 13512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13513 (eval $ac_link) 2>&5 13514 ac_status=$? 13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13516 (exit $ac_status); } && 13517 { ac_try='test -s conftest$ac_exeext' 13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13519 (eval $ac_try) 2>&5 13520 ac_status=$? 13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13522 (exit $ac_status); }; }; then 13523 ac_cv_search_opendir="none required" 13524else 13525 echo "$as_me: failed program was:" >&5 13526sed 's/^/| /' conftest.$ac_ext >&5 13527 13528fi 13529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13530if test "$ac_cv_search_opendir" = no; then 13531 for ac_lib in dir; do 13532 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13533 cat >conftest.$ac_ext <<_ACEOF 13534#line $LINENO "configure" 13535/* confdefs.h. */ 13536_ACEOF 13537cat confdefs.h >>conftest.$ac_ext 13538cat >>conftest.$ac_ext <<_ACEOF 13539/* end confdefs.h. */ 13540 13541/* Override any gcc2 internal prototype to avoid an error. */ 13542#ifdef __cplusplus 13543extern "C" 13544#endif 13545/* We use char because int might match the return type of a gcc2 13546 builtin and then its argument prototype would still apply. */ 13547char opendir (); 13548int 13549main () 13550{ 13551opendir (); 13552 ; 13553 return 0; 13554} 13555_ACEOF 13556rm -f conftest.$ac_objext conftest$ac_exeext 13557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13558 (eval $ac_link) 2>&5 13559 ac_status=$? 13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13561 (exit $ac_status); } && 13562 { ac_try='test -s conftest$ac_exeext' 13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13564 (eval $ac_try) 2>&5 13565 ac_status=$? 13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13567 (exit $ac_status); }; }; then 13568 ac_cv_search_opendir="-l$ac_lib" 13569break 13570else 13571 echo "$as_me: failed program was:" >&5 13572sed 's/^/| /' conftest.$ac_ext >&5 13573 13574fi 13575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13576 done 13577fi 13578LIBS=$ac_func_search_save_LIBS 13579fi 13580echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13581echo "${ECHO_T}$ac_cv_search_opendir" >&6 13582if test "$ac_cv_search_opendir" != no; then 13583 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 13584 13585fi 13586 13587else 13588 echo "$as_me:$LINENO: checking for library containing opendir" >&5 13589echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 13590if test "${ac_cv_search_opendir+set}" = set; then 13591 echo $ECHO_N "(cached) $ECHO_C" >&6 13592else 13593 ac_func_search_save_LIBS=$LIBS 13594ac_cv_search_opendir=no 13595cat >conftest.$ac_ext <<_ACEOF 13596#line $LINENO "configure" 13597/* confdefs.h. */ 13598_ACEOF 13599cat confdefs.h >>conftest.$ac_ext 13600cat >>conftest.$ac_ext <<_ACEOF 13601/* end confdefs.h. */ 13602 13603/* Override any gcc2 internal prototype to avoid an error. */ 13604#ifdef __cplusplus 13605extern "C" 13606#endif 13607/* We use char because int might match the return type of a gcc2 13608 builtin and then its argument prototype would still apply. */ 13609char opendir (); 13610int 13611main () 13612{ 13613opendir (); 13614 ; 13615 return 0; 13616} 13617_ACEOF 13618rm -f conftest.$ac_objext conftest$ac_exeext 13619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13620 (eval $ac_link) 2>&5 13621 ac_status=$? 13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13623 (exit $ac_status); } && 13624 { ac_try='test -s conftest$ac_exeext' 13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13626 (eval $ac_try) 2>&5 13627 ac_status=$? 13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13629 (exit $ac_status); }; }; then 13630 ac_cv_search_opendir="none required" 13631else 13632 echo "$as_me: failed program was:" >&5 13633sed 's/^/| /' conftest.$ac_ext >&5 13634 13635fi 13636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13637if test "$ac_cv_search_opendir" = no; then 13638 for ac_lib in x; do 13639 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13640 cat >conftest.$ac_ext <<_ACEOF 13641#line $LINENO "configure" 13642/* confdefs.h. */ 13643_ACEOF 13644cat confdefs.h >>conftest.$ac_ext 13645cat >>conftest.$ac_ext <<_ACEOF 13646/* end confdefs.h. */ 13647 13648/* Override any gcc2 internal prototype to avoid an error. */ 13649#ifdef __cplusplus 13650extern "C" 13651#endif 13652/* We use char because int might match the return type of a gcc2 13653 builtin and then its argument prototype would still apply. */ 13654char opendir (); 13655int 13656main () 13657{ 13658opendir (); 13659 ; 13660 return 0; 13661} 13662_ACEOF 13663rm -f conftest.$ac_objext conftest$ac_exeext 13664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13665 (eval $ac_link) 2>&5 13666 ac_status=$? 13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13668 (exit $ac_status); } && 13669 { ac_try='test -s conftest$ac_exeext' 13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13671 (eval $ac_try) 2>&5 13672 ac_status=$? 13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13674 (exit $ac_status); }; }; then 13675 ac_cv_search_opendir="-l$ac_lib" 13676break 13677else 13678 echo "$as_me: failed program was:" >&5 13679sed 's/^/| /' conftest.$ac_ext >&5 13680 13681fi 13682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13683 done 13684fi 13685LIBS=$ac_func_search_save_LIBS 13686fi 13687echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13688echo "${ECHO_T}$ac_cv_search_opendir" >&6 13689if test "$ac_cv_search_opendir" != no; then 13690 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 13691 13692fi 13693 13694fi 13695 13696echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 13697echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 13698if test "${ac_cv_header_sys_wait_h+set}" = set; then 13699 echo $ECHO_N "(cached) $ECHO_C" >&6 13700else 13701 cat >conftest.$ac_ext <<_ACEOF 13702#line $LINENO "configure" 13703/* confdefs.h. */ 13704_ACEOF 13705cat confdefs.h >>conftest.$ac_ext 13706cat >>conftest.$ac_ext <<_ACEOF 13707/* end confdefs.h. */ 13708#include <sys/types.h> 13709#include <sys/wait.h> 13710#ifndef WEXITSTATUS 13711# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 13712#endif 13713#ifndef WIFEXITED 13714# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13715#endif 13716 13717int 13718main () 13719{ 13720 int s; 13721 wait (&s); 13722 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13723 ; 13724 return 0; 13725} 13726_ACEOF 13727rm -f conftest.$ac_objext 13728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13729 (eval $ac_compile) 2>&5 13730 ac_status=$? 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); } && 13733 { ac_try='test -s conftest.$ac_objext' 13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13735 (eval $ac_try) 2>&5 13736 ac_status=$? 13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13738 (exit $ac_status); }; }; then 13739 ac_cv_header_sys_wait_h=yes 13740else 13741 echo "$as_me: failed program was:" >&5 13742sed 's/^/| /' conftest.$ac_ext >&5 13743 13744ac_cv_header_sys_wait_h=no 13745fi 13746rm -f conftest.$ac_objext conftest.$ac_ext 13747fi 13748echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 13749echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 13750if test $ac_cv_header_sys_wait_h = yes; then 13751 13752cat >>confdefs.h <<\_ACEOF 13753#define HAVE_SYS_WAIT_H 1 13754_ACEOF 13755 13756fi 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774for ac_header in dlfcn.h fcntl.h limits.h malloc.h paths.h strings.h sys/file.h sys/time.h syslog.h unistd.h inttypes.h sys/uio.h sys/param.h sysexits.h stdarg.h varargs.h 13775do 13776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13777if eval "test \"\${$as_ac_Header+set}\" = set"; then 13778 echo "$as_me:$LINENO: checking for $ac_header" >&5 13779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13780if eval "test \"\${$as_ac_Header+set}\" = set"; then 13781 echo $ECHO_N "(cached) $ECHO_C" >&6 13782fi 13783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13785else 13786 # Is the header compilable? 13787echo "$as_me:$LINENO: checking $ac_header usability" >&5 13788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13789cat >conftest.$ac_ext <<_ACEOF 13790#line $LINENO "configure" 13791/* confdefs.h. */ 13792_ACEOF 13793cat confdefs.h >>conftest.$ac_ext 13794cat >>conftest.$ac_ext <<_ACEOF 13795/* end confdefs.h. */ 13796$ac_includes_default 13797#include <$ac_header> 13798_ACEOF 13799rm -f conftest.$ac_objext 13800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13801 (eval $ac_compile) 2>&5 13802 ac_status=$? 13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13804 (exit $ac_status); } && 13805 { ac_try='test -s conftest.$ac_objext' 13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13807 (eval $ac_try) 2>&5 13808 ac_status=$? 13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13810 (exit $ac_status); }; }; then 13811 ac_header_compiler=yes 13812else 13813 echo "$as_me: failed program was:" >&5 13814sed 's/^/| /' conftest.$ac_ext >&5 13815 13816ac_header_compiler=no 13817fi 13818rm -f conftest.$ac_objext conftest.$ac_ext 13819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13820echo "${ECHO_T}$ac_header_compiler" >&6 13821 13822# Is the header present? 13823echo "$as_me:$LINENO: checking $ac_header presence" >&5 13824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13825cat >conftest.$ac_ext <<_ACEOF 13826#line $LINENO "configure" 13827/* confdefs.h. */ 13828_ACEOF 13829cat confdefs.h >>conftest.$ac_ext 13830cat >>conftest.$ac_ext <<_ACEOF 13831/* end confdefs.h. */ 13832#include <$ac_header> 13833_ACEOF 13834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13836 ac_status=$? 13837 grep -v '^ *+' conftest.er1 >conftest.err 13838 rm -f conftest.er1 13839 cat conftest.err >&5 13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13841 (exit $ac_status); } >/dev/null; then 13842 if test -s conftest.err; then 13843 ac_cpp_err=$ac_c_preproc_warn_flag 13844 else 13845 ac_cpp_err= 13846 fi 13847else 13848 ac_cpp_err=yes 13849fi 13850if test -z "$ac_cpp_err"; then 13851 ac_header_preproc=yes 13852else 13853 echo "$as_me: failed program was:" >&5 13854sed 's/^/| /' conftest.$ac_ext >&5 13855 13856 ac_header_preproc=no 13857fi 13858rm -f conftest.err conftest.$ac_ext 13859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13860echo "${ECHO_T}$ac_header_preproc" >&6 13861 13862# So? What about this header? 13863case $ac_header_compiler:$ac_header_preproc in 13864 yes:no ) 13865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13869 ( 13870 cat <<\_ASBOX 13871## ------------------------------------ ## 13872## Report this to bug-autoconf@gnu.org. ## 13873## ------------------------------------ ## 13874_ASBOX 13875 ) | 13876 sed "s/^/$as_me: WARNING: /" >&2 13877 ;; 13878 no:yes ) 13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13885 ( 13886 cat <<\_ASBOX 13887## ------------------------------------ ## 13888## Report this to bug-autoconf@gnu.org. ## 13889## ------------------------------------ ## 13890_ASBOX 13891 ) | 13892 sed "s/^/$as_me: WARNING: /" >&2 13893 ;; 13894esac 13895echo "$as_me:$LINENO: checking for $ac_header" >&5 13896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13897if eval "test \"\${$as_ac_Header+set}\" = set"; then 13898 echo $ECHO_N "(cached) $ECHO_C" >&6 13899else 13900 eval "$as_ac_Header=$ac_header_preproc" 13901fi 13902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13904 13905fi 13906if test `eval echo '${'$as_ac_Header'}'` = yes; then 13907 cat >>confdefs.h <<_ACEOF 13908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13909_ACEOF 13910 13911fi 13912 13913done 13914 13915 13916 13917echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5 13918echo $ECHO_N "checking whether you have ss_family in struct sockaddr_storage... $ECHO_C" >&6 13919if test "${ipv6_cv_ss_family+set}" = set; then 13920 echo $ECHO_N "(cached) $ECHO_C" >&6 13921else 13922 cat >conftest.$ac_ext <<_ACEOF 13923#line $LINENO "configure" 13924/* confdefs.h. */ 13925_ACEOF 13926cat confdefs.h >>conftest.$ac_ext 13927cat >>conftest.$ac_ext <<_ACEOF 13928/* end confdefs.h. */ 13929#include <sys/types.h> 13930#include <sys/socket.h> 13931int 13932main () 13933{ 13934struct sockaddr_storage ss; int i = ss.ss_family; 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939rm -f conftest.$ac_objext 13940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13941 (eval $ac_compile) 2>&5 13942 ac_status=$? 13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13944 (exit $ac_status); } && 13945 { ac_try='test -s conftest.$ac_objext' 13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13947 (eval $ac_try) 2>&5 13948 ac_status=$? 13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13950 (exit $ac_status); }; }; then 13951 ipv6_cv_ss_family=yes 13952else 13953 echo "$as_me: failed program was:" >&5 13954sed 's/^/| /' conftest.$ac_ext >&5 13955 13956ipv6_cv_ss_family=no 13957fi 13958rm -f conftest.$ac_objext conftest.$ac_ext 13959fi 13960if test $ipv6_cv_ss_family = yes; then 13961 13962cat >>confdefs.h <<\_ACEOF 13963#define HAVE_SS_FAMILY 13964_ACEOF 13965 13966else 13967 : 13968fi 13969echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5 13970echo "${ECHO_T}$ipv6_cv_ss_family" >&6 13971 13972echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5 13973echo $ECHO_N "checking whether you have sa_len in struct sockaddr... $ECHO_C" >&6 13974if test "${ipv6_cv_sa_len+set}" = set; then 13975 echo $ECHO_N "(cached) $ECHO_C" >&6 13976else 13977 cat >conftest.$ac_ext <<_ACEOF 13978#line $LINENO "configure" 13979/* confdefs.h. */ 13980_ACEOF 13981cat confdefs.h >>conftest.$ac_ext 13982cat >>conftest.$ac_ext <<_ACEOF 13983/* end confdefs.h. */ 13984#include <sys/types.h> 13985#include <sys/socket.h> 13986int 13987main () 13988{ 13989struct sockaddr sa; int i = sa.sa_len; 13990 ; 13991 return 0; 13992} 13993_ACEOF 13994rm -f conftest.$ac_objext 13995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13996 (eval $ac_compile) 2>&5 13997 ac_status=$? 13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13999 (exit $ac_status); } && 14000 { ac_try='test -s conftest.$ac_objext' 14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14002 (eval $ac_try) 2>&5 14003 ac_status=$? 14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14005 (exit $ac_status); }; }; then 14006 ipv6_cv_sa_len=yes 14007else 14008 echo "$as_me: failed program was:" >&5 14009sed 's/^/| /' conftest.$ac_ext >&5 14010 14011ipv6_cv_sa_len=no 14012fi 14013rm -f conftest.$ac_objext conftest.$ac_ext 14014fi 14015if test $ipv6_cv_sa_len = yes; then 14016 14017cat >>confdefs.h <<\_ACEOF 14018#define HAVE_SOCKADDR_SA_LEN 14019_ACEOF 14020 14021else 14022 : 14023fi 14024echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5 14025echo "${ECHO_T}$ipv6_cv_sa_len" >&6 14026 14027echo "$as_me:$LINENO: checking for socklen_t" >&5 14028echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 14029if test "${ipv6_cv_socklen_t+set}" = set; then 14030 echo $ECHO_N "(cached) $ECHO_C" >&6 14031else 14032 cat >conftest.$ac_ext <<_ACEOF 14033#line $LINENO "configure" 14034/* confdefs.h. */ 14035_ACEOF 14036cat confdefs.h >>conftest.$ac_ext 14037cat >>conftest.$ac_ext <<_ACEOF 14038/* end confdefs.h. */ 14039#include <sys/types.h> 14040#include <sys/socket.h> 14041int 14042main () 14043{ 14044socklen_t len = 0; 14045 ; 14046 return 0; 14047} 14048_ACEOF 14049rm -f conftest.$ac_objext conftest$ac_exeext 14050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14051 (eval $ac_link) 2>&5 14052 ac_status=$? 14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14054 (exit $ac_status); } && 14055 { ac_try='test -s conftest$ac_exeext' 14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14057 (eval $ac_try) 2>&5 14058 ac_status=$? 14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14060 (exit $ac_status); }; }; then 14061 ipv6_cv_socklen_t=yes 14062else 14063 echo "$as_me: failed program was:" >&5 14064sed 's/^/| /' conftest.$ac_ext >&5 14065 14066ipv6_cv_socklen_t=no 14067fi 14068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14069fi 14070if test $ipv6_cv_socklen_t = yes; then 14071 14072cat >>confdefs.h <<\_ACEOF 14073#define HAVE_SOCKLEN_T 14074_ACEOF 14075 14076else 14077 : 14078fi 14079echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5 14080echo "${ECHO_T}$ipv6_cv_socklen_t" >&6 14081 14082#AC_FUNC_MEMCMP 14083#AC_FUNC_VPRINTF 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101for ac_func in gethostname getdomainname getpwnam getspnam gettimeofday inet_aton memcpy mkdir select socket strchr strdup strerror strspn strstr strtol jrand48 14102do 14103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14104echo "$as_me:$LINENO: checking for $ac_func" >&5 14105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14106if eval "test \"\${$as_ac_var+set}\" = set"; then 14107 echo $ECHO_N "(cached) $ECHO_C" >&6 14108else 14109 cat >conftest.$ac_ext <<_ACEOF 14110#line $LINENO "configure" 14111/* confdefs.h. */ 14112_ACEOF 14113cat confdefs.h >>conftest.$ac_ext 14114cat >>conftest.$ac_ext <<_ACEOF 14115/* end confdefs.h. */ 14116/* System header to define __stub macros and hopefully few prototypes, 14117 which can conflict with char $ac_func (); below. 14118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14119 <limits.h> exists even on freestanding compilers. */ 14120#ifdef __STDC__ 14121# include <limits.h> 14122#else 14123# include <assert.h> 14124#endif 14125/* Override any gcc2 internal prototype to avoid an error. */ 14126#ifdef __cplusplus 14127extern "C" 14128{ 14129#endif 14130/* We use char because int might match the return type of a gcc2 14131 builtin and then its argument prototype would still apply. */ 14132char $ac_func (); 14133/* The GNU C library defines this for functions which it implements 14134 to always fail with ENOSYS. Some functions are actually named 14135 something starting with __ and the normal name is an alias. */ 14136#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14137choke me 14138#else 14139char (*f) () = $ac_func; 14140#endif 14141#ifdef __cplusplus 14142} 14143#endif 14144 14145int 14146main () 14147{ 14148return f != $ac_func; 14149 ; 14150 return 0; 14151} 14152_ACEOF 14153rm -f conftest.$ac_objext conftest$ac_exeext 14154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14155 (eval $ac_link) 2>&5 14156 ac_status=$? 14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14158 (exit $ac_status); } && 14159 { ac_try='test -s conftest$ac_exeext' 14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14161 (eval $ac_try) 2>&5 14162 ac_status=$? 14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14164 (exit $ac_status); }; }; then 14165 eval "$as_ac_var=yes" 14166else 14167 echo "$as_me: failed program was:" >&5 14168sed 's/^/| /' conftest.$ac_ext >&5 14169 14170eval "$as_ac_var=no" 14171fi 14172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14173fi 14174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14175echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14176if test `eval echo '${'$as_ac_var'}'` = yes; then 14177 cat >>confdefs.h <<_ACEOF 14178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14179_ACEOF 14180 14181fi 14182done 14183 14184 14185if test $enable_cmulocal = yes; then 14186 { echo "$as_me:$LINENO: WARNING: enabling CMU local kludges" >&5 14187echo "$as_me: WARNING: enabling CMU local kludges" >&2;} 14188 14189cat >>confdefs.h <<\_ACEOF 14190#define KRB4_IGNORE_IP_ADDRESS 14191_ACEOF 14192 14193 14194cat >>confdefs.h <<_ACEOF 14195#define PREFER_MECH "KERBEROS_V4" 14196_ACEOF 14197 14198fi 14199 14200cat >conftest.$ac_ext <<_ACEOF 14201#line $LINENO "configure" 14202/* confdefs.h. */ 14203_ACEOF 14204cat confdefs.h >>conftest.$ac_ext 14205cat >>conftest.$ac_ext <<_ACEOF 14206/* end confdefs.h. */ 14207#include <sys/socket.h> 14208 14209_ACEOF 14210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14211 $EGREP "sockaddr_storage" >/dev/null 2>&1; then 14212 14213 14214cat >>confdefs.h <<\_ACEOF 14215#define HAVE_STRUCT_SOCKADDR_STORAGE 14216_ACEOF 14217 14218fi 14219rm -f conftest* 14220 14221 14222 14223 14224 14225 14226subdirs="$subdirs saslauthd" 14227 14228 14229 14230 14231 14232 14233 14234 14235 ac_config_headers="$ac_config_headers config.h" 14236 14237 14238 ac_config_files="$ac_config_files Makefile include/Makefile sasldb/Makefile plugins/Makefile lib/Makefile utils/Makefile doc/Makefile sample/Makefile java/Makefile java/CyrusSasl/Makefile java/Test/Makefile java/javax/Makefile java/javax/security/Makefile java/javax/security/auth/Makefile java/javax/security/auth/callback/Makefile pwcheck/Makefile man/Makefile" 14239cat >confcache <<\_ACEOF 14240# This file is a shell script that caches the results of configure 14241# tests run on this system so they can be shared between configure 14242# scripts and configure runs, see configure's option --config-cache. 14243# It is not useful on other systems. If it contains results you don't 14244# want to keep, you may remove or edit it. 14245# 14246# config.status only pays attention to the cache file if you give it 14247# the --recheck option to rerun configure. 14248# 14249# `ac_cv_env_foo' variables (set or unset) will be overridden when 14250# loading this file, other *unset* `ac_cv_foo' will be assigned the 14251# following values. 14252 14253_ACEOF 14254 14255# The following way of writing the cache mishandles newlines in values, 14256# but we know of no workaround that is simple, portable, and efficient. 14257# So, don't put newlines in cache variables' values. 14258# Ultrix sh set writes to stderr and can't be redirected directly, 14259# and sets the high bit in the cache file unless we assign to the vars. 14260{ 14261 (set) 2>&1 | 14262 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14263 *ac_space=\ *) 14264 # `set' does not quote correctly, so add quotes (double-quote 14265 # substitution turns \\\\ into \\, and sed turns \\ into \). 14266 sed -n \ 14267 "s/'/'\\\\''/g; 14268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14269 ;; 14270 *) 14271 # `set' quotes correctly as required by POSIX, so do not add quotes. 14272 sed -n \ 14273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14274 ;; 14275 esac; 14276} | 14277 sed ' 14278 t clear 14279 : clear 14280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14281 t end 14282 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14283 : end' >>confcache 14284if diff $cache_file confcache >/dev/null 2>&1; then :; else 14285 if test -w $cache_file; then 14286 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14287 cat confcache >$cache_file 14288 else 14289 echo "not updating unwritable cache $cache_file" 14290 fi 14291fi 14292rm -f confcache 14293 14294test "x$prefix" = xNONE && prefix=$ac_default_prefix 14295# Let make expand exec_prefix. 14296test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14297 14298# VPATH may cause trouble with some makes, so we remove $(srcdir), 14299# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14300# trailing colons and then remove the whole line if VPATH becomes empty 14301# (actually we leave an empty line to preserve line numbers). 14302if test "x$srcdir" = x.; then 14303 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14304s/:*\$(srcdir):*/:/; 14305s/:*\${srcdir}:*/:/; 14306s/:*@srcdir@:*/:/; 14307s/^\([^=]*=[ ]*\):*/\1/; 14308s/:*$//; 14309s/^[^=]*=[ ]*$//; 14310}' 14311fi 14312 14313DEFS=-DHAVE_CONFIG_H 14314 14315ac_libobjs= 14316ac_ltlibobjs= 14317for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14318 # 1. Remove the extension, and $U if already installed. 14319 ac_i=`echo "$ac_i" | 14320 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 14321 # 2. Add them. 14322 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 14323 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 14324done 14325LIBOBJS=$ac_libobjs 14326 14327LTLIBOBJS=$ac_ltlibobjs 14328 14329 14330if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14331 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14332Usually this means the macro was only invoked conditionally." >&5 14333echo "$as_me: error: conditional \"AMDEP\" was never defined. 14334Usually this means the macro was only invoked conditionally." >&2;} 14335 { (exit 1); exit 1; }; } 14336fi 14337if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14338 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14339Usually this means the macro was only invoked conditionally." >&5 14340echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14341Usually this means the macro was only invoked conditionally." >&2;} 14342 { (exit 1); exit 1; }; } 14343fi 14344if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then 14345 { { echo "$as_me:$LINENO: error: conditional \"JAVA\" was never defined. 14346Usually this means the macro was only invoked conditionally." >&5 14347echo "$as_me: error: conditional \"JAVA\" was never defined. 14348Usually this means the macro was only invoked conditionally." >&2;} 14349 { (exit 1); exit 1; }; } 14350fi 14351if test -z "${SAMPLE_TRUE}" && test -z "${SAMPLE_FALSE}"; then 14352 { { echo "$as_me:$LINENO: error: conditional \"SAMPLE\" was never defined. 14353Usually this means the macro was only invoked conditionally." >&5 14354echo "$as_me: error: conditional \"SAMPLE\" was never defined. 14355Usually this means the macro was only invoked conditionally." >&2;} 14356 { (exit 1); exit 1; }; } 14357fi 14358if test -z "${NO_SASL_DB_MANS_TRUE}" && test -z "${NO_SASL_DB_MANS_FALSE}"; then 14359 { { echo "$as_me:$LINENO: error: conditional \"NO_SASL_DB_MANS\" was never defined. 14360Usually this means the macro was only invoked conditionally." >&5 14361echo "$as_me: error: conditional \"NO_SASL_DB_MANS\" was never defined. 14362Usually this means the macro was only invoked conditionally." >&2;} 14363 { (exit 1); exit 1; }; } 14364fi 14365if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then 14366 { { echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined. 14367Usually this means the macro was only invoked conditionally." >&5 14368echo "$as_me: error: conditional \"SASLAUTHD\" was never defined. 14369Usually this means the macro was only invoked conditionally." >&2;} 14370 { (exit 1); exit 1; }; } 14371fi 14372if test -z "${PWCHECK_TRUE}" && test -z "${PWCHECK_FALSE}"; then 14373 { { echo "$as_me:$LINENO: error: conditional \"PWCHECK\" was never defined. 14374Usually this means the macro was only invoked conditionally." >&5 14375echo "$as_me: error: conditional \"PWCHECK\" was never defined. 14376Usually this means the macro was only invoked conditionally." >&2;} 14377 { (exit 1); exit 1; }; } 14378fi 14379if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 14380 { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined. 14381Usually this means the macro was only invoked conditionally." >&5 14382echo "$as_me: error: conditional \"MACOSX\" was never defined. 14383Usually this means the macro was only invoked conditionally." >&2;} 14384 { (exit 1); exit 1; }; } 14385fi 14386 14387: ${CONFIG_STATUS=./config.status} 14388ac_clean_files_save=$ac_clean_files 14389ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14390{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14391echo "$as_me: creating $CONFIG_STATUS" >&6;} 14392cat >$CONFIG_STATUS <<_ACEOF 14393#! $SHELL 14394# Generated by $as_me. 14395# Run this file to recreate the current configuration. 14396# Compiler output produced by configure, useful for debugging 14397# configure, is in config.log if it exists. 14398 14399debug=false 14400ac_cs_recheck=false 14401ac_cs_silent=false 14402SHELL=\${CONFIG_SHELL-$SHELL} 14403_ACEOF 14404 14405cat >>$CONFIG_STATUS <<\_ACEOF 14406## --------------------- ## 14407## M4sh Initialization. ## 14408## --------------------- ## 14409 14410# Be Bourne compatible 14411if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14412 emulate sh 14413 NULLCMD=: 14414 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14415 # is contrary to our usage. Disable this feature. 14416 alias -g '${1+"$@"}'='"$@"' 14417elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14418 set -o posix 14419fi 14420 14421# Support unset when possible. 14422if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 14423 as_unset=unset 14424else 14425 as_unset=false 14426fi 14427 14428 14429# Work around bugs in pre-3.0 UWIN ksh. 14430$as_unset ENV MAIL MAILPATH 14431PS1='$ ' 14432PS2='> ' 14433PS4='+ ' 14434 14435# NLS nuisances. 14436for as_var in \ 14437 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14438 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14439 LC_TELEPHONE LC_TIME 14440do 14441 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 14442 eval $as_var=C; export $as_var 14443 else 14444 $as_unset $as_var 14445 fi 14446done 14447 14448# Required to use basename. 14449if expr a : '\(a\)' >/dev/null 2>&1; then 14450 as_expr=expr 14451else 14452 as_expr=false 14453fi 14454 14455if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 14456 as_basename=basename 14457else 14458 as_basename=false 14459fi 14460 14461 14462# Name of the executable. 14463as_me=`$as_basename "$0" || 14464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14465 X"$0" : 'X\(//\)$' \| \ 14466 X"$0" : 'X\(/\)$' \| \ 14467 . : '\(.\)' 2>/dev/null || 14468echo X/"$0" | 14469 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14470 /^X\/\(\/\/\)$/{ s//\1/; q; } 14471 /^X\/\(\/\).*/{ s//\1/; q; } 14472 s/.*/./; q'` 14473 14474 14475# PATH needs CR, and LINENO needs CR and PATH. 14476# Avoid depending upon Character Ranges. 14477as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14479as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14480as_cr_digits='0123456789' 14481as_cr_alnum=$as_cr_Letters$as_cr_digits 14482 14483# The user is always right. 14484if test "${PATH_SEPARATOR+set}" != set; then 14485 echo "#! /bin/sh" >conf$$.sh 14486 echo "exit 0" >>conf$$.sh 14487 chmod +x conf$$.sh 14488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14489 PATH_SEPARATOR=';' 14490 else 14491 PATH_SEPARATOR=: 14492 fi 14493 rm -f conf$$.sh 14494fi 14495 14496 14497 as_lineno_1=$LINENO 14498 as_lineno_2=$LINENO 14499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14500 test "x$as_lineno_1" != "x$as_lineno_2" && 14501 test "x$as_lineno_3" = "x$as_lineno_2" || { 14502 # Find who we are. Look in the path if we contain no path at all 14503 # relative or not. 14504 case $0 in 14505 *[\\/]* ) as_myself=$0 ;; 14506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14507for as_dir in $PATH 14508do 14509 IFS=$as_save_IFS 14510 test -z "$as_dir" && as_dir=. 14511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14512done 14513 14514 ;; 14515 esac 14516 # We did not find ourselves, most probably we were run as `sh COMMAND' 14517 # in which case we are not to be found in the path. 14518 if test "x$as_myself" = x; then 14519 as_myself=$0 14520 fi 14521 if test ! -f "$as_myself"; then 14522 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14523echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14524 { (exit 1); exit 1; }; } 14525 fi 14526 case $CONFIG_SHELL in 14527 '') 14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14529for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14530do 14531 IFS=$as_save_IFS 14532 test -z "$as_dir" && as_dir=. 14533 for as_base in sh bash ksh sh5; do 14534 case $as_dir in 14535 /*) 14536 if ("$as_dir/$as_base" -c ' 14537 as_lineno_1=$LINENO 14538 as_lineno_2=$LINENO 14539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14540 test "x$as_lineno_1" != "x$as_lineno_2" && 14541 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14542 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14543 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14544 CONFIG_SHELL=$as_dir/$as_base 14545 export CONFIG_SHELL 14546 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14547 fi;; 14548 esac 14549 done 14550done 14551;; 14552 esac 14553 14554 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14555 # uniformly replaced by the line number. The first 'sed' inserts a 14556 # line-number line before each line; the second 'sed' does the real 14557 # work. The second script uses 'N' to pair each line-number line 14558 # with the numbered line, and appends trailing '-' during 14559 # substitution so that $LINENO is not a special case at line end. 14560 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14561 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14562 sed '=' <$as_myself | 14563 sed ' 14564 N 14565 s,$,-, 14566 : loop 14567 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14568 t loop 14569 s,-$,, 14570 s,^['$as_cr_digits']*\n,, 14571 ' >$as_me.lineno && 14572 chmod +x $as_me.lineno || 14573 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14574echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14575 { (exit 1); exit 1; }; } 14576 14577 # Don't try to exec as it changes $[0], causing all sort of problems 14578 # (the dirname of $[0] is not the place where we might find the 14579 # original and so on. Autoconf is especially sensible to this). 14580 . ./$as_me.lineno 14581 # Exit status is that of the last command. 14582 exit 14583} 14584 14585 14586case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14587 *c*,-n*) ECHO_N= ECHO_C=' 14588' ECHO_T=' ' ;; 14589 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14590 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14591esac 14592 14593if expr a : '\(a\)' >/dev/null 2>&1; then 14594 as_expr=expr 14595else 14596 as_expr=false 14597fi 14598 14599rm -f conf$$ conf$$.exe conf$$.file 14600echo >conf$$.file 14601if ln -s conf$$.file conf$$ 2>/dev/null; then 14602 # We could just check for DJGPP; but this test a) works b) is more generic 14603 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14604 if test -f conf$$.exe; then 14605 # Don't use ln at all; we don't have any links 14606 as_ln_s='cp -p' 14607 else 14608 as_ln_s='ln -s' 14609 fi 14610elif ln conf$$.file conf$$ 2>/dev/null; then 14611 as_ln_s=ln 14612else 14613 as_ln_s='cp -p' 14614fi 14615rm -f conf$$ conf$$.exe conf$$.file 14616 14617if mkdir -p . 2>/dev/null; then 14618 as_mkdir_p=: 14619else 14620 as_mkdir_p=false 14621fi 14622 14623as_executable_p="test -f" 14624 14625# Sed expression to map a string onto a valid CPP name. 14626as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 14627 14628# Sed expression to map a string onto a valid variable name. 14629as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 14630 14631 14632# IFS 14633# We need space, tab and new line, in precisely that order. 14634as_nl=' 14635' 14636IFS=" $as_nl" 14637 14638# CDPATH. 14639$as_unset CDPATH 14640 14641exec 6>&1 14642 14643# Open the log real soon, to keep \$[0] and so on meaningful, and to 14644# report actual input values of CONFIG_FILES etc. instead of their 14645# values after options handling. Logging --version etc. is OK. 14646exec 5>>config.log 14647{ 14648 echo 14649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14650## Running $as_me. ## 14651_ASBOX 14652} >&5 14653cat >&5 <<_CSEOF 14654 14655This file was extended by $as_me, which was 14656generated by GNU Autoconf 2.57. Invocation command line was 14657 14658 CONFIG_FILES = $CONFIG_FILES 14659 CONFIG_HEADERS = $CONFIG_HEADERS 14660 CONFIG_LINKS = $CONFIG_LINKS 14661 CONFIG_COMMANDS = $CONFIG_COMMANDS 14662 $ $0 $@ 14663 14664_CSEOF 14665echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14666echo >&5 14667_ACEOF 14668 14669# Files that config.status was made for. 14670if test -n "$ac_config_files"; then 14671 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14672fi 14673 14674if test -n "$ac_config_headers"; then 14675 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14676fi 14677 14678if test -n "$ac_config_links"; then 14679 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14680fi 14681 14682if test -n "$ac_config_commands"; then 14683 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14684fi 14685 14686cat >>$CONFIG_STATUS <<\_ACEOF 14687 14688ac_cs_usage="\ 14689\`$as_me' instantiates files from templates according to the 14690current configuration. 14691 14692Usage: $0 [OPTIONS] [FILE]... 14693 14694 -h, --help print this help, then exit 14695 -V, --version print version number, then exit 14696 -q, --quiet do not print progress messages 14697 -d, --debug don't remove temporary files 14698 --recheck update $as_me by reconfiguring in the same conditions 14699 --file=FILE[:TEMPLATE] 14700 instantiate the configuration file FILE 14701 --header=FILE[:TEMPLATE] 14702 instantiate the configuration header FILE 14703 14704Configuration files: 14705$config_files 14706 14707Configuration headers: 14708$config_headers 14709 14710Configuration commands: 14711$config_commands 14712 14713Report bugs to <bug-autoconf@gnu.org>." 14714_ACEOF 14715 14716cat >>$CONFIG_STATUS <<_ACEOF 14717ac_cs_version="\\ 14718config.status 14719configured by $0, generated by GNU Autoconf 2.57, 14720 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14721 14722Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 14723Free Software Foundation, Inc. 14724This config.status script is free software; the Free Software Foundation 14725gives unlimited permission to copy, distribute and modify it." 14726srcdir=$srcdir 14727INSTALL="$INSTALL" 14728_ACEOF 14729 14730cat >>$CONFIG_STATUS <<\_ACEOF 14731# If no file are specified by the user, then we need to provide default 14732# value. By we need to know if files were specified by the user. 14733ac_need_defaults=: 14734while test $# != 0 14735do 14736 case $1 in 14737 --*=*) 14738 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14739 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14740 ac_shift=: 14741 ;; 14742 -*) 14743 ac_option=$1 14744 ac_optarg=$2 14745 ac_shift=shift 14746 ;; 14747 *) # This is not an option, so the user has probably given explicit 14748 # arguments. 14749 ac_option=$1 14750 ac_need_defaults=false;; 14751 esac 14752 14753 case $ac_option in 14754 # Handling of the options. 14755_ACEOF 14756cat >>$CONFIG_STATUS <<\_ACEOF 14757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14758 ac_cs_recheck=: ;; 14759 --version | --vers* | -V ) 14760 echo "$ac_cs_version"; exit 0 ;; 14761 --he | --h) 14762 # Conflict between --help and --header 14763 { { echo "$as_me:$LINENO: error: ambiguous option: $1 14764Try \`$0 --help' for more information." >&5 14765echo "$as_me: error: ambiguous option: $1 14766Try \`$0 --help' for more information." >&2;} 14767 { (exit 1); exit 1; }; };; 14768 --help | --hel | -h ) 14769 echo "$ac_cs_usage"; exit 0 ;; 14770 --debug | --d* | -d ) 14771 debug=: ;; 14772 --file | --fil | --fi | --f ) 14773 $ac_shift 14774 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14775 ac_need_defaults=false;; 14776 --header | --heade | --head | --hea ) 14777 $ac_shift 14778 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14779 ac_need_defaults=false;; 14780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14781 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14782 ac_cs_silent=: ;; 14783 14784 # This is an error. 14785 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 14786Try \`$0 --help' for more information." >&5 14787echo "$as_me: error: unrecognized option: $1 14788Try \`$0 --help' for more information." >&2;} 14789 { (exit 1); exit 1; }; } ;; 14790 14791 *) ac_config_targets="$ac_config_targets $1" ;; 14792 14793 esac 14794 shift 14795done 14796 14797ac_configure_extra_args= 14798 14799if $ac_cs_silent; then 14800 exec 6>/dev/null 14801 ac_configure_extra_args="$ac_configure_extra_args --silent" 14802fi 14803 14804_ACEOF 14805cat >>$CONFIG_STATUS <<_ACEOF 14806if \$ac_cs_recheck; then 14807 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14808 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14809fi 14810 14811_ACEOF 14812 14813cat >>$CONFIG_STATUS <<_ACEOF 14814# 14815# INIT-COMMANDS section. 14816# 14817 14818AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14819 14820_ACEOF 14821 14822 14823 14824cat >>$CONFIG_STATUS <<\_ACEOF 14825for ac_config_target in $ac_config_targets 14826do 14827 case "$ac_config_target" in 14828 # Handling of arguments. 14829 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14830 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14831 "sasldb/Makefile" ) CONFIG_FILES="$CONFIG_FILES sasldb/Makefile" ;; 14832 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 14833 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 14834 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 14835 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14836 "sample/Makefile" ) CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;; 14837 "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; 14838 "java/CyrusSasl/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/CyrusSasl/Makefile" ;; 14839 "java/Test/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Test/Makefile" ;; 14840 "java/javax/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/Makefile" ;; 14841 "java/javax/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/Makefile" ;; 14842 "java/javax/security/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/Makefile" ;; 14843 "java/javax/security/auth/callback/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/javax/security/auth/callback/Makefile" ;; 14844 "pwcheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES pwcheck/Makefile" ;; 14845 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 14846 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14847 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14848 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14849echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14850 { (exit 1); exit 1; }; };; 14851 esac 14852done 14853 14854# If the user did not use the arguments to specify the items to instantiate, 14855# then the envvar interface is used. Set only those that are not. 14856# We use the long form for the default assignment because of an extremely 14857# bizarre bug on SunOS 4.1.3. 14858if $ac_need_defaults; then 14859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14862fi 14863 14864# Have a temporary directory for convenience. Make it in the build tree 14865# simply because there is no reason to put it here, and in addition, 14866# creating and moving files from /tmp can sometimes cause problems. 14867# Create a temporary directory, and hook for its removal unless debugging. 14868$debug || 14869{ 14870 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14871 trap '{ (exit 1); exit 1; }' 1 2 13 15 14872} 14873 14874# Create a (secure) tmp directory for tmp files. 14875 14876{ 14877 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 14878 test -n "$tmp" && test -d "$tmp" 14879} || 14880{ 14881 tmp=./confstat$$-$RANDOM 14882 (umask 077 && mkdir $tmp) 14883} || 14884{ 14885 echo "$me: cannot create a temporary directory in ." >&2 14886 { (exit 1); exit 1; } 14887} 14888 14889_ACEOF 14890 14891cat >>$CONFIG_STATUS <<_ACEOF 14892 14893# 14894# CONFIG_FILES section. 14895# 14896 14897# No need to generate the scripts if there are no CONFIG_FILES. 14898# This happens for instance when ./config.status config.h 14899if test -n "\$CONFIG_FILES"; then 14900 # Protect against being on the right side of a sed subst in config.status. 14901 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14902 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14903s,@SHELL@,$SHELL,;t t 14904s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14905s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14906s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14907s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14908s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14909s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14910s,@exec_prefix@,$exec_prefix,;t t 14911s,@prefix@,$prefix,;t t 14912s,@program_transform_name@,$program_transform_name,;t t 14913s,@bindir@,$bindir,;t t 14914s,@sbindir@,$sbindir,;t t 14915s,@libexecdir@,$libexecdir,;t t 14916s,@datadir@,$datadir,;t t 14917s,@sysconfdir@,$sysconfdir,;t t 14918s,@sharedstatedir@,$sharedstatedir,;t t 14919s,@localstatedir@,$localstatedir,;t t 14920s,@libdir@,$libdir,;t t 14921s,@includedir@,$includedir,;t t 14922s,@oldincludedir@,$oldincludedir,;t t 14923s,@infodir@,$infodir,;t t 14924s,@mandir@,$mandir,;t t 14925s,@build_alias@,$build_alias,;t t 14926s,@host_alias@,$host_alias,;t t 14927s,@target_alias@,$target_alias,;t t 14928s,@DEFS@,$DEFS,;t t 14929s,@ECHO_C@,$ECHO_C,;t t 14930s,@ECHO_N@,$ECHO_N,;t t 14931s,@ECHO_T@,$ECHO_T,;t t 14932s,@LIBS@,$LIBS,;t t 14933s,@build@,$build,;t t 14934s,@build_cpu@,$build_cpu,;t t 14935s,@build_vendor@,$build_vendor,;t t 14936s,@build_os@,$build_os,;t t 14937s,@host@,$host,;t t 14938s,@host_cpu@,$host_cpu,;t t 14939s,@host_vendor@,$host_vendor,;t t 14940s,@host_os@,$host_os,;t t 14941s,@target@,$target,;t t 14942s,@target_cpu@,$target_cpu,;t t 14943s,@target_vendor@,$target_vendor,;t t 14944s,@target_os@,$target_os,;t t 14945s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14946s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14947s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14948s,@CYGPATH_W@,$CYGPATH_W,;t t 14949s,@PACKAGE@,$PACKAGE,;t t 14950s,@VERSION@,$VERSION,;t t 14951s,@ACLOCAL@,$ACLOCAL,;t t 14952s,@AUTOCONF@,$AUTOCONF,;t t 14953s,@AUTOMAKE@,$AUTOMAKE,;t t 14954s,@AUTOHEADER@,$AUTOHEADER,;t t 14955s,@MAKEINFO@,$MAKEINFO,;t t 14956s,@AMTAR@,$AMTAR,;t t 14957s,@install_sh@,$install_sh,;t t 14958s,@STRIP@,$STRIP,;t t 14959s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 14960s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 14961s,@AWK@,$AWK,;t t 14962s,@SET_MAKE@,$SET_MAKE,;t t 14963s,@CC@,$CC,;t t 14964s,@CFLAGS@,$CFLAGS,;t t 14965s,@LDFLAGS@,$LDFLAGS,;t t 14966s,@CPPFLAGS@,$CPPFLAGS,;t t 14967s,@ac_ct_CC@,$ac_ct_CC,;t t 14968s,@EXEEXT@,$EXEEXT,;t t 14969s,@OBJEXT@,$OBJEXT,;t t 14970s,@DEPDIR@,$DEPDIR,;t t 14971s,@am__include@,$am__include,;t t 14972s,@am__quote@,$am__quote,;t t 14973s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 14974s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 14975s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 14976s,@CCDEPMODE@,$CCDEPMODE,;t t 14977s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 14978s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 14979s,@CPP@,$CPP,;t t 14980s,@LN_S@,$LN_S,;t t 14981s,@RANLIB@,$RANLIB,;t t 14982s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14983s,@LIBTOOL@,$LIBTOOL,;t t 14984s,@PURECOV@,$PURECOV,;t t 14985s,@PURIFY@,$PURIFY,;t t 14986s,@JAVAC@,$JAVAC,;t t 14987s,@JAVAH@,$JAVAH,;t t 14988s,@JAVADOC@,$JAVADOC,;t t 14989s,@JAVA_TRUE@,$JAVA_TRUE,;t t 14990s,@JAVA_FALSE@,$JAVA_FALSE,;t t 14991s,@JAVA_INCLUDES@,$JAVA_INCLUDES,;t t 14992s,@JAVAROOT@,$JAVAROOT,;t t 14993s,@SAMPLE_TRUE@,$SAMPLE_TRUE,;t t 14994s,@SAMPLE_FALSE@,$SAMPLE_FALSE,;t t 14995s,@LIB_SOCKET@,$LIB_SOCKET,;t t 14996s,@EGREP@,$EGREP,;t t 14997s,@SASL_DB_UTILS@,$SASL_DB_UTILS,;t t 14998s,@SASL_DB_MANS@,$SASL_DB_MANS,;t t 14999s,@SASL_DB_BACKEND@,$SASL_DB_BACKEND,;t t 15000s,@SASL_DB_BACKEND_STATIC@,$SASL_DB_BACKEND_STATIC,;t t 15001s,@SASL_DB_INC@,$SASL_DB_INC,;t t 15002s,@SASL_DB_LIB@,$SASL_DB_LIB,;t t 15003s,@NO_SASL_DB_MANS_TRUE@,$NO_SASL_DB_MANS_TRUE,;t t 15004s,@NO_SASL_DB_MANS_FALSE@,$NO_SASL_DB_MANS_FALSE,;t t 15005s,@SASL_DL_LIB@,$SASL_DL_LIB,;t t 15006s,@NM@,$NM,;t t 15007s,@SASLAUTHD_TRUE@,$SASLAUTHD_TRUE,;t t 15008s,@SASLAUTHD_FALSE@,$SASLAUTHD_FALSE,;t t 15009s,@PWCHECKMETH@,$PWCHECKMETH,;t t 15010s,@PWCHECK_TRUE@,$PWCHECK_TRUE,;t t 15011s,@PWCHECK_FALSE@,$PWCHECK_FALSE,;t t 15012s,@IPCTYPE@,$IPCTYPE,;t t 15013s,@LIB_DES@,$LIB_DES,;t t 15014s,@OTP_LIBS@,$OTP_LIBS,;t t 15015s,@SRP_LIBS@,$SRP_LIBS,;t t 15016s,@SASL_KRB_LIB@,$SASL_KRB_LIB,;t t 15017s,@LIB_CRYPT@,$LIB_CRYPT,;t t 15018s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t 15019s,@GSSAPIBASE_LIBS@,$GSSAPIBASE_LIBS,;t t 15020s,@PLAIN_LIBS@,$PLAIN_LIBS,;t t 15021s,@NTLM_LIBS@,$NTLM_LIBS,;t t 15022s,@LIB_MYSQL@,$LIB_MYSQL,;t t 15023s,@LIB_PGSQL@,$LIB_PGSQL,;t t 15024s,@SASL_MECHS@,$SASL_MECHS,;t t 15025s,@SASL_STATIC_OBJS@,$SASL_STATIC_OBJS,;t t 15026s,@SASL_STATIC_LIBS@,$SASL_STATIC_LIBS,;t t 15027s,@plugindir@,$plugindir,;t t 15028s,@MACOSX_TRUE@,$MACOSX_TRUE,;t t 15029s,@MACOSX_FALSE@,$MACOSX_FALSE,;t t 15030s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t 15031s,@SFIO_INC_FLAGS@,$SFIO_INC_FLAGS,;t t 15032s,@SFIO_LIB_FLAGS@,$SFIO_LIB_FLAGS,;t t 15033s,@SMTPTEST_PROGRAM@,$SMTPTEST_PROGRAM,;t t 15034s,@SASL_UTIL_LIBS_EXTRA@,$SASL_UTIL_LIBS_EXTRA,;t t 15035s,@SASL_UTIL_HEADERS_EXTRA@,$SASL_UTIL_HEADERS_EXTRA,;t t 15036s,@LIBOBJS@,$LIBOBJS,;t t 15037s,@GETSUBOPT@,$GETSUBOPT,;t t 15038s,@SNPRINTFOBJS@,$SNPRINTFOBJS,;t t 15039s,@LTSNPRINTFOBJS@,$LTSNPRINTFOBJS,;t t 15040s,@GETADDRINFOOBJS@,$GETADDRINFOOBJS,;t t 15041s,@LTGETADDRINFOOBJS@,$LTGETADDRINFOOBJS,;t t 15042s,@GETNAMEINFOOBJS@,$GETNAMEINFOOBJS,;t t 15043s,@LTGETNAMEINFOOBJS@,$LTGETNAMEINFOOBJS,;t t 15044s,@LTLIBOBJS@,$LTLIBOBJS,;t t 15045s,@DIRS@,$DIRS,;t t 15046s,@subdirs@,$subdirs,;t t 15047CEOF 15048 15049_ACEOF 15050 15051 cat >>$CONFIG_STATUS <<\_ACEOF 15052 # Split the substitutions into bite-sized pieces for seds with 15053 # small command number limits, like on Digital OSF/1 and HP-UX. 15054 ac_max_sed_lines=48 15055 ac_sed_frag=1 # Number of current file. 15056 ac_beg=1 # First line for current file. 15057 ac_end=$ac_max_sed_lines # Line after last line for current file. 15058 ac_more_lines=: 15059 ac_sed_cmds= 15060 while $ac_more_lines; do 15061 if test $ac_beg -gt 1; then 15062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15063 else 15064 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15065 fi 15066 if test ! -s $tmp/subs.frag; then 15067 ac_more_lines=false 15068 else 15069 # The purpose of the label and of the branching condition is to 15070 # speed up the sed processing (if there are no `@' at all, there 15071 # is no need to browse any of the substitutions). 15072 # These are the two extra sed commands mentioned above. 15073 (echo ':t 15074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 15075 if test -z "$ac_sed_cmds"; then 15076 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 15077 else 15078 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 15079 fi 15080 ac_sed_frag=`expr $ac_sed_frag + 1` 15081 ac_beg=$ac_end 15082 ac_end=`expr $ac_end + $ac_max_sed_lines` 15083 fi 15084 done 15085 if test -z "$ac_sed_cmds"; then 15086 ac_sed_cmds=cat 15087 fi 15088fi # test -n "$CONFIG_FILES" 15089 15090_ACEOF 15091cat >>$CONFIG_STATUS <<\_ACEOF 15092for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 15093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15094 case $ac_file in 15095 - | *:- | *:-:* ) # input from stdin 15096 cat >$tmp/stdin 15097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15101 * ) ac_file_in=$ac_file.in ;; 15102 esac 15103 15104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 15105 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15107 X"$ac_file" : 'X\(//\)[^/]' \| \ 15108 X"$ac_file" : 'X\(//\)$' \| \ 15109 X"$ac_file" : 'X\(/\)' \| \ 15110 . : '\(.\)' 2>/dev/null || 15111echo X"$ac_file" | 15112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15114 /^X\(\/\/\)$/{ s//\1/; q; } 15115 /^X\(\/\).*/{ s//\1/; q; } 15116 s/.*/./; q'` 15117 { if $as_mkdir_p; then 15118 mkdir -p "$ac_dir" 15119 else 15120 as_dir="$ac_dir" 15121 as_dirs= 15122 while test ! -d "$as_dir"; do 15123 as_dirs="$as_dir $as_dirs" 15124 as_dir=`(dirname "$as_dir") 2>/dev/null || 15125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15126 X"$as_dir" : 'X\(//\)[^/]' \| \ 15127 X"$as_dir" : 'X\(//\)$' \| \ 15128 X"$as_dir" : 'X\(/\)' \| \ 15129 . : '\(.\)' 2>/dev/null || 15130echo X"$as_dir" | 15131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15132 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15133 /^X\(\/\/\)$/{ s//\1/; q; } 15134 /^X\(\/\).*/{ s//\1/; q; } 15135 s/.*/./; q'` 15136 done 15137 test ! -n "$as_dirs" || mkdir $as_dirs 15138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15140 { (exit 1); exit 1; }; }; } 15141 15142 ac_builddir=. 15143 15144if test "$ac_dir" != .; then 15145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15146 # A "../" for each directory in $ac_dir_suffix. 15147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15148else 15149 ac_dir_suffix= ac_top_builddir= 15150fi 15151 15152case $srcdir in 15153 .) # No --srcdir option. We are building in place. 15154 ac_srcdir=. 15155 if test -z "$ac_top_builddir"; then 15156 ac_top_srcdir=. 15157 else 15158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15159 fi ;; 15160 [\\/]* | ?:[\\/]* ) # Absolute path. 15161 ac_srcdir=$srcdir$ac_dir_suffix; 15162 ac_top_srcdir=$srcdir ;; 15163 *) # Relative path. 15164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15165 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15166esac 15167# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 15168# absolute. 15169ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 15170ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 15171ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 15172ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 15173 15174 15175 case $INSTALL in 15176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15177 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 15178 esac 15179 15180 if test x"$ac_file" != x-; then 15181 { echo "$as_me:$LINENO: creating $ac_file" >&5 15182echo "$as_me: creating $ac_file" >&6;} 15183 rm -f "$ac_file" 15184 fi 15185 # Let's still pretend it is `configure' which instantiates (i.e., don't 15186 # use $as_me), people would be surprised to read: 15187 # /* config.h. Generated by config.status. */ 15188 if test x"$ac_file" = x-; then 15189 configure_input= 15190 else 15191 configure_input="$ac_file. " 15192 fi 15193 configure_input=$configure_input"Generated from `echo $ac_file_in | 15194 sed 's,.*/,,'` by configure." 15195 15196 # First look for the input files in the build tree, otherwise in the 15197 # src tree. 15198 ac_file_inputs=`IFS=: 15199 for f in $ac_file_in; do 15200 case $f in 15201 -) echo $tmp/stdin ;; 15202 [\\/$]*) 15203 # Absolute (can't be DOS-style, as IFS=:) 15204 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15205echo "$as_me: error: cannot find input file: $f" >&2;} 15206 { (exit 1); exit 1; }; } 15207 echo $f;; 15208 *) # Relative 15209 if test -f "$f"; then 15210 # Build tree 15211 echo $f 15212 elif test -f "$srcdir/$f"; then 15213 # Source tree 15214 echo $srcdir/$f 15215 else 15216 # /dev/null tree 15217 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15218echo "$as_me: error: cannot find input file: $f" >&2;} 15219 { (exit 1); exit 1; }; } 15220 fi;; 15221 esac 15222 done` || { (exit 1); exit 1; } 15223_ACEOF 15224cat >>$CONFIG_STATUS <<_ACEOF 15225 sed "$ac_vpsub 15226$extrasub 15227_ACEOF 15228cat >>$CONFIG_STATUS <<\_ACEOF 15229:t 15230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15231s,@configure_input@,$configure_input,;t t 15232s,@srcdir@,$ac_srcdir,;t t 15233s,@abs_srcdir@,$ac_abs_srcdir,;t t 15234s,@top_srcdir@,$ac_top_srcdir,;t t 15235s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 15236s,@builddir@,$ac_builddir,;t t 15237s,@abs_builddir@,$ac_abs_builddir,;t t 15238s,@top_builddir@,$ac_top_builddir,;t t 15239s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 15240s,@INSTALL@,$ac_INSTALL,;t t 15241" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 15242 rm -f $tmp/stdin 15243 if test x"$ac_file" != x-; then 15244 mv $tmp/out $ac_file 15245 else 15246 cat $tmp/out 15247 rm -f $tmp/out 15248 fi 15249 15250done 15251_ACEOF 15252cat >>$CONFIG_STATUS <<\_ACEOF 15253 15254# 15255# CONFIG_HEADER section. 15256# 15257 15258# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 15259# NAME is the cpp macro being defined and VALUE is the value it is being given. 15260# 15261# ac_d sets the value in "#define NAME VALUE" lines. 15262ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 15263ac_dB='[ ].*$,\1#\2' 15264ac_dC=' ' 15265ac_dD=',;t' 15266# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 15267ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 15268ac_uB='$,\1#\2define\3' 15269ac_uC=' ' 15270ac_uD=',;t' 15271 15272for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 15273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15274 case $ac_file in 15275 - | *:- | *:-:* ) # input from stdin 15276 cat >$tmp/stdin 15277 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15279 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15281 * ) ac_file_in=$ac_file.in ;; 15282 esac 15283 15284 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 15285echo "$as_me: creating $ac_file" >&6;} 15286 15287 # First look for the input files in the build tree, otherwise in the 15288 # src tree. 15289 ac_file_inputs=`IFS=: 15290 for f in $ac_file_in; do 15291 case $f in 15292 -) echo $tmp/stdin ;; 15293 [\\/$]*) 15294 # Absolute (can't be DOS-style, as IFS=:) 15295 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15296echo "$as_me: error: cannot find input file: $f" >&2;} 15297 { (exit 1); exit 1; }; } 15298 echo $f;; 15299 *) # Relative 15300 if test -f "$f"; then 15301 # Build tree 15302 echo $f 15303 elif test -f "$srcdir/$f"; then 15304 # Source tree 15305 echo $srcdir/$f 15306 else 15307 # /dev/null tree 15308 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15309echo "$as_me: error: cannot find input file: $f" >&2;} 15310 { (exit 1); exit 1; }; } 15311 fi;; 15312 esac 15313 done` || { (exit 1); exit 1; } 15314 # Remove the trailing spaces. 15315 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 15316 15317_ACEOF 15318 15319# Transform confdefs.h into two sed scripts, `conftest.defines' and 15320# `conftest.undefs', that substitutes the proper values into 15321# config.h.in to produce config.h. The first handles `#define' 15322# templates, and the second `#undef' templates. 15323# And first: Protect against being on the right side of a sed subst in 15324# config.status. Protect against being in an unquoted here document 15325# in config.status. 15326rm -f conftest.defines conftest.undefs 15327# Using a here document instead of a string reduces the quoting nightmare. 15328# Putting comments in sed scripts is not portable. 15329# 15330# `end' is used to avoid that the second main sed command (meant for 15331# 0-ary CPP macros) applies to n-ary macro definitions. 15332# See the Autoconf documentation for `clear'. 15333cat >confdef2sed.sed <<\_ACEOF 15334s/[\\&,]/\\&/g 15335s,[\\$`],\\&,g 15336t clear 15337: clear 15338s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 15339t end 15340s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 15341: end 15342_ACEOF 15343# If some macros were called several times there might be several times 15344# the same #defines, which is useless. Nevertheless, we may not want to 15345# sort them, since we want the *last* AC-DEFINE to be honored. 15346uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 15347sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 15348rm -f confdef2sed.sed 15349 15350# This sed command replaces #undef with comments. This is necessary, for 15351# example, in the case of _POSIX_SOURCE, which is predefined and required 15352# on some systems where configure will not decide to define it. 15353cat >>conftest.undefs <<\_ACEOF 15354s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 15355_ACEOF 15356 15357# Break up conftest.defines because some shells have a limit on the size 15358# of here documents, and old seds have small limits too (100 cmds). 15359echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 15360echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 15361echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 15362echo ' :' >>$CONFIG_STATUS 15363rm -f conftest.tail 15364while grep . conftest.defines >/dev/null 15365do 15366 # Write a limited-size here document to $tmp/defines.sed. 15367 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 15368 # Speed up: don't consider the non `#define' lines. 15369 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 15370 # Work around the forget-to-reset-the-flag bug. 15371 echo 't clr' >>$CONFIG_STATUS 15372 echo ': clr' >>$CONFIG_STATUS 15373 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 15374 echo 'CEOF 15375 sed -f $tmp/defines.sed $tmp/in >$tmp/out 15376 rm -f $tmp/in 15377 mv $tmp/out $tmp/in 15378' >>$CONFIG_STATUS 15379 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 15380 rm -f conftest.defines 15381 mv conftest.tail conftest.defines 15382done 15383rm -f conftest.defines 15384echo ' fi # grep' >>$CONFIG_STATUS 15385echo >>$CONFIG_STATUS 15386 15387# Break up conftest.undefs because some shells have a limit on the size 15388# of here documents, and old seds have small limits too (100 cmds). 15389echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 15390rm -f conftest.tail 15391while grep . conftest.undefs >/dev/null 15392do 15393 # Write a limited-size here document to $tmp/undefs.sed. 15394 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 15395 # Speed up: don't consider the non `#undef' 15396 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 15397 # Work around the forget-to-reset-the-flag bug. 15398 echo 't clr' >>$CONFIG_STATUS 15399 echo ': clr' >>$CONFIG_STATUS 15400 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 15401 echo 'CEOF 15402 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 15403 rm -f $tmp/in 15404 mv $tmp/out $tmp/in 15405' >>$CONFIG_STATUS 15406 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 15407 rm -f conftest.undefs 15408 mv conftest.tail conftest.undefs 15409done 15410rm -f conftest.undefs 15411 15412cat >>$CONFIG_STATUS <<\_ACEOF 15413 # Let's still pretend it is `configure' which instantiates (i.e., don't 15414 # use $as_me), people would be surprised to read: 15415 # /* config.h. Generated by config.status. */ 15416 if test x"$ac_file" = x-; then 15417 echo "/* Generated by configure. */" >$tmp/config.h 15418 else 15419 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 15420 fi 15421 cat $tmp/in >>$tmp/config.h 15422 rm -f $tmp/in 15423 if test x"$ac_file" != x-; then 15424 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 15425 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15426echo "$as_me: $ac_file is unchanged" >&6;} 15427 else 15428 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15430 X"$ac_file" : 'X\(//\)[^/]' \| \ 15431 X"$ac_file" : 'X\(//\)$' \| \ 15432 X"$ac_file" : 'X\(/\)' \| \ 15433 . : '\(.\)' 2>/dev/null || 15434echo X"$ac_file" | 15435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15436 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15437 /^X\(\/\/\)$/{ s//\1/; q; } 15438 /^X\(\/\).*/{ s//\1/; q; } 15439 s/.*/./; q'` 15440 { if $as_mkdir_p; then 15441 mkdir -p "$ac_dir" 15442 else 15443 as_dir="$ac_dir" 15444 as_dirs= 15445 while test ! -d "$as_dir"; do 15446 as_dirs="$as_dir $as_dirs" 15447 as_dir=`(dirname "$as_dir") 2>/dev/null || 15448$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15449 X"$as_dir" : 'X\(//\)[^/]' \| \ 15450 X"$as_dir" : 'X\(//\)$' \| \ 15451 X"$as_dir" : 'X\(/\)' \| \ 15452 . : '\(.\)' 2>/dev/null || 15453echo X"$as_dir" | 15454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15455 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15456 /^X\(\/\/\)$/{ s//\1/; q; } 15457 /^X\(\/\).*/{ s//\1/; q; } 15458 s/.*/./; q'` 15459 done 15460 test ! -n "$as_dirs" || mkdir $as_dirs 15461 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15462echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15463 { (exit 1); exit 1; }; }; } 15464 15465 rm -f $ac_file 15466 mv $tmp/config.h $ac_file 15467 fi 15468 else 15469 cat $tmp/config.h 15470 rm -f $tmp/config.h 15471 fi 15472_am_stamp_count=`expr ${_am_stamp_count-0} + 1` 15473echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 15474$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15475 X$ac_file : 'X\(//\)[^/]' \| \ 15476 X$ac_file : 'X\(//\)$' \| \ 15477 X$ac_file : 'X\(/\)' \| \ 15478 . : '\(.\)' 2>/dev/null || 15479echo X$ac_file | 15480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15481 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15482 /^X\(\/\/\)$/{ s//\1/; q; } 15483 /^X\(\/\).*/{ s//\1/; q; } 15484 s/.*/./; q'`/stamp-h$_am_stamp_count 15485done 15486_ACEOF 15487cat >>$CONFIG_STATUS <<\_ACEOF 15488 15489# 15490# CONFIG_COMMANDS section. 15491# 15492for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15495 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 15496$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15497 X"$ac_dest" : 'X\(//\)[^/]' \| \ 15498 X"$ac_dest" : 'X\(//\)$' \| \ 15499 X"$ac_dest" : 'X\(/\)' \| \ 15500 . : '\(.\)' 2>/dev/null || 15501echo X"$ac_dest" | 15502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15503 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15504 /^X\(\/\/\)$/{ s//\1/; q; } 15505 /^X\(\/\).*/{ s//\1/; q; } 15506 s/.*/./; q'` 15507 ac_builddir=. 15508 15509if test "$ac_dir" != .; then 15510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15511 # A "../" for each directory in $ac_dir_suffix. 15512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15513else 15514 ac_dir_suffix= ac_top_builddir= 15515fi 15516 15517case $srcdir in 15518 .) # No --srcdir option. We are building in place. 15519 ac_srcdir=. 15520 if test -z "$ac_top_builddir"; then 15521 ac_top_srcdir=. 15522 else 15523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15524 fi ;; 15525 [\\/]* | ?:[\\/]* ) # Absolute path. 15526 ac_srcdir=$srcdir$ac_dir_suffix; 15527 ac_top_srcdir=$srcdir ;; 15528 *) # Relative path. 15529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15530 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15531esac 15532# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 15533# absolute. 15534ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 15535ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 15536ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 15537ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 15538 15539 15540 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 15541echo "$as_me: executing $ac_dest commands" >&6;} 15542 case $ac_dest in 15543 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15544 # Strip MF so we end up with the name of the file. 15545 mf=`echo "$mf" | sed -e 's/:.*$//'` 15546 # Check whether this is an Automake generated Makefile or not. 15547 # We used to match only the files named `Makefile.in', but 15548 # some people rename them; so instead we look at the file content. 15549 # Grep'ing the first line is not enough: some people post-process 15550 # each Makefile.in and add a new line on top of each file to say so. 15551 # So let's grep whole file. 15552 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 15553 dirpart=`(dirname "$mf") 2>/dev/null || 15554$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15555 X"$mf" : 'X\(//\)[^/]' \| \ 15556 X"$mf" : 'X\(//\)$' \| \ 15557 X"$mf" : 'X\(/\)' \| \ 15558 . : '\(.\)' 2>/dev/null || 15559echo X"$mf" | 15560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15561 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15562 /^X\(\/\/\)$/{ s//\1/; q; } 15563 /^X\(\/\).*/{ s//\1/; q; } 15564 s/.*/./; q'` 15565 else 15566 continue 15567 fi 15568 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 15569 # Extract the definition of DEP_FILES from the Makefile without 15570 # running `make'. 15571 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 15572 test -z "$DEPDIR" && continue 15573 # When using ansi2knr, U may be empty or an underscore; expand it 15574 U=`sed -n -e '/^U = / s///p' < "$mf"` 15575 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 15576 # We invoke sed twice because it is the simplest approach to 15577 # changing $(DEPDIR) to its actual value in the expansion. 15578 for file in `sed -n -e ' 15579 /^DEP_FILES = .*\\\\$/ { 15580 s/^DEP_FILES = // 15581 :loop 15582 s/\\\\$// 15583 p 15584 n 15585 /\\\\$/ b loop 15586 p 15587 } 15588 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 15589 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15590 # Make sure the directory exists. 15591 test -f "$dirpart/$file" && continue 15592 fdir=`(dirname "$file") 2>/dev/null || 15593$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15594 X"$file" : 'X\(//\)[^/]' \| \ 15595 X"$file" : 'X\(//\)$' \| \ 15596 X"$file" : 'X\(/\)' \| \ 15597 . : '\(.\)' 2>/dev/null || 15598echo X"$file" | 15599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15600 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15601 /^X\(\/\/\)$/{ s//\1/; q; } 15602 /^X\(\/\).*/{ s//\1/; q; } 15603 s/.*/./; q'` 15604 { if $as_mkdir_p; then 15605 mkdir -p $dirpart/$fdir 15606 else 15607 as_dir=$dirpart/$fdir 15608 as_dirs= 15609 while test ! -d "$as_dir"; do 15610 as_dirs="$as_dir $as_dirs" 15611 as_dir=`(dirname "$as_dir") 2>/dev/null || 15612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15613 X"$as_dir" : 'X\(//\)[^/]' \| \ 15614 X"$as_dir" : 'X\(//\)$' \| \ 15615 X"$as_dir" : 'X\(/\)' \| \ 15616 . : '\(.\)' 2>/dev/null || 15617echo X"$as_dir" | 15618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15619 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15620 /^X\(\/\/\)$/{ s//\1/; q; } 15621 /^X\(\/\).*/{ s//\1/; q; } 15622 s/.*/./; q'` 15623 done 15624 test ! -n "$as_dirs" || mkdir $as_dirs 15625 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 15626echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 15627 { (exit 1); exit 1; }; }; } 15628 15629 # echo "creating $dirpart/$file" 15630 echo '# dummy' > "$dirpart/$file" 15631 done 15632done 15633 ;; 15634 esac 15635done 15636_ACEOF 15637 15638cat >>$CONFIG_STATUS <<\_ACEOF 15639 15640{ (exit 0); exit 0; } 15641_ACEOF 15642chmod +x $CONFIG_STATUS 15643ac_clean_files=$ac_clean_files_save 15644 15645 15646# configure is writing to config.log, and then calls config.status. 15647# config.status does its own redirection, appending to config.log. 15648# Unfortunately, on DOS this fails, as config.log is still kept open 15649# by configure, so config.status won't be able to write to it; its 15650# output is simply discarded. So we exec the FD to /dev/null, 15651# effectively closing config.log, so it can be properly (re)opened and 15652# appended to by config.status. When coming back to configure, we 15653# need to make the FD available again. 15654if test "$no_create" != yes; then 15655 ac_cs_success=: 15656 ac_config_status_args= 15657 test "$silent" = yes && 15658 ac_config_status_args="$ac_config_status_args --quiet" 15659 exec 5>/dev/null 15660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15661 exec 5>>config.log 15662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15663 # would make configure fail if this is the last instruction. 15664 $ac_cs_success || { (exit 1); exit 1; } 15665fi 15666 15667# 15668# CONFIG_SUBDIRS section. 15669# 15670if test "$no_recursion" != yes; then 15671 15672 # Remove --cache-file and --srcdir arguments so they do not pile up. 15673 ac_sub_configure_args= 15674 ac_prev= 15675 for ac_arg in $ac_configure_args; do 15676 if test -n "$ac_prev"; then 15677 ac_prev= 15678 continue 15679 fi 15680 case $ac_arg in 15681 -cache-file | --cache-file | --cache-fil | --cache-fi \ 15682 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 15683 ac_prev=cache_file ;; 15684 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 15685 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 15686 | --c=*) 15687 ;; 15688 --config-cache | -C) 15689 ;; 15690 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 15691 ac_prev=srcdir ;; 15692 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 15693 ;; 15694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 15695 ac_prev=prefix ;; 15696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 15697 ;; 15698 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 15699 esac 15700 done 15701 15702 # Always prepend --prefix to ensure using the same prefix 15703 # in subdir configurations. 15704 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 15705 15706 ac_popdir=`pwd` 15707 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 15708 15709 # Do not complain, so a configure script can configure whichever 15710 # parts of a large source tree are present. 15711 test -d $srcdir/$ac_dir || continue 15712 15713 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 15714echo "$as_me: configuring in $ac_dir" >&6;} 15715 { if $as_mkdir_p; then 15716 mkdir -p "$ac_dir" 15717 else 15718 as_dir="$ac_dir" 15719 as_dirs= 15720 while test ! -d "$as_dir"; do 15721 as_dirs="$as_dir $as_dirs" 15722 as_dir=`(dirname "$as_dir") 2>/dev/null || 15723$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15724 X"$as_dir" : 'X\(//\)[^/]' \| \ 15725 X"$as_dir" : 'X\(//\)$' \| \ 15726 X"$as_dir" : 'X\(/\)' \| \ 15727 . : '\(.\)' 2>/dev/null || 15728echo X"$as_dir" | 15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15730 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15731 /^X\(\/\/\)$/{ s//\1/; q; } 15732 /^X\(\/\).*/{ s//\1/; q; } 15733 s/.*/./; q'` 15734 done 15735 test ! -n "$as_dirs" || mkdir $as_dirs 15736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15737echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15738 { (exit 1); exit 1; }; }; } 15739 15740 ac_builddir=. 15741 15742if test "$ac_dir" != .; then 15743 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15744 # A "../" for each directory in $ac_dir_suffix. 15745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15746else 15747 ac_dir_suffix= ac_top_builddir= 15748fi 15749 15750case $srcdir in 15751 .) # No --srcdir option. We are building in place. 15752 ac_srcdir=. 15753 if test -z "$ac_top_builddir"; then 15754 ac_top_srcdir=. 15755 else 15756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15757 fi ;; 15758 [\\/]* | ?:[\\/]* ) # Absolute path. 15759 ac_srcdir=$srcdir$ac_dir_suffix; 15760 ac_top_srcdir=$srcdir ;; 15761 *) # Relative path. 15762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15763 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15764esac 15765# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 15766# absolute. 15767ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 15768ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 15769ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 15770ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 15771 15772 15773 cd $ac_dir 15774 15775 # Check for guested configure; otherwise get Cygnus style configure. 15776 if test -f $ac_srcdir/configure.gnu; then 15777 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 15778 elif test -f $ac_srcdir/configure; then 15779 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 15780 elif test -f $ac_srcdir/configure.in; then 15781 ac_sub_configure=$ac_configure 15782 else 15783 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 15784echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 15785 ac_sub_configure= 15786 fi 15787 15788 # The recursion is here. 15789 if test -n "$ac_sub_configure"; then 15790 # Make the cache file name correct relative to the subdirectory. 15791 case $cache_file in 15792 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 15793 *) # Relative path. 15794 ac_sub_cache_file=$ac_top_builddir$cache_file ;; 15795 esac 15796 15797 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 15798echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 15799 # The eval makes quoting arguments work. 15800 eval $ac_sub_configure $ac_sub_configure_args \ 15801 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || 15802 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 15803echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 15804 { (exit 1); exit 1; }; } 15805 fi 15806 15807 cd $ac_popdir 15808 done 15809fi 15810 15811 15812echo Configuration Complete. Type \'make\' to build. 15813