1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574exec 7<&0 </dev/null 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594# Identity of this package. 595PACKAGE_NAME= 596PACKAGE_TARNAME= 597PACKAGE_VERSION= 598PACKAGE_STRING= 599PACKAGE_BUGREPORT= 600 601ac_unique_file="mechanisms.h" 602# Factoring default headers for most tests. 603ac_includes_default="\ 604#include <stdio.h> 605#ifdef HAVE_SYS_TYPES_H 606# include <sys/types.h> 607#endif 608#ifdef HAVE_SYS_STAT_H 609# include <sys/stat.h> 610#endif 611#ifdef STDC_HEADERS 612# include <stdlib.h> 613# include <stddef.h> 614#else 615# ifdef HAVE_STDLIB_H 616# include <stdlib.h> 617# endif 618#endif 619#ifdef HAVE_STRING_H 620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 621# include <memory.h> 622# endif 623# include <string.h> 624#endif 625#ifdef HAVE_STRINGS_H 626# include <strings.h> 627#endif 628#ifdef HAVE_INTTYPES_H 629# include <inttypes.h> 630#endif 631#ifdef HAVE_STDINT_H 632# include <stdint.h> 633#endif 634#ifdef HAVE_UNISTD_H 635# include <unistd.h> 636#endif" 637 638ac_subst_vars='am__EXEEXT_FALSE 639am__EXEEXT_TRUE 640LIBOBJS 641LTLIBOBJS 642LDAP_LIBS 643LIB_PAM 644MAIN_COMPAT_OBJ 645SASL_DB_LIB 646SASL_DB_INC 647SASL_DB_BACKEND_STATIC 648SASL_DB_BACKEND 649SASL_DB_MANS 650SASL_DB_UTILS 651LIB_SIA 652GSSAPIBASE_LIBS 653GSSAPI_LIBS 654LIB_CRYPT 655SASL_KRB_LIB 656LIB_DES 657CMU_LIB_SUBDIR 658EGREP 659GREP 660LIB_SOCKET 661LN_S 662CPP 663am__fastdepCC_FALSE 664am__fastdepCC_TRUE 665CCDEPMODE 666AMDEPBACKSLASH 667AMDEP_FALSE 668AMDEP_TRUE 669am__quote 670am__include 671DEPDIR 672OBJEXT 673EXEEXT 674ac_ct_CC 675CPPFLAGS 676LDFLAGS 677CFLAGS 678CC 679am__untar 680am__tar 681AMTAR 682am__leading_dot 683SET_MAKE 684AWK 685mkdir_p 686MKDIR_P 687INSTALL_STRIP_PROGRAM 688STRIP 689install_sh 690MAKEINFO 691AUTOHEADER 692AUTOMAKE 693AUTOCONF 694ACLOCAL 695VERSION 696PACKAGE 697CYGPATH_W 698am__isrc 699INSTALL_DATA 700INSTALL_SCRIPT 701INSTALL_PROGRAM 702SASLAUTHD_FALSE 703SASLAUTHD_TRUE 704host_os 705host_vendor 706host_cpu 707host 708build_os 709build_vendor 710build_cpu 711build 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL' 749ac_subst_files='' 750ac_user_opts=' 751enable_option_checking 752with_saslauthd 753enable_dependency_tracking 754with_lib_subdir 755with_openssl 756with_des 757enable_krb4 758enable_gssapi 759with_gss_impl 760enable_sia 761enable_auth_sasldb 762with_dbpath 763with_dblib 764with_bdb_libdir 765with_bdb_incdir 766with_gdbm 767enable_httpform 768with_pam 769with_ipctype 770with_ldap 771' 772 ac_precious_vars='build_alias 773host_alias 774target_alias 775CC 776CFLAGS 777LDFLAGS 778LIBS 779CPPFLAGS 780CPP' 781 782 783# Initialize some variables set by options. 784ac_init_help= 785ac_init_version=false 786ac_unrecognized_opts= 787ac_unrecognized_sep= 788# The variables have the same names as the options, with 789# dashes changed to underlines. 790cache_file=/dev/null 791exec_prefix=NONE 792no_create= 793no_recursion= 794prefix=NONE 795program_prefix=NONE 796program_suffix=NONE 797program_transform_name=s,x,x, 798silent= 799site= 800srcdir= 801verbose= 802x_includes=NONE 803x_libraries=NONE 804 805# Installation directory options. 806# These are left unexpanded so users can "make install exec_prefix=/foo" 807# and all the variables that are supposed to be based on exec_prefix 808# by default will actually change. 809# Use braces instead of parens because sh, perl, etc. also accept them. 810# (The list follows the same order as the GNU Coding Standards.) 811bindir='${exec_prefix}/bin' 812sbindir='${exec_prefix}/sbin' 813libexecdir='${exec_prefix}/libexec' 814datarootdir='${prefix}/share' 815datadir='${datarootdir}' 816sysconfdir='${prefix}/etc' 817sharedstatedir='${prefix}/com' 818localstatedir='${prefix}/var' 819includedir='${prefix}/include' 820oldincludedir='/usr/include' 821docdir='${datarootdir}/doc/${PACKAGE}' 822infodir='${datarootdir}/info' 823htmldir='${docdir}' 824dvidir='${docdir}' 825pdfdir='${docdir}' 826psdir='${docdir}' 827libdir='${exec_prefix}/lib' 828localedir='${datarootdir}/locale' 829mandir='${datarootdir}/man' 830 831ac_prev= 832ac_dashdash= 833for ac_option 834do 835 # If the previous option needs an argument, assign it. 836 if test -n "$ac_prev"; then 837 eval $ac_prev=\$ac_option 838 ac_prev= 839 continue 840 fi 841 842 case $ac_option in 843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 890 { (exit 1); exit 1; }; } 891 ac_useropt_orig=$ac_useropt 892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 893 case $ac_user_opts in 894 *" 895"enable_$ac_useropt" 896"*) ;; 897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 898 ac_unrecognized_sep=', ';; 899 esac 900 eval enable_$ac_useropt=no ;; 901 902 -docdir | --docdir | --docdi | --doc | --do) 903 ac_prev=docdir ;; 904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 905 docdir=$ac_optarg ;; 906 907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 908 ac_prev=dvidir ;; 909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 910 dvidir=$ac_optarg ;; 911 912 -enable-* | --enable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 917 { (exit 1); exit 1; }; } 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1122 { (exit 1); exit 1; }; } 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1139 { (exit 1); exit 1; }; } 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=no ;; 1150 1151 --x) 1152 # Obsolete; use --with-x. 1153 with_x=yes ;; 1154 1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1156 | --x-incl | --x-inc | --x-in | --x-i) 1157 ac_prev=x_includes ;; 1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1160 x_includes=$ac_optarg ;; 1161 1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1164 ac_prev=x_libraries ;; 1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1167 x_libraries=$ac_optarg ;; 1168 1169 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1170Try \`$0 --help' for more information." >&2 1171 { (exit 1); exit 1; }; } 1172 ;; 1173 1174 *=*) 1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1178 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1179 { (exit 1); exit 1; }; } 1180 eval $ac_envvar=\$ac_optarg 1181 export $ac_envvar ;; 1182 1183 *) 1184 # FIXME: should be removed in autoconf 3.0. 1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1188 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1189 ;; 1190 1191 esac 1192done 1193 1194if test -n "$ac_prev"; then 1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1196 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1197 { (exit 1); exit 1; }; } 1198fi 1199 1200if test -n "$ac_unrecognized_opts"; then 1201 case $enable_option_checking in 1202 no) ;; 1203 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1204 { (exit 1); exit 1; }; } ;; 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1206 esac 1207fi 1208 1209# Check all directory arguments for consistency. 1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1213 libdir localedir mandir 1214do 1215 eval ac_val=\$$ac_var 1216 # Remove trailing slashes. 1217 case $ac_val in 1218 */ ) 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1220 eval $ac_var=\$ac_val;; 1221 esac 1222 # Be sure to have absolute directory names. 1223 case $ac_val in 1224 [\\/$]* | ?:[\\/]* ) continue;; 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1226 esac 1227 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1228 { (exit 1); exit 1; }; } 1229done 1230 1231# There might be people who depend on the old broken behavior: `$host' 1232# used to hold the argument of --host etc. 1233# FIXME: To remove some day. 1234build=$build_alias 1235host=$host_alias 1236target=$target_alias 1237 1238# FIXME: To remove some day. 1239if test "x$host_alias" != x; then 1240 if test "x$build_alias" = x; then 1241 cross_compiling=maybe 1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1243 If a cross compiler is detected then cross compile mode will be used." >&2 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1259 { (exit 1); exit 1; }; } 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1262 { (exit 1); exit 1; }; } 1263 1264 1265# Find the source files, if location was not specified. 1266if test -z "$srcdir"; then 1267 ac_srcdir_defaulted=yes 1268 # Try the directory containing this script, then the parent directory. 1269 ac_confdir=`$as_dirname -- "$as_myself" || 1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 X"$as_myself" : 'X\(//\)$' \| \ 1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274$as_echo X"$as_myself" | 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)[^/].*/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\).*/{ 1288 s//\1/ 1289 q 1290 } 1291 s/.*/./; q'` 1292 srcdir=$ac_confdir 1293 if test ! -r "$srcdir/$ac_unique_file"; then 1294 srcdir=.. 1295 fi 1296else 1297 ac_srcdir_defaulted=no 1298fi 1299if test ! -r "$srcdir/$ac_unique_file"; then 1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1302 { (exit 1); exit 1; }; } 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1307 { (exit 1); exit 1; }; } 1308 pwd)` 1309# When building in place, set srcdir=. 1310if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312fi 1313# Remove unnecessary trailing slashes from srcdir. 1314# Double slashes in file names in object file debugging info 1315# mess up M-x gdb in Emacs. 1316case $srcdir in 1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318esac 1319for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324done 1325 1326# 1327# Report the --help message. 1328# 1329if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333\`configure' configures this package to adapt to many kinds of systems. 1334 1335Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340Defaults for the options are specified in brackets. 1341 1342Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print \`checking...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for \`--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1352 1353Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359By default, \`make install' will install all the files in 1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1361an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1362for instance \`--prefix=\$HOME'. 1363 1364For better control, use the options below. 1365 1366Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --libdir=DIR object code libraries [EPREFIX/lib] 1374 --includedir=DIR C header files [PREFIX/include] 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1378 --infodir=DIR info documentation [DATAROOTDIR/info] 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1380 --mandir=DIR man documentation [DATAROOTDIR/man] 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1382 --htmldir=DIR html documentation [DOCDIR] 1383 --dvidir=DIR dvi documentation [DOCDIR] 1384 --pdfdir=DIR pdf documentation [DOCDIR] 1385 --psdir=DIR ps documentation [DOCDIR] 1386_ACEOF 1387 1388 cat <<\_ACEOF 1389 1390Program names: 1391 --program-prefix=PREFIX prepend PREFIX to installed program names 1392 --program-suffix=SUFFIX append SUFFIX to installed program names 1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1394 1395System types: 1396 --build=BUILD configure for building on BUILD [guessed] 1397 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1398_ACEOF 1399fi 1400 1401if test -n "$ac_init_help"; then 1402 1403 cat <<\_ACEOF 1404 1405Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --disable-dependency-tracking speeds up one-time build 1410 --enable-dependency-tracking do not reject slow dependency extractors 1411 --enable-krb4 enable KERBEROS_V4 authentication [no] 1412 --enable-gssapi=<DIR> enable GSSAPI authentication [yes] 1413 --enable-sia enable SIA authentication no 1414 --enable-auth-sasldb enable experimental SASLdb authentication module no 1415 --enable-httpform enable HTTP form authentication [no] 1416 1417Optional Packages: 1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1420 --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR 1421 --with-lib-subdir=DIR Find libraries in DIR instead of lib 1422 --with-openssl=PATH use OpenSSL from PATH 1423 --with-des=DIR with DES (look in DIR) yes 1424 --with-gss_impl={heimdal|mit|cybersafe|seam|auto} 1425 choose specific GSSAPI implementation [[auto]] 1426 --with-dbpath=PATH set the DB path to use /etc/sasldb2 1427 --with-dblib=DBLIB set the DB library to use berkeley 1428 --with-bdb-libdir=DIR Berkeley DB lib files are in DIR 1429 --with-bdb-incdir=DIR Berkeley DB include files are in DIR 1430 --with-gdbm=PATH use gdbm from PATH 1431 --with-pam=DIR use PAM (rooted in DIR) yes 1432 --with-ipctype={unix,doors} use ipctype unix 1433 --with-ldap=DIR use LDAP (in DIR) no 1434 1435Some influential environment variables: 1436 CC C compiler command 1437 CFLAGS C compiler flags 1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1439 nonstandard directory <lib dir> 1440 LIBS libraries to pass to the linker, e.g. -l<library> 1441 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1442 you have headers in a nonstandard directory <include dir> 1443 CPP C preprocessor 1444 1445Use these variables to override the choices made by `configure' or to help 1446it to find libraries and programs with nonstandard names/locations. 1447 1448_ACEOF 1449ac_status=$? 1450fi 1451 1452if test "$ac_init_help" = "recursive"; then 1453 # If there are subdirs, report their specific --help. 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1455 test -d "$ac_dir" || 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1457 continue 1458 ac_builddir=. 1459 1460case "$ac_dir" in 1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462*) 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1464 # A ".." for each directory in $ac_dir_suffix. 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1466 case $ac_top_builddir_sub in 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1469 esac ;; 1470esac 1471ac_abs_top_builddir=$ac_pwd 1472ac_abs_builddir=$ac_pwd$ac_dir_suffix 1473# for backward compatibility: 1474ac_top_builddir=$ac_top_build_prefix 1475 1476case $srcdir in 1477 .) # We are building in place. 1478 ac_srcdir=. 1479 ac_top_srcdir=$ac_top_builddir_sub 1480 ac_abs_top_srcdir=$ac_pwd ;; 1481 [\\/]* | ?:[\\/]* ) # Absolute name. 1482 ac_srcdir=$srcdir$ac_dir_suffix; 1483 ac_top_srcdir=$srcdir 1484 ac_abs_top_srcdir=$srcdir ;; 1485 *) # Relative name. 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1489esac 1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1491 1492 cd "$ac_dir" || { ac_status=$?; continue; } 1493 # Check for guested configure. 1494 if test -f "$ac_srcdir/configure.gnu"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1497 elif test -f "$ac_srcdir/configure"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure" --help=recursive 1500 else 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1502 fi || ac_status=$? 1503 cd "$ac_pwd" || { ac_status=$?; break; } 1504 done 1505fi 1506 1507test -n "$ac_init_help" && exit $ac_status 1508if $ac_init_version; then 1509 cat <<\_ACEOF 1510configure 1511generated by GNU Autoconf 2.63 1512 1513Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15142002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1515This configure script is free software; the Free Software Foundation 1516gives unlimited permission to copy, distribute and modify it. 1517_ACEOF 1518 exit 1519fi 1520cat >config.log <<_ACEOF 1521This file contains any messages produced by compilers while 1522running configure, to aid debugging if configure makes a mistake. 1523 1524It was created by $as_me, which was 1525generated by GNU Autoconf 2.63. Invocation command line was 1526 1527 $ $0 $@ 1528 1529_ACEOF 1530exec 5>>config.log 1531{ 1532cat <<_ASUNAME 1533## --------- ## 1534## Platform. ## 1535## --------- ## 1536 1537hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1538uname -m = `(uname -m) 2>/dev/null || echo unknown` 1539uname -r = `(uname -r) 2>/dev/null || echo unknown` 1540uname -s = `(uname -s) 2>/dev/null || echo unknown` 1541uname -v = `(uname -v) 2>/dev/null || echo unknown` 1542 1543/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1544/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1545 1546/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1547/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1548/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1549/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1550/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1551/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1552/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1553 1554_ASUNAME 1555 1556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1557for as_dir in $PATH 1558do 1559 IFS=$as_save_IFS 1560 test -z "$as_dir" && as_dir=. 1561 $as_echo "PATH: $as_dir" 1562done 1563IFS=$as_save_IFS 1564 1565} >&5 1566 1567cat >&5 <<_ACEOF 1568 1569 1570## ----------- ## 1571## Core tests. ## 1572## ----------- ## 1573 1574_ACEOF 1575 1576 1577# Keep a trace of the command line. 1578# Strip out --no-create and --no-recursion so they do not pile up. 1579# Strip out --silent because we don't want to record it for future runs. 1580# Also quote any args containing shell meta-characters. 1581# Make two passes to allow for proper duplicate-argument suppression. 1582ac_configure_args= 1583ac_configure_args0= 1584ac_configure_args1= 1585ac_must_keep_next=false 1586for ac_pass in 1 2 1587do 1588 for ac_arg 1589 do 1590 case $ac_arg in 1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1593 | -silent | --silent | --silen | --sile | --sil) 1594 continue ;; 1595 *\'*) 1596 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1597 esac 1598 case $ac_pass in 1599 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1600 2) 1601 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1602 if test $ac_must_keep_next = true; then 1603 ac_must_keep_next=false # Got value, back to normal. 1604 else 1605 case $ac_arg in 1606 *=* | --config-cache | -C | -disable-* | --disable-* \ 1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1609 | -with-* | --with-* | -without-* | --without-* | --x) 1610 case "$ac_configure_args0 " in 1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1612 esac 1613 ;; 1614 -* ) ac_must_keep_next=true ;; 1615 esac 1616 fi 1617 ac_configure_args="$ac_configure_args '$ac_arg'" 1618 ;; 1619 esac 1620 done 1621done 1622$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1623$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1624 1625# When interrupted or exit'd, cleanup temporary files, and complete 1626# config.log. We remove comments because anyway the quotes in there 1627# would cause problems or look ugly. 1628# WARNING: Use '\'' to represent an apostrophe within the trap. 1629# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1630trap 'exit_status=$? 1631 # Save into config.log some information that might help in debugging. 1632 { 1633 echo 1634 1635 cat <<\_ASBOX 1636## ---------------- ## 1637## Cache variables. ## 1638## ---------------- ## 1639_ASBOX 1640 echo 1641 # The following way of writing the cache mishandles newlines in values, 1642( 1643 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1644 eval ac_val=\$$ac_var 1645 case $ac_val in #( 1646 *${as_nl}*) 1647 case $ac_var in #( 1648 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1649$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1650 esac 1651 case $ac_var in #( 1652 _ | IFS | as_nl) ;; #( 1653 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1654 *) $as_unset $ac_var ;; 1655 esac ;; 1656 esac 1657 done 1658 (set) 2>&1 | 1659 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1660 *${as_nl}ac_space=\ *) 1661 sed -n \ 1662 "s/'\''/'\''\\\\'\'''\''/g; 1663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1664 ;; #( 1665 *) 1666 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1667 ;; 1668 esac | 1669 sort 1670) 1671 echo 1672 1673 cat <<\_ASBOX 1674## ----------------- ## 1675## Output variables. ## 1676## ----------------- ## 1677_ASBOX 1678 echo 1679 for ac_var in $ac_subst_vars 1680 do 1681 eval ac_val=\$$ac_var 1682 case $ac_val in 1683 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1684 esac 1685 $as_echo "$ac_var='\''$ac_val'\''" 1686 done | sort 1687 echo 1688 1689 if test -n "$ac_subst_files"; then 1690 cat <<\_ASBOX 1691## ------------------- ## 1692## File substitutions. ## 1693## ------------------- ## 1694_ASBOX 1695 echo 1696 for ac_var in $ac_subst_files 1697 do 1698 eval ac_val=\$$ac_var 1699 case $ac_val in 1700 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1701 esac 1702 $as_echo "$ac_var='\''$ac_val'\''" 1703 done | sort 1704 echo 1705 fi 1706 1707 if test -s confdefs.h; then 1708 cat <<\_ASBOX 1709## ----------- ## 1710## confdefs.h. ## 1711## ----------- ## 1712_ASBOX 1713 echo 1714 cat confdefs.h 1715 echo 1716 fi 1717 test "$ac_signal" != 0 && 1718 $as_echo "$as_me: caught signal $ac_signal" 1719 $as_echo "$as_me: exit $exit_status" 1720 } >&5 1721 rm -f core *.core core.conftest.* && 1722 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1723 exit $exit_status 1724' 0 1725for ac_signal in 1 2 13 15; do 1726 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1727done 1728ac_signal=0 1729 1730# confdefs.h avoids OS command line length limits that DEFS can exceed. 1731rm -f -r conftest* confdefs.h 1732 1733# Predefined preprocessor variables. 1734 1735cat >>confdefs.h <<_ACEOF 1736#define PACKAGE_NAME "$PACKAGE_NAME" 1737_ACEOF 1738 1739 1740cat >>confdefs.h <<_ACEOF 1741#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1742_ACEOF 1743 1744 1745cat >>confdefs.h <<_ACEOF 1746#define PACKAGE_VERSION "$PACKAGE_VERSION" 1747_ACEOF 1748 1749 1750cat >>confdefs.h <<_ACEOF 1751#define PACKAGE_STRING "$PACKAGE_STRING" 1752_ACEOF 1753 1754 1755cat >>confdefs.h <<_ACEOF 1756#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1757_ACEOF 1758 1759 1760# Let the site file select an alternate cache file if it wants to. 1761# Prefer an explicitly selected file to automatically selected ones. 1762ac_site_file1=NONE 1763ac_site_file2=NONE 1764if test -n "$CONFIG_SITE"; then 1765 ac_site_file1=$CONFIG_SITE 1766elif test "x$prefix" != xNONE; then 1767 ac_site_file1=$prefix/share/config.site 1768 ac_site_file2=$prefix/etc/config.site 1769else 1770 ac_site_file1=$ac_default_prefix/share/config.site 1771 ac_site_file2=$ac_default_prefix/etc/config.site 1772fi 1773for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1774do 1775 test "x$ac_site_file" = xNONE && continue 1776 if test -r "$ac_site_file"; then 1777 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1778$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1779 sed 's/^/| /' "$ac_site_file" >&5 1780 . "$ac_site_file" 1781 fi 1782done 1783 1784if test -r "$cache_file"; then 1785 # Some versions of bash will fail to source /dev/null (special 1786 # files actually), so we avoid doing that. 1787 if test -f "$cache_file"; then 1788 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1789$as_echo "$as_me: loading cache $cache_file" >&6;} 1790 case $cache_file in 1791 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1792 *) . "./$cache_file";; 1793 esac 1794 fi 1795else 1796 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1797$as_echo "$as_me: creating cache $cache_file" >&6;} 1798 >$cache_file 1799fi 1800 1801# Check that the precious variables saved in the cache have kept the same 1802# value. 1803ac_cache_corrupted=false 1804for ac_var in $ac_precious_vars; do 1805 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1806 eval ac_new_set=\$ac_env_${ac_var}_set 1807 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1808 eval ac_new_val=\$ac_env_${ac_var}_value 1809 case $ac_old_set,$ac_new_set in 1810 set,) 1811 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1812$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1813 ac_cache_corrupted=: ;; 1814 ,set) 1815 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1816$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1817 ac_cache_corrupted=: ;; 1818 ,);; 1819 *) 1820 if test "x$ac_old_val" != "x$ac_new_val"; then 1821 # differences in whitespace do not lead to failure. 1822 ac_old_val_w=`echo x $ac_old_val` 1823 ac_new_val_w=`echo x $ac_new_val` 1824 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1825 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1826$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1827 ac_cache_corrupted=: 1828 else 1829 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1830$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1831 eval $ac_var=\$ac_old_val 1832 fi 1833 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1834$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1835 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1836$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1837 fi;; 1838 esac 1839 # Pass precious variables to config.status. 1840 if test "$ac_new_set" = set; then 1841 case $ac_new_val in 1842 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1843 *) ac_arg=$ac_var=$ac_new_val ;; 1844 esac 1845 case " $ac_configure_args " in 1846 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1847 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1848 esac 1849 fi 1850done 1851if $ac_cache_corrupted; then 1852 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1854 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1855$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1856 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1857$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1858 { (exit 1); exit 1; }; } 1859fi 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877ac_ext=c 1878ac_cpp='$CPP $CPPFLAGS' 1879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1881ac_compiler_gnu=$ac_cv_c_compiler_gnu 1882 1883 1884 1885 1886ac_aux_dir= 1887for ac_dir in config "$srcdir"/config; do 1888 if test -f "$ac_dir/install-sh"; then 1889 ac_aux_dir=$ac_dir 1890 ac_install_sh="$ac_aux_dir/install-sh -c" 1891 break 1892 elif test -f "$ac_dir/install.sh"; then 1893 ac_aux_dir=$ac_dir 1894 ac_install_sh="$ac_aux_dir/install.sh -c" 1895 break 1896 elif test -f "$ac_dir/shtool"; then 1897 ac_aux_dir=$ac_dir 1898 ac_install_sh="$ac_aux_dir/shtool install -c" 1899 break 1900 fi 1901done 1902if test -z "$ac_aux_dir"; then 1903 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1904$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1905 { (exit 1); exit 1; }; } 1906fi 1907 1908# These three variables are undocumented and unsupported, 1909# and are intended to be withdrawn in a future Autoconf release. 1910# They can cause serious problems if a builder's source tree is in a directory 1911# whose full name contains unusual characters. 1912ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1913ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1914ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1915 1916 1917# Make sure we can run config.sub. 1918$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1919 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1920$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1921 { (exit 1); exit 1; }; } 1922 1923{ $as_echo "$as_me:$LINENO: checking build system type" >&5 1924$as_echo_n "checking build system type... " >&6; } 1925if test "${ac_cv_build+set}" = set; then 1926 $as_echo_n "(cached) " >&6 1927else 1928 ac_build_alias=$build_alias 1929test "x$ac_build_alias" = x && 1930 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1931test "x$ac_build_alias" = x && 1932 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1933$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1934 { (exit 1); exit 1; }; } 1935ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1936 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1937$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1938 { (exit 1); exit 1; }; } 1939 1940fi 1941{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1942$as_echo "$ac_cv_build" >&6; } 1943case $ac_cv_build in 1944*-*-*) ;; 1945*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1946$as_echo "$as_me: error: invalid value of canonical build" >&2;} 1947 { (exit 1); exit 1; }; };; 1948esac 1949build=$ac_cv_build 1950ac_save_IFS=$IFS; IFS='-' 1951set x $ac_cv_build 1952shift 1953build_cpu=$1 1954build_vendor=$2 1955shift; shift 1956# Remember, the first character of IFS is used to create $*, 1957# except with old shells: 1958build_os=$* 1959IFS=$ac_save_IFS 1960case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1961 1962 1963{ $as_echo "$as_me:$LINENO: checking host system type" >&5 1964$as_echo_n "checking host system type... " >&6; } 1965if test "${ac_cv_host+set}" = set; then 1966 $as_echo_n "(cached) " >&6 1967else 1968 if test "x$host_alias" = x; then 1969 ac_cv_host=$ac_cv_build 1970else 1971 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1972 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1973$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1974 { (exit 1); exit 1; }; } 1975fi 1976 1977fi 1978{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1979$as_echo "$ac_cv_host" >&6; } 1980case $ac_cv_host in 1981*-*-*) ;; 1982*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1983$as_echo "$as_me: error: invalid value of canonical host" >&2;} 1984 { (exit 1); exit 1; }; };; 1985esac 1986host=$ac_cv_host 1987ac_save_IFS=$IFS; IFS='-' 1988set x $ac_cv_host 1989shift 1990host_cpu=$1 1991host_vendor=$2 1992shift; shift 1993# Remember, the first character of IFS is used to create $*, 1994# except with old shells: 1995host_os=$* 1996IFS=$ac_save_IFS 1997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1998 1999 2000 2001 2002# Check whether --with-saslauthd was given. 2003if test "${with_saslauthd+set}" = set; then 2004 withval=$with_saslauthd; with_saslauthd=$withval 2005else 2006 with_saslauthd=yes 2007fi 2008 2009 if test "$with_saslauthd" = yes; then 2010 with_saslauthd="/var/state/saslauthd" 2011 fi 2012 2013cat >>confdefs.h <<\_ACEOF 2014#define HAVE_SASLAUTHD /**/ 2015_ACEOF 2016 2017 2018cat >>confdefs.h <<_ACEOF 2019#define PATH_SASLAUTHD_RUNDIR "$with_saslauthd" 2020_ACEOF 2021 2022 if test "$with_saslauthd" != no; then 2023 SASLAUTHD_TRUE= 2024 SASLAUTHD_FALSE='#' 2025else 2026 SASLAUTHD_TRUE='#' 2027 SASLAUTHD_FALSE= 2028fi 2029 2030 2031am__api_version='1.11' 2032 2033# Find a good install program. We prefer a C program (faster), 2034# so one script is as good as another. But avoid the broken or 2035# incompatible versions: 2036# SysV /etc/install, /usr/sbin/install 2037# SunOS /usr/etc/install 2038# IRIX /sbin/install 2039# AIX /bin/install 2040# AmigaOS /C/install, which installs bootblocks on floppy discs 2041# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2042# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2043# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2044# OS/2's system install, which has a completely different semantic 2045# ./install, which can be erroneously created by make from ./install.sh. 2046# Reject install programs that cannot install multiple files. 2047{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2048$as_echo_n "checking for a BSD-compatible install... " >&6; } 2049if test -z "$INSTALL"; then 2050if test "${ac_cv_path_install+set}" = set; then 2051 $as_echo_n "(cached) " >&6 2052else 2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2054for as_dir in $PATH 2055do 2056 IFS=$as_save_IFS 2057 test -z "$as_dir" && as_dir=. 2058 # Account for people who put trailing slashes in PATH elements. 2059case $as_dir/ in 2060 ./ | .// | /cC/* | \ 2061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2062 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2063 /usr/ucb/* ) ;; 2064 *) 2065 # OSF1 and SCO ODT 3.0 have their own names for install. 2066 # Don't use installbsd from OSF since it installs stuff as root 2067 # by default. 2068 for ac_prog in ginstall scoinst install; do 2069 for ac_exec_ext in '' $ac_executable_extensions; do 2070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2071 if test $ac_prog = install && 2072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2073 # AIX install. It has an incompatible calling convention. 2074 : 2075 elif test $ac_prog = install && 2076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2077 # program-specific install script used by HP pwplus--don't use. 2078 : 2079 else 2080 rm -rf conftest.one conftest.two conftest.dir 2081 echo one > conftest.one 2082 echo two > conftest.two 2083 mkdir conftest.dir 2084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2085 test -s conftest.one && test -s conftest.two && 2086 test -s conftest.dir/conftest.one && 2087 test -s conftest.dir/conftest.two 2088 then 2089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2090 break 3 2091 fi 2092 fi 2093 fi 2094 done 2095 done 2096 ;; 2097esac 2098 2099done 2100IFS=$as_save_IFS 2101 2102rm -rf conftest.one conftest.two conftest.dir 2103 2104fi 2105 if test "${ac_cv_path_install+set}" = set; then 2106 INSTALL=$ac_cv_path_install 2107 else 2108 # As a last resort, use the slow shell script. Don't cache a 2109 # value for INSTALL within a source directory, because that will 2110 # break other packages using the cache if that directory is 2111 # removed, or if the value is a relative name. 2112 INSTALL=$ac_install_sh 2113 fi 2114fi 2115{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2116$as_echo "$INSTALL" >&6; } 2117 2118# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2119# It thinks the first close brace ends the variable substitution. 2120test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2121 2122test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2123 2124test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2125 2126{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2127$as_echo_n "checking whether build environment is sane... " >&6; } 2128# Just in case 2129sleep 1 2130echo timestamp > conftest.file 2131# Reject unsafe characters in $srcdir or the absolute working directory 2132# name. Accept space and tab only in the latter. 2133am_lf=' 2134' 2135case `pwd` in 2136 *[\\\"\#\$\&\'\`$am_lf]*) 2137 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2138$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2139 { (exit 1); exit 1; }; };; 2140esac 2141case $srcdir in 2142 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2143 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2144$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2145 { (exit 1); exit 1; }; };; 2146esac 2147 2148# Do `set' in a subshell so we don't clobber the current shell's 2149# arguments. Must try -L first in case configure is actually a 2150# symlink; some systems play weird games with the mod time of symlinks 2151# (eg FreeBSD returns the mod time of the symlink's containing 2152# directory). 2153if ( 2154 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2155 if test "$*" = "X"; then 2156 # -L didn't work. 2157 set X `ls -t "$srcdir/configure" conftest.file` 2158 fi 2159 rm -f conftest.file 2160 if test "$*" != "X $srcdir/configure conftest.file" \ 2161 && test "$*" != "X conftest.file $srcdir/configure"; then 2162 2163 # If neither matched, then we have a broken ls. This can happen 2164 # if, for instance, CONFIG_SHELL is bash and it inherits a 2165 # broken ls alias from the environment. This has actually 2166 # happened. Such a system could not be considered "sane". 2167 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2168alias in your environment" >&5 2169$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2170alias in your environment" >&2;} 2171 { (exit 1); exit 1; }; } 2172 fi 2173 2174 test "$2" = conftest.file 2175 ) 2176then 2177 # Ok. 2178 : 2179else 2180 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2181Check your system clock" >&5 2182$as_echo "$as_me: error: newly created file is older than distributed files! 2183Check your system clock" >&2;} 2184 { (exit 1); exit 1; }; } 2185fi 2186{ $as_echo "$as_me:$LINENO: result: yes" >&5 2187$as_echo "yes" >&6; } 2188test "$program_prefix" != NONE && 2189 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2190# Use a double $ so make ignores it. 2191test "$program_suffix" != NONE && 2192 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2193# Double any \ or $. 2194# By default was `s,x,x', remove it if useless. 2195ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2196program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2197 2198# expand $ac_aux_dir to an absolute path 2199am_aux_dir=`cd $ac_aux_dir && pwd` 2200 2201if test x"${MISSING+set}" != xset; then 2202 case $am_aux_dir in 2203 *\ * | *\ *) 2204 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2205 *) 2206 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2207 esac 2208fi 2209# Use eval to expand $SHELL 2210if eval "$MISSING --run true"; then 2211 am_missing_run="$MISSING --run " 2212else 2213 am_missing_run= 2214 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2215$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2216fi 2217 2218if test x"${install_sh}" != xset; then 2219 case $am_aux_dir in 2220 *\ * | *\ *) 2221 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2222 *) 2223 install_sh="\${SHELL} $am_aux_dir/install-sh" 2224 esac 2225fi 2226 2227# Installed binaries are usually stripped using `strip' when the user 2228# run `make install-strip'. However `strip' might not be the right 2229# tool to use in cross-compilation environments, therefore Automake 2230# will honor the `STRIP' environment variable to overrule this program. 2231if test "$cross_compiling" != no; then 2232 if test -n "$ac_tool_prefix"; then 2233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2234set dummy ${ac_tool_prefix}strip; ac_word=$2 2235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2236$as_echo_n "checking for $ac_word... " >&6; } 2237if test "${ac_cv_prog_STRIP+set}" = set; then 2238 $as_echo_n "(cached) " >&6 2239else 2240 if test -n "$STRIP"; then 2241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2242else 2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2244for as_dir in $PATH 2245do 2246 IFS=$as_save_IFS 2247 test -z "$as_dir" && as_dir=. 2248 for ac_exec_ext in '' $ac_executable_extensions; do 2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2250 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2252 break 2 2253 fi 2254done 2255done 2256IFS=$as_save_IFS 2257 2258fi 2259fi 2260STRIP=$ac_cv_prog_STRIP 2261if test -n "$STRIP"; then 2262 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2263$as_echo "$STRIP" >&6; } 2264else 2265 { $as_echo "$as_me:$LINENO: result: no" >&5 2266$as_echo "no" >&6; } 2267fi 2268 2269 2270fi 2271if test -z "$ac_cv_prog_STRIP"; then 2272 ac_ct_STRIP=$STRIP 2273 # Extract the first word of "strip", so it can be a program name with args. 2274set dummy strip; ac_word=$2 2275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2276$as_echo_n "checking for $ac_word... " >&6; } 2277if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2278 $as_echo_n "(cached) " >&6 2279else 2280 if test -n "$ac_ct_STRIP"; then 2281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2282else 2283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 for ac_exec_ext in '' $ac_executable_extensions; do 2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2290 ac_cv_prog_ac_ct_STRIP="strip" 2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2292 break 2 2293 fi 2294done 2295done 2296IFS=$as_save_IFS 2297 2298fi 2299fi 2300ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2301if test -n "$ac_ct_STRIP"; then 2302 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2303$as_echo "$ac_ct_STRIP" >&6; } 2304else 2305 { $as_echo "$as_me:$LINENO: result: no" >&5 2306$as_echo "no" >&6; } 2307fi 2308 2309 if test "x$ac_ct_STRIP" = x; then 2310 STRIP=":" 2311 else 2312 case $cross_compiling:$ac_tool_warned in 2313yes:) 2314{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2316ac_tool_warned=yes ;; 2317esac 2318 STRIP=$ac_ct_STRIP 2319 fi 2320else 2321 STRIP="$ac_cv_prog_STRIP" 2322fi 2323 2324fi 2325INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2326 2327{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2328$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2329if test -z "$MKDIR_P"; then 2330 if test "${ac_cv_path_mkdir+set}" = set; then 2331 $as_echo_n "(cached) " >&6 2332else 2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2335do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_prog in mkdir gmkdir; do 2339 for ac_exec_ext in '' $ac_executable_extensions; do 2340 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2341 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2342 'mkdir (GNU coreutils) '* | \ 2343 'mkdir (coreutils) '* | \ 2344 'mkdir (fileutils) '4.1*) 2345 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2346 break 3;; 2347 esac 2348 done 2349 done 2350done 2351IFS=$as_save_IFS 2352 2353fi 2354 2355 if test "${ac_cv_path_mkdir+set}" = set; then 2356 MKDIR_P="$ac_cv_path_mkdir -p" 2357 else 2358 # As a last resort, use the slow shell script. Don't cache a 2359 # value for MKDIR_P within a source directory, because that will 2360 # break other packages using the cache if that directory is 2361 # removed, or if the value is a relative name. 2362 test -d ./--version && rmdir ./--version 2363 MKDIR_P="$ac_install_sh -d" 2364 fi 2365fi 2366{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2367$as_echo "$MKDIR_P" >&6; } 2368 2369mkdir_p="$MKDIR_P" 2370case $mkdir_p in 2371 [\\/$]* | ?:[\\/]*) ;; 2372 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2373esac 2374 2375for ac_prog in gawk mawk nawk awk 2376do 2377 # Extract the first word of "$ac_prog", so it can be a program name with args. 2378set dummy $ac_prog; ac_word=$2 2379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2380$as_echo_n "checking for $ac_word... " >&6; } 2381if test "${ac_cv_prog_AWK+set}" = set; then 2382 $as_echo_n "(cached) " >&6 2383else 2384 if test -n "$AWK"; then 2385 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2386else 2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2388for as_dir in $PATH 2389do 2390 IFS=$as_save_IFS 2391 test -z "$as_dir" && as_dir=. 2392 for ac_exec_ext in '' $ac_executable_extensions; do 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2394 ac_cv_prog_AWK="$ac_prog" 2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2396 break 2 2397 fi 2398done 2399done 2400IFS=$as_save_IFS 2401 2402fi 2403fi 2404AWK=$ac_cv_prog_AWK 2405if test -n "$AWK"; then 2406 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2407$as_echo "$AWK" >&6; } 2408else 2409 { $as_echo "$as_me:$LINENO: result: no" >&5 2410$as_echo "no" >&6; } 2411fi 2412 2413 2414 test -n "$AWK" && break 2415done 2416 2417{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2418$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2419set x ${MAKE-make} 2420ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2421if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2422 $as_echo_n "(cached) " >&6 2423else 2424 cat >conftest.make <<\_ACEOF 2425SHELL = /bin/sh 2426all: 2427 @echo '@@@%%%=$(MAKE)=@@@%%%' 2428_ACEOF 2429# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2430case `${MAKE-make} -f conftest.make 2>/dev/null` in 2431 *@@@%%%=?*=@@@%%%*) 2432 eval ac_cv_prog_make_${ac_make}_set=yes;; 2433 *) 2434 eval ac_cv_prog_make_${ac_make}_set=no;; 2435esac 2436rm -f conftest.make 2437fi 2438if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2439 { $as_echo "$as_me:$LINENO: result: yes" >&5 2440$as_echo "yes" >&6; } 2441 SET_MAKE= 2442else 2443 { $as_echo "$as_me:$LINENO: result: no" >&5 2444$as_echo "no" >&6; } 2445 SET_MAKE="MAKE=${MAKE-make}" 2446fi 2447 2448rm -rf .tst 2>/dev/null 2449mkdir .tst 2>/dev/null 2450if test -d .tst; then 2451 am__leading_dot=. 2452else 2453 am__leading_dot=_ 2454fi 2455rmdir .tst 2>/dev/null 2456 2457if test "`cd $srcdir && pwd`" != "`pwd`"; then 2458 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2459 # is not polluted with repeated "-I." 2460 am__isrc=' -I$(srcdir)' 2461 # test to see if srcdir already configured 2462 if test -f $srcdir/config.status; then 2463 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2464$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2465 { (exit 1); exit 1; }; } 2466 fi 2467fi 2468 2469# test whether we have cygpath 2470if test -z "$CYGPATH_W"; then 2471 if (cygpath --version) >/dev/null 2>/dev/null; then 2472 CYGPATH_W='cygpath -w' 2473 else 2474 CYGPATH_W=echo 2475 fi 2476fi 2477 2478 2479# Define the identity of the package. 2480 PACKAGE=saslauthd 2481 VERSION=2.1.26 2482 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE "$PACKAGE" 2486_ACEOF 2487 2488 2489cat >>confdefs.h <<_ACEOF 2490#define VERSION "$VERSION" 2491_ACEOF 2492 2493# Some tools Automake needs. 2494 2495ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2496 2497 2498AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2499 2500 2501AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2502 2503 2504AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2505 2506 2507MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2508 2509# We need awk for the "check" target. The system "awk" is bad on 2510# some platforms. 2511# Always define AMTAR for backward compatibility. 2512 2513AMTAR=${AMTAR-"${am_missing_run}tar"} 2514 2515am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2516 2517 2518 2519 2520 2521 2522 2523 ACLOCAL="$ACLOCAL -I \$(top_srcdir)/cmulocal" 2524 2525 2526ac_ext=c 2527ac_cpp='$CPP $CPPFLAGS' 2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2530ac_compiler_gnu=$ac_cv_c_compiler_gnu 2531if test -n "$ac_tool_prefix"; then 2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2533set dummy ${ac_tool_prefix}gcc; ac_word=$2 2534{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2535$as_echo_n "checking for $ac_word... " >&6; } 2536if test "${ac_cv_prog_CC+set}" = set; then 2537 $as_echo_n "(cached) " >&6 2538else 2539 if test -n "$CC"; then 2540 ac_cv_prog_CC="$CC" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559CC=$ac_cv_prog_CC 2560if test -n "$CC"; then 2561 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2562$as_echo "$CC" >&6; } 2563else 2564 { $as_echo "$as_me:$LINENO: result: no" >&5 2565$as_echo "no" >&6; } 2566fi 2567 2568 2569fi 2570if test -z "$ac_cv_prog_CC"; then 2571 ac_ct_CC=$CC 2572 # Extract the first word of "gcc", so it can be a program name with args. 2573set dummy gcc; ac_word=$2 2574{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2575$as_echo_n "checking for $ac_word... " >&6; } 2576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2577 $as_echo_n "(cached) " >&6 2578else 2579 if test -n "$ac_ct_CC"; then 2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589 ac_cv_prog_ac_ct_CC="gcc" 2590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594done 2595IFS=$as_save_IFS 2596 2597fi 2598fi 2599ac_ct_CC=$ac_cv_prog_ac_ct_CC 2600if test -n "$ac_ct_CC"; then 2601 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2602$as_echo "$ac_ct_CC" >&6; } 2603else 2604 { $as_echo "$as_me:$LINENO: result: no" >&5 2605$as_echo "no" >&6; } 2606fi 2607 2608 if test "x$ac_ct_CC" = x; then 2609 CC="" 2610 else 2611 case $cross_compiling:$ac_tool_warned in 2612yes:) 2613{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2615ac_tool_warned=yes ;; 2616esac 2617 CC=$ac_ct_CC 2618 fi 2619else 2620 CC="$ac_cv_prog_CC" 2621fi 2622 2623if test -z "$CC"; then 2624 if test -n "$ac_tool_prefix"; then 2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2626set dummy ${ac_tool_prefix}cc; ac_word=$2 2627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2628$as_echo_n "checking for $ac_word... " >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2642 ac_cv_prog_CC="${ac_tool_prefix}cc" 2643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652CC=$ac_cv_prog_CC 2653if test -n "$CC"; then 2654 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2655$as_echo "$CC" >&6; } 2656else 2657 { $as_echo "$as_me:$LINENO: result: no" >&5 2658$as_echo "no" >&6; } 2659fi 2660 2661 2662 fi 2663fi 2664if test -z "$CC"; then 2665 # Extract the first word of "cc", so it can be a program name with args. 2666set dummy cc; ac_word=$2 2667{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if test "${ac_cv_prog_CC+set}" = set; then 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$CC"; then 2673 ac_cv_prog_CC="$CC" # Let the user override the test. 2674else 2675 ac_prog_rejected=no 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 test -z "$as_dir" && as_dir=. 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2684 ac_prog_rejected=yes 2685 continue 2686 fi 2687 ac_cv_prog_CC="cc" 2688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2689 break 2 2690 fi 2691done 2692done 2693IFS=$as_save_IFS 2694 2695if test $ac_prog_rejected = yes; then 2696 # We found a bogon in the path, so make sure we never use it. 2697 set dummy $ac_cv_prog_CC 2698 shift 2699 if test $# != 0; then 2700 # We chose a different compiler from the bogus one. 2701 # However, it has the same basename, so the bogon will be chosen 2702 # first if we set CC to just the basename; use the full file name. 2703 shift 2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2705 fi 2706fi 2707fi 2708fi 2709CC=$ac_cv_prog_CC 2710if test -n "$CC"; then 2711 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2712$as_echo "$CC" >&6; } 2713else 2714 { $as_echo "$as_me:$LINENO: result: no" >&5 2715$as_echo "no" >&6; } 2716fi 2717 2718 2719fi 2720if test -z "$CC"; then 2721 if test -n "$ac_tool_prefix"; then 2722 for ac_prog in cl.exe 2723 do 2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2725set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if test "${ac_cv_prog_CC+set}" = set; then 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$CC"; then 2732 ac_cv_prog_CC="$CC" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751CC=$ac_cv_prog_CC 2752if test -n "$CC"; then 2753 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2754$as_echo "$CC" >&6; } 2755else 2756 { $as_echo "$as_me:$LINENO: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761 test -n "$CC" && break 2762 done 2763fi 2764if test -z "$CC"; then 2765 ac_ct_CC=$CC 2766 for ac_prog in cl.exe 2767do 2768 # Extract the first word of "$ac_prog", so it can be a program name with args. 2769set dummy $ac_prog; ac_word=$2 2770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2771$as_echo_n "checking for $ac_word... " >&6; } 2772if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test -n "$ac_ct_CC"; then 2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2777else 2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2779for as_dir in $PATH 2780do 2781 IFS=$as_save_IFS 2782 test -z "$as_dir" && as_dir=. 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2785 ac_cv_prog_ac_ct_CC="$ac_prog" 2786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2787 break 2 2788 fi 2789done 2790done 2791IFS=$as_save_IFS 2792 2793fi 2794fi 2795ac_ct_CC=$ac_cv_prog_ac_ct_CC 2796if test -n "$ac_ct_CC"; then 2797 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2798$as_echo "$ac_ct_CC" >&6; } 2799else 2800 { $as_echo "$as_me:$LINENO: result: no" >&5 2801$as_echo "no" >&6; } 2802fi 2803 2804 2805 test -n "$ac_ct_CC" && break 2806done 2807 2808 if test "x$ac_ct_CC" = x; then 2809 CC="" 2810 else 2811 case $cross_compiling:$ac_tool_warned in 2812yes:) 2813{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2815ac_tool_warned=yes ;; 2816esac 2817 CC=$ac_ct_CC 2818 fi 2819fi 2820 2821fi 2822 2823 2824test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2826{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2827See \`config.log' for more details." >&5 2828$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2829See \`config.log' for more details." >&2;} 2830 { (exit 1); exit 1; }; }; } 2831 2832# Provide some information about the compiler. 2833$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2834set X $ac_compile 2835ac_compiler=$2 2836{ (ac_try="$ac_compiler --version >&5" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2842$as_echo "$ac_try_echo") >&5 2843 (eval "$ac_compiler --version >&5") 2>&5 2844 ac_status=$? 2845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } 2847{ (ac_try="$ac_compiler -v >&5" 2848case "(($ac_try" in 2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2850 *) ac_try_echo=$ac_try;; 2851esac 2852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2853$as_echo "$ac_try_echo") >&5 2854 (eval "$ac_compiler -v >&5") 2>&5 2855 ac_status=$? 2856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2857 (exit $ac_status); } 2858{ (ac_try="$ac_compiler -V >&5" 2859case "(($ac_try" in 2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2861 *) ac_try_echo=$ac_try;; 2862esac 2863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2864$as_echo "$ac_try_echo") >&5 2865 (eval "$ac_compiler -V >&5") 2>&5 2866 ac_status=$? 2867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2868 (exit $ac_status); } 2869 2870cat >conftest.$ac_ext <<_ACEOF 2871/* confdefs.h. */ 2872_ACEOF 2873cat confdefs.h >>conftest.$ac_ext 2874cat >>conftest.$ac_ext <<_ACEOF 2875/* end confdefs.h. */ 2876 2877int 2878main () 2879{ 2880 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885ac_clean_files_save=$ac_clean_files 2886ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2887# Try to create an executable without -o first, disregard a.out. 2888# It will help us diagnose broken compilers, and finding out an intuition 2889# of exeext. 2890{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2891$as_echo_n "checking for C compiler default output file name... " >&6; } 2892ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2893 2894# The possible output files: 2895ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2896 2897ac_rmfiles= 2898for ac_file in $ac_files 2899do 2900 case $ac_file in 2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2902 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2903 esac 2904done 2905rm -f $ac_rmfiles 2906 2907if { (ac_try="$ac_link_default" 2908case "(($ac_try" in 2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2910 *) ac_try_echo=$ac_try;; 2911esac 2912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2913$as_echo "$ac_try_echo") >&5 2914 (eval "$ac_link_default") 2>&5 2915 ac_status=$? 2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); }; then 2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2919# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2920# in a Makefile. We should not override ac_cv_exeext if it was cached, 2921# so that the user can short-circuit this test for compilers unknown to 2922# Autoconf. 2923for ac_file in $ac_files '' 2924do 2925 test -f "$ac_file" || continue 2926 case $ac_file in 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2928 ;; 2929 [ab].out ) 2930 # We found the default executable, but exeext='' is most 2931 # certainly right. 2932 break;; 2933 *.* ) 2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2935 then :; else 2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2937 fi 2938 # We set ac_cv_exeext here because the later test for it is not 2939 # safe: cross compilers may not add the suffix if given an `-o' 2940 # argument, so we may need to know it at that point already. 2941 # Even if this section looks crufty: it has the advantage of 2942 # actually working. 2943 break;; 2944 * ) 2945 break;; 2946 esac 2947done 2948test "$ac_cv_exeext" = no && ac_cv_exeext= 2949 2950else 2951 ac_file='' 2952fi 2953 2954{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2955$as_echo "$ac_file" >&6; } 2956if test -z "$ac_file"; then 2957 $as_echo "$as_me: failed program was:" >&5 2958sed 's/^/| /' conftest.$ac_ext >&5 2959 2960{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2962{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2963See \`config.log' for more details." >&5 2964$as_echo "$as_me: error: C compiler cannot create executables 2965See \`config.log' for more details." >&2;} 2966 { (exit 77); exit 77; }; }; } 2967fi 2968 2969ac_exeext=$ac_cv_exeext 2970 2971# Check that the compiler produces executables we can run. If not, either 2972# the compiler is broken, or we cross compile. 2973{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2974$as_echo_n "checking whether the C compiler works... " >&6; } 2975# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2976# If not cross compiling, check that we can run a simple program. 2977if test "$cross_compiling" != yes; then 2978 if { ac_try='./$ac_file' 2979 { (case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2984$as_echo "$ac_try_echo") >&5 2985 (eval "$ac_try") 2>&5 2986 ac_status=$? 2987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); }; }; then 2989 cross_compiling=no 2990 else 2991 if test "$cross_compiling" = maybe; then 2992 cross_compiling=yes 2993 else 2994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2996{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2997If you meant to cross compile, use \`--host'. 2998See \`config.log' for more details." >&5 2999$as_echo "$as_me: error: cannot run C compiled programs. 3000If you meant to cross compile, use \`--host'. 3001See \`config.log' for more details." >&2;} 3002 { (exit 1); exit 1; }; }; } 3003 fi 3004 fi 3005fi 3006{ $as_echo "$as_me:$LINENO: result: yes" >&5 3007$as_echo "yes" >&6; } 3008 3009rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3010ac_clean_files=$ac_clean_files_save 3011# Check that the compiler produces executables we can run. If not, either 3012# the compiler is broken, or we cross compile. 3013{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3014$as_echo_n "checking whether we are cross compiling... " >&6; } 3015{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3016$as_echo "$cross_compiling" >&6; } 3017 3018{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3019$as_echo_n "checking for suffix of executables... " >&6; } 3020if { (ac_try="$ac_link" 3021case "(($ac_try" in 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3023 *) ac_try_echo=$ac_try;; 3024esac 3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3026$as_echo "$ac_try_echo") >&5 3027 (eval "$ac_link") 2>&5 3028 ac_status=$? 3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); }; then 3031 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3032# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3033# work properly (i.e., refer to `conftest.exe'), while it won't with 3034# `rm'. 3035for ac_file in conftest.exe conftest conftest.*; do 3036 test -f "$ac_file" || continue 3037 case $ac_file in 3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3040 break;; 3041 * ) break;; 3042 esac 3043done 3044else 3045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3047{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3048See \`config.log' for more details." >&5 3049$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3050See \`config.log' for more details." >&2;} 3051 { (exit 1); exit 1; }; }; } 3052fi 3053 3054rm -f conftest$ac_cv_exeext 3055{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3056$as_echo "$ac_cv_exeext" >&6; } 3057 3058rm -f conftest.$ac_ext 3059EXEEXT=$ac_cv_exeext 3060ac_exeext=$EXEEXT 3061{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3062$as_echo_n "checking for suffix of object files... " >&6; } 3063if test "${ac_cv_objext+set}" = set; then 3064 $as_echo_n "(cached) " >&6 3065else 3066 cat >conftest.$ac_ext <<_ACEOF 3067/* confdefs.h. */ 3068_ACEOF 3069cat confdefs.h >>conftest.$ac_ext 3070cat >>conftest.$ac_ext <<_ACEOF 3071/* end confdefs.h. */ 3072 3073int 3074main () 3075{ 3076 3077 ; 3078 return 0; 3079} 3080_ACEOF 3081rm -f conftest.o conftest.obj 3082if { (ac_try="$ac_compile" 3083case "(($ac_try" in 3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3085 *) ac_try_echo=$ac_try;; 3086esac 3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3088$as_echo "$ac_try_echo") >&5 3089 (eval "$ac_compile") 2>&5 3090 ac_status=$? 3091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); }; then 3093 for ac_file in conftest.o conftest.obj conftest.*; do 3094 test -f "$ac_file" || continue; 3095 case $ac_file in 3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3098 break;; 3099 esac 3100done 3101else 3102 $as_echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3107{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3108See \`config.log' for more details." >&5 3109$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3110See \`config.log' for more details." >&2;} 3111 { (exit 1); exit 1; }; }; } 3112fi 3113 3114rm -f conftest.$ac_cv_objext conftest.$ac_ext 3115fi 3116{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3117$as_echo "$ac_cv_objext" >&6; } 3118OBJEXT=$ac_cv_objext 3119ac_objext=$OBJEXT 3120{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3122if test "${ac_cv_c_compiler_gnu+set}" = set; then 3123 $as_echo_n "(cached) " >&6 3124else 3125 cat >conftest.$ac_ext <<_ACEOF 3126/* confdefs.h. */ 3127_ACEOF 3128cat confdefs.h >>conftest.$ac_ext 3129cat >>conftest.$ac_ext <<_ACEOF 3130/* end confdefs.h. */ 3131 3132int 3133main () 3134{ 3135#ifndef __GNUC__ 3136 choke me 3137#endif 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143rm -f conftest.$ac_objext 3144if { (ac_try="$ac_compile" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3150$as_echo "$ac_try_echo") >&5 3151 (eval "$ac_compile") 2>conftest.er1 3152 ac_status=$? 3153 grep -v '^ *+' conftest.er1 >conftest.err 3154 rm -f conftest.er1 3155 cat conftest.err >&5 3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } && { 3158 test -z "$ac_c_werror_flag" || 3159 test ! -s conftest.err 3160 } && test -s conftest.$ac_objext; then 3161 ac_compiler_gnu=yes 3162else 3163 $as_echo "$as_me: failed program was:" >&5 3164sed 's/^/| /' conftest.$ac_ext >&5 3165 3166 ac_compiler_gnu=no 3167fi 3168 3169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3170ac_cv_c_compiler_gnu=$ac_compiler_gnu 3171 3172fi 3173{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3174$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3175if test $ac_compiler_gnu = yes; then 3176 GCC=yes 3177else 3178 GCC= 3179fi 3180ac_test_CFLAGS=${CFLAGS+set} 3181ac_save_CFLAGS=$CFLAGS 3182{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3183$as_echo_n "checking whether $CC accepts -g... " >&6; } 3184if test "${ac_cv_prog_cc_g+set}" = set; then 3185 $as_echo_n "(cached) " >&6 3186else 3187 ac_save_c_werror_flag=$ac_c_werror_flag 3188 ac_c_werror_flag=yes 3189 ac_cv_prog_cc_g=no 3190 CFLAGS="-g" 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.$ac_objext 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3213$as_echo "$ac_try_echo") >&5 3214 (eval "$ac_compile") 2>conftest.er1 3215 ac_status=$? 3216 grep -v '^ *+' conftest.er1 >conftest.err 3217 rm -f conftest.er1 3218 cat conftest.err >&5 3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3220 (exit $ac_status); } && { 3221 test -z "$ac_c_werror_flag" || 3222 test ! -s conftest.err 3223 } && test -s conftest.$ac_objext; then 3224 ac_cv_prog_cc_g=yes 3225else 3226 $as_echo "$as_me: failed program was:" >&5 3227sed 's/^/| /' conftest.$ac_ext >&5 3228 3229 CFLAGS="" 3230 cat >conftest.$ac_ext <<_ACEOF 3231/* confdefs.h. */ 3232_ACEOF 3233cat confdefs.h >>conftest.$ac_ext 3234cat >>conftest.$ac_ext <<_ACEOF 3235/* end confdefs.h. */ 3236 3237int 3238main () 3239{ 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245rm -f conftest.$ac_objext 3246if { (ac_try="$ac_compile" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3252$as_echo "$ac_try_echo") >&5 3253 (eval "$ac_compile") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } && { 3260 test -z "$ac_c_werror_flag" || 3261 test ! -s conftest.err 3262 } && test -s conftest.$ac_objext; then 3263 : 3264else 3265 $as_echo "$as_me: failed program was:" >&5 3266sed 's/^/| /' conftest.$ac_ext >&5 3267 3268 ac_c_werror_flag=$ac_save_c_werror_flag 3269 CFLAGS="-g" 3270 cat >conftest.$ac_ext <<_ACEOF 3271/* confdefs.h. */ 3272_ACEOF 3273cat confdefs.h >>conftest.$ac_ext 3274cat >>conftest.$ac_ext <<_ACEOF 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285rm -f conftest.$ac_objext 3286if { (ac_try="$ac_compile" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3292$as_echo "$ac_try_echo") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 ac_cv_prog_cc_g=yes 3304else 3305 $as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 3309fi 3310 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312fi 3313 3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3315fi 3316 3317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3318 ac_c_werror_flag=$ac_save_c_werror_flag 3319fi 3320{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3321$as_echo "$ac_cv_prog_cc_g" >&6; } 3322if test "$ac_test_CFLAGS" = set; then 3323 CFLAGS=$ac_save_CFLAGS 3324elif test $ac_cv_prog_cc_g = yes; then 3325 if test "$GCC" = yes; then 3326 CFLAGS="-g -O2" 3327 else 3328 CFLAGS="-g" 3329 fi 3330else 3331 if test "$GCC" = yes; then 3332 CFLAGS="-O2" 3333 else 3334 CFLAGS= 3335 fi 3336fi 3337{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3338$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3339if test "${ac_cv_prog_cc_c89+set}" = set; then 3340 $as_echo_n "(cached) " >&6 3341else 3342 ac_cv_prog_cc_c89=no 3343ac_save_CC=$CC 3344cat >conftest.$ac_ext <<_ACEOF 3345/* confdefs.h. */ 3346_ACEOF 3347cat confdefs.h >>conftest.$ac_ext 3348cat >>conftest.$ac_ext <<_ACEOF 3349/* end confdefs.h. */ 3350#include <stdarg.h> 3351#include <stdio.h> 3352#include <sys/types.h> 3353#include <sys/stat.h> 3354/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3355struct buf { int x; }; 3356FILE * (*rcsopen) (struct buf *, struct stat *, int); 3357static char *e (p, i) 3358 char **p; 3359 int i; 3360{ 3361 return p[i]; 3362} 3363static char *f (char * (*g) (char **, int), char **p, ...) 3364{ 3365 char *s; 3366 va_list v; 3367 va_start (v,p); 3368 s = g (p, va_arg (v,int)); 3369 va_end (v); 3370 return s; 3371} 3372 3373/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3374 function prototypes and stuff, but not '\xHH' hex character constants. 3375 These don't provoke an error unfortunately, instead are silently treated 3376 as 'x'. The following induces an error, until -std is added to get 3377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3378 array size at least. It's necessary to write '\x00'==0 to get something 3379 that's true only with -std. */ 3380int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3381 3382/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3383 inside strings and character constants. */ 3384#define FOO(x) 'x' 3385int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3386 3387int test (int i, double x); 3388struct s1 {int (*f) (int a);}; 3389struct s2 {int (*f) (double a);}; 3390int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3391int argc; 3392char **argv; 3393int 3394main () 3395{ 3396return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3403do 3404 CC="$ac_save_CC $ac_arg" 3405 rm -f conftest.$ac_objext 3406if { (ac_try="$ac_compile" 3407case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3412$as_echo "$ac_try_echo") >&5 3413 (eval "$ac_compile") 2>conftest.er1 3414 ac_status=$? 3415 grep -v '^ *+' conftest.er1 >conftest.err 3416 rm -f conftest.er1 3417 cat conftest.err >&5 3418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3419 (exit $ac_status); } && { 3420 test -z "$ac_c_werror_flag" || 3421 test ! -s conftest.err 3422 } && test -s conftest.$ac_objext; then 3423 ac_cv_prog_cc_c89=$ac_arg 3424else 3425 $as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428 3429fi 3430 3431rm -f core conftest.err conftest.$ac_objext 3432 test "x$ac_cv_prog_cc_c89" != "xno" && break 3433done 3434rm -f conftest.$ac_ext 3435CC=$ac_save_CC 3436 3437fi 3438# AC_CACHE_VAL 3439case "x$ac_cv_prog_cc_c89" in 3440 x) 3441 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3442$as_echo "none needed" >&6; } ;; 3443 xno) 3444 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3445$as_echo "unsupported" >&6; } ;; 3446 *) 3447 CC="$CC $ac_cv_prog_cc_c89" 3448 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3449$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3450esac 3451 3452 3453ac_ext=c 3454ac_cpp='$CPP $CPPFLAGS' 3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3457ac_compiler_gnu=$ac_cv_c_compiler_gnu 3458DEPDIR="${am__leading_dot}deps" 3459 3460ac_config_commands="$ac_config_commands depfiles" 3461 3462 3463am_make=${MAKE-make} 3464cat > confinc << 'END' 3465am__doit: 3466 @echo this is the am__doit target 3467.PHONY: am__doit 3468END 3469# If we don't find an include directive, just comment out the code. 3470{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3471$as_echo_n "checking for style of include used by $am_make... " >&6; } 3472am__include="#" 3473am__quote= 3474_am_result=none 3475# First try GNU make style include. 3476echo "include confinc" > confmf 3477# Ignore all kinds of additional output from `make'. 3478case `$am_make -s -f confmf 2> /dev/null` in #( 3479*the\ am__doit\ target*) 3480 am__include=include 3481 am__quote= 3482 _am_result=GNU 3483 ;; 3484esac 3485# Now try BSD make style include. 3486if test "$am__include" = "#"; then 3487 echo '.include "confinc"' > confmf 3488 case `$am_make -s -f confmf 2> /dev/null` in #( 3489 *the\ am__doit\ target*) 3490 am__include=.include 3491 am__quote="\"" 3492 _am_result=BSD 3493 ;; 3494 esac 3495fi 3496 3497 3498{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3499$as_echo "$_am_result" >&6; } 3500rm -f confinc confmf 3501 3502# Check whether --enable-dependency-tracking was given. 3503if test "${enable_dependency_tracking+set}" = set; then 3504 enableval=$enable_dependency_tracking; 3505fi 3506 3507if test "x$enable_dependency_tracking" != xno; then 3508 am_depcomp="$ac_aux_dir/depcomp" 3509 AMDEPBACKSLASH='\' 3510fi 3511 if test "x$enable_dependency_tracking" != xno; then 3512 AMDEP_TRUE= 3513 AMDEP_FALSE='#' 3514else 3515 AMDEP_TRUE='#' 3516 AMDEP_FALSE= 3517fi 3518 3519 3520 3521depcc="$CC" am_compiler_list= 3522 3523{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3524$as_echo_n "checking dependency style of $depcc... " >&6; } 3525if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3526 $as_echo_n "(cached) " >&6 3527else 3528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3529 # We make a subdir and do the tests there. Otherwise we can end up 3530 # making bogus files that we don't know about and never remove. For 3531 # instance it was reported that on HP-UX the gcc test will end up 3532 # making a dummy file named `D' -- because `-MD' means `put the output 3533 # in D'. 3534 mkdir conftest.dir 3535 # Copy depcomp to subdir because otherwise we won't find it if we're 3536 # using a relative directory. 3537 cp "$am_depcomp" conftest.dir 3538 cd conftest.dir 3539 # We will build objects and dependencies in a subdirectory because 3540 # it helps to detect inapplicable dependency modes. For instance 3541 # both Tru64's cc and ICC support -MD to output dependencies as a 3542 # side effect of compilation, but ICC will put the dependencies in 3543 # the current directory while Tru64 will put them in the object 3544 # directory. 3545 mkdir sub 3546 3547 am_cv_CC_dependencies_compiler_type=none 3548 if test "$am_compiler_list" = ""; then 3549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3550 fi 3551 am__universal=false 3552 case " $depcc " in #( 3553 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3554 esac 3555 3556 for depmode in $am_compiler_list; do 3557 # Setup a source with many dependencies, because some compilers 3558 # like to wrap large dependency lists on column 80 (with \), and 3559 # we should not choose a depcomp mode which is confused by this. 3560 # 3561 # We need to recreate these files for each test, as the compiler may 3562 # overwrite some of them when testing with obscure command lines. 3563 # This happens at least with the AIX C compiler. 3564 : > sub/conftest.c 3565 for i in 1 2 3 4 5 6; do 3566 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3567 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3568 # Solaris 8's {/usr,}/bin/sh. 3569 touch sub/conftst$i.h 3570 done 3571 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3572 3573 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3574 # mode. It turns out that the SunPro C++ compiler does not properly 3575 # handle `-M -o', and we need to detect this. Also, some Intel 3576 # versions had trouble with output in subdirs 3577 am__obj=sub/conftest.${OBJEXT-o} 3578 am__minus_obj="-o $am__obj" 3579 case $depmode in 3580 gcc) 3581 # This depmode causes a compiler race in universal mode. 3582 test "$am__universal" = false || continue 3583 ;; 3584 nosideeffect) 3585 # after this tag, mechanisms are not by side-effect, so they'll 3586 # only be used when explicitly requested 3587 if test "x$enable_dependency_tracking" = xyes; then 3588 continue 3589 else 3590 break 3591 fi 3592 ;; 3593 msvisualcpp | msvcmsys) 3594 # This compiler won't grok `-c -o', but also, the minuso test has 3595 # not run yet. These depmodes are late enough in the game, and 3596 # so weak that their functioning should not be impacted. 3597 am__obj=conftest.${OBJEXT-o} 3598 am__minus_obj= 3599 ;; 3600 none) break ;; 3601 esac 3602 if depmode=$depmode \ 3603 source=sub/conftest.c object=$am__obj \ 3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3605 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3606 >/dev/null 2>conftest.err && 3607 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3608 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3609 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3610 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3611 # icc doesn't choke on unknown options, it will just issue warnings 3612 # or remarks (even with -Werror). So we grep stderr for any message 3613 # that says an option was ignored or not supported. 3614 # When given -MP, icc 7.0 and 7.1 complain thusly: 3615 # icc: Command line warning: ignoring option '-M'; no argument required 3616 # The diagnosis changed in icc 8.0: 3617 # icc: Command line remark: option '-MP' not supported 3618 if (grep 'ignoring option' conftest.err || 3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3620 am_cv_CC_dependencies_compiler_type=$depmode 3621 break 3622 fi 3623 fi 3624 done 3625 3626 cd .. 3627 rm -rf conftest.dir 3628else 3629 am_cv_CC_dependencies_compiler_type=none 3630fi 3631 3632fi 3633{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3634$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3635CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3636 3637 if 3638 test "x$enable_dependency_tracking" != xno \ 3639 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3640 am__fastdepCC_TRUE= 3641 am__fastdepCC_FALSE='#' 3642else 3643 am__fastdepCC_TRUE='#' 3644 am__fastdepCC_FALSE= 3645fi 3646 3647 3648ac_ext=c 3649ac_cpp='$CPP $CPPFLAGS' 3650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3652ac_compiler_gnu=$ac_cv_c_compiler_gnu 3653{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3654$as_echo_n "checking how to run the C preprocessor... " >&6; } 3655# On Suns, sometimes $CPP names a directory. 3656if test -n "$CPP" && test -d "$CPP"; then 3657 CPP= 3658fi 3659if test -z "$CPP"; then 3660 if test "${ac_cv_prog_CPP+set}" = set; then 3661 $as_echo_n "(cached) " >&6 3662else 3663 # Double quotes because CPP needs to be expanded 3664 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3665 do 3666 ac_preproc_ok=false 3667for ac_c_preproc_warn_flag in '' yes 3668do 3669 # Use a header file that comes with gcc, so configuring glibc 3670 # with a fresh cross-compiler works. 3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3672 # <limits.h> exists even on freestanding compilers. 3673 # On the NeXT, cc -E runs the code through the compiler's parser, 3674 # not just through cpp. "Syntax error" is here to catch this case. 3675 cat >conftest.$ac_ext <<_ACEOF 3676/* confdefs.h. */ 3677_ACEOF 3678cat confdefs.h >>conftest.$ac_ext 3679cat >>conftest.$ac_ext <<_ACEOF 3680/* end confdefs.h. */ 3681#ifdef __STDC__ 3682# include <limits.h> 3683#else 3684# include <assert.h> 3685#endif 3686 Syntax error 3687_ACEOF 3688if { (ac_try="$ac_cpp conftest.$ac_ext" 3689case "(($ac_try" in 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3691 *) ac_try_echo=$ac_try;; 3692esac 3693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3694$as_echo "$ac_try_echo") >&5 3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3696 ac_status=$? 3697 grep -v '^ *+' conftest.er1 >conftest.err 3698 rm -f conftest.er1 3699 cat conftest.err >&5 3700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); } >/dev/null && { 3702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3703 test ! -s conftest.err 3704 }; then 3705 : 3706else 3707 $as_echo "$as_me: failed program was:" >&5 3708sed 's/^/| /' conftest.$ac_ext >&5 3709 3710 # Broken: fails on valid input. 3711continue 3712fi 3713 3714rm -f conftest.err conftest.$ac_ext 3715 3716 # OK, works on sane cases. Now check whether nonexistent headers 3717 # can be detected and how. 3718 cat >conftest.$ac_ext <<_ACEOF 3719/* confdefs.h. */ 3720_ACEOF 3721cat confdefs.h >>conftest.$ac_ext 3722cat >>conftest.$ac_ext <<_ACEOF 3723/* end confdefs.h. */ 3724#include <ac_nonexistent.h> 3725_ACEOF 3726if { (ac_try="$ac_cpp conftest.$ac_ext" 3727case "(($ac_try" in 3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3729 *) ac_try_echo=$ac_try;; 3730esac 3731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3732$as_echo "$ac_try_echo") >&5 3733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3734 ac_status=$? 3735 grep -v '^ *+' conftest.er1 >conftest.err 3736 rm -f conftest.er1 3737 cat conftest.err >&5 3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); } >/dev/null && { 3740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3741 test ! -s conftest.err 3742 }; then 3743 # Broken: success on invalid input. 3744continue 3745else 3746 $as_echo "$as_me: failed program was:" >&5 3747sed 's/^/| /' conftest.$ac_ext >&5 3748 3749 # Passes both tests. 3750ac_preproc_ok=: 3751break 3752fi 3753 3754rm -f conftest.err conftest.$ac_ext 3755 3756done 3757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3758rm -f conftest.err conftest.$ac_ext 3759if $ac_preproc_ok; then 3760 break 3761fi 3762 3763 done 3764 ac_cv_prog_CPP=$CPP 3765 3766fi 3767 CPP=$ac_cv_prog_CPP 3768else 3769 ac_cv_prog_CPP=$CPP 3770fi 3771{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3772$as_echo "$CPP" >&6; } 3773ac_preproc_ok=false 3774for ac_c_preproc_warn_flag in '' yes 3775do 3776 # Use a header file that comes with gcc, so configuring glibc 3777 # with a fresh cross-compiler works. 3778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3779 # <limits.h> exists even on freestanding compilers. 3780 # On the NeXT, cc -E runs the code through the compiler's parser, 3781 # not just through cpp. "Syntax error" is here to catch this case. 3782 cat >conftest.$ac_ext <<_ACEOF 3783/* confdefs.h. */ 3784_ACEOF 3785cat confdefs.h >>conftest.$ac_ext 3786cat >>conftest.$ac_ext <<_ACEOF 3787/* end confdefs.h. */ 3788#ifdef __STDC__ 3789# include <limits.h> 3790#else 3791# include <assert.h> 3792#endif 3793 Syntax error 3794_ACEOF 3795if { (ac_try="$ac_cpp conftest.$ac_ext" 3796case "(($ac_try" in 3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3798 *) ac_try_echo=$ac_try;; 3799esac 3800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3801$as_echo "$ac_try_echo") >&5 3802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3803 ac_status=$? 3804 grep -v '^ *+' conftest.er1 >conftest.err 3805 rm -f conftest.er1 3806 cat conftest.err >&5 3807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); } >/dev/null && { 3809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3810 test ! -s conftest.err 3811 }; then 3812 : 3813else 3814 $as_echo "$as_me: failed program was:" >&5 3815sed 's/^/| /' conftest.$ac_ext >&5 3816 3817 # Broken: fails on valid input. 3818continue 3819fi 3820 3821rm -f conftest.err conftest.$ac_ext 3822 3823 # OK, works on sane cases. Now check whether nonexistent headers 3824 # can be detected and how. 3825 cat >conftest.$ac_ext <<_ACEOF 3826/* confdefs.h. */ 3827_ACEOF 3828cat confdefs.h >>conftest.$ac_ext 3829cat >>conftest.$ac_ext <<_ACEOF 3830/* end confdefs.h. */ 3831#include <ac_nonexistent.h> 3832_ACEOF 3833if { (ac_try="$ac_cpp conftest.$ac_ext" 3834case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3839$as_echo "$ac_try_echo") >&5 3840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3841 ac_status=$? 3842 grep -v '^ *+' conftest.er1 >conftest.err 3843 rm -f conftest.er1 3844 cat conftest.err >&5 3845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); } >/dev/null && { 3847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3848 test ! -s conftest.err 3849 }; then 3850 # Broken: success on invalid input. 3851continue 3852else 3853 $as_echo "$as_me: failed program was:" >&5 3854sed 's/^/| /' conftest.$ac_ext >&5 3855 3856 # Passes both tests. 3857ac_preproc_ok=: 3858break 3859fi 3860 3861rm -f conftest.err conftest.$ac_ext 3862 3863done 3864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3865rm -f conftest.err conftest.$ac_ext 3866if $ac_preproc_ok; then 3867 : 3868else 3869 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3871{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3872See \`config.log' for more details." >&5 3873$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3874See \`config.log' for more details." >&2;} 3875 { (exit 1); exit 1; }; }; } 3876fi 3877 3878ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883 3884for ac_prog in gawk mawk nawk awk 3885do 3886 # Extract the first word of "$ac_prog", so it can be a program name with args. 3887set dummy $ac_prog; ac_word=$2 3888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3889$as_echo_n "checking for $ac_word... " >&6; } 3890if test "${ac_cv_prog_AWK+set}" = set; then 3891 $as_echo_n "(cached) " >&6 3892else 3893 if test -n "$AWK"; then 3894 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3895else 3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH 3898do 3899 IFS=$as_save_IFS 3900 test -z "$as_dir" && as_dir=. 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3903 ac_cv_prog_AWK="$ac_prog" 3904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3905 break 2 3906 fi 3907done 3908done 3909IFS=$as_save_IFS 3910 3911fi 3912fi 3913AWK=$ac_cv_prog_AWK 3914if test -n "$AWK"; then 3915 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 3916$as_echo "$AWK" >&6; } 3917else 3918 { $as_echo "$as_me:$LINENO: result: no" >&5 3919$as_echo "no" >&6; } 3920fi 3921 3922 3923 test -n "$AWK" && break 3924done 3925 3926{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3927$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3928set x ${MAKE-make} 3929ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3930if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3931 $as_echo_n "(cached) " >&6 3932else 3933 cat >conftest.make <<\_ACEOF 3934SHELL = /bin/sh 3935all: 3936 @echo '@@@%%%=$(MAKE)=@@@%%%' 3937_ACEOF 3938# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3939case `${MAKE-make} -f conftest.make 2>/dev/null` in 3940 *@@@%%%=?*=@@@%%%*) 3941 eval ac_cv_prog_make_${ac_make}_set=yes;; 3942 *) 3943 eval ac_cv_prog_make_${ac_make}_set=no;; 3944esac 3945rm -f conftest.make 3946fi 3947if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3948 { $as_echo "$as_me:$LINENO: result: yes" >&5 3949$as_echo "yes" >&6; } 3950 SET_MAKE= 3951else 3952 { $as_echo "$as_me:$LINENO: result: no" >&5 3953$as_echo "no" >&6; } 3954 SET_MAKE="MAKE=${MAKE-make}" 3955fi 3956 3957{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3958$as_echo_n "checking whether ln -s works... " >&6; } 3959LN_S=$as_ln_s 3960if test "$LN_S" = "ln -s"; then 3961 { $as_echo "$as_me:$LINENO: result: yes" >&5 3962$as_echo "yes" >&6; } 3963else 3964 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3965$as_echo "no, using $LN_S" >&6; } 3966fi 3967 3968# Find a good install program. We prefer a C program (faster), 3969# so one script is as good as another. But avoid the broken or 3970# incompatible versions: 3971# SysV /etc/install, /usr/sbin/install 3972# SunOS /usr/etc/install 3973# IRIX /sbin/install 3974# AIX /bin/install 3975# AmigaOS /C/install, which installs bootblocks on floppy discs 3976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3977# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3979# OS/2's system install, which has a completely different semantic 3980# ./install, which can be erroneously created by make from ./install.sh. 3981# Reject install programs that cannot install multiple files. 3982{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3983$as_echo_n "checking for a BSD-compatible install... " >&6; } 3984if test -z "$INSTALL"; then 3985if test "${ac_cv_path_install+set}" = set; then 3986 $as_echo_n "(cached) " >&6 3987else 3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989for as_dir in $PATH 3990do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 # Account for people who put trailing slashes in PATH elements. 3994case $as_dir/ in 3995 ./ | .// | /cC/* | \ 3996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3998 /usr/ucb/* ) ;; 3999 *) 4000 # OSF1 and SCO ODT 3.0 have their own names for install. 4001 # Don't use installbsd from OSF since it installs stuff as root 4002 # by default. 4003 for ac_prog in ginstall scoinst install; do 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4006 if test $ac_prog = install && 4007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4008 # AIX install. It has an incompatible calling convention. 4009 : 4010 elif test $ac_prog = install && 4011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4012 # program-specific install script used by HP pwplus--don't use. 4013 : 4014 else 4015 rm -rf conftest.one conftest.two conftest.dir 4016 echo one > conftest.one 4017 echo two > conftest.two 4018 mkdir conftest.dir 4019 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4020 test -s conftest.one && test -s conftest.two && 4021 test -s conftest.dir/conftest.one && 4022 test -s conftest.dir/conftest.two 4023 then 4024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4025 break 3 4026 fi 4027 fi 4028 fi 4029 done 4030 done 4031 ;; 4032esac 4033 4034done 4035IFS=$as_save_IFS 4036 4037rm -rf conftest.one conftest.two conftest.dir 4038 4039fi 4040 if test "${ac_cv_path_install+set}" = set; then 4041 INSTALL=$ac_cv_path_install 4042 else 4043 # As a last resort, use the slow shell script. Don't cache a 4044 # value for INSTALL within a source directory, because that will 4045 # break other packages using the cache if that directory is 4046 # removed, or if the value is a relative name. 4047 INSTALL=$ac_install_sh 4048 fi 4049fi 4050{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 4051$as_echo "$INSTALL" >&6; } 4052 4053# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4054# It thinks the first close brace ends the variable substitution. 4055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4056 4057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4058 4059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4060 4061 4062 4063 4064{ $as_echo "$as_me:$LINENO: checking for __attribute__" >&5 4065$as_echo_n "checking for __attribute__... " >&6; } 4066if test "${ac_cv___attribute__+set}" = set; then 4067 $as_echo_n "(cached) " >&6 4068else 4069 4070cat >conftest.$ac_ext <<_ACEOF 4071/* confdefs.h. */ 4072_ACEOF 4073cat confdefs.h >>conftest.$ac_ext 4074cat >>conftest.$ac_ext <<_ACEOF 4075/* end confdefs.h. */ 4076 4077#include <stdlib.h> 4078static void foo(void) __attribute__ ((noreturn)); 4079 4080static void 4081foo(void) 4082{ 4083 exit(1); 4084} 4085 4086int 4087main () 4088{ 4089 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095rm -f conftest.$ac_objext 4096if { (ac_try="$ac_compile" 4097case "(($ac_try" in 4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4099 *) ac_try_echo=$ac_try;; 4100esac 4101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4102$as_echo "$ac_try_echo") >&5 4103 (eval "$ac_compile") 2>conftest.er1 4104 ac_status=$? 4105 grep -v '^ *+' conftest.er1 >conftest.err 4106 rm -f conftest.er1 4107 cat conftest.err >&5 4108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); } && { 4110 test -z "$ac_c_werror_flag" || 4111 test ! -s conftest.err 4112 } && test -s conftest.$ac_objext; then 4113 ac_cv___attribute__=yes 4114else 4115 $as_echo "$as_me: failed program was:" >&5 4116sed 's/^/| /' conftest.$ac_ext >&5 4117 4118 ac_cv___attribute__=no 4119fi 4120 4121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4122fi 4123 4124if test "$ac_cv___attribute__" = "yes"; then 4125 4126cat >>confdefs.h <<\_ACEOF 4127#define HAVE___ATTRIBUTE__ 1 4128_ACEOF 4129 4130fi 4131{ $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 4132$as_echo "$ac_cv___attribute__" >&6; } 4133 4134 4135 # CMU GUESS RUNPATH SWITCH 4136 { $as_echo "$as_me:$LINENO: checking for runpath switch" >&5 4137$as_echo_n "checking for runpath switch... " >&6; } 4138if test "${andrew_cv_runpath_switch+set}" = set; then 4139 $as_echo_n "(cached) " >&6 4140else 4141 4142 # first, try -R 4143 SAVE_LDFLAGS="${LDFLAGS}" 4144 LDFLAGS="-R /usr/lib" 4145 cat >conftest.$ac_ext <<_ACEOF 4146/* confdefs.h. */ 4147_ACEOF 4148cat confdefs.h >>conftest.$ac_ext 4149cat >>conftest.$ac_ext <<_ACEOF 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160rm -f conftest.$ac_objext conftest$ac_exeext 4161if { (ac_try="$ac_link" 4162case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165esac 4166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4167$as_echo "$ac_try_echo") >&5 4168 (eval "$ac_link") 2>conftest.er1 4169 ac_status=$? 4170 grep -v '^ *+' conftest.er1 >conftest.err 4171 rm -f conftest.er1 4172 cat conftest.err >&5 4173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4174 (exit $ac_status); } && { 4175 test -z "$ac_c_werror_flag" || 4176 test ! -s conftest.err 4177 } && test -s conftest$ac_exeext && { 4178 test "$cross_compiling" = yes || 4179 $as_test_x conftest$ac_exeext 4180 }; then 4181 andrew_cv_runpath_switch="-R" 4182else 4183 $as_echo "$as_me: failed program was:" >&5 4184sed 's/^/| /' conftest.$ac_ext >&5 4185 4186 4187 LDFLAGS="-Wl,-rpath,/usr/lib" 4188 cat >conftest.$ac_ext <<_ACEOF 4189/* confdefs.h. */ 4190_ACEOF 4191cat confdefs.h >>conftest.$ac_ext 4192cat >>conftest.$ac_ext <<_ACEOF 4193/* end confdefs.h. */ 4194 4195int 4196main () 4197{ 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f conftest.$ac_objext conftest$ac_exeext 4204if { (ac_try="$ac_link" 4205case "(($ac_try" in 4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4207 *) ac_try_echo=$ac_try;; 4208esac 4209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4210$as_echo "$ac_try_echo") >&5 4211 (eval "$ac_link") 2>conftest.er1 4212 ac_status=$? 4213 grep -v '^ *+' conftest.er1 >conftest.err 4214 rm -f conftest.er1 4215 cat conftest.err >&5 4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); } && { 4218 test -z "$ac_c_werror_flag" || 4219 test ! -s conftest.err 4220 } && test -s conftest$ac_exeext && { 4221 test "$cross_compiling" = yes || 4222 $as_test_x conftest$ac_exeext 4223 }; then 4224 andrew_cv_runpath_switch="-Wl,-rpath," 4225else 4226 $as_echo "$as_me: failed program was:" >&5 4227sed 's/^/| /' conftest.$ac_ext >&5 4228 4229 andrew_cv_runpath_switch="none" 4230fi 4231 4232rm -rf conftest.dSYM 4233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4234 conftest$ac_exeext conftest.$ac_ext 4235 4236fi 4237 4238rm -rf conftest.dSYM 4239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4240 conftest$ac_exeext conftest.$ac_ext 4241 LDFLAGS="${SAVE_LDFLAGS}" 4242 4243fi 4244{ $as_echo "$as_me:$LINENO: result: $andrew_cv_runpath_switch" >&5 4245$as_echo "$andrew_cv_runpath_switch" >&6; } 4246 4247 4248 save_LIBS="$LIBS" 4249 LIB_SOCKET="" 4250 { $as_echo "$as_me:$LINENO: checking for connect" >&5 4251$as_echo_n "checking for connect... " >&6; } 4252if test "${ac_cv_func_connect+set}" = set; then 4253 $as_echo_n "(cached) " >&6 4254else 4255 cat >conftest.$ac_ext <<_ACEOF 4256/* confdefs.h. */ 4257_ACEOF 4258cat confdefs.h >>conftest.$ac_ext 4259cat >>conftest.$ac_ext <<_ACEOF 4260/* end confdefs.h. */ 4261/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4262 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4263#define connect innocuous_connect 4264 4265/* System header to define __stub macros and hopefully few prototypes, 4266 which can conflict with char connect (); below. 4267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4268 <limits.h> exists even on freestanding compilers. */ 4269 4270#ifdef __STDC__ 4271# include <limits.h> 4272#else 4273# include <assert.h> 4274#endif 4275 4276#undef connect 4277 4278/* Override any GCC internal prototype to avoid an error. 4279 Use char because int might match the return type of a GCC 4280 builtin and then its argument prototype would still apply. */ 4281#ifdef __cplusplus 4282extern "C" 4283#endif 4284char connect (); 4285/* The GNU C library defines this for functions which it implements 4286 to always fail with ENOSYS. Some functions are actually named 4287 something starting with __ and the normal name is an alias. */ 4288#if defined __stub_connect || defined __stub___connect 4289choke me 4290#endif 4291 4292int 4293main () 4294{ 4295return connect (); 4296 ; 4297 return 0; 4298} 4299_ACEOF 4300rm -f conftest.$ac_objext conftest$ac_exeext 4301if { (ac_try="$ac_link" 4302case "(($ac_try" in 4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4304 *) ac_try_echo=$ac_try;; 4305esac 4306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4307$as_echo "$ac_try_echo") >&5 4308 (eval "$ac_link") 2>conftest.er1 4309 ac_status=$? 4310 grep -v '^ *+' conftest.er1 >conftest.err 4311 rm -f conftest.er1 4312 cat conftest.err >&5 4313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4314 (exit $ac_status); } && { 4315 test -z "$ac_c_werror_flag" || 4316 test ! -s conftest.err 4317 } && test -s conftest$ac_exeext && { 4318 test "$cross_compiling" = yes || 4319 $as_test_x conftest$ac_exeext 4320 }; then 4321 ac_cv_func_connect=yes 4322else 4323 $as_echo "$as_me: failed program was:" >&5 4324sed 's/^/| /' conftest.$ac_ext >&5 4325 4326 ac_cv_func_connect=no 4327fi 4328 4329rm -rf conftest.dSYM 4330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4331 conftest$ac_exeext conftest.$ac_ext 4332fi 4333{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4334$as_echo "$ac_cv_func_connect" >&6; } 4335if test "x$ac_cv_func_connect" = x""yes; then 4336 : 4337else 4338 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4339$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4340if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4341 $as_echo_n "(cached) " >&6 4342else 4343 ac_check_lib_save_LIBS=$LIBS 4344LIBS="-lnsl $LIBS" 4345cat >conftest.$ac_ext <<_ACEOF 4346/* confdefs.h. */ 4347_ACEOF 4348cat confdefs.h >>conftest.$ac_ext 4349cat >>conftest.$ac_ext <<_ACEOF 4350/* end confdefs.h. */ 4351 4352/* Override any GCC internal prototype to avoid an error. 4353 Use char because int might match the return type of a GCC 4354 builtin and then its argument prototype would still apply. */ 4355#ifdef __cplusplus 4356extern "C" 4357#endif 4358char gethostbyname (); 4359int 4360main () 4361{ 4362return gethostbyname (); 4363 ; 4364 return 0; 4365} 4366_ACEOF 4367rm -f conftest.$ac_objext conftest$ac_exeext 4368if { (ac_try="$ac_link" 4369case "(($ac_try" in 4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4371 *) ac_try_echo=$ac_try;; 4372esac 4373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4374$as_echo "$ac_try_echo") >&5 4375 (eval "$ac_link") 2>conftest.er1 4376 ac_status=$? 4377 grep -v '^ *+' conftest.er1 >conftest.err 4378 rm -f conftest.er1 4379 cat conftest.err >&5 4380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); } && { 4382 test -z "$ac_c_werror_flag" || 4383 test ! -s conftest.err 4384 } && test -s conftest$ac_exeext && { 4385 test "$cross_compiling" = yes || 4386 $as_test_x conftest$ac_exeext 4387 }; then 4388 ac_cv_lib_nsl_gethostbyname=yes 4389else 4390 $as_echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393 ac_cv_lib_nsl_gethostbyname=no 4394fi 4395 4396rm -rf conftest.dSYM 4397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4398 conftest$ac_exeext conftest.$ac_ext 4399LIBS=$ac_check_lib_save_LIBS 4400fi 4401{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4402$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4403if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 4404 LIB_SOCKET="-lnsl $LIB_SOCKET" 4405fi 4406 4407 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4408$as_echo_n "checking for connect in -lsocket... " >&6; } 4409if test "${ac_cv_lib_socket_connect+set}" = set; then 4410 $as_echo_n "(cached) " >&6 4411else 4412 ac_check_lib_save_LIBS=$LIBS 4413LIBS="-lsocket $LIBS" 4414cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420 4421/* Override any GCC internal prototype to avoid an error. 4422 Use char because int might match the return type of a GCC 4423 builtin and then its argument prototype would still apply. */ 4424#ifdef __cplusplus 4425extern "C" 4426#endif 4427char connect (); 4428int 4429main () 4430{ 4431return connect (); 4432 ; 4433 return 0; 4434} 4435_ACEOF 4436rm -f conftest.$ac_objext conftest$ac_exeext 4437if { (ac_try="$ac_link" 4438case "(($ac_try" in 4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4440 *) ac_try_echo=$ac_try;; 4441esac 4442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4443$as_echo "$ac_try_echo") >&5 4444 (eval "$ac_link") 2>conftest.er1 4445 ac_status=$? 4446 grep -v '^ *+' conftest.er1 >conftest.err 4447 rm -f conftest.er1 4448 cat conftest.err >&5 4449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); } && { 4451 test -z "$ac_c_werror_flag" || 4452 test ! -s conftest.err 4453 } && test -s conftest$ac_exeext && { 4454 test "$cross_compiling" = yes || 4455 $as_test_x conftest$ac_exeext 4456 }; then 4457 ac_cv_lib_socket_connect=yes 4458else 4459 $as_echo "$as_me: failed program was:" >&5 4460sed 's/^/| /' conftest.$ac_ext >&5 4461 4462 ac_cv_lib_socket_connect=no 4463fi 4464 4465rm -rf conftest.dSYM 4466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4467 conftest$ac_exeext conftest.$ac_ext 4468LIBS=$ac_check_lib_save_LIBS 4469fi 4470{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4471$as_echo "$ac_cv_lib_socket_connect" >&6; } 4472if test "x$ac_cv_lib_socket_connect" = x""yes; then 4473 LIB_SOCKET="-lsocket $LIB_SOCKET" 4474fi 4475 4476 4477fi 4478 4479 LIBS="$LIB_SOCKET $save_LIBS" 4480 { $as_echo "$as_me:$LINENO: checking for res_search" >&5 4481$as_echo_n "checking for res_search... " >&6; } 4482if test "${ac_cv_func_res_search+set}" = set; then 4483 $as_echo_n "(cached) " >&6 4484else 4485 cat >conftest.$ac_ext <<_ACEOF 4486/* confdefs.h. */ 4487_ACEOF 4488cat confdefs.h >>conftest.$ac_ext 4489cat >>conftest.$ac_ext <<_ACEOF 4490/* end confdefs.h. */ 4491/* Define res_search to an innocuous variant, in case <limits.h> declares res_search. 4492 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4493#define res_search innocuous_res_search 4494 4495/* System header to define __stub macros and hopefully few prototypes, 4496 which can conflict with char res_search (); below. 4497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4498 <limits.h> exists even on freestanding compilers. */ 4499 4500#ifdef __STDC__ 4501# include <limits.h> 4502#else 4503# include <assert.h> 4504#endif 4505 4506#undef res_search 4507 4508/* Override any GCC internal prototype to avoid an error. 4509 Use char because int might match the return type of a GCC 4510 builtin and then its argument prototype would still apply. */ 4511#ifdef __cplusplus 4512extern "C" 4513#endif 4514char res_search (); 4515/* The GNU C library defines this for functions which it implements 4516 to always fail with ENOSYS. Some functions are actually named 4517 something starting with __ and the normal name is an alias. */ 4518#if defined __stub_res_search || defined __stub___res_search 4519choke me 4520#endif 4521 4522int 4523main () 4524{ 4525return res_search (); 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530rm -f conftest.$ac_objext conftest$ac_exeext 4531if { (ac_try="$ac_link" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4537$as_echo "$ac_try_echo") >&5 4538 (eval "$ac_link") 2>conftest.er1 4539 ac_status=$? 4540 grep -v '^ *+' conftest.er1 >conftest.err 4541 rm -f conftest.er1 4542 cat conftest.err >&5 4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); } && { 4545 test -z "$ac_c_werror_flag" || 4546 test ! -s conftest.err 4547 } && test -s conftest$ac_exeext && { 4548 test "$cross_compiling" = yes || 4549 $as_test_x conftest$ac_exeext 4550 }; then 4551 ac_cv_func_res_search=yes 4552else 4553 $as_echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556 ac_cv_func_res_search=no 4557fi 4558 4559rm -rf conftest.dSYM 4560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4561 conftest$ac_exeext conftest.$ac_ext 4562fi 4563{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5 4564$as_echo "$ac_cv_func_res_search" >&6; } 4565if test "x$ac_cv_func_res_search" = x""yes; then 4566 : 4567else 4568 LIBS="-lresolv $LIB_SOCKET $save_LIBS" 4569 cat >conftest.$ac_ext <<_ACEOF 4570/* confdefs.h. */ 4571_ACEOF 4572cat confdefs.h >>conftest.$ac_ext 4573cat >>conftest.$ac_ext <<_ACEOF 4574/* end confdefs.h. */ 4575[ 4576#include <sys/types.h> 4577#include <netinet/in.h> 4578#include <arpa/nameser.h> 4579#ifdef HAVE_ARPA_NAMESER_COMPAT_H 4580#include <arpa/nameser_compat.h> 4581#endif 4582#include <resolv.h>] 4583int 4584main () 4585{ 4586[ 4587const char host[12]="openafs.org"; 4588u_char ans[1024]; 4589res_search( host, C_IN, T_MX, (u_char *)&ans, sizeof(ans)); 4590return 0; 4591] 4592 ; 4593 return 0; 4594} 4595_ACEOF 4596rm -f conftest.$ac_objext conftest$ac_exeext 4597if { (ac_try="$ac_link" 4598case "(($ac_try" in 4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4600 *) ac_try_echo=$ac_try;; 4601esac 4602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4603$as_echo "$ac_try_echo") >&5 4604 (eval "$ac_link") 2>conftest.er1 4605 ac_status=$? 4606 grep -v '^ *+' conftest.er1 >conftest.err 4607 rm -f conftest.er1 4608 cat conftest.err >&5 4609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } && { 4611 test -z "$ac_c_werror_flag" || 4612 test ! -s conftest.err 4613 } && test -s conftest$ac_exeext && { 4614 test "$cross_compiling" = yes || 4615 $as_test_x conftest$ac_exeext 4616 }; then 4617 LIB_SOCKET="-lresolv $LIB_SOCKET" 4618else 4619 $as_echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 4623fi 4624 4625rm -rf conftest.dSYM 4626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4627 conftest$ac_exeext conftest.$ac_ext 4628 4629fi 4630 4631 LIBS="$LIB_SOCKET $save_LIBS" 4632 4633 4634for ac_func in dn_expand dns_lookup 4635do 4636as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4637{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 4638$as_echo_n "checking for $ac_func... " >&6; } 4639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 4640 $as_echo_n "(cached) " >&6 4641else 4642 cat >conftest.$ac_ext <<_ACEOF 4643/* confdefs.h. */ 4644_ACEOF 4645cat confdefs.h >>conftest.$ac_ext 4646cat >>conftest.$ac_ext <<_ACEOF 4647/* end confdefs.h. */ 4648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4649 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4650#define $ac_func innocuous_$ac_func 4651 4652/* System header to define __stub macros and hopefully few prototypes, 4653 which can conflict with char $ac_func (); below. 4654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4655 <limits.h> exists even on freestanding compilers. */ 4656 4657#ifdef __STDC__ 4658# include <limits.h> 4659#else 4660# include <assert.h> 4661#endif 4662 4663#undef $ac_func 4664 4665/* Override any GCC internal prototype to avoid an error. 4666 Use char because int might match the return type of a GCC 4667 builtin and then its argument prototype would still apply. */ 4668#ifdef __cplusplus 4669extern "C" 4670#endif 4671char $ac_func (); 4672/* The GNU C library defines this for functions which it implements 4673 to always fail with ENOSYS. Some functions are actually named 4674 something starting with __ and the normal name is an alias. */ 4675#if defined __stub_$ac_func || defined __stub___$ac_func 4676choke me 4677#endif 4678 4679int 4680main () 4681{ 4682return $ac_func (); 4683 ; 4684 return 0; 4685} 4686_ACEOF 4687rm -f conftest.$ac_objext conftest$ac_exeext 4688if { (ac_try="$ac_link" 4689case "(($ac_try" in 4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4691 *) ac_try_echo=$ac_try;; 4692esac 4693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4694$as_echo "$ac_try_echo") >&5 4695 (eval "$ac_link") 2>conftest.er1 4696 ac_status=$? 4697 grep -v '^ *+' conftest.er1 >conftest.err 4698 rm -f conftest.er1 4699 cat conftest.err >&5 4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4701 (exit $ac_status); } && { 4702 test -z "$ac_c_werror_flag" || 4703 test ! -s conftest.err 4704 } && test -s conftest$ac_exeext && { 4705 test "$cross_compiling" = yes || 4706 $as_test_x conftest$ac_exeext 4707 }; then 4708 eval "$as_ac_var=yes" 4709else 4710 $as_echo "$as_me: failed program was:" >&5 4711sed 's/^/| /' conftest.$ac_ext >&5 4712 4713 eval "$as_ac_var=no" 4714fi 4715 4716rm -rf conftest.dSYM 4717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4718 conftest$ac_exeext conftest.$ac_ext 4719fi 4720ac_res=`eval 'as_val=${'$as_ac_var'} 4721 $as_echo "$as_val"'` 4722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4723$as_echo "$ac_res" >&6; } 4724as_val=`eval 'as_val=${'$as_ac_var'} 4725 $as_echo "$as_val"'` 4726 if test "x$as_val" = x""yes; then 4727 cat >>confdefs.h <<_ACEOF 4728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4729_ACEOF 4730 4731fi 4732done 4733 4734 LIBS="$save_LIBS" 4735 4736 4737 4738 4739{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4740$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4741if test "${ac_cv_path_GREP+set}" = set; then 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -z "$GREP"; then 4745 ac_path_GREP_found=false 4746 # Loop through the user's path and test for each of PROGNAME-LIST 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4749do 4750 IFS=$as_save_IFS 4751 test -z "$as_dir" && as_dir=. 4752 for ac_prog in grep ggrep; do 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4755 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4756# Check for GNU ac_path_GREP and select it if it is found. 4757 # Check for GNU $ac_path_GREP 4758case `"$ac_path_GREP" --version 2>&1` in 4759*GNU*) 4760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4761*) 4762 ac_count=0 4763 $as_echo_n 0123456789 >"conftest.in" 4764 while : 4765 do 4766 cat "conftest.in" "conftest.in" >"conftest.tmp" 4767 mv "conftest.tmp" "conftest.in" 4768 cp "conftest.in" "conftest.nl" 4769 $as_echo 'GREP' >> "conftest.nl" 4770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4772 ac_count=`expr $ac_count + 1` 4773 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4774 # Best one so far, save it but keep looking for a better one 4775 ac_cv_path_GREP="$ac_path_GREP" 4776 ac_path_GREP_max=$ac_count 4777 fi 4778 # 10*(2^10) chars as input seems more than enough 4779 test $ac_count -gt 10 && break 4780 done 4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4782esac 4783 4784 $ac_path_GREP_found && break 3 4785 done 4786 done 4787done 4788IFS=$as_save_IFS 4789 if test -z "$ac_cv_path_GREP"; then 4790 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4791$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4792 { (exit 1); exit 1; }; } 4793 fi 4794else 4795 ac_cv_path_GREP=$GREP 4796fi 4797 4798fi 4799{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4800$as_echo "$ac_cv_path_GREP" >&6; } 4801 GREP="$ac_cv_path_GREP" 4802 4803 4804{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4805$as_echo_n "checking for egrep... " >&6; } 4806if test "${ac_cv_path_EGREP+set}" = set; then 4807 $as_echo_n "(cached) " >&6 4808else 4809 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4810 then ac_cv_path_EGREP="$GREP -E" 4811 else 4812 if test -z "$EGREP"; then 4813 ac_path_EGREP_found=false 4814 # Loop through the user's path and test for each of PROGNAME-LIST 4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4817do 4818 IFS=$as_save_IFS 4819 test -z "$as_dir" && as_dir=. 4820 for ac_prog in egrep; do 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4823 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4824# Check for GNU ac_path_EGREP and select it if it is found. 4825 # Check for GNU $ac_path_EGREP 4826case `"$ac_path_EGREP" --version 2>&1` in 4827*GNU*) 4828 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4829*) 4830 ac_count=0 4831 $as_echo_n 0123456789 >"conftest.in" 4832 while : 4833 do 4834 cat "conftest.in" "conftest.in" >"conftest.tmp" 4835 mv "conftest.tmp" "conftest.in" 4836 cp "conftest.in" "conftest.nl" 4837 $as_echo 'EGREP' >> "conftest.nl" 4838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4840 ac_count=`expr $ac_count + 1` 4841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4842 # Best one so far, save it but keep looking for a better one 4843 ac_cv_path_EGREP="$ac_path_EGREP" 4844 ac_path_EGREP_max=$ac_count 4845 fi 4846 # 10*(2^10) chars as input seems more than enough 4847 test $ac_count -gt 10 && break 4848 done 4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4850esac 4851 4852 $ac_path_EGREP_found && break 3 4853 done 4854 done 4855done 4856IFS=$as_save_IFS 4857 if test -z "$ac_cv_path_EGREP"; then 4858 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4859$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4860 { (exit 1); exit 1; }; } 4861 fi 4862else 4863 ac_cv_path_EGREP=$EGREP 4864fi 4865 4866 fi 4867fi 4868{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4869$as_echo "$ac_cv_path_EGREP" >&6; } 4870 EGREP="$ac_cv_path_EGREP" 4871 4872 4873{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4874$as_echo_n "checking for ANSI C header files... " >&6; } 4875if test "${ac_cv_header_stdc+set}" = set; then 4876 $as_echo_n "(cached) " >&6 4877else 4878 cat >conftest.$ac_ext <<_ACEOF 4879/* confdefs.h. */ 4880_ACEOF 4881cat confdefs.h >>conftest.$ac_ext 4882cat >>conftest.$ac_ext <<_ACEOF 4883/* end confdefs.h. */ 4884#include <stdlib.h> 4885#include <stdarg.h> 4886#include <string.h> 4887#include <float.h> 4888 4889int 4890main () 4891{ 4892 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897rm -f conftest.$ac_objext 4898if { (ac_try="$ac_compile" 4899case "(($ac_try" in 4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4901 *) ac_try_echo=$ac_try;; 4902esac 4903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4904$as_echo "$ac_try_echo") >&5 4905 (eval "$ac_compile") 2>conftest.er1 4906 ac_status=$? 4907 grep -v '^ *+' conftest.er1 >conftest.err 4908 rm -f conftest.er1 4909 cat conftest.err >&5 4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); } && { 4912 test -z "$ac_c_werror_flag" || 4913 test ! -s conftest.err 4914 } && test -s conftest.$ac_objext; then 4915 ac_cv_header_stdc=yes 4916else 4917 $as_echo "$as_me: failed program was:" >&5 4918sed 's/^/| /' conftest.$ac_ext >&5 4919 4920 ac_cv_header_stdc=no 4921fi 4922 4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924 4925if test $ac_cv_header_stdc = yes; then 4926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4927 cat >conftest.$ac_ext <<_ACEOF 4928/* confdefs.h. */ 4929_ACEOF 4930cat confdefs.h >>conftest.$ac_ext 4931cat >>conftest.$ac_ext <<_ACEOF 4932/* end confdefs.h. */ 4933#include <string.h> 4934 4935_ACEOF 4936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4937 $EGREP "memchr" >/dev/null 2>&1; then 4938 : 4939else 4940 ac_cv_header_stdc=no 4941fi 4942rm -f conftest* 4943 4944fi 4945 4946if test $ac_cv_header_stdc = yes; then 4947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4948 cat >conftest.$ac_ext <<_ACEOF 4949/* confdefs.h. */ 4950_ACEOF 4951cat confdefs.h >>conftest.$ac_ext 4952cat >>conftest.$ac_ext <<_ACEOF 4953/* end confdefs.h. */ 4954#include <stdlib.h> 4955 4956_ACEOF 4957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4958 $EGREP "free" >/dev/null 2>&1; then 4959 : 4960else 4961 ac_cv_header_stdc=no 4962fi 4963rm -f conftest* 4964 4965fi 4966 4967if test $ac_cv_header_stdc = yes; then 4968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4969 if test "$cross_compiling" = yes; then 4970 : 4971else 4972 cat >conftest.$ac_ext <<_ACEOF 4973/* confdefs.h. */ 4974_ACEOF 4975cat confdefs.h >>conftest.$ac_ext 4976cat >>conftest.$ac_ext <<_ACEOF 4977/* end confdefs.h. */ 4978#include <ctype.h> 4979#include <stdlib.h> 4980#if ((' ' & 0x0FF) == 0x020) 4981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4983#else 4984# define ISLOWER(c) \ 4985 (('a' <= (c) && (c) <= 'i') \ 4986 || ('j' <= (c) && (c) <= 'r') \ 4987 || ('s' <= (c) && (c) <= 'z')) 4988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4989#endif 4990 4991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4992int 4993main () 4994{ 4995 int i; 4996 for (i = 0; i < 256; i++) 4997 if (XOR (islower (i), ISLOWER (i)) 4998 || toupper (i) != TOUPPER (i)) 4999 return 2; 5000 return 0; 5001} 5002_ACEOF 5003rm -f conftest$ac_exeext 5004if { (ac_try="$ac_link" 5005case "(($ac_try" in 5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5007 *) ac_try_echo=$ac_try;; 5008esac 5009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5010$as_echo "$ac_try_echo") >&5 5011 (eval "$ac_link") 2>&5 5012 ac_status=$? 5013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5015 { (case "(($ac_try" in 5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5017 *) ac_try_echo=$ac_try;; 5018esac 5019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5020$as_echo "$ac_try_echo") >&5 5021 (eval "$ac_try") 2>&5 5022 ac_status=$? 5023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); }; }; then 5025 : 5026else 5027 $as_echo "$as_me: program exited with status $ac_status" >&5 5028$as_echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031( exit $ac_status ) 5032ac_cv_header_stdc=no 5033fi 5034rm -rf conftest.dSYM 5035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5036fi 5037 5038 5039fi 5040fi 5041{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5042$as_echo "$ac_cv_header_stdc" >&6; } 5043if test $ac_cv_header_stdc = yes; then 5044 5045cat >>confdefs.h <<\_ACEOF 5046#define STDC_HEADERS 1 5047_ACEOF 5048 5049fi 5050 5051# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5062 inttypes.h stdint.h unistd.h 5063do 5064as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5065{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5066$as_echo_n "checking for $ac_header... " >&6; } 5067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5068 $as_echo_n "(cached) " >&6 5069else 5070 cat >conftest.$ac_ext <<_ACEOF 5071/* confdefs.h. */ 5072_ACEOF 5073cat confdefs.h >>conftest.$ac_ext 5074cat >>conftest.$ac_ext <<_ACEOF 5075/* end confdefs.h. */ 5076$ac_includes_default 5077 5078#include <$ac_header> 5079_ACEOF 5080rm -f conftest.$ac_objext 5081if { (ac_try="$ac_compile" 5082case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085esac 5086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5087$as_echo "$ac_try_echo") >&5 5088 (eval "$ac_compile") 2>conftest.er1 5089 ac_status=$? 5090 grep -v '^ *+' conftest.er1 >conftest.err 5091 rm -f conftest.er1 5092 cat conftest.err >&5 5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); } && { 5095 test -z "$ac_c_werror_flag" || 5096 test ! -s conftest.err 5097 } && test -s conftest.$ac_objext; then 5098 eval "$as_ac_Header=yes" 5099else 5100 $as_echo "$as_me: failed program was:" >&5 5101sed 's/^/| /' conftest.$ac_ext >&5 5102 5103 eval "$as_ac_Header=no" 5104fi 5105 5106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5107fi 5108ac_res=`eval 'as_val=${'$as_ac_Header'} 5109 $as_echo "$as_val"'` 5110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5111$as_echo "$ac_res" >&6; } 5112as_val=`eval 'as_val=${'$as_ac_Header'} 5113 $as_echo "$as_val"'` 5114 if test "x$as_val" = x""yes; then 5115 cat >>confdefs.h <<_ACEOF 5116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5117_ACEOF 5118 5119fi 5120 5121done 5122 5123 5124 5125# Check whether --with-lib-subdir was given. 5126if test "${with_lib_subdir+set}" = set; then 5127 withval=$with_lib_subdir; 5128fi 5129 5130# The cast to long int works around a bug in the HP C Compiler 5131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5133# This bug is HP SR number 8606223364. 5134{ $as_echo "$as_me:$LINENO: checking size of long" >&5 5135$as_echo_n "checking size of long... " >&6; } 5136if test "${ac_cv_sizeof_long+set}" = set; then 5137 $as_echo_n "(cached) " >&6 5138else 5139 if test "$cross_compiling" = yes; then 5140 # Depending upon the size, compute the lo and hi bounds. 5141cat >conftest.$ac_ext <<_ACEOF 5142/* confdefs.h. */ 5143_ACEOF 5144cat confdefs.h >>conftest.$ac_ext 5145cat >>conftest.$ac_ext <<_ACEOF 5146/* end confdefs.h. */ 5147$ac_includes_default 5148int 5149main () 5150{ 5151static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; 5152test_array [0] = 0 5153 5154 ; 5155 return 0; 5156} 5157_ACEOF 5158rm -f conftest.$ac_objext 5159if { (ac_try="$ac_compile" 5160case "(($ac_try" in 5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5162 *) ac_try_echo=$ac_try;; 5163esac 5164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5165$as_echo "$ac_try_echo") >&5 5166 (eval "$ac_compile") 2>conftest.er1 5167 ac_status=$? 5168 grep -v '^ *+' conftest.er1 >conftest.err 5169 rm -f conftest.er1 5170 cat conftest.err >&5 5171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5172 (exit $ac_status); } && { 5173 test -z "$ac_c_werror_flag" || 5174 test ! -s conftest.err 5175 } && test -s conftest.$ac_objext; then 5176 ac_lo=0 ac_mid=0 5177 while :; do 5178 cat >conftest.$ac_ext <<_ACEOF 5179/* confdefs.h. */ 5180_ACEOF 5181cat confdefs.h >>conftest.$ac_ext 5182cat >>conftest.$ac_ext <<_ACEOF 5183/* end confdefs.h. */ 5184$ac_includes_default 5185int 5186main () 5187{ 5188static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 5189test_array [0] = 0 5190 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195rm -f conftest.$ac_objext 5196if { (ac_try="$ac_compile" 5197case "(($ac_try" in 5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5199 *) ac_try_echo=$ac_try;; 5200esac 5201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5202$as_echo "$ac_try_echo") >&5 5203 (eval "$ac_compile") 2>conftest.er1 5204 ac_status=$? 5205 grep -v '^ *+' conftest.er1 >conftest.err 5206 rm -f conftest.er1 5207 cat conftest.err >&5 5208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5209 (exit $ac_status); } && { 5210 test -z "$ac_c_werror_flag" || 5211 test ! -s conftest.err 5212 } && test -s conftest.$ac_objext; then 5213 ac_hi=$ac_mid; break 5214else 5215 $as_echo "$as_me: failed program was:" >&5 5216sed 's/^/| /' conftest.$ac_ext >&5 5217 5218 ac_lo=`expr $ac_mid + 1` 5219 if test $ac_lo -le $ac_mid; then 5220 ac_lo= ac_hi= 5221 break 5222 fi 5223 ac_mid=`expr 2 '*' $ac_mid + 1` 5224fi 5225 5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5227 done 5228else 5229 $as_echo "$as_me: failed program was:" >&5 5230sed 's/^/| /' conftest.$ac_ext >&5 5231 5232 cat >conftest.$ac_ext <<_ACEOF 5233/* confdefs.h. */ 5234_ACEOF 5235cat confdefs.h >>conftest.$ac_ext 5236cat >>conftest.$ac_ext <<_ACEOF 5237/* end confdefs.h. */ 5238$ac_includes_default 5239int 5240main () 5241{ 5242static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; 5243test_array [0] = 0 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249rm -f conftest.$ac_objext 5250if { (ac_try="$ac_compile" 5251case "(($ac_try" in 5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5253 *) ac_try_echo=$ac_try;; 5254esac 5255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5256$as_echo "$ac_try_echo") >&5 5257 (eval "$ac_compile") 2>conftest.er1 5258 ac_status=$? 5259 grep -v '^ *+' conftest.er1 >conftest.err 5260 rm -f conftest.er1 5261 cat conftest.err >&5 5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } && { 5264 test -z "$ac_c_werror_flag" || 5265 test ! -s conftest.err 5266 } && test -s conftest.$ac_objext; then 5267 ac_hi=-1 ac_mid=-1 5268 while :; do 5269 cat >conftest.$ac_ext <<_ACEOF 5270/* confdefs.h. */ 5271_ACEOF 5272cat confdefs.h >>conftest.$ac_ext 5273cat >>conftest.$ac_ext <<_ACEOF 5274/* end confdefs.h. */ 5275$ac_includes_default 5276int 5277main () 5278{ 5279static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; 5280test_array [0] = 0 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286rm -f conftest.$ac_objext 5287if { (ac_try="$ac_compile" 5288case "(($ac_try" in 5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5290 *) ac_try_echo=$ac_try;; 5291esac 5292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5293$as_echo "$ac_try_echo") >&5 5294 (eval "$ac_compile") 2>conftest.er1 5295 ac_status=$? 5296 grep -v '^ *+' conftest.er1 >conftest.err 5297 rm -f conftest.er1 5298 cat conftest.err >&5 5299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); } && { 5301 test -z "$ac_c_werror_flag" || 5302 test ! -s conftest.err 5303 } && test -s conftest.$ac_objext; then 5304 ac_lo=$ac_mid; break 5305else 5306 $as_echo "$as_me: failed program was:" >&5 5307sed 's/^/| /' conftest.$ac_ext >&5 5308 5309 ac_hi=`expr '(' $ac_mid ')' - 1` 5310 if test $ac_mid -le $ac_hi; then 5311 ac_lo= ac_hi= 5312 break 5313 fi 5314 ac_mid=`expr 2 '*' $ac_mid` 5315fi 5316 5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318 done 5319else 5320 $as_echo "$as_me: failed program was:" >&5 5321sed 's/^/| /' conftest.$ac_ext >&5 5322 5323 ac_lo= ac_hi= 5324fi 5325 5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5327fi 5328 5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5330# Binary search between lo and hi bounds. 5331while test "x$ac_lo" != "x$ac_hi"; do 5332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5333 cat >conftest.$ac_ext <<_ACEOF 5334/* confdefs.h. */ 5335_ACEOF 5336cat confdefs.h >>conftest.$ac_ext 5337cat >>conftest.$ac_ext <<_ACEOF 5338/* end confdefs.h. */ 5339$ac_includes_default 5340int 5341main () 5342{ 5343static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 5344test_array [0] = 0 5345 5346 ; 5347 return 0; 5348} 5349_ACEOF 5350rm -f conftest.$ac_objext 5351if { (ac_try="$ac_compile" 5352case "(($ac_try" in 5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5354 *) ac_try_echo=$ac_try;; 5355esac 5356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5357$as_echo "$ac_try_echo") >&5 5358 (eval "$ac_compile") 2>conftest.er1 5359 ac_status=$? 5360 grep -v '^ *+' conftest.er1 >conftest.err 5361 rm -f conftest.er1 5362 cat conftest.err >&5 5363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); } && { 5365 test -z "$ac_c_werror_flag" || 5366 test ! -s conftest.err 5367 } && test -s conftest.$ac_objext; then 5368 ac_hi=$ac_mid 5369else 5370 $as_echo "$as_me: failed program was:" >&5 5371sed 's/^/| /' conftest.$ac_ext >&5 5372 5373 ac_lo=`expr '(' $ac_mid ')' + 1` 5374fi 5375 5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5377done 5378case $ac_lo in 5379?*) ac_cv_sizeof_long=$ac_lo;; 5380'') if test "$ac_cv_type_long" = yes; then 5381 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5383{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 5384See \`config.log' for more details." >&5 5385$as_echo "$as_me: error: cannot compute sizeof (long) 5386See \`config.log' for more details." >&2;} 5387 { (exit 77); exit 77; }; }; } 5388 else 5389 ac_cv_sizeof_long=0 5390 fi ;; 5391esac 5392else 5393 cat >conftest.$ac_ext <<_ACEOF 5394/* confdefs.h. */ 5395_ACEOF 5396cat confdefs.h >>conftest.$ac_ext 5397cat >>conftest.$ac_ext <<_ACEOF 5398/* end confdefs.h. */ 5399$ac_includes_default 5400static long int longval () { return (long int) (sizeof (long)); } 5401static unsigned long int ulongval () { return (long int) (sizeof (long)); } 5402#include <stdio.h> 5403#include <stdlib.h> 5404int 5405main () 5406{ 5407 5408 FILE *f = fopen ("conftest.val", "w"); 5409 if (! f) 5410 return 1; 5411 if (((long int) (sizeof (long))) < 0) 5412 { 5413 long int i = longval (); 5414 if (i != ((long int) (sizeof (long)))) 5415 return 1; 5416 fprintf (f, "%ld", i); 5417 } 5418 else 5419 { 5420 unsigned long int i = ulongval (); 5421 if (i != ((long int) (sizeof (long)))) 5422 return 1; 5423 fprintf (f, "%lu", i); 5424 } 5425 /* Do not output a trailing newline, as this causes \r\n confusion 5426 on some platforms. */ 5427 return ferror (f) || fclose (f) != 0; 5428 5429 ; 5430 return 0; 5431} 5432_ACEOF 5433rm -f conftest$ac_exeext 5434if { (ac_try="$ac_link" 5435case "(($ac_try" in 5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5437 *) ac_try_echo=$ac_try;; 5438esac 5439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5440$as_echo "$ac_try_echo") >&5 5441 (eval "$ac_link") 2>&5 5442 ac_status=$? 5443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5445 { (case "(($ac_try" in 5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5447 *) ac_try_echo=$ac_try;; 5448esac 5449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5450$as_echo "$ac_try_echo") >&5 5451 (eval "$ac_try") 2>&5 5452 ac_status=$? 5453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; }; then 5455 ac_cv_sizeof_long=`cat conftest.val` 5456else 5457 $as_echo "$as_me: program exited with status $ac_status" >&5 5458$as_echo "$as_me: failed program was:" >&5 5459sed 's/^/| /' conftest.$ac_ext >&5 5460 5461( exit $ac_status ) 5462if test "$ac_cv_type_long" = yes; then 5463 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5465{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 5466See \`config.log' for more details." >&5 5467$as_echo "$as_me: error: cannot compute sizeof (long) 5468See \`config.log' for more details." >&2;} 5469 { (exit 77); exit 77; }; }; } 5470 else 5471 ac_cv_sizeof_long=0 5472 fi 5473fi 5474rm -rf conftest.dSYM 5475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5476fi 5477rm -f conftest.val 5478fi 5479{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5480$as_echo "$ac_cv_sizeof_long" >&6; } 5481 5482 5483 5484cat >>confdefs.h <<_ACEOF 5485#define SIZEOF_LONG $ac_cv_sizeof_long 5486_ACEOF 5487 5488 5489{ $as_echo "$as_me:$LINENO: checking what directory libraries are found in" >&5 5490$as_echo_n "checking what directory libraries are found in... " >&6; } 5491if test "${ac_cv_cmu_lib_subdir+set}" = set; then 5492 $as_echo_n "(cached) " >&6 5493else 5494 test "X$with_lib_subdir" = "Xyes" && with_lib_subdir= 5495test "X$with_lib_subdir" = "Xno" && with_lib_subdir= 5496if test "X$with_lib_subdir" = "X" ; then 5497 ac_cv_cmu_lib_subdir=lib 5498 if test $ac_cv_sizeof_long -eq 4 ; then 5499 test -d /usr/lib32 && ac_cv_cmu_lib_subdir=lib32 5500 fi 5501 if test $ac_cv_sizeof_long -eq 8 ; then 5502 test -d /usr/lib64 && ac_cv_cmu_lib_subdir=lib64 5503 fi 5504else 5505 ac_cv_cmu_lib_subdir=$with_lib_subdir 5506fi 5507fi 5508{ $as_echo "$as_me:$LINENO: result: $ac_cv_cmu_lib_subdir" >&5 5509$as_echo "$ac_cv_cmu_lib_subdir" >&6; } 5510CMU_LIB_SUBDIR=$ac_cv_cmu_lib_subdir 5511 5512 5513 5514 5515 5516# Check whether --with-openssl was given. 5517if test "${with_openssl+set}" = set; then 5518 withval=$with_openssl; with_openssl=$withval 5519else 5520 with_openssl="yes" 5521fi 5522 5523 5524 save_CPPFLAGS=$CPPFLAGS 5525 save_LDFLAGS=$LDFLAGS 5526 5527 if test -d $with_openssl; then 5528 CPPFLAGS="${CPPFLAGS} -I${with_openssl}/include" 5529 5530 # this is CMU ADD LIBPATH 5531 if test "$andrew_cv_runpath_switch" = "none" ; then 5532 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}" 5533 else 5534 LDFLAGS="-L${with_openssl}/$CMU_LIB_SUBDIR $andrew_cv_runpath_switch${with_openssl}/$CMU_LIB_SUBDIR ${LDFLAGS}" 5535 fi 5536 5537 fi 5538 5539case "$with_openssl" in 5540 no) 5541 with_openssl="no";; 5542 *) 5543 LIB_RSAREF="" 5544 { $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5 5545$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; } 5546if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then 5547 $as_echo_n "(cached) " >&6 5548else 5549 ac_check_lib_save_LIBS=$LIBS 5550LIBS="-lrsaref $LIBS" 5551cat >conftest.$ac_ext <<_ACEOF 5552/* confdefs.h. */ 5553_ACEOF 5554cat confdefs.h >>conftest.$ac_ext 5555cat >>conftest.$ac_ext <<_ACEOF 5556/* end confdefs.h. */ 5557 5558/* Override any GCC internal prototype to avoid an error. 5559 Use char because int might match the return type of a GCC 5560 builtin and then its argument prototype would still apply. */ 5561#ifdef __cplusplus 5562extern "C" 5563#endif 5564char RSAPublicEncrypt (); 5565int 5566main () 5567{ 5568return RSAPublicEncrypt (); 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573rm -f conftest.$ac_objext conftest$ac_exeext 5574if { (ac_try="$ac_link" 5575case "(($ac_try" in 5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5577 *) ac_try_echo=$ac_try;; 5578esac 5579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5580$as_echo "$ac_try_echo") >&5 5581 (eval "$ac_link") 2>conftest.er1 5582 ac_status=$? 5583 grep -v '^ *+' conftest.er1 >conftest.err 5584 rm -f conftest.er1 5585 cat conftest.err >&5 5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); } && { 5588 test -z "$ac_c_werror_flag" || 5589 test ! -s conftest.err 5590 } && test -s conftest$ac_exeext && { 5591 test "$cross_compiling" = yes || 5592 $as_test_x conftest$ac_exeext 5593 }; then 5594 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 5595else 5596 $as_echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599 ac_cv_lib_rsaref_RSAPublicEncrypt=no 5600fi 5601 5602rm -rf conftest.dSYM 5603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5604 conftest$ac_exeext conftest.$ac_ext 5605LIBS=$ac_check_lib_save_LIBS 5606fi 5607{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 5608$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; } 5609if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = x""yes; then 5610 cmu_have_rsaref=yes; 5611 { $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lRSAglue" >&5 5612$as_echo_n "checking for RSAPublicEncrypt in -lRSAglue... " >&6; } 5613if test "${ac_cv_lib_RSAglue_RSAPublicEncrypt+set}" = set; then 5614 $as_echo_n "(cached) " >&6 5615else 5616 ac_check_lib_save_LIBS=$LIBS 5617LIBS="-lRSAglue $LIBS" 5618cat >conftest.$ac_ext <<_ACEOF 5619/* confdefs.h. */ 5620_ACEOF 5621cat confdefs.h >>conftest.$ac_ext 5622cat >>conftest.$ac_ext <<_ACEOF 5623/* end confdefs.h. */ 5624 5625/* Override any GCC internal prototype to avoid an error. 5626 Use char because int might match the return type of a GCC 5627 builtin and then its argument prototype would still apply. */ 5628#ifdef __cplusplus 5629extern "C" 5630#endif 5631char RSAPublicEncrypt (); 5632int 5633main () 5634{ 5635return RSAPublicEncrypt (); 5636 ; 5637 return 0; 5638} 5639_ACEOF 5640rm -f conftest.$ac_objext conftest$ac_exeext 5641if { (ac_try="$ac_link" 5642case "(($ac_try" in 5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5644 *) ac_try_echo=$ac_try;; 5645esac 5646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5647$as_echo "$ac_try_echo") >&5 5648 (eval "$ac_link") 2>conftest.er1 5649 ac_status=$? 5650 grep -v '^ *+' conftest.er1 >conftest.err 5651 rm -f conftest.er1 5652 cat conftest.err >&5 5653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5654 (exit $ac_status); } && { 5655 test -z "$ac_c_werror_flag" || 5656 test ! -s conftest.err 5657 } && test -s conftest$ac_exeext && { 5658 test "$cross_compiling" = yes || 5659 $as_test_x conftest$ac_exeext 5660 }; then 5661 ac_cv_lib_RSAglue_RSAPublicEncrypt=yes 5662else 5663 $as_echo "$as_me: failed program was:" >&5 5664sed 's/^/| /' conftest.$ac_ext >&5 5665 5666 ac_cv_lib_RSAglue_RSAPublicEncrypt=no 5667fi 5668 5669rm -rf conftest.dSYM 5670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5671 conftest$ac_exeext conftest.$ac_ext 5672LIBS=$ac_check_lib_save_LIBS 5673fi 5674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_RSAglue_RSAPublicEncrypt" >&5 5675$as_echo "$ac_cv_lib_RSAglue_RSAPublicEncrypt" >&6; } 5676if test "x$ac_cv_lib_RSAglue_RSAPublicEncrypt" = x""yes; then 5677 LIB_RSAREF="-lRSAglue -lrsaref" 5678else 5679 LIB_RSAREF="-lrsaref" 5680fi 5681 5682else 5683 cmu_have_rsaref=no 5684fi 5685 5686 5687 if test "${ac_cv_header_openssl_evp_h+set}" = set; then 5688 { $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 5689$as_echo_n "checking for openssl/evp.h... " >&6; } 5690if test "${ac_cv_header_openssl_evp_h+set}" = set; then 5691 $as_echo_n "(cached) " >&6 5692fi 5693{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 5694$as_echo "$ac_cv_header_openssl_evp_h" >&6; } 5695else 5696 # Is the header compilable? 5697{ $as_echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5 5698$as_echo_n "checking openssl/evp.h usability... " >&6; } 5699cat >conftest.$ac_ext <<_ACEOF 5700/* confdefs.h. */ 5701_ACEOF 5702cat confdefs.h >>conftest.$ac_ext 5703cat >>conftest.$ac_ext <<_ACEOF 5704/* end confdefs.h. */ 5705$ac_includes_default 5706#include <openssl/evp.h> 5707_ACEOF 5708rm -f conftest.$ac_objext 5709if { (ac_try="$ac_compile" 5710case "(($ac_try" in 5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5712 *) ac_try_echo=$ac_try;; 5713esac 5714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5715$as_echo "$ac_try_echo") >&5 5716 (eval "$ac_compile") 2>conftest.er1 5717 ac_status=$? 5718 grep -v '^ *+' conftest.er1 >conftest.err 5719 rm -f conftest.er1 5720 cat conftest.err >&5 5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5722 (exit $ac_status); } && { 5723 test -z "$ac_c_werror_flag" || 5724 test ! -s conftest.err 5725 } && test -s conftest.$ac_objext; then 5726 ac_header_compiler=yes 5727else 5728 $as_echo "$as_me: failed program was:" >&5 5729sed 's/^/| /' conftest.$ac_ext >&5 5730 5731 ac_header_compiler=no 5732fi 5733 5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5735{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5736$as_echo "$ac_header_compiler" >&6; } 5737 5738# Is the header present? 5739{ $as_echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5 5740$as_echo_n "checking openssl/evp.h presence... " >&6; } 5741cat >conftest.$ac_ext <<_ACEOF 5742/* confdefs.h. */ 5743_ACEOF 5744cat confdefs.h >>conftest.$ac_ext 5745cat >>conftest.$ac_ext <<_ACEOF 5746/* end confdefs.h. */ 5747#include <openssl/evp.h> 5748_ACEOF 5749if { (ac_try="$ac_cpp conftest.$ac_ext" 5750case "(($ac_try" in 5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5752 *) ac_try_echo=$ac_try;; 5753esac 5754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5755$as_echo "$ac_try_echo") >&5 5756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5757 ac_status=$? 5758 grep -v '^ *+' conftest.er1 >conftest.err 5759 rm -f conftest.er1 5760 cat conftest.err >&5 5761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); } >/dev/null && { 5763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5764 test ! -s conftest.err 5765 }; then 5766 ac_header_preproc=yes 5767else 5768 $as_echo "$as_me: failed program was:" >&5 5769sed 's/^/| /' conftest.$ac_ext >&5 5770 5771 ac_header_preproc=no 5772fi 5773 5774rm -f conftest.err conftest.$ac_ext 5775{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5776$as_echo "$ac_header_preproc" >&6; } 5777 5778# So? What about this header? 5779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5780 yes:no: ) 5781 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5 5782$as_echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5783 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5 5784$as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;} 5785 ac_header_preproc=yes 5786 ;; 5787 no:yes:* ) 5788 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5 5789$as_echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;} 5790 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5 5791$as_echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;} 5792 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5 5793$as_echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;} 5794 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5 5795$as_echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;} 5796 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5 5797$as_echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;} 5798 { $as_echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5 5799$as_echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;} 5800 5801 ;; 5802esac 5803{ $as_echo "$as_me:$LINENO: checking for openssl/evp.h" >&5 5804$as_echo_n "checking for openssl/evp.h... " >&6; } 5805if test "${ac_cv_header_openssl_evp_h+set}" = set; then 5806 $as_echo_n "(cached) " >&6 5807else 5808 ac_cv_header_openssl_evp_h=$ac_header_preproc 5809fi 5810{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5 5811$as_echo "$ac_cv_header_openssl_evp_h" >&6; } 5812 5813fi 5814if test "x$ac_cv_header_openssl_evp_h" = x""yes; then 5815 5816 { $as_echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5 5817$as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; } 5818if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then 5819 $as_echo_n "(cached) " >&6 5820else 5821 ac_check_lib_save_LIBS=$LIBS 5822LIBS="-lcrypto $LIB_RSAREF $LIBS" 5823cat >conftest.$ac_ext <<_ACEOF 5824/* confdefs.h. */ 5825_ACEOF 5826cat confdefs.h >>conftest.$ac_ext 5827cat >>conftest.$ac_ext <<_ACEOF 5828/* end confdefs.h. */ 5829 5830/* Override any GCC internal prototype to avoid an error. 5831 Use char because int might match the return type of a GCC 5832 builtin and then its argument prototype would still apply. */ 5833#ifdef __cplusplus 5834extern "C" 5835#endif 5836char EVP_DigestInit (); 5837int 5838main () 5839{ 5840return EVP_DigestInit (); 5841 ; 5842 return 0; 5843} 5844_ACEOF 5845rm -f conftest.$ac_objext conftest$ac_exeext 5846if { (ac_try="$ac_link" 5847case "(($ac_try" in 5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5849 *) ac_try_echo=$ac_try;; 5850esac 5851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5852$as_echo "$ac_try_echo") >&5 5853 (eval "$ac_link") 2>conftest.er1 5854 ac_status=$? 5855 grep -v '^ *+' conftest.er1 >conftest.err 5856 rm -f conftest.er1 5857 cat conftest.err >&5 5858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); } && { 5860 test -z "$ac_c_werror_flag" || 5861 test ! -s conftest.err 5862 } && test -s conftest$ac_exeext && { 5863 test "$cross_compiling" = yes || 5864 $as_test_x conftest$ac_exeext 5865 }; then 5866 ac_cv_lib_crypto_EVP_DigestInit=yes 5867else 5868 $as_echo "$as_me: failed program was:" >&5 5869sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 ac_cv_lib_crypto_EVP_DigestInit=no 5872fi 5873 5874rm -rf conftest.dSYM 5875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5876 conftest$ac_exeext conftest.$ac_ext 5877LIBS=$ac_check_lib_save_LIBS 5878fi 5879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5 5880$as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; } 5881if test "x$ac_cv_lib_crypto_EVP_DigestInit" = x""yes; then 5882 with_openssl="yes" 5883else 5884 with_openssl="no" 5885fi 5886 5887else 5888 with_openssl=no 5889fi 5890 5891 5892 ;; 5893esac 5894 5895 if test "$with_openssl" != "no"; then 5896 5897cat >>confdefs.h <<\_ACEOF 5898#define HAVE_OPENSSL /**/ 5899_ACEOF 5900 5901 else 5902 CPPFLAGS=$save_CPPFLAGS 5903 LDFLAGS=$save_LDFLAGS 5904 fi 5905 5906{ $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5 5907$as_echo_n "checking for OpenSSL... " >&6; } 5908{ $as_echo "$as_me:$LINENO: result: $with_openssl" >&5 5909$as_echo "$with_openssl" >&6; } 5910 5911 5912 5913# Check whether --with-des was given. 5914if test "${with_des+set}" = set; then 5915 withval=$with_des; with_des=$withval 5916else 5917 with_des=yes 5918fi 5919 5920 5921LIB_DES="" 5922if test "$with_des" != no; then 5923 if test -d $with_des; then 5924 CPPFLAGS="$CPPFLAGS -I${with_des}/include" 5925 LDFLAGS="$LDFLAGS -L${with_des}/lib" 5926 fi 5927 5928 if test "$with_openssl" != no; then 5929 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5 5930$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; } 5931if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then 5932 $as_echo_n "(cached) " >&6 5933else 5934 ac_check_lib_save_LIBS=$LIBS 5935LIBS="-lcrypto $LIB_RSAREF $LIBS" 5936cat >conftest.$ac_ext <<_ACEOF 5937/* confdefs.h. */ 5938_ACEOF 5939cat confdefs.h >>conftest.$ac_ext 5940cat >>conftest.$ac_ext <<_ACEOF 5941/* end confdefs.h. */ 5942 5943/* Override any GCC internal prototype to avoid an error. 5944 Use char because int might match the return type of a GCC 5945 builtin and then its argument prototype would still apply. */ 5946#ifdef __cplusplus 5947extern "C" 5948#endif 5949char des_cbc_encrypt (); 5950int 5951main () 5952{ 5953return des_cbc_encrypt (); 5954 ; 5955 return 0; 5956} 5957_ACEOF 5958rm -f conftest.$ac_objext conftest$ac_exeext 5959if { (ac_try="$ac_link" 5960case "(($ac_try" in 5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5962 *) ac_try_echo=$ac_try;; 5963esac 5964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5965$as_echo "$ac_try_echo") >&5 5966 (eval "$ac_link") 2>conftest.er1 5967 ac_status=$? 5968 grep -v '^ *+' conftest.er1 >conftest.err 5969 rm -f conftest.er1 5970 cat conftest.err >&5 5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } && { 5973 test -z "$ac_c_werror_flag" || 5974 test ! -s conftest.err 5975 } && test -s conftest$ac_exeext && { 5976 test "$cross_compiling" = yes || 5977 $as_test_x conftest$ac_exeext 5978 }; then 5979 ac_cv_lib_crypto_des_cbc_encrypt=yes 5980else 5981 $as_echo "$as_me: failed program was:" >&5 5982sed 's/^/| /' conftest.$ac_ext >&5 5983 5984 ac_cv_lib_crypto_des_cbc_encrypt=no 5985fi 5986 5987rm -rf conftest.dSYM 5988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5989 conftest$ac_exeext conftest.$ac_ext 5990LIBS=$ac_check_lib_save_LIBS 5991fi 5992{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 5993$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; } 5994if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = x""yes; then 5995 5996 if test "${ac_cv_header_openssl_des_h+set}" = set; then 5997 { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 5998$as_echo_n "checking for openssl/des.h... " >&6; } 5999if test "${ac_cv_header_openssl_des_h+set}" = set; then 6000 $as_echo_n "(cached) " >&6 6001fi 6002{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6003$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6004else 6005 # Is the header compilable? 6006{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 6007$as_echo_n "checking openssl/des.h usability... " >&6; } 6008cat >conftest.$ac_ext <<_ACEOF 6009/* confdefs.h. */ 6010_ACEOF 6011cat confdefs.h >>conftest.$ac_ext 6012cat >>conftest.$ac_ext <<_ACEOF 6013/* end confdefs.h. */ 6014$ac_includes_default 6015#include <openssl/des.h> 6016_ACEOF 6017rm -f conftest.$ac_objext 6018if { (ac_try="$ac_compile" 6019case "(($ac_try" in 6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6021 *) ac_try_echo=$ac_try;; 6022esac 6023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6024$as_echo "$ac_try_echo") >&5 6025 (eval "$ac_compile") 2>conftest.er1 6026 ac_status=$? 6027 grep -v '^ *+' conftest.er1 >conftest.err 6028 rm -f conftest.er1 6029 cat conftest.err >&5 6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6031 (exit $ac_status); } && { 6032 test -z "$ac_c_werror_flag" || 6033 test ! -s conftest.err 6034 } && test -s conftest.$ac_objext; then 6035 ac_header_compiler=yes 6036else 6037 $as_echo "$as_me: failed program was:" >&5 6038sed 's/^/| /' conftest.$ac_ext >&5 6039 6040 ac_header_compiler=no 6041fi 6042 6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6044{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6045$as_echo "$ac_header_compiler" >&6; } 6046 6047# Is the header present? 6048{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 6049$as_echo_n "checking openssl/des.h presence... " >&6; } 6050cat >conftest.$ac_ext <<_ACEOF 6051/* confdefs.h. */ 6052_ACEOF 6053cat confdefs.h >>conftest.$ac_ext 6054cat >>conftest.$ac_ext <<_ACEOF 6055/* end confdefs.h. */ 6056#include <openssl/des.h> 6057_ACEOF 6058if { (ac_try="$ac_cpp conftest.$ac_ext" 6059case "(($ac_try" in 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6061 *) ac_try_echo=$ac_try;; 6062esac 6063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6064$as_echo "$ac_try_echo") >&5 6065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6066 ac_status=$? 6067 grep -v '^ *+' conftest.er1 >conftest.err 6068 rm -f conftest.er1 6069 cat conftest.err >&5 6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); } >/dev/null && { 6072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6073 test ! -s conftest.err 6074 }; then 6075 ac_header_preproc=yes 6076else 6077 $as_echo "$as_me: failed program was:" >&5 6078sed 's/^/| /' conftest.$ac_ext >&5 6079 6080 ac_header_preproc=no 6081fi 6082 6083rm -f conftest.err conftest.$ac_ext 6084{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6085$as_echo "$ac_header_preproc" >&6; } 6086 6087# So? What about this header? 6088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6089 yes:no: ) 6090 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 6091$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6092 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5 6093$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;} 6094 ac_header_preproc=yes 6095 ;; 6096 no:yes:* ) 6097 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 6098$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 6099 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 6100$as_echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 6101 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5 6102$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;} 6103 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5 6104$as_echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;} 6105 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 6106$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 6107 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5 6108$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;} 6109 6110 ;; 6111esac 6112{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 6113$as_echo_n "checking for openssl/des.h... " >&6; } 6114if test "${ac_cv_header_openssl_des_h+set}" = set; then 6115 $as_echo_n "(cached) " >&6 6116else 6117 ac_cv_header_openssl_des_h=$ac_header_preproc 6118fi 6119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6120$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6121 6122fi 6123if test "x$ac_cv_header_openssl_des_h" = x""yes; then 6124 6125cat >>confdefs.h <<\_ACEOF 6126#define WITH_SSL_DES /**/ 6127_ACEOF 6128 6129 LIB_DES="-lcrypto"; 6130 with_des=yes 6131else 6132 with_des=no 6133fi 6134 6135 6136else 6137 with_des=no 6138fi 6139 6140 6141 if test "$with_des" = no; then 6142 { $as_echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5 6143$as_echo_n "checking for DES_cbc_encrypt in -lcrypto... " >&6; } 6144if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then 6145 $as_echo_n "(cached) " >&6 6146else 6147 ac_check_lib_save_LIBS=$LIBS 6148LIBS="-lcrypto $LIB_RSAREF $LIBS" 6149cat >conftest.$ac_ext <<_ACEOF 6150/* confdefs.h. */ 6151_ACEOF 6152cat confdefs.h >>conftest.$ac_ext 6153cat >>conftest.$ac_ext <<_ACEOF 6154/* end confdefs.h. */ 6155 6156/* Override any GCC internal prototype to avoid an error. 6157 Use char because int might match the return type of a GCC 6158 builtin and then its argument prototype would still apply. */ 6159#ifdef __cplusplus 6160extern "C" 6161#endif 6162char DES_cbc_encrypt (); 6163int 6164main () 6165{ 6166return DES_cbc_encrypt (); 6167 ; 6168 return 0; 6169} 6170_ACEOF 6171rm -f conftest.$ac_objext conftest$ac_exeext 6172if { (ac_try="$ac_link" 6173case "(($ac_try" in 6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6175 *) ac_try_echo=$ac_try;; 6176esac 6177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6178$as_echo "$ac_try_echo") >&5 6179 (eval "$ac_link") 2>conftest.er1 6180 ac_status=$? 6181 grep -v '^ *+' conftest.er1 >conftest.err 6182 rm -f conftest.er1 6183 cat conftest.err >&5 6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); } && { 6186 test -z "$ac_c_werror_flag" || 6187 test ! -s conftest.err 6188 } && test -s conftest$ac_exeext && { 6189 test "$cross_compiling" = yes || 6190 $as_test_x conftest$ac_exeext 6191 }; then 6192 ac_cv_lib_crypto_DES_cbc_encrypt=yes 6193else 6194 $as_echo "$as_me: failed program was:" >&5 6195sed 's/^/| /' conftest.$ac_ext >&5 6196 6197 ac_cv_lib_crypto_DES_cbc_encrypt=no 6198fi 6199 6200rm -rf conftest.dSYM 6201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6202 conftest$ac_exeext conftest.$ac_ext 6203LIBS=$ac_check_lib_save_LIBS 6204fi 6205{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5 6206$as_echo "$ac_cv_lib_crypto_DES_cbc_encrypt" >&6; } 6207if test "x$ac_cv_lib_crypto_DES_cbc_encrypt" = x""yes; then 6208 6209 if test "${ac_cv_header_openssl_des_h+set}" = set; then 6210 { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 6211$as_echo_n "checking for openssl/des.h... " >&6; } 6212if test "${ac_cv_header_openssl_des_h+set}" = set; then 6213 $as_echo_n "(cached) " >&6 6214fi 6215{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6216$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6217else 6218 # Is the header compilable? 6219{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 6220$as_echo_n "checking openssl/des.h usability... " >&6; } 6221cat >conftest.$ac_ext <<_ACEOF 6222/* confdefs.h. */ 6223_ACEOF 6224cat confdefs.h >>conftest.$ac_ext 6225cat >>conftest.$ac_ext <<_ACEOF 6226/* end confdefs.h. */ 6227$ac_includes_default 6228#include <openssl/des.h> 6229_ACEOF 6230rm -f conftest.$ac_objext 6231if { (ac_try="$ac_compile" 6232case "(($ac_try" in 6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6234 *) ac_try_echo=$ac_try;; 6235esac 6236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6237$as_echo "$ac_try_echo") >&5 6238 (eval "$ac_compile") 2>conftest.er1 6239 ac_status=$? 6240 grep -v '^ *+' conftest.er1 >conftest.err 6241 rm -f conftest.er1 6242 cat conftest.err >&5 6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } && { 6245 test -z "$ac_c_werror_flag" || 6246 test ! -s conftest.err 6247 } && test -s conftest.$ac_objext; then 6248 ac_header_compiler=yes 6249else 6250 $as_echo "$as_me: failed program was:" >&5 6251sed 's/^/| /' conftest.$ac_ext >&5 6252 6253 ac_header_compiler=no 6254fi 6255 6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6257{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6258$as_echo "$ac_header_compiler" >&6; } 6259 6260# Is the header present? 6261{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 6262$as_echo_n "checking openssl/des.h presence... " >&6; } 6263cat >conftest.$ac_ext <<_ACEOF 6264/* confdefs.h. */ 6265_ACEOF 6266cat confdefs.h >>conftest.$ac_ext 6267cat >>conftest.$ac_ext <<_ACEOF 6268/* end confdefs.h. */ 6269#include <openssl/des.h> 6270_ACEOF 6271if { (ac_try="$ac_cpp conftest.$ac_ext" 6272case "(($ac_try" in 6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6274 *) ac_try_echo=$ac_try;; 6275esac 6276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6277$as_echo "$ac_try_echo") >&5 6278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6279 ac_status=$? 6280 grep -v '^ *+' conftest.er1 >conftest.err 6281 rm -f conftest.er1 6282 cat conftest.err >&5 6283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6284 (exit $ac_status); } >/dev/null && { 6285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6286 test ! -s conftest.err 6287 }; then 6288 ac_header_preproc=yes 6289else 6290 $as_echo "$as_me: failed program was:" >&5 6291sed 's/^/| /' conftest.$ac_ext >&5 6292 6293 ac_header_preproc=no 6294fi 6295 6296rm -f conftest.err conftest.$ac_ext 6297{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6298$as_echo "$ac_header_preproc" >&6; } 6299 6300# So? What about this header? 6301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6302 yes:no: ) 6303 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 6304$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6305 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5 6306$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;} 6307 ac_header_preproc=yes 6308 ;; 6309 no:yes:* ) 6310 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 6311$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 6312 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 6313$as_echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 6314 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5 6315$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;} 6316 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5 6317$as_echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;} 6318 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 6319$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 6320 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5 6321$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;} 6322 6323 ;; 6324esac 6325{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 6326$as_echo_n "checking for openssl/des.h... " >&6; } 6327if test "${ac_cv_header_openssl_des_h+set}" = set; then 6328 $as_echo_n "(cached) " >&6 6329else 6330 ac_cv_header_openssl_des_h=$ac_header_preproc 6331fi 6332{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6333$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6334 6335fi 6336if test "x$ac_cv_header_openssl_des_h" = x""yes; then 6337 6338cat >>confdefs.h <<\_ACEOF 6339#define WITH_SSL_DES /**/ 6340_ACEOF 6341 6342 LIB_DES="-lcrypto"; 6343 with_des=yes 6344else 6345 with_des=no 6346fi 6347 6348 6349else 6350 with_des=no 6351fi 6352 6353 fi 6354 fi 6355 6356 if test "$with_des" = no; then 6357 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 6358$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 6359if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 6360 $as_echo_n "(cached) " >&6 6361else 6362 ac_check_lib_save_LIBS=$LIBS 6363LIBS="-ldes $LIBS" 6364cat >conftest.$ac_ext <<_ACEOF 6365/* confdefs.h. */ 6366_ACEOF 6367cat confdefs.h >>conftest.$ac_ext 6368cat >>conftest.$ac_ext <<_ACEOF 6369/* end confdefs.h. */ 6370 6371/* Override any GCC internal prototype to avoid an error. 6372 Use char because int might match the return type of a GCC 6373 builtin and then its argument prototype would still apply. */ 6374#ifdef __cplusplus 6375extern "C" 6376#endif 6377char des_cbc_encrypt (); 6378int 6379main () 6380{ 6381return des_cbc_encrypt (); 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386rm -f conftest.$ac_objext conftest$ac_exeext 6387if { (ac_try="$ac_link" 6388case "(($ac_try" in 6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6390 *) ac_try_echo=$ac_try;; 6391esac 6392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6393$as_echo "$ac_try_echo") >&5 6394 (eval "$ac_link") 2>conftest.er1 6395 ac_status=$? 6396 grep -v '^ *+' conftest.er1 >conftest.err 6397 rm -f conftest.er1 6398 cat conftest.err >&5 6399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } && { 6401 test -z "$ac_c_werror_flag" || 6402 test ! -s conftest.err 6403 } && test -s conftest$ac_exeext && { 6404 test "$cross_compiling" = yes || 6405 $as_test_x conftest$ac_exeext 6406 }; then 6407 ac_cv_lib_des_des_cbc_encrypt=yes 6408else 6409 $as_echo "$as_me: failed program was:" >&5 6410sed 's/^/| /' conftest.$ac_ext >&5 6411 6412 ac_cv_lib_des_des_cbc_encrypt=no 6413fi 6414 6415rm -rf conftest.dSYM 6416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6417 conftest$ac_exeext conftest.$ac_ext 6418LIBS=$ac_check_lib_save_LIBS 6419fi 6420{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 6421$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 6422if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then 6423 LIB_DES="-ldes"; 6424 with_des=yes 6425else 6426 with_des=no 6427fi 6428 6429 fi 6430 6431 if test "$with_des" = no; then 6432 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 6433$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 6434if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 6435 $as_echo_n "(cached) " >&6 6436else 6437 ac_check_lib_save_LIBS=$LIBS 6438LIBS="-ldes425 $LIBS" 6439cat >conftest.$ac_ext <<_ACEOF 6440/* confdefs.h. */ 6441_ACEOF 6442cat confdefs.h >>conftest.$ac_ext 6443cat >>conftest.$ac_ext <<_ACEOF 6444/* end confdefs.h. */ 6445 6446/* Override any GCC internal prototype to avoid an error. 6447 Use char because int might match the return type of a GCC 6448 builtin and then its argument prototype would still apply. */ 6449#ifdef __cplusplus 6450extern "C" 6451#endif 6452char des_cbc_encrypt (); 6453int 6454main () 6455{ 6456return des_cbc_encrypt (); 6457 ; 6458 return 0; 6459} 6460_ACEOF 6461rm -f conftest.$ac_objext conftest$ac_exeext 6462if { (ac_try="$ac_link" 6463case "(($ac_try" in 6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6465 *) ac_try_echo=$ac_try;; 6466esac 6467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6468$as_echo "$ac_try_echo") >&5 6469 (eval "$ac_link") 2>conftest.er1 6470 ac_status=$? 6471 grep -v '^ *+' conftest.er1 >conftest.err 6472 rm -f conftest.er1 6473 cat conftest.err >&5 6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6475 (exit $ac_status); } && { 6476 test -z "$ac_c_werror_flag" || 6477 test ! -s conftest.err 6478 } && test -s conftest$ac_exeext && { 6479 test "$cross_compiling" = yes || 6480 $as_test_x conftest$ac_exeext 6481 }; then 6482 ac_cv_lib_des425_des_cbc_encrypt=yes 6483else 6484 $as_echo "$as_me: failed program was:" >&5 6485sed 's/^/| /' conftest.$ac_ext >&5 6486 6487 ac_cv_lib_des425_des_cbc_encrypt=no 6488fi 6489 6490rm -rf conftest.dSYM 6491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6492 conftest$ac_exeext conftest.$ac_ext 6493LIBS=$ac_check_lib_save_LIBS 6494fi 6495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 6496$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 6497if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then 6498 LIB_DES="-ldes425"; 6499 with_des=yes 6500else 6501 with_des=no 6502fi 6503 6504 fi 6505 6506 if test "$with_des" = no; then 6507 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes524" >&5 6508$as_echo_n "checking for des_cbc_encrypt in -ldes524... " >&6; } 6509if test "${ac_cv_lib_des524_des_cbc_encrypt+set}" = set; then 6510 $as_echo_n "(cached) " >&6 6511else 6512 ac_check_lib_save_LIBS=$LIBS 6513LIBS="-ldes524 $LIBS" 6514cat >conftest.$ac_ext <<_ACEOF 6515/* confdefs.h. */ 6516_ACEOF 6517cat confdefs.h >>conftest.$ac_ext 6518cat >>conftest.$ac_ext <<_ACEOF 6519/* end confdefs.h. */ 6520 6521/* Override any GCC internal prototype to avoid an error. 6522 Use char because int might match the return type of a GCC 6523 builtin and then its argument prototype would still apply. */ 6524#ifdef __cplusplus 6525extern "C" 6526#endif 6527char des_cbc_encrypt (); 6528int 6529main () 6530{ 6531return des_cbc_encrypt (); 6532 ; 6533 return 0; 6534} 6535_ACEOF 6536rm -f conftest.$ac_objext conftest$ac_exeext 6537if { (ac_try="$ac_link" 6538case "(($ac_try" in 6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6540 *) ac_try_echo=$ac_try;; 6541esac 6542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6543$as_echo "$ac_try_echo") >&5 6544 (eval "$ac_link") 2>conftest.er1 6545 ac_status=$? 6546 grep -v '^ *+' conftest.er1 >conftest.err 6547 rm -f conftest.er1 6548 cat conftest.err >&5 6549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550 (exit $ac_status); } && { 6551 test -z "$ac_c_werror_flag" || 6552 test ! -s conftest.err 6553 } && test -s conftest$ac_exeext && { 6554 test "$cross_compiling" = yes || 6555 $as_test_x conftest$ac_exeext 6556 }; then 6557 ac_cv_lib_des524_des_cbc_encrypt=yes 6558else 6559 $as_echo "$as_me: failed program was:" >&5 6560sed 's/^/| /' conftest.$ac_ext >&5 6561 6562 ac_cv_lib_des524_des_cbc_encrypt=no 6563fi 6564 6565rm -rf conftest.dSYM 6566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6567 conftest$ac_exeext conftest.$ac_ext 6568LIBS=$ac_check_lib_save_LIBS 6569fi 6570{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des524_des_cbc_encrypt" >&5 6571$as_echo "$ac_cv_lib_des524_des_cbc_encrypt" >&6; } 6572if test "x$ac_cv_lib_des524_des_cbc_encrypt" = x""yes; then 6573 LIB_DES="-ldes524"; 6574 with_des=yes 6575else 6576 with_des=no 6577fi 6578 6579 fi 6580 6581 if test "$with_des" = no; then 6582 6583 LIB_RSAREF="" 6584 { $as_echo "$as_me:$LINENO: checking for RSAPublicEncrypt in -lrsaref" >&5 6585$as_echo_n "checking for RSAPublicEncrypt in -lrsaref... " >&6; } 6586if test "${ac_cv_lib_rsaref_RSAPublicEncrypt+set}" = set; then 6587 $as_echo_n "(cached) " >&6 6588else 6589 ac_check_lib_save_LIBS=$LIBS 6590LIBS="-lrsaref $LIBS" 6591cat >conftest.$ac_ext <<_ACEOF 6592/* confdefs.h. */ 6593_ACEOF 6594cat confdefs.h >>conftest.$ac_ext 6595cat >>conftest.$ac_ext <<_ACEOF 6596/* end confdefs.h. */ 6597 6598/* Override any GCC internal prototype to avoid an error. 6599 Use char because int might match the return type of a GCC 6600 builtin and then its argument prototype would still apply. */ 6601#ifdef __cplusplus 6602extern "C" 6603#endif 6604char RSAPublicEncrypt (); 6605int 6606main () 6607{ 6608return RSAPublicEncrypt (); 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613rm -f conftest.$ac_objext conftest$ac_exeext 6614if { (ac_try="$ac_link" 6615case "(($ac_try" in 6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6617 *) ac_try_echo=$ac_try;; 6618esac 6619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6620$as_echo "$ac_try_echo") >&5 6621 (eval "$ac_link") 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && { 6628 test -z "$ac_c_werror_flag" || 6629 test ! -s conftest.err 6630 } && test -s conftest$ac_exeext && { 6631 test "$cross_compiling" = yes || 6632 $as_test_x conftest$ac_exeext 6633 }; then 6634 ac_cv_lib_rsaref_RSAPublicEncrypt=yes 6635else 6636 $as_echo "$as_me: failed program was:" >&5 6637sed 's/^/| /' conftest.$ac_ext >&5 6638 6639 ac_cv_lib_rsaref_RSAPublicEncrypt=no 6640fi 6641 6642rm -rf conftest.dSYM 6643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6644 conftest$ac_exeext conftest.$ac_ext 6645LIBS=$ac_check_lib_save_LIBS 6646fi 6647{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rsaref_RSAPublicEncrypt" >&5 6648$as_echo "$ac_cv_lib_rsaref_RSAPublicEncrypt" >&6; } 6649if test "x$ac_cv_lib_rsaref_RSAPublicEncrypt" = x""yes; then 6650 LIB_RSAREF="-lRSAglue -lrsaref"; cmu_have_rsaref=yes 6651else 6652 cmu_have_rsaref=no 6653fi 6654 6655 6656 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5 6657$as_echo_n "checking for des_cbc_encrypt in -lcrypto... " >&6; } 6658if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then 6659 $as_echo_n "(cached) " >&6 6660else 6661 ac_check_lib_save_LIBS=$LIBS 6662LIBS="-lcrypto $LIB_RSAREF $LIBS" 6663cat >conftest.$ac_ext <<_ACEOF 6664/* confdefs.h. */ 6665_ACEOF 6666cat confdefs.h >>conftest.$ac_ext 6667cat >>conftest.$ac_ext <<_ACEOF 6668/* end confdefs.h. */ 6669 6670/* Override any GCC internal prototype to avoid an error. 6671 Use char because int might match the return type of a GCC 6672 builtin and then its argument prototype would still apply. */ 6673#ifdef __cplusplus 6674extern "C" 6675#endif 6676char des_cbc_encrypt (); 6677int 6678main () 6679{ 6680return des_cbc_encrypt (); 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685rm -f conftest.$ac_objext conftest$ac_exeext 6686if { (ac_try="$ac_link" 6687case "(($ac_try" in 6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6689 *) ac_try_echo=$ac_try;; 6690esac 6691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6692$as_echo "$ac_try_echo") >&5 6693 (eval "$ac_link") 2>conftest.er1 6694 ac_status=$? 6695 grep -v '^ *+' conftest.er1 >conftest.err 6696 rm -f conftest.er1 6697 cat conftest.err >&5 6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6699 (exit $ac_status); } && { 6700 test -z "$ac_c_werror_flag" || 6701 test ! -s conftest.err 6702 } && test -s conftest$ac_exeext && { 6703 test "$cross_compiling" = yes || 6704 $as_test_x conftest$ac_exeext 6705 }; then 6706 ac_cv_lib_crypto_des_cbc_encrypt=yes 6707else 6708 $as_echo "$as_me: failed program was:" >&5 6709sed 's/^/| /' conftest.$ac_ext >&5 6710 6711 ac_cv_lib_crypto_des_cbc_encrypt=no 6712fi 6713 6714rm -rf conftest.dSYM 6715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6716 conftest$ac_exeext conftest.$ac_ext 6717LIBS=$ac_check_lib_save_LIBS 6718fi 6719{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5 6720$as_echo "$ac_cv_lib_crypto_des_cbc_encrypt" >&6; } 6721if test "x$ac_cv_lib_crypto_des_cbc_encrypt" = x""yes; then 6722 6723 if test "${ac_cv_header_openssl_des_h+set}" = set; then 6724 { $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 6725$as_echo_n "checking for openssl/des.h... " >&6; } 6726if test "${ac_cv_header_openssl_des_h+set}" = set; then 6727 $as_echo_n "(cached) " >&6 6728fi 6729{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6730$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6731else 6732 # Is the header compilable? 6733{ $as_echo "$as_me:$LINENO: checking openssl/des.h usability" >&5 6734$as_echo_n "checking openssl/des.h usability... " >&6; } 6735cat >conftest.$ac_ext <<_ACEOF 6736/* confdefs.h. */ 6737_ACEOF 6738cat confdefs.h >>conftest.$ac_ext 6739cat >>conftest.$ac_ext <<_ACEOF 6740/* end confdefs.h. */ 6741$ac_includes_default 6742#include <openssl/des.h> 6743_ACEOF 6744rm -f conftest.$ac_objext 6745if { (ac_try="$ac_compile" 6746case "(($ac_try" in 6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6748 *) ac_try_echo=$ac_try;; 6749esac 6750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6751$as_echo "$ac_try_echo") >&5 6752 (eval "$ac_compile") 2>conftest.er1 6753 ac_status=$? 6754 grep -v '^ *+' conftest.er1 >conftest.err 6755 rm -f conftest.er1 6756 cat conftest.err >&5 6757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6758 (exit $ac_status); } && { 6759 test -z "$ac_c_werror_flag" || 6760 test ! -s conftest.err 6761 } && test -s conftest.$ac_objext; then 6762 ac_header_compiler=yes 6763else 6764 $as_echo "$as_me: failed program was:" >&5 6765sed 's/^/| /' conftest.$ac_ext >&5 6766 6767 ac_header_compiler=no 6768fi 6769 6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6771{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6772$as_echo "$ac_header_compiler" >&6; } 6773 6774# Is the header present? 6775{ $as_echo "$as_me:$LINENO: checking openssl/des.h presence" >&5 6776$as_echo_n "checking openssl/des.h presence... " >&6; } 6777cat >conftest.$ac_ext <<_ACEOF 6778/* confdefs.h. */ 6779_ACEOF 6780cat confdefs.h >>conftest.$ac_ext 6781cat >>conftest.$ac_ext <<_ACEOF 6782/* end confdefs.h. */ 6783#include <openssl/des.h> 6784_ACEOF 6785if { (ac_try="$ac_cpp conftest.$ac_ext" 6786case "(($ac_try" in 6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6788 *) ac_try_echo=$ac_try;; 6789esac 6790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6791$as_echo "$ac_try_echo") >&5 6792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6793 ac_status=$? 6794 grep -v '^ *+' conftest.er1 >conftest.err 6795 rm -f conftest.er1 6796 cat conftest.err >&5 6797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6798 (exit $ac_status); } >/dev/null && { 6799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6800 test ! -s conftest.err 6801 }; then 6802 ac_header_preproc=yes 6803else 6804 $as_echo "$as_me: failed program was:" >&5 6805sed 's/^/| /' conftest.$ac_ext >&5 6806 6807 ac_header_preproc=no 6808fi 6809 6810rm -f conftest.err conftest.$ac_ext 6811{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6812$as_echo "$ac_header_preproc" >&6; } 6813 6814# So? What about this header? 6815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6816 yes:no: ) 6817 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&5 6818$as_echo "$as_me: WARNING: openssl/des.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6819 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the compiler's result" >&5 6820$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the compiler's result" >&2;} 6821 ac_header_preproc=yes 6822 ;; 6823 no:yes:* ) 6824 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: present but cannot be compiled" >&5 6825$as_echo "$as_me: WARNING: openssl/des.h: present but cannot be compiled" >&2;} 6826 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: check for missing prerequisite headers?" >&5 6827$as_echo "$as_me: WARNING: openssl/des.h: check for missing prerequisite headers?" >&2;} 6828 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: see the Autoconf documentation" >&5 6829$as_echo "$as_me: WARNING: openssl/des.h: see the Autoconf documentation" >&2;} 6830 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&5 6831$as_echo "$as_me: WARNING: openssl/des.h: section \"Present But Cannot Be Compiled\"" >&2;} 6832 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&5 6833$as_echo "$as_me: WARNING: openssl/des.h: proceeding with the preprocessor's result" >&2;} 6834 { $as_echo "$as_me:$LINENO: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&5 6835$as_echo "$as_me: WARNING: openssl/des.h: in the future, the compiler will take precedence" >&2;} 6836 6837 ;; 6838esac 6839{ $as_echo "$as_me:$LINENO: checking for openssl/des.h" >&5 6840$as_echo_n "checking for openssl/des.h... " >&6; } 6841if test "${ac_cv_header_openssl_des_h+set}" = set; then 6842 $as_echo_n "(cached) " >&6 6843else 6844 ac_cv_header_openssl_des_h=$ac_header_preproc 6845fi 6846{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_des_h" >&5 6847$as_echo "$ac_cv_header_openssl_des_h" >&6; } 6848 6849fi 6850if test "x$ac_cv_header_openssl_des_h" = x""yes; then 6851 6852cat >>confdefs.h <<\_ACEOF 6853#define WITH_SSL_DES /**/ 6854_ACEOF 6855 6856 LIB_DES="-lcrypto"; 6857 with_des=yes 6858else 6859 with_des=no 6860fi 6861 6862 6863else 6864 with_des=no 6865fi 6866 6867 fi 6868fi 6869 6870if test "$with_des" != no; then 6871 6872cat >>confdefs.h <<\_ACEOF 6873#define WITH_DES /**/ 6874_ACEOF 6875 6876fi 6877 6878 6879 6880 6881 6882 6883 6884 # Check whether --enable-krb4 was given. 6885if test "${enable_krb4+set}" = set; then 6886 enableval=$enable_krb4; krb4=$enableval 6887else 6888 krb4=no 6889fi 6890 6891 6892 if test "$krb4" != no; then 6893 6894{ $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 6895$as_echo_n "checking for res_search in -lresolv... " >&6; } 6896if test "${ac_cv_lib_resolv_res_search+set}" = set; then 6897 $as_echo_n "(cached) " >&6 6898else 6899 ac_check_lib_save_LIBS=$LIBS 6900LIBS="-lresolv $LIBS" 6901cat >conftest.$ac_ext <<_ACEOF 6902/* confdefs.h. */ 6903_ACEOF 6904cat confdefs.h >>conftest.$ac_ext 6905cat >>conftest.$ac_ext <<_ACEOF 6906/* end confdefs.h. */ 6907 6908/* Override any GCC internal prototype to avoid an error. 6909 Use char because int might match the return type of a GCC 6910 builtin and then its argument prototype would still apply. */ 6911#ifdef __cplusplus 6912extern "C" 6913#endif 6914char res_search (); 6915int 6916main () 6917{ 6918return res_search (); 6919 ; 6920 return 0; 6921} 6922_ACEOF 6923rm -f conftest.$ac_objext conftest$ac_exeext 6924if { (ac_try="$ac_link" 6925case "(($ac_try" in 6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6927 *) ac_try_echo=$ac_try;; 6928esac 6929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6930$as_echo "$ac_try_echo") >&5 6931 (eval "$ac_link") 2>conftest.er1 6932 ac_status=$? 6933 grep -v '^ *+' conftest.er1 >conftest.err 6934 rm -f conftest.er1 6935 cat conftest.err >&5 6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6937 (exit $ac_status); } && { 6938 test -z "$ac_c_werror_flag" || 6939 test ! -s conftest.err 6940 } && test -s conftest$ac_exeext && { 6941 test "$cross_compiling" = yes || 6942 $as_test_x conftest$ac_exeext 6943 }; then 6944 ac_cv_lib_resolv_res_search=yes 6945else 6946 $as_echo "$as_me: failed program was:" >&5 6947sed 's/^/| /' conftest.$ac_ext >&5 6948 6949 ac_cv_lib_resolv_res_search=no 6950fi 6951 6952rm -rf conftest.dSYM 6953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6954 conftest$ac_exeext conftest.$ac_ext 6955LIBS=$ac_check_lib_save_LIBS 6956fi 6957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 6958$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 6959if test "x$ac_cv_lib_resolv_res_search" = x""yes; then 6960 cat >>confdefs.h <<_ACEOF 6961#define HAVE_LIBRESOLV 1 6962_ACEOF 6963 6964 LIBS="-lresolv $LIBS" 6965 6966fi 6967 6968 6969 if test -d ${krb4}; then 6970 { $as_echo "$as_me:$LINENO: checking for Kerberos includes" >&5 6971$as_echo_n "checking for Kerberos includes... " >&6; } 6972if test "${cyrus_krbinclude+set}" = set; then 6973 $as_echo_n "(cached) " >&6 6974else 6975 6976 for krbhloc in include/kerberosIV include/kerberos include 6977 do 6978 if test -f ${krb4}/${krbhloc}/krb.h ; then 6979 cyrus_krbinclude=${krb4}/${krbhloc} 6980 break 6981 fi 6982 done 6983 6984fi 6985{ $as_echo "$as_me:$LINENO: result: $cyrus_krbinclude" >&5 6986$as_echo "$cyrus_krbinclude" >&6; } 6987 6988 if test -n "${cyrus_krbinclude}"; then 6989 CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}" 6990 fi 6991 LDFLAGS="$LDFLAGS -L$krb4/lib" 6992 fi 6993 6994 if test "$with_des" != no; then 6995 if test "${ac_cv_header_krb_h+set}" = set; then 6996 { $as_echo "$as_me:$LINENO: checking for krb.h" >&5 6997$as_echo_n "checking for krb.h... " >&6; } 6998if test "${ac_cv_header_krb_h+set}" = set; then 6999 $as_echo_n "(cached) " >&6 7000fi 7001{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5 7002$as_echo "$ac_cv_header_krb_h" >&6; } 7003else 7004 # Is the header compilable? 7005{ $as_echo "$as_me:$LINENO: checking krb.h usability" >&5 7006$as_echo_n "checking krb.h usability... " >&6; } 7007cat >conftest.$ac_ext <<_ACEOF 7008/* confdefs.h. */ 7009_ACEOF 7010cat confdefs.h >>conftest.$ac_ext 7011cat >>conftest.$ac_ext <<_ACEOF 7012/* end confdefs.h. */ 7013$ac_includes_default 7014#include <krb.h> 7015_ACEOF 7016rm -f conftest.$ac_objext 7017if { (ac_try="$ac_compile" 7018case "(($ac_try" in 7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7020 *) ac_try_echo=$ac_try;; 7021esac 7022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7023$as_echo "$ac_try_echo") >&5 7024 (eval "$ac_compile") 2>conftest.er1 7025 ac_status=$? 7026 grep -v '^ *+' conftest.er1 >conftest.err 7027 rm -f conftest.er1 7028 cat conftest.err >&5 7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); } && { 7031 test -z "$ac_c_werror_flag" || 7032 test ! -s conftest.err 7033 } && test -s conftest.$ac_objext; then 7034 ac_header_compiler=yes 7035else 7036 $as_echo "$as_me: failed program was:" >&5 7037sed 's/^/| /' conftest.$ac_ext >&5 7038 7039 ac_header_compiler=no 7040fi 7041 7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7043{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7044$as_echo "$ac_header_compiler" >&6; } 7045 7046# Is the header present? 7047{ $as_echo "$as_me:$LINENO: checking krb.h presence" >&5 7048$as_echo_n "checking krb.h presence... " >&6; } 7049cat >conftest.$ac_ext <<_ACEOF 7050/* confdefs.h. */ 7051_ACEOF 7052cat confdefs.h >>conftest.$ac_ext 7053cat >>conftest.$ac_ext <<_ACEOF 7054/* end confdefs.h. */ 7055#include <krb.h> 7056_ACEOF 7057if { (ac_try="$ac_cpp conftest.$ac_ext" 7058case "(($ac_try" in 7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7060 *) ac_try_echo=$ac_try;; 7061esac 7062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7063$as_echo "$ac_try_echo") >&5 7064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7065 ac_status=$? 7066 grep -v '^ *+' conftest.er1 >conftest.err 7067 rm -f conftest.er1 7068 cat conftest.err >&5 7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7070 (exit $ac_status); } >/dev/null && { 7071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7072 test ! -s conftest.err 7073 }; then 7074 ac_header_preproc=yes 7075else 7076 $as_echo "$as_me: failed program was:" >&5 7077sed 's/^/| /' conftest.$ac_ext >&5 7078 7079 ac_header_preproc=no 7080fi 7081 7082rm -f conftest.err conftest.$ac_ext 7083{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7084$as_echo "$ac_header_preproc" >&6; } 7085 7086# So? What about this header? 7087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7088 yes:no: ) 7089 { $as_echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5 7090$as_echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7091 { $as_echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5 7092$as_echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;} 7093 ac_header_preproc=yes 7094 ;; 7095 no:yes:* ) 7096 { $as_echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5 7097$as_echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;} 7098 { $as_echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5 7099$as_echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;} 7100 { $as_echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5 7101$as_echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;} 7102 { $as_echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5 7103$as_echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;} 7104 { $as_echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5 7105$as_echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;} 7106 { $as_echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5 7107$as_echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;} 7108 7109 ;; 7110esac 7111{ $as_echo "$as_me:$LINENO: checking for krb.h" >&5 7112$as_echo_n "checking for krb.h... " >&6; } 7113if test "${ac_cv_header_krb_h+set}" = set; then 7114 $as_echo_n "(cached) " >&6 7115else 7116 ac_cv_header_krb_h=$ac_header_preproc 7117fi 7118{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5 7119$as_echo "$ac_cv_header_krb_h" >&6; } 7120 7121fi 7122if test "x$ac_cv_header_krb_h" = x""yes; then 7123 7124 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 7125$as_echo_n "checking for com_err in -lcom_err... " >&6; } 7126if test "${ac_cv_lib_com_err_com_err+set}" = set; then 7127 $as_echo_n "(cached) " >&6 7128else 7129 ac_check_lib_save_LIBS=$LIBS 7130LIBS="-lcom_err $LIBS" 7131cat >conftest.$ac_ext <<_ACEOF 7132/* confdefs.h. */ 7133_ACEOF 7134cat confdefs.h >>conftest.$ac_ext 7135cat >>conftest.$ac_ext <<_ACEOF 7136/* end confdefs.h. */ 7137 7138/* Override any GCC internal prototype to avoid an error. 7139 Use char because int might match the return type of a GCC 7140 builtin and then its argument prototype would still apply. */ 7141#ifdef __cplusplus 7142extern "C" 7143#endif 7144char com_err (); 7145int 7146main () 7147{ 7148return com_err (); 7149 ; 7150 return 0; 7151} 7152_ACEOF 7153rm -f conftest.$ac_objext conftest$ac_exeext 7154if { (ac_try="$ac_link" 7155case "(($ac_try" in 7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7157 *) ac_try_echo=$ac_try;; 7158esac 7159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7160$as_echo "$ac_try_echo") >&5 7161 (eval "$ac_link") 2>conftest.er1 7162 ac_status=$? 7163 grep -v '^ *+' conftest.er1 >conftest.err 7164 rm -f conftest.er1 7165 cat conftest.err >&5 7166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7167 (exit $ac_status); } && { 7168 test -z "$ac_c_werror_flag" || 7169 test ! -s conftest.err 7170 } && test -s conftest$ac_exeext && { 7171 test "$cross_compiling" = yes || 7172 $as_test_x conftest$ac_exeext 7173 }; then 7174 ac_cv_lib_com_err_com_err=yes 7175else 7176 $as_echo "$as_me: failed program was:" >&5 7177sed 's/^/| /' conftest.$ac_ext >&5 7178 7179 ac_cv_lib_com_err_com_err=no 7180fi 7181 7182rm -rf conftest.dSYM 7183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7184 conftest$ac_exeext conftest.$ac_ext 7185LIBS=$ac_check_lib_save_LIBS 7186fi 7187{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 7188$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 7189if test "x$ac_cv_lib_com_err_com_err" = x""yes; then 7190 7191 { $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5 7192$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; } 7193if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then 7194 $as_echo_n "(cached) " >&6 7195else 7196 ac_check_lib_save_LIBS=$LIBS 7197LIBS="-lkrb $LIB_DES -lcom_err $LIBS" 7198cat >conftest.$ac_ext <<_ACEOF 7199/* confdefs.h. */ 7200_ACEOF 7201cat confdefs.h >>conftest.$ac_ext 7202cat >>conftest.$ac_ext <<_ACEOF 7203/* end confdefs.h. */ 7204 7205/* Override any GCC internal prototype to avoid an error. 7206 Use char because int might match the return type of a GCC 7207 builtin and then its argument prototype would still apply. */ 7208#ifdef __cplusplus 7209extern "C" 7210#endif 7211char krb_mk_priv (); 7212int 7213main () 7214{ 7215return krb_mk_priv (); 7216 ; 7217 return 0; 7218} 7219_ACEOF 7220rm -f conftest.$ac_objext conftest$ac_exeext 7221if { (ac_try="$ac_link" 7222case "(($ac_try" in 7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7224 *) ac_try_echo=$ac_try;; 7225esac 7226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7227$as_echo "$ac_try_echo") >&5 7228 (eval "$ac_link") 2>conftest.er1 7229 ac_status=$? 7230 grep -v '^ *+' conftest.er1 >conftest.err 7231 rm -f conftest.er1 7232 cat conftest.err >&5 7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7234 (exit $ac_status); } && { 7235 test -z "$ac_c_werror_flag" || 7236 test ! -s conftest.err 7237 } && test -s conftest$ac_exeext && { 7238 test "$cross_compiling" = yes || 7239 $as_test_x conftest$ac_exeext 7240 }; then 7241 ac_cv_lib_krb_krb_mk_priv=yes 7242else 7243 $as_echo "$as_me: failed program was:" >&5 7244sed 's/^/| /' conftest.$ac_ext >&5 7245 7246 ac_cv_lib_krb_krb_mk_priv=no 7247fi 7248 7249rm -rf conftest.dSYM 7250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7251 conftest$ac_exeext conftest.$ac_ext 7252LIBS=$ac_check_lib_save_LIBS 7253fi 7254{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5 7255$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; } 7256if test "x$ac_cv_lib_krb_krb_mk_priv" = x""yes; then 7257 COM_ERR="-lcom_err"; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 7258else 7259 krb4lib=no 7260fi 7261 7262else 7263 7264 { $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb" >&5 7265$as_echo_n "checking for krb_mk_priv in -lkrb... " >&6; } 7266if test "${ac_cv_lib_krb_krb_mk_priv+set}" = set; then 7267 $as_echo_n "(cached) " >&6 7268else 7269 ac_check_lib_save_LIBS=$LIBS 7270LIBS="-lkrb $LIB_DES $LIBS" 7271cat >conftest.$ac_ext <<_ACEOF 7272/* confdefs.h. */ 7273_ACEOF 7274cat confdefs.h >>conftest.$ac_ext 7275cat >>conftest.$ac_ext <<_ACEOF 7276/* end confdefs.h. */ 7277 7278/* Override any GCC internal prototype to avoid an error. 7279 Use char because int might match the return type of a GCC 7280 builtin and then its argument prototype would still apply. */ 7281#ifdef __cplusplus 7282extern "C" 7283#endif 7284char krb_mk_priv (); 7285int 7286main () 7287{ 7288return krb_mk_priv (); 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293rm -f conftest.$ac_objext conftest$ac_exeext 7294if { (ac_try="$ac_link" 7295case "(($ac_try" in 7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7297 *) ac_try_echo=$ac_try;; 7298esac 7299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7300$as_echo "$ac_try_echo") >&5 7301 (eval "$ac_link") 2>conftest.er1 7302 ac_status=$? 7303 grep -v '^ *+' conftest.er1 >conftest.err 7304 rm -f conftest.er1 7305 cat conftest.err >&5 7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); } && { 7308 test -z "$ac_c_werror_flag" || 7309 test ! -s conftest.err 7310 } && test -s conftest$ac_exeext && { 7311 test "$cross_compiling" = yes || 7312 $as_test_x conftest$ac_exeext 7313 }; then 7314 ac_cv_lib_krb_krb_mk_priv=yes 7315else 7316 $as_echo "$as_me: failed program was:" >&5 7317sed 's/^/| /' conftest.$ac_ext >&5 7318 7319 ac_cv_lib_krb_krb_mk_priv=no 7320fi 7321 7322rm -rf conftest.dSYM 7323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7324 conftest$ac_exeext conftest.$ac_ext 7325LIBS=$ac_check_lib_save_LIBS 7326fi 7327{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_mk_priv" >&5 7328$as_echo "$ac_cv_lib_krb_krb_mk_priv" >&6; } 7329if test "x$ac_cv_lib_krb_krb_mk_priv" = x""yes; then 7330 COM_ERR=""; SASL_KRB_LIB="-lkrb"; krb4lib="yes" 7331else 7332 krb4lib=no 7333fi 7334 7335fi 7336 7337else 7338 krb4="no" 7339fi 7340 7341 7342 7343 if test "$krb4" != "no" -a "$krb4lib" = "no"; then 7344 { $as_echo "$as_me:$LINENO: checking for krb_mk_priv in -lkrb4" >&5 7345$as_echo_n "checking for krb_mk_priv in -lkrb4... " >&6; } 7346if test "${ac_cv_lib_krb4_krb_mk_priv+set}" = set; then 7347 $as_echo_n "(cached) " >&6 7348else 7349 ac_check_lib_save_LIBS=$LIBS 7350LIBS="-lkrb4 $LIB_DES $LIBS" 7351cat >conftest.$ac_ext <<_ACEOF 7352/* confdefs.h. */ 7353_ACEOF 7354cat confdefs.h >>conftest.$ac_ext 7355cat >>conftest.$ac_ext <<_ACEOF 7356/* end confdefs.h. */ 7357 7358/* Override any GCC internal prototype to avoid an error. 7359 Use char because int might match the return type of a GCC 7360 builtin and then its argument prototype would still apply. */ 7361#ifdef __cplusplus 7362extern "C" 7363#endif 7364char krb_mk_priv (); 7365int 7366main () 7367{ 7368return krb_mk_priv (); 7369 ; 7370 return 0; 7371} 7372_ACEOF 7373rm -f conftest.$ac_objext conftest$ac_exeext 7374if { (ac_try="$ac_link" 7375case "(($ac_try" in 7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7377 *) ac_try_echo=$ac_try;; 7378esac 7379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7380$as_echo "$ac_try_echo") >&5 7381 (eval "$ac_link") 2>conftest.er1 7382 ac_status=$? 7383 grep -v '^ *+' conftest.er1 >conftest.err 7384 rm -f conftest.er1 7385 cat conftest.err >&5 7386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); } && { 7388 test -z "$ac_c_werror_flag" || 7389 test ! -s conftest.err 7390 } && test -s conftest$ac_exeext && { 7391 test "$cross_compiling" = yes || 7392 $as_test_x conftest$ac_exeext 7393 }; then 7394 ac_cv_lib_krb4_krb_mk_priv=yes 7395else 7396 $as_echo "$as_me: failed program was:" >&5 7397sed 's/^/| /' conftest.$ac_ext >&5 7398 7399 ac_cv_lib_krb4_krb_mk_priv=no 7400fi 7401 7402rm -rf conftest.dSYM 7403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7404 conftest$ac_exeext conftest.$ac_ext 7405LIBS=$ac_check_lib_save_LIBS 7406fi 7407{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_mk_priv" >&5 7408$as_echo "$ac_cv_lib_krb4_krb_mk_priv" >&6; } 7409if test "x$ac_cv_lib_krb4_krb_mk_priv" = x""yes; then 7410 COM_ERR=""; SASL_KRB_LIB="-lkrb4"; krb4=yes 7411else 7412 krb4=no 7413fi 7414 7415 fi 7416 if test "$krb4" = no; then 7417 { $as_echo "$as_me:$LINENO: WARNING: No Kerberos V4 found" >&5 7418$as_echo "$as_me: WARNING: No Kerberos V4 found" >&2;} 7419 fi 7420 else 7421 { $as_echo "$as_me:$LINENO: WARNING: No DES library found for Kerberos V4 support" >&5 7422$as_echo "$as_me: WARNING: No DES library found for Kerberos V4 support" >&2;} 7423 krb4=no 7424 fi 7425 fi 7426 7427 if test "$krb4" != no; then 7428 cmu_save_LIBS="$LIBS" 7429 LIBS="$LIBS $SASL_KRB_LIB" 7430 7431for ac_func in krb_get_err_text 7432do 7433as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7434{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7435$as_echo_n "checking for $ac_func... " >&6; } 7436if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7437 $as_echo_n "(cached) " >&6 7438else 7439 cat >conftest.$ac_ext <<_ACEOF 7440/* confdefs.h. */ 7441_ACEOF 7442cat confdefs.h >>conftest.$ac_ext 7443cat >>conftest.$ac_ext <<_ACEOF 7444/* end confdefs.h. */ 7445/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7446 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7447#define $ac_func innocuous_$ac_func 7448 7449/* System header to define __stub macros and hopefully few prototypes, 7450 which can conflict with char $ac_func (); below. 7451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7452 <limits.h> exists even on freestanding compilers. */ 7453 7454#ifdef __STDC__ 7455# include <limits.h> 7456#else 7457# include <assert.h> 7458#endif 7459 7460#undef $ac_func 7461 7462/* Override any GCC internal prototype to avoid an error. 7463 Use char because int might match the return type of a GCC 7464 builtin and then its argument prototype would still apply. */ 7465#ifdef __cplusplus 7466extern "C" 7467#endif 7468char $ac_func (); 7469/* The GNU C library defines this for functions which it implements 7470 to always fail with ENOSYS. Some functions are actually named 7471 something starting with __ and the normal name is an alias. */ 7472#if defined __stub_$ac_func || defined __stub___$ac_func 7473choke me 7474#endif 7475 7476int 7477main () 7478{ 7479return $ac_func (); 7480 ; 7481 return 0; 7482} 7483_ACEOF 7484rm -f conftest.$ac_objext conftest$ac_exeext 7485if { (ac_try="$ac_link" 7486case "(($ac_try" in 7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7488 *) ac_try_echo=$ac_try;; 7489esac 7490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7491$as_echo "$ac_try_echo") >&5 7492 (eval "$ac_link") 2>conftest.er1 7493 ac_status=$? 7494 grep -v '^ *+' conftest.er1 >conftest.err 7495 rm -f conftest.er1 7496 cat conftest.err >&5 7497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7498 (exit $ac_status); } && { 7499 test -z "$ac_c_werror_flag" || 7500 test ! -s conftest.err 7501 } && test -s conftest$ac_exeext && { 7502 test "$cross_compiling" = yes || 7503 $as_test_x conftest$ac_exeext 7504 }; then 7505 eval "$as_ac_var=yes" 7506else 7507 $as_echo "$as_me: failed program was:" >&5 7508sed 's/^/| /' conftest.$ac_ext >&5 7509 7510 eval "$as_ac_var=no" 7511fi 7512 7513rm -rf conftest.dSYM 7514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7515 conftest$ac_exeext conftest.$ac_ext 7516fi 7517ac_res=`eval 'as_val=${'$as_ac_var'} 7518 $as_echo "$as_val"'` 7519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7520$as_echo "$ac_res" >&6; } 7521as_val=`eval 'as_val=${'$as_ac_var'} 7522 $as_echo "$as_val"'` 7523 if test "x$as_val" = x""yes; then 7524 cat >>confdefs.h <<_ACEOF 7525#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7526_ACEOF 7527 7528fi 7529done 7530 7531 LIBS="$cmu_save_LIBS" 7532 fi 7533 7534 { $as_echo "$as_me:$LINENO: checking KERBEROS_V4" >&5 7535$as_echo_n "checking KERBEROS_V4... " >&6; } 7536 if test "$krb4" != no; then 7537 { $as_echo "$as_me:$LINENO: result: enabled" >&5 7538$as_echo "enabled" >&6; } 7539 SASL_MECHS="$SASL_MECHS libkerberos4.la" 7540 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/kerberos4.c" 7541 SASL_STATIC_OBJS="$SASL_STATIC_OBJS kerberos4.o" 7542 7543cat >>confdefs.h <<\_ACEOF 7544#define STATIC_KERBEROS4 /**/ 7545_ACEOF 7546 7547 7548cat >>confdefs.h <<\_ACEOF 7549#define HAVE_KRB /**/ 7550_ACEOF 7551 7552 SASL_KRB_LIB="$SASL_KRB_LIB $LIB_DES $COM_ERR" 7553 else 7554 { $as_echo "$as_me:$LINENO: result: disabled" >&5 7555$as_echo "disabled" >&6; } 7556 fi 7557 7558 7559{ $as_echo "$as_me:$LINENO: checking for crypt" >&5 7560$as_echo_n "checking for crypt... " >&6; } 7561if test "${ac_cv_func_crypt+set}" = set; then 7562 $as_echo_n "(cached) " >&6 7563else 7564 cat >conftest.$ac_ext <<_ACEOF 7565/* confdefs.h. */ 7566_ACEOF 7567cat confdefs.h >>conftest.$ac_ext 7568cat >>conftest.$ac_ext <<_ACEOF 7569/* end confdefs.h. */ 7570/* Define crypt to an innocuous variant, in case <limits.h> declares crypt. 7571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7572#define crypt innocuous_crypt 7573 7574/* System header to define __stub macros and hopefully few prototypes, 7575 which can conflict with char crypt (); below. 7576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7577 <limits.h> exists even on freestanding compilers. */ 7578 7579#ifdef __STDC__ 7580# include <limits.h> 7581#else 7582# include <assert.h> 7583#endif 7584 7585#undef crypt 7586 7587/* Override any GCC internal prototype to avoid an error. 7588 Use char because int might match the return type of a GCC 7589 builtin and then its argument prototype would still apply. */ 7590#ifdef __cplusplus 7591extern "C" 7592#endif 7593char crypt (); 7594/* The GNU C library defines this for functions which it implements 7595 to always fail with ENOSYS. Some functions are actually named 7596 something starting with __ and the normal name is an alias. */ 7597#if defined __stub_crypt || defined __stub___crypt 7598choke me 7599#endif 7600 7601int 7602main () 7603{ 7604return crypt (); 7605 ; 7606 return 0; 7607} 7608_ACEOF 7609rm -f conftest.$ac_objext conftest$ac_exeext 7610if { (ac_try="$ac_link" 7611case "(($ac_try" in 7612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7613 *) ac_try_echo=$ac_try;; 7614esac 7615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7616$as_echo "$ac_try_echo") >&5 7617 (eval "$ac_link") 2>conftest.er1 7618 ac_status=$? 7619 grep -v '^ *+' conftest.er1 >conftest.err 7620 rm -f conftest.er1 7621 cat conftest.err >&5 7622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7623 (exit $ac_status); } && { 7624 test -z "$ac_c_werror_flag" || 7625 test ! -s conftest.err 7626 } && test -s conftest$ac_exeext && { 7627 test "$cross_compiling" = yes || 7628 $as_test_x conftest$ac_exeext 7629 }; then 7630 ac_cv_func_crypt=yes 7631else 7632 $as_echo "$as_me: failed program was:" >&5 7633sed 's/^/| /' conftest.$ac_ext >&5 7634 7635 ac_cv_func_crypt=no 7636fi 7637 7638rm -rf conftest.dSYM 7639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7640 conftest$ac_exeext conftest.$ac_ext 7641fi 7642{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 7643$as_echo "$ac_cv_func_crypt" >&6; } 7644if test "x$ac_cv_func_crypt" = x""yes; then 7645 cmu_have_crypt=yes 7646else 7647 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 7648$as_echo_n "checking for crypt in -lcrypt... " >&6; } 7649if test "${ac_cv_lib_crypt_crypt+set}" = set; then 7650 $as_echo_n "(cached) " >&6 7651else 7652 ac_check_lib_save_LIBS=$LIBS 7653LIBS="-lcrypt $LIBS" 7654cat >conftest.$ac_ext <<_ACEOF 7655/* confdefs.h. */ 7656_ACEOF 7657cat confdefs.h >>conftest.$ac_ext 7658cat >>conftest.$ac_ext <<_ACEOF 7659/* end confdefs.h. */ 7660 7661/* Override any GCC internal prototype to avoid an error. 7662 Use char because int might match the return type of a GCC 7663 builtin and then its argument prototype would still apply. */ 7664#ifdef __cplusplus 7665extern "C" 7666#endif 7667char crypt (); 7668int 7669main () 7670{ 7671return crypt (); 7672 ; 7673 return 0; 7674} 7675_ACEOF 7676rm -f conftest.$ac_objext conftest$ac_exeext 7677if { (ac_try="$ac_link" 7678case "(($ac_try" in 7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7680 *) ac_try_echo=$ac_try;; 7681esac 7682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7683$as_echo "$ac_try_echo") >&5 7684 (eval "$ac_link") 2>conftest.er1 7685 ac_status=$? 7686 grep -v '^ *+' conftest.er1 >conftest.err 7687 rm -f conftest.er1 7688 cat conftest.err >&5 7689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); } && { 7691 test -z "$ac_c_werror_flag" || 7692 test ! -s conftest.err 7693 } && test -s conftest$ac_exeext && { 7694 test "$cross_compiling" = yes || 7695 $as_test_x conftest$ac_exeext 7696 }; then 7697 ac_cv_lib_crypt_crypt=yes 7698else 7699 $as_echo "$as_me: failed program was:" >&5 7700sed 's/^/| /' conftest.$ac_ext >&5 7701 7702 ac_cv_lib_crypt_crypt=no 7703fi 7704 7705rm -rf conftest.dSYM 7706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7707 conftest$ac_exeext conftest.$ac_ext 7708LIBS=$ac_check_lib_save_LIBS 7709fi 7710{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 7711$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 7712if test "x$ac_cv_lib_crypt_crypt" = x""yes; then 7713 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes 7714else 7715 cmu_have_crypt=no 7716fi 7717 7718fi 7719 7720 7721 7722 7723 7724# Check whether --enable-gssapi was given. 7725if test "${enable_gssapi+set}" = set; then 7726 enableval=$enable_gssapi; gssapi=$enableval 7727else 7728 gssapi=yes 7729fi 7730 7731 7732# Check whether --with-gss_impl was given. 7733if test "${with_gss_impl+set}" = set; then 7734 withval=$with_gss_impl; gss_impl=$withval 7735else 7736 gss_impl=auto 7737fi 7738 7739 7740if test "$gssapi" != no; then 7741 platform= 7742 case "${host}" in 7743 *-*-linux*) 7744 platform=__linux 7745 ;; 7746 *-*-hpux*) 7747 platform=__hpux 7748 ;; 7749 *-*-irix*) 7750 platform=__irix 7751 ;; 7752 *-*-solaris2*) 7753# When should we use __sunos? 7754 platform=__solaris 7755 ;; 7756 *-*-aix*) 7757###_AIX 7758 platform=__aix 7759 ;; 7760 *) 7761 { $as_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 7762$as_echo "$as_me: WARNING: The system type is not recognized. If you believe that CyberSafe GSSAPI works on this platform, please update the configure script" >&2;} 7763 if test "$gss_impl" = "cybersafe"; then 7764 { { $as_echo "$as_me:$LINENO: error: CyberSafe was forced, cannot continue as platform is not supported" >&5 7765$as_echo "$as_me: error: CyberSafe was forced, cannot continue as platform is not supported" >&2;} 7766 { (exit 1); exit 1; }; } 7767 fi 7768 ;; 7769 esac 7770 7771 cmu_saved_CPPFLAGS=$CPPFLAGS 7772 7773 if test -d ${gssapi}; then 7774 CPPFLAGS="$CPPFLAGS -I$gssapi/include" 7775# We want to keep -I in our CPPFLAGS, but only if we succeed 7776 cmu_saved_CPPFLAGS=$CPPFLAGS 7777### I am not sure how useful is this (and whether this is required at all 7778### especially when we have to provide two -L flags for new CyberSafe 7779 LDFLAGS="$LDFLAGS -L$gssapi/lib" 7780 7781 if test -n "$platform"; then 7782 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 7783 CPPFLAGS="$CPPFLAGS -D$platform" 7784 if test -d "${gssapi}/appsec-sdk/include"; then 7785 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 7786 fi 7787 fi 7788 fi 7789 fi 7790 if test "${ac_cv_header_gssapi_h+set}" = set; then 7791 { $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5 7792$as_echo_n "checking for gssapi.h... " >&6; } 7793if test "${ac_cv_header_gssapi_h+set}" = set; then 7794 $as_echo_n "(cached) " >&6 7795fi 7796{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 7797$as_echo "$ac_cv_header_gssapi_h" >&6; } 7798else 7799 # Is the header compilable? 7800{ $as_echo "$as_me:$LINENO: checking gssapi.h usability" >&5 7801$as_echo_n "checking gssapi.h usability... " >&6; } 7802cat >conftest.$ac_ext <<_ACEOF 7803/* confdefs.h. */ 7804_ACEOF 7805cat confdefs.h >>conftest.$ac_ext 7806cat >>conftest.$ac_ext <<_ACEOF 7807/* end confdefs.h. */ 7808$ac_includes_default 7809#include <gssapi.h> 7810_ACEOF 7811rm -f conftest.$ac_objext 7812if { (ac_try="$ac_compile" 7813case "(($ac_try" in 7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7815 *) ac_try_echo=$ac_try;; 7816esac 7817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7818$as_echo "$ac_try_echo") >&5 7819 (eval "$ac_compile") 2>conftest.er1 7820 ac_status=$? 7821 grep -v '^ *+' conftest.er1 >conftest.err 7822 rm -f conftest.er1 7823 cat conftest.err >&5 7824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7825 (exit $ac_status); } && { 7826 test -z "$ac_c_werror_flag" || 7827 test ! -s conftest.err 7828 } && test -s conftest.$ac_objext; then 7829 ac_header_compiler=yes 7830else 7831 $as_echo "$as_me: failed program was:" >&5 7832sed 's/^/| /' conftest.$ac_ext >&5 7833 7834 ac_header_compiler=no 7835fi 7836 7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7838{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7839$as_echo "$ac_header_compiler" >&6; } 7840 7841# Is the header present? 7842{ $as_echo "$as_me:$LINENO: checking gssapi.h presence" >&5 7843$as_echo_n "checking gssapi.h presence... " >&6; } 7844cat >conftest.$ac_ext <<_ACEOF 7845/* confdefs.h. */ 7846_ACEOF 7847cat confdefs.h >>conftest.$ac_ext 7848cat >>conftest.$ac_ext <<_ACEOF 7849/* end confdefs.h. */ 7850#include <gssapi.h> 7851_ACEOF 7852if { (ac_try="$ac_cpp conftest.$ac_ext" 7853case "(($ac_try" in 7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7855 *) ac_try_echo=$ac_try;; 7856esac 7857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7858$as_echo "$ac_try_echo") >&5 7859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7860 ac_status=$? 7861 grep -v '^ *+' conftest.er1 >conftest.err 7862 rm -f conftest.er1 7863 cat conftest.err >&5 7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 (exit $ac_status); } >/dev/null && { 7866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7867 test ! -s conftest.err 7868 }; then 7869 ac_header_preproc=yes 7870else 7871 $as_echo "$as_me: failed program was:" >&5 7872sed 's/^/| /' conftest.$ac_ext >&5 7873 7874 ac_header_preproc=no 7875fi 7876 7877rm -f conftest.err conftest.$ac_ext 7878{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7879$as_echo "$ac_header_preproc" >&6; } 7880 7881# So? What about this header? 7882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7883 yes:no: ) 7884 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 7885$as_echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7886 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 7887$as_echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} 7888 ac_header_preproc=yes 7889 ;; 7890 no:yes:* ) 7891 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 7892$as_echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} 7893 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 7894$as_echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} 7895 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 7896$as_echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} 7897 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 7898$as_echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} 7899 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 7900$as_echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} 7901 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 7902$as_echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} 7903 7904 ;; 7905esac 7906{ $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5 7907$as_echo_n "checking for gssapi.h... " >&6; } 7908if test "${ac_cv_header_gssapi_h+set}" = set; then 7909 $as_echo_n "(cached) " >&6 7910else 7911 ac_cv_header_gssapi_h=$ac_header_preproc 7912fi 7913{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 7914$as_echo "$ac_cv_header_gssapi_h" >&6; } 7915 7916fi 7917if test "x$ac_cv_header_gssapi_h" = x""yes; then 7918 : 7919else 7920 if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 7921 { $as_echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5 7922$as_echo_n "checking for gssapi/gssapi.h... " >&6; } 7923if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 7924 $as_echo_n "(cached) " >&6 7925fi 7926{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5 7927$as_echo "$ac_cv_header_gssapi_gssapi_h" >&6; } 7928else 7929 # Is the header compilable? 7930{ $as_echo "$as_me:$LINENO: checking gssapi/gssapi.h usability" >&5 7931$as_echo_n "checking gssapi/gssapi.h usability... " >&6; } 7932cat >conftest.$ac_ext <<_ACEOF 7933/* confdefs.h. */ 7934_ACEOF 7935cat confdefs.h >>conftest.$ac_ext 7936cat >>conftest.$ac_ext <<_ACEOF 7937/* end confdefs.h. */ 7938$ac_includes_default 7939#include <gssapi/gssapi.h> 7940_ACEOF 7941rm -f conftest.$ac_objext 7942if { (ac_try="$ac_compile" 7943case "(($ac_try" in 7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7945 *) ac_try_echo=$ac_try;; 7946esac 7947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7948$as_echo "$ac_try_echo") >&5 7949 (eval "$ac_compile") 2>conftest.er1 7950 ac_status=$? 7951 grep -v '^ *+' conftest.er1 >conftest.err 7952 rm -f conftest.er1 7953 cat conftest.err >&5 7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 (exit $ac_status); } && { 7956 test -z "$ac_c_werror_flag" || 7957 test ! -s conftest.err 7958 } && test -s conftest.$ac_objext; then 7959 ac_header_compiler=yes 7960else 7961 $as_echo "$as_me: failed program was:" >&5 7962sed 's/^/| /' conftest.$ac_ext >&5 7963 7964 ac_header_compiler=no 7965fi 7966 7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7968{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7969$as_echo "$ac_header_compiler" >&6; } 7970 7971# Is the header present? 7972{ $as_echo "$as_me:$LINENO: checking gssapi/gssapi.h presence" >&5 7973$as_echo_n "checking gssapi/gssapi.h presence... " >&6; } 7974cat >conftest.$ac_ext <<_ACEOF 7975/* confdefs.h. */ 7976_ACEOF 7977cat confdefs.h >>conftest.$ac_ext 7978cat >>conftest.$ac_ext <<_ACEOF 7979/* end confdefs.h. */ 7980#include <gssapi/gssapi.h> 7981_ACEOF 7982if { (ac_try="$ac_cpp conftest.$ac_ext" 7983case "(($ac_try" in 7984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7985 *) ac_try_echo=$ac_try;; 7986esac 7987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7988$as_echo "$ac_try_echo") >&5 7989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7990 ac_status=$? 7991 grep -v '^ *+' conftest.er1 >conftest.err 7992 rm -f conftest.er1 7993 cat conftest.err >&5 7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 (exit $ac_status); } >/dev/null && { 7996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7997 test ! -s conftest.err 7998 }; then 7999 ac_header_preproc=yes 8000else 8001 $as_echo "$as_me: failed program was:" >&5 8002sed 's/^/| /' conftest.$ac_ext >&5 8003 8004 ac_header_preproc=no 8005fi 8006 8007rm -f conftest.err conftest.$ac_ext 8008{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8009$as_echo "$ac_header_preproc" >&6; } 8010 8011# So? What about this header? 8012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8013 yes:no: ) 8014 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 8015$as_echo "$as_me: WARNING: gssapi/gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8016 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&5 8017$as_echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the compiler's result" >&2;} 8018 ac_header_preproc=yes 8019 ;; 8020 no:yes:* ) 8021 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&5 8022$as_echo "$as_me: WARNING: gssapi/gssapi.h: present but cannot be compiled" >&2;} 8023 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&5 8024$as_echo "$as_me: WARNING: gssapi/gssapi.h: check for missing prerequisite headers?" >&2;} 8025 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&5 8026$as_echo "$as_me: WARNING: gssapi/gssapi.h: see the Autoconf documentation" >&2;} 8027 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 8028$as_echo "$as_me: WARNING: gssapi/gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} 8029 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&5 8030$as_echo "$as_me: WARNING: gssapi/gssapi.h: proceeding with the preprocessor's result" >&2;} 8031 { $as_echo "$as_me:$LINENO: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&5 8032$as_echo "$as_me: WARNING: gssapi/gssapi.h: in the future, the compiler will take precedence" >&2;} 8033 8034 ;; 8035esac 8036{ $as_echo "$as_me:$LINENO: checking for gssapi/gssapi.h" >&5 8037$as_echo_n "checking for gssapi/gssapi.h... " >&6; } 8038if test "${ac_cv_header_gssapi_gssapi_h+set}" = set; then 8039 $as_echo_n "(cached) " >&6 8040else 8041 ac_cv_header_gssapi_gssapi_h=$ac_header_preproc 8042fi 8043{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_gssapi_h" >&5 8044$as_echo "$ac_cv_header_gssapi_gssapi_h" >&6; } 8045 8046fi 8047if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then 8048 : 8049else 8050 { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no include files found" >&5 8051$as_echo "$as_me: WARNING: Disabling GSSAPI - no include files found" >&2;}; gssapi=no 8052fi 8053 8054 8055fi 8056 8057 8058 8059for ac_header in gssapi/gssapi_ext.h 8060do 8061as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8064$as_echo_n "checking for $ac_header... " >&6; } 8065if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8066 $as_echo_n "(cached) " >&6 8067fi 8068ac_res=`eval 'as_val=${'$as_ac_Header'} 8069 $as_echo "$as_val"'` 8070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8071$as_echo "$ac_res" >&6; } 8072else 8073 # Is the header compilable? 8074{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 8075$as_echo_n "checking $ac_header usability... " >&6; } 8076cat >conftest.$ac_ext <<_ACEOF 8077/* confdefs.h. */ 8078_ACEOF 8079cat confdefs.h >>conftest.$ac_ext 8080cat >>conftest.$ac_ext <<_ACEOF 8081/* end confdefs.h. */ 8082$ac_includes_default 8083#include <$ac_header> 8084_ACEOF 8085rm -f conftest.$ac_objext 8086if { (ac_try="$ac_compile" 8087case "(($ac_try" in 8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8089 *) ac_try_echo=$ac_try;; 8090esac 8091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8092$as_echo "$ac_try_echo") >&5 8093 (eval "$ac_compile") 2>conftest.er1 8094 ac_status=$? 8095 grep -v '^ *+' conftest.er1 >conftest.err 8096 rm -f conftest.er1 8097 cat conftest.err >&5 8098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); } && { 8100 test -z "$ac_c_werror_flag" || 8101 test ! -s conftest.err 8102 } && test -s conftest.$ac_objext; then 8103 ac_header_compiler=yes 8104else 8105 $as_echo "$as_me: failed program was:" >&5 8106sed 's/^/| /' conftest.$ac_ext >&5 8107 8108 ac_header_compiler=no 8109fi 8110 8111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8112{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8113$as_echo "$ac_header_compiler" >&6; } 8114 8115# Is the header present? 8116{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 8117$as_echo_n "checking $ac_header presence... " >&6; } 8118cat >conftest.$ac_ext <<_ACEOF 8119/* confdefs.h. */ 8120_ACEOF 8121cat confdefs.h >>conftest.$ac_ext 8122cat >>conftest.$ac_ext <<_ACEOF 8123/* end confdefs.h. */ 8124#include <$ac_header> 8125_ACEOF 8126if { (ac_try="$ac_cpp conftest.$ac_ext" 8127case "(($ac_try" in 8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8129 *) ac_try_echo=$ac_try;; 8130esac 8131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8132$as_echo "$ac_try_echo") >&5 8133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8134 ac_status=$? 8135 grep -v '^ *+' conftest.er1 >conftest.err 8136 rm -f conftest.er1 8137 cat conftest.err >&5 8138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 (exit $ac_status); } >/dev/null && { 8140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8141 test ! -s conftest.err 8142 }; then 8143 ac_header_preproc=yes 8144else 8145 $as_echo "$as_me: failed program was:" >&5 8146sed 's/^/| /' conftest.$ac_ext >&5 8147 8148 ac_header_preproc=no 8149fi 8150 8151rm -f conftest.err conftest.$ac_ext 8152{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8153$as_echo "$ac_header_preproc" >&6; } 8154 8155# So? What about this header? 8156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8157 yes:no: ) 8158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8159$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8161$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8162 ac_header_preproc=yes 8163 ;; 8164 no:yes:* ) 8165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8166$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8168$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8170$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8172$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8174$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8176$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8177 8178 ;; 8179esac 8180{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 8181$as_echo_n "checking for $ac_header... " >&6; } 8182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8183 $as_echo_n "(cached) " >&6 8184else 8185 eval "$as_ac_Header=\$ac_header_preproc" 8186fi 8187ac_res=`eval 'as_val=${'$as_ac_Header'} 8188 $as_echo "$as_val"'` 8189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 8190$as_echo "$ac_res" >&6; } 8191 8192fi 8193as_val=`eval 'as_val=${'$as_ac_Header'} 8194 $as_echo "$as_val"'` 8195 if test "x$as_val" = x""yes; then 8196 cat >>confdefs.h <<_ACEOF 8197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8198_ACEOF 8199 8200fi 8201 8202done 8203 8204 CPPFLAGS=$cmu_saved_CPPFLAGS 8205 8206fi 8207 8208if test "$gssapi" != no; then 8209 if test "$ac_cv_header_gssapi_h" = "yes" -o "$ac_cv_header_gssapi_gssapi_h" = "yes"; then 8210 8211cat >>confdefs.h <<\_ACEOF 8212#define HAVE_GSSAPI_H /**/ 8213_ACEOF 8214 8215 fi 8216 8217 # We need to find out which gssapi implementation we are 8218 # using. Supported alternatives are: MIT Kerberos 5, 8219 # Heimdal Kerberos 5 (http://www.pdc.kth.se/heimdal), 8220 # CyberSafe Kerberos 5 (http://www.cybersafe.com/) 8221 # and Sun SEAM (http://wwws.sun.com/software/security/kerberos/) 8222 # 8223 # The choice is reflected in GSSAPIBASE_LIBS 8224 8225 8226{ $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 8227$as_echo_n "checking for res_search in -lresolv... " >&6; } 8228if test "${ac_cv_lib_resolv_res_search+set}" = set; then 8229 $as_echo_n "(cached) " >&6 8230else 8231 ac_check_lib_save_LIBS=$LIBS 8232LIBS="-lresolv $LIBS" 8233cat >conftest.$ac_ext <<_ACEOF 8234/* confdefs.h. */ 8235_ACEOF 8236cat confdefs.h >>conftest.$ac_ext 8237cat >>conftest.$ac_ext <<_ACEOF 8238/* end confdefs.h. */ 8239 8240/* Override any GCC internal prototype to avoid an error. 8241 Use char because int might match the return type of a GCC 8242 builtin and then its argument prototype would still apply. */ 8243#ifdef __cplusplus 8244extern "C" 8245#endif 8246char res_search (); 8247int 8248main () 8249{ 8250return res_search (); 8251 ; 8252 return 0; 8253} 8254_ACEOF 8255rm -f conftest.$ac_objext conftest$ac_exeext 8256if { (ac_try="$ac_link" 8257case "(($ac_try" in 8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8259 *) ac_try_echo=$ac_try;; 8260esac 8261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8262$as_echo "$ac_try_echo") >&5 8263 (eval "$ac_link") 2>conftest.er1 8264 ac_status=$? 8265 grep -v '^ *+' conftest.er1 >conftest.err 8266 rm -f conftest.er1 8267 cat conftest.err >&5 8268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8269 (exit $ac_status); } && { 8270 test -z "$ac_c_werror_flag" || 8271 test ! -s conftest.err 8272 } && test -s conftest$ac_exeext && { 8273 test "$cross_compiling" = yes || 8274 $as_test_x conftest$ac_exeext 8275 }; then 8276 ac_cv_lib_resolv_res_search=yes 8277else 8278 $as_echo "$as_me: failed program was:" >&5 8279sed 's/^/| /' conftest.$ac_ext >&5 8280 8281 ac_cv_lib_resolv_res_search=no 8282fi 8283 8284rm -rf conftest.dSYM 8285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8286 conftest$ac_exeext conftest.$ac_ext 8287LIBS=$ac_check_lib_save_LIBS 8288fi 8289{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 8290$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 8291if test "x$ac_cv_lib_resolv_res_search" = x""yes; then 8292 cat >>confdefs.h <<_ACEOF 8293#define HAVE_LIBRESOLV 1 8294_ACEOF 8295 8296 LIBS="-lresolv $LIBS" 8297 8298fi 8299 8300 if test -d ${gssapi}; then 8301 gssapi_dir="${gssapi}/lib" 8302 GSSAPIBASE_LIBS="-L$gssapi_dir" 8303 GSSAPIBASE_STATIC_LIBS="-L$gssapi_dir" 8304 else 8305 # FIXME: This is only used for building cyrus, and then only as 8306 # a real hack. it needs to be fixed. 8307 gssapi_dir="/usr/local/lib" 8308 fi 8309 8310 # Check a full link against the Heimdal libraries. 8311 # If this fails, check a full link against the MIT libraries. 8312 # If this fails, check a full link against the CyberSafe libraries. 8313 # If this fails, check a full link against the Solaris 8 and up libgss. 8314 8315 if test "$gss_impl" = "auto" -o "$gss_impl" = "heimdal"; then 8316 gss_failed=0 8317 { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi" >&5 8318$as_echo_n "checking for gss_unwrap in -lgssapi... " >&6; } 8319if test "${ac_cv_lib_gssapi_gss_unwrap+set}" = set; then 8320 $as_echo_n "(cached) " >&6 8321else 8322 ac_check_lib_save_LIBS=$LIBS 8323LIBS="-lgssapi ${GSSAPIBASE_LIBS} -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err ${LIB_SOCKET} $LIBS" 8324cat >conftest.$ac_ext <<_ACEOF 8325/* confdefs.h. */ 8326_ACEOF 8327cat confdefs.h >>conftest.$ac_ext 8328cat >>conftest.$ac_ext <<_ACEOF 8329/* end confdefs.h. */ 8330 8331/* Override any GCC internal prototype to avoid an error. 8332 Use char because int might match the return type of a GCC 8333 builtin and then its argument prototype would still apply. */ 8334#ifdef __cplusplus 8335extern "C" 8336#endif 8337char gss_unwrap (); 8338int 8339main () 8340{ 8341return gss_unwrap (); 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346rm -f conftest.$ac_objext conftest$ac_exeext 8347if { (ac_try="$ac_link" 8348case "(($ac_try" in 8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8350 *) ac_try_echo=$ac_try;; 8351esac 8352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8353$as_echo "$ac_try_echo") >&5 8354 (eval "$ac_link") 2>conftest.er1 8355 ac_status=$? 8356 grep -v '^ *+' conftest.er1 >conftest.err 8357 rm -f conftest.er1 8358 cat conftest.err >&5 8359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); } && { 8361 test -z "$ac_c_werror_flag" || 8362 test ! -s conftest.err 8363 } && test -s conftest$ac_exeext && { 8364 test "$cross_compiling" = yes || 8365 $as_test_x conftest$ac_exeext 8366 }; then 8367 ac_cv_lib_gssapi_gss_unwrap=yes 8368else 8369 $as_echo "$as_me: failed program was:" >&5 8370sed 's/^/| /' conftest.$ac_ext >&5 8371 8372 ac_cv_lib_gssapi_gss_unwrap=no 8373fi 8374 8375rm -rf conftest.dSYM 8376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8377 conftest$ac_exeext conftest.$ac_ext 8378LIBS=$ac_check_lib_save_LIBS 8379fi 8380{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_unwrap" >&5 8381$as_echo "$ac_cv_lib_gssapi_gss_unwrap" >&6; } 8382if test "x$ac_cv_lib_gssapi_gss_unwrap" = x""yes; then 8383 gss_impl="heimdal" 8384else 8385 gss_failed=1 8386fi 8387 8388 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 8389 gss_impl="failed" 8390 fi 8391 fi 8392 8393 if test "$gss_impl" = "auto" -o "$gss_impl" = "mit"; then 8394 # check for libkrb5support first 8395 { $as_echo "$as_me:$LINENO: checking for krb5int_getspecific in -lkrb5support" >&5 8396$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 8397if test "${ac_cv_lib_krb5support_krb5int_getspecific+set}" = set; then 8398 $as_echo_n "(cached) " >&6 8399else 8400 ac_check_lib_save_LIBS=$LIBS 8401LIBS="-lkrb5support ${LIB_SOCKET} $LIBS" 8402cat >conftest.$ac_ext <<_ACEOF 8403/* confdefs.h. */ 8404_ACEOF 8405cat confdefs.h >>conftest.$ac_ext 8406cat >>conftest.$ac_ext <<_ACEOF 8407/* end confdefs.h. */ 8408 8409/* Override any GCC internal prototype to avoid an error. 8410 Use char because int might match the return type of a GCC 8411 builtin and then its argument prototype would still apply. */ 8412#ifdef __cplusplus 8413extern "C" 8414#endif 8415char krb5int_getspecific (); 8416int 8417main () 8418{ 8419return krb5int_getspecific (); 8420 ; 8421 return 0; 8422} 8423_ACEOF 8424rm -f conftest.$ac_objext conftest$ac_exeext 8425if { (ac_try="$ac_link" 8426case "(($ac_try" in 8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8428 *) ac_try_echo=$ac_try;; 8429esac 8430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8431$as_echo "$ac_try_echo") >&5 8432 (eval "$ac_link") 2>conftest.er1 8433 ac_status=$? 8434 grep -v '^ *+' conftest.er1 >conftest.err 8435 rm -f conftest.er1 8436 cat conftest.err >&5 8437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8438 (exit $ac_status); } && { 8439 test -z "$ac_c_werror_flag" || 8440 test ! -s conftest.err 8441 } && test -s conftest$ac_exeext && { 8442 test "$cross_compiling" = yes || 8443 $as_test_x conftest$ac_exeext 8444 }; then 8445 ac_cv_lib_krb5support_krb5int_getspecific=yes 8446else 8447 $as_echo "$as_me: failed program was:" >&5 8448sed 's/^/| /' conftest.$ac_ext >&5 8449 8450 ac_cv_lib_krb5support_krb5int_getspecific=no 8451fi 8452 8453rm -rf conftest.dSYM 8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8455 conftest$ac_exeext conftest.$ac_ext 8456LIBS=$ac_check_lib_save_LIBS 8457fi 8458{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 8459$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 8460if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = x""yes; then 8461 K5SUP=-lkrb5support K5SUPSTATIC=$gssapi_dir/libkrb5support.a 8462fi 8463 8464 8465 gss_failed=0 8466 { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgssapi_krb5" >&5 8467$as_echo_n "checking for gss_unwrap in -lgssapi_krb5... " >&6; } 8468if test "${ac_cv_lib_gssapi_krb5_gss_unwrap+set}" = set; then 8469 $as_echo_n "(cached) " >&6 8470else 8471 ac_check_lib_save_LIBS=$LIBS 8472LIBS="-lgssapi_krb5 ${GSSAPIBASE_LIBS} -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP} ${LIB_SOCKET} $LIBS" 8473cat >conftest.$ac_ext <<_ACEOF 8474/* confdefs.h. */ 8475_ACEOF 8476cat confdefs.h >>conftest.$ac_ext 8477cat >>conftest.$ac_ext <<_ACEOF 8478/* end confdefs.h. */ 8479 8480/* Override any GCC internal prototype to avoid an error. 8481 Use char because int might match the return type of a GCC 8482 builtin and then its argument prototype would still apply. */ 8483#ifdef __cplusplus 8484extern "C" 8485#endif 8486char gss_unwrap (); 8487int 8488main () 8489{ 8490return gss_unwrap (); 8491 ; 8492 return 0; 8493} 8494_ACEOF 8495rm -f conftest.$ac_objext conftest$ac_exeext 8496if { (ac_try="$ac_link" 8497case "(($ac_try" in 8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8499 *) ac_try_echo=$ac_try;; 8500esac 8501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8502$as_echo "$ac_try_echo") >&5 8503 (eval "$ac_link") 2>conftest.er1 8504 ac_status=$? 8505 grep -v '^ *+' conftest.er1 >conftest.err 8506 rm -f conftest.er1 8507 cat conftest.err >&5 8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); } && { 8510 test -z "$ac_c_werror_flag" || 8511 test ! -s conftest.err 8512 } && test -s conftest$ac_exeext && { 8513 test "$cross_compiling" = yes || 8514 $as_test_x conftest$ac_exeext 8515 }; then 8516 ac_cv_lib_gssapi_krb5_gss_unwrap=yes 8517else 8518 $as_echo "$as_me: failed program was:" >&5 8519sed 's/^/| /' conftest.$ac_ext >&5 8520 8521 ac_cv_lib_gssapi_krb5_gss_unwrap=no 8522fi 8523 8524rm -rf conftest.dSYM 8525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8526 conftest$ac_exeext conftest.$ac_ext 8527LIBS=$ac_check_lib_save_LIBS 8528fi 8529{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_unwrap" >&5 8530$as_echo "$ac_cv_lib_gssapi_krb5_gss_unwrap" >&6; } 8531if test "x$ac_cv_lib_gssapi_krb5_gss_unwrap" = x""yes; then 8532 gss_impl="mit" 8533else 8534 gss_failed=1 8535fi 8536 8537 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 8538 gss_impl="failed" 8539 fi 8540 fi 8541 8542 # For Cybersafe one has to set a platform define in order to make compilation work 8543 if test "$gss_impl" = "auto" -o "$gss_impl" = "cybersafe"; then 8544 8545 cmu_saved_CPPFLAGS=$CPPFLAGS 8546 cmu_saved_GSSAPIBASE_LIBS=$GSSAPIBASE_LIBS 8547# FIXME - Note that the libraries are in .../lib64 for 64bit kernels 8548 if test -d "${gssapi}/appsec-rt/lib"; then 8549 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -L${gssapi}/appsec-rt/lib" 8550 fi 8551 CPPFLAGS="$CPPFLAGS -D$platform" 8552 if test -d "${gssapi}/appsec-sdk/include"; then 8553 CPPFLAGS="$CPPFLAGS -I${gssapi}/appsec-sdk/include" 8554 fi 8555 8556 gss_failed=0 8557 8558# Check for CyberSafe with two libraries first, than fall back to a single 8559# library (older CyberSafe) 8560 8561 unset ac_cv_lib_gss_csf_gss_acq_user 8562 { $as_echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5 8563$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; } 8564if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then 8565 $as_echo_n "(cached) " >&6 8566else 8567 ac_check_lib_save_LIBS=$LIBS 8568LIBS="-lgss ${GSSAPIBASE_LIBS} -lgss -lcstbk5 $LIBS" 8569cat >conftest.$ac_ext <<_ACEOF 8570/* confdefs.h. */ 8571_ACEOF 8572cat confdefs.h >>conftest.$ac_ext 8573cat >>conftest.$ac_ext <<_ACEOF 8574/* end confdefs.h. */ 8575 8576/* Override any GCC internal prototype to avoid an error. 8577 Use char because int might match the return type of a GCC 8578 builtin and then its argument prototype would still apply. */ 8579#ifdef __cplusplus 8580extern "C" 8581#endif 8582char csf_gss_acq_user (); 8583int 8584main () 8585{ 8586return csf_gss_acq_user (); 8587 ; 8588 return 0; 8589} 8590_ACEOF 8591rm -f conftest.$ac_objext conftest$ac_exeext 8592if { (ac_try="$ac_link" 8593case "(($ac_try" in 8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8595 *) ac_try_echo=$ac_try;; 8596esac 8597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8598$as_echo "$ac_try_echo") >&5 8599 (eval "$ac_link") 2>conftest.er1 8600 ac_status=$? 8601 grep -v '^ *+' conftest.er1 >conftest.err 8602 rm -f conftest.er1 8603 cat conftest.err >&5 8604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8605 (exit $ac_status); } && { 8606 test -z "$ac_c_werror_flag" || 8607 test ! -s conftest.err 8608 } && test -s conftest$ac_exeext && { 8609 test "$cross_compiling" = yes || 8610 $as_test_x conftest$ac_exeext 8611 }; then 8612 ac_cv_lib_gss_csf_gss_acq_user=yes 8613else 8614 $as_echo "$as_me: failed program was:" >&5 8615sed 's/^/| /' conftest.$ac_ext >&5 8616 8617 ac_cv_lib_gss_csf_gss_acq_user=no 8618fi 8619 8620rm -rf conftest.dSYM 8621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8622 conftest$ac_exeext conftest.$ac_ext 8623LIBS=$ac_check_lib_save_LIBS 8624fi 8625{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 8626$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; } 8627if test "x$ac_cv_lib_gss_csf_gss_acq_user" = x""yes; then 8628 gss_impl="cybersafe03" 8629else 8630 unset ac_cv_lib_gss_csf_gss_acq_user; 8631 { $as_echo "$as_me:$LINENO: checking for csf_gss_acq_user in -lgss" >&5 8632$as_echo_n "checking for csf_gss_acq_user in -lgss... " >&6; } 8633if test "${ac_cv_lib_gss_csf_gss_acq_user+set}" = set; then 8634 $as_echo_n "(cached) " >&6 8635else 8636 ac_check_lib_save_LIBS=$LIBS 8637LIBS="-lgss $GSSAPIBASE_LIBS -lgss $LIBS" 8638cat >conftest.$ac_ext <<_ACEOF 8639/* confdefs.h. */ 8640_ACEOF 8641cat confdefs.h >>conftest.$ac_ext 8642cat >>conftest.$ac_ext <<_ACEOF 8643/* end confdefs.h. */ 8644 8645/* Override any GCC internal prototype to avoid an error. 8646 Use char because int might match the return type of a GCC 8647 builtin and then its argument prototype would still apply. */ 8648#ifdef __cplusplus 8649extern "C" 8650#endif 8651char csf_gss_acq_user (); 8652int 8653main () 8654{ 8655return csf_gss_acq_user (); 8656 ; 8657 return 0; 8658} 8659_ACEOF 8660rm -f conftest.$ac_objext conftest$ac_exeext 8661if { (ac_try="$ac_link" 8662case "(($ac_try" in 8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8664 *) ac_try_echo=$ac_try;; 8665esac 8666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8667$as_echo "$ac_try_echo") >&5 8668 (eval "$ac_link") 2>conftest.er1 8669 ac_status=$? 8670 grep -v '^ *+' conftest.er1 >conftest.err 8671 rm -f conftest.er1 8672 cat conftest.err >&5 8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8674 (exit $ac_status); } && { 8675 test -z "$ac_c_werror_flag" || 8676 test ! -s conftest.err 8677 } && test -s conftest$ac_exeext && { 8678 test "$cross_compiling" = yes || 8679 $as_test_x conftest$ac_exeext 8680 }; then 8681 ac_cv_lib_gss_csf_gss_acq_user=yes 8682else 8683 $as_echo "$as_me: failed program was:" >&5 8684sed 's/^/| /' conftest.$ac_ext >&5 8685 8686 ac_cv_lib_gss_csf_gss_acq_user=no 8687fi 8688 8689rm -rf conftest.dSYM 8690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8691 conftest$ac_exeext conftest.$ac_ext 8692LIBS=$ac_check_lib_save_LIBS 8693fi 8694{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_csf_gss_acq_user" >&5 8695$as_echo "$ac_cv_lib_gss_csf_gss_acq_user" >&6; } 8696if test "x$ac_cv_lib_gss_csf_gss_acq_user" = x""yes; then 8697 gss_impl="cybersafe" 8698else 8699 gss_failed=1 8700fi 8701 8702fi 8703 8704 8705 if test "$gss_failed" = "1"; then 8706# Restore variables 8707 GSSAPIBASE_LIBS=$cmu_saved_GSSAPIBASE_LIBS 8708 CPPFLAGS=$cmu_saved_CPPFLAGS 8709 8710 if test "$gss_impl" != "auto"; then 8711 gss_impl="failed" 8712 fi 8713 fi 8714 fi 8715 8716 if test "$gss_impl" = "auto" -o "$gss_impl" = "seam"; then 8717 gss_failed=0 8718 { $as_echo "$as_me:$LINENO: checking for gss_unwrap in -lgss" >&5 8719$as_echo_n "checking for gss_unwrap in -lgss... " >&6; } 8720if test "${ac_cv_lib_gss_gss_unwrap+set}" = set; then 8721 $as_echo_n "(cached) " >&6 8722else 8723 ac_check_lib_save_LIBS=$LIBS 8724LIBS="-lgss -lgss $LIBS" 8725cat >conftest.$ac_ext <<_ACEOF 8726/* confdefs.h. */ 8727_ACEOF 8728cat confdefs.h >>conftest.$ac_ext 8729cat >>conftest.$ac_ext <<_ACEOF 8730/* end confdefs.h. */ 8731 8732/* Override any GCC internal prototype to avoid an error. 8733 Use char because int might match the return type of a GCC 8734 builtin and then its argument prototype would still apply. */ 8735#ifdef __cplusplus 8736extern "C" 8737#endif 8738char gss_unwrap (); 8739int 8740main () 8741{ 8742return gss_unwrap (); 8743 ; 8744 return 0; 8745} 8746_ACEOF 8747rm -f conftest.$ac_objext conftest$ac_exeext 8748if { (ac_try="$ac_link" 8749case "(($ac_try" in 8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8751 *) ac_try_echo=$ac_try;; 8752esac 8753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8754$as_echo "$ac_try_echo") >&5 8755 (eval "$ac_link") 2>conftest.er1 8756 ac_status=$? 8757 grep -v '^ *+' conftest.er1 >conftest.err 8758 rm -f conftest.er1 8759 cat conftest.err >&5 8760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8761 (exit $ac_status); } && { 8762 test -z "$ac_c_werror_flag" || 8763 test ! -s conftest.err 8764 } && test -s conftest$ac_exeext && { 8765 test "$cross_compiling" = yes || 8766 $as_test_x conftest$ac_exeext 8767 }; then 8768 ac_cv_lib_gss_gss_unwrap=yes 8769else 8770 $as_echo "$as_me: failed program was:" >&5 8771sed 's/^/| /' conftest.$ac_ext >&5 8772 8773 ac_cv_lib_gss_gss_unwrap=no 8774fi 8775 8776rm -rf conftest.dSYM 8777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8778 conftest$ac_exeext conftest.$ac_ext 8779LIBS=$ac_check_lib_save_LIBS 8780fi 8781{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_unwrap" >&5 8782$as_echo "$ac_cv_lib_gss_gss_unwrap" >&6; } 8783if test "x$ac_cv_lib_gss_gss_unwrap" = x""yes; then 8784 gss_impl="seam" 8785else 8786 gss_failed=1 8787fi 8788 8789 if test "$gss_impl" != "auto" -a "$gss_failed" = "1"; then 8790 gss_impl="failed" 8791 fi 8792 fi 8793 8794 if test "$gss_impl" = "mit"; then 8795 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${K5SUP}" 8796 GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a $gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a ${K5SUPSTATIC}" 8797 elif test "$gss_impl" = "heimdal"; then 8798 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL" 8799 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgssapi -lkrb5 -lasn1 -lroken ${LIB_CRYPT} ${LIB_DES} -lcom_err" 8800 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}" 8801 elif test "$gss_impl" = "cybersafe03"; then 8802# Version of CyberSafe with two libraries 8803 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 8804 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss -lcstbk5" 8805 # there is no static libgss for CyberSafe 8806 GSSAPIBASE_STATIC_LIBS=none 8807 elif test "$gss_impl" = "cybersafe"; then 8808 CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include" 8809 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lgss" 8810 # there is no static libgss for CyberSafe 8811 GSSAPIBASE_STATIC_LIBS=none 8812 elif test "$gss_impl" = "seam"; then 8813 GSSAPIBASE_LIBS=-lgss 8814 # there is no static libgss on Solaris 8 and up 8815 GSSAPIBASE_STATIC_LIBS=none 8816 elif test "$gss_impl" = "failed"; then 8817 gssapi="no" 8818 GSSAPIBASE_LIBS= 8819 GSSAPIBASE_STATIC_LIBS= 8820 { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - specified library not found" >&5 8821$as_echo "$as_me: WARNING: Disabling GSSAPI - specified library not found" >&2;} 8822 else 8823 gssapi="no" 8824 GSSAPIBASE_LIBS= 8825 GSSAPIBASE_STATIC_LIBS= 8826 { $as_echo "$as_me:$LINENO: WARNING: Disabling GSSAPI - no library" >&5 8827$as_echo "$as_me: WARNING: Disabling GSSAPI - no library" >&2;} 8828 fi 8829fi 8830 8831# 8832# Cybersafe defines both GSS_C_NT_HOSTBASED_SERVICE and GSS_C_NT_USER_NAME 8833# in gssapi\rfckrb5.h 8834# 8835if test "$gssapi" != "no"; then 8836 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 8837 cat >conftest.$ac_ext <<_ACEOF 8838/* confdefs.h. */ 8839_ACEOF 8840cat confdefs.h >>conftest.$ac_ext 8841cat >>conftest.$ac_ext <<_ACEOF 8842/* end confdefs.h. */ 8843#include <gssapi/gssapi.h> 8844 #ifdef GSS_C_NT_HOSTBASED_SERVICE 8845 hostbased_service_gss_nt_yes 8846 #endif 8847_ACEOF 8848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8849 $EGREP "hostbased_service_gss_nt_yes" >/dev/null 2>&1; then 8850 8851cat >>confdefs.h <<\_ACEOF 8852#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/ 8853_ACEOF 8854 8855else 8856 { $as_echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5 8857$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;} 8858fi 8859rm -f conftest* 8860 8861 8862 elif test "$ac_cv_header_gssapi_h" = "yes"; then 8863 cat >conftest.$ac_ext <<_ACEOF 8864/* confdefs.h. */ 8865_ACEOF 8866cat confdefs.h >>conftest.$ac_ext 8867cat >>conftest.$ac_ext <<_ACEOF 8868/* end confdefs.h. */ 8869#include <gssapi.h> 8870 8871_ACEOF 8872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8873 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 8874 8875cat >>confdefs.h <<\_ACEOF 8876#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/ 8877_ACEOF 8878 8879fi 8880rm -f conftest* 8881 8882 elif test "$ac_cv_header_gssapi_gssapi_h"; then 8883 cat >conftest.$ac_ext <<_ACEOF 8884/* confdefs.h. */ 8885_ACEOF 8886cat confdefs.h >>conftest.$ac_ext 8887cat >>conftest.$ac_ext <<_ACEOF 8888/* end confdefs.h. */ 8889#include <gssapi/gssapi.h> 8890 8891_ACEOF 8892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8893 $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then 8894 8895cat >>confdefs.h <<\_ACEOF 8896#define HAVE_GSS_C_NT_HOSTBASED_SERVICE /**/ 8897_ACEOF 8898 8899fi 8900rm -f conftest* 8901 8902 fi 8903 8904 if test "$gss_impl" = "cybersafe" -o "$gss_impl" = "cybersafe03"; then 8905 cat >conftest.$ac_ext <<_ACEOF 8906/* confdefs.h. */ 8907_ACEOF 8908cat confdefs.h >>conftest.$ac_ext 8909cat >>conftest.$ac_ext <<_ACEOF 8910/* end confdefs.h. */ 8911#include <gssapi/gssapi.h> 8912 #ifdef GSS_C_NT_USER_NAME 8913 user_name_yes_gss_nt 8914 #endif 8915_ACEOF 8916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8917 $EGREP "user_name_yes_gss_nt" >/dev/null 2>&1; then 8918 8919cat >>confdefs.h <<\_ACEOF 8920#define HAVE_GSS_C_NT_USER_NAME /**/ 8921_ACEOF 8922 8923else 8924 { $as_echo "$as_me:$LINENO: WARNING: Cybersafe define not found" >&5 8925$as_echo "$as_me: WARNING: Cybersafe define not found" >&2;} 8926fi 8927rm -f conftest* 8928 8929 elif test "$ac_cv_header_gssapi_h" = "yes"; then 8930 cat >conftest.$ac_ext <<_ACEOF 8931/* confdefs.h. */ 8932_ACEOF 8933cat confdefs.h >>conftest.$ac_ext 8934cat >>conftest.$ac_ext <<_ACEOF 8935/* end confdefs.h. */ 8936#include <gssapi.h> 8937 8938_ACEOF 8939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8940 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then 8941 8942cat >>confdefs.h <<\_ACEOF 8943#define HAVE_GSS_C_NT_USER_NAME /**/ 8944_ACEOF 8945 8946fi 8947rm -f conftest* 8948 8949 cat >conftest.$ac_ext <<_ACEOF 8950/* confdefs.h. */ 8951_ACEOF 8952cat confdefs.h >>conftest.$ac_ext 8953cat >>conftest.$ac_ext <<_ACEOF 8954/* end confdefs.h. */ 8955#include <gssapi.h> 8956 8957_ACEOF 8958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8959 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then 8960 rfc5587=yes 8961fi 8962rm -f conftest* 8963 8964 cat >conftest.$ac_ext <<_ACEOF 8965/* confdefs.h. */ 8966_ACEOF 8967cat confdefs.h >>conftest.$ac_ext 8968cat >>conftest.$ac_ext <<_ACEOF 8969/* end confdefs.h. */ 8970#include <gssapi.h> 8971 8972_ACEOF 8973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8974 $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then 8975 rfc5801=yes 8976fi 8977rm -f conftest* 8978 8979 elif test "$ac_cv_header_gssapi_gssapi_h"; then 8980 cat >conftest.$ac_ext <<_ACEOF 8981/* confdefs.h. */ 8982_ACEOF 8983cat confdefs.h >>conftest.$ac_ext 8984cat >>conftest.$ac_ext <<_ACEOF 8985/* end confdefs.h. */ 8986#include <gssapi/gssapi.h> 8987 8988_ACEOF 8989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8990 $EGREP "GSS_C_NT_USER_NAME" >/dev/null 2>&1; then 8991 8992cat >>confdefs.h <<\_ACEOF 8993#define HAVE_GSS_C_NT_USER_NAME /**/ 8994_ACEOF 8995 8996fi 8997rm -f conftest* 8998 8999 cat >conftest.$ac_ext <<_ACEOF 9000/* confdefs.h. */ 9001_ACEOF 9002cat confdefs.h >>conftest.$ac_ext 9003cat >>conftest.$ac_ext <<_ACEOF 9004/* end confdefs.h. */ 9005#include <gssapi/gssapi.h> 9006 9007_ACEOF 9008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9009 $EGREP "gss_inquire_attrs_for_mech" >/dev/null 2>&1; then 9010 rfc5587=yes 9011fi 9012rm -f conftest* 9013 9014 cat >conftest.$ac_ext <<_ACEOF 9015/* confdefs.h. */ 9016_ACEOF 9017cat confdefs.h >>conftest.$ac_ext 9018cat >>conftest.$ac_ext <<_ACEOF 9019/* end confdefs.h. */ 9020#include <gssapi.h> 9021 9022_ACEOF 9023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9024 $EGREP "gss_inquire_mech_for_saslname" >/dev/null 2>&1; then 9025 rfc5801=yes 9026fi 9027rm -f conftest* 9028 9029 fi 9030fi 9031 9032GSSAPI_LIBS="" 9033{ $as_echo "$as_me:$LINENO: checking GSSAPI" >&5 9034$as_echo_n "checking GSSAPI... " >&6; } 9035if test "$gssapi" != no; then 9036 { $as_echo "$as_me:$LINENO: result: with implementation ${gss_impl}" >&5 9037$as_echo "with implementation ${gss_impl}" >&6; } 9038 { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 9039$as_echo_n "checking for res_search in -lresolv... " >&6; } 9040if test "${ac_cv_lib_resolv_res_search+set}" = set; then 9041 $as_echo_n "(cached) " >&6 9042else 9043 ac_check_lib_save_LIBS=$LIBS 9044LIBS="-lresolv $LIBS" 9045cat >conftest.$ac_ext <<_ACEOF 9046/* confdefs.h. */ 9047_ACEOF 9048cat confdefs.h >>conftest.$ac_ext 9049cat >>conftest.$ac_ext <<_ACEOF 9050/* end confdefs.h. */ 9051 9052/* Override any GCC internal prototype to avoid an error. 9053 Use char because int might match the return type of a GCC 9054 builtin and then its argument prototype would still apply. */ 9055#ifdef __cplusplus 9056extern "C" 9057#endif 9058char res_search (); 9059int 9060main () 9061{ 9062return res_search (); 9063 ; 9064 return 0; 9065} 9066_ACEOF 9067rm -f conftest.$ac_objext conftest$ac_exeext 9068if { (ac_try="$ac_link" 9069case "(($ac_try" in 9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9071 *) ac_try_echo=$ac_try;; 9072esac 9073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9074$as_echo "$ac_try_echo") >&5 9075 (eval "$ac_link") 2>conftest.er1 9076 ac_status=$? 9077 grep -v '^ *+' conftest.er1 >conftest.err 9078 rm -f conftest.er1 9079 cat conftest.err >&5 9080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9081 (exit $ac_status); } && { 9082 test -z "$ac_c_werror_flag" || 9083 test ! -s conftest.err 9084 } && test -s conftest$ac_exeext && { 9085 test "$cross_compiling" = yes || 9086 $as_test_x conftest$ac_exeext 9087 }; then 9088 ac_cv_lib_resolv_res_search=yes 9089else 9090 $as_echo "$as_me: failed program was:" >&5 9091sed 's/^/| /' conftest.$ac_ext >&5 9092 9093 ac_cv_lib_resolv_res_search=no 9094fi 9095 9096rm -rf conftest.dSYM 9097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9098 conftest$ac_exeext conftest.$ac_ext 9099LIBS=$ac_check_lib_save_LIBS 9100fi 9101{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 9102$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 9103if test "x$ac_cv_lib_resolv_res_search" = x""yes; then 9104 GSSAPIBASE_LIBS="$GSSAPIBASE_LIBS -lresolv" 9105fi 9106 9107 SASL_MECHS="$SASL_MECHS libgssapiv2.la" 9108 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gssapi.o" 9109 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gssapi.c" 9110 if test "$rfc5587" = "yes" -a "$rfc5801" = "yes"; then 9111 SASL_MECHS="$SASL_MECHS libgs2.la" 9112 SASL_STATIC_OBJS="$SASL_STATIC_OBJS gs2.o" 9113 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/gs2.c" 9114 fi 9115 9116 cmu_save_LIBS="$LIBS" 9117 LIBS="$LIBS $GSSAPIBASE_LIBS" 9118 9119for ac_func in gsskrb5_register_acceptor_identity 9120do 9121as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9122{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9123$as_echo_n "checking for $ac_func... " >&6; } 9124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9125 $as_echo_n "(cached) " >&6 9126else 9127 cat >conftest.$ac_ext <<_ACEOF 9128/* confdefs.h. */ 9129_ACEOF 9130cat confdefs.h >>conftest.$ac_ext 9131cat >>conftest.$ac_ext <<_ACEOF 9132/* end confdefs.h. */ 9133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9134 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9135#define $ac_func innocuous_$ac_func 9136 9137/* System header to define __stub macros and hopefully few prototypes, 9138 which can conflict with char $ac_func (); below. 9139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9140 <limits.h> exists even on freestanding compilers. */ 9141 9142#ifdef __STDC__ 9143# include <limits.h> 9144#else 9145# include <assert.h> 9146#endif 9147 9148#undef $ac_func 9149 9150/* Override any GCC internal prototype to avoid an error. 9151 Use char because int might match the return type of a GCC 9152 builtin and then its argument prototype would still apply. */ 9153#ifdef __cplusplus 9154extern "C" 9155#endif 9156char $ac_func (); 9157/* The GNU C library defines this for functions which it implements 9158 to always fail with ENOSYS. Some functions are actually named 9159 something starting with __ and the normal name is an alias. */ 9160#if defined __stub_$ac_func || defined __stub___$ac_func 9161choke me 9162#endif 9163 9164int 9165main () 9166{ 9167return $ac_func (); 9168 ; 9169 return 0; 9170} 9171_ACEOF 9172rm -f conftest.$ac_objext conftest$ac_exeext 9173if { (ac_try="$ac_link" 9174case "(($ac_try" in 9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9176 *) ac_try_echo=$ac_try;; 9177esac 9178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9179$as_echo "$ac_try_echo") >&5 9180 (eval "$ac_link") 2>conftest.er1 9181 ac_status=$? 9182 grep -v '^ *+' conftest.er1 >conftest.err 9183 rm -f conftest.er1 9184 cat conftest.err >&5 9185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9186 (exit $ac_status); } && { 9187 test -z "$ac_c_werror_flag" || 9188 test ! -s conftest.err 9189 } && test -s conftest$ac_exeext && { 9190 test "$cross_compiling" = yes || 9191 $as_test_x conftest$ac_exeext 9192 }; then 9193 eval "$as_ac_var=yes" 9194else 9195 $as_echo "$as_me: failed program was:" >&5 9196sed 's/^/| /' conftest.$ac_ext >&5 9197 9198 eval "$as_ac_var=no" 9199fi 9200 9201rm -rf conftest.dSYM 9202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9203 conftest$ac_exeext conftest.$ac_ext 9204fi 9205ac_res=`eval 'as_val=${'$as_ac_var'} 9206 $as_echo "$as_val"'` 9207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9208$as_echo "$ac_res" >&6; } 9209as_val=`eval 'as_val=${'$as_ac_var'} 9210 $as_echo "$as_val"'` 9211 if test "x$as_val" = x""yes; then 9212 cat >>confdefs.h <<_ACEOF 9213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9214_ACEOF 9215 9216fi 9217done 9218 9219 9220for ac_func in gss_decapsulate_token 9221do 9222as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9223{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9224$as_echo_n "checking for $ac_func... " >&6; } 9225if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9226 $as_echo_n "(cached) " >&6 9227else 9228 cat >conftest.$ac_ext <<_ACEOF 9229/* confdefs.h. */ 9230_ACEOF 9231cat confdefs.h >>conftest.$ac_ext 9232cat >>conftest.$ac_ext <<_ACEOF 9233/* end confdefs.h. */ 9234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9235 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9236#define $ac_func innocuous_$ac_func 9237 9238/* System header to define __stub macros and hopefully few prototypes, 9239 which can conflict with char $ac_func (); below. 9240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9241 <limits.h> exists even on freestanding compilers. */ 9242 9243#ifdef __STDC__ 9244# include <limits.h> 9245#else 9246# include <assert.h> 9247#endif 9248 9249#undef $ac_func 9250 9251/* Override any GCC internal prototype to avoid an error. 9252 Use char because int might match the return type of a GCC 9253 builtin and then its argument prototype would still apply. */ 9254#ifdef __cplusplus 9255extern "C" 9256#endif 9257char $ac_func (); 9258/* The GNU C library defines this for functions which it implements 9259 to always fail with ENOSYS. Some functions are actually named 9260 something starting with __ and the normal name is an alias. */ 9261#if defined __stub_$ac_func || defined __stub___$ac_func 9262choke me 9263#endif 9264 9265int 9266main () 9267{ 9268return $ac_func (); 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273rm -f conftest.$ac_objext conftest$ac_exeext 9274if { (ac_try="$ac_link" 9275case "(($ac_try" in 9276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9277 *) ac_try_echo=$ac_try;; 9278esac 9279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9280$as_echo "$ac_try_echo") >&5 9281 (eval "$ac_link") 2>conftest.er1 9282 ac_status=$? 9283 grep -v '^ *+' conftest.er1 >conftest.err 9284 rm -f conftest.er1 9285 cat conftest.err >&5 9286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9287 (exit $ac_status); } && { 9288 test -z "$ac_c_werror_flag" || 9289 test ! -s conftest.err 9290 } && test -s conftest$ac_exeext && { 9291 test "$cross_compiling" = yes || 9292 $as_test_x conftest$ac_exeext 9293 }; then 9294 eval "$as_ac_var=yes" 9295else 9296 $as_echo "$as_me: failed program was:" >&5 9297sed 's/^/| /' conftest.$ac_ext >&5 9298 9299 eval "$as_ac_var=no" 9300fi 9301 9302rm -rf conftest.dSYM 9303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9304 conftest$ac_exeext conftest.$ac_ext 9305fi 9306ac_res=`eval 'as_val=${'$as_ac_var'} 9307 $as_echo "$as_val"'` 9308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9309$as_echo "$ac_res" >&6; } 9310as_val=`eval 'as_val=${'$as_ac_var'} 9311 $as_echo "$as_val"'` 9312 if test "x$as_val" = x""yes; then 9313 cat >>confdefs.h <<_ACEOF 9314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9315_ACEOF 9316 9317fi 9318done 9319 9320 9321for ac_func in gss_encapsulate_token 9322do 9323as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9324{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9325$as_echo_n "checking for $ac_func... " >&6; } 9326if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9327 $as_echo_n "(cached) " >&6 9328else 9329 cat >conftest.$ac_ext <<_ACEOF 9330/* confdefs.h. */ 9331_ACEOF 9332cat confdefs.h >>conftest.$ac_ext 9333cat >>conftest.$ac_ext <<_ACEOF 9334/* end confdefs.h. */ 9335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9336 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9337#define $ac_func innocuous_$ac_func 9338 9339/* System header to define __stub macros and hopefully few prototypes, 9340 which can conflict with char $ac_func (); below. 9341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9342 <limits.h> exists even on freestanding compilers. */ 9343 9344#ifdef __STDC__ 9345# include <limits.h> 9346#else 9347# include <assert.h> 9348#endif 9349 9350#undef $ac_func 9351 9352/* Override any GCC internal prototype to avoid an error. 9353 Use char because int might match the return type of a GCC 9354 builtin and then its argument prototype would still apply. */ 9355#ifdef __cplusplus 9356extern "C" 9357#endif 9358char $ac_func (); 9359/* The GNU C library defines this for functions which it implements 9360 to always fail with ENOSYS. Some functions are actually named 9361 something starting with __ and the normal name is an alias. */ 9362#if defined __stub_$ac_func || defined __stub___$ac_func 9363choke me 9364#endif 9365 9366int 9367main () 9368{ 9369return $ac_func (); 9370 ; 9371 return 0; 9372} 9373_ACEOF 9374rm -f conftest.$ac_objext conftest$ac_exeext 9375if { (ac_try="$ac_link" 9376case "(($ac_try" in 9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9378 *) ac_try_echo=$ac_try;; 9379esac 9380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9381$as_echo "$ac_try_echo") >&5 9382 (eval "$ac_link") 2>conftest.er1 9383 ac_status=$? 9384 grep -v '^ *+' conftest.er1 >conftest.err 9385 rm -f conftest.er1 9386 cat conftest.err >&5 9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); } && { 9389 test -z "$ac_c_werror_flag" || 9390 test ! -s conftest.err 9391 } && test -s conftest$ac_exeext && { 9392 test "$cross_compiling" = yes || 9393 $as_test_x conftest$ac_exeext 9394 }; then 9395 eval "$as_ac_var=yes" 9396else 9397 $as_echo "$as_me: failed program was:" >&5 9398sed 's/^/| /' conftest.$ac_ext >&5 9399 9400 eval "$as_ac_var=no" 9401fi 9402 9403rm -rf conftest.dSYM 9404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9405 conftest$ac_exeext conftest.$ac_ext 9406fi 9407ac_res=`eval 'as_val=${'$as_ac_var'} 9408 $as_echo "$as_val"'` 9409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9410$as_echo "$ac_res" >&6; } 9411as_val=`eval 'as_val=${'$as_ac_var'} 9412 $as_echo "$as_val"'` 9413 if test "x$as_val" = x""yes; then 9414 cat >>confdefs.h <<_ACEOF 9415#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9416_ACEOF 9417 9418fi 9419done 9420 9421 9422for ac_func in gss_oid_equal 9423do 9424as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9425{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9426$as_echo_n "checking for $ac_func... " >&6; } 9427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat >conftest.$ac_ext <<_ACEOF 9431/* confdefs.h. */ 9432_ACEOF 9433cat confdefs.h >>conftest.$ac_ext 9434cat >>conftest.$ac_ext <<_ACEOF 9435/* end confdefs.h. */ 9436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9437 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9438#define $ac_func innocuous_$ac_func 9439 9440/* System header to define __stub macros and hopefully few prototypes, 9441 which can conflict with char $ac_func (); below. 9442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9443 <limits.h> exists even on freestanding compilers. */ 9444 9445#ifdef __STDC__ 9446# include <limits.h> 9447#else 9448# include <assert.h> 9449#endif 9450 9451#undef $ac_func 9452 9453/* Override any GCC internal prototype to avoid an error. 9454 Use char because int might match the return type of a GCC 9455 builtin and then its argument prototype would still apply. */ 9456#ifdef __cplusplus 9457extern "C" 9458#endif 9459char $ac_func (); 9460/* The GNU C library defines this for functions which it implements 9461 to always fail with ENOSYS. Some functions are actually named 9462 something starting with __ and the normal name is an alias. */ 9463#if defined __stub_$ac_func || defined __stub___$ac_func 9464choke me 9465#endif 9466 9467int 9468main () 9469{ 9470return $ac_func (); 9471 ; 9472 return 0; 9473} 9474_ACEOF 9475rm -f conftest.$ac_objext conftest$ac_exeext 9476if { (ac_try="$ac_link" 9477case "(($ac_try" in 9478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9479 *) ac_try_echo=$ac_try;; 9480esac 9481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9482$as_echo "$ac_try_echo") >&5 9483 (eval "$ac_link") 2>conftest.er1 9484 ac_status=$? 9485 grep -v '^ *+' conftest.er1 >conftest.err 9486 rm -f conftest.er1 9487 cat conftest.err >&5 9488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 (exit $ac_status); } && { 9490 test -z "$ac_c_werror_flag" || 9491 test ! -s conftest.err 9492 } && test -s conftest$ac_exeext && { 9493 test "$cross_compiling" = yes || 9494 $as_test_x conftest$ac_exeext 9495 }; then 9496 eval "$as_ac_var=yes" 9497else 9498 $as_echo "$as_me: failed program was:" >&5 9499sed 's/^/| /' conftest.$ac_ext >&5 9500 9501 eval "$as_ac_var=no" 9502fi 9503 9504rm -rf conftest.dSYM 9505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9506 conftest$ac_exeext conftest.$ac_ext 9507fi 9508ac_res=`eval 'as_val=${'$as_ac_var'} 9509 $as_echo "$as_val"'` 9510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9511$as_echo "$ac_res" >&6; } 9512as_val=`eval 'as_val=${'$as_ac_var'} 9513 $as_echo "$as_val"'` 9514 if test "x$as_val" = x""yes; then 9515 cat >>confdefs.h <<_ACEOF 9516#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9517_ACEOF 9518 9519fi 9520done 9521 9522 LIBS="$cmu_save_LIBS" 9523 9524 cmu_save_LIBS="$LIBS" 9525 LIBS="$LIBS $GSSAPIBASE_LIBS" 9526 9527for ac_func in gss_get_name_attribute 9528do 9529as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9530{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 9531$as_echo_n "checking for $ac_func... " >&6; } 9532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9533 $as_echo_n "(cached) " >&6 9534else 9535 cat >conftest.$ac_ext <<_ACEOF 9536/* confdefs.h. */ 9537_ACEOF 9538cat confdefs.h >>conftest.$ac_ext 9539cat >>conftest.$ac_ext <<_ACEOF 9540/* end confdefs.h. */ 9541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9542 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9543#define $ac_func innocuous_$ac_func 9544 9545/* System header to define __stub macros and hopefully few prototypes, 9546 which can conflict with char $ac_func (); below. 9547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9548 <limits.h> exists even on freestanding compilers. */ 9549 9550#ifdef __STDC__ 9551# include <limits.h> 9552#else 9553# include <assert.h> 9554#endif 9555 9556#undef $ac_func 9557 9558/* Override any GCC internal prototype to avoid an error. 9559 Use char because int might match the return type of a GCC 9560 builtin and then its argument prototype would still apply. */ 9561#ifdef __cplusplus 9562extern "C" 9563#endif 9564char $ac_func (); 9565/* The GNU C library defines this for functions which it implements 9566 to always fail with ENOSYS. Some functions are actually named 9567 something starting with __ and the normal name is an alias. */ 9568#if defined __stub_$ac_func || defined __stub___$ac_func 9569choke me 9570#endif 9571 9572int 9573main () 9574{ 9575return $ac_func (); 9576 ; 9577 return 0; 9578} 9579_ACEOF 9580rm -f conftest.$ac_objext conftest$ac_exeext 9581if { (ac_try="$ac_link" 9582case "(($ac_try" in 9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9584 *) ac_try_echo=$ac_try;; 9585esac 9586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9587$as_echo "$ac_try_echo") >&5 9588 (eval "$ac_link") 2>conftest.er1 9589 ac_status=$? 9590 grep -v '^ *+' conftest.er1 >conftest.err 9591 rm -f conftest.er1 9592 cat conftest.err >&5 9593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9594 (exit $ac_status); } && { 9595 test -z "$ac_c_werror_flag" || 9596 test ! -s conftest.err 9597 } && test -s conftest$ac_exeext && { 9598 test "$cross_compiling" = yes || 9599 $as_test_x conftest$ac_exeext 9600 }; then 9601 eval "$as_ac_var=yes" 9602else 9603 $as_echo "$as_me: failed program was:" >&5 9604sed 's/^/| /' conftest.$ac_ext >&5 9605 9606 eval "$as_ac_var=no" 9607fi 9608 9609rm -rf conftest.dSYM 9610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9611 conftest$ac_exeext conftest.$ac_ext 9612fi 9613ac_res=`eval 'as_val=${'$as_ac_var'} 9614 $as_echo "$as_val"'` 9615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 9616$as_echo "$ac_res" >&6; } 9617as_val=`eval 'as_val=${'$as_ac_var'} 9618 $as_echo "$as_val"'` 9619 if test "x$as_val" = x""yes; then 9620 cat >>confdefs.h <<_ACEOF 9621#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9622_ACEOF 9623 9624fi 9625done 9626 9627 LIBS="$cmu_save_LIBS" 9628 9629 cmu_save_LIBS="$LIBS" 9630 LIBS="$LIBS $GSSAPIBASE_LIBS" 9631 { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5 9632$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; } 9633 if test "$cross_compiling" = yes; then 9634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 9635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9636{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9637See \`config.log' for more details." >&5 9638$as_echo "$as_me: error: cannot run test program while cross compiling 9639See \`config.log' for more details." >&2;} 9640 { (exit 1); exit 1; }; }; } 9641else 9642 cat >conftest.$ac_ext <<_ACEOF 9643/* confdefs.h. */ 9644_ACEOF 9645cat confdefs.h >>conftest.$ac_ext 9646cat >>conftest.$ac_ext <<_ACEOF 9647/* end confdefs.h. */ 9648 9649#ifdef HAVE_GSSAPI_H 9650#include <gssapi.h> 9651#else 9652#include <gssapi/gssapi.h> 9653#endif 9654 9655int main(void) 9656{ 9657 gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" }; 9658 gss_OID_set mech_set; 9659 OM_uint32 min_stat; 9660 int have_spnego = 0; 9661 9662 if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) { 9663 gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego); 9664 gss_release_oid_set(&min_stat, &mech_set); 9665 } 9666 9667 return (!have_spnego); // 0 = success, 1 = failure 9668} 9669 9670_ACEOF 9671rm -f conftest$ac_exeext 9672if { (ac_try="$ac_link" 9673case "(($ac_try" in 9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9675 *) ac_try_echo=$ac_try;; 9676esac 9677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9678$as_echo "$ac_try_echo") >&5 9679 (eval "$ac_link") 2>&5 9680 ac_status=$? 9681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9683 { (case "(($ac_try" in 9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9685 *) ac_try_echo=$ac_try;; 9686esac 9687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9688$as_echo "$ac_try_echo") >&5 9689 (eval "$ac_try") 2>&5 9690 ac_status=$? 9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9692 (exit $ac_status); }; }; then 9693 9694cat >>confdefs.h <<\_ACEOF 9695#define HAVE_GSS_SPNEGO /**/ 9696_ACEOF 9697 9698 { $as_echo "$as_me:$LINENO: result: yes" >&5 9699$as_echo "yes" >&6; } 9700else 9701 $as_echo "$as_me: program exited with status $ac_status" >&5 9702$as_echo "$as_me: failed program was:" >&5 9703sed 's/^/| /' conftest.$ac_ext >&5 9704 9705( exit $ac_status ) 9706{ $as_echo "$as_me:$LINENO: result: no" >&5 9707$as_echo "no" >&6; } 9708fi 9709rm -rf conftest.dSYM 9710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9711fi 9712 9713 9714 LIBS="$cmu_save_LIBS" 9715 9716else 9717 { $as_echo "$as_me:$LINENO: result: disabled" >&5 9718$as_echo "disabled" >&6; } 9719fi 9720 9721 9722 9723 9724if test "$gssapi" != no; then 9725 if test "$gss_impl" = "heimdal"; then 9726 9727cat >>confdefs.h <<\_ACEOF 9728#define KRB5_HEIMDAL /**/ 9729_ACEOF 9730 9731 fi 9732 9733cat >>confdefs.h <<\_ACEOF 9734#define HAVE_GSSAPI /**/ 9735_ACEOF 9736 9737fi 9738 9739{ $as_echo "$as_me:$LINENO: checking for crypt" >&5 9740$as_echo_n "checking for crypt... " >&6; } 9741if test "${ac_cv_func_crypt+set}" = set; then 9742 $as_echo_n "(cached) " >&6 9743else 9744 cat >conftest.$ac_ext <<_ACEOF 9745/* confdefs.h. */ 9746_ACEOF 9747cat confdefs.h >>conftest.$ac_ext 9748cat >>conftest.$ac_ext <<_ACEOF 9749/* end confdefs.h. */ 9750/* Define crypt to an innocuous variant, in case <limits.h> declares crypt. 9751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9752#define crypt innocuous_crypt 9753 9754/* System header to define __stub macros and hopefully few prototypes, 9755 which can conflict with char crypt (); below. 9756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9757 <limits.h> exists even on freestanding compilers. */ 9758 9759#ifdef __STDC__ 9760# include <limits.h> 9761#else 9762# include <assert.h> 9763#endif 9764 9765#undef crypt 9766 9767/* Override any GCC internal prototype to avoid an error. 9768 Use char because int might match the return type of a GCC 9769 builtin and then its argument prototype would still apply. */ 9770#ifdef __cplusplus 9771extern "C" 9772#endif 9773char crypt (); 9774/* The GNU C library defines this for functions which it implements 9775 to always fail with ENOSYS. Some functions are actually named 9776 something starting with __ and the normal name is an alias. */ 9777#if defined __stub_crypt || defined __stub___crypt 9778choke me 9779#endif 9780 9781int 9782main () 9783{ 9784return crypt (); 9785 ; 9786 return 0; 9787} 9788_ACEOF 9789rm -f conftest.$ac_objext conftest$ac_exeext 9790if { (ac_try="$ac_link" 9791case "(($ac_try" in 9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9793 *) ac_try_echo=$ac_try;; 9794esac 9795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9796$as_echo "$ac_try_echo") >&5 9797 (eval "$ac_link") 2>conftest.er1 9798 ac_status=$? 9799 grep -v '^ *+' conftest.er1 >conftest.err 9800 rm -f conftest.er1 9801 cat conftest.err >&5 9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9803 (exit $ac_status); } && { 9804 test -z "$ac_c_werror_flag" || 9805 test ! -s conftest.err 9806 } && test -s conftest$ac_exeext && { 9807 test "$cross_compiling" = yes || 9808 $as_test_x conftest$ac_exeext 9809 }; then 9810 ac_cv_func_crypt=yes 9811else 9812 $as_echo "$as_me: failed program was:" >&5 9813sed 's/^/| /' conftest.$ac_ext >&5 9814 9815 ac_cv_func_crypt=no 9816fi 9817 9818rm -rf conftest.dSYM 9819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9820 conftest$ac_exeext conftest.$ac_ext 9821fi 9822{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5 9823$as_echo "$ac_cv_func_crypt" >&6; } 9824if test "x$ac_cv_func_crypt" = x""yes; then 9825 cmu_have_crypt=yes 9826else 9827 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 9828$as_echo_n "checking for crypt in -lcrypt... " >&6; } 9829if test "${ac_cv_lib_crypt_crypt+set}" = set; then 9830 $as_echo_n "(cached) " >&6 9831else 9832 ac_check_lib_save_LIBS=$LIBS 9833LIBS="-lcrypt $LIBS" 9834cat >conftest.$ac_ext <<_ACEOF 9835/* confdefs.h. */ 9836_ACEOF 9837cat confdefs.h >>conftest.$ac_ext 9838cat >>conftest.$ac_ext <<_ACEOF 9839/* end confdefs.h. */ 9840 9841/* Override any GCC internal prototype to avoid an error. 9842 Use char because int might match the return type of a GCC 9843 builtin and then its argument prototype would still apply. */ 9844#ifdef __cplusplus 9845extern "C" 9846#endif 9847char crypt (); 9848int 9849main () 9850{ 9851return crypt (); 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856rm -f conftest.$ac_objext conftest$ac_exeext 9857if { (ac_try="$ac_link" 9858case "(($ac_try" in 9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9860 *) ac_try_echo=$ac_try;; 9861esac 9862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9863$as_echo "$ac_try_echo") >&5 9864 (eval "$ac_link") 2>conftest.er1 9865 ac_status=$? 9866 grep -v '^ *+' conftest.er1 >conftest.err 9867 rm -f conftest.er1 9868 cat conftest.err >&5 9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); } && { 9871 test -z "$ac_c_werror_flag" || 9872 test ! -s conftest.err 9873 } && test -s conftest$ac_exeext && { 9874 test "$cross_compiling" = yes || 9875 $as_test_x conftest$ac_exeext 9876 }; then 9877 ac_cv_lib_crypt_crypt=yes 9878else 9879 $as_echo "$as_me: failed program was:" >&5 9880sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 ac_cv_lib_crypt_crypt=no 9883fi 9884 9885rm -rf conftest.dSYM 9886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9887 conftest$ac_exeext conftest.$ac_ext 9888LIBS=$ac_check_lib_save_LIBS 9889fi 9890{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 9891$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 9892if test "x$ac_cv_lib_crypt_crypt" = x""yes; then 9893 LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes 9894else 9895 cmu_have_crypt=no 9896fi 9897 9898fi 9899 9900 9901 9902 9903# Check whether --enable-sia was given. 9904if test "${enable_sia+set}" = set; then 9905 enableval=$enable_sia; sia=$enableval 9906else 9907 sia=no 9908fi 9909 9910LIB_SIA="" 9911if test "$sia" != no; then 9912 if test -f /etc/sia/matrix.conf; then 9913 9914cat >>confdefs.h <<\_ACEOF 9915#define HAVE_SIA /**/ 9916_ACEOF 9917 9918 LIB_SIA="-lsecurity -ldb -lm -laud" 9919 else 9920 { { $as_echo "$as_me:$LINENO: error: No support for SIA found" >&5 9921$as_echo "$as_me: error: No support for SIA found" >&2;} 9922 { (exit 1); exit 1; }; } 9923 fi 9924fi 9925 9926 9927# Check whether --enable-auth-sasldb was given. 9928if test "${enable_auth_sasldb+set}" = set; then 9929 enableval=$enable_auth_sasldb; authsasldb=$enableval 9930else 9931 authsasldb=no 9932fi 9933 9934if test "$authsasldb" != no; then 9935 if test ! -d "../sasldb"; then 9936 echo "ERROR: Cannot build sasldb module outside of the full SASL source tree." 9937 exit 0; 9938 fi 9939 9940cat >>confdefs.h <<\_ACEOF 9941#define AUTH_SASLDB /**/ 9942_ACEOF 9943 9944 9945 9946# Check whether --with-dbpath was given. 9947if test "${with_dbpath+set}" = set; then 9948 withval=$with_dbpath; dbpath=$withval 9949else 9950 dbpath=/etc/sasldb2 9951fi 9952 9953{ $as_echo "$as_me:$LINENO: checking DB path to use" >&5 9954$as_echo_n "checking DB path to use... " >&6; } 9955{ $as_echo "$as_me:$LINENO: result: $dbpath" >&5 9956$as_echo "$dbpath" >&6; } 9957 9958cat >>confdefs.h <<_ACEOF 9959#define SASL_DB_PATH "$dbpath" 9960_ACEOF 9961 9962 9963cmu_save_LIBS="$LIBS" 9964 9965# Check whether --with-dblib was given. 9966if test "${with_dblib+set}" = set; then 9967 withval=$with_dblib; dblib=$withval 9968else 9969 dblib=auto_detect 9970fi 9971 9972 9973 9974 9975# Check whether --with-bdb-libdir was given. 9976if test "${with_bdb_libdir+set}" = set; then 9977 withval=$with_bdb_libdir; with_bdb_lib=$withval 9978else 9979 test "${with_bdb_lib+set}" = set || with_bdb_lib=none 9980fi 9981 9982 9983# Check whether --with-bdb-incdir was given. 9984if test "${with_bdb_incdir+set}" = set; then 9985 withval=$with_bdb_incdir; with_bdb_inc=$withval 9986else 9987 test "${with_bdb_inc+set}" = set || with_bdb_inc=none 9988fi 9989 9990 9991 9992SASL_DB_LIB="" 9993 9994case "$dblib" in 9995 berkeley) 9996 9997 9998 9999 cmu_save_CPPFLAGS=$CPPFLAGS 10000 10001 if test -d $with_bdb_inc; then 10002 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 10003 BDB_INCADD="-I$with_bdb_inc" 10004 else 10005 BDB_INCADD="" 10006 fi 10007 10008 if test "${ac_cv_header_db_h+set}" = set; then 10009 { $as_echo "$as_me:$LINENO: checking for db.h" >&5 10010$as_echo_n "checking for db.h... " >&6; } 10011if test "${ac_cv_header_db_h+set}" = set; then 10012 $as_echo_n "(cached) " >&6 10013fi 10014{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 10015$as_echo "$ac_cv_header_db_h" >&6; } 10016else 10017 # Is the header compilable? 10018{ $as_echo "$as_me:$LINENO: checking db.h usability" >&5 10019$as_echo_n "checking db.h usability... " >&6; } 10020cat >conftest.$ac_ext <<_ACEOF 10021/* confdefs.h. */ 10022_ACEOF 10023cat confdefs.h >>conftest.$ac_ext 10024cat >>conftest.$ac_ext <<_ACEOF 10025/* end confdefs.h. */ 10026$ac_includes_default 10027#include <db.h> 10028_ACEOF 10029rm -f conftest.$ac_objext 10030if { (ac_try="$ac_compile" 10031case "(($ac_try" in 10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10033 *) ac_try_echo=$ac_try;; 10034esac 10035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10036$as_echo "$ac_try_echo") >&5 10037 (eval "$ac_compile") 2>conftest.er1 10038 ac_status=$? 10039 grep -v '^ *+' conftest.er1 >conftest.err 10040 rm -f conftest.er1 10041 cat conftest.err >&5 10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10043 (exit $ac_status); } && { 10044 test -z "$ac_c_werror_flag" || 10045 test ! -s conftest.err 10046 } && test -s conftest.$ac_objext; then 10047 ac_header_compiler=yes 10048else 10049 $as_echo "$as_me: failed program was:" >&5 10050sed 's/^/| /' conftest.$ac_ext >&5 10051 10052 ac_header_compiler=no 10053fi 10054 10055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10056{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10057$as_echo "$ac_header_compiler" >&6; } 10058 10059# Is the header present? 10060{ $as_echo "$as_me:$LINENO: checking db.h presence" >&5 10061$as_echo_n "checking db.h presence... " >&6; } 10062cat >conftest.$ac_ext <<_ACEOF 10063/* confdefs.h. */ 10064_ACEOF 10065cat confdefs.h >>conftest.$ac_ext 10066cat >>conftest.$ac_ext <<_ACEOF 10067/* end confdefs.h. */ 10068#include <db.h> 10069_ACEOF 10070if { (ac_try="$ac_cpp conftest.$ac_ext" 10071case "(($ac_try" in 10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10073 *) ac_try_echo=$ac_try;; 10074esac 10075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10076$as_echo "$ac_try_echo") >&5 10077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10078 ac_status=$? 10079 grep -v '^ *+' conftest.er1 >conftest.err 10080 rm -f conftest.er1 10081 cat conftest.err >&5 10082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10083 (exit $ac_status); } >/dev/null && { 10084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10085 test ! -s conftest.err 10086 }; then 10087 ac_header_preproc=yes 10088else 10089 $as_echo "$as_me: failed program was:" >&5 10090sed 's/^/| /' conftest.$ac_ext >&5 10091 10092 ac_header_preproc=no 10093fi 10094 10095rm -f conftest.err conftest.$ac_ext 10096{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10097$as_echo "$ac_header_preproc" >&6; } 10098 10099# So? What about this header? 10100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10101 yes:no: ) 10102 { $as_echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5 10103$as_echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10104 { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5 10105$as_echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;} 10106 ac_header_preproc=yes 10107 ;; 10108 no:yes:* ) 10109 { $as_echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5 10110$as_echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;} 10111 { $as_echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5 10112$as_echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;} 10113 { $as_echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5 10114$as_echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;} 10115 { $as_echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5 10116$as_echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;} 10117 { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 10118$as_echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 10119 { $as_echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5 10120$as_echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;} 10121 10122 ;; 10123esac 10124{ $as_echo "$as_me:$LINENO: checking for db.h" >&5 10125$as_echo_n "checking for db.h... " >&6; } 10126if test "${ac_cv_header_db_h+set}" = set; then 10127 $as_echo_n "(cached) " >&6 10128else 10129 ac_cv_header_db_h=$ac_header_preproc 10130fi 10131{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 10132$as_echo "$ac_cv_header_db_h" >&6; } 10133 10134fi 10135if test "x$ac_cv_header_db_h" = x""yes; then 10136 10137 BDB_SAVE_LDFLAGS=$LDFLAGS 10138 10139 if test -d $with_bdb_lib; then 10140 10141 # this is CMU ADD LIBPATH TO 10142 if test "$andrew_cv_runpath_switch" = "none" ; then 10143 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 10144 else 10145 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 10146 fi 10147 10148 10149 # this is CMU ADD LIBPATH TO 10150 if test "$andrew_cv_runpath_switch" = "none" ; then 10151 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 10152 else 10153 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 10154 fi 10155 10156 else 10157 BDB_LIBADD="" 10158 fi 10159 10160 saved_LIBS=$LIBS 10161 for dbname in ${with_bdb} \ 10162 db-5.2 db5.2 db52 \ 10163 db-5.1 db5.2 db51 \ 10164 db-5.0 db5.2 db50 \ 10165 db-4.8 db4.8 db48 \ 10166 db-4.7 db4.7 db47 \ 10167 db-4.6 db4.6 db46 \ 10168 db-4.5 db4.5 db45 \ 10169 db-4.4 db4.4 db44 \ 10170 db-4.3 db4.3 db43 \ 10171 db-4.2 db4.2 db42 \ 10172 db-4.1 db4.1 db41 \ 10173 db-4.0 db4.0 db40 db-4 db4 \ 10174 db-3.3 db3.3 db33 \ 10175 db-3.2 db3.2 db32 \ 10176 db-3.1 db3.1 db31 \ 10177 db-3.0 db3.0 db30 db-3 db3 \ 10178 db 10179 do 10180 LIBS="$saved_LIBS -l$dbname" 10181 cat >conftest.$ac_ext <<_ACEOF 10182/* confdefs.h. */ 10183_ACEOF 10184cat confdefs.h >>conftest.$ac_ext 10185cat >>conftest.$ac_ext <<_ACEOF 10186/* end confdefs.h. */ 10187#include <stdio.h> 10188#include <db.h> 10189int 10190main () 10191{ 10192db_create(NULL, NULL, 0); 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197rm -f conftest.$ac_objext conftest$ac_exeext 10198if { (ac_try="$ac_link" 10199case "(($ac_try" in 10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10201 *) ac_try_echo=$ac_try;; 10202esac 10203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10204$as_echo "$ac_try_echo") >&5 10205 (eval "$ac_link") 2>conftest.er1 10206 ac_status=$? 10207 grep -v '^ *+' conftest.er1 >conftest.err 10208 rm -f conftest.er1 10209 cat conftest.err >&5 10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); } && { 10212 test -z "$ac_c_werror_flag" || 10213 test ! -s conftest.err 10214 } && test -s conftest$ac_exeext && { 10215 test "$cross_compiling" = yes || 10216 $as_test_x conftest$ac_exeext 10217 }; then 10218 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 10219else 10220 $as_echo "$as_me: failed program was:" >&5 10221sed 's/^/| /' conftest.$ac_ext >&5 10222 10223 dblib="no" 10224fi 10225 10226rm -rf conftest.dSYM 10227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10228 conftest$ac_exeext conftest.$ac_ext 10229 if test "$dblib" = "berkeley"; then break; fi 10230 done 10231 if test "$dblib" = "no"; then 10232 LIBS="$saved_LIBS -ldb" 10233 cat >conftest.$ac_ext <<_ACEOF 10234/* confdefs.h. */ 10235_ACEOF 10236cat confdefs.h >>conftest.$ac_ext 10237cat >>conftest.$ac_ext <<_ACEOF 10238/* end confdefs.h. */ 10239#include <stdio.h> 10240#include <db.h> 10241int 10242main () 10243{ 10244db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 10245 ; 10246 return 0; 10247} 10248_ACEOF 10249rm -f conftest.$ac_objext conftest$ac_exeext 10250if { (ac_try="$ac_link" 10251case "(($ac_try" in 10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10253 *) ac_try_echo=$ac_try;; 10254esac 10255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10256$as_echo "$ac_try_echo") >&5 10257 (eval "$ac_link") 2>conftest.er1 10258 ac_status=$? 10259 grep -v '^ *+' conftest.er1 >conftest.err 10260 rm -f conftest.er1 10261 cat conftest.err >&5 10262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10263 (exit $ac_status); } && { 10264 test -z "$ac_c_werror_flag" || 10265 test ! -s conftest.err 10266 } && test -s conftest$ac_exeext && { 10267 test "$cross_compiling" = yes || 10268 $as_test_x conftest$ac_exeext 10269 }; then 10270 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 10271else 10272 $as_echo "$as_me: failed program was:" >&5 10273sed 's/^/| /' conftest.$ac_ext >&5 10274 10275 dblib="no" 10276fi 10277 10278rm -rf conftest.dSYM 10279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10280 conftest$ac_exeext conftest.$ac_ext 10281 fi 10282 LIBS=$saved_LIBS 10283 10284 LDFLAGS=$BDB_SAVE_LDFLAGS 10285 10286else 10287 dblib="no" 10288fi 10289 10290 10291 10292 CPPFLAGS=$cmu_save_CPPFLAGS 10293 10294 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 10295 SASL_DB_INC=$BDB_INCADD 10296 SASL_DB_LIB="${BDB_LIBADD}" 10297 ;; 10298 gdbm) 10299 10300# Check whether --with-gdbm was given. 10301if test "${with_gdbm+set}" = set; then 10302 withval=$with_gdbm; with_gdbm="${withval}" 10303fi 10304 10305 10306 case "$with_gdbm" in 10307 ""|yes) 10308 if test "${ac_cv_header_gdbm_h+set}" = set; then 10309 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5 10310$as_echo_n "checking for gdbm.h... " >&6; } 10311if test "${ac_cv_header_gdbm_h+set}" = set; then 10312 $as_echo_n "(cached) " >&6 10313fi 10314{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 10315$as_echo "$ac_cv_header_gdbm_h" >&6; } 10316else 10317 # Is the header compilable? 10318{ $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5 10319$as_echo_n "checking gdbm.h usability... " >&6; } 10320cat >conftest.$ac_ext <<_ACEOF 10321/* confdefs.h. */ 10322_ACEOF 10323cat confdefs.h >>conftest.$ac_ext 10324cat >>conftest.$ac_ext <<_ACEOF 10325/* end confdefs.h. */ 10326$ac_includes_default 10327#include <gdbm.h> 10328_ACEOF 10329rm -f conftest.$ac_objext 10330if { (ac_try="$ac_compile" 10331case "(($ac_try" in 10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10333 *) ac_try_echo=$ac_try;; 10334esac 10335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10336$as_echo "$ac_try_echo") >&5 10337 (eval "$ac_compile") 2>conftest.er1 10338 ac_status=$? 10339 grep -v '^ *+' conftest.er1 >conftest.err 10340 rm -f conftest.er1 10341 cat conftest.err >&5 10342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10343 (exit $ac_status); } && { 10344 test -z "$ac_c_werror_flag" || 10345 test ! -s conftest.err 10346 } && test -s conftest.$ac_objext; then 10347 ac_header_compiler=yes 10348else 10349 $as_echo "$as_me: failed program was:" >&5 10350sed 's/^/| /' conftest.$ac_ext >&5 10351 10352 ac_header_compiler=no 10353fi 10354 10355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10356{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10357$as_echo "$ac_header_compiler" >&6; } 10358 10359# Is the header present? 10360{ $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5 10361$as_echo_n "checking gdbm.h presence... " >&6; } 10362cat >conftest.$ac_ext <<_ACEOF 10363/* confdefs.h. */ 10364_ACEOF 10365cat confdefs.h >>conftest.$ac_ext 10366cat >>conftest.$ac_ext <<_ACEOF 10367/* end confdefs.h. */ 10368#include <gdbm.h> 10369_ACEOF 10370if { (ac_try="$ac_cpp conftest.$ac_ext" 10371case "(($ac_try" in 10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10373 *) ac_try_echo=$ac_try;; 10374esac 10375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10376$as_echo "$ac_try_echo") >&5 10377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10378 ac_status=$? 10379 grep -v '^ *+' conftest.er1 >conftest.err 10380 rm -f conftest.er1 10381 cat conftest.err >&5 10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10383 (exit $ac_status); } >/dev/null && { 10384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10385 test ! -s conftest.err 10386 }; then 10387 ac_header_preproc=yes 10388else 10389 $as_echo "$as_me: failed program was:" >&5 10390sed 's/^/| /' conftest.$ac_ext >&5 10391 10392 ac_header_preproc=no 10393fi 10394 10395rm -f conftest.err conftest.$ac_ext 10396{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10397$as_echo "$ac_header_preproc" >&6; } 10398 10399# So? What about this header? 10400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10401 yes:no: ) 10402 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 10403$as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10404 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5 10405$as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;} 10406 ac_header_preproc=yes 10407 ;; 10408 no:yes:* ) 10409 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5 10410$as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;} 10411 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5 10412$as_echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;} 10413 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5 10414$as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;} 10415 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5 10416$as_echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;} 10417 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 10418$as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 10419 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5 10420$as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;} 10421 10422 ;; 10423esac 10424{ $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5 10425$as_echo_n "checking for gdbm.h... " >&6; } 10426if test "${ac_cv_header_gdbm_h+set}" = set; then 10427 $as_echo_n "(cached) " >&6 10428else 10429 ac_cv_header_gdbm_h=$ac_header_preproc 10430fi 10431{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 10432$as_echo "$ac_cv_header_gdbm_h" >&6; } 10433 10434fi 10435if test "x$ac_cv_header_gdbm_h" = x""yes; then 10436 10437 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 10438$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 10439if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then 10440 $as_echo_n "(cached) " >&6 10441else 10442 ac_check_lib_save_LIBS=$LIBS 10443LIBS="-lgdbm $LIBS" 10444cat >conftest.$ac_ext <<_ACEOF 10445/* confdefs.h. */ 10446_ACEOF 10447cat confdefs.h >>conftest.$ac_ext 10448cat >>conftest.$ac_ext <<_ACEOF 10449/* end confdefs.h. */ 10450 10451/* Override any GCC internal prototype to avoid an error. 10452 Use char because int might match the return type of a GCC 10453 builtin and then its argument prototype would still apply. */ 10454#ifdef __cplusplus 10455extern "C" 10456#endif 10457char gdbm_open (); 10458int 10459main () 10460{ 10461return gdbm_open (); 10462 ; 10463 return 0; 10464} 10465_ACEOF 10466rm -f conftest.$ac_objext conftest$ac_exeext 10467if { (ac_try="$ac_link" 10468case "(($ac_try" in 10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10470 *) ac_try_echo=$ac_try;; 10471esac 10472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10473$as_echo "$ac_try_echo") >&5 10474 (eval "$ac_link") 2>conftest.er1 10475 ac_status=$? 10476 grep -v '^ *+' conftest.er1 >conftest.err 10477 rm -f conftest.er1 10478 cat conftest.err >&5 10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10480 (exit $ac_status); } && { 10481 test -z "$ac_c_werror_flag" || 10482 test ! -s conftest.err 10483 } && test -s conftest$ac_exeext && { 10484 test "$cross_compiling" = yes || 10485 $as_test_x conftest$ac_exeext 10486 }; then 10487 ac_cv_lib_gdbm_gdbm_open=yes 10488else 10489 $as_echo "$as_me: failed program was:" >&5 10490sed 's/^/| /' conftest.$ac_ext >&5 10491 10492 ac_cv_lib_gdbm_gdbm_open=no 10493fi 10494 10495rm -rf conftest.dSYM 10496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10497 conftest$ac_exeext conftest.$ac_ext 10498LIBS=$ac_check_lib_save_LIBS 10499fi 10500{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 10501$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 10502if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then 10503 SASL_DB_LIB="-lgdbm" 10504else 10505 dblib="no" 10506fi 10507 10508else 10509 dblib="no" 10510fi 10511 10512 10513 ;; 10514 *) 10515 if test -d $with_gdbm; then 10516 CPPFLAGS="${CPPFLAGS} -I${with_gdbm}/include" 10517 LDFLAGS="${LDFLAGS} -L${with_gdbm}/lib" 10518 SASL_DB_LIB="-lgdbm" 10519 else 10520 with_gdbm="no" 10521 fi 10522 esac 10523 ;; 10524 ndbm) 10525 if test "${ac_cv_header_ndbm_h+set}" = set; then 10526 { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5 10527$as_echo_n "checking for ndbm.h... " >&6; } 10528if test "${ac_cv_header_ndbm_h+set}" = set; then 10529 $as_echo_n "(cached) " >&6 10530fi 10531{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 10532$as_echo "$ac_cv_header_ndbm_h" >&6; } 10533else 10534 # Is the header compilable? 10535{ $as_echo "$as_me:$LINENO: checking ndbm.h usability" >&5 10536$as_echo_n "checking ndbm.h usability... " >&6; } 10537cat >conftest.$ac_ext <<_ACEOF 10538/* confdefs.h. */ 10539_ACEOF 10540cat confdefs.h >>conftest.$ac_ext 10541cat >>conftest.$ac_ext <<_ACEOF 10542/* end confdefs.h. */ 10543$ac_includes_default 10544#include <ndbm.h> 10545_ACEOF 10546rm -f conftest.$ac_objext 10547if { (ac_try="$ac_compile" 10548case "(($ac_try" in 10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10550 *) ac_try_echo=$ac_try;; 10551esac 10552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10553$as_echo "$ac_try_echo") >&5 10554 (eval "$ac_compile") 2>conftest.er1 10555 ac_status=$? 10556 grep -v '^ *+' conftest.er1 >conftest.err 10557 rm -f conftest.er1 10558 cat conftest.err >&5 10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); } && { 10561 test -z "$ac_c_werror_flag" || 10562 test ! -s conftest.err 10563 } && test -s conftest.$ac_objext; then 10564 ac_header_compiler=yes 10565else 10566 $as_echo "$as_me: failed program was:" >&5 10567sed 's/^/| /' conftest.$ac_ext >&5 10568 10569 ac_header_compiler=no 10570fi 10571 10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10574$as_echo "$ac_header_compiler" >&6; } 10575 10576# Is the header present? 10577{ $as_echo "$as_me:$LINENO: checking ndbm.h presence" >&5 10578$as_echo_n "checking ndbm.h presence... " >&6; } 10579cat >conftest.$ac_ext <<_ACEOF 10580/* confdefs.h. */ 10581_ACEOF 10582cat confdefs.h >>conftest.$ac_ext 10583cat >>conftest.$ac_ext <<_ACEOF 10584/* end confdefs.h. */ 10585#include <ndbm.h> 10586_ACEOF 10587if { (ac_try="$ac_cpp conftest.$ac_ext" 10588case "(($ac_try" in 10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10590 *) ac_try_echo=$ac_try;; 10591esac 10592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10593$as_echo "$ac_try_echo") >&5 10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10595 ac_status=$? 10596 grep -v '^ *+' conftest.er1 >conftest.err 10597 rm -f conftest.er1 10598 cat conftest.err >&5 10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10600 (exit $ac_status); } >/dev/null && { 10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10602 test ! -s conftest.err 10603 }; then 10604 ac_header_preproc=yes 10605else 10606 $as_echo "$as_me: failed program was:" >&5 10607sed 's/^/| /' conftest.$ac_ext >&5 10608 10609 ac_header_preproc=no 10610fi 10611 10612rm -f conftest.err conftest.$ac_ext 10613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10614$as_echo "$ac_header_preproc" >&6; } 10615 10616# So? What about this header? 10617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10618 yes:no: ) 10619 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 10620$as_echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10621 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5 10622$as_echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;} 10623 ac_header_preproc=yes 10624 ;; 10625 no:yes:* ) 10626 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5 10627$as_echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;} 10628 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5 10629$as_echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;} 10630 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5 10631$as_echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;} 10632 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5 10633$as_echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;} 10634 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 10635$as_echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 10636 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5 10637$as_echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;} 10638 10639 ;; 10640esac 10641{ $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5 10642$as_echo_n "checking for ndbm.h... " >&6; } 10643if test "${ac_cv_header_ndbm_h+set}" = set; then 10644 $as_echo_n "(cached) " >&6 10645else 10646 ac_cv_header_ndbm_h=$ac_header_preproc 10647fi 10648{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 10649$as_echo "$ac_cv_header_ndbm_h" >&6; } 10650 10651fi 10652if test "x$ac_cv_header_ndbm_h" = x""yes; then 10653 10654 { $as_echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5 10655$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 10656if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then 10657 $as_echo_n "(cached) " >&6 10658else 10659 ac_check_lib_save_LIBS=$LIBS 10660LIBS="-lndbm $LIBS" 10661cat >conftest.$ac_ext <<_ACEOF 10662/* confdefs.h. */ 10663_ACEOF 10664cat confdefs.h >>conftest.$ac_ext 10665cat >>conftest.$ac_ext <<_ACEOF 10666/* end confdefs.h. */ 10667 10668/* Override any GCC internal prototype to avoid an error. 10669 Use char because int might match the return type of a GCC 10670 builtin and then its argument prototype would still apply. */ 10671#ifdef __cplusplus 10672extern "C" 10673#endif 10674char dbm_open (); 10675int 10676main () 10677{ 10678return dbm_open (); 10679 ; 10680 return 0; 10681} 10682_ACEOF 10683rm -f conftest.$ac_objext conftest$ac_exeext 10684if { (ac_try="$ac_link" 10685case "(($ac_try" in 10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10687 *) ac_try_echo=$ac_try;; 10688esac 10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10690$as_echo "$ac_try_echo") >&5 10691 (eval "$ac_link") 2>conftest.er1 10692 ac_status=$? 10693 grep -v '^ *+' conftest.er1 >conftest.err 10694 rm -f conftest.er1 10695 cat conftest.err >&5 10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10697 (exit $ac_status); } && { 10698 test -z "$ac_c_werror_flag" || 10699 test ! -s conftest.err 10700 } && test -s conftest$ac_exeext && { 10701 test "$cross_compiling" = yes || 10702 $as_test_x conftest$ac_exeext 10703 }; then 10704 ac_cv_lib_ndbm_dbm_open=yes 10705else 10706 $as_echo "$as_me: failed program was:" >&5 10707sed 's/^/| /' conftest.$ac_ext >&5 10708 10709 ac_cv_lib_ndbm_dbm_open=no 10710fi 10711 10712rm -rf conftest.dSYM 10713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10714 conftest$ac_exeext conftest.$ac_ext 10715LIBS=$ac_check_lib_save_LIBS 10716fi 10717{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5 10718$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 10719if test "x$ac_cv_lib_ndbm_dbm_open" = x""yes; then 10720 SASL_DB_LIB="-lndbm" 10721else 10722 10723 { $as_echo "$as_me:$LINENO: checking for dbm_open" >&5 10724$as_echo_n "checking for dbm_open... " >&6; } 10725if test "${ac_cv_func_dbm_open+set}" = set; then 10726 $as_echo_n "(cached) " >&6 10727else 10728 cat >conftest.$ac_ext <<_ACEOF 10729/* confdefs.h. */ 10730_ACEOF 10731cat confdefs.h >>conftest.$ac_ext 10732cat >>conftest.$ac_ext <<_ACEOF 10733/* end confdefs.h. */ 10734/* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open. 10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10736#define dbm_open innocuous_dbm_open 10737 10738/* System header to define __stub macros and hopefully few prototypes, 10739 which can conflict with char dbm_open (); below. 10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10741 <limits.h> exists even on freestanding compilers. */ 10742 10743#ifdef __STDC__ 10744# include <limits.h> 10745#else 10746# include <assert.h> 10747#endif 10748 10749#undef dbm_open 10750 10751/* Override any GCC internal prototype to avoid an error. 10752 Use char because int might match the return type of a GCC 10753 builtin and then its argument prototype would still apply. */ 10754#ifdef __cplusplus 10755extern "C" 10756#endif 10757char dbm_open (); 10758/* The GNU C library defines this for functions which it implements 10759 to always fail with ENOSYS. Some functions are actually named 10760 something starting with __ and the normal name is an alias. */ 10761#if defined __stub_dbm_open || defined __stub___dbm_open 10762choke me 10763#endif 10764 10765int 10766main () 10767{ 10768return dbm_open (); 10769 ; 10770 return 0; 10771} 10772_ACEOF 10773rm -f conftest.$ac_objext conftest$ac_exeext 10774if { (ac_try="$ac_link" 10775case "(($ac_try" in 10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10777 *) ac_try_echo=$ac_try;; 10778esac 10779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10780$as_echo "$ac_try_echo") >&5 10781 (eval "$ac_link") 2>conftest.er1 10782 ac_status=$? 10783 grep -v '^ *+' conftest.er1 >conftest.err 10784 rm -f conftest.er1 10785 cat conftest.err >&5 10786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10787 (exit $ac_status); } && { 10788 test -z "$ac_c_werror_flag" || 10789 test ! -s conftest.err 10790 } && test -s conftest$ac_exeext && { 10791 test "$cross_compiling" = yes || 10792 $as_test_x conftest$ac_exeext 10793 }; then 10794 ac_cv_func_dbm_open=yes 10795else 10796 $as_echo "$as_me: failed program was:" >&5 10797sed 's/^/| /' conftest.$ac_ext >&5 10798 10799 ac_cv_func_dbm_open=no 10800fi 10801 10802rm -rf conftest.dSYM 10803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10804 conftest$ac_exeext conftest.$ac_ext 10805fi 10806{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5 10807$as_echo "$ac_cv_func_dbm_open" >&6; } 10808if test "x$ac_cv_func_dbm_open" = x""yes; then 10809 : 10810else 10811 dblib="no" 10812fi 10813 10814fi 10815 10816else 10817 dblib="no" 10818fi 10819 10820 10821 ;; 10822 auto_detect) 10823 10824 10825 10826 cmu_save_CPPFLAGS=$CPPFLAGS 10827 10828 if test -d $with_bdb_inc; then 10829 CPPFLAGS="$CPPFLAGS -I$with_bdb_inc" 10830 BDB_INCADD="-I$with_bdb_inc" 10831 else 10832 BDB_INCADD="" 10833 fi 10834 10835 if test "${ac_cv_header_db_h+set}" = set; then 10836 { $as_echo "$as_me:$LINENO: checking for db.h" >&5 10837$as_echo_n "checking for db.h... " >&6; } 10838if test "${ac_cv_header_db_h+set}" = set; then 10839 $as_echo_n "(cached) " >&6 10840fi 10841{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 10842$as_echo "$ac_cv_header_db_h" >&6; } 10843else 10844 # Is the header compilable? 10845{ $as_echo "$as_me:$LINENO: checking db.h usability" >&5 10846$as_echo_n "checking db.h usability... " >&6; } 10847cat >conftest.$ac_ext <<_ACEOF 10848/* confdefs.h. */ 10849_ACEOF 10850cat confdefs.h >>conftest.$ac_ext 10851cat >>conftest.$ac_ext <<_ACEOF 10852/* end confdefs.h. */ 10853$ac_includes_default 10854#include <db.h> 10855_ACEOF 10856rm -f conftest.$ac_objext 10857if { (ac_try="$ac_compile" 10858case "(($ac_try" in 10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10860 *) ac_try_echo=$ac_try;; 10861esac 10862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10863$as_echo "$ac_try_echo") >&5 10864 (eval "$ac_compile") 2>conftest.er1 10865 ac_status=$? 10866 grep -v '^ *+' conftest.er1 >conftest.err 10867 rm -f conftest.er1 10868 cat conftest.err >&5 10869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 (exit $ac_status); } && { 10871 test -z "$ac_c_werror_flag" || 10872 test ! -s conftest.err 10873 } && test -s conftest.$ac_objext; then 10874 ac_header_compiler=yes 10875else 10876 $as_echo "$as_me: failed program was:" >&5 10877sed 's/^/| /' conftest.$ac_ext >&5 10878 10879 ac_header_compiler=no 10880fi 10881 10882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10883{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10884$as_echo "$ac_header_compiler" >&6; } 10885 10886# Is the header present? 10887{ $as_echo "$as_me:$LINENO: checking db.h presence" >&5 10888$as_echo_n "checking db.h presence... " >&6; } 10889cat >conftest.$ac_ext <<_ACEOF 10890/* confdefs.h. */ 10891_ACEOF 10892cat confdefs.h >>conftest.$ac_ext 10893cat >>conftest.$ac_ext <<_ACEOF 10894/* end confdefs.h. */ 10895#include <db.h> 10896_ACEOF 10897if { (ac_try="$ac_cpp conftest.$ac_ext" 10898case "(($ac_try" in 10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10900 *) ac_try_echo=$ac_try;; 10901esac 10902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10903$as_echo "$ac_try_echo") >&5 10904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10905 ac_status=$? 10906 grep -v '^ *+' conftest.er1 >conftest.err 10907 rm -f conftest.er1 10908 cat conftest.err >&5 10909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); } >/dev/null && { 10911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 10912 test ! -s conftest.err 10913 }; then 10914 ac_header_preproc=yes 10915else 10916 $as_echo "$as_me: failed program was:" >&5 10917sed 's/^/| /' conftest.$ac_ext >&5 10918 10919 ac_header_preproc=no 10920fi 10921 10922rm -f conftest.err conftest.$ac_ext 10923{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10924$as_echo "$ac_header_preproc" >&6; } 10925 10926# So? What about this header? 10927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10928 yes:no: ) 10929 { $as_echo "$as_me:$LINENO: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&5 10930$as_echo "$as_me: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10931 { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the compiler's result" >&5 10932$as_echo "$as_me: WARNING: db.h: proceeding with the compiler's result" >&2;} 10933 ac_header_preproc=yes 10934 ;; 10935 no:yes:* ) 10936 { $as_echo "$as_me:$LINENO: WARNING: db.h: present but cannot be compiled" >&5 10937$as_echo "$as_me: WARNING: db.h: present but cannot be compiled" >&2;} 10938 { $as_echo "$as_me:$LINENO: WARNING: db.h: check for missing prerequisite headers?" >&5 10939$as_echo "$as_me: WARNING: db.h: check for missing prerequisite headers?" >&2;} 10940 { $as_echo "$as_me:$LINENO: WARNING: db.h: see the Autoconf documentation" >&5 10941$as_echo "$as_me: WARNING: db.h: see the Autoconf documentation" >&2;} 10942 { $as_echo "$as_me:$LINENO: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&5 10943$as_echo "$as_me: WARNING: db.h: section \"Present But Cannot Be Compiled\"" >&2;} 10944 { $as_echo "$as_me:$LINENO: WARNING: db.h: proceeding with the preprocessor's result" >&5 10945$as_echo "$as_me: WARNING: db.h: proceeding with the preprocessor's result" >&2;} 10946 { $as_echo "$as_me:$LINENO: WARNING: db.h: in the future, the compiler will take precedence" >&5 10947$as_echo "$as_me: WARNING: db.h: in the future, the compiler will take precedence" >&2;} 10948 10949 ;; 10950esac 10951{ $as_echo "$as_me:$LINENO: checking for db.h" >&5 10952$as_echo_n "checking for db.h... " >&6; } 10953if test "${ac_cv_header_db_h+set}" = set; then 10954 $as_echo_n "(cached) " >&6 10955else 10956 ac_cv_header_db_h=$ac_header_preproc 10957fi 10958{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5 10959$as_echo "$ac_cv_header_db_h" >&6; } 10960 10961fi 10962if test "x$ac_cv_header_db_h" = x""yes; then 10963 10964 BDB_SAVE_LDFLAGS=$LDFLAGS 10965 10966 if test -d $with_bdb_lib; then 10967 10968 # this is CMU ADD LIBPATH TO 10969 if test "$andrew_cv_runpath_switch" = "none" ; then 10970 LDFLAGS="-L$with_bdb_lib ${LDFLAGS}" 10971 else 10972 LDFLAGS="-L$with_bdb_lib ${LDFLAGS} $andrew_cv_runpath_switch$with_bdb_lib" 10973 fi 10974 10975 10976 # this is CMU ADD LIBPATH TO 10977 if test "$andrew_cv_runpath_switch" = "none" ; then 10978 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD}" 10979 else 10980 BDB_LIBADD="-L$with_bdb_lib ${BDB_LIBADD} $andrew_cv_runpath_switch$with_bdb_lib" 10981 fi 10982 10983 else 10984 BDB_LIBADD="" 10985 fi 10986 10987 saved_LIBS=$LIBS 10988 for dbname in ${with_bdb} \ 10989 db-5.2 db5.2 db52 \ 10990 db-5.1 db5.2 db51 \ 10991 db-5.0 db5.2 db50 \ 10992 db-4.8 db4.8 db48 \ 10993 db-4.7 db4.7 db47 \ 10994 db-4.6 db4.6 db46 \ 10995 db-4.5 db4.5 db45 \ 10996 db-4.4 db4.4 db44 \ 10997 db-4.3 db4.3 db43 \ 10998 db-4.2 db4.2 db42 \ 10999 db-4.1 db4.1 db41 \ 11000 db-4.0 db4.0 db40 db-4 db4 \ 11001 db-3.3 db3.3 db33 \ 11002 db-3.2 db3.2 db32 \ 11003 db-3.1 db3.1 db31 \ 11004 db-3.0 db3.0 db30 db-3 db3 \ 11005 db 11006 do 11007 LIBS="$saved_LIBS -l$dbname" 11008 cat >conftest.$ac_ext <<_ACEOF 11009/* confdefs.h. */ 11010_ACEOF 11011cat confdefs.h >>conftest.$ac_ext 11012cat >>conftest.$ac_ext <<_ACEOF 11013/* end confdefs.h. */ 11014#include <stdio.h> 11015#include <db.h> 11016int 11017main () 11018{ 11019db_create(NULL, NULL, 0); 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024rm -f conftest.$ac_objext conftest$ac_exeext 11025if { (ac_try="$ac_link" 11026case "(($ac_try" in 11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11028 *) ac_try_echo=$ac_try;; 11029esac 11030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11031$as_echo "$ac_try_echo") >&5 11032 (eval "$ac_link") 2>conftest.er1 11033 ac_status=$? 11034 grep -v '^ *+' conftest.er1 >conftest.err 11035 rm -f conftest.er1 11036 cat conftest.err >&5 11037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11038 (exit $ac_status); } && { 11039 test -z "$ac_c_werror_flag" || 11040 test ! -s conftest.err 11041 } && test -s conftest$ac_exeext && { 11042 test "$cross_compiling" = yes || 11043 $as_test_x conftest$ac_exeext 11044 }; then 11045 BDB_LIBADD="$BDB_LIBADD -l$dbname"; dblib="berkeley"; dbname=db 11046else 11047 $as_echo "$as_me: failed program was:" >&5 11048sed 's/^/| /' conftest.$ac_ext >&5 11049 11050 dblib="no" 11051fi 11052 11053rm -rf conftest.dSYM 11054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11055 conftest$ac_exeext conftest.$ac_ext 11056 if test "$dblib" = "berkeley"; then break; fi 11057 done 11058 if test "$dblib" = "no"; then 11059 LIBS="$saved_LIBS -ldb" 11060 cat >conftest.$ac_ext <<_ACEOF 11061/* confdefs.h. */ 11062_ACEOF 11063cat confdefs.h >>conftest.$ac_ext 11064cat >>conftest.$ac_ext <<_ACEOF 11065/* end confdefs.h. */ 11066#include <stdio.h> 11067#include <db.h> 11068int 11069main () 11070{ 11071db_open(NULL, 0, 0, 0, NULL, NULL, NULL); 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076rm -f conftest.$ac_objext conftest$ac_exeext 11077if { (ac_try="$ac_link" 11078case "(($ac_try" in 11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11080 *) ac_try_echo=$ac_try;; 11081esac 11082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11083$as_echo "$ac_try_echo") >&5 11084 (eval "$ac_link") 2>conftest.er1 11085 ac_status=$? 11086 grep -v '^ *+' conftest.er1 >conftest.err 11087 rm -f conftest.er1 11088 cat conftest.err >&5 11089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11090 (exit $ac_status); } && { 11091 test -z "$ac_c_werror_flag" || 11092 test ! -s conftest.err 11093 } && test -s conftest$ac_exeext && { 11094 test "$cross_compiling" = yes || 11095 $as_test_x conftest$ac_exeext 11096 }; then 11097 BDB_LIBADD="$BDB_LIBADD -ldb"; dblib="berkeley"; dbname=db 11098else 11099 $as_echo "$as_me: failed program was:" >&5 11100sed 's/^/| /' conftest.$ac_ext >&5 11101 11102 dblib="no" 11103fi 11104 11105rm -rf conftest.dSYM 11106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11107 conftest$ac_exeext conftest.$ac_ext 11108 fi 11109 LIBS=$saved_LIBS 11110 11111 LDFLAGS=$BDB_SAVE_LDFLAGS 11112 11113else 11114 dblib="no" 11115fi 11116 11117 11118 11119 CPPFLAGS=$cmu_save_CPPFLAGS 11120 11121 if test "$dblib" = no; then 11122 if test "${ac_cv_header_ndbm_h+set}" = set; then 11123 { $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5 11124$as_echo_n "checking for ndbm.h... " >&6; } 11125if test "${ac_cv_header_ndbm_h+set}" = set; then 11126 $as_echo_n "(cached) " >&6 11127fi 11128{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 11129$as_echo "$ac_cv_header_ndbm_h" >&6; } 11130else 11131 # Is the header compilable? 11132{ $as_echo "$as_me:$LINENO: checking ndbm.h usability" >&5 11133$as_echo_n "checking ndbm.h usability... " >&6; } 11134cat >conftest.$ac_ext <<_ACEOF 11135/* confdefs.h. */ 11136_ACEOF 11137cat confdefs.h >>conftest.$ac_ext 11138cat >>conftest.$ac_ext <<_ACEOF 11139/* end confdefs.h. */ 11140$ac_includes_default 11141#include <ndbm.h> 11142_ACEOF 11143rm -f conftest.$ac_objext 11144if { (ac_try="$ac_compile" 11145case "(($ac_try" in 11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11147 *) ac_try_echo=$ac_try;; 11148esac 11149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11150$as_echo "$ac_try_echo") >&5 11151 (eval "$ac_compile") 2>conftest.er1 11152 ac_status=$? 11153 grep -v '^ *+' conftest.er1 >conftest.err 11154 rm -f conftest.er1 11155 cat conftest.err >&5 11156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11157 (exit $ac_status); } && { 11158 test -z "$ac_c_werror_flag" || 11159 test ! -s conftest.err 11160 } && test -s conftest.$ac_objext; then 11161 ac_header_compiler=yes 11162else 11163 $as_echo "$as_me: failed program was:" >&5 11164sed 's/^/| /' conftest.$ac_ext >&5 11165 11166 ac_header_compiler=no 11167fi 11168 11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11170{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11171$as_echo "$ac_header_compiler" >&6; } 11172 11173# Is the header present? 11174{ $as_echo "$as_me:$LINENO: checking ndbm.h presence" >&5 11175$as_echo_n "checking ndbm.h presence... " >&6; } 11176cat >conftest.$ac_ext <<_ACEOF 11177/* confdefs.h. */ 11178_ACEOF 11179cat confdefs.h >>conftest.$ac_ext 11180cat >>conftest.$ac_ext <<_ACEOF 11181/* end confdefs.h. */ 11182#include <ndbm.h> 11183_ACEOF 11184if { (ac_try="$ac_cpp conftest.$ac_ext" 11185case "(($ac_try" in 11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11187 *) ac_try_echo=$ac_try;; 11188esac 11189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11190$as_echo "$ac_try_echo") >&5 11191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11192 ac_status=$? 11193 grep -v '^ *+' conftest.er1 >conftest.err 11194 rm -f conftest.er1 11195 cat conftest.err >&5 11196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11197 (exit $ac_status); } >/dev/null && { 11198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11199 test ! -s conftest.err 11200 }; then 11201 ac_header_preproc=yes 11202else 11203 $as_echo "$as_me: failed program was:" >&5 11204sed 's/^/| /' conftest.$ac_ext >&5 11205 11206 ac_header_preproc=no 11207fi 11208 11209rm -f conftest.err conftest.$ac_ext 11210{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11211$as_echo "$ac_header_preproc" >&6; } 11212 11213# So? What about this header? 11214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11215 yes:no: ) 11216 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 11217$as_echo "$as_me: WARNING: ndbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11218 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the compiler's result" >&5 11219$as_echo "$as_me: WARNING: ndbm.h: proceeding with the compiler's result" >&2;} 11220 ac_header_preproc=yes 11221 ;; 11222 no:yes:* ) 11223 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: present but cannot be compiled" >&5 11224$as_echo "$as_me: WARNING: ndbm.h: present but cannot be compiled" >&2;} 11225 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: check for missing prerequisite headers?" >&5 11226$as_echo "$as_me: WARNING: ndbm.h: check for missing prerequisite headers?" >&2;} 11227 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: see the Autoconf documentation" >&5 11228$as_echo "$as_me: WARNING: ndbm.h: see the Autoconf documentation" >&2;} 11229 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&5 11230$as_echo "$as_me: WARNING: ndbm.h: section \"Present But Cannot Be Compiled\"" >&2;} 11231 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: proceeding with the preprocessor's result" >&5 11232$as_echo "$as_me: WARNING: ndbm.h: proceeding with the preprocessor's result" >&2;} 11233 { $as_echo "$as_me:$LINENO: WARNING: ndbm.h: in the future, the compiler will take precedence" >&5 11234$as_echo "$as_me: WARNING: ndbm.h: in the future, the compiler will take precedence" >&2;} 11235 11236 ;; 11237esac 11238{ $as_echo "$as_me:$LINENO: checking for ndbm.h" >&5 11239$as_echo_n "checking for ndbm.h... " >&6; } 11240if test "${ac_cv_header_ndbm_h+set}" = set; then 11241 $as_echo_n "(cached) " >&6 11242else 11243 ac_cv_header_ndbm_h=$ac_header_preproc 11244fi 11245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ndbm_h" >&5 11246$as_echo "$ac_cv_header_ndbm_h" >&6; } 11247 11248fi 11249if test "x$ac_cv_header_ndbm_h" = x""yes; then 11250 11251 { $as_echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5 11252$as_echo_n "checking for dbm_open in -lndbm... " >&6; } 11253if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then 11254 $as_echo_n "(cached) " >&6 11255else 11256 ac_check_lib_save_LIBS=$LIBS 11257LIBS="-lndbm $LIBS" 11258cat >conftest.$ac_ext <<_ACEOF 11259/* confdefs.h. */ 11260_ACEOF 11261cat confdefs.h >>conftest.$ac_ext 11262cat >>conftest.$ac_ext <<_ACEOF 11263/* end confdefs.h. */ 11264 11265/* Override any GCC internal prototype to avoid an error. 11266 Use char because int might match the return type of a GCC 11267 builtin and then its argument prototype would still apply. */ 11268#ifdef __cplusplus 11269extern "C" 11270#endif 11271char dbm_open (); 11272int 11273main () 11274{ 11275return dbm_open (); 11276 ; 11277 return 0; 11278} 11279_ACEOF 11280rm -f conftest.$ac_objext conftest$ac_exeext 11281if { (ac_try="$ac_link" 11282case "(($ac_try" in 11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11284 *) ac_try_echo=$ac_try;; 11285esac 11286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11287$as_echo "$ac_try_echo") >&5 11288 (eval "$ac_link") 2>conftest.er1 11289 ac_status=$? 11290 grep -v '^ *+' conftest.er1 >conftest.err 11291 rm -f conftest.er1 11292 cat conftest.err >&5 11293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11294 (exit $ac_status); } && { 11295 test -z "$ac_c_werror_flag" || 11296 test ! -s conftest.err 11297 } && test -s conftest$ac_exeext && { 11298 test "$cross_compiling" = yes || 11299 $as_test_x conftest$ac_exeext 11300 }; then 11301 ac_cv_lib_ndbm_dbm_open=yes 11302else 11303 $as_echo "$as_me: failed program was:" >&5 11304sed 's/^/| /' conftest.$ac_ext >&5 11305 11306 ac_cv_lib_ndbm_dbm_open=no 11307fi 11308 11309rm -rf conftest.dSYM 11310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11311 conftest$ac_exeext conftest.$ac_ext 11312LIBS=$ac_check_lib_save_LIBS 11313fi 11314{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5 11315$as_echo "$ac_cv_lib_ndbm_dbm_open" >&6; } 11316if test "x$ac_cv_lib_ndbm_dbm_open" = x""yes; then 11317 dblib="ndbm"; SASL_DB_LIB="-lndbm" 11318else 11319 dblib="weird" 11320fi 11321 11322else 11323 dblib="no" 11324fi 11325 11326 11327 if test "$dblib" = "weird"; then 11328 { $as_echo "$as_me:$LINENO: checking for dbm_open" >&5 11329$as_echo_n "checking for dbm_open... " >&6; } 11330if test "${ac_cv_func_dbm_open+set}" = set; then 11331 $as_echo_n "(cached) " >&6 11332else 11333 cat >conftest.$ac_ext <<_ACEOF 11334/* confdefs.h. */ 11335_ACEOF 11336cat confdefs.h >>conftest.$ac_ext 11337cat >>conftest.$ac_ext <<_ACEOF 11338/* end confdefs.h. */ 11339/* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open. 11340 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11341#define dbm_open innocuous_dbm_open 11342 11343/* System header to define __stub macros and hopefully few prototypes, 11344 which can conflict with char dbm_open (); below. 11345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11346 <limits.h> exists even on freestanding compilers. */ 11347 11348#ifdef __STDC__ 11349# include <limits.h> 11350#else 11351# include <assert.h> 11352#endif 11353 11354#undef dbm_open 11355 11356/* Override any GCC internal prototype to avoid an error. 11357 Use char because int might match the return type of a GCC 11358 builtin and then its argument prototype would still apply. */ 11359#ifdef __cplusplus 11360extern "C" 11361#endif 11362char dbm_open (); 11363/* The GNU C library defines this for functions which it implements 11364 to always fail with ENOSYS. Some functions are actually named 11365 something starting with __ and the normal name is an alias. */ 11366#if defined __stub_dbm_open || defined __stub___dbm_open 11367choke me 11368#endif 11369 11370int 11371main () 11372{ 11373return dbm_open (); 11374 ; 11375 return 0; 11376} 11377_ACEOF 11378rm -f conftest.$ac_objext conftest$ac_exeext 11379if { (ac_try="$ac_link" 11380case "(($ac_try" in 11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11382 *) ac_try_echo=$ac_try;; 11383esac 11384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11385$as_echo "$ac_try_echo") >&5 11386 (eval "$ac_link") 2>conftest.er1 11387 ac_status=$? 11388 grep -v '^ *+' conftest.er1 >conftest.err 11389 rm -f conftest.er1 11390 cat conftest.err >&5 11391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11392 (exit $ac_status); } && { 11393 test -z "$ac_c_werror_flag" || 11394 test ! -s conftest.err 11395 } && test -s conftest$ac_exeext && { 11396 test "$cross_compiling" = yes || 11397 $as_test_x conftest$ac_exeext 11398 }; then 11399 ac_cv_func_dbm_open=yes 11400else 11401 $as_echo "$as_me: failed program was:" >&5 11402sed 's/^/| /' conftest.$ac_ext >&5 11403 11404 ac_cv_func_dbm_open=no 11405fi 11406 11407rm -rf conftest.dSYM 11408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11409 conftest$ac_exeext conftest.$ac_ext 11410fi 11411{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5 11412$as_echo "$ac_cv_func_dbm_open" >&6; } 11413if test "x$ac_cv_func_dbm_open" = x""yes; then 11414 dblib="ndbm" 11415else 11416 dblib="no" 11417fi 11418 11419 fi 11420 11421 if test "$dblib" = no; then 11422 if test "${ac_cv_header_gdbm_h+set}" = set; then 11423 { $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5 11424$as_echo_n "checking for gdbm.h... " >&6; } 11425if test "${ac_cv_header_gdbm_h+set}" = set; then 11426 $as_echo_n "(cached) " >&6 11427fi 11428{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 11429$as_echo "$ac_cv_header_gdbm_h" >&6; } 11430else 11431 # Is the header compilable? 11432{ $as_echo "$as_me:$LINENO: checking gdbm.h usability" >&5 11433$as_echo_n "checking gdbm.h usability... " >&6; } 11434cat >conftest.$ac_ext <<_ACEOF 11435/* confdefs.h. */ 11436_ACEOF 11437cat confdefs.h >>conftest.$ac_ext 11438cat >>conftest.$ac_ext <<_ACEOF 11439/* end confdefs.h. */ 11440$ac_includes_default 11441#include <gdbm.h> 11442_ACEOF 11443rm -f conftest.$ac_objext 11444if { (ac_try="$ac_compile" 11445case "(($ac_try" in 11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11447 *) ac_try_echo=$ac_try;; 11448esac 11449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11450$as_echo "$ac_try_echo") >&5 11451 (eval "$ac_compile") 2>conftest.er1 11452 ac_status=$? 11453 grep -v '^ *+' conftest.er1 >conftest.err 11454 rm -f conftest.er1 11455 cat conftest.err >&5 11456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11457 (exit $ac_status); } && { 11458 test -z "$ac_c_werror_flag" || 11459 test ! -s conftest.err 11460 } && test -s conftest.$ac_objext; then 11461 ac_header_compiler=yes 11462else 11463 $as_echo "$as_me: failed program was:" >&5 11464sed 's/^/| /' conftest.$ac_ext >&5 11465 11466 ac_header_compiler=no 11467fi 11468 11469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11470{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11471$as_echo "$ac_header_compiler" >&6; } 11472 11473# Is the header present? 11474{ $as_echo "$as_me:$LINENO: checking gdbm.h presence" >&5 11475$as_echo_n "checking gdbm.h presence... " >&6; } 11476cat >conftest.$ac_ext <<_ACEOF 11477/* confdefs.h. */ 11478_ACEOF 11479cat confdefs.h >>conftest.$ac_ext 11480cat >>conftest.$ac_ext <<_ACEOF 11481/* end confdefs.h. */ 11482#include <gdbm.h> 11483_ACEOF 11484if { (ac_try="$ac_cpp conftest.$ac_ext" 11485case "(($ac_try" in 11486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11487 *) ac_try_echo=$ac_try;; 11488esac 11489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11490$as_echo "$ac_try_echo") >&5 11491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11492 ac_status=$? 11493 grep -v '^ *+' conftest.er1 >conftest.err 11494 rm -f conftest.er1 11495 cat conftest.err >&5 11496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11497 (exit $ac_status); } >/dev/null && { 11498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11499 test ! -s conftest.err 11500 }; then 11501 ac_header_preproc=yes 11502else 11503 $as_echo "$as_me: failed program was:" >&5 11504sed 's/^/| /' conftest.$ac_ext >&5 11505 11506 ac_header_preproc=no 11507fi 11508 11509rm -f conftest.err conftest.$ac_ext 11510{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11511$as_echo "$ac_header_preproc" >&6; } 11512 11513# So? What about this header? 11514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11515 yes:no: ) 11516 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5 11517$as_echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11518 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the compiler's result" >&5 11519$as_echo "$as_me: WARNING: gdbm.h: proceeding with the compiler's result" >&2;} 11520 ac_header_preproc=yes 11521 ;; 11522 no:yes:* ) 11523 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5 11524$as_echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;} 11525 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5 11526$as_echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;} 11527 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: see the Autoconf documentation" >&5 11528$as_echo "$as_me: WARNING: gdbm.h: see the Autoconf documentation" >&2;} 11529 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&5 11530$as_echo "$as_me: WARNING: gdbm.h: section \"Present But Cannot Be Compiled\"" >&2;} 11531 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5 11532$as_echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;} 11533 { $as_echo "$as_me:$LINENO: WARNING: gdbm.h: in the future, the compiler will take precedence" >&5 11534$as_echo "$as_me: WARNING: gdbm.h: in the future, the compiler will take precedence" >&2;} 11535 11536 ;; 11537esac 11538{ $as_echo "$as_me:$LINENO: checking for gdbm.h" >&5 11539$as_echo_n "checking for gdbm.h... " >&6; } 11540if test "${ac_cv_header_gdbm_h+set}" = set; then 11541 $as_echo_n "(cached) " >&6 11542else 11543 ac_cv_header_gdbm_h=$ac_header_preproc 11544fi 11545{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5 11546$as_echo "$ac_cv_header_gdbm_h" >&6; } 11547 11548fi 11549if test "x$ac_cv_header_gdbm_h" = x""yes; then 11550 11551 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5 11552$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11553if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then 11554 $as_echo_n "(cached) " >&6 11555else 11556 ac_check_lib_save_LIBS=$LIBS 11557LIBS="-lgdbm $LIBS" 11558cat >conftest.$ac_ext <<_ACEOF 11559/* confdefs.h. */ 11560_ACEOF 11561cat confdefs.h >>conftest.$ac_ext 11562cat >>conftest.$ac_ext <<_ACEOF 11563/* end confdefs.h. */ 11564 11565/* Override any GCC internal prototype to avoid an error. 11566 Use char because int might match the return type of a GCC 11567 builtin and then its argument prototype would still apply. */ 11568#ifdef __cplusplus 11569extern "C" 11570#endif 11571char gdbm_open (); 11572int 11573main () 11574{ 11575return gdbm_open (); 11576 ; 11577 return 0; 11578} 11579_ACEOF 11580rm -f conftest.$ac_objext conftest$ac_exeext 11581if { (ac_try="$ac_link" 11582case "(($ac_try" in 11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11584 *) ac_try_echo=$ac_try;; 11585esac 11586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11587$as_echo "$ac_try_echo") >&5 11588 (eval "$ac_link") 2>conftest.er1 11589 ac_status=$? 11590 grep -v '^ *+' conftest.er1 >conftest.err 11591 rm -f conftest.er1 11592 cat conftest.err >&5 11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11594 (exit $ac_status); } && { 11595 test -z "$ac_c_werror_flag" || 11596 test ! -s conftest.err 11597 } && test -s conftest$ac_exeext && { 11598 test "$cross_compiling" = yes || 11599 $as_test_x conftest$ac_exeext 11600 }; then 11601 ac_cv_lib_gdbm_gdbm_open=yes 11602else 11603 $as_echo "$as_me: failed program was:" >&5 11604sed 's/^/| /' conftest.$ac_ext >&5 11605 11606 ac_cv_lib_gdbm_gdbm_open=no 11607fi 11608 11609rm -rf conftest.dSYM 11610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11611 conftest$ac_exeext conftest.$ac_ext 11612LIBS=$ac_check_lib_save_LIBS 11613fi 11614{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11615$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11616if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then 11617 dblib="gdbm"; 11618 SASL_DB_LIB="-lgdbm" 11619else 11620 dblib="no" 11621fi 11622 11623else 11624 dblib="no" 11625fi 11626 11627 11628 fi 11629 else 11630 CPPFLAGS="${CPPFLAGS} ${BDB_INCADD}" 11631 SASL_DB_INC=$BDB_INCADD 11632 SASL_DB_LIB="${BDB_LIBADD}" 11633 fi 11634 ;; 11635 none) 11636 ;; 11637 no) 11638 ;; 11639 *) 11640 { $as_echo "$as_me:$LINENO: WARNING: Bad DB library implementation specified;" >&5 11641$as_echo "$as_me: WARNING: Bad DB library implementation specified;" >&2;} 11642 { { $as_echo "$as_me:$LINENO: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&5 11643$as_echo "$as_me: error: Use either \"berkeley\", \"gdbm\", \"ndbm\" or \"none\"" >&2;} 11644 { (exit 1); exit 1; }; } 11645 dblib=no 11646 ;; 11647esac 11648LIBS="$cmu_save_LIBS" 11649 11650{ $as_echo "$as_me:$LINENO: checking DB library to use" >&5 11651$as_echo_n "checking DB library to use... " >&6; } 11652{ $as_echo "$as_me:$LINENO: result: $dblib" >&5 11653$as_echo "$dblib" >&6; } 11654 11655SASL_DB_BACKEND="db_${dblib}.lo" 11656SASL_DB_BACKEND_STATIC="db_${dblib}.o allockey.o" 11657SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_${dblib}.c \$(top_srcdir)/sasldb/allockey.c" 11658SASL_DB_UTILS="saslpasswd2 sasldblistusers2" 11659SASL_DB_MANS="saslpasswd2.8 sasldblistusers2.8" 11660 11661case "$dblib" in 11662 gdbm) 11663 SASL_MECHS="$SASL_MECHS libsasldb.la" 11664 11665cat >>confdefs.h <<\_ACEOF 11666#define SASL_GDBM /**/ 11667_ACEOF 11668 11669 ;; 11670 ndbm) 11671 SASL_MECHS="$SASL_MECHS libsasldb.la" 11672 11673cat >>confdefs.h <<\_ACEOF 11674#define SASL_NDBM /**/ 11675_ACEOF 11676 11677 ;; 11678 berkeley) 11679 SASL_MECHS="$SASL_MECHS libsasldb.la" 11680 11681cat >>confdefs.h <<\_ACEOF 11682#define SASL_BERKELEYDB /**/ 11683_ACEOF 11684 11685 ;; 11686 *) 11687 { $as_echo "$as_me:$LINENO: WARNING: Disabling SASL authentication database support" >&5 11688$as_echo "$as_me: WARNING: Disabling SASL authentication database support" >&2;} 11689 SASL_DB_BACKEND="db_none.lo" 11690 SASL_DB_BACKEND_STATIC="db_none.o" 11691 SASL_DB_BACKEND_STATIC_SRCS="\$(top_srcdir)/sasldb/db_none.c" 11692 SASL_DB_UTILS="" 11693 SASL_DB_MANS="" 11694 SASL_DB_LIB="" 11695 ;; 11696esac 11697 11698if test "$enable_static" = yes; then 11699 if test "$dblib" != "none"; then 11700 SASL_STATIC_SRCS="$SASL_STATIC_SRCS \$(top_srcdir)/plugins/sasldb.c $SASL_DB_BACKEND_STATIC_SRCS" 11701 SASL_STATIC_OBJS="$SASL_STATIC_OBJS sasldb.o $SASL_DB_BACKEND_STATIC" 11702 11703cat >>confdefs.h <<\_ACEOF 11704#define STATIC_SASLDB /**/ 11705_ACEOF 11706 11707 else 11708 SASL_STATIC_OBJS="$SASL_STATIC_OBJS $SASL_DB_BACKEND_STATIC" 11709 SASL_STATIC_SRCS="$SASL_STATIC_SRCS $SASL_DB_BACKEND_STATIC_SRCS" 11710 fi 11711fi 11712 11713 11714 11715 11716 11717 11718 11719 11720 SASL_DB_LIB="$SASL_DB_LIB ../sasldb/.libs/libsasldb.al" 11721fi 11722 11723# Check whether --enable-httpform was given. 11724if test "${enable_httpform+set}" = set; then 11725 enableval=$enable_httpform; httpform=$enableval 11726else 11727 httpform=no 11728fi 11729 11730if test "$httpform" != no; then 11731 11732cat >>confdefs.h <<\_ACEOF 11733#define HAVE_HTTPFORM /**/ 11734_ACEOF 11735 11736fi 11737 11738 11739# Check whether --with-pam was given. 11740if test "${with_pam+set}" = set; then 11741 withval=$with_pam; with_pam=$withval 11742else 11743 with_pam=yes 11744fi 11745 11746if test "$with_pam" != no; then 11747 if test -d $with_pam; then 11748 CPPFLAGS="$CPPFLAGS -I${with_pam}/include" 11749 LDFLAGS="$LDFLAGS -L${with_pam}/lib" 11750 fi 11751 cmu_save_LIBS="$LIBS" 11752 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 11753$as_echo_n "checking for pam_start in -lpam... " >&6; } 11754if test "${ac_cv_lib_pam_pam_start+set}" = set; then 11755 $as_echo_n "(cached) " >&6 11756else 11757 ac_check_lib_save_LIBS=$LIBS 11758LIBS="-lpam $SASL_DL_LIB $LIBS" 11759cat >conftest.$ac_ext <<_ACEOF 11760/* confdefs.h. */ 11761_ACEOF 11762cat confdefs.h >>conftest.$ac_ext 11763cat >>conftest.$ac_ext <<_ACEOF 11764/* end confdefs.h. */ 11765 11766/* Override any GCC internal prototype to avoid an error. 11767 Use char because int might match the return type of a GCC 11768 builtin and then its argument prototype would still apply. */ 11769#ifdef __cplusplus 11770extern "C" 11771#endif 11772char pam_start (); 11773int 11774main () 11775{ 11776return pam_start (); 11777 ; 11778 return 0; 11779} 11780_ACEOF 11781rm -f conftest.$ac_objext conftest$ac_exeext 11782if { (ac_try="$ac_link" 11783case "(($ac_try" in 11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11785 *) ac_try_echo=$ac_try;; 11786esac 11787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11788$as_echo "$ac_try_echo") >&5 11789 (eval "$ac_link") 2>conftest.er1 11790 ac_status=$? 11791 grep -v '^ *+' conftest.er1 >conftest.err 11792 rm -f conftest.er1 11793 cat conftest.err >&5 11794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11795 (exit $ac_status); } && { 11796 test -z "$ac_c_werror_flag" || 11797 test ! -s conftest.err 11798 } && test -s conftest$ac_exeext && { 11799 test "$cross_compiling" = yes || 11800 $as_test_x conftest$ac_exeext 11801 }; then 11802 ac_cv_lib_pam_pam_start=yes 11803else 11804 $as_echo "$as_me: failed program was:" >&5 11805sed 's/^/| /' conftest.$ac_ext >&5 11806 11807 ac_cv_lib_pam_pam_start=no 11808fi 11809 11810rm -rf conftest.dSYM 11811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11812 conftest$ac_exeext conftest.$ac_ext 11813LIBS=$ac_check_lib_save_LIBS 11814fi 11815{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 11816$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 11817if test "x$ac_cv_lib_pam_pam_start" = x""yes; then 11818 11819 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 11820 { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5 11821$as_echo_n "checking for security/pam_appl.h... " >&6; } 11822if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 11823 $as_echo_n "(cached) " >&6 11824fi 11825{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5 11826$as_echo "$ac_cv_header_security_pam_appl_h" >&6; } 11827else 11828 # Is the header compilable? 11829{ $as_echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5 11830$as_echo_n "checking security/pam_appl.h usability... " >&6; } 11831cat >conftest.$ac_ext <<_ACEOF 11832/* confdefs.h. */ 11833_ACEOF 11834cat confdefs.h >>conftest.$ac_ext 11835cat >>conftest.$ac_ext <<_ACEOF 11836/* end confdefs.h. */ 11837$ac_includes_default 11838#include <security/pam_appl.h> 11839_ACEOF 11840rm -f conftest.$ac_objext 11841if { (ac_try="$ac_compile" 11842case "(($ac_try" in 11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11844 *) ac_try_echo=$ac_try;; 11845esac 11846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11847$as_echo "$ac_try_echo") >&5 11848 (eval "$ac_compile") 2>conftest.er1 11849 ac_status=$? 11850 grep -v '^ *+' conftest.er1 >conftest.err 11851 rm -f conftest.er1 11852 cat conftest.err >&5 11853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); } && { 11855 test -z "$ac_c_werror_flag" || 11856 test ! -s conftest.err 11857 } && test -s conftest.$ac_objext; then 11858 ac_header_compiler=yes 11859else 11860 $as_echo "$as_me: failed program was:" >&5 11861sed 's/^/| /' conftest.$ac_ext >&5 11862 11863 ac_header_compiler=no 11864fi 11865 11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11867{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11868$as_echo "$ac_header_compiler" >&6; } 11869 11870# Is the header present? 11871{ $as_echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5 11872$as_echo_n "checking security/pam_appl.h presence... " >&6; } 11873cat >conftest.$ac_ext <<_ACEOF 11874/* confdefs.h. */ 11875_ACEOF 11876cat confdefs.h >>conftest.$ac_ext 11877cat >>conftest.$ac_ext <<_ACEOF 11878/* end confdefs.h. */ 11879#include <security/pam_appl.h> 11880_ACEOF 11881if { (ac_try="$ac_cpp conftest.$ac_ext" 11882case "(($ac_try" in 11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11884 *) ac_try_echo=$ac_try;; 11885esac 11886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11887$as_echo "$ac_try_echo") >&5 11888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11889 ac_status=$? 11890 grep -v '^ *+' conftest.er1 >conftest.err 11891 rm -f conftest.er1 11892 cat conftest.err >&5 11893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11894 (exit $ac_status); } >/dev/null && { 11895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11896 test ! -s conftest.err 11897 }; then 11898 ac_header_preproc=yes 11899else 11900 $as_echo "$as_me: failed program was:" >&5 11901sed 's/^/| /' conftest.$ac_ext >&5 11902 11903 ac_header_preproc=no 11904fi 11905 11906rm -f conftest.err conftest.$ac_ext 11907{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11908$as_echo "$ac_header_preproc" >&6; } 11909 11910# So? What about this header? 11911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11912 yes:no: ) 11913 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5 11914$as_echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11915 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5 11916$as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;} 11917 ac_header_preproc=yes 11918 ;; 11919 no:yes:* ) 11920 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5 11921$as_echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;} 11922 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5 11923$as_echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;} 11924 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5 11925$as_echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;} 11926 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5 11927$as_echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;} 11928 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5 11929$as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;} 11930 { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5 11931$as_echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;} 11932 11933 ;; 11934esac 11935{ $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5 11936$as_echo_n "checking for security/pam_appl.h... " >&6; } 11937if test "${ac_cv_header_security_pam_appl_h+set}" = set; then 11938 $as_echo_n "(cached) " >&6 11939else 11940 ac_cv_header_security_pam_appl_h=$ac_header_preproc 11941fi 11942{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5 11943$as_echo "$ac_cv_header_security_pam_appl_h" >&6; } 11944 11945fi 11946if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then 11947 : 11948else 11949 with_pam=no 11950fi 11951 11952 11953else 11954 with_pam=no 11955fi 11956 11957 LIBS="$cmu_save_LIBS" 11958fi 11959 11960 11961# Check whether --with-ipctype was given. 11962if test "${with_ipctype+set}" = set; then 11963 withval=$with_ipctype; with_ipctype=$withval 11964else 11965 with_ipctype="unix" 11966fi 11967 11968MAIN_COMPAT_OBJ="saslauthd-${with_ipctype}.o" 11969 11970if test "$with_ipctype" = "doors"; then 11971 11972cat >>confdefs.h <<\_ACEOF 11973#define USE_DOORS /**/ 11974_ACEOF 11975 11976 11977cat >>confdefs.h <<\_ACEOF 11978#define SASLAUTHD_THREADED /**/ 11979_ACEOF 11980 11981 LIBS="$LIBS -ldoor -lpthread" 11982fi 11983 11984{ $as_echo "$as_me:$LINENO: checking for PAM support" >&5 11985$as_echo_n "checking for PAM support... " >&6; } 11986{ $as_echo "$as_me:$LINENO: result: $with_pam" >&5 11987$as_echo "$with_pam" >&6; } 11988LIB_PAM="" 11989if test "$with_pam" != no; then 11990 11991cat >>confdefs.h <<\_ACEOF 11992#define HAVE_PAM /**/ 11993_ACEOF 11994 11995 LIB_PAM="-lpam" 11996fi 11997 11998 11999 12000{ $as_echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 12001$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 12002if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then 12003 $as_echo_n "(cached) " >&6 12004else 12005 ac_check_lib_save_LIBS=$LIBS 12006LIBS="-lresolv $LIBS" 12007cat >conftest.$ac_ext <<_ACEOF 12008/* confdefs.h. */ 12009_ACEOF 12010cat confdefs.h >>conftest.$ac_ext 12011cat >>conftest.$ac_ext <<_ACEOF 12012/* end confdefs.h. */ 12013 12014/* Override any GCC internal prototype to avoid an error. 12015 Use char because int might match the return type of a GCC 12016 builtin and then its argument prototype would still apply. */ 12017#ifdef __cplusplus 12018extern "C" 12019#endif 12020char inet_aton (); 12021int 12022main () 12023{ 12024return inet_aton (); 12025 ; 12026 return 0; 12027} 12028_ACEOF 12029rm -f conftest.$ac_objext conftest$ac_exeext 12030if { (ac_try="$ac_link" 12031case "(($ac_try" in 12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12033 *) ac_try_echo=$ac_try;; 12034esac 12035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12036$as_echo "$ac_try_echo") >&5 12037 (eval "$ac_link") 2>conftest.er1 12038 ac_status=$? 12039 grep -v '^ *+' conftest.er1 >conftest.err 12040 rm -f conftest.er1 12041 cat conftest.err >&5 12042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12043 (exit $ac_status); } && { 12044 test -z "$ac_c_werror_flag" || 12045 test ! -s conftest.err 12046 } && test -s conftest$ac_exeext && { 12047 test "$cross_compiling" = yes || 12048 $as_test_x conftest$ac_exeext 12049 }; then 12050 ac_cv_lib_resolv_inet_aton=yes 12051else 12052 $as_echo "$as_me: failed program was:" >&5 12053sed 's/^/| /' conftest.$ac_ext >&5 12054 12055 ac_cv_lib_resolv_inet_aton=no 12056fi 12057 12058rm -rf conftest.dSYM 12059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12060 conftest$ac_exeext conftest.$ac_ext 12061LIBS=$ac_check_lib_save_LIBS 12062fi 12063{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 12064$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 12065if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then 12066 cat >>confdefs.h <<_ACEOF 12067#define HAVE_LIBRESOLV 1 12068_ACEOF 12069 12070 LIBS="-lresolv $LIBS" 12071 12072fi 12073 12074 12075{ $as_echo "$as_me:$LINENO: checking to include LDAP support" >&5 12076$as_echo_n "checking to include LDAP support... " >&6; } 12077 12078# Check whether --with-ldap was given. 12079if test "${with_ldap+set}" = set; then 12080 withval=$with_ldap; with_ldap=$withval 12081else 12082 with_ldap=no 12083fi 12084 12085{ $as_echo "$as_me:$LINENO: result: $with_ldap" >&5 12086$as_echo "$with_ldap" >&6; } 12087 12088if test -d $with_ldap; then 12089 CPPFLAGS="$CPPFLAGS -I${with_ldap}/include" 12090 12091 # this is CMU ADD LIBPATH 12092 if test "$andrew_cv_runpath_switch" = "none" ; then 12093 LDFLAGS="-L${with_ldap}/lib ${LDFLAGS}" 12094 else 12095 LDFLAGS="-L${with_ldap}/lib $andrew_cv_runpath_switch${with_ldap}/lib ${LDFLAGS}" 12096 fi 12097 12098fi 12099 12100LDAP_LIBS="" 12101if test "$with_ldap" != no; then 12102 { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5 12103$as_echo_n "checking for ldap_initialize in -lldap... " >&6; } 12104if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then 12105 $as_echo_n "(cached) " >&6 12106else 12107 ac_check_lib_save_LIBS=$LIBS 12108LIBS="-lldap -llber $LIBS" 12109cat >conftest.$ac_ext <<_ACEOF 12110/* confdefs.h. */ 12111_ACEOF 12112cat confdefs.h >>conftest.$ac_ext 12113cat >>conftest.$ac_ext <<_ACEOF 12114/* end confdefs.h. */ 12115 12116/* Override any GCC internal prototype to avoid an error. 12117 Use char because int might match the return type of a GCC 12118 builtin and then its argument prototype would still apply. */ 12119#ifdef __cplusplus 12120extern "C" 12121#endif 12122char ldap_initialize (); 12123int 12124main () 12125{ 12126return ldap_initialize (); 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131rm -f conftest.$ac_objext conftest$ac_exeext 12132if { (ac_try="$ac_link" 12133case "(($ac_try" in 12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12135 *) ac_try_echo=$ac_try;; 12136esac 12137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12138$as_echo "$ac_try_echo") >&5 12139 (eval "$ac_link") 2>conftest.er1 12140 ac_status=$? 12141 grep -v '^ *+' conftest.er1 >conftest.err 12142 rm -f conftest.er1 12143 cat conftest.err >&5 12144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 (exit $ac_status); } && { 12146 test -z "$ac_c_werror_flag" || 12147 test ! -s conftest.err 12148 } && test -s conftest$ac_exeext && { 12149 test "$cross_compiling" = yes || 12150 $as_test_x conftest$ac_exeext 12151 }; then 12152 ac_cv_lib_ldap_ldap_initialize=yes 12153else 12154 $as_echo "$as_me: failed program was:" >&5 12155sed 's/^/| /' conftest.$ac_ext >&5 12156 12157 ac_cv_lib_ldap_ldap_initialize=no 12158fi 12159 12160rm -rf conftest.dSYM 12161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12162 conftest$ac_exeext conftest.$ac_ext 12163LIBS=$ac_check_lib_save_LIBS 12164fi 12165{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5 12166$as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; } 12167if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then 12168 12169cat >>confdefs.h <<\_ACEOF 12170#define HAVE_LDAP /**/ 12171_ACEOF 12172 12173 LDAP_LIBS="-lldap -llber" 12174 if test "$with_openssl" != "no"; then 12175 LDAP_LIBS="$LDAP_LIBS -lcrypto $LIB_RSAREF" 12176 fi 12177fi 12178 12179 12180fi 12181 12182 12183 12184{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 12185$as_echo_n "checking for ANSI C header files... " >&6; } 12186if test "${ac_cv_header_stdc+set}" = set; then 12187 $as_echo_n "(cached) " >&6 12188else 12189 cat >conftest.$ac_ext <<_ACEOF 12190/* confdefs.h. */ 12191_ACEOF 12192cat confdefs.h >>conftest.$ac_ext 12193cat >>conftest.$ac_ext <<_ACEOF 12194/* end confdefs.h. */ 12195#include <stdlib.h> 12196#include <stdarg.h> 12197#include <string.h> 12198#include <float.h> 12199 12200int 12201main () 12202{ 12203 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208rm -f conftest.$ac_objext 12209if { (ac_try="$ac_compile" 12210case "(($ac_try" in 12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12212 *) ac_try_echo=$ac_try;; 12213esac 12214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12215$as_echo "$ac_try_echo") >&5 12216 (eval "$ac_compile") 2>conftest.er1 12217 ac_status=$? 12218 grep -v '^ *+' conftest.er1 >conftest.err 12219 rm -f conftest.er1 12220 cat conftest.err >&5 12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12222 (exit $ac_status); } && { 12223 test -z "$ac_c_werror_flag" || 12224 test ! -s conftest.err 12225 } && test -s conftest.$ac_objext; then 12226 ac_cv_header_stdc=yes 12227else 12228 $as_echo "$as_me: failed program was:" >&5 12229sed 's/^/| /' conftest.$ac_ext >&5 12230 12231 ac_cv_header_stdc=no 12232fi 12233 12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12235 12236if test $ac_cv_header_stdc = yes; then 12237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12238 cat >conftest.$ac_ext <<_ACEOF 12239/* confdefs.h. */ 12240_ACEOF 12241cat confdefs.h >>conftest.$ac_ext 12242cat >>conftest.$ac_ext <<_ACEOF 12243/* end confdefs.h. */ 12244#include <string.h> 12245 12246_ACEOF 12247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12248 $EGREP "memchr" >/dev/null 2>&1; then 12249 : 12250else 12251 ac_cv_header_stdc=no 12252fi 12253rm -f conftest* 12254 12255fi 12256 12257if test $ac_cv_header_stdc = yes; then 12258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12259 cat >conftest.$ac_ext <<_ACEOF 12260/* confdefs.h. */ 12261_ACEOF 12262cat confdefs.h >>conftest.$ac_ext 12263cat >>conftest.$ac_ext <<_ACEOF 12264/* end confdefs.h. */ 12265#include <stdlib.h> 12266 12267_ACEOF 12268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12269 $EGREP "free" >/dev/null 2>&1; then 12270 : 12271else 12272 ac_cv_header_stdc=no 12273fi 12274rm -f conftest* 12275 12276fi 12277 12278if test $ac_cv_header_stdc = yes; then 12279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12280 if test "$cross_compiling" = yes; then 12281 : 12282else 12283 cat >conftest.$ac_ext <<_ACEOF 12284/* confdefs.h. */ 12285_ACEOF 12286cat confdefs.h >>conftest.$ac_ext 12287cat >>conftest.$ac_ext <<_ACEOF 12288/* end confdefs.h. */ 12289#include <ctype.h> 12290#include <stdlib.h> 12291#if ((' ' & 0x0FF) == 0x020) 12292# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12293# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12294#else 12295# define ISLOWER(c) \ 12296 (('a' <= (c) && (c) <= 'i') \ 12297 || ('j' <= (c) && (c) <= 'r') \ 12298 || ('s' <= (c) && (c) <= 'z')) 12299# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12300#endif 12301 12302#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12303int 12304main () 12305{ 12306 int i; 12307 for (i = 0; i < 256; i++) 12308 if (XOR (islower (i), ISLOWER (i)) 12309 || toupper (i) != TOUPPER (i)) 12310 return 2; 12311 return 0; 12312} 12313_ACEOF 12314rm -f conftest$ac_exeext 12315if { (ac_try="$ac_link" 12316case "(($ac_try" in 12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12318 *) ac_try_echo=$ac_try;; 12319esac 12320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12321$as_echo "$ac_try_echo") >&5 12322 (eval "$ac_link") 2>&5 12323 ac_status=$? 12324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12326 { (case "(($ac_try" in 12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12328 *) ac_try_echo=$ac_try;; 12329esac 12330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12331$as_echo "$ac_try_echo") >&5 12332 (eval "$ac_try") 2>&5 12333 ac_status=$? 12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12335 (exit $ac_status); }; }; then 12336 : 12337else 12338 $as_echo "$as_me: program exited with status $ac_status" >&5 12339$as_echo "$as_me: failed program was:" >&5 12340sed 's/^/| /' conftest.$ac_ext >&5 12341 12342( exit $ac_status ) 12343ac_cv_header_stdc=no 12344fi 12345rm -rf conftest.dSYM 12346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12347fi 12348 12349 12350fi 12351fi 12352{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 12353$as_echo "$ac_cv_header_stdc" >&6; } 12354if test $ac_cv_header_stdc = yes; then 12355 12356cat >>confdefs.h <<\_ACEOF 12357#define STDC_HEADERS 1 12358_ACEOF 12359 12360fi 12361 12362{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 12363$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12364if test "${ac_cv_header_sys_wait_h+set}" = set; then 12365 $as_echo_n "(cached) " >&6 12366else 12367 cat >conftest.$ac_ext <<_ACEOF 12368/* confdefs.h. */ 12369_ACEOF 12370cat confdefs.h >>conftest.$ac_ext 12371cat >>conftest.$ac_ext <<_ACEOF 12372/* end confdefs.h. */ 12373#include <sys/types.h> 12374#include <sys/wait.h> 12375#ifndef WEXITSTATUS 12376# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12377#endif 12378#ifndef WIFEXITED 12379# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12380#endif 12381 12382int 12383main () 12384{ 12385 int s; 12386 wait (&s); 12387 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12388 ; 12389 return 0; 12390} 12391_ACEOF 12392rm -f conftest.$ac_objext 12393if { (ac_try="$ac_compile" 12394case "(($ac_try" in 12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12396 *) ac_try_echo=$ac_try;; 12397esac 12398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12399$as_echo "$ac_try_echo") >&5 12400 (eval "$ac_compile") 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && { 12407 test -z "$ac_c_werror_flag" || 12408 test ! -s conftest.err 12409 } && test -s conftest.$ac_objext; then 12410 ac_cv_header_sys_wait_h=yes 12411else 12412 $as_echo "$as_me: failed program was:" >&5 12413sed 's/^/| /' conftest.$ac_ext >&5 12414 12415 ac_cv_header_sys_wait_h=no 12416fi 12417 12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12419fi 12420{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 12421$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12422if test $ac_cv_header_sys_wait_h = yes; then 12423 12424cat >>confdefs.h <<\_ACEOF 12425#define HAVE_SYS_WAIT_H 1 12426_ACEOF 12427 12428fi 12429 12430{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12431$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12432if test "${ac_cv_header_time+set}" = set; then 12433 $as_echo_n "(cached) " >&6 12434else 12435 cat >conftest.$ac_ext <<_ACEOF 12436/* confdefs.h. */ 12437_ACEOF 12438cat confdefs.h >>conftest.$ac_ext 12439cat >>conftest.$ac_ext <<_ACEOF 12440/* end confdefs.h. */ 12441#include <sys/types.h> 12442#include <sys/time.h> 12443#include <time.h> 12444 12445int 12446main () 12447{ 12448if ((struct tm *) 0) 12449return 0; 12450 ; 12451 return 0; 12452} 12453_ACEOF 12454rm -f conftest.$ac_objext 12455if { (ac_try="$ac_compile" 12456case "(($ac_try" in 12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12458 *) ac_try_echo=$ac_try;; 12459esac 12460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12461$as_echo "$ac_try_echo") >&5 12462 (eval "$ac_compile") 2>conftest.er1 12463 ac_status=$? 12464 grep -v '^ *+' conftest.er1 >conftest.err 12465 rm -f conftest.er1 12466 cat conftest.err >&5 12467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 (exit $ac_status); } && { 12469 test -z "$ac_c_werror_flag" || 12470 test ! -s conftest.err 12471 } && test -s conftest.$ac_objext; then 12472 ac_cv_header_time=yes 12473else 12474 $as_echo "$as_me: failed program was:" >&5 12475sed 's/^/| /' conftest.$ac_ext >&5 12476 12477 ac_cv_header_time=no 12478fi 12479 12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12481fi 12482{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12483$as_echo "$ac_cv_header_time" >&6; } 12484if test $ac_cv_header_time = yes; then 12485 12486cat >>confdefs.h <<\_ACEOF 12487#define TIME_WITH_SYS_TIME 1 12488_ACEOF 12489 12490fi 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500for ac_header in crypt.h fcntl.h krb5.h strings.h syslog.h unistd.h sys/time.h sys/uio.h 12501do 12502as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12505$as_echo_n "checking for $ac_header... " >&6; } 12506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12507 $as_echo_n "(cached) " >&6 12508fi 12509ac_res=`eval 'as_val=${'$as_ac_Header'} 12510 $as_echo "$as_val"'` 12511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12512$as_echo "$ac_res" >&6; } 12513else 12514 # Is the header compilable? 12515{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 12516$as_echo_n "checking $ac_header usability... " >&6; } 12517cat >conftest.$ac_ext <<_ACEOF 12518/* confdefs.h. */ 12519_ACEOF 12520cat confdefs.h >>conftest.$ac_ext 12521cat >>conftest.$ac_ext <<_ACEOF 12522/* end confdefs.h. */ 12523$ac_includes_default 12524#include <$ac_header> 12525_ACEOF 12526rm -f conftest.$ac_objext 12527if { (ac_try="$ac_compile" 12528case "(($ac_try" in 12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12530 *) ac_try_echo=$ac_try;; 12531esac 12532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12533$as_echo "$ac_try_echo") >&5 12534 (eval "$ac_compile") 2>conftest.er1 12535 ac_status=$? 12536 grep -v '^ *+' conftest.er1 >conftest.err 12537 rm -f conftest.er1 12538 cat conftest.err >&5 12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 (exit $ac_status); } && { 12541 test -z "$ac_c_werror_flag" || 12542 test ! -s conftest.err 12543 } && test -s conftest.$ac_objext; then 12544 ac_header_compiler=yes 12545else 12546 $as_echo "$as_me: failed program was:" >&5 12547sed 's/^/| /' conftest.$ac_ext >&5 12548 12549 ac_header_compiler=no 12550fi 12551 12552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12553{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12554$as_echo "$ac_header_compiler" >&6; } 12555 12556# Is the header present? 12557{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 12558$as_echo_n "checking $ac_header presence... " >&6; } 12559cat >conftest.$ac_ext <<_ACEOF 12560/* confdefs.h. */ 12561_ACEOF 12562cat confdefs.h >>conftest.$ac_ext 12563cat >>conftest.$ac_ext <<_ACEOF 12564/* end confdefs.h. */ 12565#include <$ac_header> 12566_ACEOF 12567if { (ac_try="$ac_cpp conftest.$ac_ext" 12568case "(($ac_try" in 12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12570 *) ac_try_echo=$ac_try;; 12571esac 12572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12573$as_echo "$ac_try_echo") >&5 12574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12575 ac_status=$? 12576 grep -v '^ *+' conftest.er1 >conftest.err 12577 rm -f conftest.er1 12578 cat conftest.err >&5 12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12580 (exit $ac_status); } >/dev/null && { 12581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 12582 test ! -s conftest.err 12583 }; then 12584 ac_header_preproc=yes 12585else 12586 $as_echo "$as_me: failed program was:" >&5 12587sed 's/^/| /' conftest.$ac_ext >&5 12588 12589 ac_header_preproc=no 12590fi 12591 12592rm -f conftest.err conftest.$ac_ext 12593{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12594$as_echo "$ac_header_preproc" >&6; } 12595 12596# So? What about this header? 12597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12598 yes:no: ) 12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12600$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12602$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12603 ac_header_preproc=yes 12604 ;; 12605 no:yes:* ) 12606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12607$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12609$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12611$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12613$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12615$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12617$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12618 12619 ;; 12620esac 12621{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 12622$as_echo_n "checking for $ac_header... " >&6; } 12623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12624 $as_echo_n "(cached) " >&6 12625else 12626 eval "$as_ac_Header=\$ac_header_preproc" 12627fi 12628ac_res=`eval 'as_val=${'$as_ac_Header'} 12629 $as_echo "$as_val"'` 12630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 12631$as_echo "$ac_res" >&6; } 12632 12633fi 12634as_val=`eval 'as_val=${'$as_ac_Header'} 12635 $as_echo "$as_val"'` 12636 if test "x$as_val" = x""yes; then 12637 cat >>confdefs.h <<_ACEOF 12638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12639_ACEOF 12640 12641fi 12642 12643done 12644 12645 12646{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12647$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12648if test "${ac_cv_c_const+set}" = set; then 12649 $as_echo_n "(cached) " >&6 12650else 12651 cat >conftest.$ac_ext <<_ACEOF 12652/* confdefs.h. */ 12653_ACEOF 12654cat confdefs.h >>conftest.$ac_ext 12655cat >>conftest.$ac_ext <<_ACEOF 12656/* end confdefs.h. */ 12657 12658int 12659main () 12660{ 12661/* FIXME: Include the comments suggested by Paul. */ 12662#ifndef __cplusplus 12663 /* Ultrix mips cc rejects this. */ 12664 typedef int charset[2]; 12665 const charset cs; 12666 /* SunOS 4.1.1 cc rejects this. */ 12667 char const *const *pcpcc; 12668 char **ppc; 12669 /* NEC SVR4.0.2 mips cc rejects this. */ 12670 struct point {int x, y;}; 12671 static struct point const zero = {0,0}; 12672 /* AIX XL C 1.02.0.0 rejects this. 12673 It does not let you subtract one const X* pointer from another in 12674 an arm of an if-expression whose if-part is not a constant 12675 expression */ 12676 const char *g = "string"; 12677 pcpcc = &g + (g ? g-g : 0); 12678 /* HPUX 7.0 cc rejects these. */ 12679 ++pcpcc; 12680 ppc = (char**) pcpcc; 12681 pcpcc = (char const *const *) ppc; 12682 { /* SCO 3.2v4 cc rejects this. */ 12683 char *t; 12684 char const *s = 0 ? (char *) 0 : (char const *) 0; 12685 12686 *t++ = 0; 12687 if (s) return 0; 12688 } 12689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12690 int x[] = {25, 17}; 12691 const int *foo = &x[0]; 12692 ++foo; 12693 } 12694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12695 typedef const int *iptr; 12696 iptr p = 0; 12697 ++p; 12698 } 12699 { /* AIX XL C 1.02.0.0 rejects this saying 12700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12701 struct s { int j; const int *ap[3]; }; 12702 struct s *b; b->j = 5; 12703 } 12704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12705 const int foo = 10; 12706 if (!foo) return 0; 12707 } 12708 return !cs[0] && !zero.x; 12709#endif 12710 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715rm -f conftest.$ac_objext 12716if { (ac_try="$ac_compile" 12717case "(($ac_try" in 12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12719 *) ac_try_echo=$ac_try;; 12720esac 12721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12722$as_echo "$ac_try_echo") >&5 12723 (eval "$ac_compile") 2>conftest.er1 12724 ac_status=$? 12725 grep -v '^ *+' conftest.er1 >conftest.err 12726 rm -f conftest.er1 12727 cat conftest.err >&5 12728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12729 (exit $ac_status); } && { 12730 test -z "$ac_c_werror_flag" || 12731 test ! -s conftest.err 12732 } && test -s conftest.$ac_objext; then 12733 ac_cv_c_const=yes 12734else 12735 $as_echo "$as_me: failed program was:" >&5 12736sed 's/^/| /' conftest.$ac_ext >&5 12737 12738 ac_cv_c_const=no 12739fi 12740 12741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12742fi 12743{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12744$as_echo "$ac_cv_c_const" >&6; } 12745if test $ac_cv_c_const = no; then 12746 12747cat >>confdefs.h <<\_ACEOF 12748#define const /**/ 12749_ACEOF 12750 12751fi 12752 12753{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5 12754$as_echo_n "checking for pid_t... " >&6; } 12755if test "${ac_cv_type_pid_t+set}" = set; then 12756 $as_echo_n "(cached) " >&6 12757else 12758 ac_cv_type_pid_t=no 12759cat >conftest.$ac_ext <<_ACEOF 12760/* confdefs.h. */ 12761_ACEOF 12762cat confdefs.h >>conftest.$ac_ext 12763cat >>conftest.$ac_ext <<_ACEOF 12764/* end confdefs.h. */ 12765$ac_includes_default 12766int 12767main () 12768{ 12769if (sizeof (pid_t)) 12770 return 0; 12771 ; 12772 return 0; 12773} 12774_ACEOF 12775rm -f conftest.$ac_objext 12776if { (ac_try="$ac_compile" 12777case "(($ac_try" in 12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12779 *) ac_try_echo=$ac_try;; 12780esac 12781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12782$as_echo "$ac_try_echo") >&5 12783 (eval "$ac_compile") 2>conftest.er1 12784 ac_status=$? 12785 grep -v '^ *+' conftest.er1 >conftest.err 12786 rm -f conftest.er1 12787 cat conftest.err >&5 12788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12789 (exit $ac_status); } && { 12790 test -z "$ac_c_werror_flag" || 12791 test ! -s conftest.err 12792 } && test -s conftest.$ac_objext; then 12793 cat >conftest.$ac_ext <<_ACEOF 12794/* confdefs.h. */ 12795_ACEOF 12796cat confdefs.h >>conftest.$ac_ext 12797cat >>conftest.$ac_ext <<_ACEOF 12798/* end confdefs.h. */ 12799$ac_includes_default 12800int 12801main () 12802{ 12803if (sizeof ((pid_t))) 12804 return 0; 12805 ; 12806 return 0; 12807} 12808_ACEOF 12809rm -f conftest.$ac_objext 12810if { (ac_try="$ac_compile" 12811case "(($ac_try" in 12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12813 *) ac_try_echo=$ac_try;; 12814esac 12815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12816$as_echo "$ac_try_echo") >&5 12817 (eval "$ac_compile") 2>conftest.er1 12818 ac_status=$? 12819 grep -v '^ *+' conftest.er1 >conftest.err 12820 rm -f conftest.er1 12821 cat conftest.err >&5 12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12823 (exit $ac_status); } && { 12824 test -z "$ac_c_werror_flag" || 12825 test ! -s conftest.err 12826 } && test -s conftest.$ac_objext; then 12827 : 12828else 12829 $as_echo "$as_me: failed program was:" >&5 12830sed 's/^/| /' conftest.$ac_ext >&5 12831 12832 ac_cv_type_pid_t=yes 12833fi 12834 12835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12836else 12837 $as_echo "$as_me: failed program was:" >&5 12838sed 's/^/| /' conftest.$ac_ext >&5 12839 12840 12841fi 12842 12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12844fi 12845{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 12846$as_echo "$ac_cv_type_pid_t" >&6; } 12847if test "x$ac_cv_type_pid_t" = x""yes; then 12848 : 12849else 12850 12851cat >>confdefs.h <<_ACEOF 12852#define pid_t int 12853_ACEOF 12854 12855fi 12856 12857 12858LTLIBOBJS=`echo "$LIBOBJS" | sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 12859 12860 12861{ $as_echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 12862$as_echo_n "checking whether $CC implements __func__... " >&6; } 12863if test "${have_func+set}" = set; then 12864 $as_echo_n "(cached) " >&6 12865else 12866 cat >conftest.$ac_ext <<_ACEOF 12867/* confdefs.h. */ 12868_ACEOF 12869cat confdefs.h >>conftest.$ac_ext 12870cat >>conftest.$ac_ext <<_ACEOF 12871/* end confdefs.h. */ 12872#include <stdio.h> 12873int 12874main () 12875{ 12876printf("%s", __func__); 12877 ; 12878 return 0; 12879} 12880_ACEOF 12881rm -f conftest.$ac_objext conftest$ac_exeext 12882if { (ac_try="$ac_link" 12883case "(($ac_try" in 12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12885 *) ac_try_echo=$ac_try;; 12886esac 12887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12888$as_echo "$ac_try_echo") >&5 12889 (eval "$ac_link") 2>conftest.er1 12890 ac_status=$? 12891 grep -v '^ *+' conftest.er1 >conftest.err 12892 rm -f conftest.er1 12893 cat conftest.err >&5 12894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12895 (exit $ac_status); } && { 12896 test -z "$ac_c_werror_flag" || 12897 test ! -s conftest.err 12898 } && test -s conftest$ac_exeext && { 12899 test "$cross_compiling" = yes || 12900 $as_test_x conftest$ac_exeext 12901 }; then 12902 have_func=yes 12903else 12904 $as_echo "$as_me: failed program was:" >&5 12905sed 's/^/| /' conftest.$ac_ext >&5 12906 12907 have_func=no 12908fi 12909 12910rm -rf conftest.dSYM 12911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12912 conftest$ac_exeext conftest.$ac_ext 12913fi 12914 12915{ $as_echo "$as_me:$LINENO: result: $have_func" >&5 12916$as_echo "$have_func" >&6; } 12917if test "$have_func" = yes; then 12918 12919cat >>confdefs.h <<\_ACEOF 12920#define HAVE_FUNC /**/ 12921_ACEOF 12922 12923else 12924 { $as_echo "$as_me:$LINENO: checking whether $CC implements __PRETTY_FUNCTION__" >&5 12925$as_echo_n "checking whether $CC implements __PRETTY_FUNCTION__... " >&6; } 12926 if test "${have_pretty_function+set}" = set; then 12927 $as_echo_n "(cached) " >&6 12928else 12929 cat >conftest.$ac_ext <<_ACEOF 12930/* confdefs.h. */ 12931_ACEOF 12932cat confdefs.h >>conftest.$ac_ext 12933cat >>conftest.$ac_ext <<_ACEOF 12934/* end confdefs.h. */ 12935#include <stdio.h> 12936int 12937main () 12938{ 12939printf("%s", __PRETTY_FUNCTION__); 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest.$ac_objext conftest$ac_exeext 12945if { (ac_try="$ac_link" 12946case "(($ac_try" in 12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12948 *) ac_try_echo=$ac_try;; 12949esac 12950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12951$as_echo "$ac_try_echo") >&5 12952 (eval "$ac_link") 2>conftest.er1 12953 ac_status=$? 12954 grep -v '^ *+' conftest.er1 >conftest.err 12955 rm -f conftest.er1 12956 cat conftest.err >&5 12957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12958 (exit $ac_status); } && { 12959 test -z "$ac_c_werror_flag" || 12960 test ! -s conftest.err 12961 } && test -s conftest$ac_exeext && { 12962 test "$cross_compiling" = yes || 12963 $as_test_x conftest$ac_exeext 12964 }; then 12965 have_pretty_function=yes 12966else 12967 $as_echo "$as_me: failed program was:" >&5 12968sed 's/^/| /' conftest.$ac_ext >&5 12969 12970 have_pretty_function=no 12971fi 12972 12973rm -rf conftest.dSYM 12974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12975 conftest$ac_exeext conftest.$ac_ext 12976fi 12977 12978 { $as_echo "$as_me:$LINENO: result: $have_pretty_function" >&5 12979$as_echo "$have_pretty_function" >&6; } 12980 if test "$have_pretty_function" = yes; then 12981 12982cat >>confdefs.h <<\_ACEOF 12983#define HAVE_PRETTY_FUNCTION /**/ 12984_ACEOF 12985 12986 else 12987 { $as_echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 12988$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } 12989 if test "${have_function+set}" = set; then 12990 $as_echo_n "(cached) " >&6 12991else 12992 cat >conftest.$ac_ext <<_ACEOF 12993/* confdefs.h. */ 12994_ACEOF 12995cat confdefs.h >>conftest.$ac_ext 12996cat >>conftest.$ac_ext <<_ACEOF 12997/* end confdefs.h. */ 12998#include <stdio.h> 12999int 13000main () 13001{ 13002printf("%s", __FUNCTION__); 13003 ; 13004 return 0; 13005} 13006_ACEOF 13007rm -f conftest.$ac_objext conftest$ac_exeext 13008if { (ac_try="$ac_link" 13009case "(($ac_try" in 13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13011 *) ac_try_echo=$ac_try;; 13012esac 13013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13014$as_echo "$ac_try_echo") >&5 13015 (eval "$ac_link") 2>conftest.er1 13016 ac_status=$? 13017 grep -v '^ *+' conftest.er1 >conftest.err 13018 rm -f conftest.er1 13019 cat conftest.err >&5 13020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 (exit $ac_status); } && { 13022 test -z "$ac_c_werror_flag" || 13023 test ! -s conftest.err 13024 } && test -s conftest$ac_exeext && { 13025 test "$cross_compiling" = yes || 13026 $as_test_x conftest$ac_exeext 13027 }; then 13028 have_function=yes 13029else 13030 $as_echo "$as_me: failed program was:" >&5 13031sed 's/^/| /' conftest.$ac_ext >&5 13032 13033 have_function=no 13034fi 13035 13036rm -rf conftest.dSYM 13037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13038 conftest$ac_exeext conftest.$ac_ext 13039fi 13040 13041 { $as_echo "$as_me:$LINENO: result: $have_function" >&5 13042$as_echo "$have_function" >&6; } 13043 if test "$have_function" = yes; then 13044 13045cat >>confdefs.h <<\_ACEOF 13046#define HAVE_FUNCTION /**/ 13047_ACEOF 13048 13049 fi 13050 fi 13051fi 13052 13053{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 13054$as_echo_n "checking return type of signal handlers... " >&6; } 13055if test "${ac_cv_type_signal+set}" = set; then 13056 $as_echo_n "(cached) " >&6 13057else 13058 cat >conftest.$ac_ext <<_ACEOF 13059/* confdefs.h. */ 13060_ACEOF 13061cat confdefs.h >>conftest.$ac_ext 13062cat >>conftest.$ac_ext <<_ACEOF 13063/* end confdefs.h. */ 13064#include <sys/types.h> 13065#include <signal.h> 13066 13067int 13068main () 13069{ 13070return *(signal (0, 0)) (0) == 1; 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075rm -f conftest.$ac_objext 13076if { (ac_try="$ac_compile" 13077case "(($ac_try" in 13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13079 *) ac_try_echo=$ac_try;; 13080esac 13081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13082$as_echo "$ac_try_echo") >&5 13083 (eval "$ac_compile") 2>conftest.er1 13084 ac_status=$? 13085 grep -v '^ *+' conftest.er1 >conftest.err 13086 rm -f conftest.er1 13087 cat conftest.err >&5 13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13089 (exit $ac_status); } && { 13090 test -z "$ac_c_werror_flag" || 13091 test ! -s conftest.err 13092 } && test -s conftest.$ac_objext; then 13093 ac_cv_type_signal=int 13094else 13095 $as_echo "$as_me: failed program was:" >&5 13096sed 's/^/| /' conftest.$ac_ext >&5 13097 13098 ac_cv_type_signal=void 13099fi 13100 13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13102fi 13103{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 13104$as_echo "$ac_cv_type_signal" >&6; } 13105 13106cat >>confdefs.h <<_ACEOF 13107#define RETSIGTYPE $ac_cv_type_signal 13108_ACEOF 13109 13110 13111 13112 13113 13114 13115for ac_func in gethostname mkdir socket strdup 13116do 13117as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13118{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13119$as_echo_n "checking for $ac_func... " >&6; } 13120if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13121 $as_echo_n "(cached) " >&6 13122else 13123 cat >conftest.$ac_ext <<_ACEOF 13124/* confdefs.h. */ 13125_ACEOF 13126cat confdefs.h >>conftest.$ac_ext 13127cat >>conftest.$ac_ext <<_ACEOF 13128/* end confdefs.h. */ 13129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13130 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13131#define $ac_func innocuous_$ac_func 13132 13133/* System header to define __stub macros and hopefully few prototypes, 13134 which can conflict with char $ac_func (); below. 13135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13136 <limits.h> exists even on freestanding compilers. */ 13137 13138#ifdef __STDC__ 13139# include <limits.h> 13140#else 13141# include <assert.h> 13142#endif 13143 13144#undef $ac_func 13145 13146/* Override any GCC internal prototype to avoid an error. 13147 Use char because int might match the return type of a GCC 13148 builtin and then its argument prototype would still apply. */ 13149#ifdef __cplusplus 13150extern "C" 13151#endif 13152char $ac_func (); 13153/* The GNU C library defines this for functions which it implements 13154 to always fail with ENOSYS. Some functions are actually named 13155 something starting with __ and the normal name is an alias. */ 13156#if defined __stub_$ac_func || defined __stub___$ac_func 13157choke me 13158#endif 13159 13160int 13161main () 13162{ 13163return $ac_func (); 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168rm -f conftest.$ac_objext conftest$ac_exeext 13169if { (ac_try="$ac_link" 13170case "(($ac_try" in 13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13172 *) ac_try_echo=$ac_try;; 13173esac 13174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13175$as_echo "$ac_try_echo") >&5 13176 (eval "$ac_link") 2>conftest.er1 13177 ac_status=$? 13178 grep -v '^ *+' conftest.er1 >conftest.err 13179 rm -f conftest.er1 13180 cat conftest.err >&5 13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); } && { 13183 test -z "$ac_c_werror_flag" || 13184 test ! -s conftest.err 13185 } && test -s conftest$ac_exeext && { 13186 test "$cross_compiling" = yes || 13187 $as_test_x conftest$ac_exeext 13188 }; then 13189 eval "$as_ac_var=yes" 13190else 13191 $as_echo "$as_me: failed program was:" >&5 13192sed 's/^/| /' conftest.$ac_ext >&5 13193 13194 eval "$as_ac_var=no" 13195fi 13196 13197rm -rf conftest.dSYM 13198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13199 conftest$ac_exeext conftest.$ac_ext 13200fi 13201ac_res=`eval 'as_val=${'$as_ac_var'} 13202 $as_echo "$as_val"'` 13203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13204$as_echo "$ac_res" >&6; } 13205as_val=`eval 'as_val=${'$as_ac_var'} 13206 $as_echo "$as_val"'` 13207 if test "x$as_val" = x""yes; then 13208 cat >>confdefs.h <<_ACEOF 13209#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13210_ACEOF 13211 13212fi 13213done 13214 13215 13216 13217for ac_func in getspnam getuserpw 13218do 13219as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13220{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13221$as_echo_n "checking for $ac_func... " >&6; } 13222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13223 $as_echo_n "(cached) " >&6 13224else 13225 cat >conftest.$ac_ext <<_ACEOF 13226/* confdefs.h. */ 13227_ACEOF 13228cat confdefs.h >>conftest.$ac_ext 13229cat >>conftest.$ac_ext <<_ACEOF 13230/* end confdefs.h. */ 13231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13233#define $ac_func innocuous_$ac_func 13234 13235/* System header to define __stub macros and hopefully few prototypes, 13236 which can conflict with char $ac_func (); below. 13237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13238 <limits.h> exists even on freestanding compilers. */ 13239 13240#ifdef __STDC__ 13241# include <limits.h> 13242#else 13243# include <assert.h> 13244#endif 13245 13246#undef $ac_func 13247 13248/* Override any GCC internal prototype to avoid an error. 13249 Use char because int might match the return type of a GCC 13250 builtin and then its argument prototype would still apply. */ 13251#ifdef __cplusplus 13252extern "C" 13253#endif 13254char $ac_func (); 13255/* The GNU C library defines this for functions which it implements 13256 to always fail with ENOSYS. Some functions are actually named 13257 something starting with __ and the normal name is an alias. */ 13258#if defined __stub_$ac_func || defined __stub___$ac_func 13259choke me 13260#endif 13261 13262int 13263main () 13264{ 13265return $ac_func (); 13266 ; 13267 return 0; 13268} 13269_ACEOF 13270rm -f conftest.$ac_objext conftest$ac_exeext 13271if { (ac_try="$ac_link" 13272case "(($ac_try" in 13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13274 *) ac_try_echo=$ac_try;; 13275esac 13276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13277$as_echo "$ac_try_echo") >&5 13278 (eval "$ac_link") 2>conftest.er1 13279 ac_status=$? 13280 grep -v '^ *+' conftest.er1 >conftest.err 13281 rm -f conftest.er1 13282 cat conftest.err >&5 13283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13284 (exit $ac_status); } && { 13285 test -z "$ac_c_werror_flag" || 13286 test ! -s conftest.err 13287 } && test -s conftest$ac_exeext && { 13288 test "$cross_compiling" = yes || 13289 $as_test_x conftest$ac_exeext 13290 }; then 13291 eval "$as_ac_var=yes" 13292else 13293 $as_echo "$as_me: failed program was:" >&5 13294sed 's/^/| /' conftest.$ac_ext >&5 13295 13296 eval "$as_ac_var=no" 13297fi 13298 13299rm -rf conftest.dSYM 13300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13301 conftest$ac_exeext conftest.$ac_ext 13302fi 13303ac_res=`eval 'as_val=${'$as_ac_var'} 13304 $as_echo "$as_val"'` 13305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13306$as_echo "$ac_res" >&6; } 13307as_val=`eval 'as_val=${'$as_ac_var'} 13308 $as_echo "$as_val"'` 13309 if test "x$as_val" = x""yes; then 13310 cat >>confdefs.h <<_ACEOF 13311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13312_ACEOF 13313 break 13314fi 13315done 13316 13317 13318 13319 13320for ac_func in asprintf strlcat strlcpy 13321do 13322as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13323{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 13324$as_echo_n "checking for $ac_func... " >&6; } 13325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13326 $as_echo_n "(cached) " >&6 13327else 13328 cat >conftest.$ac_ext <<_ACEOF 13329/* confdefs.h. */ 13330_ACEOF 13331cat confdefs.h >>conftest.$ac_ext 13332cat >>conftest.$ac_ext <<_ACEOF 13333/* end confdefs.h. */ 13334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13335 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13336#define $ac_func innocuous_$ac_func 13337 13338/* System header to define __stub macros and hopefully few prototypes, 13339 which can conflict with char $ac_func (); below. 13340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13341 <limits.h> exists even on freestanding compilers. */ 13342 13343#ifdef __STDC__ 13344# include <limits.h> 13345#else 13346# include <assert.h> 13347#endif 13348 13349#undef $ac_func 13350 13351/* Override any GCC internal prototype to avoid an error. 13352 Use char because int might match the return type of a GCC 13353 builtin and then its argument prototype would still apply. */ 13354#ifdef __cplusplus 13355extern "C" 13356#endif 13357char $ac_func (); 13358/* The GNU C library defines this for functions which it implements 13359 to always fail with ENOSYS. Some functions are actually named 13360 something starting with __ and the normal name is an alias. */ 13361#if defined __stub_$ac_func || defined __stub___$ac_func 13362choke me 13363#endif 13364 13365int 13366main () 13367{ 13368return $ac_func (); 13369 ; 13370 return 0; 13371} 13372_ACEOF 13373rm -f conftest.$ac_objext conftest$ac_exeext 13374if { (ac_try="$ac_link" 13375case "(($ac_try" in 13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13377 *) ac_try_echo=$ac_try;; 13378esac 13379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13380$as_echo "$ac_try_echo") >&5 13381 (eval "$ac_link") 2>conftest.er1 13382 ac_status=$? 13383 grep -v '^ *+' conftest.er1 >conftest.err 13384 rm -f conftest.er1 13385 cat conftest.err >&5 13386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13387 (exit $ac_status); } && { 13388 test -z "$ac_c_werror_flag" || 13389 test ! -s conftest.err 13390 } && test -s conftest$ac_exeext && { 13391 test "$cross_compiling" = yes || 13392 $as_test_x conftest$ac_exeext 13393 }; then 13394 eval "$as_ac_var=yes" 13395else 13396 $as_echo "$as_me: failed program was:" >&5 13397sed 's/^/| /' conftest.$ac_ext >&5 13398 13399 eval "$as_ac_var=no" 13400fi 13401 13402rm -rf conftest.dSYM 13403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13404 conftest$ac_exeext conftest.$ac_ext 13405fi 13406ac_res=`eval 'as_val=${'$as_ac_var'} 13407 $as_echo "$as_val"'` 13408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13409$as_echo "$ac_res" >&6; } 13410as_val=`eval 'as_val=${'$as_ac_var'} 13411 $as_echo "$as_val"'` 13412 if test "x$as_val" = x""yes; then 13413 cat >>confdefs.h <<_ACEOF 13414#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13415_ACEOF 13416 13417fi 13418done 13419 13420 13421if test $ac_cv_func_getspnam = yes; then 13422 { $as_echo "$as_me:$LINENO: checking if getpwnam_r/getspnam_r take 5 arguments" >&5 13423$as_echo_n "checking if getpwnam_r/getspnam_r take 5 arguments... " >&6; } 13424 cat >conftest.$ac_ext <<_ACEOF 13425/* confdefs.h. */ 13426_ACEOF 13427cat confdefs.h >>conftest.$ac_ext 13428cat >>conftest.$ac_ext <<_ACEOF 13429/* end confdefs.h. */ 13430 13431#include <sys/types.h> 13432#include <pwd.h> 13433#include <shadow.h> 13434 13435int 13436main () 13437{ 13438 13439struct passwd *pw; 13440struct passwd pwbuf; 13441char pwdata[512]; 13442(void) getpwnam_r("bin", &pwbuf, pwdata, sizeof(pwdata), &pw); 13443 13444 ; 13445 return 0; 13446} 13447_ACEOF 13448rm -f conftest.$ac_objext 13449if { (ac_try="$ac_compile" 13450case "(($ac_try" in 13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13452 *) ac_try_echo=$ac_try;; 13453esac 13454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13455$as_echo "$ac_try_echo") >&5 13456 (eval "$ac_compile") 2>conftest.er1 13457 ac_status=$? 13458 grep -v '^ *+' conftest.er1 >conftest.err 13459 rm -f conftest.er1 13460 cat conftest.err >&5 13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13462 (exit $ac_status); } && { 13463 test -z "$ac_c_werror_flag" || 13464 test ! -s conftest.err 13465 } && test -s conftest.$ac_objext; then 13466 { $as_echo "$as_me:$LINENO: result: yes" >&5 13467$as_echo "yes" >&6; } 13468 13469cat >>confdefs.h <<\_ACEOF 13470#define GETXXNAM_R_5ARG 1 13471_ACEOF 13472 13473else 13474 $as_echo "$as_me: failed program was:" >&5 13475sed 's/^/| /' conftest.$ac_ext >&5 13476 13477 { $as_echo "$as_me:$LINENO: result: no" >&5 13478$as_echo "no" >&6; } 13479 13480fi 13481 13482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13483fi 13484 13485GETADDRINFOOBJS="" 13486sasl_cv_getaddrinfo=no 13487 13488{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 13489$as_echo_n "checking for getaddrinfo... " >&6; } 13490if test "${ac_cv_func_getaddrinfo+set}" = set; then 13491 $as_echo_n "(cached) " >&6 13492else 13493 cat >conftest.$ac_ext <<_ACEOF 13494/* confdefs.h. */ 13495_ACEOF 13496cat confdefs.h >>conftest.$ac_ext 13497cat >>conftest.$ac_ext <<_ACEOF 13498/* end confdefs.h. */ 13499/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 13500 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13501#define getaddrinfo innocuous_getaddrinfo 13502 13503/* System header to define __stub macros and hopefully few prototypes, 13504 which can conflict with char getaddrinfo (); below. 13505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13506 <limits.h> exists even on freestanding compilers. */ 13507 13508#ifdef __STDC__ 13509# include <limits.h> 13510#else 13511# include <assert.h> 13512#endif 13513 13514#undef getaddrinfo 13515 13516/* Override any GCC internal prototype to avoid an error. 13517 Use char because int might match the return type of a GCC 13518 builtin and then its argument prototype would still apply. */ 13519#ifdef __cplusplus 13520extern "C" 13521#endif 13522char getaddrinfo (); 13523/* The GNU C library defines this for functions which it implements 13524 to always fail with ENOSYS. Some functions are actually named 13525 something starting with __ and the normal name is an alias. */ 13526#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 13527choke me 13528#endif 13529 13530int 13531main () 13532{ 13533return getaddrinfo (); 13534 ; 13535 return 0; 13536} 13537_ACEOF 13538rm -f conftest.$ac_objext conftest$ac_exeext 13539if { (ac_try="$ac_link" 13540case "(($ac_try" in 13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13542 *) ac_try_echo=$ac_try;; 13543esac 13544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13545$as_echo "$ac_try_echo") >&5 13546 (eval "$ac_link") 2>conftest.er1 13547 ac_status=$? 13548 grep -v '^ *+' conftest.er1 >conftest.err 13549 rm -f conftest.er1 13550 cat conftest.err >&5 13551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13552 (exit $ac_status); } && { 13553 test -z "$ac_c_werror_flag" || 13554 test ! -s conftest.err 13555 } && test -s conftest$ac_exeext && { 13556 test "$cross_compiling" = yes || 13557 $as_test_x conftest$ac_exeext 13558 }; then 13559 ac_cv_func_getaddrinfo=yes 13560else 13561 $as_echo "$as_me: failed program was:" >&5 13562sed 's/^/| /' conftest.$ac_ext >&5 13563 13564 ac_cv_func_getaddrinfo=no 13565fi 13566 13567rm -rf conftest.dSYM 13568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13569 conftest$ac_exeext conftest.$ac_ext 13570fi 13571{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 13572$as_echo "$ac_cv_func_getaddrinfo" >&6; } 13573if test "x$ac_cv_func_getaddrinfo" = x""yes; then 13574 ac_cv_lib_socket_getaddrinfo=no 13575 ac_cv_lib_inet6_getaddrinfo=no 13576 13577else 13578 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lsocket" >&5 13579$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; } 13580if test "${ac_cv_lib_socket_getaddrinfo+set}" = set; then 13581 $as_echo_n "(cached) " >&6 13582else 13583 ac_check_lib_save_LIBS=$LIBS 13584LIBS="-lsocket $LIBS" 13585cat >conftest.$ac_ext <<_ACEOF 13586/* confdefs.h. */ 13587_ACEOF 13588cat confdefs.h >>conftest.$ac_ext 13589cat >>conftest.$ac_ext <<_ACEOF 13590/* end confdefs.h. */ 13591 13592/* Override any GCC internal prototype to avoid an error. 13593 Use char because int might match the return type of a GCC 13594 builtin and then its argument prototype would still apply. */ 13595#ifdef __cplusplus 13596extern "C" 13597#endif 13598char getaddrinfo (); 13599int 13600main () 13601{ 13602return getaddrinfo (); 13603 ; 13604 return 0; 13605} 13606_ACEOF 13607rm -f conftest.$ac_objext conftest$ac_exeext 13608if { (ac_try="$ac_link" 13609case "(($ac_try" in 13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13611 *) ac_try_echo=$ac_try;; 13612esac 13613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13614$as_echo "$ac_try_echo") >&5 13615 (eval "$ac_link") 2>conftest.er1 13616 ac_status=$? 13617 grep -v '^ *+' conftest.er1 >conftest.err 13618 rm -f conftest.er1 13619 cat conftest.err >&5 13620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13621 (exit $ac_status); } && { 13622 test -z "$ac_c_werror_flag" || 13623 test ! -s conftest.err 13624 } && test -s conftest$ac_exeext && { 13625 test "$cross_compiling" = yes || 13626 $as_test_x conftest$ac_exeext 13627 }; then 13628 ac_cv_lib_socket_getaddrinfo=yes 13629else 13630 $as_echo "$as_me: failed program was:" >&5 13631sed 's/^/| /' conftest.$ac_ext >&5 13632 13633 ac_cv_lib_socket_getaddrinfo=no 13634fi 13635 13636rm -rf conftest.dSYM 13637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13638 conftest$ac_exeext conftest.$ac_ext 13639LIBS=$ac_check_lib_save_LIBS 13640fi 13641{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getaddrinfo" >&5 13642$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; } 13643if test "x$ac_cv_lib_socket_getaddrinfo" = x""yes; then 13644 LIBS="$LIBS -lsocket" 13645 ac_cv_lib_inet6_getaddrinfo=no 13646 13647else 13648 { $as_echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5 13649$as_echo_n "checking whether your system has IPv6 directory... " >&6; } 13650 if test "${ipv6_cv_dir+set}" = set; then 13651 $as_echo_n "(cached) " >&6 13652else 13653 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 13654 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 13655 break 13656 fi 13657 done 13658fi 13659 { $as_echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5 13660$as_echo "$ipv6_cv_dir" >&6; } 13661 if test $ipv6_cv_dir = no; then 13662 ac_cv_lib_inet6_getaddrinfo=no 13663 else 13664 if test x$ipv6_libinet6 = x; then 13665 ipv6_libinet6=no 13666 SAVELDFLAGS="$LDFLAGS" 13667 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 13668 fi 13669 { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5 13670$as_echo_n "checking for getaddrinfo in -linet6... " >&6; } 13671if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then 13672 $as_echo_n "(cached) " >&6 13673else 13674 ac_check_lib_save_LIBS=$LIBS 13675LIBS="-linet6 $LIBS" 13676cat >conftest.$ac_ext <<_ACEOF 13677/* confdefs.h. */ 13678_ACEOF 13679cat confdefs.h >>conftest.$ac_ext 13680cat >>conftest.$ac_ext <<_ACEOF 13681/* end confdefs.h. */ 13682 13683/* Override any GCC internal prototype to avoid an error. 13684 Use char because int might match the return type of a GCC 13685 builtin and then its argument prototype would still apply. */ 13686#ifdef __cplusplus 13687extern "C" 13688#endif 13689char getaddrinfo (); 13690int 13691main () 13692{ 13693return getaddrinfo (); 13694 ; 13695 return 0; 13696} 13697_ACEOF 13698rm -f conftest.$ac_objext conftest$ac_exeext 13699if { (ac_try="$ac_link" 13700case "(($ac_try" in 13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13702 *) ac_try_echo=$ac_try;; 13703esac 13704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13705$as_echo "$ac_try_echo") >&5 13706 (eval "$ac_link") 2>conftest.er1 13707 ac_status=$? 13708 grep -v '^ *+' conftest.er1 >conftest.err 13709 rm -f conftest.er1 13710 cat conftest.err >&5 13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13712 (exit $ac_status); } && { 13713 test -z "$ac_c_werror_flag" || 13714 test ! -s conftest.err 13715 } && test -s conftest$ac_exeext && { 13716 test "$cross_compiling" = yes || 13717 $as_test_x conftest$ac_exeext 13718 }; then 13719 ac_cv_lib_inet6_getaddrinfo=yes 13720else 13721 $as_echo "$as_me: failed program was:" >&5 13722sed 's/^/| /' conftest.$ac_ext >&5 13723 13724 ac_cv_lib_inet6_getaddrinfo=no 13725fi 13726 13727rm -rf conftest.dSYM 13728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13729 conftest$ac_exeext conftest.$ac_ext 13730LIBS=$ac_check_lib_save_LIBS 13731fi 13732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5 13733$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; } 13734if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then 13735 if test $ipv6_libinet6 = no; then 13736 ipv6_libinet6=yes 13737 LIBS="$LIBS -linet6" 13738 fi 13739fi 13740 if test $ipv6_libinet6 = no; then 13741 LDFLAGS="$SAVELDFLAGS" 13742 fi 13743 fi 13744fi 13745 13746fi 13747ipv6_cv_getaddrinfo=no 13748if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \ 13749 -o $ac_cv_lib_inet6_getaddrinfo = yes 13750then 13751 ipv6_cv_getaddrinfo=yes 13752fi 13753if test $ipv6_cv_getaddrinfo = no; then 13754 if test getaddrinfo = getaddrinfo; then 13755 for ipv6_cv_pfx in o n; do 13756 cat >conftest.$ac_ext <<_ACEOF 13757/* confdefs.h. */ 13758_ACEOF 13759cat confdefs.h >>conftest.$ac_ext 13760cat >>conftest.$ac_ext <<_ACEOF 13761/* end confdefs.h. */ 13762#include <netdb.h> 13763 13764_ACEOF 13765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13766 $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then 13767 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh` 13768{ $as_echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getaddrinfo" >&5 13769$as_echo_n "checking for ${ipv6_cv_pfx}getaddrinfo... " >&6; } 13770if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13771 $as_echo_n "(cached) " >&6 13772else 13773 cat >conftest.$ac_ext <<_ACEOF 13774/* confdefs.h. */ 13775_ACEOF 13776cat confdefs.h >>conftest.$ac_ext 13777cat >>conftest.$ac_ext <<_ACEOF 13778/* end confdefs.h. */ 13779/* Define ${ipv6_cv_pfx}getaddrinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getaddrinfo. 13780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13781#define ${ipv6_cv_pfx}getaddrinfo innocuous_${ipv6_cv_pfx}getaddrinfo 13782 13783/* System header to define __stub macros and hopefully few prototypes, 13784 which can conflict with char ${ipv6_cv_pfx}getaddrinfo (); below. 13785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13786 <limits.h> exists even on freestanding compilers. */ 13787 13788#ifdef __STDC__ 13789# include <limits.h> 13790#else 13791# include <assert.h> 13792#endif 13793 13794#undef ${ipv6_cv_pfx}getaddrinfo 13795 13796/* Override any GCC internal prototype to avoid an error. 13797 Use char because int might match the return type of a GCC 13798 builtin and then its argument prototype would still apply. */ 13799#ifdef __cplusplus 13800extern "C" 13801#endif 13802char ${ipv6_cv_pfx}getaddrinfo (); 13803/* The GNU C library defines this for functions which it implements 13804 to always fail with ENOSYS. Some functions are actually named 13805 something starting with __ and the normal name is an alias. */ 13806#if defined __stub_${ipv6_cv_pfx}getaddrinfo || defined __stub___${ipv6_cv_pfx}getaddrinfo 13807choke me 13808#endif 13809 13810int 13811main () 13812{ 13813return ${ipv6_cv_pfx}getaddrinfo (); 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818rm -f conftest.$ac_objext conftest$ac_exeext 13819if { (ac_try="$ac_link" 13820case "(($ac_try" in 13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13822 *) ac_try_echo=$ac_try;; 13823esac 13824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13825$as_echo "$ac_try_echo") >&5 13826 (eval "$ac_link") 2>conftest.er1 13827 ac_status=$? 13828 grep -v '^ *+' conftest.er1 >conftest.err 13829 rm -f conftest.er1 13830 cat conftest.err >&5 13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); } && { 13833 test -z "$ac_c_werror_flag" || 13834 test ! -s conftest.err 13835 } && test -s conftest$ac_exeext && { 13836 test "$cross_compiling" = yes || 13837 $as_test_x conftest$ac_exeext 13838 }; then 13839 eval "$as_ac_var=yes" 13840else 13841 $as_echo "$as_me: failed program was:" >&5 13842sed 's/^/| /' conftest.$ac_ext >&5 13843 13844 eval "$as_ac_var=no" 13845fi 13846 13847rm -rf conftest.dSYM 13848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13849 conftest$ac_exeext conftest.$ac_ext 13850fi 13851ac_res=`eval 'as_val=${'$as_ac_var'} 13852 $as_echo "$as_val"'` 13853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 13854$as_echo "$ac_res" >&6; } 13855as_val=`eval 'as_val=${'$as_ac_var'} 13856 $as_echo "$as_val"'` 13857 13858fi 13859rm -f conftest* 13860 13861 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then 13862 13863cat >>confdefs.h <<\_ACEOF 13864#define HAVE_GETADDRINFO /**/ 13865_ACEOF 13866 13867 ipv6_cv_getaddrinfo=yes 13868 break 13869 fi 13870 done 13871 fi 13872fi 13873if test $ipv6_cv_getaddrinfo = yes; then 13874 13875cat >>confdefs.h <<\_ACEOF 13876#define HAVE_GETADDRINFO /**/ 13877_ACEOF 13878 13879else 13880 sasl_cv_getaddrinfo=yes 13881fi 13882if test $sasl_cv_getaddrinfo = yes; then 13883 case " $LIBOBJS " in 13884 *" getaddrinfo.$ac_objext "* ) ;; 13885 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 13886 ;; 13887esac 13888 13889fi 13890 13891GETNAMEINFOOBJS="" 13892sasl_cv_getnameinfo=no 13893 13894{ $as_echo "$as_me:$LINENO: checking for getnameinfo" >&5 13895$as_echo_n "checking for getnameinfo... " >&6; } 13896if test "${ac_cv_func_getnameinfo+set}" = set; then 13897 $as_echo_n "(cached) " >&6 13898else 13899 cat >conftest.$ac_ext <<_ACEOF 13900/* confdefs.h. */ 13901_ACEOF 13902cat confdefs.h >>conftest.$ac_ext 13903cat >>conftest.$ac_ext <<_ACEOF 13904/* end confdefs.h. */ 13905/* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo. 13906 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13907#define getnameinfo innocuous_getnameinfo 13908 13909/* System header to define __stub macros and hopefully few prototypes, 13910 which can conflict with char getnameinfo (); below. 13911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13912 <limits.h> exists even on freestanding compilers. */ 13913 13914#ifdef __STDC__ 13915# include <limits.h> 13916#else 13917# include <assert.h> 13918#endif 13919 13920#undef getnameinfo 13921 13922/* Override any GCC internal prototype to avoid an error. 13923 Use char because int might match the return type of a GCC 13924 builtin and then its argument prototype would still apply. */ 13925#ifdef __cplusplus 13926extern "C" 13927#endif 13928char getnameinfo (); 13929/* The GNU C library defines this for functions which it implements 13930 to always fail with ENOSYS. Some functions are actually named 13931 something starting with __ and the normal name is an alias. */ 13932#if defined __stub_getnameinfo || defined __stub___getnameinfo 13933choke me 13934#endif 13935 13936int 13937main () 13938{ 13939return getnameinfo (); 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944rm -f conftest.$ac_objext conftest$ac_exeext 13945if { (ac_try="$ac_link" 13946case "(($ac_try" in 13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13948 *) ac_try_echo=$ac_try;; 13949esac 13950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13951$as_echo "$ac_try_echo") >&5 13952 (eval "$ac_link") 2>conftest.er1 13953 ac_status=$? 13954 grep -v '^ *+' conftest.er1 >conftest.err 13955 rm -f conftest.er1 13956 cat conftest.err >&5 13957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13958 (exit $ac_status); } && { 13959 test -z "$ac_c_werror_flag" || 13960 test ! -s conftest.err 13961 } && test -s conftest$ac_exeext && { 13962 test "$cross_compiling" = yes || 13963 $as_test_x conftest$ac_exeext 13964 }; then 13965 ac_cv_func_getnameinfo=yes 13966else 13967 $as_echo "$as_me: failed program was:" >&5 13968sed 's/^/| /' conftest.$ac_ext >&5 13969 13970 ac_cv_func_getnameinfo=no 13971fi 13972 13973rm -rf conftest.dSYM 13974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13975 conftest$ac_exeext conftest.$ac_ext 13976fi 13977{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5 13978$as_echo "$ac_cv_func_getnameinfo" >&6; } 13979if test "x$ac_cv_func_getnameinfo" = x""yes; then 13980 ac_cv_lib_socket_getnameinfo=no 13981 ac_cv_lib_inet6_getnameinfo=no 13982 13983else 13984 { $as_echo "$as_me:$LINENO: checking for getnameinfo in -lsocket" >&5 13985$as_echo_n "checking for getnameinfo in -lsocket... " >&6; } 13986if test "${ac_cv_lib_socket_getnameinfo+set}" = set; then 13987 $as_echo_n "(cached) " >&6 13988else 13989 ac_check_lib_save_LIBS=$LIBS 13990LIBS="-lsocket $LIBS" 13991cat >conftest.$ac_ext <<_ACEOF 13992/* confdefs.h. */ 13993_ACEOF 13994cat confdefs.h >>conftest.$ac_ext 13995cat >>conftest.$ac_ext <<_ACEOF 13996/* end confdefs.h. */ 13997 13998/* Override any GCC internal prototype to avoid an error. 13999 Use char because int might match the return type of a GCC 14000 builtin and then its argument prototype would still apply. */ 14001#ifdef __cplusplus 14002extern "C" 14003#endif 14004char getnameinfo (); 14005int 14006main () 14007{ 14008return getnameinfo (); 14009 ; 14010 return 0; 14011} 14012_ACEOF 14013rm -f conftest.$ac_objext conftest$ac_exeext 14014if { (ac_try="$ac_link" 14015case "(($ac_try" in 14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14017 *) ac_try_echo=$ac_try;; 14018esac 14019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14020$as_echo "$ac_try_echo") >&5 14021 (eval "$ac_link") 2>conftest.er1 14022 ac_status=$? 14023 grep -v '^ *+' conftest.er1 >conftest.err 14024 rm -f conftest.er1 14025 cat conftest.err >&5 14026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14027 (exit $ac_status); } && { 14028 test -z "$ac_c_werror_flag" || 14029 test ! -s conftest.err 14030 } && test -s conftest$ac_exeext && { 14031 test "$cross_compiling" = yes || 14032 $as_test_x conftest$ac_exeext 14033 }; then 14034 ac_cv_lib_socket_getnameinfo=yes 14035else 14036 $as_echo "$as_me: failed program was:" >&5 14037sed 's/^/| /' conftest.$ac_ext >&5 14038 14039 ac_cv_lib_socket_getnameinfo=no 14040fi 14041 14042rm -rf conftest.dSYM 14043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14044 conftest$ac_exeext conftest.$ac_ext 14045LIBS=$ac_check_lib_save_LIBS 14046fi 14047{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getnameinfo" >&5 14048$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; } 14049if test "x$ac_cv_lib_socket_getnameinfo" = x""yes; then 14050 LIBS="$LIBS -lsocket" 14051 ac_cv_lib_inet6_getnameinfo=no 14052 14053else 14054 { $as_echo "$as_me:$LINENO: checking whether your system has IPv6 directory" >&5 14055$as_echo_n "checking whether your system has IPv6 directory... " >&6; } 14056 if test "${ipv6_cv_dir+set}" = set; then 14057 $as_echo_n "(cached) " >&6 14058else 14059 for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do 14060 if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then 14061 break 14062 fi 14063 done 14064fi 14065 { $as_echo "$as_me:$LINENO: result: $ipv6_cv_dir" >&5 14066$as_echo "$ipv6_cv_dir" >&6; } 14067 if test $ipv6_cv_dir = no; then 14068 ac_cv_lib_inet6_getnameinfo=no 14069 else 14070 if test x$ipv6_libinet6 = x; then 14071 ipv6_libinet6=no 14072 SAVELDFLAGS="$LDFLAGS" 14073 LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib" 14074 fi 14075 { $as_echo "$as_me:$LINENO: checking for getnameinfo in -linet6" >&5 14076$as_echo_n "checking for getnameinfo in -linet6... " >&6; } 14077if test "${ac_cv_lib_inet6_getnameinfo+set}" = set; then 14078 $as_echo_n "(cached) " >&6 14079else 14080 ac_check_lib_save_LIBS=$LIBS 14081LIBS="-linet6 $LIBS" 14082cat >conftest.$ac_ext <<_ACEOF 14083/* confdefs.h. */ 14084_ACEOF 14085cat confdefs.h >>conftest.$ac_ext 14086cat >>conftest.$ac_ext <<_ACEOF 14087/* end confdefs.h. */ 14088 14089/* Override any GCC internal prototype to avoid an error. 14090 Use char because int might match the return type of a GCC 14091 builtin and then its argument prototype would still apply. */ 14092#ifdef __cplusplus 14093extern "C" 14094#endif 14095char getnameinfo (); 14096int 14097main () 14098{ 14099return getnameinfo (); 14100 ; 14101 return 0; 14102} 14103_ACEOF 14104rm -f conftest.$ac_objext conftest$ac_exeext 14105if { (ac_try="$ac_link" 14106case "(($ac_try" in 14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14108 *) ac_try_echo=$ac_try;; 14109esac 14110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14111$as_echo "$ac_try_echo") >&5 14112 (eval "$ac_link") 2>conftest.er1 14113 ac_status=$? 14114 grep -v '^ *+' conftest.er1 >conftest.err 14115 rm -f conftest.er1 14116 cat conftest.err >&5 14117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14118 (exit $ac_status); } && { 14119 test -z "$ac_c_werror_flag" || 14120 test ! -s conftest.err 14121 } && test -s conftest$ac_exeext && { 14122 test "$cross_compiling" = yes || 14123 $as_test_x conftest$ac_exeext 14124 }; then 14125 ac_cv_lib_inet6_getnameinfo=yes 14126else 14127 $as_echo "$as_me: failed program was:" >&5 14128sed 's/^/| /' conftest.$ac_ext >&5 14129 14130 ac_cv_lib_inet6_getnameinfo=no 14131fi 14132 14133rm -rf conftest.dSYM 14134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14135 conftest$ac_exeext conftest.$ac_ext 14136LIBS=$ac_check_lib_save_LIBS 14137fi 14138{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getnameinfo" >&5 14139$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; } 14140if test "x$ac_cv_lib_inet6_getnameinfo" = x""yes; then 14141 if test $ipv6_libinet6 = no; then 14142 ipv6_libinet6=yes 14143 LIBS="$LIBS -linet6" 14144 fi 14145fi 14146 if test $ipv6_libinet6 = no; then 14147 LDFLAGS="$SAVELDFLAGS" 14148 fi 14149 fi 14150fi 14151 14152fi 14153ipv6_cv_getnameinfo=no 14154if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \ 14155 -o $ac_cv_lib_inet6_getnameinfo = yes 14156then 14157 ipv6_cv_getnameinfo=yes 14158fi 14159if test $ipv6_cv_getnameinfo = no; then 14160 if test getnameinfo = getaddrinfo; then 14161 for ipv6_cv_pfx in o n; do 14162 cat >conftest.$ac_ext <<_ACEOF 14163/* confdefs.h. */ 14164_ACEOF 14165cat confdefs.h >>conftest.$ac_ext 14166cat >>conftest.$ac_ext <<_ACEOF 14167/* end confdefs.h. */ 14168#include <netdb.h> 14169 14170_ACEOF 14171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14172 $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then 14173 as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh` 14174{ $as_echo "$as_me:$LINENO: checking for ${ipv6_cv_pfx}getnameinfo" >&5 14175$as_echo_n "checking for ${ipv6_cv_pfx}getnameinfo... " >&6; } 14176if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14177 $as_echo_n "(cached) " >&6 14178else 14179 cat >conftest.$ac_ext <<_ACEOF 14180/* confdefs.h. */ 14181_ACEOF 14182cat confdefs.h >>conftest.$ac_ext 14183cat >>conftest.$ac_ext <<_ACEOF 14184/* end confdefs.h. */ 14185/* Define ${ipv6_cv_pfx}getnameinfo to an innocuous variant, in case <limits.h> declares ${ipv6_cv_pfx}getnameinfo. 14186 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14187#define ${ipv6_cv_pfx}getnameinfo innocuous_${ipv6_cv_pfx}getnameinfo 14188 14189/* System header to define __stub macros and hopefully few prototypes, 14190 which can conflict with char ${ipv6_cv_pfx}getnameinfo (); below. 14191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14192 <limits.h> exists even on freestanding compilers. */ 14193 14194#ifdef __STDC__ 14195# include <limits.h> 14196#else 14197# include <assert.h> 14198#endif 14199 14200#undef ${ipv6_cv_pfx}getnameinfo 14201 14202/* Override any GCC internal prototype to avoid an error. 14203 Use char because int might match the return type of a GCC 14204 builtin and then its argument prototype would still apply. */ 14205#ifdef __cplusplus 14206extern "C" 14207#endif 14208char ${ipv6_cv_pfx}getnameinfo (); 14209/* The GNU C library defines this for functions which it implements 14210 to always fail with ENOSYS. Some functions are actually named 14211 something starting with __ and the normal name is an alias. */ 14212#if defined __stub_${ipv6_cv_pfx}getnameinfo || defined __stub___${ipv6_cv_pfx}getnameinfo 14213choke me 14214#endif 14215 14216int 14217main () 14218{ 14219return ${ipv6_cv_pfx}getnameinfo (); 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224rm -f conftest.$ac_objext conftest$ac_exeext 14225if { (ac_try="$ac_link" 14226case "(($ac_try" in 14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14228 *) ac_try_echo=$ac_try;; 14229esac 14230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14231$as_echo "$ac_try_echo") >&5 14232 (eval "$ac_link") 2>conftest.er1 14233 ac_status=$? 14234 grep -v '^ *+' conftest.er1 >conftest.err 14235 rm -f conftest.er1 14236 cat conftest.err >&5 14237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14238 (exit $ac_status); } && { 14239 test -z "$ac_c_werror_flag" || 14240 test ! -s conftest.err 14241 } && test -s conftest$ac_exeext && { 14242 test "$cross_compiling" = yes || 14243 $as_test_x conftest$ac_exeext 14244 }; then 14245 eval "$as_ac_var=yes" 14246else 14247 $as_echo "$as_me: failed program was:" >&5 14248sed 's/^/| /' conftest.$ac_ext >&5 14249 14250 eval "$as_ac_var=no" 14251fi 14252 14253rm -rf conftest.dSYM 14254rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14255 conftest$ac_exeext conftest.$ac_ext 14256fi 14257ac_res=`eval 'as_val=${'$as_ac_var'} 14258 $as_echo "$as_val"'` 14259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 14260$as_echo "$ac_res" >&6; } 14261as_val=`eval 'as_val=${'$as_ac_var'} 14262 $as_echo "$as_val"'` 14263 14264fi 14265rm -f conftest* 14266 14267 if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then 14268 14269cat >>confdefs.h <<\_ACEOF 14270#define HAVE_GETADDRINFO /**/ 14271_ACEOF 14272 14273 ipv6_cv_getnameinfo=yes 14274 break 14275 fi 14276 done 14277 fi 14278fi 14279if test $ipv6_cv_getnameinfo = yes; then 14280 14281cat >>confdefs.h <<\_ACEOF 14282#define HAVE_GETNAMEINFO /**/ 14283_ACEOF 14284 14285else 14286 sasl_cv_getnameinfo=yes 14287fi 14288if test $sasl_cv_getnameinfo = yes; then 14289 case " $LIBOBJS " in 14290 *" getnameinfo.$ac_objext "* ) ;; 14291 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 14292 ;; 14293esac 14294 14295fi 14296 14297 14298{ $as_echo "$as_me:$LINENO: checking whether you have ss_family in struct sockaddr_storage" >&5 14299$as_echo_n "checking whether you have ss_family in struct sockaddr_storage... " >&6; } 14300if test "${ipv6_cv_ss_family+set}" = set; then 14301 $as_echo_n "(cached) " >&6 14302else 14303 cat >conftest.$ac_ext <<_ACEOF 14304/* confdefs.h. */ 14305_ACEOF 14306cat confdefs.h >>conftest.$ac_ext 14307cat >>conftest.$ac_ext <<_ACEOF 14308/* end confdefs.h. */ 14309#include <sys/types.h> 14310#include <sys/socket.h> 14311int 14312main () 14313{ 14314struct sockaddr_storage ss; int i = ss.ss_family; 14315 ; 14316 return 0; 14317} 14318_ACEOF 14319rm -f conftest.$ac_objext 14320if { (ac_try="$ac_compile" 14321case "(($ac_try" in 14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14323 *) ac_try_echo=$ac_try;; 14324esac 14325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14326$as_echo "$ac_try_echo") >&5 14327 (eval "$ac_compile") 2>conftest.er1 14328 ac_status=$? 14329 grep -v '^ *+' conftest.er1 >conftest.err 14330 rm -f conftest.er1 14331 cat conftest.err >&5 14332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14333 (exit $ac_status); } && { 14334 test -z "$ac_c_werror_flag" || 14335 test ! -s conftest.err 14336 } && test -s conftest.$ac_objext; then 14337 ipv6_cv_ss_family=yes 14338else 14339 $as_echo "$as_me: failed program was:" >&5 14340sed 's/^/| /' conftest.$ac_ext >&5 14341 14342 ipv6_cv_ss_family=no 14343fi 14344 14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14346fi 14347if test $ipv6_cv_ss_family = yes; then 14348 14349cat >>confdefs.h <<\_ACEOF 14350#define HAVE_SS_FAMILY /**/ 14351_ACEOF 14352 14353else 14354 : 14355fi 14356{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_ss_family" >&5 14357$as_echo "$ipv6_cv_ss_family" >&6; } 14358 14359{ $as_echo "$as_me:$LINENO: checking whether you have sa_len in struct sockaddr" >&5 14360$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; } 14361if test "${ipv6_cv_sa_len+set}" = set; then 14362 $as_echo_n "(cached) " >&6 14363else 14364 cat >conftest.$ac_ext <<_ACEOF 14365/* confdefs.h. */ 14366_ACEOF 14367cat confdefs.h >>conftest.$ac_ext 14368cat >>conftest.$ac_ext <<_ACEOF 14369/* end confdefs.h. */ 14370#include <sys/types.h> 14371#include <sys/socket.h> 14372int 14373main () 14374{ 14375struct sockaddr sa; int i = sa.sa_len; 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380rm -f conftest.$ac_objext 14381if { (ac_try="$ac_compile" 14382case "(($ac_try" in 14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14384 *) ac_try_echo=$ac_try;; 14385esac 14386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14387$as_echo "$ac_try_echo") >&5 14388 (eval "$ac_compile") 2>conftest.er1 14389 ac_status=$? 14390 grep -v '^ *+' conftest.er1 >conftest.err 14391 rm -f conftest.er1 14392 cat conftest.err >&5 14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14394 (exit $ac_status); } && { 14395 test -z "$ac_c_werror_flag" || 14396 test ! -s conftest.err 14397 } && test -s conftest.$ac_objext; then 14398 ipv6_cv_sa_len=yes 14399else 14400 $as_echo "$as_me: failed program was:" >&5 14401sed 's/^/| /' conftest.$ac_ext >&5 14402 14403 ipv6_cv_sa_len=no 14404fi 14405 14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14407fi 14408if test $ipv6_cv_sa_len = yes; then 14409 14410cat >>confdefs.h <<\_ACEOF 14411#define HAVE_SOCKADDR_SA_LEN /**/ 14412_ACEOF 14413 14414else 14415 : 14416fi 14417{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_sa_len" >&5 14418$as_echo "$ipv6_cv_sa_len" >&6; } 14419 14420{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 14421$as_echo_n "checking for socklen_t... " >&6; } 14422if test "${ipv6_cv_socklen_t+set}" = set; then 14423 $as_echo_n "(cached) " >&6 14424else 14425 cat >conftest.$ac_ext <<_ACEOF 14426/* confdefs.h. */ 14427_ACEOF 14428cat confdefs.h >>conftest.$ac_ext 14429cat >>conftest.$ac_ext <<_ACEOF 14430/* end confdefs.h. */ 14431#include <sys/types.h> 14432#include <sys/socket.h> 14433int 14434main () 14435{ 14436socklen_t len = 0; 14437 ; 14438 return 0; 14439} 14440_ACEOF 14441rm -f conftest.$ac_objext conftest$ac_exeext 14442if { (ac_try="$ac_link" 14443case "(($ac_try" in 14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14445 *) ac_try_echo=$ac_try;; 14446esac 14447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14448$as_echo "$ac_try_echo") >&5 14449 (eval "$ac_link") 2>conftest.er1 14450 ac_status=$? 14451 grep -v '^ *+' conftest.er1 >conftest.err 14452 rm -f conftest.er1 14453 cat conftest.err >&5 14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14455 (exit $ac_status); } && { 14456 test -z "$ac_c_werror_flag" || 14457 test ! -s conftest.err 14458 } && test -s conftest$ac_exeext && { 14459 test "$cross_compiling" = yes || 14460 $as_test_x conftest$ac_exeext 14461 }; then 14462 ipv6_cv_socklen_t=yes 14463else 14464 $as_echo "$as_me: failed program was:" >&5 14465sed 's/^/| /' conftest.$ac_ext >&5 14466 14467 ipv6_cv_socklen_t=no 14468fi 14469 14470rm -rf conftest.dSYM 14471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14472 conftest$ac_exeext conftest.$ac_ext 14473fi 14474if test $ipv6_cv_socklen_t = yes; then 14475 14476cat >>confdefs.h <<\_ACEOF 14477#define HAVE_SOCKLEN_T /**/ 14478_ACEOF 14479 14480else 14481 : 14482fi 14483{ $as_echo "$as_me:$LINENO: result: $ipv6_cv_socklen_t" >&5 14484$as_echo "$ipv6_cv_socklen_t" >&6; } 14485 14486cat >conftest.$ac_ext <<_ACEOF 14487/* confdefs.h. */ 14488_ACEOF 14489cat confdefs.h >>conftest.$ac_ext 14490cat >>conftest.$ac_ext <<_ACEOF 14491/* end confdefs.h. */ 14492#include <sys/socket.h> 14493 14494_ACEOF 14495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14496 $EGREP "sockaddr_storage" >/dev/null 2>&1; then 14497 14498cat >>confdefs.h <<\_ACEOF 14499#define HAVE_STRUCT_SOCKADDR_STORAGE /**/ 14500_ACEOF 14501 14502fi 14503rm -f conftest* 14504 14505 14506 14507 14508 14509 14510 14511 14512ac_config_headers="$ac_config_headers saslauthd.h" 14513 14514 14515ac_config_files="$ac_config_files Makefile" 14516 14517cat >confcache <<\_ACEOF 14518# This file is a shell script that caches the results of configure 14519# tests run on this system so they can be shared between configure 14520# scripts and configure runs, see configure's option --config-cache. 14521# It is not useful on other systems. If it contains results you don't 14522# want to keep, you may remove or edit it. 14523# 14524# config.status only pays attention to the cache file if you give it 14525# the --recheck option to rerun configure. 14526# 14527# `ac_cv_env_foo' variables (set or unset) will be overridden when 14528# loading this file, other *unset* `ac_cv_foo' will be assigned the 14529# following values. 14530 14531_ACEOF 14532 14533# The following way of writing the cache mishandles newlines in values, 14534# but we know of no workaround that is simple, portable, and efficient. 14535# So, we kill variables containing newlines. 14536# Ultrix sh set writes to stderr and can't be redirected directly, 14537# and sets the high bit in the cache file unless we assign to the vars. 14538( 14539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14540 eval ac_val=\$$ac_var 14541 case $ac_val in #( 14542 *${as_nl}*) 14543 case $ac_var in #( 14544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 14545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14546 esac 14547 case $ac_var in #( 14548 _ | IFS | as_nl) ;; #( 14549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14550 *) $as_unset $ac_var ;; 14551 esac ;; 14552 esac 14553 done 14554 14555 (set) 2>&1 | 14556 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14557 *${as_nl}ac_space=\ *) 14558 # `set' does not quote correctly, so add quotes (double-quote 14559 # substitution turns \\\\ into \\, and sed turns \\ into \). 14560 sed -n \ 14561 "s/'/'\\\\''/g; 14562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14563 ;; #( 14564 *) 14565 # `set' quotes correctly as required by POSIX, so do not add quotes. 14566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14567 ;; 14568 esac | 14569 sort 14570) | 14571 sed ' 14572 /^ac_cv_env_/b end 14573 t clear 14574 :clear 14575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14576 t end 14577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14578 :end' >>confcache 14579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14580 if test -w "$cache_file"; then 14581 test "x$cache_file" != "x/dev/null" && 14582 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 14583$as_echo "$as_me: updating cache $cache_file" >&6;} 14584 cat confcache >$cache_file 14585 else 14586 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 14587$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14588 fi 14589fi 14590rm -f confcache 14591 14592test "x$prefix" = xNONE && prefix=$ac_default_prefix 14593# Let make expand exec_prefix. 14594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14595 14596DEFS=-DHAVE_CONFIG_H 14597 14598ac_libobjs= 14599ac_ltlibobjs= 14600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14601 # 1. Remove the extension, and $U if already installed. 14602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14605 # will be set to the directory where LIBOBJS objects are built. 14606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 14608done 14609LIBOBJS=$ac_libobjs 14610 14611LTLIBOBJS=$ac_ltlibobjs 14612 14613 14614if test -z "${SASLAUTHD_TRUE}" && test -z "${SASLAUTHD_FALSE}"; then 14615 { { $as_echo "$as_me:$LINENO: error: conditional \"SASLAUTHD\" was never defined. 14616Usually this means the macro was only invoked conditionally." >&5 14617$as_echo "$as_me: error: conditional \"SASLAUTHD\" was never defined. 14618Usually this means the macro was only invoked conditionally." >&2;} 14619 { (exit 1); exit 1; }; } 14620fi 14621 if test -n "$EXEEXT"; then 14622 am__EXEEXT_TRUE= 14623 am__EXEEXT_FALSE='#' 14624else 14625 am__EXEEXT_TRUE='#' 14626 am__EXEEXT_FALSE= 14627fi 14628 14629if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14630 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 14631Usually this means the macro was only invoked conditionally." >&5 14632$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 14633Usually this means the macro was only invoked conditionally." >&2;} 14634 { (exit 1); exit 1; }; } 14635fi 14636if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14637 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 14638Usually this means the macro was only invoked conditionally." >&5 14639$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 14640Usually this means the macro was only invoked conditionally." >&2;} 14641 { (exit 1); exit 1; }; } 14642fi 14643 14644: ${CONFIG_STATUS=./config.status} 14645ac_write_fail=0 14646ac_clean_files_save=$ac_clean_files 14647ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14648{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14649$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14650cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14651#! $SHELL 14652# Generated by $as_me. 14653# Run this file to recreate the current configuration. 14654# Compiler output produced by configure, useful for debugging 14655# configure, is in config.log if it exists. 14656 14657debug=false 14658ac_cs_recheck=false 14659ac_cs_silent=false 14660SHELL=\${CONFIG_SHELL-$SHELL} 14661_ACEOF 14662 14663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14664## --------------------- ## 14665## M4sh Initialization. ## 14666## --------------------- ## 14667 14668# Be more Bourne compatible 14669DUALCASE=1; export DUALCASE # for MKS sh 14670if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14671 emulate sh 14672 NULLCMD=: 14673 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14674 # is contrary to our usage. Disable this feature. 14675 alias -g '${1+"$@"}'='"$@"' 14676 setopt NO_GLOB_SUBST 14677else 14678 case `(set -o) 2>/dev/null` in 14679 *posix*) set -o posix ;; 14680esac 14681 14682fi 14683 14684 14685 14686 14687# PATH needs CR 14688# Avoid depending upon Character Ranges. 14689as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14690as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14691as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14692as_cr_digits='0123456789' 14693as_cr_alnum=$as_cr_Letters$as_cr_digits 14694 14695as_nl=' 14696' 14697export as_nl 14698# Printing a long string crashes Solaris 7 /usr/bin/printf. 14699as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14700as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14701as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14702if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14703 as_echo='printf %s\n' 14704 as_echo_n='printf %s' 14705else 14706 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14707 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14708 as_echo_n='/usr/ucb/echo -n' 14709 else 14710 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14711 as_echo_n_body='eval 14712 arg=$1; 14713 case $arg in 14714 *"$as_nl"*) 14715 expr "X$arg" : "X\\(.*\\)$as_nl"; 14716 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14717 esac; 14718 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14719 ' 14720 export as_echo_n_body 14721 as_echo_n='sh -c $as_echo_n_body as_echo' 14722 fi 14723 export as_echo_body 14724 as_echo='sh -c $as_echo_body as_echo' 14725fi 14726 14727# The user is always right. 14728if test "${PATH_SEPARATOR+set}" != set; then 14729 PATH_SEPARATOR=: 14730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14731 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14732 PATH_SEPARATOR=';' 14733 } 14734fi 14735 14736# Support unset when possible. 14737if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14738 as_unset=unset 14739else 14740 as_unset=false 14741fi 14742 14743 14744# IFS 14745# We need space, tab and new line, in precisely that order. Quoting is 14746# there to prevent editors from complaining about space-tab. 14747# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14748# splitting by setting IFS to empty value.) 14749IFS=" "" $as_nl" 14750 14751# Find who we are. Look in the path if we contain no directory separator. 14752case $0 in 14753 *[\\/]* ) as_myself=$0 ;; 14754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14755for as_dir in $PATH 14756do 14757 IFS=$as_save_IFS 14758 test -z "$as_dir" && as_dir=. 14759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14760done 14761IFS=$as_save_IFS 14762 14763 ;; 14764esac 14765# We did not find ourselves, most probably we were run as `sh COMMAND' 14766# in which case we are not to be found in the path. 14767if test "x$as_myself" = x; then 14768 as_myself=$0 14769fi 14770if test ! -f "$as_myself"; then 14771 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14772 { (exit 1); exit 1; } 14773fi 14774 14775# Work around bugs in pre-3.0 UWIN ksh. 14776for as_var in ENV MAIL MAILPATH 14777do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 14778done 14779PS1='$ ' 14780PS2='> ' 14781PS4='+ ' 14782 14783# NLS nuisances. 14784LC_ALL=C 14785export LC_ALL 14786LANGUAGE=C 14787export LANGUAGE 14788 14789# Required to use basename. 14790if expr a : '\(a\)' >/dev/null 2>&1 && 14791 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14792 as_expr=expr 14793else 14794 as_expr=false 14795fi 14796 14797if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14798 as_basename=basename 14799else 14800 as_basename=false 14801fi 14802 14803 14804# Name of the executable. 14805as_me=`$as_basename -- "$0" || 14806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14807 X"$0" : 'X\(//\)$' \| \ 14808 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14809$as_echo X/"$0" | 14810 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14811 s//\1/ 14812 q 14813 } 14814 /^X\/\(\/\/\)$/{ 14815 s//\1/ 14816 q 14817 } 14818 /^X\/\(\/\).*/{ 14819 s//\1/ 14820 q 14821 } 14822 s/.*/./; q'` 14823 14824# CDPATH. 14825$as_unset CDPATH 14826 14827 14828 14829 as_lineno_1=$LINENO 14830 as_lineno_2=$LINENO 14831 test "x$as_lineno_1" != "x$as_lineno_2" && 14832 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 14833 14834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14835 # uniformly replaced by the line number. The first 'sed' inserts a 14836 # line-number line after each line using $LINENO; the second 'sed' 14837 # does the real work. The second script uses 'N' to pair each 14838 # line-number line with the line containing $LINENO, and appends 14839 # trailing '-' during substitution so that $LINENO is not a special 14840 # case at line end. 14841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14842 # scripts with optimization help from Paolo Bonzini. Blame Lee 14843 # E. McMahon (1931-1989) for sed's syntax. :-) 14844 sed -n ' 14845 p 14846 /[$]LINENO/= 14847 ' <$as_myself | 14848 sed ' 14849 s/[$]LINENO.*/&-/ 14850 t lineno 14851 b 14852 :lineno 14853 N 14854 :loop 14855 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 14856 t loop 14857 s/-\n.*// 14858 ' >$as_me.lineno && 14859 chmod +x "$as_me.lineno" || 14860 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 14861 { (exit 1); exit 1; }; } 14862 14863 # Don't try to exec as it changes $[0], causing all sort of problems 14864 # (the dirname of $[0] is not the place where we might find the 14865 # original and so on. Autoconf is especially sensitive to this). 14866 . "./$as_me.lineno" 14867 # Exit status is that of the last command. 14868 exit 14869} 14870 14871 14872if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14873 as_dirname=dirname 14874else 14875 as_dirname=false 14876fi 14877 14878ECHO_C= ECHO_N= ECHO_T= 14879case `echo -n x` in 14880-n*) 14881 case `echo 'x\c'` in 14882 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14883 *) ECHO_C='\c';; 14884 esac;; 14885*) 14886 ECHO_N='-n';; 14887esac 14888if expr a : '\(a\)' >/dev/null 2>&1 && 14889 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14890 as_expr=expr 14891else 14892 as_expr=false 14893fi 14894 14895rm -f conf$$ conf$$.exe conf$$.file 14896if test -d conf$$.dir; then 14897 rm -f conf$$.dir/conf$$.file 14898else 14899 rm -f conf$$.dir 14900 mkdir conf$$.dir 2>/dev/null 14901fi 14902if (echo >conf$$.file) 2>/dev/null; then 14903 if ln -s conf$$.file conf$$ 2>/dev/null; then 14904 as_ln_s='ln -s' 14905 # ... but there are two gotchas: 14906 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14907 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14908 # In both cases, we have to default to `cp -p'. 14909 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14910 as_ln_s='cp -p' 14911 elif ln conf$$.file conf$$ 2>/dev/null; then 14912 as_ln_s=ln 14913 else 14914 as_ln_s='cp -p' 14915 fi 14916else 14917 as_ln_s='cp -p' 14918fi 14919rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14920rmdir conf$$.dir 2>/dev/null 14921 14922if mkdir -p . 2>/dev/null; then 14923 as_mkdir_p=: 14924else 14925 test -d ./-p && rmdir ./-p 14926 as_mkdir_p=false 14927fi 14928 14929if test -x / >/dev/null 2>&1; then 14930 as_test_x='test -x' 14931else 14932 if ls -dL / >/dev/null 2>&1; then 14933 as_ls_L_option=L 14934 else 14935 as_ls_L_option= 14936 fi 14937 as_test_x=' 14938 eval sh -c '\'' 14939 if test -d "$1"; then 14940 test -d "$1/."; 14941 else 14942 case $1 in 14943 -*)set "./$1";; 14944 esac; 14945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14946 ???[sx]*):;;*)false;;esac;fi 14947 '\'' sh 14948 ' 14949fi 14950as_executable_p=$as_test_x 14951 14952# Sed expression to map a string onto a valid CPP name. 14953as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14954 14955# Sed expression to map a string onto a valid variable name. 14956as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14957 14958 14959exec 6>&1 14960 14961# Save the log message, to keep $[0] and so on meaningful, and to 14962# report actual input values of CONFIG_FILES etc. instead of their 14963# values after options handling. 14964ac_log=" 14965This file was extended by $as_me, which was 14966generated by GNU Autoconf 2.63. Invocation command line was 14967 14968 CONFIG_FILES = $CONFIG_FILES 14969 CONFIG_HEADERS = $CONFIG_HEADERS 14970 CONFIG_LINKS = $CONFIG_LINKS 14971 CONFIG_COMMANDS = $CONFIG_COMMANDS 14972 $ $0 $@ 14973 14974on `(hostname || uname -n) 2>/dev/null | sed 1q` 14975" 14976 14977_ACEOF 14978 14979case $ac_config_files in *" 14980"*) set x $ac_config_files; shift; ac_config_files=$*;; 14981esac 14982 14983case $ac_config_headers in *" 14984"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14985esac 14986 14987 14988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14989# Files that config.status was made for. 14990config_files="$ac_config_files" 14991config_headers="$ac_config_headers" 14992config_commands="$ac_config_commands" 14993 14994_ACEOF 14995 14996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14997ac_cs_usage="\ 14998\`$as_me' instantiates files from templates according to the 14999current configuration. 15000 15001Usage: $0 [OPTION]... [FILE]... 15002 15003 -h, --help print this help, then exit 15004 -V, --version print version number and configuration settings, then exit 15005 -q, --quiet, --silent 15006 do not print progress messages 15007 -d, --debug don't remove temporary files 15008 --recheck update $as_me by reconfiguring in the same conditions 15009 --file=FILE[:TEMPLATE] 15010 instantiate the configuration file FILE 15011 --header=FILE[:TEMPLATE] 15012 instantiate the configuration header FILE 15013 15014Configuration files: 15015$config_files 15016 15017Configuration headers: 15018$config_headers 15019 15020Configuration commands: 15021$config_commands 15022 15023Report bugs to <bug-autoconf@gnu.org>." 15024 15025_ACEOF 15026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15027ac_cs_version="\\ 15028config.status 15029configured by $0, generated by GNU Autoconf 2.63, 15030 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15031 15032Copyright (C) 2008 Free Software Foundation, Inc. 15033This config.status script is free software; the Free Software Foundation 15034gives unlimited permission to copy, distribute and modify it." 15035 15036ac_pwd='$ac_pwd' 15037srcdir='$srcdir' 15038INSTALL='$INSTALL' 15039MKDIR_P='$MKDIR_P' 15040AWK='$AWK' 15041test -n "\$AWK" || AWK=awk 15042_ACEOF 15043 15044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15045# The default lists apply if the user does not specify any file. 15046ac_need_defaults=: 15047while test $# != 0 15048do 15049 case $1 in 15050 --*=*) 15051 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15053 ac_shift=: 15054 ;; 15055 *) 15056 ac_option=$1 15057 ac_optarg=$2 15058 ac_shift=shift 15059 ;; 15060 esac 15061 15062 case $ac_option in 15063 # Handling of the options. 15064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15065 ac_cs_recheck=: ;; 15066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15067 $as_echo "$ac_cs_version"; exit ;; 15068 --debug | --debu | --deb | --de | --d | -d ) 15069 debug=: ;; 15070 --file | --fil | --fi | --f ) 15071 $ac_shift 15072 case $ac_optarg in 15073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15074 esac 15075 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 15076 ac_need_defaults=false;; 15077 --header | --heade | --head | --hea ) 15078 $ac_shift 15079 case $ac_optarg in 15080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15081 esac 15082 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 15083 ac_need_defaults=false;; 15084 --he | --h) 15085 # Conflict between --help and --header 15086 { $as_echo "$as_me: error: ambiguous option: $1 15087Try \`$0 --help' for more information." >&2 15088 { (exit 1); exit 1; }; };; 15089 --help | --hel | -h ) 15090 $as_echo "$ac_cs_usage"; exit ;; 15091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15092 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15093 ac_cs_silent=: ;; 15094 15095 # This is an error. 15096 -*) { $as_echo "$as_me: error: unrecognized option: $1 15097Try \`$0 --help' for more information." >&2 15098 { (exit 1); exit 1; }; } ;; 15099 15100 *) ac_config_targets="$ac_config_targets $1" 15101 ac_need_defaults=false ;; 15102 15103 esac 15104 shift 15105done 15106 15107ac_configure_extra_args= 15108 15109if $ac_cs_silent; then 15110 exec 6>/dev/null 15111 ac_configure_extra_args="$ac_configure_extra_args --silent" 15112fi 15113 15114_ACEOF 15115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15116if \$ac_cs_recheck; then 15117 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15118 shift 15119 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15120 CONFIG_SHELL='$SHELL' 15121 export CONFIG_SHELL 15122 exec "\$@" 15123fi 15124 15125_ACEOF 15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15127exec 5>>config.log 15128{ 15129 echo 15130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15131## Running $as_me. ## 15132_ASBOX 15133 $as_echo "$ac_log" 15134} >&5 15135 15136_ACEOF 15137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15138# 15139# INIT-COMMANDS 15140# 15141AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15142 15143_ACEOF 15144 15145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15146 15147# Handling of arguments. 15148for ac_config_target in $ac_config_targets 15149do 15150 case $ac_config_target in 15151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15152 "saslauthd.h") CONFIG_HEADERS="$CONFIG_HEADERS saslauthd.h" ;; 15153 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15154 15155 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15156$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15157 { (exit 1); exit 1; }; };; 15158 esac 15159done 15160 15161 15162# If the user did not use the arguments to specify the items to instantiate, 15163# then the envvar interface is used. Set only those that are not. 15164# We use the long form for the default assignment because of an extremely 15165# bizarre bug on SunOS 4.1.3. 15166if $ac_need_defaults; then 15167 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15168 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15169 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15170fi 15171 15172# Have a temporary directory for convenience. Make it in the build tree 15173# simply because there is no reason against having it here, and in addition, 15174# creating and moving files from /tmp can sometimes cause problems. 15175# Hook for its removal unless debugging. 15176# Note that there is a small window in which the directory will not be cleaned: 15177# after its creation but before its name has been assigned to `$tmp'. 15178$debug || 15179{ 15180 tmp= 15181 trap 'exit_status=$? 15182 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15183' 0 15184 trap '{ (exit 1); exit 1; }' 1 2 13 15 15185} 15186# Create a (secure) tmp directory for tmp files. 15187 15188{ 15189 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15190 test -n "$tmp" && test -d "$tmp" 15191} || 15192{ 15193 tmp=./conf$$-$RANDOM 15194 (umask 077 && mkdir "$tmp") 15195} || 15196{ 15197 $as_echo "$as_me: cannot create a temporary directory in ." >&2 15198 { (exit 1); exit 1; } 15199} 15200 15201# Set up the scripts for CONFIG_FILES section. 15202# No need to generate them if there are no CONFIG_FILES. 15203# This happens for instance with `./config.status config.h'. 15204if test -n "$CONFIG_FILES"; then 15205 15206 15207ac_cr=' 15208' 15209ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15210if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15211 ac_cs_awk_cr='\\r' 15212else 15213 ac_cs_awk_cr=$ac_cr 15214fi 15215 15216echo 'BEGIN {' >"$tmp/subs1.awk" && 15217_ACEOF 15218 15219 15220{ 15221 echo "cat >conf$$subs.awk <<_ACEOF" && 15222 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15223 echo "_ACEOF" 15224} >conf$$subs.sh || 15225 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15226$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15227 { (exit 1); exit 1; }; } 15228ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15229ac_delim='%!_!# ' 15230for ac_last_try in false false false false false :; do 15231 . ./conf$$subs.sh || 15232 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15233$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15234 { (exit 1); exit 1; }; } 15235 15236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15237 if test $ac_delim_n = $ac_delim_num; then 15238 break 15239 elif $ac_last_try; then 15240 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15241$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15242 { (exit 1); exit 1; }; } 15243 else 15244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15245 fi 15246done 15247rm -f conf$$subs.sh 15248 15249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15250cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15251_ACEOF 15252sed -n ' 15253h 15254s/^/S["/; s/!.*/"]=/ 15255p 15256g 15257s/^[^!]*!// 15258:repl 15259t repl 15260s/'"$ac_delim"'$// 15261t delim 15262:nl 15263h 15264s/\(.\{148\}\).*/\1/ 15265t more1 15266s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15267p 15268n 15269b repl 15270:more1 15271s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15272p 15273g 15274s/.\{148\}// 15275t nl 15276:delim 15277h 15278s/\(.\{148\}\).*/\1/ 15279t more2 15280s/["\\]/\\&/g; s/^/"/; s/$/"/ 15281p 15282b 15283:more2 15284s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15285p 15286g 15287s/.\{148\}// 15288t delim 15289' <conf$$subs.awk | sed ' 15290/^[^""]/{ 15291 N 15292 s/\n// 15293} 15294' >>$CONFIG_STATUS || ac_write_fail=1 15295rm -f conf$$subs.awk 15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15297_ACAWK 15298cat >>"\$tmp/subs1.awk" <<_ACAWK && 15299 for (key in S) S_is_set[key] = 1 15300 FS = "" 15301 15302} 15303{ 15304 line = $ 0 15305 nfields = split(line, field, "@") 15306 substed = 0 15307 len = length(field[1]) 15308 for (i = 2; i < nfields; i++) { 15309 key = field[i] 15310 keylen = length(key) 15311 if (S_is_set[key]) { 15312 value = S[key] 15313 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15314 len += length(value) + length(field[++i]) 15315 substed = 1 15316 } else 15317 len += 1 + keylen 15318 } 15319 15320 print line 15321} 15322 15323_ACAWK 15324_ACEOF 15325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15326if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15327 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15328else 15329 cat 15330fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15331 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 15332$as_echo "$as_me: error: could not setup config files machinery" >&2;} 15333 { (exit 1); exit 1; }; } 15334_ACEOF 15335 15336# VPATH may cause trouble with some makes, so we remove $(srcdir), 15337# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15338# trailing colons and then remove the whole line if VPATH becomes empty 15339# (actually we leave an empty line to preserve line numbers). 15340if test "x$srcdir" = x.; then 15341 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15342s/:*\$(srcdir):*/:/ 15343s/:*\${srcdir}:*/:/ 15344s/:*@srcdir@:*/:/ 15345s/^\([^=]*=[ ]*\):*/\1/ 15346s/:*$// 15347s/^[^=]*=[ ]*$// 15348}' 15349fi 15350 15351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15352fi # test -n "$CONFIG_FILES" 15353 15354# Set up the scripts for CONFIG_HEADERS section. 15355# No need to generate them if there are no CONFIG_HEADERS. 15356# This happens for instance with `./config.status Makefile'. 15357if test -n "$CONFIG_HEADERS"; then 15358cat >"$tmp/defines.awk" <<\_ACAWK || 15359BEGIN { 15360_ACEOF 15361 15362# Transform confdefs.h into an awk script `defines.awk', embedded as 15363# here-document in config.status, that substitutes the proper values into 15364# config.h.in to produce config.h. 15365 15366# Create a delimiter string that does not exist in confdefs.h, to ease 15367# handling of long lines. 15368ac_delim='%!_!# ' 15369for ac_last_try in false false :; do 15370 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 15371 if test -z "$ac_t"; then 15372 break 15373 elif $ac_last_try; then 15374 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 15375$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 15376 { (exit 1); exit 1; }; } 15377 else 15378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15379 fi 15380done 15381 15382# For the awk script, D is an array of macro values keyed by name, 15383# likewise P contains macro parameters if any. Preserve backslash 15384# newline sequences. 15385 15386ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15387sed -n ' 15388s/.\{148\}/&'"$ac_delim"'/g 15389t rset 15390:rset 15391s/^[ ]*#[ ]*define[ ][ ]*/ / 15392t def 15393d 15394:def 15395s/\\$// 15396t bsnl 15397s/["\\]/\\&/g 15398s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15399D["\1"]=" \3"/p 15400s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15401d 15402:bsnl 15403s/["\\]/\\&/g 15404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15405D["\1"]=" \3\\\\\\n"\\/p 15406t cont 15407s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15408t cont 15409d 15410:cont 15411n 15412s/.\{148\}/&'"$ac_delim"'/g 15413t clear 15414:clear 15415s/\\$// 15416t bsnlc 15417s/["\\]/\\&/g; s/^/"/; s/$/"/p 15418d 15419:bsnlc 15420s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15421b cont 15422' <confdefs.h | sed ' 15423s/'"$ac_delim"'/"\\\ 15424"/g' >>$CONFIG_STATUS || ac_write_fail=1 15425 15426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15427 for (key in D) D_is_set[key] = 1 15428 FS = "" 15429} 15430/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15431 line = \$ 0 15432 split(line, arg, " ") 15433 if (arg[1] == "#") { 15434 defundef = arg[2] 15435 mac1 = arg[3] 15436 } else { 15437 defundef = substr(arg[1], 2) 15438 mac1 = arg[2] 15439 } 15440 split(mac1, mac2, "(") #) 15441 macro = mac2[1] 15442 prefix = substr(line, 1, index(line, defundef) - 1) 15443 if (D_is_set[macro]) { 15444 # Preserve the white space surrounding the "#". 15445 print prefix "define", macro P[macro] D[macro] 15446 next 15447 } else { 15448 # Replace #undef with comments. This is necessary, for example, 15449 # in the case of _POSIX_SOURCE, which is predefined and required 15450 # on some systems where configure will not decide to define it. 15451 if (defundef == "undef") { 15452 print "/*", prefix defundef, macro, "*/" 15453 next 15454 } 15455 } 15456} 15457{ print } 15458_ACAWK 15459_ACEOF 15460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15461 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 15462$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 15463 { (exit 1); exit 1; }; } 15464fi # test -n "$CONFIG_HEADERS" 15465 15466 15467eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15468shift 15469for ac_tag 15470do 15471 case $ac_tag in 15472 :[FHLC]) ac_mode=$ac_tag; continue;; 15473 esac 15474 case $ac_mode$ac_tag in 15475 :[FHL]*:*);; 15476 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 15477$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 15478 { (exit 1); exit 1; }; };; 15479 :[FH]-) ac_tag=-:-;; 15480 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15481 esac 15482 ac_save_IFS=$IFS 15483 IFS=: 15484 set x $ac_tag 15485 IFS=$ac_save_IFS 15486 shift 15487 ac_file=$1 15488 shift 15489 15490 case $ac_mode in 15491 :L) ac_source=$1;; 15492 :[FH]) 15493 ac_file_inputs= 15494 for ac_f 15495 do 15496 case $ac_f in 15497 -) ac_f="$tmp/stdin";; 15498 *) # Look for the file first in the build tree, then in the source tree 15499 # (if the path is not absolute). The absolute path cannot be DOS-style, 15500 # because $ac_f cannot contain `:'. 15501 test -f "$ac_f" || 15502 case $ac_f in 15503 [\\/$]*) false;; 15504 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15505 esac || 15506 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15507$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15508 { (exit 1); exit 1; }; };; 15509 esac 15510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15511 ac_file_inputs="$ac_file_inputs '$ac_f'" 15512 done 15513 15514 # Let's still pretend it is `configure' which instantiates (i.e., don't 15515 # use $as_me), people would be surprised to read: 15516 # /* config.h. Generated by config.status. */ 15517 configure_input='Generated from '` 15518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15519 `' by configure.' 15520 if test x"$ac_file" != x-; then 15521 configure_input="$ac_file. $configure_input" 15522 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 15523$as_echo "$as_me: creating $ac_file" >&6;} 15524 fi 15525 # Neutralize special characters interpreted by sed in replacement strings. 15526 case $configure_input in #( 15527 *\&* | *\|* | *\\* ) 15528 ac_sed_conf_input=`$as_echo "$configure_input" | 15529 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15530 *) ac_sed_conf_input=$configure_input;; 15531 esac 15532 15533 case $ac_tag in 15534 *:-:* | *:-) cat >"$tmp/stdin" \ 15535 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15536$as_echo "$as_me: error: could not create $ac_file" >&2;} 15537 { (exit 1); exit 1; }; } ;; 15538 esac 15539 ;; 15540 esac 15541 15542 ac_dir=`$as_dirname -- "$ac_file" || 15543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15544 X"$ac_file" : 'X\(//\)[^/]' \| \ 15545 X"$ac_file" : 'X\(//\)$' \| \ 15546 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15547$as_echo X"$ac_file" | 15548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15549 s//\1/ 15550 q 15551 } 15552 /^X\(\/\/\)[^/].*/{ 15553 s//\1/ 15554 q 15555 } 15556 /^X\(\/\/\)$/{ 15557 s//\1/ 15558 q 15559 } 15560 /^X\(\/\).*/{ 15561 s//\1/ 15562 q 15563 } 15564 s/.*/./; q'` 15565 { as_dir="$ac_dir" 15566 case $as_dir in #( 15567 -*) as_dir=./$as_dir;; 15568 esac 15569 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15570 as_dirs= 15571 while :; do 15572 case $as_dir in #( 15573 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15574 *) as_qdir=$as_dir;; 15575 esac 15576 as_dirs="'$as_qdir' $as_dirs" 15577 as_dir=`$as_dirname -- "$as_dir" || 15578$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15579 X"$as_dir" : 'X\(//\)[^/]' \| \ 15580 X"$as_dir" : 'X\(//\)$' \| \ 15581 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15582$as_echo X"$as_dir" | 15583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15584 s//\1/ 15585 q 15586 } 15587 /^X\(\/\/\)[^/].*/{ 15588 s//\1/ 15589 q 15590 } 15591 /^X\(\/\/\)$/{ 15592 s//\1/ 15593 q 15594 } 15595 /^X\(\/\).*/{ 15596 s//\1/ 15597 q 15598 } 15599 s/.*/./; q'` 15600 test -d "$as_dir" && break 15601 done 15602 test -z "$as_dirs" || eval "mkdir $as_dirs" 15603 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15604$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15605 { (exit 1); exit 1; }; }; } 15606 ac_builddir=. 15607 15608case "$ac_dir" in 15609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15610*) 15611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15612 # A ".." for each directory in $ac_dir_suffix. 15613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15614 case $ac_top_builddir_sub in 15615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15617 esac ;; 15618esac 15619ac_abs_top_builddir=$ac_pwd 15620ac_abs_builddir=$ac_pwd$ac_dir_suffix 15621# for backward compatibility: 15622ac_top_builddir=$ac_top_build_prefix 15623 15624case $srcdir in 15625 .) # We are building in place. 15626 ac_srcdir=. 15627 ac_top_srcdir=$ac_top_builddir_sub 15628 ac_abs_top_srcdir=$ac_pwd ;; 15629 [\\/]* | ?:[\\/]* ) # Absolute name. 15630 ac_srcdir=$srcdir$ac_dir_suffix; 15631 ac_top_srcdir=$srcdir 15632 ac_abs_top_srcdir=$srcdir ;; 15633 *) # Relative name. 15634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15635 ac_top_srcdir=$ac_top_build_prefix$srcdir 15636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15637esac 15638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15639 15640 15641 case $ac_mode in 15642 :F) 15643 # 15644 # CONFIG_FILE 15645 # 15646 15647 case $INSTALL in 15648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15650 esac 15651 ac_MKDIR_P=$MKDIR_P 15652 case $MKDIR_P in 15653 [\\/$]* | ?:[\\/]* ) ;; 15654 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15655 esac 15656_ACEOF 15657 15658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15659# If the template does not know about datarootdir, expand it. 15660# FIXME: This hack should be removed a few years after 2.60. 15661ac_datarootdir_hack=; ac_datarootdir_seen= 15662 15663ac_sed_dataroot=' 15664/datarootdir/ { 15665 p 15666 q 15667} 15668/@datadir@/p 15669/@docdir@/p 15670/@infodir@/p 15671/@localedir@/p 15672/@mandir@/p 15673' 15674case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15675*datarootdir*) ac_datarootdir_seen=yes;; 15676*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15677 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15678$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15679_ACEOF 15680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15681 ac_datarootdir_hack=' 15682 s&@datadir@&$datadir&g 15683 s&@docdir@&$docdir&g 15684 s&@infodir@&$infodir&g 15685 s&@localedir@&$localedir&g 15686 s&@mandir@&$mandir&g 15687 s&\\\${datarootdir}&$datarootdir&g' ;; 15688esac 15689_ACEOF 15690 15691# Neutralize VPATH when `$srcdir' = `.'. 15692# Shell code in configure.ac might set extrasub. 15693# FIXME: do we really want to maintain this feature? 15694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15695ac_sed_extra="$ac_vpsub 15696$extrasub 15697_ACEOF 15698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15699:t 15700/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15701s|@configure_input@|$ac_sed_conf_input|;t t 15702s&@top_builddir@&$ac_top_builddir_sub&;t t 15703s&@top_build_prefix@&$ac_top_build_prefix&;t t 15704s&@srcdir@&$ac_srcdir&;t t 15705s&@abs_srcdir@&$ac_abs_srcdir&;t t 15706s&@top_srcdir@&$ac_top_srcdir&;t t 15707s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15708s&@builddir@&$ac_builddir&;t t 15709s&@abs_builddir@&$ac_abs_builddir&;t t 15710s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15711s&@INSTALL@&$ac_INSTALL&;t t 15712s&@MKDIR_P@&$ac_MKDIR_P&;t t 15713$ac_datarootdir_hack 15714" 15715eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15717$as_echo "$as_me: error: could not create $ac_file" >&2;} 15718 { (exit 1); exit 1; }; } 15719 15720test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15721 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15723 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15724which seems to be undefined. Please make sure it is defined." >&5 15725$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15726which seems to be undefined. Please make sure it is defined." >&2;} 15727 15728 rm -f "$tmp/stdin" 15729 case $ac_file in 15730 -) cat "$tmp/out" && rm -f "$tmp/out";; 15731 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 15732 esac \ 15733 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15734$as_echo "$as_me: error: could not create $ac_file" >&2;} 15735 { (exit 1); exit 1; }; } 15736 ;; 15737 :H) 15738 # 15739 # CONFIG_HEADER 15740 # 15741 if test x"$ac_file" != x-; then 15742 { 15743 $as_echo "/* $configure_input */" \ 15744 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 15745 } >"$tmp/config.h" \ 15746 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15747$as_echo "$as_me: error: could not create $ac_file" >&2;} 15748 { (exit 1); exit 1; }; } 15749 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 15750 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 15751$as_echo "$as_me: $ac_file is unchanged" >&6;} 15752 else 15753 rm -f "$ac_file" 15754 mv "$tmp/config.h" "$ac_file" \ 15755 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 15756$as_echo "$as_me: error: could not create $ac_file" >&2;} 15757 { (exit 1); exit 1; }; } 15758 fi 15759 else 15760 $as_echo "/* $configure_input */" \ 15761 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 15762 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 15763$as_echo "$as_me: error: could not create -" >&2;} 15764 { (exit 1); exit 1; }; } 15765 fi 15766# Compute "$ac_file"'s index in $config_headers. 15767_am_arg="$ac_file" 15768_am_stamp_count=1 15769for _am_header in $config_headers :; do 15770 case $_am_header in 15771 $_am_arg | $_am_arg:* ) 15772 break ;; 15773 * ) 15774 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15775 esac 15776done 15777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15779 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15780 X"$_am_arg" : 'X\(//\)$' \| \ 15781 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15782$as_echo X"$_am_arg" | 15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15784 s//\1/ 15785 q 15786 } 15787 /^X\(\/\/\)[^/].*/{ 15788 s//\1/ 15789 q 15790 } 15791 /^X\(\/\/\)$/{ 15792 s//\1/ 15793 q 15794 } 15795 /^X\(\/\).*/{ 15796 s//\1/ 15797 q 15798 } 15799 s/.*/./; q'`/stamp-h$_am_stamp_count 15800 ;; 15801 15802 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 15803$as_echo "$as_me: executing $ac_file commands" >&6;} 15804 ;; 15805 esac 15806 15807 15808 case $ac_file$ac_mode in 15809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15810 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15811 # are listed without --file. Let's play safe and only enable the eval 15812 # if we detect the quoting. 15813 case $CONFIG_FILES in 15814 *\'*) eval set x "$CONFIG_FILES" ;; 15815 *) set x $CONFIG_FILES ;; 15816 esac 15817 shift 15818 for mf 15819 do 15820 # Strip MF so we end up with the name of the file. 15821 mf=`echo "$mf" | sed -e 's/:.*$//'` 15822 # Check whether this is an Automake generated Makefile or not. 15823 # We used to match only the files named `Makefile.in', but 15824 # some people rename them; so instead we look at the file content. 15825 # Grep'ing the first line is not enough: some people post-process 15826 # each Makefile.in and add a new line on top of each file to say so. 15827 # Grep'ing the whole file is not good either: AIX grep has a line 15828 # limit of 2048, but all sed's we know have understand at least 4000. 15829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15830 dirpart=`$as_dirname -- "$mf" || 15831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15832 X"$mf" : 'X\(//\)[^/]' \| \ 15833 X"$mf" : 'X\(//\)$' \| \ 15834 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15835$as_echo X"$mf" | 15836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15837 s//\1/ 15838 q 15839 } 15840 /^X\(\/\/\)[^/].*/{ 15841 s//\1/ 15842 q 15843 } 15844 /^X\(\/\/\)$/{ 15845 s//\1/ 15846 q 15847 } 15848 /^X\(\/\).*/{ 15849 s//\1/ 15850 q 15851 } 15852 s/.*/./; q'` 15853 else 15854 continue 15855 fi 15856 # Extract the definition of DEPDIR, am__include, and am__quote 15857 # from the Makefile without running `make'. 15858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15859 test -z "$DEPDIR" && continue 15860 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15861 test -z "am__include" && continue 15862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15863 # When using ansi2knr, U may be empty or an underscore; expand it 15864 U=`sed -n 's/^U = //p' < "$mf"` 15865 # Find all dependency output files, they are included files with 15866 # $(DEPDIR) in their names. We invoke sed twice because it is the 15867 # simplest approach to changing $(DEPDIR) to its actual value in the 15868 # expansion. 15869 for file in `sed -n " 15870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15872 # Make sure the directory exists. 15873 test -f "$dirpart/$file" && continue 15874 fdir=`$as_dirname -- "$file" || 15875$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15876 X"$file" : 'X\(//\)[^/]' \| \ 15877 X"$file" : 'X\(//\)$' \| \ 15878 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15879$as_echo X"$file" | 15880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15881 s//\1/ 15882 q 15883 } 15884 /^X\(\/\/\)[^/].*/{ 15885 s//\1/ 15886 q 15887 } 15888 /^X\(\/\/\)$/{ 15889 s//\1/ 15890 q 15891 } 15892 /^X\(\/\).*/{ 15893 s//\1/ 15894 q 15895 } 15896 s/.*/./; q'` 15897 { as_dir=$dirpart/$fdir 15898 case $as_dir in #( 15899 -*) as_dir=./$as_dir;; 15900 esac 15901 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15902 as_dirs= 15903 while :; do 15904 case $as_dir in #( 15905 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15906 *) as_qdir=$as_dir;; 15907 esac 15908 as_dirs="'$as_qdir' $as_dirs" 15909 as_dir=`$as_dirname -- "$as_dir" || 15910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15911 X"$as_dir" : 'X\(//\)[^/]' \| \ 15912 X"$as_dir" : 'X\(//\)$' \| \ 15913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15914$as_echo X"$as_dir" | 15915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15916 s//\1/ 15917 q 15918 } 15919 /^X\(\/\/\)[^/].*/{ 15920 s//\1/ 15921 q 15922 } 15923 /^X\(\/\/\)$/{ 15924 s//\1/ 15925 q 15926 } 15927 /^X\(\/\).*/{ 15928 s//\1/ 15929 q 15930 } 15931 s/.*/./; q'` 15932 test -d "$as_dir" && break 15933 done 15934 test -z "$as_dirs" || eval "mkdir $as_dirs" 15935 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 15936$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 15937 { (exit 1); exit 1; }; }; } 15938 # echo "creating $dirpart/$file" 15939 echo '# dummy' > "$dirpart/$file" 15940 done 15941 done 15942} 15943 ;; 15944 15945 esac 15946done # for ac_tag 15947 15948 15949{ (exit 0); exit 0; } 15950_ACEOF 15951chmod +x $CONFIG_STATUS 15952ac_clean_files=$ac_clean_files_save 15953 15954test $ac_write_fail = 0 || 15955 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 15956$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 15957 { (exit 1); exit 1; }; } 15958 15959 15960# configure is writing to config.log, and then calls config.status. 15961# config.status does its own redirection, appending to config.log. 15962# Unfortunately, on DOS this fails, as config.log is still kept open 15963# by configure, so config.status won't be able to write to it; its 15964# output is simply discarded. So we exec the FD to /dev/null, 15965# effectively closing config.log, so it can be properly (re)opened and 15966# appended to by config.status. When coming back to configure, we 15967# need to make the FD available again. 15968if test "$no_create" != yes; then 15969 ac_cs_success=: 15970 ac_config_status_args= 15971 test "$silent" = yes && 15972 ac_config_status_args="$ac_config_status_args --quiet" 15973 exec 5>/dev/null 15974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15975 exec 5>>config.log 15976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15977 # would make configure fail if this is the last instruction. 15978 $ac_cs_success || { (exit 1); exit 1; } 15979fi 15980if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15981 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15982$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15983fi 15984 15985