1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for WebAuth 4.7.0. 4# 5# Report bugs to <webauth-team@lists.stanford.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: webauth-team@lists.stanford.edu about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='WebAuth' 592PACKAGE_TARNAME='webauth' 593PACKAGE_VERSION='4.7.0' 594PACKAGE_STRING='WebAuth 4.7.0' 595PACKAGE_BUGREPORT='webauth-team@lists.stanford.edu' 596PACKAGE_URL='' 597 598ac_config_libobj_dir=portable 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638DEPEND_LIBS 639LIBOBJS 640LDAP_LIBS 641LDAP_LDFLAGS 642LDAP_CPPFLAGS 643CURL_CONFIG 644CURL_LIBS 645CURL_LDFLAGS 646CURL_CPPFLAGS 647CRYPTO_LIBS 648CRYPTO_LDFLAGS 649CRYPTO_CPPFLAGS 650OPENSSL_LIBS 651OPENSSL_LDFLAGS 652OPENSSL_CPPFLAGS 653JANSSON_CFLAGS 654PKG_CONFIG_LIBDIR 655PKG_CONFIG_PATH 656PKG_CONFIG 657JANSSON_LIBS 658JANSSON_LDFLAGS 659JANSSON_CPPFLAGS 660GSSAPI_LIBS 661GSSAPI_LDFLAGS 662GSSAPI_CPPFLAGS 663REMCTL_LIBS 664REMCTL_LDFLAGS 665REMCTL_CPPFLAGS 666KRB5_USES_COM_ERR_FALSE 667KRB5_USES_COM_ERR_TRUE 668PATH_KRB5_CONFIG 669KRB5_LIBS 670KRB5_LDFLAGS 671KRB5_CPPFLAGS_GCC 672KRB5_CPPFLAGS 673APU_CONFIG 674APRUTIL_LIBS 675APRUTIL_LDFLAGS 676APRUTIL_CPPFLAGS 677APR_LIBS 678APR_LDFLAGS 679APR_CPPFLAGS 680APR_CONFIG 681rra_apache_apxs 682APACHE_LIBS 683APACHE_LDFLAGS 684APACHE_CPPFLAGS 685PATH_REMCTLD 686PERL_LDFLAGS 687PERL 688BUILD_PERL_FALSE 689BUILD_PERL_TRUE 690BUILD_WEBAUTHLDAP_FALSE 691BUILD_WEBAUTHLDAP_TRUE 692BUILD_WEBAUTH_FALSE 693BUILD_WEBAUTH_TRUE 694BUILD_WEBKDC_FALSE 695BUILD_WEBKDC_TRUE 696HAVE_LD_VERSION_SCRIPT_FALSE 697HAVE_LD_VERSION_SCRIPT_TRUE 698OTOOL64 699OTOOL 700LIPO 701NMEDIT 702DSYMUTIL 703MANIFEST_TOOL 704RANLIB 705DLLTOOL 706OBJDUMP 707LN_S 708NM 709ac_ct_DUMPBIN 710DUMPBIN 711LD 712FGREP 713SED 714host_os 715host_vendor 716host_cpu 717host 718build_os 719build_vendor 720build_cpu 721build 722LIBTOOL 723ac_ct_AR 724AR 725EGREP 726GREP 727CPP 728am__fastdepCC_FALSE 729am__fastdepCC_TRUE 730CCDEPMODE 731am__nodep 732AMDEPBACKSLASH 733AMDEP_FALSE 734AMDEP_TRUE 735am__quote 736am__include 737DEPDIR 738OBJEXT 739EXEEXT 740ac_ct_CC 741CPPFLAGS 742LDFLAGS 743CFLAGS 744CC 745MAINT 746MAINTAINER_MODE_FALSE 747MAINTAINER_MODE_TRUE 748AM_BACKSLASH 749AM_DEFAULT_VERBOSITY 750AM_DEFAULT_V 751AM_V 752am__untar 753am__tar 754AMTAR 755am__leading_dot 756SET_MAKE 757AWK 758mkdir_p 759MKDIR_P 760INSTALL_STRIP_PROGRAM 761STRIP 762install_sh 763MAKEINFO 764AUTOHEADER 765AUTOMAKE 766AUTOCONF 767ACLOCAL 768VERSION 769PACKAGE 770CYGPATH_W 771am__isrc 772INSTALL_DATA 773INSTALL_SCRIPT 774INSTALL_PROGRAM 775target_alias 776host_alias 777build_alias 778LIBS 779ECHO_T 780ECHO_N 781ECHO_C 782DEFS 783mandir 784localedir 785libdir 786psdir 787pdfdir 788dvidir 789htmldir 790infodir 791docdir 792oldincludedir 793includedir 794localstatedir 795sharedstatedir 796sysconfdir 797datadir 798datarootdir 799libexecdir 800sbindir 801bindir 802program_transform_name 803prefix 804exec_prefix 805PACKAGE_URL 806PACKAGE_BUGREPORT 807PACKAGE_STRING 808PACKAGE_VERSION 809PACKAGE_TARNAME 810PACKAGE_NAME 811PATH_SEPARATOR 812SHELL' 813ac_subst_files='' 814ac_user_opts=' 815enable_option_checking 816enable_silent_rules 817enable_maintainer_mode 818enable_dependency_tracking 819enable_largefile 820enable_shared 821enable_static 822with_pic 823enable_fast_install 824with_gnu_ld 825with_sysroot 826enable_libtool_lock 827enable_webkdc 828enable_mod_webauth 829enable_mod_webauthldap 830enable_perl 831with_apxs 832enable_reduced_depends 833with_apr 834with_apr_include 835with_apr_lib 836with_aprutil 837with_aprutil_include 838with_aprutil_lib 839with_krb5 840with_krb5_include 841with_krb5_lib 842with_remctl 843with_remctl_include 844with_remctl_lib 845with_gssapi 846with_gssapi_include 847with_gssapi_lib 848with_jansson 849with_jansson_include 850with_jansson_lib 851with_openssl 852with_openssl_include 853with_openssl_lib 854with_curl 855with_curl_include 856with_curl_lib 857with_ldap 858with_ldap_include 859with_ldap_lib 860' 861 ac_precious_vars='build_alias 862host_alias 863target_alias 864CC 865CFLAGS 866LDFLAGS 867LIBS 868CPPFLAGS 869CPP 870PATH_REMCTLD 871APR_CONFIG 872APU_CONFIG 873PATH_KRB5_CONFIG 874PKG_CONFIG 875PKG_CONFIG_PATH 876PKG_CONFIG_LIBDIR 877JANSSON_CFLAGS 878JANSSON_LIBS 879CURL_CONFIG' 880 881 882# Initialize some variables set by options. 883ac_init_help= 884ac_init_version=false 885ac_unrecognized_opts= 886ac_unrecognized_sep= 887# The variables have the same names as the options, with 888# dashes changed to underlines. 889cache_file=/dev/null 890exec_prefix=NONE 891no_create= 892no_recursion= 893prefix=NONE 894program_prefix=NONE 895program_suffix=NONE 896program_transform_name=s,x,x, 897silent= 898site= 899srcdir= 900verbose= 901x_includes=NONE 902x_libraries=NONE 903 904# Installation directory options. 905# These are left unexpanded so users can "make install exec_prefix=/foo" 906# and all the variables that are supposed to be based on exec_prefix 907# by default will actually change. 908# Use braces instead of parens because sh, perl, etc. also accept them. 909# (The list follows the same order as the GNU Coding Standards.) 910bindir='${exec_prefix}/bin' 911sbindir='${exec_prefix}/sbin' 912libexecdir='${exec_prefix}/libexec' 913datarootdir='${prefix}/share' 914datadir='${datarootdir}' 915sysconfdir='${prefix}/etc' 916sharedstatedir='${prefix}/com' 917localstatedir='${prefix}/var' 918includedir='${prefix}/include' 919oldincludedir='/usr/include' 920docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 921infodir='${datarootdir}/info' 922htmldir='${docdir}' 923dvidir='${docdir}' 924pdfdir='${docdir}' 925psdir='${docdir}' 926libdir='${exec_prefix}/lib' 927localedir='${datarootdir}/locale' 928mandir='${datarootdir}/man' 929 930ac_prev= 931ac_dashdash= 932for ac_option 933do 934 # If the previous option needs an argument, assign it. 935 if test -n "$ac_prev"; then 936 eval $ac_prev=\$ac_option 937 ac_prev= 938 continue 939 fi 940 941 case $ac_option in 942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 943 *=) ac_optarg= ;; 944 *) ac_optarg=yes ;; 945 esac 946 947 # Accept the important Cygnus configure options, so we can diagnose typos. 948 949 case $ac_dashdash$ac_option in 950 --) 951 ac_dashdash=yes ;; 952 953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 ac_prev=bindir ;; 955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956 bindir=$ac_optarg ;; 957 958 -build | --build | --buil | --bui | --bu) 959 ac_prev=build_alias ;; 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961 build_alias=$ac_optarg ;; 962 963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965 ac_prev=cache_file ;; 966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968 cache_file=$ac_optarg ;; 969 970 --config-cache | -C) 971 cache_file=config.cache ;; 972 973 -datadir | --datadir | --datadi | --datad) 974 ac_prev=datadir ;; 975 -datadir=* | --datadir=* | --datadi=* | --datad=*) 976 datadir=$ac_optarg ;; 977 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979 | --dataroo | --dataro | --datar) 980 ac_prev=datarootdir ;; 981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983 datarootdir=$ac_optarg ;; 984 985 -disable-* | --disable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235 as_fn_error $? "invalid package name: $ac_useropt" 1236 ac_useropt_orig=$ac_useropt 1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 case $ac_user_opts in 1239 *" 1240"with_$ac_useropt" 1241"*) ;; 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243 ac_unrecognized_sep=', ';; 1244 esac 1245 eval with_$ac_useropt=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1266Try \`$0 --help' for more information" 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 case $ac_envvar in #( 1273 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1275 esac 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 as_fn_error $? "missing argument to $ac_option" 1293fi 1294 1295if test -n "$ac_unrecognized_opts"; then 1296 case $enable_option_checking in 1297 no) ;; 1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300 esac 1301fi 1302 1303# Check all directory arguments for consistency. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 # Remove trailing slashes. 1311 case $ac_val in 1312 */ ) 1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314 eval $ac_var=\$ac_val;; 1315 esac 1316 # Be sure to have absolute directory names. 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1322done 1323 1324# There might be people who depend on the old broken behavior: `$host' 1325# used to hold the argument of --host etc. 1326# FIXME: To remove some day. 1327build=$build_alias 1328host=$host_alias 1329target=$target_alias 1330 1331# FIXME: To remove some day. 1332if test "x$host_alias" != x; then 1333 if test "x$build_alias" = x; then 1334 cross_compiling=maybe 1335 elif test "x$build_alias" != "x$host_alias"; then 1336 cross_compiling=yes 1337 fi 1338fi 1339 1340ac_tool_prefix= 1341test -n "$host_alias" && ac_tool_prefix=$host_alias- 1342 1343test "$silent" = yes && exec 6>/dev/null 1344 1345 1346ac_pwd=`pwd` && test -n "$ac_pwd" && 1347ac_ls_di=`ls -di .` && 1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 as_fn_error $? "working directory cannot be determined" 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 as_fn_error $? "pwd does not report name of working directory" 1352 1353 1354# Find the source files, if location was not specified. 1355if test -z "$srcdir"; then 1356 ac_srcdir_defaulted=yes 1357 # Try the directory containing this script, then the parent directory. 1358 ac_confdir=`$as_dirname -- "$as_myself" || 1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1360 X"$as_myself" : 'X\(//\)[^/]' \| \ 1361 X"$as_myself" : 'X\(//\)$' \| \ 1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1363$as_echo X"$as_myself" | 1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)[^/].*/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\/\)$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\).*/{ 1377 s//\1/ 1378 q 1379 } 1380 s/.*/./; q'` 1381 srcdir=$ac_confdir 1382 if test ! -r "$srcdir/$ac_unique_file"; then 1383 srcdir=.. 1384 fi 1385else 1386 ac_srcdir_defaulted=no 1387fi 1388if test ! -r "$srcdir/$ac_unique_file"; then 1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1395 pwd)` 1396# When building in place, set srcdir=. 1397if test "$ac_abs_confdir" = "$ac_pwd"; then 1398 srcdir=. 1399fi 1400# Remove unnecessary trailing slashes from srcdir. 1401# Double slashes in file names in object file debugging info 1402# mess up M-x gdb in Emacs. 1403case $srcdir in 1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1405esac 1406for ac_var in $ac_precious_vars; do 1407 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1408 eval ac_env_${ac_var}_value=\$${ac_var} 1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1411done 1412 1413# 1414# Report the --help message. 1415# 1416if test "$ac_init_help" = "long"; then 1417 # Omit some internal or obsolete options to make the list less imposing. 1418 # This message is too long to be a string in the A/UX 3.1 sh. 1419 cat <<_ACEOF 1420\`configure' configures WebAuth 4.7.0 to adapt to many kinds of systems. 1421 1422Usage: $0 [OPTION]... [VAR=VALUE]... 1423 1424To assign environment variables (e.g., CC, CFLAGS...), specify them as 1425VAR=VALUE. See below for descriptions of some of the useful variables. 1426 1427Defaults for the options are specified in brackets. 1428 1429Configuration: 1430 -h, --help display this help and exit 1431 --help=short display options specific to this package 1432 --help=recursive display the short help of all the included packages 1433 -V, --version display version information and exit 1434 -q, --quiet, --silent do not print \`checking ...' messages 1435 --cache-file=FILE cache test results in FILE [disabled] 1436 -C, --config-cache alias for \`--cache-file=config.cache' 1437 -n, --no-create do not create output files 1438 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1439 1440Installation directories: 1441 --prefix=PREFIX install architecture-independent files in PREFIX 1442 [$ac_default_prefix] 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1444 [PREFIX] 1445 1446By default, \`make install' will install all the files in 1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1448an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1449for instance \`--prefix=\$HOME'. 1450 1451For better control, use the options below. 1452 1453Fine tuning of the installation directories: 1454 --bindir=DIR user executables [EPREFIX/bin] 1455 --sbindir=DIR system admin executables [EPREFIX/sbin] 1456 --libexecdir=DIR program executables [EPREFIX/libexec] 1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1460 --libdir=DIR object code libraries [EPREFIX/lib] 1461 --includedir=DIR C header files [PREFIX/include] 1462 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1465 --infodir=DIR info documentation [DATAROOTDIR/info] 1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1467 --mandir=DIR man documentation [DATAROOTDIR/man] 1468 --docdir=DIR documentation root [DATAROOTDIR/doc/webauth] 1469 --htmldir=DIR html documentation [DOCDIR] 1470 --dvidir=DIR dvi documentation [DOCDIR] 1471 --pdfdir=DIR pdf documentation [DOCDIR] 1472 --psdir=DIR ps documentation [DOCDIR] 1473_ACEOF 1474 1475 cat <<\_ACEOF 1476 1477Program names: 1478 --program-prefix=PREFIX prepend PREFIX to installed program names 1479 --program-suffix=SUFFIX append SUFFIX to installed program names 1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1481 1482System types: 1483 --build=BUILD configure for building on BUILD [guessed] 1484 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1485_ACEOF 1486fi 1487 1488if test -n "$ac_init_help"; then 1489 case $ac_init_help in 1490 short | recursive ) echo "Configuration of WebAuth 4.7.0:";; 1491 esac 1492 cat <<\_ACEOF 1493 1494Optional Features: 1495 --disable-option-checking ignore unrecognized --enable/--with options 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --enable-silent-rules less verbose build output (undo: "make V=1") 1499 --disable-silent-rules verbose build output (undo: "make V=0") 1500 --enable-maintainer-mode 1501 enable make rules and dependencies not useful (and 1502 sometimes confusing) to the casual installer 1503 --enable-dependency-tracking 1504 do not reject slow dependency extractors 1505 --disable-dependency-tracking 1506 speeds up one-time build 1507 --disable-largefile omit support for large files 1508 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 --enable-static[=PKGS] build static libraries [default=yes] 1510 --enable-fast-install[=PKGS] 1511 optimize for fast installation [default=yes] 1512 --disable-libtool-lock avoid locking (might break parallel builds) 1513 --enable-webkdc Build and install WebLogin and the WebKDC Apache 1514 module 1515 --disable-mod_webauth Do not build the WebAuth Apache module 1516 --disable-mod_webauthldap 1517 Do not build the WebAuth LDAP Apache module 1518 --enable-perl Build Perl bindings 1519 --enable-reduced-depends 1520 Try to minimize shared library dependencies 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1528 --with-sysroot=DIR Search for dependent libraries within DIR 1529 (or the compiler's sysroot if not specified). 1530 --with-apxs=PATH Path to Apache 2.x apxs program 1531 --with-apr=DIR Location of APR headers and libraries 1532 --with-apr-include=DIR Location of APR headers 1533 --with-apr-lib=DIR Location of APR libraries 1534 --with-aprutil=DIR Location of APR-Util headers and libraries 1535 --with-aprutil-include=DIR 1536 Location of APR-Util headers 1537 --with-aprutil-lib=DIR Location of APR-Util libraries 1538 --with-krb5=DIR Location of Kerberos headers and libraries 1539 --with-krb5-include=DIR Location of Kerberos headers 1540 --with-krb5-lib=DIR Location of Kerberos libraries 1541 --with-remctl[=DIR] Location of remctl headers and libraries 1542 --with-remctl-include=DIR 1543 Location of remctl headers 1544 --with-remctl-lib=DIR Location of remctl libraries 1545 --with-gssapi=DIR Location of GSS-API headers and libraries 1546 --with-gssapi-include=DIR 1547 Location of GSS-API headers 1548 --with-gssapi-lib=DIR Location of GSS-API libraries 1549 --with-jansson[=DIR] Location of Jansson headers and libraries 1550 --with-jansson-include=DIR 1551 Location of Jansson headers 1552 --with-jansson-lib=DIR Location of Jansson libraries 1553 --with-openssl=DIR Location of OpenSSL headers and libraries 1554 --with-openssl-include=DIR 1555 Location of OpenSSL headers 1556 --with-openssl-lib=DIR Location of OpenSSL libraries 1557 --with-curl=DIR Location of cURL headers and libraries 1558 --with-curl-include=DIR Location of cURL headers 1559 --with-curl-lib=DIR Location of cURL libraries 1560 --with-ldap=DIR Location of LDAP headers and libraries 1561 --with-ldap-include=DIR Location of LDAP headers 1562 --with-ldap-lib=DIR Location of LDAP libraries 1563 1564Some influential environment variables: 1565 CC C compiler command 1566 CFLAGS C compiler flags 1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1568 nonstandard directory <lib dir> 1569 LIBS libraries to pass to the linker, e.g. -l<library> 1570 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1571 you have headers in a nonstandard directory <include dir> 1572 CPP C preprocessor 1573 PATH_REMCTLD 1574 Path to remctld for the test suite 1575 APR_CONFIG Path to apr-1-config or apr-config 1576 APU_CONFIG Path to apu-1-config or apu-config 1577 PATH_KRB5_CONFIG 1578 Path to krb5-config 1579 PKG_CONFIG path to pkg-config utility 1580 PKG_CONFIG_PATH 1581 directories to add to pkg-config's search path 1582 PKG_CONFIG_LIBDIR 1583 path overriding pkg-config's built-in search path 1584 JANSSON_CFLAGS 1585 C compiler flags for JANSSON, overriding pkg-config 1586 JANSSON_LIBS 1587 linker flags for JANSSON, overriding pkg-config 1588 CURL_CONFIG Path to curl-config 1589 1590Use these variables to override the choices made by `configure' or to help 1591it to find libraries and programs with nonstandard names/locations. 1592 1593Report bugs to <webauth-team@lists.stanford.edu>. 1594_ACEOF 1595ac_status=$? 1596fi 1597 1598if test "$ac_init_help" = "recursive"; then 1599 # If there are subdirs, report their specific --help. 1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1601 test -d "$ac_dir" || 1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1603 continue 1604 ac_builddir=. 1605 1606case "$ac_dir" in 1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608*) 1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1610 # A ".." for each directory in $ac_dir_suffix. 1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1612 case $ac_top_builddir_sub in 1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1615 esac ;; 1616esac 1617ac_abs_top_builddir=$ac_pwd 1618ac_abs_builddir=$ac_pwd$ac_dir_suffix 1619# for backward compatibility: 1620ac_top_builddir=$ac_top_build_prefix 1621 1622case $srcdir in 1623 .) # We are building in place. 1624 ac_srcdir=. 1625 ac_top_srcdir=$ac_top_builddir_sub 1626 ac_abs_top_srcdir=$ac_pwd ;; 1627 [\\/]* | ?:[\\/]* ) # Absolute name. 1628 ac_srcdir=$srcdir$ac_dir_suffix; 1629 ac_top_srcdir=$srcdir 1630 ac_abs_top_srcdir=$srcdir ;; 1631 *) # Relative name. 1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1633 ac_top_srcdir=$ac_top_build_prefix$srcdir 1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1635esac 1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1637 1638 cd "$ac_dir" || { ac_status=$?; continue; } 1639 # Check for guested configure. 1640 if test -f "$ac_srcdir/configure.gnu"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1643 elif test -f "$ac_srcdir/configure"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure" --help=recursive 1646 else 1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1648 fi || ac_status=$? 1649 cd "$ac_pwd" || { ac_status=$?; break; } 1650 done 1651fi 1652 1653test -n "$ac_init_help" && exit $ac_status 1654if $ac_init_version; then 1655 cat <<\_ACEOF 1656WebAuth configure 4.7.0 1657generated by GNU Autoconf 2.69 1658 1659Copyright (C) 2012 Free Software Foundation, Inc. 1660This configure script is free software; the Free Software Foundation 1661gives unlimited permission to copy, distribute and modify it. 1662_ACEOF 1663 exit 1664fi 1665 1666## ------------------------ ## 1667## Autoconf initialization. ## 1668## ------------------------ ## 1669 1670# ac_fn_c_try_compile LINENO 1671# -------------------------- 1672# Try to compile conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_compile () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext 1677 if { { ac_try="$ac_compile" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_compile") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest.$ac_objext; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_compile 1707 1708# ac_fn_c_try_cpp LINENO 1709# ---------------------- 1710# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_cpp () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_cpp conftest.$ac_ext" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } > conftest.i && { 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 }; then : 1733 ac_retval=0 1734else 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 as_fn_set_status $ac_retval 1742 1743} # ac_fn_c_try_cpp 1744 1745# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1746# ------------------------------------------------------- 1747# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1748# the include files in INCLUDES and setting the cache variable VAR 1749# accordingly. 1750ac_fn_c_check_header_mongrel () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if eval \${$3+:} false; then : 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758fi 1759eval ac_res=\$$3 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761$as_echo "$ac_res" >&6; } 1762else 1763 # Is the header compilable? 1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1765$as_echo_n "checking $2 usability... " >&6; } 1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 ac_header_compiler=yes 1773else 1774 ac_header_compiler=no 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1778$as_echo "$ac_header_compiler" >&6; } 1779 1780# Is the header present? 1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1782$as_echo_n "checking $2 presence... " >&6; } 1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785#include <$2> 1786_ACEOF 1787if ac_fn_c_try_cpp "$LINENO"; then : 1788 ac_header_preproc=yes 1789else 1790 ac_header_preproc=no 1791fi 1792rm -f conftest.err conftest.i conftest.$ac_ext 1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1794$as_echo "$ac_header_preproc" >&6; } 1795 1796# So? What about this header? 1797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1798 yes:no: ) 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1800$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1802$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1803 ;; 1804 no:yes:* ) 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1806$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1808$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1810$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1812$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1815( $as_echo "## ---------------------------------------------- ## 1816## Report this to webauth-team@lists.stanford.edu ## 1817## ---------------------------------------------- ##" 1818 ) | sed "s/^/$as_me: WARNING: /" >&2 1819 ;; 1820esac 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825else 1826 eval "$3=\$ac_header_compiler" 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831fi 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_mongrel 1835 1836# ac_fn_c_try_run LINENO 1837# ---------------------- 1838# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1839# that executables *can* be run. 1840ac_fn_c_try_run () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1854 { { case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_try") 2>&5 1861 ac_status=$? 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; }; }; then : 1864 ac_retval=0 1865else 1866 $as_echo "$as_me: program exited with status $ac_status" >&5 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=$ac_status 1871fi 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_run 1877 1878# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1879# ------------------------------------------------------- 1880# Tests whether HEADER exists and can be compiled using the include files in 1881# INCLUDES, setting the cache variable VAR accordingly. 1882ac_fn_c_check_header_compile () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886$as_echo_n "checking for $2... " >&6; } 1887if eval \${$3+:} false; then : 1888 $as_echo_n "(cached) " >&6 1889else 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1891/* end confdefs.h. */ 1892$4 1893#include <$2> 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 eval "$3=yes" 1897else 1898 eval "$3=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_compile 1908 1909# ac_fn_c_try_link LINENO 1910# ----------------------- 1911# Try to link conftest.$ac_ext, and return whether this succeeded. 1912ac_fn_c_try_link () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 rm -f conftest.$ac_objext conftest$ac_exeext 1916 if { { ac_try="$ac_link" 1917case "(($ac_try" in 1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1919 *) ac_try_echo=$ac_try;; 1920esac 1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1922$as_echo "$ac_try_echo"; } >&5 1923 (eval "$ac_link") 2>conftest.err 1924 ac_status=$? 1925 if test -s conftest.err; then 1926 grep -v '^ *+' conftest.err >conftest.er1 1927 cat conftest.er1 >&5 1928 mv -f conftest.er1 conftest.err 1929 fi 1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1931 test $ac_status = 0; } && { 1932 test -z "$ac_c_werror_flag" || 1933 test ! -s conftest.err 1934 } && test -s conftest$ac_exeext && { 1935 test "$cross_compiling" = yes || 1936 test -x conftest$ac_exeext 1937 }; then : 1938 ac_retval=0 1939else 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=1 1944fi 1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1947 # interfere with the next link command; also delete a directory that is 1948 # left behind by Apple's compiler. We do this before executing the actions. 1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 as_fn_set_status $ac_retval 1952 1953} # ac_fn_c_try_link 1954 1955# ac_fn_c_check_func LINENO FUNC VAR 1956# ---------------------------------- 1957# Tests whether FUNC exists, setting the cache variable VAR accordingly 1958ac_fn_c_check_func () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1962$as_echo_n "checking for $2... " >&6; } 1963if eval \${$3+:} false; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1970#define $2 innocuous_$2 1971 1972/* System header to define __stub macros and hopefully few prototypes, 1973 which can conflict with char $2 (); below. 1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1975 <limits.h> exists even on freestanding compilers. */ 1976 1977#ifdef __STDC__ 1978# include <limits.h> 1979#else 1980# include <assert.h> 1981#endif 1982 1983#undef $2 1984 1985/* Override any GCC internal prototype to avoid an error. 1986 Use char because int might match the return type of a GCC 1987 builtin and then its argument prototype would still apply. */ 1988#ifdef __cplusplus 1989extern "C" 1990#endif 1991char $2 (); 1992/* The GNU C library defines this for functions which it implements 1993 to always fail with ENOSYS. Some functions are actually named 1994 something starting with __ and the normal name is an alias. */ 1995#if defined __stub_$2 || defined __stub___$2 1996choke me 1997#endif 1998 1999int 2000main () 2001{ 2002return $2 (); 2003 ; 2004 return 0; 2005} 2006_ACEOF 2007if ac_fn_c_try_link "$LINENO"; then : 2008 eval "$3=yes" 2009else 2010 eval "$3=no" 2011fi 2012rm -f core conftest.err conftest.$ac_objext \ 2013 conftest$ac_exeext conftest.$ac_ext 2014fi 2015eval ac_res=\$$3 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2017$as_echo "$ac_res" >&6; } 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2019 2020} # ac_fn_c_check_func 2021 2022# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2023# --------------------------------------------- 2024# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2025# accordingly. 2026ac_fn_c_check_decl () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 as_decl_name=`echo $2|sed 's/ *(.*//'` 2030 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2032$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2033if eval \${$3+:} false; then : 2034 $as_echo_n "(cached) " >&6 2035else 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039int 2040main () 2041{ 2042#ifndef $as_decl_name 2043#ifdef __cplusplus 2044 (void) $as_decl_use; 2045#else 2046 (void) $as_decl_name; 2047#endif 2048#endif 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 eval "$3=yes" 2056else 2057 eval "$3=no" 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060fi 2061eval ac_res=\$$3 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2063$as_echo "$ac_res" >&6; } 2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2065 2066} # ac_fn_c_check_decl 2067 2068# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2069# ---------------------------------------------------- 2070# Tries to find if the field MEMBER exists in type AGGR, after including 2071# INCLUDES, setting cache variable VAR accordingly. 2072ac_fn_c_check_member () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2076$as_echo_n "checking for $2.$3... " >&6; } 2077if eval \${$4+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$5 2083int 2084main () 2085{ 2086static $2 ac_aggr; 2087if (ac_aggr.$3) 2088return 0; 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 eval "$4=yes" 2095else 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$5 2099int 2100main () 2101{ 2102static $2 ac_aggr; 2103if (sizeof ac_aggr.$3) 2104return 0; 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_c_try_compile "$LINENO"; then : 2110 eval "$4=yes" 2111else 2112 eval "$4=no" 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115fi 2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117fi 2118eval ac_res=\$$4 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2120$as_echo "$ac_res" >&6; } 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2122 2123} # ac_fn_c_check_member 2124 2125# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2126# -------------------------------------------- 2127# Tries to find the compile-time value of EXPR in a program that includes 2128# INCLUDES, setting VAR accordingly. Returns whether the value could be 2129# computed 2130ac_fn_c_compute_int () 2131{ 2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2133 if test "$cross_compiling" = yes; then 2134 # Depending upon the size, compute the lo and hi bounds. 2135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136/* end confdefs.h. */ 2137$4 2138int 2139main () 2140{ 2141static int test_array [1 - 2 * !(($2) >= 0)]; 2142test_array [0] = 0; 2143return test_array [0]; 2144 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_c_try_compile "$LINENO"; then : 2150 ac_lo=0 ac_mid=0 2151 while :; do 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$4 2155int 2156main () 2157{ 2158static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2159test_array [0] = 0; 2160return test_array [0]; 2161 2162 ; 2163 return 0; 2164} 2165_ACEOF 2166if ac_fn_c_try_compile "$LINENO"; then : 2167 ac_hi=$ac_mid; break 2168else 2169 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2170 if test $ac_lo -le $ac_mid; then 2171 ac_lo= ac_hi= 2172 break 2173 fi 2174 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177 done 2178else 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182int 2183main () 2184{ 2185static int test_array [1 - 2 * !(($2) < 0)]; 2186test_array [0] = 0; 2187return test_array [0]; 2188 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 ac_hi=-1 ac_mid=-1 2195 while :; do 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199int 2200main () 2201{ 2202static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2203test_array [0] = 0; 2204return test_array [0]; 2205 2206 ; 2207 return 0; 2208} 2209_ACEOF 2210if ac_fn_c_try_compile "$LINENO"; then : 2211 ac_lo=$ac_mid; break 2212else 2213 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2214 if test $ac_mid -le $ac_hi; then 2215 ac_lo= ac_hi= 2216 break 2217 fi 2218 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2219fi 2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2221 done 2222else 2223 ac_lo= ac_hi= 2224fi 2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226fi 2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2228# Binary search between lo and hi bounds. 2229while test "x$ac_lo" != "x$ac_hi"; do 2230 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2232/* end confdefs.h. */ 2233$4 2234int 2235main () 2236{ 2237static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2238test_array [0] = 0; 2239return test_array [0]; 2240 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 ac_hi=$ac_mid 2247else 2248 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2249fi 2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2251done 2252case $ac_lo in #(( 2253?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2254'') ac_retval=1 ;; 2255esac 2256 else 2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2258/* end confdefs.h. */ 2259$4 2260static long int longval () { return $2; } 2261static unsigned long int ulongval () { return $2; } 2262#include <stdio.h> 2263#include <stdlib.h> 2264int 2265main () 2266{ 2267 2268 FILE *f = fopen ("conftest.val", "w"); 2269 if (! f) 2270 return 1; 2271 if (($2) < 0) 2272 { 2273 long int i = longval (); 2274 if (i != ($2)) 2275 return 1; 2276 fprintf (f, "%ld", i); 2277 } 2278 else 2279 { 2280 unsigned long int i = ulongval (); 2281 if (i != ($2)) 2282 return 1; 2283 fprintf (f, "%lu", i); 2284 } 2285 /* Do not output a trailing newline, as this causes \r\n confusion 2286 on some platforms. */ 2287 return ferror (f) || fclose (f) != 0; 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_run "$LINENO"; then : 2294 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2295else 2296 ac_retval=1 2297fi 2298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2299 conftest.$ac_objext conftest.beam conftest.$ac_ext 2300rm -f conftest.val 2301 2302 fi 2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2304 as_fn_set_status $ac_retval 2305 2306} # ac_fn_c_compute_int 2307 2308# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2309# ------------------------------------------- 2310# Tests whether TYPE exists after having included INCLUDES, setting cache 2311# variable VAR accordingly. 2312ac_fn_c_check_type () 2313{ 2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2316$as_echo_n "checking for $2... " >&6; } 2317if eval \${$3+:} false; then : 2318 $as_echo_n "(cached) " >&6 2319else 2320 eval "$3=no" 2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2322/* end confdefs.h. */ 2323$4 2324int 2325main () 2326{ 2327if (sizeof ($2)) 2328 return 0; 2329 ; 2330 return 0; 2331} 2332_ACEOF 2333if ac_fn_c_try_compile "$LINENO"; then : 2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2335/* end confdefs.h. */ 2336$4 2337int 2338main () 2339{ 2340if (sizeof (($2))) 2341 return 0; 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346if ac_fn_c_try_compile "$LINENO"; then : 2347 2348else 2349 eval "$3=yes" 2350fi 2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2352fi 2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2354fi 2355eval ac_res=\$$3 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2357$as_echo "$ac_res" >&6; } 2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2359 2360} # ac_fn_c_check_type 2361 2362# ac_fn_c_find_intX_t LINENO BITS VAR 2363# ----------------------------------- 2364# Finds a signed integer type with width BITS, setting cache variable VAR 2365# accordingly. 2366ac_fn_c_find_intX_t () 2367{ 2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2370$as_echo_n "checking for int$2_t... " >&6; } 2371if eval \${$3+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 eval "$3=no" 2375 # Order is important - never check a type that is potentially smaller 2376 # than half of the expected target width. 2377 for ac_type in int$2_t 'int' 'long int' \ 2378 'long long int' 'short int' 'signed char'; do 2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2380/* end confdefs.h. */ 2381$ac_includes_default 2382 enum { N = $2 / 2 - 1 }; 2383int 2384main () 2385{ 2386static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2387test_array [0] = 0; 2388return test_array [0]; 2389 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394if ac_fn_c_try_compile "$LINENO"; then : 2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2396/* end confdefs.h. */ 2397$ac_includes_default 2398 enum { N = $2 / 2 - 1 }; 2399int 2400main () 2401{ 2402static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2403 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2404test_array [0] = 0; 2405return test_array [0]; 2406 2407 ; 2408 return 0; 2409} 2410_ACEOF 2411if ac_fn_c_try_compile "$LINENO"; then : 2412 2413else 2414 case $ac_type in #( 2415 int$2_t) : 2416 eval "$3=yes" ;; #( 2417 *) : 2418 eval "$3=\$ac_type" ;; 2419esac 2420fi 2421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2422fi 2423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2424 if eval test \"x\$"$3"\" = x"no"; then : 2425 2426else 2427 break 2428fi 2429 done 2430fi 2431eval ac_res=\$$3 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2433$as_echo "$ac_res" >&6; } 2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2435 2436} # ac_fn_c_find_intX_t 2437 2438# ac_fn_c_find_uintX_t LINENO BITS VAR 2439# ------------------------------------ 2440# Finds an unsigned integer type with width BITS, setting cache variable VAR 2441# accordingly. 2442ac_fn_c_find_uintX_t () 2443{ 2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2446$as_echo_n "checking for uint$2_t... " >&6; } 2447if eval \${$3+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 eval "$3=no" 2451 # Order is important - never check a type that is potentially smaller 2452 # than half of the expected target width. 2453 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2454 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2456/* end confdefs.h. */ 2457$ac_includes_default 2458int 2459main () 2460{ 2461static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2462test_array [0] = 0; 2463return test_array [0]; 2464 2465 ; 2466 return 0; 2467} 2468_ACEOF 2469if ac_fn_c_try_compile "$LINENO"; then : 2470 case $ac_type in #( 2471 uint$2_t) : 2472 eval "$3=yes" ;; #( 2473 *) : 2474 eval "$3=\$ac_type" ;; 2475esac 2476fi 2477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2478 if eval test \"x\$"$3"\" = x"no"; then : 2479 2480else 2481 break 2482fi 2483 done 2484fi 2485eval ac_res=\$$3 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2487$as_echo "$ac_res" >&6; } 2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2489 2490} # ac_fn_c_find_uintX_t 2491cat >config.log <<_ACEOF 2492This file contains any messages produced by compilers while 2493running configure, to aid debugging if configure makes a mistake. 2494 2495It was created by WebAuth $as_me 4.7.0, which was 2496generated by GNU Autoconf 2.69. Invocation command line was 2497 2498 $ $0 $@ 2499 2500_ACEOF 2501exec 5>>config.log 2502{ 2503cat <<_ASUNAME 2504## --------- ## 2505## Platform. ## 2506## --------- ## 2507 2508hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2509uname -m = `(uname -m) 2>/dev/null || echo unknown` 2510uname -r = `(uname -r) 2>/dev/null || echo unknown` 2511uname -s = `(uname -s) 2>/dev/null || echo unknown` 2512uname -v = `(uname -v) 2>/dev/null || echo unknown` 2513 2514/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2515/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2516 2517/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2518/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2519/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2520/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2521/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2522/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2523/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2524 2525_ASUNAME 2526 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528for as_dir in $PATH 2529do 2530 IFS=$as_save_IFS 2531 test -z "$as_dir" && as_dir=. 2532 $as_echo "PATH: $as_dir" 2533 done 2534IFS=$as_save_IFS 2535 2536} >&5 2537 2538cat >&5 <<_ACEOF 2539 2540 2541## ----------- ## 2542## Core tests. ## 2543## ----------- ## 2544 2545_ACEOF 2546 2547 2548# Keep a trace of the command line. 2549# Strip out --no-create and --no-recursion so they do not pile up. 2550# Strip out --silent because we don't want to record it for future runs. 2551# Also quote any args containing shell meta-characters. 2552# Make two passes to allow for proper duplicate-argument suppression. 2553ac_configure_args= 2554ac_configure_args0= 2555ac_configure_args1= 2556ac_must_keep_next=false 2557for ac_pass in 1 2 2558do 2559 for ac_arg 2560 do 2561 case $ac_arg in 2562 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2564 | -silent | --silent | --silen | --sile | --sil) 2565 continue ;; 2566 *\'*) 2567 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2568 esac 2569 case $ac_pass in 2570 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2571 2) 2572 as_fn_append ac_configure_args1 " '$ac_arg'" 2573 if test $ac_must_keep_next = true; then 2574 ac_must_keep_next=false # Got value, back to normal. 2575 else 2576 case $ac_arg in 2577 *=* | --config-cache | -C | -disable-* | --disable-* \ 2578 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2579 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2580 | -with-* | --with-* | -without-* | --without-* | --x) 2581 case "$ac_configure_args0 " in 2582 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2583 esac 2584 ;; 2585 -* ) ac_must_keep_next=true ;; 2586 esac 2587 fi 2588 as_fn_append ac_configure_args " '$ac_arg'" 2589 ;; 2590 esac 2591 done 2592done 2593{ ac_configure_args0=; unset ac_configure_args0;} 2594{ ac_configure_args1=; unset ac_configure_args1;} 2595 2596# When interrupted or exit'd, cleanup temporary files, and complete 2597# config.log. We remove comments because anyway the quotes in there 2598# would cause problems or look ugly. 2599# WARNING: Use '\'' to represent an apostrophe within the trap. 2600# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2601trap 'exit_status=$? 2602 # Save into config.log some information that might help in debugging. 2603 { 2604 echo 2605 2606 $as_echo "## ---------------- ## 2607## Cache variables. ## 2608## ---------------- ##" 2609 echo 2610 # The following way of writing the cache mishandles newlines in values, 2611( 2612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2613 eval ac_val=\$$ac_var 2614 case $ac_val in #( 2615 *${as_nl}*) 2616 case $ac_var in #( 2617 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2618$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2619 esac 2620 case $ac_var in #( 2621 _ | IFS | as_nl) ;; #( 2622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2623 *) { eval $ac_var=; unset $ac_var;} ;; 2624 esac ;; 2625 esac 2626 done 2627 (set) 2>&1 | 2628 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2629 *${as_nl}ac_space=\ *) 2630 sed -n \ 2631 "s/'\''/'\''\\\\'\'''\''/g; 2632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2633 ;; #( 2634 *) 2635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2636 ;; 2637 esac | 2638 sort 2639) 2640 echo 2641 2642 $as_echo "## ----------------- ## 2643## Output variables. ## 2644## ----------------- ##" 2645 echo 2646 for ac_var in $ac_subst_vars 2647 do 2648 eval ac_val=\$$ac_var 2649 case $ac_val in 2650 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2651 esac 2652 $as_echo "$ac_var='\''$ac_val'\''" 2653 done | sort 2654 echo 2655 2656 if test -n "$ac_subst_files"; then 2657 $as_echo "## ------------------- ## 2658## File substitutions. ## 2659## ------------------- ##" 2660 echo 2661 for ac_var in $ac_subst_files 2662 do 2663 eval ac_val=\$$ac_var 2664 case $ac_val in 2665 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2666 esac 2667 $as_echo "$ac_var='\''$ac_val'\''" 2668 done | sort 2669 echo 2670 fi 2671 2672 if test -s confdefs.h; then 2673 $as_echo "## ----------- ## 2674## confdefs.h. ## 2675## ----------- ##" 2676 echo 2677 cat confdefs.h 2678 echo 2679 fi 2680 test "$ac_signal" != 0 && 2681 $as_echo "$as_me: caught signal $ac_signal" 2682 $as_echo "$as_me: exit $exit_status" 2683 } >&5 2684 rm -f core *.core core.conftest.* && 2685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2686 exit $exit_status 2687' 0 2688for ac_signal in 1 2 13 15; do 2689 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2690done 2691ac_signal=0 2692 2693# confdefs.h avoids OS command line length limits that DEFS can exceed. 2694rm -f -r conftest* confdefs.h 2695 2696$as_echo "/* confdefs.h */" > confdefs.h 2697 2698# Predefined preprocessor variables. 2699 2700cat >>confdefs.h <<_ACEOF 2701#define PACKAGE_NAME "$PACKAGE_NAME" 2702_ACEOF 2703 2704cat >>confdefs.h <<_ACEOF 2705#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2706_ACEOF 2707 2708cat >>confdefs.h <<_ACEOF 2709#define PACKAGE_VERSION "$PACKAGE_VERSION" 2710_ACEOF 2711 2712cat >>confdefs.h <<_ACEOF 2713#define PACKAGE_STRING "$PACKAGE_STRING" 2714_ACEOF 2715 2716cat >>confdefs.h <<_ACEOF 2717#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2718_ACEOF 2719 2720cat >>confdefs.h <<_ACEOF 2721#define PACKAGE_URL "$PACKAGE_URL" 2722_ACEOF 2723 2724 2725# Let the site file select an alternate cache file if it wants to. 2726# Prefer an explicitly selected file to automatically selected ones. 2727ac_site_file1=NONE 2728ac_site_file2=NONE 2729if test -n "$CONFIG_SITE"; then 2730 # We do not want a PATH search for config.site. 2731 case $CONFIG_SITE in #(( 2732 -*) ac_site_file1=./$CONFIG_SITE;; 2733 */*) ac_site_file1=$CONFIG_SITE;; 2734 *) ac_site_file1=./$CONFIG_SITE;; 2735 esac 2736elif test "x$prefix" != xNONE; then 2737 ac_site_file1=$prefix/share/config.site 2738 ac_site_file2=$prefix/etc/config.site 2739else 2740 ac_site_file1=$ac_default_prefix/share/config.site 2741 ac_site_file2=$ac_default_prefix/etc/config.site 2742fi 2743for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2744do 2745 test "x$ac_site_file" = xNONE && continue 2746 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2748$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2749 sed 's/^/| /' "$ac_site_file" >&5 2750 . "$ac_site_file" \ 2751 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2753as_fn_error $? "failed to load site script $ac_site_file 2754See \`config.log' for more details" "$LINENO" 5; } 2755 fi 2756done 2757 2758if test -r "$cache_file"; then 2759 # Some versions of bash will fail to source /dev/null (special files 2760 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2761 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2763$as_echo "$as_me: loading cache $cache_file" >&6;} 2764 case $cache_file in 2765 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2766 *) . "./$cache_file";; 2767 esac 2768 fi 2769else 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2771$as_echo "$as_me: creating cache $cache_file" >&6;} 2772 >$cache_file 2773fi 2774 2775# Check that the precious variables saved in the cache have kept the same 2776# value. 2777ac_cache_corrupted=false 2778for ac_var in $ac_precious_vars; do 2779 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2780 eval ac_new_set=\$ac_env_${ac_var}_set 2781 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2782 eval ac_new_val=\$ac_env_${ac_var}_value 2783 case $ac_old_set,$ac_new_set in 2784 set,) 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2786$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2787 ac_cache_corrupted=: ;; 2788 ,set) 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2790$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2791 ac_cache_corrupted=: ;; 2792 ,);; 2793 *) 2794 if test "x$ac_old_val" != "x$ac_new_val"; then 2795 # differences in whitespace do not lead to failure. 2796 ac_old_val_w=`echo x $ac_old_val` 2797 ac_new_val_w=`echo x $ac_new_val` 2798 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2800$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2801 ac_cache_corrupted=: 2802 else 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2804$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2805 eval $ac_var=\$ac_old_val 2806 fi 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2808$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2810$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2811 fi;; 2812 esac 2813 # Pass precious variables to config.status. 2814 if test "$ac_new_set" = set; then 2815 case $ac_new_val in 2816 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2817 *) ac_arg=$ac_var=$ac_new_val ;; 2818 esac 2819 case " $ac_configure_args " in 2820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2821 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2822 esac 2823 fi 2824done 2825if $ac_cache_corrupted; then 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2829$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2830 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2831fi 2832## -------------------- ## 2833## Main body of script. ## 2834## -------------------- ## 2835 2836ac_ext=c 2837ac_cpp='$CPP $CPPFLAGS' 2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2840ac_compiler_gnu=$ac_cv_c_compiler_gnu 2841 2842 2843ac_aux_dir= 2844for ac_dir in build-aux "$srcdir"/build-aux; do 2845 if test -f "$ac_dir/install-sh"; then 2846 ac_aux_dir=$ac_dir 2847 ac_install_sh="$ac_aux_dir/install-sh -c" 2848 break 2849 elif test -f "$ac_dir/install.sh"; then 2850 ac_aux_dir=$ac_dir 2851 ac_install_sh="$ac_aux_dir/install.sh -c" 2852 break 2853 elif test -f "$ac_dir/shtool"; then 2854 ac_aux_dir=$ac_dir 2855 ac_install_sh="$ac_aux_dir/shtool install -c" 2856 break 2857 fi 2858done 2859if test -z "$ac_aux_dir"; then 2860 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2861fi 2862 2863# These three variables are undocumented and unsupported, 2864# and are intended to be withdrawn in a future Autoconf release. 2865# They can cause serious problems if a builder's source tree is in a directory 2866# whose full name contains unusual characters. 2867ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2868ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2869ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2870 2871 2872 2873 2874am__api_version='1.14' 2875 2876# Find a good install program. We prefer a C program (faster), 2877# so one script is as good as another. But avoid the broken or 2878# incompatible versions: 2879# SysV /etc/install, /usr/sbin/install 2880# SunOS /usr/etc/install 2881# IRIX /sbin/install 2882# AIX /bin/install 2883# AmigaOS /C/install, which installs bootblocks on floppy discs 2884# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2885# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2886# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2887# OS/2's system install, which has a completely different semantic 2888# ./install, which can be erroneously created by make from ./install.sh. 2889# Reject install programs that cannot install multiple files. 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2891$as_echo_n "checking for a BSD-compatible install... " >&6; } 2892if test -z "$INSTALL"; then 2893if ${ac_cv_path_install+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 # Account for people who put trailing slashes in PATH elements. 2902case $as_dir/ in #(( 2903 ./ | .// | /[cC]/* | \ 2904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2905 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2906 /usr/ucb/* ) ;; 2907 *) 2908 # OSF1 and SCO ODT 3.0 have their own names for install. 2909 # Don't use installbsd from OSF since it installs stuff as root 2910 # by default. 2911 for ac_prog in ginstall scoinst install; do 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2914 if test $ac_prog = install && 2915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2916 # AIX install. It has an incompatible calling convention. 2917 : 2918 elif test $ac_prog = install && 2919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2920 # program-specific install script used by HP pwplus--don't use. 2921 : 2922 else 2923 rm -rf conftest.one conftest.two conftest.dir 2924 echo one > conftest.one 2925 echo two > conftest.two 2926 mkdir conftest.dir 2927 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2928 test -s conftest.one && test -s conftest.two && 2929 test -s conftest.dir/conftest.one && 2930 test -s conftest.dir/conftest.two 2931 then 2932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2933 break 3 2934 fi 2935 fi 2936 fi 2937 done 2938 done 2939 ;; 2940esac 2941 2942 done 2943IFS=$as_save_IFS 2944 2945rm -rf conftest.one conftest.two conftest.dir 2946 2947fi 2948 if test "${ac_cv_path_install+set}" = set; then 2949 INSTALL=$ac_cv_path_install 2950 else 2951 # As a last resort, use the slow shell script. Don't cache a 2952 # value for INSTALL within a source directory, because that will 2953 # break other packages using the cache if that directory is 2954 # removed, or if the value is a relative name. 2955 INSTALL=$ac_install_sh 2956 fi 2957fi 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2959$as_echo "$INSTALL" >&6; } 2960 2961# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2962# It thinks the first close brace ends the variable substitution. 2963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2964 2965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2966 2967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2968 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2970$as_echo_n "checking whether build environment is sane... " >&6; } 2971# Reject unsafe characters in $srcdir or the absolute working directory 2972# name. Accept space and tab only in the latter. 2973am_lf=' 2974' 2975case `pwd` in 2976 *[\\\"\#\$\&\'\`$am_lf]*) 2977 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2978esac 2979case $srcdir in 2980 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2981 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2982esac 2983 2984# Do 'set' in a subshell so we don't clobber the current shell's 2985# arguments. Must try -L first in case configure is actually a 2986# symlink; some systems play weird games with the mod time of symlinks 2987# (eg FreeBSD returns the mod time of the symlink's containing 2988# directory). 2989if ( 2990 am_has_slept=no 2991 for am_try in 1 2; do 2992 echo "timestamp, slept: $am_has_slept" > conftest.file 2993 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2994 if test "$*" = "X"; then 2995 # -L didn't work. 2996 set X `ls -t "$srcdir/configure" conftest.file` 2997 fi 2998 if test "$*" != "X $srcdir/configure conftest.file" \ 2999 && test "$*" != "X conftest.file $srcdir/configure"; then 3000 3001 # If neither matched, then we have a broken ls. This can happen 3002 # if, for instance, CONFIG_SHELL is bash and it inherits a 3003 # broken ls alias from the environment. This has actually 3004 # happened. Such a system could not be considered "sane". 3005 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3006 alias in your environment" "$LINENO" 5 3007 fi 3008 if test "$2" = conftest.file || test $am_try -eq 2; then 3009 break 3010 fi 3011 # Just in case. 3012 sleep 1 3013 am_has_slept=yes 3014 done 3015 test "$2" = conftest.file 3016 ) 3017then 3018 # Ok. 3019 : 3020else 3021 as_fn_error $? "newly created file is older than distributed files! 3022Check your system clock" "$LINENO" 5 3023fi 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3025$as_echo "yes" >&6; } 3026# If we didn't sleep, we still need to ensure time stamps of config.status and 3027# generated files are strictly newer. 3028am_sleep_pid= 3029if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3030 ( sleep 1 ) & 3031 am_sleep_pid=$! 3032fi 3033 3034rm -f conftest.file 3035 3036test "$program_prefix" != NONE && 3037 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3038# Use a double $ so make ignores it. 3039test "$program_suffix" != NONE && 3040 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3041# Double any \ or $. 3042# By default was `s,x,x', remove it if useless. 3043ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3044program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3045 3046# expand $ac_aux_dir to an absolute path 3047am_aux_dir=`cd $ac_aux_dir && pwd` 3048 3049if test x"${MISSING+set}" != xset; then 3050 case $am_aux_dir in 3051 *\ * | *\ *) 3052 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3053 *) 3054 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3055 esac 3056fi 3057# Use eval to expand $SHELL 3058if eval "$MISSING --is-lightweight"; then 3059 am_missing_run="$MISSING " 3060else 3061 am_missing_run= 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3063$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3064fi 3065 3066if test x"${install_sh}" != xset; then 3067 case $am_aux_dir in 3068 *\ * | *\ *) 3069 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3070 *) 3071 install_sh="\${SHELL} $am_aux_dir/install-sh" 3072 esac 3073fi 3074 3075# Installed binaries are usually stripped using 'strip' when the user 3076# run "make install-strip". However 'strip' might not be the right 3077# tool to use in cross-compilation environments, therefore Automake 3078# will honor the 'STRIP' environment variable to overrule this program. 3079if test "$cross_compiling" != no; then 3080 if test -n "$ac_tool_prefix"; then 3081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3082set dummy ${ac_tool_prefix}strip; ac_word=$2 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084$as_echo_n "checking for $ac_word... " >&6; } 3085if ${ac_cv_prog_STRIP+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087else 3088 if test -n "$STRIP"; then 3089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3090else 3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092for as_dir in $PATH 3093do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103 done 3104IFS=$as_save_IFS 3105 3106fi 3107fi 3108STRIP=$ac_cv_prog_STRIP 3109if test -n "$STRIP"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3111$as_echo "$STRIP" >&6; } 3112else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115fi 3116 3117 3118fi 3119if test -z "$ac_cv_prog_STRIP"; then 3120 ac_ct_STRIP=$STRIP 3121 # Extract the first word of "strip", so it can be a program name with args. 3122set dummy strip; ac_word=$2 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124$as_echo_n "checking for $ac_word... " >&6; } 3125if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3126 $as_echo_n "(cached) " >&6 3127else 3128 if test -n "$ac_ct_STRIP"; then 3129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3130else 3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132for as_dir in $PATH 3133do 3134 IFS=$as_save_IFS 3135 test -z "$as_dir" && as_dir=. 3136 for ac_exec_ext in '' $ac_executable_extensions; do 3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3138 ac_cv_prog_ac_ct_STRIP="strip" 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3140 break 2 3141 fi 3142done 3143 done 3144IFS=$as_save_IFS 3145 3146fi 3147fi 3148ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3149if test -n "$ac_ct_STRIP"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3151$as_echo "$ac_ct_STRIP" >&6; } 3152else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154$as_echo "no" >&6; } 3155fi 3156 3157 if test "x$ac_ct_STRIP" = x; then 3158 STRIP=":" 3159 else 3160 case $cross_compiling:$ac_tool_warned in 3161yes:) 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3164ac_tool_warned=yes ;; 3165esac 3166 STRIP=$ac_ct_STRIP 3167 fi 3168else 3169 STRIP="$ac_cv_prog_STRIP" 3170fi 3171 3172fi 3173INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3174 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3176$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3177if test -z "$MKDIR_P"; then 3178 if ${ac_cv_path_mkdir+:} false; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_prog in mkdir gmkdir; do 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3189 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3190 'mkdir (GNU coreutils) '* | \ 3191 'mkdir (coreutils) '* | \ 3192 'mkdir (fileutils) '4.1*) 3193 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3194 break 3;; 3195 esac 3196 done 3197 done 3198 done 3199IFS=$as_save_IFS 3200 3201fi 3202 3203 test -d ./--version && rmdir ./--version 3204 if test "${ac_cv_path_mkdir+set}" = set; then 3205 MKDIR_P="$ac_cv_path_mkdir -p" 3206 else 3207 # As a last resort, use the slow shell script. Don't cache a 3208 # value for MKDIR_P within a source directory, because that will 3209 # break other packages using the cache if that directory is 3210 # removed, or if the value is a relative name. 3211 MKDIR_P="$ac_install_sh -d" 3212 fi 3213fi 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3215$as_echo "$MKDIR_P" >&6; } 3216 3217for ac_prog in gawk mawk nawk awk 3218do 3219 # Extract the first word of "$ac_prog", so it can be a program name with args. 3220set dummy $ac_prog; ac_word=$2 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222$as_echo_n "checking for $ac_word... " >&6; } 3223if ${ac_cv_prog_AWK+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -n "$AWK"; then 3227 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3228else 3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3236 ac_cv_prog_AWK="$ac_prog" 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240done 3241 done 3242IFS=$as_save_IFS 3243 3244fi 3245fi 3246AWK=$ac_cv_prog_AWK 3247if test -n "$AWK"; then 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3249$as_echo "$AWK" >&6; } 3250else 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252$as_echo "no" >&6; } 3253fi 3254 3255 3256 test -n "$AWK" && break 3257done 3258 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3260$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3261set x ${MAKE-make} 3262ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3263if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 cat >conftest.make <<\_ACEOF 3267SHELL = /bin/sh 3268all: 3269 @echo '@@@%%%=$(MAKE)=@@@%%%' 3270_ACEOF 3271# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3272case `${MAKE-make} -f conftest.make 2>/dev/null` in 3273 *@@@%%%=?*=@@@%%%*) 3274 eval ac_cv_prog_make_${ac_make}_set=yes;; 3275 *) 3276 eval ac_cv_prog_make_${ac_make}_set=no;; 3277esac 3278rm -f conftest.make 3279fi 3280if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3282$as_echo "yes" >&6; } 3283 SET_MAKE= 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287 SET_MAKE="MAKE=${MAKE-make}" 3288fi 3289 3290rm -rf .tst 2>/dev/null 3291mkdir .tst 2>/dev/null 3292if test -d .tst; then 3293 am__leading_dot=. 3294else 3295 am__leading_dot=_ 3296fi 3297rmdir .tst 2>/dev/null 3298 3299# Check whether --enable-silent-rules was given. 3300if test "${enable_silent_rules+set}" = set; then : 3301 enableval=$enable_silent_rules; 3302fi 3303 3304case $enable_silent_rules in # ((( 3305 yes) AM_DEFAULT_VERBOSITY=0;; 3306 no) AM_DEFAULT_VERBOSITY=1;; 3307 *) AM_DEFAULT_VERBOSITY=1;; 3308esac 3309am_make=${MAKE-make} 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3311$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3312if ${am_cv_make_support_nested_variables+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if $as_echo 'TRUE=$(BAR$(V)) 3316BAR0=false 3317BAR1=true 3318V=1 3319am__doit: 3320 @$(TRUE) 3321.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3322 am_cv_make_support_nested_variables=yes 3323else 3324 am_cv_make_support_nested_variables=no 3325fi 3326fi 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3328$as_echo "$am_cv_make_support_nested_variables" >&6; } 3329if test $am_cv_make_support_nested_variables = yes; then 3330 AM_V='$(V)' 3331 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3332else 3333 AM_V=$AM_DEFAULT_VERBOSITY 3334 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3335fi 3336AM_BACKSLASH='\' 3337 3338if test "`cd $srcdir && pwd`" != "`pwd`"; then 3339 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3340 # is not polluted with repeated "-I." 3341 am__isrc=' -I$(srcdir)' 3342 # test to see if srcdir already configured 3343 if test -f $srcdir/config.status; then 3344 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3345 fi 3346fi 3347 3348# test whether we have cygpath 3349if test -z "$CYGPATH_W"; then 3350 if (cygpath --version) >/dev/null 2>/dev/null; then 3351 CYGPATH_W='cygpath -w' 3352 else 3353 CYGPATH_W=echo 3354 fi 3355fi 3356 3357 3358# Define the identity of the package. 3359 PACKAGE='webauth' 3360 VERSION='4.7.0' 3361 3362 3363cat >>confdefs.h <<_ACEOF 3364#define PACKAGE "$PACKAGE" 3365_ACEOF 3366 3367 3368cat >>confdefs.h <<_ACEOF 3369#define VERSION "$VERSION" 3370_ACEOF 3371 3372# Some tools Automake needs. 3373 3374ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3375 3376 3377AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3378 3379 3380AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3381 3382 3383AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3384 3385 3386MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3387 3388# For better backward compatibility. To be removed once Automake 1.9.x 3389# dies out for good. For more background, see: 3390# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3391# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3392mkdir_p='$(MKDIR_P)' 3393 3394# We need awk for the "check" target. The system "awk" is bad on 3395# some platforms. 3396# Always define AMTAR for backward compatibility. Yes, it's still used 3397# in the wild :-( We should find a proper way to deprecate it ... 3398AMTAR='$${TAR-tar}' 3399 3400 3401# We'll loop over all known methods to create a tar archive until one works. 3402_am_tools='gnutar pax cpio none' 3403 3404am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3405 3406 3407 3408 3409 3410 3411# POSIX will say in a future version that running "rm -f" with no argument 3412# is OK; and we want to be able to make that assumption in our Makefile 3413# recipes. So use an aggressive probe to check that the usage we want is 3414# actually supported "in the wild" to an acceptable degree. 3415# See automake bug#10828. 3416# To make any issue more visible, cause the running configure to be aborted 3417# by default if the 'rm' program in use doesn't match our expectations; the 3418# user can still override this though. 3419if rm -f && rm -fr && rm -rf; then : OK; else 3420 cat >&2 <<'END' 3421Oops! 3422 3423Your 'rm' program seems unable to run without file operands specified 3424on the command line, even when the '-f' option is present. This is contrary 3425to the behaviour of most rm programs out there, and not conforming with 3426the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3427 3428Please tell bug-automake@gnu.org about your system, including the value 3429of your $PATH and any error possibly output before this message. This 3430can help us improve future automake versions. 3431 3432END 3433 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3434 echo 'Configuration will proceed anyway, since you have set the' >&2 3435 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3436 echo >&2 3437 else 3438 cat >&2 <<'END' 3439Aborting the configuration process, to ensure you take notice of the issue. 3440 3441You can download and install GNU coreutils to get an 'rm' implementation 3442that behaves properly: <http://www.gnu.org/software/coreutils/>. 3443 3444If you want to complete the configuration process using your problematic 3445'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3446to "yes", and re-run configure. 3447 3448END 3449 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3450 fi 3451fi 3452 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3454$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3455 # Check whether --enable-maintainer-mode was given. 3456if test "${enable_maintainer_mode+set}" = set; then : 3457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3458else 3459 USE_MAINTAINER_MODE=no 3460fi 3461 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3463$as_echo "$USE_MAINTAINER_MODE" >&6; } 3464 if test $USE_MAINTAINER_MODE = yes; then 3465 MAINTAINER_MODE_TRUE= 3466 MAINTAINER_MODE_FALSE='#' 3467else 3468 MAINTAINER_MODE_TRUE='#' 3469 MAINTAINER_MODE_FALSE= 3470fi 3471 3472 MAINT=$MAINTAINER_MODE_TRUE 3473 3474 3475 3476ac_ext=c 3477ac_cpp='$CPP $CPPFLAGS' 3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3480ac_compiler_gnu=$ac_cv_c_compiler_gnu 3481if test -n "$ac_tool_prefix"; then 3482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3483set dummy ${ac_tool_prefix}gcc; ac_word=$2 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485$as_echo_n "checking for $ac_word... " >&6; } 3486if ${ac_cv_prog_CC+:} false; then : 3487 $as_echo_n "(cached) " >&6 3488else 3489 if test -n "$CC"; then 3490 ac_cv_prog_CC="$CC" # Let the user override the test. 3491else 3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3493for as_dir in $PATH 3494do 3495 IFS=$as_save_IFS 3496 test -z "$as_dir" && as_dir=. 3497 for ac_exec_ext in '' $ac_executable_extensions; do 3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3499 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3501 break 2 3502 fi 3503done 3504 done 3505IFS=$as_save_IFS 3506 3507fi 3508fi 3509CC=$ac_cv_prog_CC 3510if test -n "$CC"; then 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3512$as_echo "$CC" >&6; } 3513else 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515$as_echo "no" >&6; } 3516fi 3517 3518 3519fi 3520if test -z "$ac_cv_prog_CC"; then 3521 ac_ct_CC=$CC 3522 # Extract the first word of "gcc", so it can be a program name with args. 3523set dummy gcc; ac_word=$2 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3525$as_echo_n "checking for $ac_word... " >&6; } 3526if ${ac_cv_prog_ac_ct_CC+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 if test -n "$ac_ct_CC"; then 3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3531else 3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3533for as_dir in $PATH 3534do 3535 IFS=$as_save_IFS 3536 test -z "$as_dir" && as_dir=. 3537 for ac_exec_ext in '' $ac_executable_extensions; do 3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3539 ac_cv_prog_ac_ct_CC="gcc" 3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3541 break 2 3542 fi 3543done 3544 done 3545IFS=$as_save_IFS 3546 3547fi 3548fi 3549ac_ct_CC=$ac_cv_prog_ac_ct_CC 3550if test -n "$ac_ct_CC"; then 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3552$as_echo "$ac_ct_CC" >&6; } 3553else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3555$as_echo "no" >&6; } 3556fi 3557 3558 if test "x$ac_ct_CC" = x; then 3559 CC="" 3560 else 3561 case $cross_compiling:$ac_tool_warned in 3562yes:) 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3565ac_tool_warned=yes ;; 3566esac 3567 CC=$ac_ct_CC 3568 fi 3569else 3570 CC="$ac_cv_prog_CC" 3571fi 3572 3573if test -z "$CC"; then 3574 if test -n "$ac_tool_prefix"; then 3575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3576set dummy ${ac_tool_prefix}cc; ac_word=$2 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3578$as_echo_n "checking for $ac_word... " >&6; } 3579if ${ac_cv_prog_CC+:} false; then : 3580 $as_echo_n "(cached) " >&6 3581else 3582 if test -n "$CC"; then 3583 ac_cv_prog_CC="$CC" # Let the user override the test. 3584else 3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3586for as_dir in $PATH 3587do 3588 IFS=$as_save_IFS 3589 test -z "$as_dir" && as_dir=. 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3592 ac_cv_prog_CC="${ac_tool_prefix}cc" 3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597 done 3598IFS=$as_save_IFS 3599 3600fi 3601fi 3602CC=$ac_cv_prog_CC 3603if test -n "$CC"; then 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3605$as_echo "$CC" >&6; } 3606else 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608$as_echo "no" >&6; } 3609fi 3610 3611 3612 fi 3613fi 3614if test -z "$CC"; then 3615 # Extract the first word of "cc", so it can be a program name with args. 3616set dummy cc; ac_word=$2 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3618$as_echo_n "checking for $ac_word... " >&6; } 3619if ${ac_cv_prog_CC+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 if test -n "$CC"; then 3623 ac_cv_prog_CC="$CC" # Let the user override the test. 3624else 3625 ac_prog_rejected=no 3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3627for as_dir in $PATH 3628do 3629 IFS=$as_save_IFS 3630 test -z "$as_dir" && as_dir=. 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3634 ac_prog_rejected=yes 3635 continue 3636 fi 3637 ac_cv_prog_CC="cc" 3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3639 break 2 3640 fi 3641done 3642 done 3643IFS=$as_save_IFS 3644 3645if test $ac_prog_rejected = yes; then 3646 # We found a bogon in the path, so make sure we never use it. 3647 set dummy $ac_cv_prog_CC 3648 shift 3649 if test $# != 0; then 3650 # We chose a different compiler from the bogus one. 3651 # However, it has the same basename, so the bogon will be chosen 3652 # first if we set CC to just the basename; use the full file name. 3653 shift 3654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3655 fi 3656fi 3657fi 3658fi 3659CC=$ac_cv_prog_CC 3660if test -n "$CC"; then 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3662$as_echo "$CC" >&6; } 3663else 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3665$as_echo "no" >&6; } 3666fi 3667 3668 3669fi 3670if test -z "$CC"; then 3671 if test -n "$ac_tool_prefix"; then 3672 for ac_prog in cl.exe 3673 do 3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3677$as_echo_n "checking for $ac_word... " >&6; } 3678if ${ac_cv_prog_CC+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 if test -n "$CC"; then 3682 ac_cv_prog_CC="$CC" # Let the user override the test. 3683else 3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685for as_dir in $PATH 3686do 3687 IFS=$as_save_IFS 3688 test -z "$as_dir" && as_dir=. 3689 for ac_exec_ext in '' $ac_executable_extensions; do 3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3693 break 2 3694 fi 3695done 3696 done 3697IFS=$as_save_IFS 3698 3699fi 3700fi 3701CC=$ac_cv_prog_CC 3702if test -n "$CC"; then 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3704$as_echo "$CC" >&6; } 3705else 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707$as_echo "no" >&6; } 3708fi 3709 3710 3711 test -n "$CC" && break 3712 done 3713fi 3714if test -z "$CC"; then 3715 ac_ct_CC=$CC 3716 for ac_prog in cl.exe 3717do 3718 # Extract the first word of "$ac_prog", so it can be a program name with args. 3719set dummy $ac_prog; ac_word=$2 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721$as_echo_n "checking for $ac_word... " >&6; } 3722if ${ac_cv_prog_ac_ct_CC+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -n "$ac_ct_CC"; then 3726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3727else 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_ac_ct_CC="$ac_prog" 3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743fi 3744fi 3745ac_ct_CC=$ac_cv_prog_ac_ct_CC 3746if test -n "$ac_ct_CC"; then 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3748$as_echo "$ac_ct_CC" >&6; } 3749else 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752fi 3753 3754 3755 test -n "$ac_ct_CC" && break 3756done 3757 3758 if test "x$ac_ct_CC" = x; then 3759 CC="" 3760 else 3761 case $cross_compiling:$ac_tool_warned in 3762yes:) 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3765ac_tool_warned=yes ;; 3766esac 3767 CC=$ac_ct_CC 3768 fi 3769fi 3770 3771fi 3772 3773 3774test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3776as_fn_error $? "no acceptable C compiler found in \$PATH 3777See \`config.log' for more details" "$LINENO" 5; } 3778 3779# Provide some information about the compiler. 3780$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3781set X $ac_compile 3782ac_compiler=$2 3783for ac_option in --version -v -V -qversion; do 3784 { { ac_try="$ac_compiler $ac_option >&5" 3785case "(($ac_try" in 3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3787 *) ac_try_echo=$ac_try;; 3788esac 3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3790$as_echo "$ac_try_echo"; } >&5 3791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3792 ac_status=$? 3793 if test -s conftest.err; then 3794 sed '10a\ 3795... rest of stderr output deleted ... 3796 10q' conftest.err >conftest.er1 3797 cat conftest.er1 >&5 3798 fi 3799 rm -f conftest.er1 conftest.err 3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; } 3802done 3803 3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806 3807int 3808main () 3809{ 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815ac_clean_files_save=$ac_clean_files 3816ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3817# Try to create an executable without -o first, disregard a.out. 3818# It will help us diagnose broken compilers, and finding out an intuition 3819# of exeext. 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3821$as_echo_n "checking whether the C compiler works... " >&6; } 3822ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3823 3824# The possible output files: 3825ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3826 3827ac_rmfiles= 3828for ac_file in $ac_files 3829do 3830 case $ac_file in 3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3832 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3833 esac 3834done 3835rm -f $ac_rmfiles 3836 3837if { { ac_try="$ac_link_default" 3838case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_link_default") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; }; then : 3848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3849# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3850# in a Makefile. We should not override ac_cv_exeext if it was cached, 3851# so that the user can short-circuit this test for compilers unknown to 3852# Autoconf. 3853for ac_file in $ac_files '' 3854do 3855 test -f "$ac_file" || continue 3856 case $ac_file in 3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3858 ;; 3859 [ab].out ) 3860 # We found the default executable, but exeext='' is most 3861 # certainly right. 3862 break;; 3863 *.* ) 3864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3865 then :; else 3866 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3867 fi 3868 # We set ac_cv_exeext here because the later test for it is not 3869 # safe: cross compilers may not add the suffix if given an `-o' 3870 # argument, so we may need to know it at that point already. 3871 # Even if this section looks crufty: it has the advantage of 3872 # actually working. 3873 break;; 3874 * ) 3875 break;; 3876 esac 3877done 3878test "$ac_cv_exeext" = no && ac_cv_exeext= 3879 3880else 3881 ac_file='' 3882fi 3883if test -z "$ac_file"; then : 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3885$as_echo "no" >&6; } 3886$as_echo "$as_me: failed program was:" >&5 3887sed 's/^/| /' conftest.$ac_ext >&5 3888 3889{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3891as_fn_error 77 "C compiler cannot create executables 3892See \`config.log' for more details" "$LINENO" 5; } 3893else 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3895$as_echo "yes" >&6; } 3896fi 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3898$as_echo_n "checking for C compiler default output file name... " >&6; } 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3900$as_echo "$ac_file" >&6; } 3901ac_exeext=$ac_cv_exeext 3902 3903rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3904ac_clean_files=$ac_clean_files_save 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3906$as_echo_n "checking for suffix of executables... " >&6; } 3907if { { ac_try="$ac_link" 3908case "(($ac_try" in 3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3910 *) ac_try_echo=$ac_try;; 3911esac 3912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3913$as_echo "$ac_try_echo"; } >&5 3914 (eval "$ac_link") 2>&5 3915 ac_status=$? 3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3917 test $ac_status = 0; }; then : 3918 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3919# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3920# work properly (i.e., refer to `conftest.exe'), while it won't with 3921# `rm'. 3922for ac_file in conftest.exe conftest conftest.*; do 3923 test -f "$ac_file" || continue 3924 case $ac_file in 3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3927 break;; 3928 * ) break;; 3929 esac 3930done 3931else 3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3934as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3935See \`config.log' for more details" "$LINENO" 5; } 3936fi 3937rm -f conftest conftest$ac_cv_exeext 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3939$as_echo "$ac_cv_exeext" >&6; } 3940 3941rm -f conftest.$ac_ext 3942EXEEXT=$ac_cv_exeext 3943ac_exeext=$EXEEXT 3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946#include <stdio.h> 3947int 3948main () 3949{ 3950FILE *f = fopen ("conftest.out", "w"); 3951 return ferror (f) || fclose (f) != 0; 3952 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957ac_clean_files="$ac_clean_files conftest.out" 3958# Check that the compiler produces executables we can run. If not, either 3959# the compiler is broken, or we cross compile. 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3961$as_echo_n "checking whether we are cross compiling... " >&6; } 3962if test "$cross_compiling" != yes; then 3963 { { ac_try="$ac_link" 3964case "(($ac_try" in 3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3966 *) ac_try_echo=$ac_try;; 3967esac 3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3969$as_echo "$ac_try_echo"; } >&5 3970 (eval "$ac_link") 2>&5 3971 ac_status=$? 3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3973 test $ac_status = 0; } 3974 if { ac_try='./conftest$ac_cv_exeext' 3975 { { case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978esac 3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3980$as_echo "$ac_try_echo"; } >&5 3981 (eval "$ac_try") 2>&5 3982 ac_status=$? 3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3984 test $ac_status = 0; }; }; then 3985 cross_compiling=no 3986 else 3987 if test "$cross_compiling" = maybe; then 3988 cross_compiling=yes 3989 else 3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3992as_fn_error $? "cannot run C compiled programs. 3993If you meant to cross compile, use \`--host'. 3994See \`config.log' for more details" "$LINENO" 5; } 3995 fi 3996 fi 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3999$as_echo "$cross_compiling" >&6; } 4000 4001rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4002ac_clean_files=$ac_clean_files_save 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4004$as_echo_n "checking for suffix of object files... " >&6; } 4005if ${ac_cv_objext+:} false; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010 4011int 4012main () 4013{ 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019rm -f conftest.o conftest.obj 4020if { { ac_try="$ac_compile" 4021case "(($ac_try" in 4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4023 *) ac_try_echo=$ac_try;; 4024esac 4025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4026$as_echo "$ac_try_echo"; } >&5 4027 (eval "$ac_compile") 2>&5 4028 ac_status=$? 4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4030 test $ac_status = 0; }; then : 4031 for ac_file in conftest.o conftest.obj conftest.*; do 4032 test -f "$ac_file" || continue; 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4036 break;; 4037 esac 4038done 4039else 4040 $as_echo "$as_me: failed program was:" >&5 4041sed 's/^/| /' conftest.$ac_ext >&5 4042 4043{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4045as_fn_error $? "cannot compute suffix of object files: cannot compile 4046See \`config.log' for more details" "$LINENO" 5; } 4047fi 4048rm -f conftest.$ac_cv_objext conftest.$ac_ext 4049fi 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4051$as_echo "$ac_cv_objext" >&6; } 4052OBJEXT=$ac_cv_objext 4053ac_objext=$OBJEXT 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4055$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4056if ${ac_cv_c_compiler_gnu+:} false; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061 4062int 4063main () 4064{ 4065#ifndef __GNUC__ 4066 choke me 4067#endif 4068 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073if ac_fn_c_try_compile "$LINENO"; then : 4074 ac_compiler_gnu=yes 4075else 4076 ac_compiler_gnu=no 4077fi 4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4079ac_cv_c_compiler_gnu=$ac_compiler_gnu 4080 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4083$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4084if test $ac_compiler_gnu = yes; then 4085 GCC=yes 4086else 4087 GCC= 4088fi 4089ac_test_CFLAGS=${CFLAGS+set} 4090ac_save_CFLAGS=$CFLAGS 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4092$as_echo_n "checking whether $CC accepts -g... " >&6; } 4093if ${ac_cv_prog_cc_g+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095else 4096 ac_save_c_werror_flag=$ac_c_werror_flag 4097 ac_c_werror_flag=yes 4098 ac_cv_prog_cc_g=no 4099 CFLAGS="-g" 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102 4103int 4104main () 4105{ 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111if ac_fn_c_try_compile "$LINENO"; then : 4112 ac_cv_prog_cc_g=yes 4113else 4114 CFLAGS="" 4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116/* end confdefs.h. */ 4117 4118int 4119main () 4120{ 4121 4122 ; 4123 return 0; 4124} 4125_ACEOF 4126if ac_fn_c_try_compile "$LINENO"; then : 4127 4128else 4129 ac_c_werror_flag=$ac_save_c_werror_flag 4130 CFLAGS="-g" 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133 4134int 4135main () 4136{ 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142if ac_fn_c_try_compile "$LINENO"; then : 4143 ac_cv_prog_cc_g=yes 4144fi 4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150 ac_c_werror_flag=$ac_save_c_werror_flag 4151fi 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4153$as_echo "$ac_cv_prog_cc_g" >&6; } 4154if test "$ac_test_CFLAGS" = set; then 4155 CFLAGS=$ac_save_CFLAGS 4156elif test $ac_cv_prog_cc_g = yes; then 4157 if test "$GCC" = yes; then 4158 CFLAGS="-g -O2" 4159 else 4160 CFLAGS="-g" 4161 fi 4162else 4163 if test "$GCC" = yes; then 4164 CFLAGS="-O2" 4165 else 4166 CFLAGS= 4167 fi 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4170$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4171if ${ac_cv_prog_cc_c89+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 ac_cv_prog_cc_c89=no 4175ac_save_CC=$CC 4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178#include <stdarg.h> 4179#include <stdio.h> 4180struct stat; 4181/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4182struct buf { int x; }; 4183FILE * (*rcsopen) (struct buf *, struct stat *, int); 4184static char *e (p, i) 4185 char **p; 4186 int i; 4187{ 4188 return p[i]; 4189} 4190static char *f (char * (*g) (char **, int), char **p, ...) 4191{ 4192 char *s; 4193 va_list v; 4194 va_start (v,p); 4195 s = g (p, va_arg (v,int)); 4196 va_end (v); 4197 return s; 4198} 4199 4200/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4201 function prototypes and stuff, but not '\xHH' hex character constants. 4202 These don't provoke an error unfortunately, instead are silently treated 4203 as 'x'. The following induces an error, until -std is added to get 4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4205 array size at least. It's necessary to write '\x00'==0 to get something 4206 that's true only with -std. */ 4207int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4208 4209/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4210 inside strings and character constants. */ 4211#define FOO(x) 'x' 4212int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4213 4214int test (int i, double x); 4215struct s1 {int (*f) (int a);}; 4216struct s2 {int (*f) (double a);}; 4217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4218int argc; 4219char **argv; 4220int 4221main () 4222{ 4223return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4230do 4231 CC="$ac_save_CC $ac_arg" 4232 if ac_fn_c_try_compile "$LINENO"; then : 4233 ac_cv_prog_cc_c89=$ac_arg 4234fi 4235rm -f core conftest.err conftest.$ac_objext 4236 test "x$ac_cv_prog_cc_c89" != "xno" && break 4237done 4238rm -f conftest.$ac_ext 4239CC=$ac_save_CC 4240 4241fi 4242# AC_CACHE_VAL 4243case "x$ac_cv_prog_cc_c89" in 4244 x) 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4246$as_echo "none needed" >&6; } ;; 4247 xno) 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4249$as_echo "unsupported" >&6; } ;; 4250 *) 4251 CC="$CC $ac_cv_prog_cc_c89" 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4253$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4254esac 4255if test "x$ac_cv_prog_cc_c89" != xno; then : 4256 4257fi 4258 4259ac_ext=c 4260ac_cpp='$CPP $CPPFLAGS' 4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4263ac_compiler_gnu=$ac_cv_c_compiler_gnu 4264 4265ac_ext=c 4266ac_cpp='$CPP $CPPFLAGS' 4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4269ac_compiler_gnu=$ac_cv_c_compiler_gnu 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4271$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4272if ${am_cv_prog_cc_c_o+:} false; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278int 4279main () 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286 # Make sure it works both with $CC and with simple cc. 4287 # Following AC_PROG_CC_C_O, we do the test twice because some 4288 # compilers refuse to overwrite an existing .o file with -o, 4289 # though they will create one. 4290 am_cv_prog_cc_c_o=yes 4291 for am_i in 1 2; do 4292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4294 ac_status=$? 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); } \ 4297 && test -f conftest2.$ac_objext; then 4298 : OK 4299 else 4300 am_cv_prog_cc_c_o=no 4301 break 4302 fi 4303 done 4304 rm -f core conftest* 4305 unset am_i 4306fi 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4308$as_echo "$am_cv_prog_cc_c_o" >&6; } 4309if test "$am_cv_prog_cc_c_o" != yes; then 4310 # Losing compiler, so override with the script. 4311 # FIXME: It is wrong to rewrite CC. 4312 # But if we don't then we get into trouble of one sort or another. 4313 # A longer-term fix would be to have automake use am__CC in this case, 4314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4315 CC="$am_aux_dir/compile $CC" 4316fi 4317ac_ext=c 4318ac_cpp='$CPP $CPPFLAGS' 4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4321ac_compiler_gnu=$ac_cv_c_compiler_gnu 4322 4323DEPDIR="${am__leading_dot}deps" 4324 4325ac_config_commands="$ac_config_commands depfiles" 4326 4327 4328am_make=${MAKE-make} 4329cat > confinc << 'END' 4330am__doit: 4331 @echo this is the am__doit target 4332.PHONY: am__doit 4333END 4334# If we don't find an include directive, just comment out the code. 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4336$as_echo_n "checking for style of include used by $am_make... " >&6; } 4337am__include="#" 4338am__quote= 4339_am_result=none 4340# First try GNU make style include. 4341echo "include confinc" > confmf 4342# Ignore all kinds of additional output from 'make'. 4343case `$am_make -s -f confmf 2> /dev/null` in #( 4344*the\ am__doit\ target*) 4345 am__include=include 4346 am__quote= 4347 _am_result=GNU 4348 ;; 4349esac 4350# Now try BSD make style include. 4351if test "$am__include" = "#"; then 4352 echo '.include "confinc"' > confmf 4353 case `$am_make -s -f confmf 2> /dev/null` in #( 4354 *the\ am__doit\ target*) 4355 am__include=.include 4356 am__quote="\"" 4357 _am_result=BSD 4358 ;; 4359 esac 4360fi 4361 4362 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4364$as_echo "$_am_result" >&6; } 4365rm -f confinc confmf 4366 4367# Check whether --enable-dependency-tracking was given. 4368if test "${enable_dependency_tracking+set}" = set; then : 4369 enableval=$enable_dependency_tracking; 4370fi 4371 4372if test "x$enable_dependency_tracking" != xno; then 4373 am_depcomp="$ac_aux_dir/depcomp" 4374 AMDEPBACKSLASH='\' 4375 am__nodep='_no' 4376fi 4377 if test "x$enable_dependency_tracking" != xno; then 4378 AMDEP_TRUE= 4379 AMDEP_FALSE='#' 4380else 4381 AMDEP_TRUE='#' 4382 AMDEP_FALSE= 4383fi 4384 4385 4386 4387depcc="$CC" am_compiler_list= 4388 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4390$as_echo_n "checking dependency style of $depcc... " >&6; } 4391if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4395 # We make a subdir and do the tests there. Otherwise we can end up 4396 # making bogus files that we don't know about and never remove. For 4397 # instance it was reported that on HP-UX the gcc test will end up 4398 # making a dummy file named 'D' -- because '-MD' means "put the output 4399 # in D". 4400 rm -rf conftest.dir 4401 mkdir conftest.dir 4402 # Copy depcomp to subdir because otherwise we won't find it if we're 4403 # using a relative directory. 4404 cp "$am_depcomp" conftest.dir 4405 cd conftest.dir 4406 # We will build objects and dependencies in a subdirectory because 4407 # it helps to detect inapplicable dependency modes. For instance 4408 # both Tru64's cc and ICC support -MD to output dependencies as a 4409 # side effect of compilation, but ICC will put the dependencies in 4410 # the current directory while Tru64 will put them in the object 4411 # directory. 4412 mkdir sub 4413 4414 am_cv_CC_dependencies_compiler_type=none 4415 if test "$am_compiler_list" = ""; then 4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4417 fi 4418 am__universal=false 4419 case " $depcc " in #( 4420 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4421 esac 4422 4423 for depmode in $am_compiler_list; do 4424 # Setup a source with many dependencies, because some compilers 4425 # like to wrap large dependency lists on column 80 (with \), and 4426 # we should not choose a depcomp mode which is confused by this. 4427 # 4428 # We need to recreate these files for each test, as the compiler may 4429 # overwrite some of them when testing with obscure command lines. 4430 # This happens at least with the AIX C compiler. 4431 : > sub/conftest.c 4432 for i in 1 2 3 4 5 6; do 4433 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4435 # Solaris 10 /bin/sh. 4436 echo '/* dummy */' > sub/conftst$i.h 4437 done 4438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4439 4440 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4441 # mode. It turns out that the SunPro C++ compiler does not properly 4442 # handle '-M -o', and we need to detect this. Also, some Intel 4443 # versions had trouble with output in subdirs. 4444 am__obj=sub/conftest.${OBJEXT-o} 4445 am__minus_obj="-o $am__obj" 4446 case $depmode in 4447 gcc) 4448 # This depmode causes a compiler race in universal mode. 4449 test "$am__universal" = false || continue 4450 ;; 4451 nosideeffect) 4452 # After this tag, mechanisms are not by side-effect, so they'll 4453 # only be used when explicitly requested. 4454 if test "x$enable_dependency_tracking" = xyes; then 4455 continue 4456 else 4457 break 4458 fi 4459 ;; 4460 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4461 # This compiler won't grok '-c -o', but also, the minuso test has 4462 # not run yet. These depmodes are late enough in the game, and 4463 # so weak that their functioning should not be impacted. 4464 am__obj=conftest.${OBJEXT-o} 4465 am__minus_obj= 4466 ;; 4467 none) break ;; 4468 esac 4469 if depmode=$depmode \ 4470 source=sub/conftest.c object=$am__obj \ 4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4473 >/dev/null 2>conftest.err && 4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4478 # icc doesn't choke on unknown options, it will just issue warnings 4479 # or remarks (even with -Werror). So we grep stderr for any message 4480 # that says an option was ignored or not supported. 4481 # When given -MP, icc 7.0 and 7.1 complain thusly: 4482 # icc: Command line warning: ignoring option '-M'; no argument required 4483 # The diagnosis changed in icc 8.0: 4484 # icc: Command line remark: option '-MP' not supported 4485 if (grep 'ignoring option' conftest.err || 4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4487 am_cv_CC_dependencies_compiler_type=$depmode 4488 break 4489 fi 4490 fi 4491 done 4492 4493 cd .. 4494 rm -rf conftest.dir 4495else 4496 am_cv_CC_dependencies_compiler_type=none 4497fi 4498 4499fi 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4501$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4503 4504 if 4505 test "x$enable_dependency_tracking" != xno \ 4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4507 am__fastdepCC_TRUE= 4508 am__fastdepCC_FALSE='#' 4509else 4510 am__fastdepCC_TRUE='#' 4511 am__fastdepCC_FALSE= 4512fi 4513 4514 4515 4516ac_ext=c 4517ac_cpp='$CPP $CPPFLAGS' 4518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4520ac_compiler_gnu=$ac_cv_c_compiler_gnu 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4522$as_echo_n "checking how to run the C preprocessor... " >&6; } 4523# On Suns, sometimes $CPP names a directory. 4524if test -n "$CPP" && test -d "$CPP"; then 4525 CPP= 4526fi 4527if test -z "$CPP"; then 4528 if ${ac_cv_prog_CPP+:} false; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 # Double quotes because CPP needs to be expanded 4532 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4533 do 4534 ac_preproc_ok=false 4535for ac_c_preproc_warn_flag in '' yes 4536do 4537 # Use a header file that comes with gcc, so configuring glibc 4538 # with a fresh cross-compiler works. 4539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4540 # <limits.h> exists even on freestanding compilers. 4541 # On the NeXT, cc -E runs the code through the compiler's parser, 4542 # not just through cpp. "Syntax error" is here to catch this case. 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545#ifdef __STDC__ 4546# include <limits.h> 4547#else 4548# include <assert.h> 4549#endif 4550 Syntax error 4551_ACEOF 4552if ac_fn_c_try_cpp "$LINENO"; then : 4553 4554else 4555 # Broken: fails on valid input. 4556continue 4557fi 4558rm -f conftest.err conftest.i conftest.$ac_ext 4559 4560 # OK, works on sane cases. Now check whether nonexistent headers 4561 # can be detected and how. 4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4563/* end confdefs.h. */ 4564#include <ac_nonexistent.h> 4565_ACEOF 4566if ac_fn_c_try_cpp "$LINENO"; then : 4567 # Broken: success on invalid input. 4568continue 4569else 4570 # Passes both tests. 4571ac_preproc_ok=: 4572break 4573fi 4574rm -f conftest.err conftest.i conftest.$ac_ext 4575 4576done 4577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4578rm -f conftest.i conftest.err conftest.$ac_ext 4579if $ac_preproc_ok; then : 4580 break 4581fi 4582 4583 done 4584 ac_cv_prog_CPP=$CPP 4585 4586fi 4587 CPP=$ac_cv_prog_CPP 4588else 4589 ac_cv_prog_CPP=$CPP 4590fi 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4592$as_echo "$CPP" >&6; } 4593ac_preproc_ok=false 4594for ac_c_preproc_warn_flag in '' yes 4595do 4596 # Use a header file that comes with gcc, so configuring glibc 4597 # with a fresh cross-compiler works. 4598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4599 # <limits.h> exists even on freestanding compilers. 4600 # On the NeXT, cc -E runs the code through the compiler's parser, 4601 # not just through cpp. "Syntax error" is here to catch this case. 4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4603/* end confdefs.h. */ 4604#ifdef __STDC__ 4605# include <limits.h> 4606#else 4607# include <assert.h> 4608#endif 4609 Syntax error 4610_ACEOF 4611if ac_fn_c_try_cpp "$LINENO"; then : 4612 4613else 4614 # Broken: fails on valid input. 4615continue 4616fi 4617rm -f conftest.err conftest.i conftest.$ac_ext 4618 4619 # OK, works on sane cases. Now check whether nonexistent headers 4620 # can be detected and how. 4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4622/* end confdefs.h. */ 4623#include <ac_nonexistent.h> 4624_ACEOF 4625if ac_fn_c_try_cpp "$LINENO"; then : 4626 # Broken: success on invalid input. 4627continue 4628else 4629 # Passes both tests. 4630ac_preproc_ok=: 4631break 4632fi 4633rm -f conftest.err conftest.i conftest.$ac_ext 4634 4635done 4636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4637rm -f conftest.i conftest.err conftest.$ac_ext 4638if $ac_preproc_ok; then : 4639 4640else 4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4643as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4644See \`config.log' for more details" "$LINENO" 5; } 4645fi 4646 4647ac_ext=c 4648ac_cpp='$CPP $CPPFLAGS' 4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4651ac_compiler_gnu=$ac_cv_c_compiler_gnu 4652 4653 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4655$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4656if ${ac_cv_path_GREP+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if test -z "$GREP"; then 4660 ac_path_GREP_found=false 4661 # Loop through the user's path and test for each of PROGNAME-LIST 4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_prog in grep ggrep; do 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4670 as_fn_executable_p "$ac_path_GREP" || continue 4671# Check for GNU ac_path_GREP and select it if it is found. 4672 # Check for GNU $ac_path_GREP 4673case `"$ac_path_GREP" --version 2>&1` in 4674*GNU*) 4675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4676*) 4677 ac_count=0 4678 $as_echo_n 0123456789 >"conftest.in" 4679 while : 4680 do 4681 cat "conftest.in" "conftest.in" >"conftest.tmp" 4682 mv "conftest.tmp" "conftest.in" 4683 cp "conftest.in" "conftest.nl" 4684 $as_echo 'GREP' >> "conftest.nl" 4685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4687 as_fn_arith $ac_count + 1 && ac_count=$as_val 4688 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4689 # Best one so far, save it but keep looking for a better one 4690 ac_cv_path_GREP="$ac_path_GREP" 4691 ac_path_GREP_max=$ac_count 4692 fi 4693 # 10*(2^10) chars as input seems more than enough 4694 test $ac_count -gt 10 && break 4695 done 4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4697esac 4698 4699 $ac_path_GREP_found && break 3 4700 done 4701 done 4702 done 4703IFS=$as_save_IFS 4704 if test -z "$ac_cv_path_GREP"; then 4705 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4706 fi 4707else 4708 ac_cv_path_GREP=$GREP 4709fi 4710 4711fi 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4713$as_echo "$ac_cv_path_GREP" >&6; } 4714 GREP="$ac_cv_path_GREP" 4715 4716 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4718$as_echo_n "checking for egrep... " >&6; } 4719if ${ac_cv_path_EGREP+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4723 then ac_cv_path_EGREP="$GREP -E" 4724 else 4725 if test -z "$EGREP"; then 4726 ac_path_EGREP_found=false 4727 # Loop through the user's path and test for each of PROGNAME-LIST 4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4730do 4731 IFS=$as_save_IFS 4732 test -z "$as_dir" && as_dir=. 4733 for ac_prog in egrep; do 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4736 as_fn_executable_p "$ac_path_EGREP" || continue 4737# Check for GNU ac_path_EGREP and select it if it is found. 4738 # Check for GNU $ac_path_EGREP 4739case `"$ac_path_EGREP" --version 2>&1` in 4740*GNU*) 4741 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4742*) 4743 ac_count=0 4744 $as_echo_n 0123456789 >"conftest.in" 4745 while : 4746 do 4747 cat "conftest.in" "conftest.in" >"conftest.tmp" 4748 mv "conftest.tmp" "conftest.in" 4749 cp "conftest.in" "conftest.nl" 4750 $as_echo 'EGREP' >> "conftest.nl" 4751 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4753 as_fn_arith $ac_count + 1 && ac_count=$as_val 4754 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4755 # Best one so far, save it but keep looking for a better one 4756 ac_cv_path_EGREP="$ac_path_EGREP" 4757 ac_path_EGREP_max=$ac_count 4758 fi 4759 # 10*(2^10) chars as input seems more than enough 4760 test $ac_count -gt 10 && break 4761 done 4762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4763esac 4764 4765 $ac_path_EGREP_found && break 3 4766 done 4767 done 4768 done 4769IFS=$as_save_IFS 4770 if test -z "$ac_cv_path_EGREP"; then 4771 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4772 fi 4773else 4774 ac_cv_path_EGREP=$EGREP 4775fi 4776 4777 fi 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4780$as_echo "$ac_cv_path_EGREP" >&6; } 4781 EGREP="$ac_cv_path_EGREP" 4782 4783 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4785$as_echo_n "checking for ANSI C header files... " >&6; } 4786if ${ac_cv_header_stdc+:} false; then : 4787 $as_echo_n "(cached) " >&6 4788else 4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4790/* end confdefs.h. */ 4791#include <stdlib.h> 4792#include <stdarg.h> 4793#include <string.h> 4794#include <float.h> 4795 4796int 4797main () 4798{ 4799 4800 ; 4801 return 0; 4802} 4803_ACEOF 4804if ac_fn_c_try_compile "$LINENO"; then : 4805 ac_cv_header_stdc=yes 4806else 4807 ac_cv_header_stdc=no 4808fi 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4810 4811if test $ac_cv_header_stdc = yes; then 4812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815#include <string.h> 4816 4817_ACEOF 4818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4819 $EGREP "memchr" >/dev/null 2>&1; then : 4820 4821else 4822 ac_cv_header_stdc=no 4823fi 4824rm -f conftest* 4825 4826fi 4827 4828if test $ac_cv_header_stdc = yes; then 4829 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4831/* end confdefs.h. */ 4832#include <stdlib.h> 4833 4834_ACEOF 4835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4836 $EGREP "free" >/dev/null 2>&1; then : 4837 4838else 4839 ac_cv_header_stdc=no 4840fi 4841rm -f conftest* 4842 4843fi 4844 4845if test $ac_cv_header_stdc = yes; then 4846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4847 if test "$cross_compiling" = yes; then : 4848 : 4849else 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852#include <ctype.h> 4853#include <stdlib.h> 4854#if ((' ' & 0x0FF) == 0x020) 4855# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4856# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4857#else 4858# define ISLOWER(c) \ 4859 (('a' <= (c) && (c) <= 'i') \ 4860 || ('j' <= (c) && (c) <= 'r') \ 4861 || ('s' <= (c) && (c) <= 'z')) 4862# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4863#endif 4864 4865#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4866int 4867main () 4868{ 4869 int i; 4870 for (i = 0; i < 256; i++) 4871 if (XOR (islower (i), ISLOWER (i)) 4872 || toupper (i) != TOUPPER (i)) 4873 return 2; 4874 return 0; 4875} 4876_ACEOF 4877if ac_fn_c_try_run "$LINENO"; then : 4878 4879else 4880 ac_cv_header_stdc=no 4881fi 4882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4883 conftest.$ac_objext conftest.beam conftest.$ac_ext 4884fi 4885 4886fi 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4889$as_echo "$ac_cv_header_stdc" >&6; } 4890if test $ac_cv_header_stdc = yes; then 4891 4892$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4893 4894fi 4895 4896# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4898 inttypes.h stdint.h unistd.h 4899do : 4900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4901ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4902" 4903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4904 cat >>confdefs.h <<_ACEOF 4905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4906_ACEOF 4907 4908fi 4909 4910done 4911 4912 4913 4914 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4915if test "x$ac_cv_header_minix_config_h" = xyes; then : 4916 MINIX=yes 4917else 4918 MINIX= 4919fi 4920 4921 4922 if test "$MINIX" = yes; then 4923 4924$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4925 4926 4927$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4928 4929 4930$as_echo "#define _MINIX 1" >>confdefs.h 4931 4932 fi 4933 4934 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4936$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4937if ${ac_cv_safe_to_define___extensions__+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942 4943# define __EXTENSIONS__ 1 4944 $ac_includes_default 4945int 4946main () 4947{ 4948 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953if ac_fn_c_try_compile "$LINENO"; then : 4954 ac_cv_safe_to_define___extensions__=yes 4955else 4956 ac_cv_safe_to_define___extensions__=no 4957fi 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959fi 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4961$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4962 test $ac_cv_safe_to_define___extensions__ = yes && 4963 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4964 4965 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4966 4967 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4968 4969 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4970 4971 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4972 4973 4974# Check whether --enable-largefile was given. 4975if test "${enable_largefile+set}" = set; then : 4976 enableval=$enable_largefile; 4977fi 4978 4979if test "$enable_largefile" != no; then 4980 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4982$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4983if ${ac_cv_sys_largefile_CC+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 ac_cv_sys_largefile_CC=no 4987 if test "$GCC" != yes; then 4988 ac_save_CC=$CC 4989 while :; do 4990 # IRIX 6.2 and later do not support large files by default, 4991 # so use the C compiler's -n32 option if that helps. 4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994#include <sys/types.h> 4995 /* Check that off_t can represent 2**63 - 1 correctly. 4996 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4997 since some C++ compilers masquerading as C compilers 4998 incorrectly reject 9223372036854775807. */ 4999#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5001 && LARGE_OFF_T % 2147483647 == 1) 5002 ? 1 : -1]; 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011 if ac_fn_c_try_compile "$LINENO"; then : 5012 break 5013fi 5014rm -f core conftest.err conftest.$ac_objext 5015 CC="$CC -n32" 5016 if ac_fn_c_try_compile "$LINENO"; then : 5017 ac_cv_sys_largefile_CC=' -n32'; break 5018fi 5019rm -f core conftest.err conftest.$ac_objext 5020 break 5021 done 5022 CC=$ac_save_CC 5023 rm -f conftest.$ac_ext 5024 fi 5025fi 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5027$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5028 if test "$ac_cv_sys_largefile_CC" != no; then 5029 CC=$CC$ac_cv_sys_largefile_CC 5030 fi 5031 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5033$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5034if ${ac_cv_sys_file_offset_bits+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 while :; do 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039/* end confdefs.h. */ 5040#include <sys/types.h> 5041 /* Check that off_t can represent 2**63 - 1 correctly. 5042 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5043 since some C++ compilers masquerading as C compilers 5044 incorrectly reject 9223372036854775807. */ 5045#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5047 && LARGE_OFF_T % 2147483647 == 1) 5048 ? 1 : -1]; 5049int 5050main () 5051{ 5052 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057if ac_fn_c_try_compile "$LINENO"; then : 5058 ac_cv_sys_file_offset_bits=no; break 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5062/* end confdefs.h. */ 5063#define _FILE_OFFSET_BITS 64 5064#include <sys/types.h> 5065 /* Check that off_t can represent 2**63 - 1 correctly. 5066 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5067 since some C++ compilers masquerading as C compilers 5068 incorrectly reject 9223372036854775807. */ 5069#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5071 && LARGE_OFF_T % 2147483647 == 1) 5072 ? 1 : -1]; 5073int 5074main () 5075{ 5076 5077 ; 5078 return 0; 5079} 5080_ACEOF 5081if ac_fn_c_try_compile "$LINENO"; then : 5082 ac_cv_sys_file_offset_bits=64; break 5083fi 5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5085 ac_cv_sys_file_offset_bits=unknown 5086 break 5087done 5088fi 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5090$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5091case $ac_cv_sys_file_offset_bits in #( 5092 no | unknown) ;; 5093 *) 5094cat >>confdefs.h <<_ACEOF 5095#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5096_ACEOF 5097;; 5098esac 5099rm -rf conftest* 5100 if test $ac_cv_sys_file_offset_bits = unknown; then 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5102$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5103if ${ac_cv_sys_large_files+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 while :; do 5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109#include <sys/types.h> 5110 /* Check that off_t can represent 2**63 - 1 correctly. 5111 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5112 since some C++ compilers masquerading as C compilers 5113 incorrectly reject 9223372036854775807. */ 5114#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5116 && LARGE_OFF_T % 2147483647 == 1) 5117 ? 1 : -1]; 5118int 5119main () 5120{ 5121 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_compile "$LINENO"; then : 5127 ac_cv_sys_large_files=no; break 5128fi 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132#define _LARGE_FILES 1 5133#include <sys/types.h> 5134 /* Check that off_t can represent 2**63 - 1 correctly. 5135 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5136 since some C++ compilers masquerading as C compilers 5137 incorrectly reject 9223372036854775807. */ 5138#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 5139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5140 && LARGE_OFF_T % 2147483647 == 1) 5141 ? 1 : -1]; 5142int 5143main () 5144{ 5145 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_compile "$LINENO"; then : 5151 ac_cv_sys_large_files=1; break 5152fi 5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5154 ac_cv_sys_large_files=unknown 5155 break 5156done 5157fi 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5159$as_echo "$ac_cv_sys_large_files" >&6; } 5160case $ac_cv_sys_large_files in #( 5161 no | unknown) ;; 5162 *) 5163cat >>confdefs.h <<_ACEOF 5164#define _LARGE_FILES $ac_cv_sys_large_files 5165_ACEOF 5166;; 5167esac 5168rm -rf conftest* 5169 fi 5170 5171 5172fi 5173 5174 5175if test -n "$ac_tool_prefix"; then 5176 for ac_prog in ar lib "link -lib" 5177 do 5178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5179set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5181$as_echo_n "checking for $ac_word... " >&6; } 5182if ${ac_cv_prog_AR+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 if test -n "$AR"; then 5186 ac_cv_prog_AR="$AR" # Let the user override the test. 5187else 5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5189for as_dir in $PATH 5190do 5191 IFS=$as_save_IFS 5192 test -z "$as_dir" && as_dir=. 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5195 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5197 break 2 5198 fi 5199done 5200 done 5201IFS=$as_save_IFS 5202 5203fi 5204fi 5205AR=$ac_cv_prog_AR 5206if test -n "$AR"; then 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5208$as_echo "$AR" >&6; } 5209else 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5211$as_echo "no" >&6; } 5212fi 5213 5214 5215 test -n "$AR" && break 5216 done 5217fi 5218if test -z "$AR"; then 5219 ac_ct_AR=$AR 5220 for ac_prog in ar lib "link -lib" 5221do 5222 # Extract the first word of "$ac_prog", so it can be a program name with args. 5223set dummy $ac_prog; ac_word=$2 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5225$as_echo_n "checking for $ac_word... " >&6; } 5226if ${ac_cv_prog_ac_ct_AR+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 if test -n "$ac_ct_AR"; then 5230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5231else 5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 test -z "$as_dir" && as_dir=. 5237 for ac_exec_ext in '' $ac_executable_extensions; do 5238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5239 ac_cv_prog_ac_ct_AR="$ac_prog" 5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5241 break 2 5242 fi 5243done 5244 done 5245IFS=$as_save_IFS 5246 5247fi 5248fi 5249ac_ct_AR=$ac_cv_prog_ac_ct_AR 5250if test -n "$ac_ct_AR"; then 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5252$as_echo "$ac_ct_AR" >&6; } 5253else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255$as_echo "no" >&6; } 5256fi 5257 5258 5259 test -n "$ac_ct_AR" && break 5260done 5261 5262 if test "x$ac_ct_AR" = x; then 5263 AR="false" 5264 else 5265 case $cross_compiling:$ac_tool_warned in 5266yes:) 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5269ac_tool_warned=yes ;; 5270esac 5271 AR=$ac_ct_AR 5272 fi 5273fi 5274 5275: ${AR=ar} 5276 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5278$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5279if ${am_cv_ar_interface+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281else 5282 ac_ext=c 5283ac_cpp='$CPP $CPPFLAGS' 5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5286ac_compiler_gnu=$ac_cv_c_compiler_gnu 5287 5288 am_cv_ar_interface=ar 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290/* end confdefs.h. */ 5291int some_variable = 0; 5292_ACEOF 5293if ac_fn_c_try_compile "$LINENO"; then : 5294 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5296 (eval $am_ar_try) 2>&5 5297 ac_status=$? 5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5299 test $ac_status = 0; } 5300 if test "$ac_status" -eq 0; then 5301 am_cv_ar_interface=ar 5302 else 5303 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5305 (eval $am_ar_try) 2>&5 5306 ac_status=$? 5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5308 test $ac_status = 0; } 5309 if test "$ac_status" -eq 0; then 5310 am_cv_ar_interface=lib 5311 else 5312 am_cv_ar_interface=unknown 5313 fi 5314 fi 5315 rm -f conftest.lib libconftest.a 5316 5317fi 5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319 ac_ext=c 5320ac_cpp='$CPP $CPPFLAGS' 5321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5323ac_compiler_gnu=$ac_cv_c_compiler_gnu 5324 5325fi 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5327$as_echo "$am_cv_ar_interface" >&6; } 5328 5329case $am_cv_ar_interface in 5330ar) 5331 ;; 5332lib) 5333 # Microsoft lib, so override with the ar-lib wrapper script. 5334 # FIXME: It is wrong to rewrite AR. 5335 # But if we don't then we get into trouble of one sort or another. 5336 # A longer-term fix would be to have automake use am__AR in this case, 5337 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5338 # similar. 5339 AR="$am_aux_dir/ar-lib $AR" 5340 ;; 5341unknown) 5342 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5343 ;; 5344esac 5345 5346 5347case `pwd` in 5348 *\ * | *\ *) 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5350$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5351esac 5352 5353 5354 5355macro_version='2.4.2' 5356macro_revision='1.3337' 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370ltmain="$ac_aux_dir/ltmain.sh" 5371 5372# Make sure we can run config.sub. 5373$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5375 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5377$as_echo_n "checking build system type... " >&6; } 5378if ${ac_cv_build+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 ac_build_alias=$build_alias 5382test "x$ac_build_alias" = x && 5383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5384test "x$ac_build_alias" = x && 5385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5386ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5388 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5391$as_echo "$ac_cv_build" >&6; } 5392case $ac_cv_build in 5393*-*-*) ;; 5394*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5395esac 5396build=$ac_cv_build 5397ac_save_IFS=$IFS; IFS='-' 5398set x $ac_cv_build 5399shift 5400build_cpu=$1 5401build_vendor=$2 5402shift; shift 5403# Remember, the first character of IFS is used to create $*, 5404# except with old shells: 5405build_os=$* 5406IFS=$ac_save_IFS 5407case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5408 5409 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5411$as_echo_n "checking host system type... " >&6; } 5412if ${ac_cv_host+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 if test "x$host_alias" = x; then 5416 ac_cv_host=$ac_cv_build 5417else 5418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5420fi 5421 5422fi 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5424$as_echo "$ac_cv_host" >&6; } 5425case $ac_cv_host in 5426*-*-*) ;; 5427*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5428esac 5429host=$ac_cv_host 5430ac_save_IFS=$IFS; IFS='-' 5431set x $ac_cv_host 5432shift 5433host_cpu=$1 5434host_vendor=$2 5435shift; shift 5436# Remember, the first character of IFS is used to create $*, 5437# except with old shells: 5438host_os=$* 5439IFS=$ac_save_IFS 5440case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5441 5442 5443# Backslashify metacharacters that are still active within 5444# double-quoted strings. 5445sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5446 5447# Same as above, but do not quote variable references. 5448double_quote_subst='s/\(["`\\]\)/\\\1/g' 5449 5450# Sed substitution to delay expansion of an escaped shell variable in a 5451# double_quote_subst'ed string. 5452delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5453 5454# Sed substitution to delay expansion of an escaped single quote. 5455delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5456 5457# Sed substitution to avoid accidental globbing in evaled expressions 5458no_glob_subst='s/\*/\\\*/g' 5459 5460ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5462ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5463 5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5465$as_echo_n "checking how to print strings... " >&6; } 5466# Test print first, because it will be a builtin if present. 5467if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5468 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5469 ECHO='print -r --' 5470elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5471 ECHO='printf %s\n' 5472else 5473 # Use this function as a fallback that always works. 5474 func_fallback_echo () 5475 { 5476 eval 'cat <<_LTECHO_EOF 5477$1 5478_LTECHO_EOF' 5479 } 5480 ECHO='func_fallback_echo' 5481fi 5482 5483# func_echo_all arg... 5484# Invoke $ECHO with all args, space-separated. 5485func_echo_all () 5486{ 5487 $ECHO "" 5488} 5489 5490case "$ECHO" in 5491 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5492$as_echo "printf" >&6; } ;; 5493 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5494$as_echo "print -r" >&6; } ;; 5495 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5496$as_echo "cat" >&6; } ;; 5497esac 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5513$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5514if ${ac_cv_path_SED+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5518 for ac_i in 1 2 3 4 5 6 7; do 5519 ac_script="$ac_script$as_nl$ac_script" 5520 done 5521 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5522 { ac_script=; unset ac_script;} 5523 if test -z "$SED"; then 5524 ac_path_SED_found=false 5525 # Loop through the user's path and test for each of PROGNAME-LIST 5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527for as_dir in $PATH 5528do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_prog in sed gsed; do 5532 for ac_exec_ext in '' $ac_executable_extensions; do 5533 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5534 as_fn_executable_p "$ac_path_SED" || continue 5535# Check for GNU ac_path_SED and select it if it is found. 5536 # Check for GNU $ac_path_SED 5537case `"$ac_path_SED" --version 2>&1` in 5538*GNU*) 5539 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5540*) 5541 ac_count=0 5542 $as_echo_n 0123456789 >"conftest.in" 5543 while : 5544 do 5545 cat "conftest.in" "conftest.in" >"conftest.tmp" 5546 mv "conftest.tmp" "conftest.in" 5547 cp "conftest.in" "conftest.nl" 5548 $as_echo '' >> "conftest.nl" 5549 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5551 as_fn_arith $ac_count + 1 && ac_count=$as_val 5552 if test $ac_count -gt ${ac_path_SED_max-0}; then 5553 # Best one so far, save it but keep looking for a better one 5554 ac_cv_path_SED="$ac_path_SED" 5555 ac_path_SED_max=$ac_count 5556 fi 5557 # 10*(2^10) chars as input seems more than enough 5558 test $ac_count -gt 10 && break 5559 done 5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5561esac 5562 5563 $ac_path_SED_found && break 3 5564 done 5565 done 5566 done 5567IFS=$as_save_IFS 5568 if test -z "$ac_cv_path_SED"; then 5569 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5570 fi 5571else 5572 ac_cv_path_SED=$SED 5573fi 5574 5575fi 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5577$as_echo "$ac_cv_path_SED" >&6; } 5578 SED="$ac_cv_path_SED" 5579 rm -f conftest.sed 5580 5581test -z "$SED" && SED=sed 5582Xsed="$SED -e 1s/^X//" 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5595$as_echo_n "checking for fgrep... " >&6; } 5596if ${ac_cv_path_FGREP+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5600 then ac_cv_path_FGREP="$GREP -F" 5601 else 5602 if test -z "$FGREP"; then 5603 ac_path_FGREP_found=false 5604 # Loop through the user's path and test for each of PROGNAME-LIST 5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5607do 5608 IFS=$as_save_IFS 5609 test -z "$as_dir" && as_dir=. 5610 for ac_prog in fgrep; do 5611 for ac_exec_ext in '' $ac_executable_extensions; do 5612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5613 as_fn_executable_p "$ac_path_FGREP" || continue 5614# Check for GNU ac_path_FGREP and select it if it is found. 5615 # Check for GNU $ac_path_FGREP 5616case `"$ac_path_FGREP" --version 2>&1` in 5617*GNU*) 5618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5619*) 5620 ac_count=0 5621 $as_echo_n 0123456789 >"conftest.in" 5622 while : 5623 do 5624 cat "conftest.in" "conftest.in" >"conftest.tmp" 5625 mv "conftest.tmp" "conftest.in" 5626 cp "conftest.in" "conftest.nl" 5627 $as_echo 'FGREP' >> "conftest.nl" 5628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5630 as_fn_arith $ac_count + 1 && ac_count=$as_val 5631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5632 # Best one so far, save it but keep looking for a better one 5633 ac_cv_path_FGREP="$ac_path_FGREP" 5634 ac_path_FGREP_max=$ac_count 5635 fi 5636 # 10*(2^10) chars as input seems more than enough 5637 test $ac_count -gt 10 && break 5638 done 5639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5640esac 5641 5642 $ac_path_FGREP_found && break 3 5643 done 5644 done 5645 done 5646IFS=$as_save_IFS 5647 if test -z "$ac_cv_path_FGREP"; then 5648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5649 fi 5650else 5651 ac_cv_path_FGREP=$FGREP 5652fi 5653 5654 fi 5655fi 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5657$as_echo "$ac_cv_path_FGREP" >&6; } 5658 FGREP="$ac_cv_path_FGREP" 5659 5660 5661test -z "$GREP" && GREP=grep 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681# Check whether --with-gnu-ld was given. 5682if test "${with_gnu_ld+set}" = set; then : 5683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5684else 5685 with_gnu_ld=no 5686fi 5687 5688ac_prog=ld 5689if test "$GCC" = yes; then 5690 # Check if gcc -print-prog-name=ld gives a path. 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5692$as_echo_n "checking for ld used by $CC... " >&6; } 5693 case $host in 5694 *-*-mingw*) 5695 # gcc leaves a trailing carriage return which upsets mingw 5696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5697 *) 5698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5699 esac 5700 case $ac_prog in 5701 # Accept absolute paths. 5702 [\\/]* | ?:[\\/]*) 5703 re_direlt='/[^/][^/]*/\.\./' 5704 # Canonicalize the pathname of ld 5705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5708 done 5709 test -z "$LD" && LD="$ac_prog" 5710 ;; 5711 "") 5712 # If it fails, then pretend we aren't using GCC. 5713 ac_prog=ld 5714 ;; 5715 *) 5716 # If it is relative, then search for the first ld in PATH. 5717 with_gnu_ld=unknown 5718 ;; 5719 esac 5720elif test "$with_gnu_ld" = yes; then 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5722$as_echo_n "checking for GNU ld... " >&6; } 5723else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5725$as_echo_n "checking for non-GNU ld... " >&6; } 5726fi 5727if ${lt_cv_path_LD+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 if test -z "$LD"; then 5731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5732 for ac_dir in $PATH; do 5733 IFS="$lt_save_ifs" 5734 test -z "$ac_dir" && ac_dir=. 5735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5736 lt_cv_path_LD="$ac_dir/$ac_prog" 5737 # Check to see if the program is GNU ld. I'd rather use --version, 5738 # but apparently some variants of GNU ld only accept -v. 5739 # Break only if it was the GNU/non-GNU ld that we prefer. 5740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5741 *GNU* | *'with BFD'*) 5742 test "$with_gnu_ld" != no && break 5743 ;; 5744 *) 5745 test "$with_gnu_ld" != yes && break 5746 ;; 5747 esac 5748 fi 5749 done 5750 IFS="$lt_save_ifs" 5751else 5752 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5753fi 5754fi 5755 5756LD="$lt_cv_path_LD" 5757if test -n "$LD"; then 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5759$as_echo "$LD" >&6; } 5760else 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762$as_echo "no" >&6; } 5763fi 5764test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5766$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5767if ${lt_cv_prog_gnu_ld+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5771case `$LD -v 2>&1 </dev/null` in 5772*GNU* | *'with BFD'*) 5773 lt_cv_prog_gnu_ld=yes 5774 ;; 5775*) 5776 lt_cv_prog_gnu_ld=no 5777 ;; 5778esac 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5781$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5782with_gnu_ld=$lt_cv_prog_gnu_ld 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5793$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5794if ${lt_cv_path_NM+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 if test -n "$NM"; then 5798 # Let the user override the test. 5799 lt_cv_path_NM="$NM" 5800else 5801 lt_nm_to_check="${ac_tool_prefix}nm" 5802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5803 lt_nm_to_check="$lt_nm_to_check nm" 5804 fi 5805 for lt_tmp_nm in $lt_nm_to_check; do 5806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5808 IFS="$lt_save_ifs" 5809 test -z "$ac_dir" && ac_dir=. 5810 tmp_nm="$ac_dir/$lt_tmp_nm" 5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5812 # Check to see if the nm accepts a BSD-compat flag. 5813 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5814 # nm: unknown option "B" ignored 5815 # Tru64's nm complains that /dev/null is an invalid object file 5816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5817 */dev/null* | *'Invalid file or object type'*) 5818 lt_cv_path_NM="$tmp_nm -B" 5819 break 5820 ;; 5821 *) 5822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5823 */dev/null*) 5824 lt_cv_path_NM="$tmp_nm -p" 5825 break 5826 ;; 5827 *) 5828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5829 continue # so that we can try to find one that supports BSD flags 5830 ;; 5831 esac 5832 ;; 5833 esac 5834 fi 5835 done 5836 IFS="$lt_save_ifs" 5837 done 5838 : ${lt_cv_path_NM=no} 5839fi 5840fi 5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5842$as_echo "$lt_cv_path_NM" >&6; } 5843if test "$lt_cv_path_NM" != "no"; then 5844 NM="$lt_cv_path_NM" 5845else 5846 # Didn't find any BSD compatible name lister, look for dumpbin. 5847 if test -n "$DUMPBIN"; then : 5848 # Let the user override the test. 5849 else 5850 if test -n "$ac_tool_prefix"; then 5851 for ac_prog in dumpbin "link -dump" 5852 do 5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5854set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5856$as_echo_n "checking for $ac_word... " >&6; } 5857if ${ac_cv_prog_DUMPBIN+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 if test -n "$DUMPBIN"; then 5861 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5862else 5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874done 5875 done 5876IFS=$as_save_IFS 5877 5878fi 5879fi 5880DUMPBIN=$ac_cv_prog_DUMPBIN 5881if test -n "$DUMPBIN"; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5883$as_echo "$DUMPBIN" >&6; } 5884else 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887fi 5888 5889 5890 test -n "$DUMPBIN" && break 5891 done 5892fi 5893if test -z "$DUMPBIN"; then 5894 ac_ct_DUMPBIN=$DUMPBIN 5895 for ac_prog in dumpbin "link -dump" 5896do 5897 # Extract the first word of "$ac_prog", so it can be a program name with args. 5898set dummy $ac_prog; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -n "$ac_ct_DUMPBIN"; then 5905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5914 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923fi 5924ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5925if test -n "$ac_ct_DUMPBIN"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5927$as_echo "$ac_ct_DUMPBIN" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932 5933 5934 test -n "$ac_ct_DUMPBIN" && break 5935done 5936 5937 if test "x$ac_ct_DUMPBIN" = x; then 5938 DUMPBIN=":" 5939 else 5940 case $cross_compiling:$ac_tool_warned in 5941yes:) 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5944ac_tool_warned=yes ;; 5945esac 5946 DUMPBIN=$ac_ct_DUMPBIN 5947 fi 5948fi 5949 5950 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5951 *COFF*) 5952 DUMPBIN="$DUMPBIN -symbols" 5953 ;; 5954 *) 5955 DUMPBIN=: 5956 ;; 5957 esac 5958 fi 5959 5960 if test "$DUMPBIN" != ":"; then 5961 NM="$DUMPBIN" 5962 fi 5963fi 5964test -z "$NM" && NM=nm 5965 5966 5967 5968 5969 5970 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5972$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5973if ${lt_cv_nm_interface+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 lt_cv_nm_interface="BSD nm" 5977 echo "int some_variable = 0;" > conftest.$ac_ext 5978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5979 (eval "$ac_compile" 2>conftest.err) 5980 cat conftest.err >&5 5981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5983 cat conftest.err >&5 5984 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5985 cat conftest.out >&5 5986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5987 lt_cv_nm_interface="MS dumpbin" 5988 fi 5989 rm -f conftest* 5990fi 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5992$as_echo "$lt_cv_nm_interface" >&6; } 5993 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5995$as_echo_n "checking whether ln -s works... " >&6; } 5996LN_S=$as_ln_s 5997if test "$LN_S" = "ln -s"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5999$as_echo "yes" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6002$as_echo "no, using $LN_S" >&6; } 6003fi 6004 6005# find the maximum length of command line arguments 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6007$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6008if ${lt_cv_sys_max_cmd_len+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 i=0 6012 teststring="ABCD" 6013 6014 case $build_os in 6015 msdosdjgpp*) 6016 # On DJGPP, this test can blow up pretty badly due to problems in libc 6017 # (any single argument exceeding 2000 bytes causes a buffer overrun 6018 # during glob expansion). Even if it were fixed, the result of this 6019 # check would be larger than it should be. 6020 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6021 ;; 6022 6023 gnu*) 6024 # Under GNU Hurd, this test is not required because there is 6025 # no limit to the length of command line arguments. 6026 # Libtool will interpret -1 as no limit whatsoever 6027 lt_cv_sys_max_cmd_len=-1; 6028 ;; 6029 6030 cygwin* | mingw* | cegcc*) 6031 # On Win9x/ME, this test blows up -- it succeeds, but takes 6032 # about 5 minutes as the teststring grows exponentially. 6033 # Worse, since 9x/ME are not pre-emptively multitasking, 6034 # you end up with a "frozen" computer, even though with patience 6035 # the test eventually succeeds (with a max line length of 256k). 6036 # Instead, let's just punt: use the minimum linelength reported by 6037 # all of the supported platforms: 8192 (on NT/2K/XP). 6038 lt_cv_sys_max_cmd_len=8192; 6039 ;; 6040 6041 mint*) 6042 # On MiNT this can take a long time and run out of memory. 6043 lt_cv_sys_max_cmd_len=8192; 6044 ;; 6045 6046 amigaos*) 6047 # On AmigaOS with pdksh, this test takes hours, literally. 6048 # So we just punt and use a minimum line length of 8192. 6049 lt_cv_sys_max_cmd_len=8192; 6050 ;; 6051 6052 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6053 # This has been around since 386BSD, at least. Likely further. 6054 if test -x /sbin/sysctl; then 6055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6056 elif test -x /usr/sbin/sysctl; then 6057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6058 else 6059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6060 fi 6061 # And add a safety zone 6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6064 ;; 6065 6066 interix*) 6067 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6068 lt_cv_sys_max_cmd_len=196608 6069 ;; 6070 6071 os2*) 6072 # The test takes a long time on OS/2. 6073 lt_cv_sys_max_cmd_len=8192 6074 ;; 6075 6076 osf*) 6077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6079 # nice to cause kernel panics so lets avoid the loop below. 6080 # First set a reasonable default. 6081 lt_cv_sys_max_cmd_len=16384 6082 # 6083 if test -x /sbin/sysconfig; then 6084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6085 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6086 esac 6087 fi 6088 ;; 6089 sco3.2v5*) 6090 lt_cv_sys_max_cmd_len=102400 6091 ;; 6092 sysv5* | sco5v6* | sysv4.2uw2*) 6093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6094 if test -n "$kargmax"; then 6095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6096 else 6097 lt_cv_sys_max_cmd_len=32768 6098 fi 6099 ;; 6100 *) 6101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6102 if test -n "$lt_cv_sys_max_cmd_len" && \ 6103 test undefined != "$lt_cv_sys_max_cmd_len"; then 6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6106 else 6107 # Make teststring a little bigger before we do anything with it. 6108 # a 1K string should be a reasonable start. 6109 for i in 1 2 3 4 5 6 7 8 ; do 6110 teststring=$teststring$teststring 6111 done 6112 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6113 # If test is not a shell built-in, we'll probably end up computing a 6114 # maximum length that is only half of the actual maximum length, but 6115 # we can't tell. 6116 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6117 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6118 test $i != 17 # 1/2 MB should be enough 6119 do 6120 i=`expr $i + 1` 6121 teststring=$teststring$teststring 6122 done 6123 # Only check the string length outside the loop. 6124 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6125 teststring= 6126 # Add a significant safety factor because C++ compilers can tack on 6127 # massive amounts of additional arguments before passing them to the 6128 # linker. It appears as though 1/2 is a usable value. 6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6130 fi 6131 ;; 6132 esac 6133 6134fi 6135 6136if test -n $lt_cv_sys_max_cmd_len ; then 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6138$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6139else 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6141$as_echo "none" >&6; } 6142fi 6143max_cmd_len=$lt_cv_sys_max_cmd_len 6144 6145 6146 6147 6148 6149 6150: ${CP="cp -f"} 6151: ${MV="mv -f"} 6152: ${RM="rm -f"} 6153 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6155$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6156# Try some XSI features 6157xsi_shell=no 6158( _lt_dummy="a/b/c" 6159 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6160 = c,a/b,b/c, \ 6161 && eval 'test $(( 1 + 1 )) -eq 2 \ 6162 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6163 && xsi_shell=yes 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6165$as_echo "$xsi_shell" >&6; } 6166 6167 6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6169$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6170lt_shell_append=no 6171( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6172 >/dev/null 2>&1 \ 6173 && lt_shell_append=yes 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6175$as_echo "$lt_shell_append" >&6; } 6176 6177 6178if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6179 lt_unset=unset 6180else 6181 lt_unset=false 6182fi 6183 6184 6185 6186 6187 6188# test EBCDIC or ASCII 6189case `echo X|tr X '\101'` in 6190 A) # ASCII based system 6191 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6192 lt_SP2NL='tr \040 \012' 6193 lt_NL2SP='tr \015\012 \040\040' 6194 ;; 6195 *) # EBCDIC based system 6196 lt_SP2NL='tr \100 \n' 6197 lt_NL2SP='tr \r\n \100\100' 6198 ;; 6199esac 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6210$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6211if ${lt_cv_to_host_file_cmd+:} false; then : 6212 $as_echo_n "(cached) " >&6 6213else 6214 case $host in 6215 *-*-mingw* ) 6216 case $build in 6217 *-*-mingw* ) # actually msys 6218 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6219 ;; 6220 *-*-cygwin* ) 6221 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6222 ;; 6223 * ) # otherwise, assume *nix 6224 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6225 ;; 6226 esac 6227 ;; 6228 *-*-cygwin* ) 6229 case $build in 6230 *-*-mingw* ) # actually msys 6231 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6232 ;; 6233 *-*-cygwin* ) 6234 lt_cv_to_host_file_cmd=func_convert_file_noop 6235 ;; 6236 * ) # otherwise, assume *nix 6237 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6238 ;; 6239 esac 6240 ;; 6241 * ) # unhandled hosts (and "normal" native builds) 6242 lt_cv_to_host_file_cmd=func_convert_file_noop 6243 ;; 6244esac 6245 6246fi 6247 6248to_host_file_cmd=$lt_cv_to_host_file_cmd 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6250$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6251 6252 6253 6254 6255 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6257$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6258if ${lt_cv_to_tool_file_cmd+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 #assume ordinary cross tools, or native build. 6262lt_cv_to_tool_file_cmd=func_convert_file_noop 6263case $host in 6264 *-*-mingw* ) 6265 case $build in 6266 *-*-mingw* ) # actually msys 6267 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6268 ;; 6269 esac 6270 ;; 6271esac 6272 6273fi 6274 6275to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6277$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6278 6279 6280 6281 6282 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6284$as_echo_n "checking for $LD option to reload object files... " >&6; } 6285if ${lt_cv_ld_reload_flag+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 lt_cv_ld_reload_flag='-r' 6289fi 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6291$as_echo "$lt_cv_ld_reload_flag" >&6; } 6292reload_flag=$lt_cv_ld_reload_flag 6293case $reload_flag in 6294"" | " "*) ;; 6295*) reload_flag=" $reload_flag" ;; 6296esac 6297reload_cmds='$LD$reload_flag -o $output$reload_objs' 6298case $host_os in 6299 cygwin* | mingw* | pw32* | cegcc*) 6300 if test "$GCC" != yes; then 6301 reload_cmds=false 6302 fi 6303 ;; 6304 darwin*) 6305 if test "$GCC" = yes; then 6306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6307 else 6308 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6309 fi 6310 ;; 6311esac 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321if test -n "$ac_tool_prefix"; then 6322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6323set dummy ${ac_tool_prefix}objdump; ac_word=$2 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6325$as_echo_n "checking for $ac_word... " >&6; } 6326if ${ac_cv_prog_OBJDUMP+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 if test -n "$OBJDUMP"; then 6330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6331else 6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6333for as_dir in $PATH 6334do 6335 IFS=$as_save_IFS 6336 test -z "$as_dir" && as_dir=. 6337 for ac_exec_ext in '' $ac_executable_extensions; do 6338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6341 break 2 6342 fi 6343done 6344 done 6345IFS=$as_save_IFS 6346 6347fi 6348fi 6349OBJDUMP=$ac_cv_prog_OBJDUMP 6350if test -n "$OBJDUMP"; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6352$as_echo "$OBJDUMP" >&6; } 6353else 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355$as_echo "no" >&6; } 6356fi 6357 6358 6359fi 6360if test -z "$ac_cv_prog_OBJDUMP"; then 6361 ac_ct_OBJDUMP=$OBJDUMP 6362 # Extract the first word of "objdump", so it can be a program name with args. 6363set dummy objdump; ac_word=$2 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6365$as_echo_n "checking for $ac_word... " >&6; } 6366if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6367 $as_echo_n "(cached) " >&6 6368else 6369 if test -n "$ac_ct_OBJDUMP"; then 6370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6371else 6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6373for as_dir in $PATH 6374do 6375 IFS=$as_save_IFS 6376 test -z "$as_dir" && as_dir=. 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6379 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6381 break 2 6382 fi 6383done 6384 done 6385IFS=$as_save_IFS 6386 6387fi 6388fi 6389ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6390if test -n "$ac_ct_OBJDUMP"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6392$as_echo "$ac_ct_OBJDUMP" >&6; } 6393else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6395$as_echo "no" >&6; } 6396fi 6397 6398 if test "x$ac_ct_OBJDUMP" = x; then 6399 OBJDUMP="false" 6400 else 6401 case $cross_compiling:$ac_tool_warned in 6402yes:) 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6405ac_tool_warned=yes ;; 6406esac 6407 OBJDUMP=$ac_ct_OBJDUMP 6408 fi 6409else 6410 OBJDUMP="$ac_cv_prog_OBJDUMP" 6411fi 6412 6413test -z "$OBJDUMP" && OBJDUMP=objdump 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6424$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6425if ${lt_cv_deplibs_check_method+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 lt_cv_file_magic_cmd='$MAGIC_CMD' 6429lt_cv_file_magic_test_file= 6430lt_cv_deplibs_check_method='unknown' 6431# Need to set the preceding variable on all platforms that support 6432# interlibrary dependencies. 6433# 'none' -- dependencies not supported. 6434# `unknown' -- same as none, but documents that we really don't know. 6435# 'pass_all' -- all dependencies passed with no checks. 6436# 'test_compile' -- check by making test program. 6437# 'file_magic [[regex]]' -- check by looking for files in library path 6438# which responds to the $file_magic_cmd with a given extended regex. 6439# If you have `file' or equivalent on your system and you're not sure 6440# whether `pass_all' will *always* work, you probably want this one. 6441 6442case $host_os in 6443aix[4-9]*) 6444 lt_cv_deplibs_check_method=pass_all 6445 ;; 6446 6447beos*) 6448 lt_cv_deplibs_check_method=pass_all 6449 ;; 6450 6451bsdi[45]*) 6452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6453 lt_cv_file_magic_cmd='/usr/bin/file -L' 6454 lt_cv_file_magic_test_file=/shlib/libc.so 6455 ;; 6456 6457cygwin*) 6458 # func_win32_libid is a shell function defined in ltmain.sh 6459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6460 lt_cv_file_magic_cmd='func_win32_libid' 6461 ;; 6462 6463mingw* | pw32*) 6464 # Base MSYS/MinGW do not provide the 'file' command needed by 6465 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6466 # unless we find 'file', for example because we are cross-compiling. 6467 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6468 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6470 lt_cv_file_magic_cmd='func_win32_libid' 6471 else 6472 # Keep this pattern in sync with the one in func_win32_libid. 6473 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6474 lt_cv_file_magic_cmd='$OBJDUMP -f' 6475 fi 6476 ;; 6477 6478cegcc*) 6479 # use the weaker test based on 'objdump'. See mingw*. 6480 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6481 lt_cv_file_magic_cmd='$OBJDUMP -f' 6482 ;; 6483 6484darwin* | rhapsody*) 6485 lt_cv_deplibs_check_method=pass_all 6486 ;; 6487 6488freebsd* | dragonfly*) 6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6490 case $host_cpu in 6491 i*86 ) 6492 # Not sure whether the presence of OpenBSD here was a mistake. 6493 # Let's accept both of them until this is cleared up. 6494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6495 lt_cv_file_magic_cmd=/usr/bin/file 6496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6497 ;; 6498 esac 6499 else 6500 lt_cv_deplibs_check_method=pass_all 6501 fi 6502 ;; 6503 6504haiku*) 6505 lt_cv_deplibs_check_method=pass_all 6506 ;; 6507 6508hpux10.20* | hpux11*) 6509 lt_cv_file_magic_cmd=/usr/bin/file 6510 case $host_cpu in 6511 ia64*) 6512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6513 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6514 ;; 6515 hppa*64*) 6516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6517 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6518 ;; 6519 *) 6520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6521 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6522 ;; 6523 esac 6524 ;; 6525 6526interix[3-9]*) 6527 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6529 ;; 6530 6531irix5* | irix6* | nonstopux*) 6532 case $LD in 6533 *-32|*"-32 ") libmagic=32-bit;; 6534 *-n32|*"-n32 ") libmagic=N32;; 6535 *-64|*"-64 ") libmagic=64-bit;; 6536 *) libmagic=never-match;; 6537 esac 6538 lt_cv_deplibs_check_method=pass_all 6539 ;; 6540 6541# This must be glibc/ELF. 6542linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6543 lt_cv_deplibs_check_method=pass_all 6544 ;; 6545 6546netbsd* | netbsdelf*-gnu) 6547 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6549 else 6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6551 fi 6552 ;; 6553 6554newos6*) 6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6556 lt_cv_file_magic_cmd=/usr/bin/file 6557 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6558 ;; 6559 6560*nto* | *qnx*) 6561 lt_cv_deplibs_check_method=pass_all 6562 ;; 6563 6564openbsd*) 6565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6567 else 6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6569 fi 6570 ;; 6571 6572osf3* | osf4* | osf5*) 6573 lt_cv_deplibs_check_method=pass_all 6574 ;; 6575 6576rdos*) 6577 lt_cv_deplibs_check_method=pass_all 6578 ;; 6579 6580solaris*) 6581 lt_cv_deplibs_check_method=pass_all 6582 ;; 6583 6584sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6585 lt_cv_deplibs_check_method=pass_all 6586 ;; 6587 6588sysv4 | sysv4.3*) 6589 case $host_vendor in 6590 motorola) 6591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6593 ;; 6594 ncr) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 sequent) 6598 lt_cv_file_magic_cmd='/bin/file' 6599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6600 ;; 6601 sni) 6602 lt_cv_file_magic_cmd='/bin/file' 6603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6604 lt_cv_file_magic_test_file=/lib/libc.so 6605 ;; 6606 siemens) 6607 lt_cv_deplibs_check_method=pass_all 6608 ;; 6609 pc) 6610 lt_cv_deplibs_check_method=pass_all 6611 ;; 6612 esac 6613 ;; 6614 6615tpf*) 6616 lt_cv_deplibs_check_method=pass_all 6617 ;; 6618esac 6619 6620fi 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6622$as_echo "$lt_cv_deplibs_check_method" >&6; } 6623 6624file_magic_glob= 6625want_nocaseglob=no 6626if test "$build" = "$host"; then 6627 case $host_os in 6628 mingw* | pw32*) 6629 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6630 want_nocaseglob=yes 6631 else 6632 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6633 fi 6634 ;; 6635 esac 6636fi 6637 6638file_magic_cmd=$lt_cv_file_magic_cmd 6639deplibs_check_method=$lt_cv_deplibs_check_method 6640test -z "$deplibs_check_method" && deplibs_check_method=unknown 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663if test -n "$ac_tool_prefix"; then 6664 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6665set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667$as_echo_n "checking for $ac_word... " >&6; } 6668if ${ac_cv_prog_DLLTOOL+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 if test -n "$DLLTOOL"; then 6672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6673else 6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6675for as_dir in $PATH 6676do 6677 IFS=$as_save_IFS 6678 test -z "$as_dir" && as_dir=. 6679 for ac_exec_ext in '' $ac_executable_extensions; do 6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6681 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6683 break 2 6684 fi 6685done 6686 done 6687IFS=$as_save_IFS 6688 6689fi 6690fi 6691DLLTOOL=$ac_cv_prog_DLLTOOL 6692if test -n "$DLLTOOL"; then 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6694$as_echo "$DLLTOOL" >&6; } 6695else 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697$as_echo "no" >&6; } 6698fi 6699 6700 6701fi 6702if test -z "$ac_cv_prog_DLLTOOL"; then 6703 ac_ct_DLLTOOL=$DLLTOOL 6704 # Extract the first word of "dlltool", so it can be a program name with args. 6705set dummy dlltool; ac_word=$2 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707$as_echo_n "checking for $ac_word... " >&6; } 6708if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 if test -n "$ac_ct_DLLTOOL"; then 6712 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6713else 6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6715for as_dir in $PATH 6716do 6717 IFS=$as_save_IFS 6718 test -z "$as_dir" && as_dir=. 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729fi 6730fi 6731ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6732if test -n "$ac_ct_DLLTOOL"; then 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6734$as_echo "$ac_ct_DLLTOOL" >&6; } 6735else 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6737$as_echo "no" >&6; } 6738fi 6739 6740 if test "x$ac_ct_DLLTOOL" = x; then 6741 DLLTOOL="false" 6742 else 6743 case $cross_compiling:$ac_tool_warned in 6744yes:) 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6747ac_tool_warned=yes ;; 6748esac 6749 DLLTOOL=$ac_ct_DLLTOOL 6750 fi 6751else 6752 DLLTOOL="$ac_cv_prog_DLLTOOL" 6753fi 6754 6755test -z "$DLLTOOL" && DLLTOOL=dlltool 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6767$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6768if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6769 $as_echo_n "(cached) " >&6 6770else 6771 lt_cv_sharedlib_from_linklib_cmd='unknown' 6772 6773case $host_os in 6774cygwin* | mingw* | pw32* | cegcc*) 6775 # two different shell functions defined in ltmain.sh 6776 # decide which to use based on capabilities of $DLLTOOL 6777 case `$DLLTOOL --help 2>&1` in 6778 *--identify-strict*) 6779 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6780 ;; 6781 *) 6782 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6783 ;; 6784 esac 6785 ;; 6786*) 6787 # fallback: assume linklib IS sharedlib 6788 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6789 ;; 6790esac 6791 6792fi 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6794$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6795sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6796test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6797 6798 6799 6800 6801 6802 6803 6804if test -n "$ac_tool_prefix"; then 6805 for ac_prog in ar 6806 do 6807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_AR+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$AR"; then 6815 ac_cv_prog_AR="$AR" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834AR=$ac_cv_prog_AR 6835if test -n "$AR"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6837$as_echo "$AR" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 6844 test -n "$AR" && break 6845 done 6846fi 6847if test -z "$AR"; then 6848 ac_ct_AR=$AR 6849 for ac_prog in ar 6850do 6851 # Extract the first word of "$ac_prog", so it can be a program name with args. 6852set dummy $ac_prog; ac_word=$2 6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6854$as_echo_n "checking for $ac_word... " >&6; } 6855if ${ac_cv_prog_ac_ct_AR+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857else 6858 if test -n "$ac_ct_AR"; then 6859 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6868 ac_cv_prog_ac_ct_AR="$ac_prog" 6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872done 6873 done 6874IFS=$as_save_IFS 6875 6876fi 6877fi 6878ac_ct_AR=$ac_cv_prog_ac_ct_AR 6879if test -n "$ac_ct_AR"; then 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6881$as_echo "$ac_ct_AR" >&6; } 6882else 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6884$as_echo "no" >&6; } 6885fi 6886 6887 6888 test -n "$ac_ct_AR" && break 6889done 6890 6891 if test "x$ac_ct_AR" = x; then 6892 AR="false" 6893 else 6894 case $cross_compiling:$ac_tool_warned in 6895yes:) 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6898ac_tool_warned=yes ;; 6899esac 6900 AR=$ac_ct_AR 6901 fi 6902fi 6903 6904: ${AR=ar} 6905: ${AR_FLAGS=cru} 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6918$as_echo_n "checking for archiver @FILE support... " >&6; } 6919if ${lt_cv_ar_at_file+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 lt_cv_ar_at_file=no 6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6924/* end confdefs.h. */ 6925 6926int 6927main () 6928{ 6929 6930 ; 6931 return 0; 6932} 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO"; then : 6935 echo conftest.$ac_objext > conftest.lst 6936 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6938 (eval $lt_ar_try) 2>&5 6939 ac_status=$? 6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6941 test $ac_status = 0; } 6942 if test "$ac_status" -eq 0; then 6943 # Ensure the archiver fails upon bogus file names. 6944 rm -f conftest.$ac_objext libconftest.a 6945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6946 (eval $lt_ar_try) 2>&5 6947 ac_status=$? 6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6949 test $ac_status = 0; } 6950 if test "$ac_status" -ne 0; then 6951 lt_cv_ar_at_file=@ 6952 fi 6953 fi 6954 rm -f conftest.* libconftest.a 6955 6956fi 6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6958 6959fi 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6961$as_echo "$lt_cv_ar_at_file" >&6; } 6962 6963if test "x$lt_cv_ar_at_file" = xno; then 6964 archiver_list_spec= 6965else 6966 archiver_list_spec=$lt_cv_ar_at_file 6967fi 6968 6969 6970 6971 6972 6973 6974 6975if test -n "$ac_tool_prefix"; then 6976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6977set dummy ${ac_tool_prefix}strip; ac_word=$2 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6979$as_echo_n "checking for $ac_word... " >&6; } 6980if ${ac_cv_prog_STRIP+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982else 6983 if test -n "$STRIP"; then 6984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6985else 6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6987for as_dir in $PATH 6988do 6989 IFS=$as_save_IFS 6990 test -z "$as_dir" && as_dir=. 6991 for ac_exec_ext in '' $ac_executable_extensions; do 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6993 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6995 break 2 6996 fi 6997done 6998 done 6999IFS=$as_save_IFS 7000 7001fi 7002fi 7003STRIP=$ac_cv_prog_STRIP 7004if test -n "$STRIP"; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7006$as_echo "$STRIP" >&6; } 7007else 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7009$as_echo "no" >&6; } 7010fi 7011 7012 7013fi 7014if test -z "$ac_cv_prog_STRIP"; then 7015 ac_ct_STRIP=$STRIP 7016 # Extract the first word of "strip", so it can be a program name with args. 7017set dummy strip; ac_word=$2 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7019$as_echo_n "checking for $ac_word... " >&6; } 7020if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 if test -n "$ac_ct_STRIP"; then 7024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 test -z "$as_dir" && as_dir=. 7031 for ac_exec_ext in '' $ac_executable_extensions; do 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7033 ac_cv_prog_ac_ct_STRIP="strip" 7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7035 break 2 7036 fi 7037done 7038 done 7039IFS=$as_save_IFS 7040 7041fi 7042fi 7043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7044if test -n "$ac_ct_STRIP"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7046$as_echo "$ac_ct_STRIP" >&6; } 7047else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050fi 7051 7052 if test "x$ac_ct_STRIP" = x; then 7053 STRIP=":" 7054 else 7055 case $cross_compiling:$ac_tool_warned in 7056yes:) 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7059ac_tool_warned=yes ;; 7060esac 7061 STRIP=$ac_ct_STRIP 7062 fi 7063else 7064 STRIP="$ac_cv_prog_STRIP" 7065fi 7066 7067test -z "$STRIP" && STRIP=: 7068 7069 7070 7071 7072 7073 7074if test -n "$ac_tool_prefix"; then 7075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7076set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7078$as_echo_n "checking for $ac_word... " >&6; } 7079if ${ac_cv_prog_RANLIB+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 if test -n "$RANLIB"; then 7083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7084else 7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097 done 7098IFS=$as_save_IFS 7099 7100fi 7101fi 7102RANLIB=$ac_cv_prog_RANLIB 7103if test -n "$RANLIB"; then 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7105$as_echo "$RANLIB" >&6; } 7106else 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7108$as_echo "no" >&6; } 7109fi 7110 7111 7112fi 7113if test -z "$ac_cv_prog_RANLIB"; then 7114 ac_ct_RANLIB=$RANLIB 7115 # Extract the first word of "ranlib", so it can be a program name with args. 7116set dummy ranlib; ac_word=$2 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7118$as_echo_n "checking for $ac_word... " >&6; } 7119if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 if test -n "$ac_ct_RANLIB"; then 7123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7124else 7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126for as_dir in $PATH 7127do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7132 ac_cv_prog_ac_ct_RANLIB="ranlib" 7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136done 7137 done 7138IFS=$as_save_IFS 7139 7140fi 7141fi 7142ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7143if test -n "$ac_ct_RANLIB"; then 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7145$as_echo "$ac_ct_RANLIB" >&6; } 7146else 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7148$as_echo "no" >&6; } 7149fi 7150 7151 if test "x$ac_ct_RANLIB" = x; then 7152 RANLIB=":" 7153 else 7154 case $cross_compiling:$ac_tool_warned in 7155yes:) 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7158ac_tool_warned=yes ;; 7159esac 7160 RANLIB=$ac_ct_RANLIB 7161 fi 7162else 7163 RANLIB="$ac_cv_prog_RANLIB" 7164fi 7165 7166test -z "$RANLIB" && RANLIB=: 7167 7168 7169 7170 7171 7172 7173# Determine commands to create old-style static archives. 7174old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7175old_postinstall_cmds='chmod 644 $oldlib' 7176old_postuninstall_cmds= 7177 7178if test -n "$RANLIB"; then 7179 case $host_os in 7180 openbsd*) 7181 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7182 ;; 7183 *) 7184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7185 ;; 7186 esac 7187 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7188fi 7189 7190case $host_os in 7191 darwin*) 7192 lock_old_archive_extraction=yes ;; 7193 *) 7194 lock_old_archive_extraction=no ;; 7195esac 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235# If no C compiler was specified, use CC. 7236LTCC=${LTCC-"$CC"} 7237 7238# If no C compiler flags were specified, use CFLAGS. 7239LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7240 7241# Allow CC to be a program name with arguments. 7242compiler=$CC 7243 7244 7245# Check for command to grab the raw symbol name followed by C symbol from nm. 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7247$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7248if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 7252# These are sane defaults that work on at least a few old systems. 7253# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7254 7255# Character class describing NM global symbol codes. 7256symcode='[BCDEGRST]' 7257 7258# Regexp to match symbols that can be accessed directly from C. 7259sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7260 7261# Define system-specific variables. 7262case $host_os in 7263aix*) 7264 symcode='[BCDT]' 7265 ;; 7266cygwin* | mingw* | pw32* | cegcc*) 7267 symcode='[ABCDGISTW]' 7268 ;; 7269hpux*) 7270 if test "$host_cpu" = ia64; then 7271 symcode='[ABCDEGRST]' 7272 fi 7273 ;; 7274irix* | nonstopux*) 7275 symcode='[BCDEGRST]' 7276 ;; 7277osf*) 7278 symcode='[BCDEGQRST]' 7279 ;; 7280solaris*) 7281 symcode='[BDRT]' 7282 ;; 7283sco3.2v5*) 7284 symcode='[DT]' 7285 ;; 7286sysv4.2uw2*) 7287 symcode='[DT]' 7288 ;; 7289sysv5* | sco5v6* | unixware* | OpenUNIX*) 7290 symcode='[ABDT]' 7291 ;; 7292sysv4) 7293 symcode='[DFNSTU]' 7294 ;; 7295esac 7296 7297# If we're using GNU nm, then use its standard symbol codes. 7298case `$NM -V 2>&1` in 7299*GNU* | *'with BFD'*) 7300 symcode='[ABCDGIRSTW]' ;; 7301esac 7302 7303# Transform an extracted symbol line into a proper C declaration. 7304# Some systems (esp. on ia64) link data and code symbols differently, 7305# so use this general approach. 7306lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7307 7308# Transform an extracted symbol line into symbol name and symbol address 7309lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7310lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7311 7312# Handle CRLF in mingw tool chain 7313opt_cr= 7314case $build_os in 7315mingw*) 7316 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7317 ;; 7318esac 7319 7320# Try without a prefix underscore, then with it. 7321for ac_symprfx in "" "_"; do 7322 7323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7324 symxfrm="\\1 $ac_symprfx\\2 \\2" 7325 7326 # Write the raw and C identifiers. 7327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7328 # Fake it for dumpbin and say T for any non-static function 7329 # and D for any global variable. 7330 # Also find C++ and __fastcall symbols from MSVC++, 7331 # which start with @ or ?. 7332 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7333" {last_section=section; section=\$ 3};"\ 7334" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7335" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7336" \$ 0!~/External *\|/{next};"\ 7337" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7338" {if(hide[section]) next};"\ 7339" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7340" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7341" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7342" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7343" ' prfx=^$ac_symprfx" 7344 else 7345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7346 fi 7347 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7348 7349 # Check to see that the pipe works correctly. 7350 pipe_works=no 7351 7352 rm -f conftest* 7353 cat > conftest.$ac_ext <<_LT_EOF 7354#ifdef __cplusplus 7355extern "C" { 7356#endif 7357char nm_test_var; 7358void nm_test_func(void); 7359void nm_test_func(void){} 7360#ifdef __cplusplus 7361} 7362#endif 7363int main(){nm_test_var='a';nm_test_func();return(0);} 7364_LT_EOF 7365 7366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7367 (eval $ac_compile) 2>&5 7368 ac_status=$? 7369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7370 test $ac_status = 0; }; then 7371 # Now try to grab the symbols. 7372 nlist=conftest.nm 7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7374 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7375 ac_status=$? 7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7377 test $ac_status = 0; } && test -s "$nlist"; then 7378 # Try sorting and uniquifying the output. 7379 if sort "$nlist" | uniq > "$nlist"T; then 7380 mv -f "$nlist"T "$nlist" 7381 else 7382 rm -f "$nlist"T 7383 fi 7384 7385 # Make sure that we snagged all the symbols we need. 7386 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7387 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7388 cat <<_LT_EOF > conftest.$ac_ext 7389/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7390#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7391/* DATA imports from DLLs on WIN32 con't be const, because runtime 7392 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7393# define LT_DLSYM_CONST 7394#elif defined(__osf__) 7395/* This system does not cope well with relocations in const data. */ 7396# define LT_DLSYM_CONST 7397#else 7398# define LT_DLSYM_CONST const 7399#endif 7400 7401#ifdef __cplusplus 7402extern "C" { 7403#endif 7404 7405_LT_EOF 7406 # Now generate the symbol file. 7407 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7408 7409 cat <<_LT_EOF >> conftest.$ac_ext 7410 7411/* The mapping between symbol names and symbols. */ 7412LT_DLSYM_CONST struct { 7413 const char *name; 7414 void *address; 7415} 7416lt__PROGRAM__LTX_preloaded_symbols[] = 7417{ 7418 { "@PROGRAM@", (void *) 0 }, 7419_LT_EOF 7420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7421 cat <<\_LT_EOF >> conftest.$ac_ext 7422 {0, (void *) 0} 7423}; 7424 7425/* This works around a problem in FreeBSD linker */ 7426#ifdef FREEBSD_WORKAROUND 7427static const void *lt_preloaded_setup() { 7428 return lt__PROGRAM__LTX_preloaded_symbols; 7429} 7430#endif 7431 7432#ifdef __cplusplus 7433} 7434#endif 7435_LT_EOF 7436 # Now try linking the two files. 7437 mv conftest.$ac_objext conftstm.$ac_objext 7438 lt_globsym_save_LIBS=$LIBS 7439 lt_globsym_save_CFLAGS=$CFLAGS 7440 LIBS="conftstm.$ac_objext" 7441 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7443 (eval $ac_link) 2>&5 7444 ac_status=$? 7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7446 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7447 pipe_works=yes 7448 fi 7449 LIBS=$lt_globsym_save_LIBS 7450 CFLAGS=$lt_globsym_save_CFLAGS 7451 else 7452 echo "cannot find nm_test_func in $nlist" >&5 7453 fi 7454 else 7455 echo "cannot find nm_test_var in $nlist" >&5 7456 fi 7457 else 7458 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7459 fi 7460 else 7461 echo "$progname: failed program was:" >&5 7462 cat conftest.$ac_ext >&5 7463 fi 7464 rm -rf conftest* conftst* 7465 7466 # Do not use the global_symbol_pipe unless it works. 7467 if test "$pipe_works" = yes; then 7468 break 7469 else 7470 lt_cv_sys_global_symbol_pipe= 7471 fi 7472done 7473 7474fi 7475 7476if test -z "$lt_cv_sys_global_symbol_pipe"; then 7477 lt_cv_sys_global_symbol_to_cdecl= 7478fi 7479if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7481$as_echo "failed" >&6; } 7482else 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7484$as_echo "ok" >&6; } 7485fi 7486 7487# Response file support. 7488if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7489 nm_file_list_spec='@' 7490elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7491 nm_file_list_spec='@' 7492fi 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7521$as_echo_n "checking for sysroot... " >&6; } 7522 7523# Check whether --with-sysroot was given. 7524if test "${with_sysroot+set}" = set; then : 7525 withval=$with_sysroot; 7526else 7527 with_sysroot=no 7528fi 7529 7530 7531lt_sysroot= 7532case ${with_sysroot} in #( 7533 yes) 7534 if test "$GCC" = yes; then 7535 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7536 fi 7537 ;; #( 7538 /*) 7539 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7540 ;; #( 7541 no|'') 7542 ;; #( 7543 *) 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7545$as_echo "${with_sysroot}" >&6; } 7546 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7547 ;; 7548esac 7549 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7551$as_echo "${lt_sysroot:-no}" >&6; } 7552 7553 7554 7555 7556 7557# Check whether --enable-libtool-lock was given. 7558if test "${enable_libtool_lock+set}" = set; then : 7559 enableval=$enable_libtool_lock; 7560fi 7561 7562test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7563 7564# Some flags need to be propagated to the compiler or linker for good 7565# libtool support. 7566case $host in 7567ia64-*-hpux*) 7568 # Find out which ABI we are using. 7569 echo 'int i;' > conftest.$ac_ext 7570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7571 (eval $ac_compile) 2>&5 7572 ac_status=$? 7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7574 test $ac_status = 0; }; then 7575 case `/usr/bin/file conftest.$ac_objext` in 7576 *ELF-32*) 7577 HPUX_IA64_MODE="32" 7578 ;; 7579 *ELF-64*) 7580 HPUX_IA64_MODE="64" 7581 ;; 7582 esac 7583 fi 7584 rm -rf conftest* 7585 ;; 7586*-*-irix6*) 7587 # Find out which ABI we are using. 7588 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7590 (eval $ac_compile) 2>&5 7591 ac_status=$? 7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7593 test $ac_status = 0; }; then 7594 if test "$lt_cv_prog_gnu_ld" = yes; then 7595 case `/usr/bin/file conftest.$ac_objext` in 7596 *32-bit*) 7597 LD="${LD-ld} -melf32bsmip" 7598 ;; 7599 *N32*) 7600 LD="${LD-ld} -melf32bmipn32" 7601 ;; 7602 *64-bit*) 7603 LD="${LD-ld} -melf64bmip" 7604 ;; 7605 esac 7606 else 7607 case `/usr/bin/file conftest.$ac_objext` in 7608 *32-bit*) 7609 LD="${LD-ld} -32" 7610 ;; 7611 *N32*) 7612 LD="${LD-ld} -n32" 7613 ;; 7614 *64-bit*) 7615 LD="${LD-ld} -64" 7616 ;; 7617 esac 7618 fi 7619 fi 7620 rm -rf conftest* 7621 ;; 7622 7623x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7624s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7625 # Find out which ABI we are using. 7626 echo 'int i;' > conftest.$ac_ext 7627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7628 (eval $ac_compile) 2>&5 7629 ac_status=$? 7630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7631 test $ac_status = 0; }; then 7632 case `/usr/bin/file conftest.o` in 7633 *32-bit*) 7634 case $host in 7635 x86_64-*kfreebsd*-gnu) 7636 LD="${LD-ld} -m elf_i386_fbsd" 7637 ;; 7638 x86_64-*linux*) 7639 case `/usr/bin/file conftest.o` in 7640 *x86-64*) 7641 LD="${LD-ld} -m elf32_x86_64" 7642 ;; 7643 *) 7644 LD="${LD-ld} -m elf_i386" 7645 ;; 7646 esac 7647 ;; 7648 powerpc64le-*) 7649 LD="${LD-ld} -m elf32lppclinux" 7650 ;; 7651 powerpc64-*) 7652 LD="${LD-ld} -m elf32ppclinux" 7653 ;; 7654 s390x-*linux*) 7655 LD="${LD-ld} -m elf_s390" 7656 ;; 7657 sparc64-*linux*) 7658 LD="${LD-ld} -m elf32_sparc" 7659 ;; 7660 esac 7661 ;; 7662 *64-bit*) 7663 case $host in 7664 x86_64-*kfreebsd*-gnu) 7665 LD="${LD-ld} -m elf_x86_64_fbsd" 7666 ;; 7667 x86_64-*linux*) 7668 LD="${LD-ld} -m elf_x86_64" 7669 ;; 7670 powerpcle-*) 7671 LD="${LD-ld} -m elf64lppc" 7672 ;; 7673 powerpc-*) 7674 LD="${LD-ld} -m elf64ppc" 7675 ;; 7676 s390*-*linux*|s390*-*tpf*) 7677 LD="${LD-ld} -m elf64_s390" 7678 ;; 7679 sparc*-*linux*) 7680 LD="${LD-ld} -m elf64_sparc" 7681 ;; 7682 esac 7683 ;; 7684 esac 7685 fi 7686 rm -rf conftest* 7687 ;; 7688 7689*-*-sco3.2v5*) 7690 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7691 SAVE_CFLAGS="$CFLAGS" 7692 CFLAGS="$CFLAGS -belf" 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7694$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7695if ${lt_cv_cc_needs_belf+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697else 7698 ac_ext=c 7699ac_cpp='$CPP $CPPFLAGS' 7700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7702ac_compiler_gnu=$ac_cv_c_compiler_gnu 7703 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705/* end confdefs.h. */ 7706 7707int 7708main () 7709{ 7710 7711 ; 7712 return 0; 7713} 7714_ACEOF 7715if ac_fn_c_try_link "$LINENO"; then : 7716 lt_cv_cc_needs_belf=yes 7717else 7718 lt_cv_cc_needs_belf=no 7719fi 7720rm -f core conftest.err conftest.$ac_objext \ 7721 conftest$ac_exeext conftest.$ac_ext 7722 ac_ext=c 7723ac_cpp='$CPP $CPPFLAGS' 7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7726ac_compiler_gnu=$ac_cv_c_compiler_gnu 7727 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7730$as_echo "$lt_cv_cc_needs_belf" >&6; } 7731 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7732 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7733 CFLAGS="$SAVE_CFLAGS" 7734 fi 7735 ;; 7736*-*solaris*) 7737 # Find out which ABI we are using. 7738 echo 'int i;' > conftest.$ac_ext 7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7740 (eval $ac_compile) 2>&5 7741 ac_status=$? 7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7743 test $ac_status = 0; }; then 7744 case `/usr/bin/file conftest.o` in 7745 *64-bit*) 7746 case $lt_cv_prog_gnu_ld in 7747 yes*) 7748 case $host in 7749 i?86-*-solaris*) 7750 LD="${LD-ld} -m elf_x86_64" 7751 ;; 7752 sparc*-*-solaris*) 7753 LD="${LD-ld} -m elf64_sparc" 7754 ;; 7755 esac 7756 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7757 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7758 LD="${LD-ld}_sol2" 7759 fi 7760 ;; 7761 *) 7762 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7763 LD="${LD-ld} -64" 7764 fi 7765 ;; 7766 esac 7767 ;; 7768 esac 7769 fi 7770 rm -rf conftest* 7771 ;; 7772esac 7773 7774need_locks="$enable_libtool_lock" 7775 7776if test -n "$ac_tool_prefix"; then 7777 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7778set dummy ${ac_tool_prefix}mt; ac_word=$2 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780$as_echo_n "checking for $ac_word... " >&6; } 7781if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 if test -n "$MANIFEST_TOOL"; then 7785 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 test -z "$as_dir" && as_dir=. 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7794 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7805if test -n "$MANIFEST_TOOL"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7807$as_echo "$MANIFEST_TOOL" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 7814fi 7815if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7816 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7817 # Extract the first word of "mt", so it can be a program name with args. 7818set dummy mt; ac_word=$2 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820$as_echo_n "checking for $ac_word... " >&6; } 7821if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 if test -n "$ac_ct_MANIFEST_TOOL"; then 7825 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7826else 7827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7828for as_dir in $PATH 7829do 7830 IFS=$as_save_IFS 7831 test -z "$as_dir" && as_dir=. 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7845if test -n "$ac_ct_MANIFEST_TOOL"; then 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7847$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7848else 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850$as_echo "no" >&6; } 7851fi 7852 7853 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7854 MANIFEST_TOOL=":" 7855 else 7856 case $cross_compiling:$ac_tool_warned in 7857yes:) 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7860ac_tool_warned=yes ;; 7861esac 7862 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7863 fi 7864else 7865 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7866fi 7867 7868test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7870$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7871if ${lt_cv_path_mainfest_tool+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 lt_cv_path_mainfest_tool=no 7875 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7876 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7877 cat conftest.err >&5 7878 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7879 lt_cv_path_mainfest_tool=yes 7880 fi 7881 rm -f conftest* 7882fi 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7884$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7885if test "x$lt_cv_path_mainfest_tool" != xyes; then 7886 MANIFEST_TOOL=: 7887fi 7888 7889 7890 7891 7892 7893 7894 case $host_os in 7895 rhapsody* | darwin*) 7896 if test -n "$ac_tool_prefix"; then 7897 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7898set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7900$as_echo_n "checking for $ac_word... " >&6; } 7901if ${ac_cv_prog_DSYMUTIL+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 if test -n "$DSYMUTIL"; then 7905 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7906else 7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7908for as_dir in $PATH 7909do 7910 IFS=$as_save_IFS 7911 test -z "$as_dir" && as_dir=. 7912 for ac_exec_ext in '' $ac_executable_extensions; do 7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7916 break 2 7917 fi 7918done 7919 done 7920IFS=$as_save_IFS 7921 7922fi 7923fi 7924DSYMUTIL=$ac_cv_prog_DSYMUTIL 7925if test -n "$DSYMUTIL"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7927$as_echo "$DSYMUTIL" >&6; } 7928else 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7930$as_echo "no" >&6; } 7931fi 7932 7933 7934fi 7935if test -z "$ac_cv_prog_DSYMUTIL"; then 7936 ac_ct_DSYMUTIL=$DSYMUTIL 7937 # Extract the first word of "dsymutil", so it can be a program name with args. 7938set dummy dsymutil; ac_word=$2 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7940$as_echo_n "checking for $ac_word... " >&6; } 7941if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 if test -n "$ac_ct_DSYMUTIL"; then 7945 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7946else 7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7948for as_dir in $PATH 7949do 7950 IFS=$as_save_IFS 7951 test -z "$as_dir" && as_dir=. 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958done 7959 done 7960IFS=$as_save_IFS 7961 7962fi 7963fi 7964ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7965if test -n "$ac_ct_DSYMUTIL"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7967$as_echo "$ac_ct_DSYMUTIL" >&6; } 7968else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970$as_echo "no" >&6; } 7971fi 7972 7973 if test "x$ac_ct_DSYMUTIL" = x; then 7974 DSYMUTIL=":" 7975 else 7976 case $cross_compiling:$ac_tool_warned in 7977yes:) 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7980ac_tool_warned=yes ;; 7981esac 7982 DSYMUTIL=$ac_ct_DSYMUTIL 7983 fi 7984else 7985 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7986fi 7987 7988 if test -n "$ac_tool_prefix"; then 7989 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7990set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7992$as_echo_n "checking for $ac_word... " >&6; } 7993if ${ac_cv_prog_NMEDIT+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 if test -n "$NMEDIT"; then 7997 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7998else 7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8000for as_dir in $PATH 8001do 8002 IFS=$as_save_IFS 8003 test -z "$as_dir" && as_dir=. 8004 for ac_exec_ext in '' $ac_executable_extensions; do 8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8006 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8008 break 2 8009 fi 8010done 8011 done 8012IFS=$as_save_IFS 8013 8014fi 8015fi 8016NMEDIT=$ac_cv_prog_NMEDIT 8017if test -n "$NMEDIT"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8019$as_echo "$NMEDIT" >&6; } 8020else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022$as_echo "no" >&6; } 8023fi 8024 8025 8026fi 8027if test -z "$ac_cv_prog_NMEDIT"; then 8028 ac_ct_NMEDIT=$NMEDIT 8029 # Extract the first word of "nmedit", so it can be a program name with args. 8030set dummy nmedit; ac_word=$2 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032$as_echo_n "checking for $ac_word... " >&6; } 8033if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$ac_ct_NMEDIT"; then 8037 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8046 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8057if test -n "$ac_ct_NMEDIT"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8059$as_echo "$ac_ct_NMEDIT" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 if test "x$ac_ct_NMEDIT" = x; then 8066 NMEDIT=":" 8067 else 8068 case $cross_compiling:$ac_tool_warned in 8069yes:) 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8072ac_tool_warned=yes ;; 8073esac 8074 NMEDIT=$ac_ct_NMEDIT 8075 fi 8076else 8077 NMEDIT="$ac_cv_prog_NMEDIT" 8078fi 8079 8080 if test -n "$ac_tool_prefix"; then 8081 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8082set dummy ${ac_tool_prefix}lipo; ac_word=$2 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8084$as_echo_n "checking for $ac_word... " >&6; } 8085if ${ac_cv_prog_LIPO+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 if test -n "$LIPO"; then 8089 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8090else 8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092for as_dir in $PATH 8093do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108LIPO=$ac_cv_prog_LIPO 8109if test -n "$LIPO"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8111$as_echo "$LIPO" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114$as_echo "no" >&6; } 8115fi 8116 8117 8118fi 8119if test -z "$ac_cv_prog_LIPO"; then 8120 ac_ct_LIPO=$LIPO 8121 # Extract the first word of "lipo", so it can be a program name with args. 8122set dummy lipo; ac_word=$2 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124$as_echo_n "checking for $ac_word... " >&6; } 8125if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 if test -n "$ac_ct_LIPO"; then 8129 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8130else 8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132for as_dir in $PATH 8133do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8138 ac_cv_prog_ac_ct_LIPO="lipo" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142done 8143 done 8144IFS=$as_save_IFS 8145 8146fi 8147fi 8148ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8149if test -n "$ac_ct_LIPO"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8151$as_echo "$ac_ct_LIPO" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 if test "x$ac_ct_LIPO" = x; then 8158 LIPO=":" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 LIPO=$ac_ct_LIPO 8167 fi 8168else 8169 LIPO="$ac_cv_prog_LIPO" 8170fi 8171 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}otool; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_OTOOL+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$OTOOL"; then 8181 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200OTOOL=$ac_cv_prog_OTOOL 8201if test -n "$OTOOL"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8203$as_echo "$OTOOL" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 8210fi 8211if test -z "$ac_cv_prog_OTOOL"; then 8212 ac_ct_OTOOL=$OTOOL 8213 # Extract the first word of "otool", so it can be a program name with args. 8214set dummy otool; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$ac_ct_OTOOL"; then 8221 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_ac_ct_OTOOL="otool" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8241if test -n "$ac_ct_OTOOL"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8243$as_echo "$ac_ct_OTOOL" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 if test "x$ac_ct_OTOOL" = x; then 8250 OTOOL=":" 8251 else 8252 case $cross_compiling:$ac_tool_warned in 8253yes:) 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8256ac_tool_warned=yes ;; 8257esac 8258 OTOOL=$ac_ct_OTOOL 8259 fi 8260else 8261 OTOOL="$ac_cv_prog_OTOOL" 8262fi 8263 8264 if test -n "$ac_tool_prefix"; then 8265 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8266set dummy ${ac_tool_prefix}otool64; ac_word=$2 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8268$as_echo_n "checking for $ac_word... " >&6; } 8269if ${ac_cv_prog_OTOOL64+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 if test -n "$OTOOL64"; then 8273 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8274else 8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8276for as_dir in $PATH 8277do 8278 IFS=$as_save_IFS 8279 test -z "$as_dir" && as_dir=. 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8282 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi 8291fi 8292OTOOL64=$ac_cv_prog_OTOOL64 8293if test -n "$OTOOL64"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8295$as_echo "$OTOOL64" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 8302fi 8303if test -z "$ac_cv_prog_OTOOL64"; then 8304 ac_ct_OTOOL64=$OTOOL64 8305 # Extract the first word of "otool64", so it can be a program name with args. 8306set dummy otool64; ac_word=$2 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8308$as_echo_n "checking for $ac_word... " >&6; } 8309if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 if test -n "$ac_ct_OTOOL64"; then 8313 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8314else 8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316for as_dir in $PATH 8317do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8322 ac_cv_prog_ac_ct_OTOOL64="otool64" 8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327 done 8328IFS=$as_save_IFS 8329 8330fi 8331fi 8332ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8333if test -n "$ac_ct_OTOOL64"; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8335$as_echo "$ac_ct_OTOOL64" >&6; } 8336else 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8338$as_echo "no" >&6; } 8339fi 8340 8341 if test "x$ac_ct_OTOOL64" = x; then 8342 OTOOL64=":" 8343 else 8344 case $cross_compiling:$ac_tool_warned in 8345yes:) 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8348ac_tool_warned=yes ;; 8349esac 8350 OTOOL64=$ac_ct_OTOOL64 8351 fi 8352else 8353 OTOOL64="$ac_cv_prog_OTOOL64" 8354fi 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8383$as_echo_n "checking for -single_module linker flag... " >&6; } 8384if ${lt_cv_apple_cc_single_mod+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 lt_cv_apple_cc_single_mod=no 8388 if test -z "${LT_MULTI_MODULE}"; then 8389 # By default we will add the -single_module flag. You can override 8390 # by either setting the environment variable LT_MULTI_MODULE 8391 # non-empty at configure time, or by adding -multi_module to the 8392 # link flags. 8393 rm -rf libconftest.dylib* 8394 echo "int foo(void){return 1;}" > conftest.c 8395 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8396-dynamiclib -Wl,-single_module conftest.c" >&5 8397 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8398 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8399 _lt_result=$? 8400 # If there is a non-empty error log, and "single_module" 8401 # appears in it, assume the flag caused a linker warning 8402 if test -s conftest.err && $GREP single_module conftest.err; then 8403 cat conftest.err >&5 8404 # Otherwise, if the output was created with a 0 exit code from 8405 # the compiler, it worked. 8406 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8407 lt_cv_apple_cc_single_mod=yes 8408 else 8409 cat conftest.err >&5 8410 fi 8411 rm -rf libconftest.dylib* 8412 rm -f conftest.* 8413 fi 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8416$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8417 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8419$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8420if ${lt_cv_ld_exported_symbols_list+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_ld_exported_symbols_list=no 8424 save_LDFLAGS=$LDFLAGS 8425 echo "_main" > conftest.sym 8426 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428/* end confdefs.h. */ 8429 8430int 8431main () 8432{ 8433 8434 ; 8435 return 0; 8436} 8437_ACEOF 8438if ac_fn_c_try_link "$LINENO"; then : 8439 lt_cv_ld_exported_symbols_list=yes 8440else 8441 lt_cv_ld_exported_symbols_list=no 8442fi 8443rm -f core conftest.err conftest.$ac_objext \ 8444 conftest$ac_exeext conftest.$ac_ext 8445 LDFLAGS="$save_LDFLAGS" 8446 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8449$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8452$as_echo_n "checking for -force_load linker flag... " >&6; } 8453if ${lt_cv_ld_force_load+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 lt_cv_ld_force_load=no 8457 cat > conftest.c << _LT_EOF 8458int forced_loaded() { return 2;} 8459_LT_EOF 8460 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8461 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8462 echo "$AR cru libconftest.a conftest.o" >&5 8463 $AR cru libconftest.a conftest.o 2>&5 8464 echo "$RANLIB libconftest.a" >&5 8465 $RANLIB libconftest.a 2>&5 8466 cat > conftest.c << _LT_EOF 8467int main() { return 0;} 8468_LT_EOF 8469 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8470 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8471 _lt_result=$? 8472 if test -s conftest.err && $GREP force_load conftest.err; then 8473 cat conftest.err >&5 8474 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8475 lt_cv_ld_force_load=yes 8476 else 8477 cat conftest.err >&5 8478 fi 8479 rm -f conftest.err libconftest.a conftest conftest.c 8480 rm -rf conftest.dSYM 8481 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8484$as_echo "$lt_cv_ld_force_load" >&6; } 8485 case $host_os in 8486 rhapsody* | darwin1.[012]) 8487 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8488 darwin1.*) 8489 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8490 darwin*) # darwin 5.x on 8491 # if running on 10.5 or later, the deployment target defaults 8492 # to the OS version, if on x86, and 10.4, the deployment 8493 # target defaults to 10.4. Don't you love it? 8494 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8495 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8496 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8497 10.[012]*) 8498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8499 10.*) 8500 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8501 esac 8502 ;; 8503 esac 8504 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8505 _lt_dar_single_mod='$single_module' 8506 fi 8507 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8508 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8509 else 8510 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8511 fi 8512 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8513 _lt_dsymutil='~$DSYMUTIL $lib || :' 8514 else 8515 _lt_dsymutil= 8516 fi 8517 ;; 8518 esac 8519 8520for ac_header in dlfcn.h 8521do : 8522 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8523" 8524if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8525 cat >>confdefs.h <<_ACEOF 8526#define HAVE_DLFCN_H 1 8527_ACEOF 8528 8529fi 8530 8531done 8532 8533 8534 8535 8536 8537# Set options 8538 8539 8540 8541 enable_dlopen=no 8542 8543 8544 enable_win32_dll=no 8545 8546 8547 # Check whether --enable-shared was given. 8548if test "${enable_shared+set}" = set; then : 8549 enableval=$enable_shared; p=${PACKAGE-default} 8550 case $enableval in 8551 yes) enable_shared=yes ;; 8552 no) enable_shared=no ;; 8553 *) 8554 enable_shared=no 8555 # Look at the argument we got. We use all the common list separators. 8556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8557 for pkg in $enableval; do 8558 IFS="$lt_save_ifs" 8559 if test "X$pkg" = "X$p"; then 8560 enable_shared=yes 8561 fi 8562 done 8563 IFS="$lt_save_ifs" 8564 ;; 8565 esac 8566else 8567 enable_shared=yes 8568fi 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 # Check whether --enable-static was given. 8579if test "${enable_static+set}" = set; then : 8580 enableval=$enable_static; p=${PACKAGE-default} 8581 case $enableval in 8582 yes) enable_static=yes ;; 8583 no) enable_static=no ;; 8584 *) 8585 enable_static=no 8586 # Look at the argument we got. We use all the common list separators. 8587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8588 for pkg in $enableval; do 8589 IFS="$lt_save_ifs" 8590 if test "X$pkg" = "X$p"; then 8591 enable_static=yes 8592 fi 8593 done 8594 IFS="$lt_save_ifs" 8595 ;; 8596 esac 8597else 8598 enable_static=yes 8599fi 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610# Check whether --with-pic was given. 8611if test "${with_pic+set}" = set; then : 8612 withval=$with_pic; lt_p=${PACKAGE-default} 8613 case $withval in 8614 yes|no) pic_mode=$withval ;; 8615 *) 8616 pic_mode=default 8617 # Look at the argument we got. We use all the common list separators. 8618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8619 for lt_pkg in $withval; do 8620 IFS="$lt_save_ifs" 8621 if test "X$lt_pkg" = "X$lt_p"; then 8622 pic_mode=yes 8623 fi 8624 done 8625 IFS="$lt_save_ifs" 8626 ;; 8627 esac 8628else 8629 pic_mode=default 8630fi 8631 8632 8633test -z "$pic_mode" && pic_mode=default 8634 8635 8636 8637 8638 8639 8640 8641 # Check whether --enable-fast-install was given. 8642if test "${enable_fast_install+set}" = set; then : 8643 enableval=$enable_fast_install; p=${PACKAGE-default} 8644 case $enableval in 8645 yes) enable_fast_install=yes ;; 8646 no) enable_fast_install=no ;; 8647 *) 8648 enable_fast_install=no 8649 # Look at the argument we got. We use all the common list separators. 8650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8651 for pkg in $enableval; do 8652 IFS="$lt_save_ifs" 8653 if test "X$pkg" = "X$p"; then 8654 enable_fast_install=yes 8655 fi 8656 done 8657 IFS="$lt_save_ifs" 8658 ;; 8659 esac 8660else 8661 enable_fast_install=yes 8662fi 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674# This can be used to rebuild libtool when needed 8675LIBTOOL_DEPS="$ltmain" 8676 8677# Always use our own libtool. 8678LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709test -z "$LN_S" && LN_S="ln -s" 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724if test -n "${ZSH_VERSION+set}" ; then 8725 setopt NO_GLOB_SUBST 8726fi 8727 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8729$as_echo_n "checking for objdir... " >&6; } 8730if ${lt_cv_objdir+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 rm -f .libs 2>/dev/null 8734mkdir .libs 2>/dev/null 8735if test -d .libs; then 8736 lt_cv_objdir=.libs 8737else 8738 # MS-DOS does not allow filenames that begin with a dot. 8739 lt_cv_objdir=_libs 8740fi 8741rmdir .libs 2>/dev/null 8742fi 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8744$as_echo "$lt_cv_objdir" >&6; } 8745objdir=$lt_cv_objdir 8746 8747 8748 8749 8750 8751cat >>confdefs.h <<_ACEOF 8752#define LT_OBJDIR "$lt_cv_objdir/" 8753_ACEOF 8754 8755 8756 8757 8758case $host_os in 8759aix3*) 8760 # AIX sometimes has problems with the GCC collect2 program. For some 8761 # reason, if we set the COLLECT_NAMES environment variable, the problems 8762 # vanish in a puff of smoke. 8763 if test "X${COLLECT_NAMES+set}" != Xset; then 8764 COLLECT_NAMES= 8765 export COLLECT_NAMES 8766 fi 8767 ;; 8768esac 8769 8770# Global variables: 8771ofile=libtool 8772can_build_shared=yes 8773 8774# All known linkers require a `.a' archive for static linking (except MSVC, 8775# which needs '.lib'). 8776libext=a 8777 8778with_gnu_ld="$lt_cv_prog_gnu_ld" 8779 8780old_CC="$CC" 8781old_CFLAGS="$CFLAGS" 8782 8783# Set sane defaults for various variables 8784test -z "$CC" && CC=cc 8785test -z "$LTCC" && LTCC=$CC 8786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8787test -z "$LD" && LD=ld 8788test -z "$ac_objext" && ac_objext=o 8789 8790for cc_temp in $compiler""; do 8791 case $cc_temp in 8792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8794 \-*) ;; 8795 *) break;; 8796 esac 8797done 8798cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8799 8800 8801# Only perform the check for file, if the check method requires it 8802test -z "$MAGIC_CMD" && MAGIC_CMD=file 8803case $deplibs_check_method in 8804file_magic*) 8805 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8807$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8808if ${lt_cv_path_MAGIC_CMD+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 case $MAGIC_CMD in 8812[\\/*] | ?:[\\/]*) 8813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8814 ;; 8815*) 8816 lt_save_MAGIC_CMD="$MAGIC_CMD" 8817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8819 for ac_dir in $ac_dummy; do 8820 IFS="$lt_save_ifs" 8821 test -z "$ac_dir" && ac_dir=. 8822 if test -f $ac_dir/${ac_tool_prefix}file; then 8823 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8824 if test -n "$file_magic_test_file"; then 8825 case $deplibs_check_method in 8826 "file_magic "*) 8827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8830 $EGREP "$file_magic_regex" > /dev/null; then 8831 : 8832 else 8833 cat <<_LT_EOF 1>&2 8834 8835*** Warning: the command libtool uses to detect shared libraries, 8836*** $file_magic_cmd, produces output that libtool cannot recognize. 8837*** The result is that libtool may fail to recognize shared libraries 8838*** as such. This will affect the creation of libtool libraries that 8839*** depend on shared libraries, but programs linked with such libtool 8840*** libraries will work regardless of this problem. Nevertheless, you 8841*** may want to report the problem to your system manager and/or to 8842*** bug-libtool@gnu.org 8843 8844_LT_EOF 8845 fi ;; 8846 esac 8847 fi 8848 break 8849 fi 8850 done 8851 IFS="$lt_save_ifs" 8852 MAGIC_CMD="$lt_save_MAGIC_CMD" 8853 ;; 8854esac 8855fi 8856 8857MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8858if test -n "$MAGIC_CMD"; then 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8860$as_echo "$MAGIC_CMD" >&6; } 8861else 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8863$as_echo "no" >&6; } 8864fi 8865 8866 8867 8868 8869 8870if test -z "$lt_cv_path_MAGIC_CMD"; then 8871 if test -n "$ac_tool_prefix"; then 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8873$as_echo_n "checking for file... " >&6; } 8874if ${lt_cv_path_MAGIC_CMD+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 case $MAGIC_CMD in 8878[\\/*] | ?:[\\/]*) 8879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8880 ;; 8881*) 8882 lt_save_MAGIC_CMD="$MAGIC_CMD" 8883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8885 for ac_dir in $ac_dummy; do 8886 IFS="$lt_save_ifs" 8887 test -z "$ac_dir" && ac_dir=. 8888 if test -f $ac_dir/file; then 8889 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8890 if test -n "$file_magic_test_file"; then 8891 case $deplibs_check_method in 8892 "file_magic "*) 8893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8896 $EGREP "$file_magic_regex" > /dev/null; then 8897 : 8898 else 8899 cat <<_LT_EOF 1>&2 8900 8901*** Warning: the command libtool uses to detect shared libraries, 8902*** $file_magic_cmd, produces output that libtool cannot recognize. 8903*** The result is that libtool may fail to recognize shared libraries 8904*** as such. This will affect the creation of libtool libraries that 8905*** depend on shared libraries, but programs linked with such libtool 8906*** libraries will work regardless of this problem. Nevertheless, you 8907*** may want to report the problem to your system manager and/or to 8908*** bug-libtool@gnu.org 8909 8910_LT_EOF 8911 fi ;; 8912 esac 8913 fi 8914 break 8915 fi 8916 done 8917 IFS="$lt_save_ifs" 8918 MAGIC_CMD="$lt_save_MAGIC_CMD" 8919 ;; 8920esac 8921fi 8922 8923MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8924if test -n "$MAGIC_CMD"; then 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8926$as_echo "$MAGIC_CMD" >&6; } 8927else 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8929$as_echo "no" >&6; } 8930fi 8931 8932 8933 else 8934 MAGIC_CMD=: 8935 fi 8936fi 8937 8938 fi 8939 ;; 8940esac 8941 8942# Use C for the default configuration in the libtool script 8943 8944lt_save_CC="$CC" 8945ac_ext=c 8946ac_cpp='$CPP $CPPFLAGS' 8947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8949ac_compiler_gnu=$ac_cv_c_compiler_gnu 8950 8951 8952# Source file extension for C test sources. 8953ac_ext=c 8954 8955# Object file extension for compiled C test sources. 8956objext=o 8957objext=$objext 8958 8959# Code to be used in simple compile tests 8960lt_simple_compile_test_code="int some_variable = 0;" 8961 8962# Code to be used in simple link tests 8963lt_simple_link_test_code='int main(){return(0);}' 8964 8965 8966 8967 8968 8969 8970 8971# If no C compiler was specified, use CC. 8972LTCC=${LTCC-"$CC"} 8973 8974# If no C compiler flags were specified, use CFLAGS. 8975LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8976 8977# Allow CC to be a program name with arguments. 8978compiler=$CC 8979 8980# Save the default compiler, since it gets overwritten when the other 8981# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8982compiler_DEFAULT=$CC 8983 8984# save warnings/boilerplate of simple test code 8985ac_outfile=conftest.$ac_objext 8986echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8987eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8988_lt_compiler_boilerplate=`cat conftest.err` 8989$RM conftest* 8990 8991ac_outfile=conftest.$ac_objext 8992echo "$lt_simple_link_test_code" >conftest.$ac_ext 8993eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8994_lt_linker_boilerplate=`cat conftest.err` 8995$RM -r conftest* 8996 8997 8998## CAVEAT EMPTOR: 8999## There is no encapsulation within the following macros, do not change 9000## the running order or otherwise move them around unless you know exactly 9001## what you are doing... 9002if test -n "$compiler"; then 9003 9004lt_prog_compiler_no_builtin_flag= 9005 9006if test "$GCC" = yes; then 9007 case $cc_basename in 9008 nvcc*) 9009 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9010 *) 9011 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9012 esac 9013 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9015$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9016if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9017 $as_echo_n "(cached) " >&6 9018else 9019 lt_cv_prog_compiler_rtti_exceptions=no 9020 ac_outfile=conftest.$ac_objext 9021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9022 lt_compiler_flag="-fno-rtti -fno-exceptions" 9023 # Insert the option either (1) after the last *FLAGS variable, or 9024 # (2) before a word containing "conftest.", or (3) at the end. 9025 # Note that $ac_compile itself does not contain backslashes and begins 9026 # with a dollar sign (not a hyphen), so the echo should work correctly. 9027 # The option is referenced via a variable to avoid confusing sed. 9028 lt_compile=`echo "$ac_compile" | $SED \ 9029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9031 -e 's:$: $lt_compiler_flag:'` 9032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9033 (eval "$lt_compile" 2>conftest.err) 9034 ac_status=$? 9035 cat conftest.err >&5 9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 if (exit $ac_status) && test -s "$ac_outfile"; then 9038 # The compiler can only warn and ignore the option if not recognized 9039 # So say no if there are warnings other than the usual output. 9040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9043 lt_cv_prog_compiler_rtti_exceptions=yes 9044 fi 9045 fi 9046 $RM conftest* 9047 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9050$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9051 9052if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9053 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9054else 9055 : 9056fi 9057 9058fi 9059 9060 9061 9062 9063 9064 9065 lt_prog_compiler_wl= 9066lt_prog_compiler_pic= 9067lt_prog_compiler_static= 9068 9069 9070 if test "$GCC" = yes; then 9071 lt_prog_compiler_wl='-Wl,' 9072 lt_prog_compiler_static='-static' 9073 9074 case $host_os in 9075 aix*) 9076 # All AIX code is PIC. 9077 if test "$host_cpu" = ia64; then 9078 # AIX 5 now supports IA64 processor 9079 lt_prog_compiler_static='-Bstatic' 9080 fi 9081 ;; 9082 9083 amigaos*) 9084 case $host_cpu in 9085 powerpc) 9086 # see comment about AmigaOS4 .so support 9087 lt_prog_compiler_pic='-fPIC' 9088 ;; 9089 m68k) 9090 # FIXME: we need at least 68020 code to build shared libraries, but 9091 # adding the `-m68020' flag to GCC prevents building anything better, 9092 # like `-m68040'. 9093 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9094 ;; 9095 esac 9096 ;; 9097 9098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9099 # PIC is the default for these OSes. 9100 ;; 9101 9102 mingw* | cygwin* | pw32* | os2* | cegcc*) 9103 # This hack is so that the source file can tell whether it is being 9104 # built for inclusion in a dll (and should export symbols for example). 9105 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9106 # (--disable-auto-import) libraries 9107 lt_prog_compiler_pic='-DDLL_EXPORT' 9108 ;; 9109 9110 darwin* | rhapsody*) 9111 # PIC is the default on this platform 9112 # Common symbols not allowed in MH_DYLIB files 9113 lt_prog_compiler_pic='-fno-common' 9114 ;; 9115 9116 haiku*) 9117 # PIC is the default for Haiku. 9118 # The "-static" flag exists, but is broken. 9119 lt_prog_compiler_static= 9120 ;; 9121 9122 hpux*) 9123 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9124 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9125 # sets the default TLS model and affects inlining. 9126 case $host_cpu in 9127 hppa*64*) 9128 # +Z the default 9129 ;; 9130 *) 9131 lt_prog_compiler_pic='-fPIC' 9132 ;; 9133 esac 9134 ;; 9135 9136 interix[3-9]*) 9137 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9138 # Instead, we relocate shared libraries at runtime. 9139 ;; 9140 9141 msdosdjgpp*) 9142 # Just because we use GCC doesn't mean we suddenly get shared libraries 9143 # on systems that don't support them. 9144 lt_prog_compiler_can_build_shared=no 9145 enable_shared=no 9146 ;; 9147 9148 *nto* | *qnx*) 9149 # QNX uses GNU C++, but need to define -shared option too, otherwise 9150 # it will coredump. 9151 lt_prog_compiler_pic='-fPIC -shared' 9152 ;; 9153 9154 sysv4*MP*) 9155 if test -d /usr/nec; then 9156 lt_prog_compiler_pic=-Kconform_pic 9157 fi 9158 ;; 9159 9160 *) 9161 lt_prog_compiler_pic='-fPIC' 9162 ;; 9163 esac 9164 9165 case $cc_basename in 9166 nvcc*) # Cuda Compiler Driver 2.2 9167 lt_prog_compiler_wl='-Xlinker ' 9168 if test -n "$lt_prog_compiler_pic"; then 9169 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9170 fi 9171 ;; 9172 esac 9173 else 9174 # PORTME Check for flag to pass linker flags through the system compiler. 9175 case $host_os in 9176 aix*) 9177 lt_prog_compiler_wl='-Wl,' 9178 if test "$host_cpu" = ia64; then 9179 # AIX 5 now supports IA64 processor 9180 lt_prog_compiler_static='-Bstatic' 9181 else 9182 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9183 fi 9184 ;; 9185 9186 mingw* | cygwin* | pw32* | os2* | cegcc*) 9187 # This hack is so that the source file can tell whether it is being 9188 # built for inclusion in a dll (and should export symbols for example). 9189 lt_prog_compiler_pic='-DDLL_EXPORT' 9190 ;; 9191 9192 hpux9* | hpux10* | hpux11*) 9193 lt_prog_compiler_wl='-Wl,' 9194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9195 # not for PA HP-UX. 9196 case $host_cpu in 9197 hppa*64*|ia64*) 9198 # +Z the default 9199 ;; 9200 *) 9201 lt_prog_compiler_pic='+Z' 9202 ;; 9203 esac 9204 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9205 lt_prog_compiler_static='${wl}-a ${wl}archive' 9206 ;; 9207 9208 irix5* | irix6* | nonstopux*) 9209 lt_prog_compiler_wl='-Wl,' 9210 # PIC (with -KPIC) is the default. 9211 lt_prog_compiler_static='-non_shared' 9212 ;; 9213 9214 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9215 case $cc_basename in 9216 # old Intel for x86_64 which still supported -KPIC. 9217 ecc*) 9218 lt_prog_compiler_wl='-Wl,' 9219 lt_prog_compiler_pic='-KPIC' 9220 lt_prog_compiler_static='-static' 9221 ;; 9222 # icc used to be incompatible with GCC. 9223 # ICC 10 doesn't accept -KPIC any more. 9224 icc* | ifort*) 9225 lt_prog_compiler_wl='-Wl,' 9226 lt_prog_compiler_pic='-fPIC' 9227 lt_prog_compiler_static='-static' 9228 ;; 9229 # Lahey Fortran 8.1. 9230 lf95*) 9231 lt_prog_compiler_wl='-Wl,' 9232 lt_prog_compiler_pic='--shared' 9233 lt_prog_compiler_static='--static' 9234 ;; 9235 nagfor*) 9236 # NAG Fortran compiler 9237 lt_prog_compiler_wl='-Wl,-Wl,,' 9238 lt_prog_compiler_pic='-PIC' 9239 lt_prog_compiler_static='-Bstatic' 9240 ;; 9241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9242 # Portland Group compilers (*not* the Pentium gcc compiler, 9243 # which looks to be a dead project) 9244 lt_prog_compiler_wl='-Wl,' 9245 lt_prog_compiler_pic='-fpic' 9246 lt_prog_compiler_static='-Bstatic' 9247 ;; 9248 ccc*) 9249 lt_prog_compiler_wl='-Wl,' 9250 # All Alpha code is PIC. 9251 lt_prog_compiler_static='-non_shared' 9252 ;; 9253 xl* | bgxl* | bgf* | mpixl*) 9254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9255 lt_prog_compiler_wl='-Wl,' 9256 lt_prog_compiler_pic='-qpic' 9257 lt_prog_compiler_static='-qstaticlink' 9258 ;; 9259 *) 9260 case `$CC -V 2>&1 | sed 5q` in 9261 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9262 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9263 lt_prog_compiler_pic='-KPIC' 9264 lt_prog_compiler_static='-Bstatic' 9265 lt_prog_compiler_wl='' 9266 ;; 9267 *Sun\ F* | *Sun*Fortran*) 9268 lt_prog_compiler_pic='-KPIC' 9269 lt_prog_compiler_static='-Bstatic' 9270 lt_prog_compiler_wl='-Qoption ld ' 9271 ;; 9272 *Sun\ C*) 9273 # Sun C 5.9 9274 lt_prog_compiler_pic='-KPIC' 9275 lt_prog_compiler_static='-Bstatic' 9276 lt_prog_compiler_wl='-Wl,' 9277 ;; 9278 *Intel*\ [CF]*Compiler*) 9279 lt_prog_compiler_wl='-Wl,' 9280 lt_prog_compiler_pic='-fPIC' 9281 lt_prog_compiler_static='-static' 9282 ;; 9283 *Portland\ Group*) 9284 lt_prog_compiler_wl='-Wl,' 9285 lt_prog_compiler_pic='-fpic' 9286 lt_prog_compiler_static='-Bstatic' 9287 ;; 9288 esac 9289 ;; 9290 esac 9291 ;; 9292 9293 newsos6) 9294 lt_prog_compiler_pic='-KPIC' 9295 lt_prog_compiler_static='-Bstatic' 9296 ;; 9297 9298 *nto* | *qnx*) 9299 # QNX uses GNU C++, but need to define -shared option too, otherwise 9300 # it will coredump. 9301 lt_prog_compiler_pic='-fPIC -shared' 9302 ;; 9303 9304 osf3* | osf4* | osf5*) 9305 lt_prog_compiler_wl='-Wl,' 9306 # All OSF/1 code is PIC. 9307 lt_prog_compiler_static='-non_shared' 9308 ;; 9309 9310 rdos*) 9311 lt_prog_compiler_static='-non_shared' 9312 ;; 9313 9314 solaris*) 9315 lt_prog_compiler_pic='-KPIC' 9316 lt_prog_compiler_static='-Bstatic' 9317 case $cc_basename in 9318 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9319 lt_prog_compiler_wl='-Qoption ld ';; 9320 *) 9321 lt_prog_compiler_wl='-Wl,';; 9322 esac 9323 ;; 9324 9325 sunos4*) 9326 lt_prog_compiler_wl='-Qoption ld ' 9327 lt_prog_compiler_pic='-PIC' 9328 lt_prog_compiler_static='-Bstatic' 9329 ;; 9330 9331 sysv4 | sysv4.2uw2* | sysv4.3*) 9332 lt_prog_compiler_wl='-Wl,' 9333 lt_prog_compiler_pic='-KPIC' 9334 lt_prog_compiler_static='-Bstatic' 9335 ;; 9336 9337 sysv4*MP*) 9338 if test -d /usr/nec ;then 9339 lt_prog_compiler_pic='-Kconform_pic' 9340 lt_prog_compiler_static='-Bstatic' 9341 fi 9342 ;; 9343 9344 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9345 lt_prog_compiler_wl='-Wl,' 9346 lt_prog_compiler_pic='-KPIC' 9347 lt_prog_compiler_static='-Bstatic' 9348 ;; 9349 9350 unicos*) 9351 lt_prog_compiler_wl='-Wl,' 9352 lt_prog_compiler_can_build_shared=no 9353 ;; 9354 9355 uts4*) 9356 lt_prog_compiler_pic='-pic' 9357 lt_prog_compiler_static='-Bstatic' 9358 ;; 9359 9360 *) 9361 lt_prog_compiler_can_build_shared=no 9362 ;; 9363 esac 9364 fi 9365 9366case $host_os in 9367 # For platforms which do not support PIC, -DPIC is meaningless: 9368 *djgpp*) 9369 lt_prog_compiler_pic= 9370 ;; 9371 *) 9372 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9373 ;; 9374esac 9375 9376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9377$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9378if ${lt_cv_prog_compiler_pic+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380else 9381 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9382fi 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9384$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9385lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9386 9387# 9388# Check to make sure the PIC flag actually works. 9389# 9390if test -n "$lt_prog_compiler_pic"; then 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9392$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9393if ${lt_cv_prog_compiler_pic_works+:} false; then : 9394 $as_echo_n "(cached) " >&6 9395else 9396 lt_cv_prog_compiler_pic_works=no 9397 ac_outfile=conftest.$ac_objext 9398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9399 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9400 # Insert the option either (1) after the last *FLAGS variable, or 9401 # (2) before a word containing "conftest.", or (3) at the end. 9402 # Note that $ac_compile itself does not contain backslashes and begins 9403 # with a dollar sign (not a hyphen), so the echo should work correctly. 9404 # The option is referenced via a variable to avoid confusing sed. 9405 lt_compile=`echo "$ac_compile" | $SED \ 9406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9408 -e 's:$: $lt_compiler_flag:'` 9409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9410 (eval "$lt_compile" 2>conftest.err) 9411 ac_status=$? 9412 cat conftest.err >&5 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 if (exit $ac_status) && test -s "$ac_outfile"; then 9415 # The compiler can only warn and ignore the option if not recognized 9416 # So say no if there are warnings other than the usual output. 9417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9420 lt_cv_prog_compiler_pic_works=yes 9421 fi 9422 fi 9423 $RM conftest* 9424 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9427$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9428 9429if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9430 case $lt_prog_compiler_pic in 9431 "" | " "*) ;; 9432 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9433 esac 9434else 9435 lt_prog_compiler_pic= 9436 lt_prog_compiler_can_build_shared=no 9437fi 9438 9439fi 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451# 9452# Check to make sure the static flag actually works. 9453# 9454wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9456$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9457if ${lt_cv_prog_compiler_static_works+:} false; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 lt_cv_prog_compiler_static_works=no 9461 save_LDFLAGS="$LDFLAGS" 9462 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9463 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9465 # The linker can only warn and ignore the option if not recognized 9466 # So say no if there are warnings 9467 if test -s conftest.err; then 9468 # Append any errors to the config.log. 9469 cat conftest.err 1>&5 9470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9472 if diff conftest.exp conftest.er2 >/dev/null; then 9473 lt_cv_prog_compiler_static_works=yes 9474 fi 9475 else 9476 lt_cv_prog_compiler_static_works=yes 9477 fi 9478 fi 9479 $RM -r conftest* 9480 LDFLAGS="$save_LDFLAGS" 9481 9482fi 9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9484$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9485 9486if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9487 : 9488else 9489 lt_prog_compiler_static= 9490fi 9491 9492 9493 9494 9495 9496 9497 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9500if ${lt_cv_prog_compiler_c_o+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 lt_cv_prog_compiler_c_o=no 9504 $RM -r conftest 2>/dev/null 9505 mkdir conftest 9506 cd conftest 9507 mkdir out 9508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9509 9510 lt_compiler_flag="-o out/conftest2.$ac_objext" 9511 # Insert the option either (1) after the last *FLAGS variable, or 9512 # (2) before a word containing "conftest.", or (3) at the end. 9513 # Note that $ac_compile itself does not contain backslashes and begins 9514 # with a dollar sign (not a hyphen), so the echo should work correctly. 9515 lt_compile=`echo "$ac_compile" | $SED \ 9516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9518 -e 's:$: $lt_compiler_flag:'` 9519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9520 (eval "$lt_compile" 2>out/conftest.err) 9521 ac_status=$? 9522 cat out/conftest.err >&5 9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9525 then 9526 # The compiler can only warn and ignore the option if not recognized 9527 # So say no if there are warnings 9528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9531 lt_cv_prog_compiler_c_o=yes 9532 fi 9533 fi 9534 chmod u+w . 2>&5 9535 $RM conftest* 9536 # SGI C++ compiler will create directory out/ii_files/ for 9537 # template instantiation 9538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9539 $RM out/* && rmdir out 9540 cd .. 9541 $RM -r conftest 9542 $RM conftest* 9543 9544fi 9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9546$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9547 9548 9549 9550 9551 9552 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9554$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9555if ${lt_cv_prog_compiler_c_o+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 lt_cv_prog_compiler_c_o=no 9559 $RM -r conftest 2>/dev/null 9560 mkdir conftest 9561 cd conftest 9562 mkdir out 9563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9564 9565 lt_compiler_flag="-o out/conftest2.$ac_objext" 9566 # Insert the option either (1) after the last *FLAGS variable, or 9567 # (2) before a word containing "conftest.", or (3) at the end. 9568 # Note that $ac_compile itself does not contain backslashes and begins 9569 # with a dollar sign (not a hyphen), so the echo should work correctly. 9570 lt_compile=`echo "$ac_compile" | $SED \ 9571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9573 -e 's:$: $lt_compiler_flag:'` 9574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9575 (eval "$lt_compile" 2>out/conftest.err) 9576 ac_status=$? 9577 cat out/conftest.err >&5 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9579 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9580 then 9581 # The compiler can only warn and ignore the option if not recognized 9582 # So say no if there are warnings 9583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9586 lt_cv_prog_compiler_c_o=yes 9587 fi 9588 fi 9589 chmod u+w . 2>&5 9590 $RM conftest* 9591 # SGI C++ compiler will create directory out/ii_files/ for 9592 # template instantiation 9593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9594 $RM out/* && rmdir out 9595 cd .. 9596 $RM -r conftest 9597 $RM conftest* 9598 9599fi 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9601$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9602 9603 9604 9605 9606hard_links="nottested" 9607if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9608 # do not overwrite the value of need_locks provided by the user 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9610$as_echo_n "checking if we can lock with hard links... " >&6; } 9611 hard_links=yes 9612 $RM conftest* 9613 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9614 touch conftest.a 9615 ln conftest.a conftest.b 2>&5 || hard_links=no 9616 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9618$as_echo "$hard_links" >&6; } 9619 if test "$hard_links" = no; then 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9621$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9622 need_locks=warn 9623 fi 9624else 9625 need_locks=no 9626fi 9627 9628 9629 9630 9631 9632 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9634$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9635 9636 runpath_var= 9637 allow_undefined_flag= 9638 always_export_symbols=no 9639 archive_cmds= 9640 archive_expsym_cmds= 9641 compiler_needs_object=no 9642 enable_shared_with_static_runtimes=no 9643 export_dynamic_flag_spec= 9644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9645 hardcode_automatic=no 9646 hardcode_direct=no 9647 hardcode_direct_absolute=no 9648 hardcode_libdir_flag_spec= 9649 hardcode_libdir_separator= 9650 hardcode_minus_L=no 9651 hardcode_shlibpath_var=unsupported 9652 inherit_rpath=no 9653 link_all_deplibs=unknown 9654 module_cmds= 9655 module_expsym_cmds= 9656 old_archive_from_new_cmds= 9657 old_archive_from_expsyms_cmds= 9658 thread_safe_flag_spec= 9659 whole_archive_flag_spec= 9660 # include_expsyms should be a list of space-separated symbols to be *always* 9661 # included in the symbol list 9662 include_expsyms= 9663 # exclude_expsyms can be an extended regexp of symbols to exclude 9664 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9665 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9666 # as well as any symbol that contains `d'. 9667 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9668 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9669 # platforms (ab)use it in PIC code, but their linkers get confused if 9670 # the symbol is explicitly referenced. Since portable code cannot 9671 # rely on this symbol name, it's probably fine to never include it in 9672 # preloaded symbol tables. 9673 # Exclude shared library initialization/finalization symbols. 9674 extract_expsyms_cmds= 9675 9676 case $host_os in 9677 cygwin* | mingw* | pw32* | cegcc*) 9678 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9679 # When not using gcc, we currently assume that we are using 9680 # Microsoft Visual C++. 9681 if test "$GCC" != yes; then 9682 with_gnu_ld=no 9683 fi 9684 ;; 9685 interix*) 9686 # we just hope/assume this is gcc and not c89 (= MSVC++) 9687 with_gnu_ld=yes 9688 ;; 9689 openbsd*) 9690 with_gnu_ld=no 9691 ;; 9692 linux* | k*bsd*-gnu | gnu*) 9693 link_all_deplibs=no 9694 ;; 9695 esac 9696 9697 ld_shlibs=yes 9698 9699 # On some targets, GNU ld is compatible enough with the native linker 9700 # that we're better off using the native interface for both. 9701 lt_use_gnu_ld_interface=no 9702 if test "$with_gnu_ld" = yes; then 9703 case $host_os in 9704 aix*) 9705 # The AIX port of GNU ld has always aspired to compatibility 9706 # with the native linker. However, as the warning in the GNU ld 9707 # block says, versions before 2.19.5* couldn't really create working 9708 # shared libraries, regardless of the interface used. 9709 case `$LD -v 2>&1` in 9710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9712 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9713 *) 9714 lt_use_gnu_ld_interface=yes 9715 ;; 9716 esac 9717 ;; 9718 *) 9719 lt_use_gnu_ld_interface=yes 9720 ;; 9721 esac 9722 fi 9723 9724 if test "$lt_use_gnu_ld_interface" = yes; then 9725 # If archive_cmds runs LD, not CC, wlarc should be empty 9726 wlarc='${wl}' 9727 9728 # Set some defaults for GNU ld with shared library support. These 9729 # are reset later if shared libraries are not supported. Putting them 9730 # here allows them to be overridden if necessary. 9731 runpath_var=LD_RUN_PATH 9732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9733 export_dynamic_flag_spec='${wl}--export-dynamic' 9734 # ancient GNU ld didn't support --whole-archive et. al. 9735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9737 else 9738 whole_archive_flag_spec= 9739 fi 9740 supports_anon_versioning=no 9741 case `$LD -v 2>&1` in 9742 *GNU\ gold*) supports_anon_versioning=yes ;; 9743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9746 *\ 2.11.*) ;; # other 2.11 versions 9747 *) supports_anon_versioning=yes ;; 9748 esac 9749 9750 # See if GNU ld supports shared libraries. 9751 case $host_os in 9752 aix[3-9]*) 9753 # On AIX/PPC, the GNU linker is very broken 9754 if test "$host_cpu" != ia64; then 9755 ld_shlibs=no 9756 cat <<_LT_EOF 1>&2 9757 9758*** Warning: the GNU linker, at least up to release 2.19, is reported 9759*** to be unable to reliably create shared libraries on AIX. 9760*** Therefore, libtool is disabling shared libraries support. If you 9761*** really care for shared libraries, you may want to install binutils 9762*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9763*** You will then need to restart the configuration process. 9764 9765_LT_EOF 9766 fi 9767 ;; 9768 9769 amigaos*) 9770 case $host_cpu in 9771 powerpc) 9772 # see comment about AmigaOS4 .so support 9773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9774 archive_expsym_cmds='' 9775 ;; 9776 m68k) 9777 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9778 hardcode_libdir_flag_spec='-L$libdir' 9779 hardcode_minus_L=yes 9780 ;; 9781 esac 9782 ;; 9783 9784 beos*) 9785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9786 allow_undefined_flag=unsupported 9787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9788 # support --undefined. This deserves some investigation. FIXME 9789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9790 else 9791 ld_shlibs=no 9792 fi 9793 ;; 9794 9795 cygwin* | mingw* | pw32* | cegcc*) 9796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9797 # as there is no search path for DLLs. 9798 hardcode_libdir_flag_spec='-L$libdir' 9799 export_dynamic_flag_spec='${wl}--export-all-symbols' 9800 allow_undefined_flag=unsupported 9801 always_export_symbols=no 9802 enable_shared_with_static_runtimes=yes 9803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9804 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9805 9806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9808 # If the export-symbols file already is a .def file (1st line 9809 # is EXPORTS), use it as is; otherwise, prepend... 9810 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9811 cp $export_symbols $output_objdir/$soname.def; 9812 else 9813 echo EXPORTS > $output_objdir/$soname.def; 9814 cat $export_symbols >> $output_objdir/$soname.def; 9815 fi~ 9816 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9817 else 9818 ld_shlibs=no 9819 fi 9820 ;; 9821 9822 haiku*) 9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9824 link_all_deplibs=yes 9825 ;; 9826 9827 interix[3-9]*) 9828 hardcode_direct=no 9829 hardcode_shlibpath_var=no 9830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9831 export_dynamic_flag_spec='${wl}-E' 9832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9833 # Instead, shared libraries are loaded at an image base (0x10000000 by 9834 # default) and relocated if they conflict, which is a slow very memory 9835 # consuming and fragmenting process. To avoid this, we pick a random, 9836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9837 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9838 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9839 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9840 ;; 9841 9842 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9843 tmp_diet=no 9844 if test "$host_os" = linux-dietlibc; then 9845 case $cc_basename in 9846 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9847 esac 9848 fi 9849 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9850 && test "$tmp_diet" = no 9851 then 9852 tmp_addflag=' $pic_flag' 9853 tmp_sharedflag='-shared' 9854 case $cc_basename,$host_cpu in 9855 pgcc*) # Portland Group C compiler 9856 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9857 tmp_addflag=' $pic_flag' 9858 ;; 9859 pgf77* | pgf90* | pgf95* | pgfortran*) 9860 # Portland Group f77 and f90 compilers 9861 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9862 tmp_addflag=' $pic_flag -Mnomain' ;; 9863 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9864 tmp_addflag=' -i_dynamic' ;; 9865 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9866 tmp_addflag=' -i_dynamic -nofor_main' ;; 9867 ifc* | ifort*) # Intel Fortran compiler 9868 tmp_addflag=' -nofor_main' ;; 9869 lf95*) # Lahey Fortran 8.1 9870 whole_archive_flag_spec= 9871 tmp_sharedflag='--shared' ;; 9872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9873 tmp_sharedflag='-qmkshrobj' 9874 tmp_addflag= ;; 9875 nvcc*) # Cuda Compiler Driver 2.2 9876 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9877 compiler_needs_object=yes 9878 ;; 9879 esac 9880 case `$CC -V 2>&1 | sed 5q` in 9881 *Sun\ C*) # Sun C 5.9 9882 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9883 compiler_needs_object=yes 9884 tmp_sharedflag='-G' ;; 9885 *Sun\ F*) # Sun Fortran 8.3 9886 tmp_sharedflag='-G' ;; 9887 esac 9888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9889 9890 if test "x$supports_anon_versioning" = xyes; then 9891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9893 echo "local: *; };" >> $output_objdir/$libname.ver~ 9894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9895 fi 9896 9897 case $cc_basename in 9898 xlf* | bgf* | bgxlf* | mpixlf*) 9899 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9900 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9902 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9903 if test "x$supports_anon_versioning" = xyes; then 9904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9906 echo "local: *; };" >> $output_objdir/$libname.ver~ 9907 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9908 fi 9909 ;; 9910 esac 9911 else 9912 ld_shlibs=no 9913 fi 9914 ;; 9915 9916 netbsd* | netbsdelf*-gnu) 9917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9919 wlarc= 9920 else 9921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9922 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9923 fi 9924 ;; 9925 9926 solaris*) 9927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9928 ld_shlibs=no 9929 cat <<_LT_EOF 1>&2 9930 9931*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9932*** create shared libraries on Solaris systems. Therefore, libtool 9933*** is disabling shared libraries support. We urge you to upgrade GNU 9934*** binutils to release 2.9.1 or newer. Another option is to modify 9935*** your PATH or compiler configuration so that the native linker is 9936*** used, and then restart. 9937 9938_LT_EOF 9939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9942 else 9943 ld_shlibs=no 9944 fi 9945 ;; 9946 9947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9948 case `$LD -v 2>&1` in 9949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9950 ld_shlibs=no 9951 cat <<_LT_EOF 1>&2 9952 9953*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9954*** reliably create shared libraries on SCO systems. Therefore, libtool 9955*** is disabling shared libraries support. We urge you to upgrade GNU 9956*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9957*** your PATH or compiler configuration so that the native linker is 9958*** used, and then restart. 9959 9960_LT_EOF 9961 ;; 9962 *) 9963 # For security reasons, it is highly recommended that you always 9964 # use absolute paths for naming shared libraries, and exclude the 9965 # DT_RUNPATH tag from executables and libraries. But doing so 9966 # requires that you compile everything twice, which is a pain. 9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9971 else 9972 ld_shlibs=no 9973 fi 9974 ;; 9975 esac 9976 ;; 9977 9978 sunos4*) 9979 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9980 wlarc= 9981 hardcode_direct=yes 9982 hardcode_shlibpath_var=no 9983 ;; 9984 9985 *) 9986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9989 else 9990 ld_shlibs=no 9991 fi 9992 ;; 9993 esac 9994 9995 if test "$ld_shlibs" = no; then 9996 runpath_var= 9997 hardcode_libdir_flag_spec= 9998 export_dynamic_flag_spec= 9999 whole_archive_flag_spec= 10000 fi 10001 else 10002 # PORTME fill in a description of your system's linker (not GNU ld) 10003 case $host_os in 10004 aix3*) 10005 allow_undefined_flag=unsupported 10006 always_export_symbols=yes 10007 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10008 # Note: this linker hardcodes the directories in LIBPATH if there 10009 # are no directories specified by -L. 10010 hardcode_minus_L=yes 10011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10012 # Neither direct hardcoding nor static linking is supported with a 10013 # broken collect2. 10014 hardcode_direct=unsupported 10015 fi 10016 ;; 10017 10018 aix[4-9]*) 10019 if test "$host_cpu" = ia64; then 10020 # On IA64, the linker does run time linking by default, so we don't 10021 # have to do anything special. 10022 aix_use_runtimelinking=no 10023 exp_sym_flag='-Bexport' 10024 no_entry_flag="" 10025 else 10026 # If we're using GNU nm, then we don't want the "-C" option. 10027 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10028 # Also, AIX nm treats weak defined symbols like other global 10029 # defined symbols, whereas GNU nm marks them as "W". 10030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10031 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10032 else 10033 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10034 fi 10035 aix_use_runtimelinking=no 10036 10037 # Test if we are trying to use run time linking or normal 10038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10039 # need to do runtime linking. 10040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10041 for ld_flag in $LDFLAGS; do 10042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10043 aix_use_runtimelinking=yes 10044 break 10045 fi 10046 done 10047 ;; 10048 esac 10049 10050 exp_sym_flag='-bexport' 10051 no_entry_flag='-bnoentry' 10052 fi 10053 10054 # When large executables or shared objects are built, AIX ld can 10055 # have problems creating the table of contents. If linking a library 10056 # or program results in "error TOC overflow" add -mminimal-toc to 10057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10059 10060 archive_cmds='' 10061 hardcode_direct=yes 10062 hardcode_direct_absolute=yes 10063 hardcode_libdir_separator=':' 10064 link_all_deplibs=yes 10065 file_list_spec='${wl}-f,' 10066 10067 if test "$GCC" = yes; then 10068 case $host_os in aix4.[012]|aix4.[012].*) 10069 # We only want to do this on AIX 4.2 and lower, the check 10070 # below for broken collect2 doesn't work under 4.3+ 10071 collect2name=`${CC} -print-prog-name=collect2` 10072 if test -f "$collect2name" && 10073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10074 then 10075 # We have reworked collect2 10076 : 10077 else 10078 # We have old collect2 10079 hardcode_direct=unsupported 10080 # It fails to find uninstalled libraries when the uninstalled 10081 # path is not listed in the libpath. Setting hardcode_minus_L 10082 # to unsupported forces relinking 10083 hardcode_minus_L=yes 10084 hardcode_libdir_flag_spec='-L$libdir' 10085 hardcode_libdir_separator= 10086 fi 10087 ;; 10088 esac 10089 shared_flag='-shared' 10090 if test "$aix_use_runtimelinking" = yes; then 10091 shared_flag="$shared_flag "'${wl}-G' 10092 fi 10093 link_all_deplibs=no 10094 else 10095 # not using gcc 10096 if test "$host_cpu" = ia64; then 10097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10098 # chokes on -Wl,-G. The following line is correct: 10099 shared_flag='-G' 10100 else 10101 if test "$aix_use_runtimelinking" = yes; then 10102 shared_flag='${wl}-G' 10103 else 10104 shared_flag='${wl}-bM:SRE' 10105 fi 10106 fi 10107 fi 10108 10109 export_dynamic_flag_spec='${wl}-bexpall' 10110 # It seems that -bexpall does not export symbols beginning with 10111 # underscore (_), so it is better to generate a list of symbols to export. 10112 always_export_symbols=yes 10113 if test "$aix_use_runtimelinking" = yes; then 10114 # Warning - without using the other runtime loading flags (-brtl), 10115 # -berok will link without error, but may produce a broken library. 10116 allow_undefined_flag='-berok' 10117 # Determine the default libpath from the value encoded in an 10118 # empty executable. 10119 if test "${lt_cv_aix_libpath+set}" = set; then 10120 aix_libpath=$lt_cv_aix_libpath 10121else 10122 if ${lt_cv_aix_libpath_+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124else 10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126/* end confdefs.h. */ 10127 10128int 10129main () 10130{ 10131 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136if ac_fn_c_try_link "$LINENO"; then : 10137 10138 lt_aix_libpath_sed=' 10139 /Import File Strings/,/^$/ { 10140 /^0/ { 10141 s/^0 *\([^ ]*\) *$/\1/ 10142 p 10143 } 10144 }' 10145 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10146 # Check for a 64-bit object if we didn't find anything. 10147 if test -z "$lt_cv_aix_libpath_"; then 10148 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10149 fi 10150fi 10151rm -f core conftest.err conftest.$ac_objext \ 10152 conftest$ac_exeext conftest.$ac_ext 10153 if test -z "$lt_cv_aix_libpath_"; then 10154 lt_cv_aix_libpath_="/usr/lib:/lib" 10155 fi 10156 10157fi 10158 10159 aix_libpath=$lt_cv_aix_libpath_ 10160fi 10161 10162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10163 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10164 else 10165 if test "$host_cpu" = ia64; then 10166 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10167 allow_undefined_flag="-z nodefs" 10168 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10169 else 10170 # Determine the default libpath from the value encoded in an 10171 # empty executable. 10172 if test "${lt_cv_aix_libpath+set}" = set; then 10173 aix_libpath=$lt_cv_aix_libpath 10174else 10175 if ${lt_cv_aix_libpath_+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10179/* end confdefs.h. */ 10180 10181int 10182main () 10183{ 10184 10185 ; 10186 return 0; 10187} 10188_ACEOF 10189if ac_fn_c_try_link "$LINENO"; then : 10190 10191 lt_aix_libpath_sed=' 10192 /Import File Strings/,/^$/ { 10193 /^0/ { 10194 s/^0 *\([^ ]*\) *$/\1/ 10195 p 10196 } 10197 }' 10198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10199 # Check for a 64-bit object if we didn't find anything. 10200 if test -z "$lt_cv_aix_libpath_"; then 10201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10202 fi 10203fi 10204rm -f core conftest.err conftest.$ac_objext \ 10205 conftest$ac_exeext conftest.$ac_ext 10206 if test -z "$lt_cv_aix_libpath_"; then 10207 lt_cv_aix_libpath_="/usr/lib:/lib" 10208 fi 10209 10210fi 10211 10212 aix_libpath=$lt_cv_aix_libpath_ 10213fi 10214 10215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10216 # Warning - without using the other run time loading flags, 10217 # -berok will link without error, but may produce a broken library. 10218 no_undefined_flag=' ${wl}-bernotok' 10219 allow_undefined_flag=' ${wl}-berok' 10220 if test "$with_gnu_ld" = yes; then 10221 # We only use this code for GNU lds that support --whole-archive. 10222 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10223 else 10224 # Exported symbols can be pulled into shared objects from archives 10225 whole_archive_flag_spec='$convenience' 10226 fi 10227 archive_cmds_need_lc=yes 10228 # This is similar to how AIX traditionally builds its shared libraries. 10229 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10230 fi 10231 fi 10232 ;; 10233 10234 amigaos*) 10235 case $host_cpu in 10236 powerpc) 10237 # see comment about AmigaOS4 .so support 10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10239 archive_expsym_cmds='' 10240 ;; 10241 m68k) 10242 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10243 hardcode_libdir_flag_spec='-L$libdir' 10244 hardcode_minus_L=yes 10245 ;; 10246 esac 10247 ;; 10248 10249 bsdi[45]*) 10250 export_dynamic_flag_spec=-rdynamic 10251 ;; 10252 10253 cygwin* | mingw* | pw32* | cegcc*) 10254 # When not using gcc, we currently assume that we are using 10255 # Microsoft Visual C++. 10256 # hardcode_libdir_flag_spec is actually meaningless, as there is 10257 # no search path for DLLs. 10258 case $cc_basename in 10259 cl*) 10260 # Native MSVC 10261 hardcode_libdir_flag_spec=' ' 10262 allow_undefined_flag=unsupported 10263 always_export_symbols=yes 10264 file_list_spec='@' 10265 # Tell ltmain to make .lib files, not .a files. 10266 libext=lib 10267 # Tell ltmain to make .dll files, not .so files. 10268 shrext_cmds=".dll" 10269 # FIXME: Setting linknames here is a bad hack. 10270 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10272 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10273 else 10274 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10275 fi~ 10276 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10277 linknames=' 10278 # The linker will not automatically build a static lib if we build a DLL. 10279 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10280 enable_shared_with_static_runtimes=yes 10281 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10283 # Don't use ranlib 10284 old_postinstall_cmds='chmod 644 $oldlib' 10285 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10286 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10287 case $lt_outputfile in 10288 *.exe|*.EXE) ;; 10289 *) 10290 lt_outputfile="$lt_outputfile.exe" 10291 lt_tool_outputfile="$lt_tool_outputfile.exe" 10292 ;; 10293 esac~ 10294 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10295 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10296 $RM "$lt_outputfile.manifest"; 10297 fi' 10298 ;; 10299 *) 10300 # Assume MSVC wrapper 10301 hardcode_libdir_flag_spec=' ' 10302 allow_undefined_flag=unsupported 10303 # Tell ltmain to make .lib files, not .a files. 10304 libext=lib 10305 # Tell ltmain to make .dll files, not .so files. 10306 shrext_cmds=".dll" 10307 # FIXME: Setting linknames here is a bad hack. 10308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10309 # The linker will automatically build a .lib file if we build a DLL. 10310 old_archive_from_new_cmds='true' 10311 # FIXME: Should let the user specify the lib program. 10312 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10313 enable_shared_with_static_runtimes=yes 10314 ;; 10315 esac 10316 ;; 10317 10318 darwin* | rhapsody*) 10319 10320 10321 archive_cmds_need_lc=no 10322 hardcode_direct=no 10323 hardcode_automatic=yes 10324 hardcode_shlibpath_var=unsupported 10325 if test "$lt_cv_ld_force_load" = "yes"; then 10326 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10327 10328 else 10329 whole_archive_flag_spec='' 10330 fi 10331 link_all_deplibs=yes 10332 allow_undefined_flag="$_lt_dar_allow_undefined" 10333 case $cc_basename in 10334 ifort*) _lt_dar_can_shared=yes ;; 10335 *) _lt_dar_can_shared=$GCC ;; 10336 esac 10337 if test "$_lt_dar_can_shared" = "yes"; then 10338 output_verbose_link_cmd=func_echo_all 10339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10341 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10342 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10343 10344 else 10345 ld_shlibs=no 10346 fi 10347 10348 ;; 10349 10350 dgux*) 10351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10352 hardcode_libdir_flag_spec='-L$libdir' 10353 hardcode_shlibpath_var=no 10354 ;; 10355 10356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10357 # support. Future versions do this automatically, but an explicit c++rt0.o 10358 # does not break anything, and helps significantly (at the cost of a little 10359 # extra space). 10360 freebsd2.2*) 10361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10362 hardcode_libdir_flag_spec='-R$libdir' 10363 hardcode_direct=yes 10364 hardcode_shlibpath_var=no 10365 ;; 10366 10367 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10368 freebsd2.*) 10369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10370 hardcode_direct=yes 10371 hardcode_minus_L=yes 10372 hardcode_shlibpath_var=no 10373 ;; 10374 10375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10376 freebsd* | dragonfly*) 10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10378 hardcode_libdir_flag_spec='-R$libdir' 10379 hardcode_direct=yes 10380 hardcode_shlibpath_var=no 10381 ;; 10382 10383 hpux9*) 10384 if test "$GCC" = yes; then 10385 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10386 else 10387 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10388 fi 10389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10390 hardcode_libdir_separator=: 10391 hardcode_direct=yes 10392 10393 # hardcode_minus_L: Not really in the search PATH, 10394 # but as the default location of the library. 10395 hardcode_minus_L=yes 10396 export_dynamic_flag_spec='${wl}-E' 10397 ;; 10398 10399 hpux10*) 10400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10401 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10402 else 10403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10404 fi 10405 if test "$with_gnu_ld" = no; then 10406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10407 hardcode_libdir_separator=: 10408 hardcode_direct=yes 10409 hardcode_direct_absolute=yes 10410 export_dynamic_flag_spec='${wl}-E' 10411 # hardcode_minus_L: Not really in the search PATH, 10412 # but as the default location of the library. 10413 hardcode_minus_L=yes 10414 fi 10415 ;; 10416 10417 hpux11*) 10418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10419 case $host_cpu in 10420 hppa*64*) 10421 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10422 ;; 10423 ia64*) 10424 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10425 ;; 10426 *) 10427 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10428 ;; 10429 esac 10430 else 10431 case $host_cpu in 10432 hppa*64*) 10433 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10434 ;; 10435 ia64*) 10436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10437 ;; 10438 *) 10439 10440 # Older versions of the 11.00 compiler do not understand -b yet 10441 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10443$as_echo_n "checking if $CC understands -b... " >&6; } 10444if ${lt_cv_prog_compiler__b+:} false; then : 10445 $as_echo_n "(cached) " >&6 10446else 10447 lt_cv_prog_compiler__b=no 10448 save_LDFLAGS="$LDFLAGS" 10449 LDFLAGS="$LDFLAGS -b" 10450 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10452 # The linker can only warn and ignore the option if not recognized 10453 # So say no if there are warnings 10454 if test -s conftest.err; then 10455 # Append any errors to the config.log. 10456 cat conftest.err 1>&5 10457 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10459 if diff conftest.exp conftest.er2 >/dev/null; then 10460 lt_cv_prog_compiler__b=yes 10461 fi 10462 else 10463 lt_cv_prog_compiler__b=yes 10464 fi 10465 fi 10466 $RM -r conftest* 10467 LDFLAGS="$save_LDFLAGS" 10468 10469fi 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10471$as_echo "$lt_cv_prog_compiler__b" >&6; } 10472 10473if test x"$lt_cv_prog_compiler__b" = xyes; then 10474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10475else 10476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10477fi 10478 10479 ;; 10480 esac 10481 fi 10482 if test "$with_gnu_ld" = no; then 10483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10484 hardcode_libdir_separator=: 10485 10486 case $host_cpu in 10487 hppa*64*|ia64*) 10488 hardcode_direct=no 10489 hardcode_shlibpath_var=no 10490 ;; 10491 *) 10492 hardcode_direct=yes 10493 hardcode_direct_absolute=yes 10494 export_dynamic_flag_spec='${wl}-E' 10495 10496 # hardcode_minus_L: Not really in the search PATH, 10497 # but as the default location of the library. 10498 hardcode_minus_L=yes 10499 ;; 10500 esac 10501 fi 10502 ;; 10503 10504 irix5* | irix6* | nonstopux*) 10505 if test "$GCC" = yes; then 10506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10507 # Try to use the -exported_symbol ld option, if it does not 10508 # work, assume that -exports_file does not work either and 10509 # implicitly export all symbols. 10510 # This should be the same for all languages, so no per-tag cache variable. 10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10512$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10513if ${lt_cv_irix_exported_symbol+:} false; then : 10514 $as_echo_n "(cached) " >&6 10515else 10516 save_LDFLAGS="$LDFLAGS" 10517 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519/* end confdefs.h. */ 10520int foo (void) { return 0; } 10521_ACEOF 10522if ac_fn_c_try_link "$LINENO"; then : 10523 lt_cv_irix_exported_symbol=yes 10524else 10525 lt_cv_irix_exported_symbol=no 10526fi 10527rm -f core conftest.err conftest.$ac_objext \ 10528 conftest$ac_exeext conftest.$ac_ext 10529 LDFLAGS="$save_LDFLAGS" 10530fi 10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10532$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10533 if test "$lt_cv_irix_exported_symbol" = yes; then 10534 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10535 fi 10536 else 10537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10538 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10539 fi 10540 archive_cmds_need_lc='no' 10541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10542 hardcode_libdir_separator=: 10543 inherit_rpath=yes 10544 link_all_deplibs=yes 10545 ;; 10546 10547 netbsd* | netbsdelf*-gnu) 10548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10550 else 10551 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10552 fi 10553 hardcode_libdir_flag_spec='-R$libdir' 10554 hardcode_direct=yes 10555 hardcode_shlibpath_var=no 10556 ;; 10557 10558 newsos6) 10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10560 hardcode_direct=yes 10561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10562 hardcode_libdir_separator=: 10563 hardcode_shlibpath_var=no 10564 ;; 10565 10566 *nto* | *qnx*) 10567 ;; 10568 10569 openbsd*) 10570 if test -f /usr/libexec/ld.so; then 10571 hardcode_direct=yes 10572 hardcode_shlibpath_var=no 10573 hardcode_direct_absolute=yes 10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10578 export_dynamic_flag_spec='${wl}-E' 10579 else 10580 case $host_os in 10581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10583 hardcode_libdir_flag_spec='-R$libdir' 10584 ;; 10585 *) 10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10588 ;; 10589 esac 10590 fi 10591 else 10592 ld_shlibs=no 10593 fi 10594 ;; 10595 10596 os2*) 10597 hardcode_libdir_flag_spec='-L$libdir' 10598 hardcode_minus_L=yes 10599 allow_undefined_flag=unsupported 10600 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10601 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10602 ;; 10603 10604 osf3*) 10605 if test "$GCC" = yes; then 10606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10607 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10608 else 10609 allow_undefined_flag=' -expect_unresolved \*' 10610 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10611 fi 10612 archive_cmds_need_lc='no' 10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10614 hardcode_libdir_separator=: 10615 ;; 10616 10617 osf4* | osf5*) # as osf3* with the addition of -msym flag 10618 if test "$GCC" = yes; then 10619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10620 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10622 else 10623 allow_undefined_flag=' -expect_unresolved \*' 10624 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10625 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10626 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10627 10628 # Both c and cxx compiler support -rpath directly 10629 hardcode_libdir_flag_spec='-rpath $libdir' 10630 fi 10631 archive_cmds_need_lc='no' 10632 hardcode_libdir_separator=: 10633 ;; 10634 10635 solaris*) 10636 no_undefined_flag=' -z defs' 10637 if test "$GCC" = yes; then 10638 wlarc='${wl}' 10639 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10641 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10642 else 10643 case `$CC -V 2>&1` in 10644 *"Compilers 5.0"*) 10645 wlarc='' 10646 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10649 ;; 10650 *) 10651 wlarc='${wl}' 10652 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10654 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10655 ;; 10656 esac 10657 fi 10658 hardcode_libdir_flag_spec='-R$libdir' 10659 hardcode_shlibpath_var=no 10660 case $host_os in 10661 solaris2.[0-5] | solaris2.[0-5].*) ;; 10662 *) 10663 # The compiler driver will combine and reorder linker options, 10664 # but understands `-z linker_flag'. GCC discards it without `$wl', 10665 # but is careful enough not to reorder. 10666 # Supported since Solaris 2.6 (maybe 2.5.1?) 10667 if test "$GCC" = yes; then 10668 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10669 else 10670 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10671 fi 10672 ;; 10673 esac 10674 link_all_deplibs=yes 10675 ;; 10676 10677 sunos4*) 10678 if test "x$host_vendor" = xsequent; then 10679 # Use $CC to link under sequent, because it throws in some extra .o 10680 # files that make .init and .fini sections work. 10681 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10682 else 10683 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10684 fi 10685 hardcode_libdir_flag_spec='-L$libdir' 10686 hardcode_direct=yes 10687 hardcode_minus_L=yes 10688 hardcode_shlibpath_var=no 10689 ;; 10690 10691 sysv4) 10692 case $host_vendor in 10693 sni) 10694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10695 hardcode_direct=yes # is this really true??? 10696 ;; 10697 siemens) 10698 ## LD is ld it makes a PLAMLIB 10699 ## CC just makes a GrossModule. 10700 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10701 reload_cmds='$CC -r -o $output$reload_objs' 10702 hardcode_direct=no 10703 ;; 10704 motorola) 10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10706 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10707 ;; 10708 esac 10709 runpath_var='LD_RUN_PATH' 10710 hardcode_shlibpath_var=no 10711 ;; 10712 10713 sysv4.3*) 10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10715 hardcode_shlibpath_var=no 10716 export_dynamic_flag_spec='-Bexport' 10717 ;; 10718 10719 sysv4*MP*) 10720 if test -d /usr/nec; then 10721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10722 hardcode_shlibpath_var=no 10723 runpath_var=LD_RUN_PATH 10724 hardcode_runpath_var=yes 10725 ld_shlibs=yes 10726 fi 10727 ;; 10728 10729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10730 no_undefined_flag='${wl}-z,text' 10731 archive_cmds_need_lc=no 10732 hardcode_shlibpath_var=no 10733 runpath_var='LD_RUN_PATH' 10734 10735 if test "$GCC" = yes; then 10736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10738 else 10739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10741 fi 10742 ;; 10743 10744 sysv5* | sco3.2v5* | sco5v6*) 10745 # Note: We can NOT use -z defs as we might desire, because we do not 10746 # link with -lc, and that would cause any symbols used from libc to 10747 # always be unresolved, which means just about no library would 10748 # ever link correctly. If we're not using GNU ld we use -z text 10749 # though, which does catch some bad symbols but isn't as heavy-handed 10750 # as -z defs. 10751 no_undefined_flag='${wl}-z,text' 10752 allow_undefined_flag='${wl}-z,nodefs' 10753 archive_cmds_need_lc=no 10754 hardcode_shlibpath_var=no 10755 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10756 hardcode_libdir_separator=':' 10757 link_all_deplibs=yes 10758 export_dynamic_flag_spec='${wl}-Bexport' 10759 runpath_var='LD_RUN_PATH' 10760 10761 if test "$GCC" = yes; then 10762 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10763 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10764 else 10765 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10766 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 fi 10768 ;; 10769 10770 uts4*) 10771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10772 hardcode_libdir_flag_spec='-L$libdir' 10773 hardcode_shlibpath_var=no 10774 ;; 10775 10776 *) 10777 ld_shlibs=no 10778 ;; 10779 esac 10780 10781 if test x$host_vendor = xsni; then 10782 case $host in 10783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10784 export_dynamic_flag_spec='${wl}-Blargedynsym' 10785 ;; 10786 esac 10787 fi 10788 fi 10789 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10791$as_echo "$ld_shlibs" >&6; } 10792test "$ld_shlibs" = no && can_build_shared=no 10793 10794with_gnu_ld=$with_gnu_ld 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810# 10811# Do we need to explicitly link libc? 10812# 10813case "x$archive_cmds_need_lc" in 10814x|xyes) 10815 # Assume -lc should be added 10816 archive_cmds_need_lc=yes 10817 10818 if test "$enable_shared" = yes && test "$GCC" = yes; then 10819 case $archive_cmds in 10820 *'~'*) 10821 # FIXME: we may have to deal with multi-command sequences. 10822 ;; 10823 '$CC '*) 10824 # Test whether the compiler implicitly links with -lc since on some 10825 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10826 # to ld, don't add -lc before -lgcc. 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10828$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10829if ${lt_cv_archive_cmds_need_lc+:} false; then : 10830 $as_echo_n "(cached) " >&6 10831else 10832 $RM conftest* 10833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10834 10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10836 (eval $ac_compile) 2>&5 10837 ac_status=$? 10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10839 test $ac_status = 0; } 2>conftest.err; then 10840 soname=conftest 10841 lib=conftest 10842 libobjs=conftest.$ac_objext 10843 deplibs= 10844 wl=$lt_prog_compiler_wl 10845 pic_flag=$lt_prog_compiler_pic 10846 compiler_flags=-v 10847 linker_flags=-v 10848 verstring= 10849 output_objdir=. 10850 libname=conftest 10851 lt_save_allow_undefined_flag=$allow_undefined_flag 10852 allow_undefined_flag= 10853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10854 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10855 ac_status=$? 10856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10857 test $ac_status = 0; } 10858 then 10859 lt_cv_archive_cmds_need_lc=no 10860 else 10861 lt_cv_archive_cmds_need_lc=yes 10862 fi 10863 allow_undefined_flag=$lt_save_allow_undefined_flag 10864 else 10865 cat conftest.err 1>&5 10866 fi 10867 $RM conftest* 10868 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10871$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10872 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10873 ;; 10874 esac 10875 fi 10876 ;; 10877esac 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11031$as_echo_n "checking dynamic linker characteristics... " >&6; } 11032 11033if test "$GCC" = yes; then 11034 case $host_os in 11035 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11036 *) lt_awk_arg="/^libraries:/" ;; 11037 esac 11038 case $host_os in 11039 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11040 *) lt_sed_strip_eq="s,=/,/,g" ;; 11041 esac 11042 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11043 case $lt_search_path_spec in 11044 *\;*) 11045 # if the path contains ";" then we assume it to be the separator 11046 # otherwise default to the standard path separator (i.e. ":") - it is 11047 # assumed that no part of a normal pathname contains ";" but that should 11048 # okay in the real world where ";" in dirpaths is itself problematic. 11049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11050 ;; 11051 *) 11052 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11053 ;; 11054 esac 11055 # Ok, now we have the path, separated by spaces, we can step through it 11056 # and add multilib dir if necessary. 11057 lt_tmp_lt_search_path_spec= 11058 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11059 for lt_sys_path in $lt_search_path_spec; do 11060 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11062 else 11063 test -d "$lt_sys_path" && \ 11064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11065 fi 11066 done 11067 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11068BEGIN {RS=" "; FS="/|\n";} { 11069 lt_foo=""; 11070 lt_count=0; 11071 for (lt_i = NF; lt_i > 0; lt_i--) { 11072 if ($lt_i != "" && $lt_i != ".") { 11073 if ($lt_i == "..") { 11074 lt_count++; 11075 } else { 11076 if (lt_count == 0) { 11077 lt_foo="/" $lt_i lt_foo; 11078 } else { 11079 lt_count--; 11080 } 11081 } 11082 } 11083 } 11084 if (lt_foo != "") { lt_freq[lt_foo]++; } 11085 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11086}'` 11087 # AWK program above erroneously prepends '/' to C:/dos/paths 11088 # for these hosts. 11089 case $host_os in 11090 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11091 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11092 esac 11093 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11094else 11095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11096fi 11097library_names_spec= 11098libname_spec='lib$name' 11099soname_spec= 11100shrext_cmds=".so" 11101postinstall_cmds= 11102postuninstall_cmds= 11103finish_cmds= 11104finish_eval= 11105shlibpath_var= 11106shlibpath_overrides_runpath=unknown 11107version_type=none 11108dynamic_linker="$host_os ld.so" 11109sys_lib_dlsearch_path_spec="/lib /usr/lib" 11110need_lib_prefix=unknown 11111hardcode_into_libs=no 11112 11113# when you set need_version to no, make sure it does not cause -set_version 11114# flags to be left without arguments 11115need_version=unknown 11116 11117case $host_os in 11118aix3*) 11119 version_type=linux # correct to gnu/linux during the next big refactor 11120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11121 shlibpath_var=LIBPATH 11122 11123 # AIX 3 has no versioning support, so we append a major version to the name. 11124 soname_spec='${libname}${release}${shared_ext}$major' 11125 ;; 11126 11127aix[4-9]*) 11128 version_type=linux # correct to gnu/linux during the next big refactor 11129 need_lib_prefix=no 11130 need_version=no 11131 hardcode_into_libs=yes 11132 if test "$host_cpu" = ia64; then 11133 # AIX 5 supports IA64 11134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11135 shlibpath_var=LD_LIBRARY_PATH 11136 else 11137 # With GCC up to 2.95.x, collect2 would create an import file 11138 # for dependence libraries. The import file would start with 11139 # the line `#! .'. This would cause the generated library to 11140 # depend on `.', always an invalid library. This was fixed in 11141 # development snapshots of GCC prior to 3.0. 11142 case $host_os in 11143 aix4 | aix4.[01] | aix4.[01].*) 11144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11145 echo ' yes ' 11146 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11147 : 11148 else 11149 can_build_shared=no 11150 fi 11151 ;; 11152 esac 11153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11154 # soname into executable. Probably we can add versioning support to 11155 # collect2, so additional links can be useful in future. 11156 if test "$aix_use_runtimelinking" = yes; then 11157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11158 # instead of lib<name>.a to let people know that these are not 11159 # typical AIX shared libraries. 11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11161 else 11162 # We preserve .a as extension for shared libraries through AIX4.2 11163 # and later when we are not doing run time linking. 11164 library_names_spec='${libname}${release}.a $libname.a' 11165 soname_spec='${libname}${release}${shared_ext}$major' 11166 fi 11167 shlibpath_var=LIBPATH 11168 fi 11169 ;; 11170 11171amigaos*) 11172 case $host_cpu in 11173 powerpc) 11174 # Since July 2007 AmigaOS4 officially supports .so libraries. 11175 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11177 ;; 11178 m68k) 11179 library_names_spec='$libname.ixlibrary $libname.a' 11180 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11181 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11182 ;; 11183 esac 11184 ;; 11185 11186beos*) 11187 library_names_spec='${libname}${shared_ext}' 11188 dynamic_linker="$host_os ld.so" 11189 shlibpath_var=LIBRARY_PATH 11190 ;; 11191 11192bsdi[45]*) 11193 version_type=linux # correct to gnu/linux during the next big refactor 11194 need_version=no 11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11196 soname_spec='${libname}${release}${shared_ext}$major' 11197 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11200 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11201 # the default ld.so.conf also contains /usr/contrib/lib and 11202 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11203 # libtool to hard-code these into programs 11204 ;; 11205 11206cygwin* | mingw* | pw32* | cegcc*) 11207 version_type=windows 11208 shrext_cmds=".dll" 11209 need_version=no 11210 need_lib_prefix=no 11211 11212 case $GCC,$cc_basename in 11213 yes,*) 11214 # gcc 11215 library_names_spec='$libname.dll.a' 11216 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11217 postinstall_cmds='base_file=`basename \${file}`~ 11218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11219 dldir=$destdir/`dirname \$dlpath`~ 11220 test -d \$dldir || mkdir -p \$dldir~ 11221 $install_prog $dir/$dlname \$dldir/$dlname~ 11222 chmod a+x \$dldir/$dlname~ 11223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11224 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11225 fi' 11226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11227 dlpath=$dir/\$dldll~ 11228 $RM \$dlpath' 11229 shlibpath_overrides_runpath=yes 11230 11231 case $host_os in 11232 cygwin*) 11233 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11235 11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11237 ;; 11238 mingw* | cegcc*) 11239 # MinGW DLLs use traditional 'lib' prefix 11240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11241 ;; 11242 pw32*) 11243 # pw32 DLLs use 'pw' prefix rather than 'lib' 11244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11245 ;; 11246 esac 11247 dynamic_linker='Win32 ld.exe' 11248 ;; 11249 11250 *,cl*) 11251 # Native MSVC 11252 libname_spec='$name' 11253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11254 library_names_spec='${libname}.dll.lib' 11255 11256 case $build_os in 11257 mingw*) 11258 sys_lib_search_path_spec= 11259 lt_save_ifs=$IFS 11260 IFS=';' 11261 for lt_path in $LIB 11262 do 11263 IFS=$lt_save_ifs 11264 # Let DOS variable expansion print the short 8.3 style file name. 11265 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11266 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11267 done 11268 IFS=$lt_save_ifs 11269 # Convert to MSYS style. 11270 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11271 ;; 11272 cygwin*) 11273 # Convert to unix form, then to dos form, then back to unix form 11274 # but this time dos style (no spaces!) so that the unix form looks 11275 # like /cygdrive/c/PROGRA~1:/cygdr... 11276 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11277 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11278 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11279 ;; 11280 *) 11281 sys_lib_search_path_spec="$LIB" 11282 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11283 # It is most probably a Windows format PATH. 11284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11285 else 11286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11287 fi 11288 # FIXME: find the short name or the path components, as spaces are 11289 # common. (e.g. "Program Files" -> "PROGRA~1") 11290 ;; 11291 esac 11292 11293 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11294 postinstall_cmds='base_file=`basename \${file}`~ 11295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11296 dldir=$destdir/`dirname \$dlpath`~ 11297 test -d \$dldir || mkdir -p \$dldir~ 11298 $install_prog $dir/$dlname \$dldir/$dlname' 11299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11300 dlpath=$dir/\$dldll~ 11301 $RM \$dlpath' 11302 shlibpath_overrides_runpath=yes 11303 dynamic_linker='Win32 link.exe' 11304 ;; 11305 11306 *) 11307 # Assume MSVC wrapper 11308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11309 dynamic_linker='Win32 ld.exe' 11310 ;; 11311 esac 11312 # FIXME: first we should search . and the directory the executable is in 11313 shlibpath_var=PATH 11314 ;; 11315 11316darwin* | rhapsody*) 11317 dynamic_linker="$host_os dyld" 11318 version_type=darwin 11319 need_lib_prefix=no 11320 need_version=no 11321 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11322 soname_spec='${libname}${release}${major}$shared_ext' 11323 shlibpath_overrides_runpath=yes 11324 shlibpath_var=DYLD_LIBRARY_PATH 11325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11326 11327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11328 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11329 ;; 11330 11331dgux*) 11332 version_type=linux # correct to gnu/linux during the next big refactor 11333 need_lib_prefix=no 11334 need_version=no 11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11336 soname_spec='${libname}${release}${shared_ext}$major' 11337 shlibpath_var=LD_LIBRARY_PATH 11338 ;; 11339 11340freebsd* | dragonfly*) 11341 # DragonFly does not have aout. When/if they implement a new 11342 # versioning mechanism, adjust this. 11343 if test -x /usr/bin/objformat; then 11344 objformat=`/usr/bin/objformat` 11345 else 11346 case $host_os in 11347 freebsd[23].*) objformat=aout ;; 11348 *) objformat=elf ;; 11349 esac 11350 fi 11351 version_type=freebsd-$objformat 11352 case $version_type in 11353 freebsd-elf*) 11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11355 need_version=no 11356 need_lib_prefix=no 11357 ;; 11358 freebsd-*) 11359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11360 need_version=yes 11361 ;; 11362 esac 11363 shlibpath_var=LD_LIBRARY_PATH 11364 case $host_os in 11365 freebsd2.*) 11366 shlibpath_overrides_runpath=yes 11367 ;; 11368 freebsd3.[01]* | freebsdelf3.[01]*) 11369 shlibpath_overrides_runpath=yes 11370 hardcode_into_libs=yes 11371 ;; 11372 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11373 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11374 shlibpath_overrides_runpath=no 11375 hardcode_into_libs=yes 11376 ;; 11377 *) # from 4.6 on, and DragonFly 11378 shlibpath_overrides_runpath=yes 11379 hardcode_into_libs=yes 11380 ;; 11381 esac 11382 ;; 11383 11384haiku*) 11385 version_type=linux # correct to gnu/linux during the next big refactor 11386 need_lib_prefix=no 11387 need_version=no 11388 dynamic_linker="$host_os runtime_loader" 11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11390 soname_spec='${libname}${release}${shared_ext}$major' 11391 shlibpath_var=LIBRARY_PATH 11392 shlibpath_overrides_runpath=yes 11393 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11394 hardcode_into_libs=yes 11395 ;; 11396 11397hpux9* | hpux10* | hpux11*) 11398 # Give a soname corresponding to the major version so that dld.sl refuses to 11399 # link against other versions. 11400 version_type=sunos 11401 need_lib_prefix=no 11402 need_version=no 11403 case $host_cpu in 11404 ia64*) 11405 shrext_cmds='.so' 11406 hardcode_into_libs=yes 11407 dynamic_linker="$host_os dld.so" 11408 shlibpath_var=LD_LIBRARY_PATH 11409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11411 soname_spec='${libname}${release}${shared_ext}$major' 11412 if test "X$HPUX_IA64_MODE" = X32; then 11413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11414 else 11415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11416 fi 11417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11418 ;; 11419 hppa*64*) 11420 shrext_cmds='.sl' 11421 hardcode_into_libs=yes 11422 dynamic_linker="$host_os dld.sl" 11423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11426 soname_spec='${libname}${release}${shared_ext}$major' 11427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11429 ;; 11430 *) 11431 shrext_cmds='.sl' 11432 dynamic_linker="$host_os dld.sl" 11433 shlibpath_var=SHLIB_PATH 11434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11436 soname_spec='${libname}${release}${shared_ext}$major' 11437 ;; 11438 esac 11439 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11440 postinstall_cmds='chmod 555 $lib' 11441 # or fails outright, so override atomically: 11442 install_override_mode=555 11443 ;; 11444 11445interix[3-9]*) 11446 version_type=linux # correct to gnu/linux during the next big refactor 11447 need_lib_prefix=no 11448 need_version=no 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11450 soname_spec='${libname}${release}${shared_ext}$major' 11451 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11452 shlibpath_var=LD_LIBRARY_PATH 11453 shlibpath_overrides_runpath=no 11454 hardcode_into_libs=yes 11455 ;; 11456 11457irix5* | irix6* | nonstopux*) 11458 case $host_os in 11459 nonstopux*) version_type=nonstopux ;; 11460 *) 11461 if test "$lt_cv_prog_gnu_ld" = yes; then 11462 version_type=linux # correct to gnu/linux during the next big refactor 11463 else 11464 version_type=irix 11465 fi ;; 11466 esac 11467 need_lib_prefix=no 11468 need_version=no 11469 soname_spec='${libname}${release}${shared_ext}$major' 11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11471 case $host_os in 11472 irix5* | nonstopux*) 11473 libsuff= shlibsuff= 11474 ;; 11475 *) 11476 case $LD in # libtool.m4 will add one of these switches to LD 11477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11478 libsuff= shlibsuff= libmagic=32-bit;; 11479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11480 libsuff=32 shlibsuff=N32 libmagic=N32;; 11481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11482 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11483 *) libsuff= shlibsuff= libmagic=never-match;; 11484 esac 11485 ;; 11486 esac 11487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11488 shlibpath_overrides_runpath=no 11489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11491 hardcode_into_libs=yes 11492 ;; 11493 11494# No shared lib support for Linux oldld, aout, or coff. 11495linux*oldld* | linux*aout* | linux*coff*) 11496 dynamic_linker=no 11497 ;; 11498 11499# This must be glibc/ELF. 11500linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11501 version_type=linux # correct to gnu/linux during the next big refactor 11502 need_lib_prefix=no 11503 need_version=no 11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11505 soname_spec='${libname}${release}${shared_ext}$major' 11506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11507 shlibpath_var=LD_LIBRARY_PATH 11508 shlibpath_overrides_runpath=no 11509 11510 # Some binutils ld are patched to set DT_RUNPATH 11511 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11512 $as_echo_n "(cached) " >&6 11513else 11514 lt_cv_shlibpath_overrides_runpath=no 11515 save_LDFLAGS=$LDFLAGS 11516 save_libdir=$libdir 11517 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11518 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11520/* end confdefs.h. */ 11521 11522int 11523main () 11524{ 11525 11526 ; 11527 return 0; 11528} 11529_ACEOF 11530if ac_fn_c_try_link "$LINENO"; then : 11531 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11532 lt_cv_shlibpath_overrides_runpath=yes 11533fi 11534fi 11535rm -f core conftest.err conftest.$ac_objext \ 11536 conftest$ac_exeext conftest.$ac_ext 11537 LDFLAGS=$save_LDFLAGS 11538 libdir=$save_libdir 11539 11540fi 11541 11542 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11543 11544 # This implies no fast_install, which is unacceptable. 11545 # Some rework will be needed to allow for fast_install 11546 # before this can be enabled. 11547 hardcode_into_libs=yes 11548 11549 # Append ld.so.conf contents to the search path 11550 if test -f /etc/ld.so.conf; then 11551 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11552 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11553 fi 11554 11555 # We used to test for /lib/ld.so.1 and disable shared libraries on 11556 # powerpc, because MkLinux only supported shared libraries with the 11557 # GNU dynamic linker. Since this was broken with cross compilers, 11558 # most powerpc-linux boxes support dynamic linking these days and 11559 # people can always --disable-shared, the test was removed, and we 11560 # assume the GNU/Linux dynamic linker is in use. 11561 dynamic_linker='GNU/Linux ld.so' 11562 ;; 11563 11564netbsdelf*-gnu) 11565 version_type=linux 11566 need_lib_prefix=no 11567 need_version=no 11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11569 soname_spec='${libname}${release}${shared_ext}$major' 11570 shlibpath_var=LD_LIBRARY_PATH 11571 shlibpath_overrides_runpath=no 11572 hardcode_into_libs=yes 11573 dynamic_linker='NetBSD ld.elf_so' 11574 ;; 11575 11576netbsd*) 11577 version_type=sunos 11578 need_lib_prefix=no 11579 need_version=no 11580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11583 dynamic_linker='NetBSD (a.out) ld.so' 11584 else 11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11586 soname_spec='${libname}${release}${shared_ext}$major' 11587 dynamic_linker='NetBSD ld.elf_so' 11588 fi 11589 shlibpath_var=LD_LIBRARY_PATH 11590 shlibpath_overrides_runpath=yes 11591 hardcode_into_libs=yes 11592 ;; 11593 11594newsos6) 11595 version_type=linux # correct to gnu/linux during the next big refactor 11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11597 shlibpath_var=LD_LIBRARY_PATH 11598 shlibpath_overrides_runpath=yes 11599 ;; 11600 11601*nto* | *qnx*) 11602 version_type=qnx 11603 need_lib_prefix=no 11604 need_version=no 11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11606 soname_spec='${libname}${release}${shared_ext}$major' 11607 shlibpath_var=LD_LIBRARY_PATH 11608 shlibpath_overrides_runpath=no 11609 hardcode_into_libs=yes 11610 dynamic_linker='ldqnx.so' 11611 ;; 11612 11613openbsd*) 11614 version_type=sunos 11615 sys_lib_dlsearch_path_spec="/usr/lib" 11616 need_lib_prefix=no 11617 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11618 case $host_os in 11619 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11620 *) need_version=no ;; 11621 esac 11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11624 shlibpath_var=LD_LIBRARY_PATH 11625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11626 case $host_os in 11627 openbsd2.[89] | openbsd2.[89].*) 11628 shlibpath_overrides_runpath=no 11629 ;; 11630 *) 11631 shlibpath_overrides_runpath=yes 11632 ;; 11633 esac 11634 else 11635 shlibpath_overrides_runpath=yes 11636 fi 11637 ;; 11638 11639os2*) 11640 libname_spec='$name' 11641 shrext_cmds=".dll" 11642 need_lib_prefix=no 11643 library_names_spec='$libname${shared_ext} $libname.a' 11644 dynamic_linker='OS/2 ld.exe' 11645 shlibpath_var=LIBPATH 11646 ;; 11647 11648osf3* | osf4* | osf5*) 11649 version_type=osf 11650 need_lib_prefix=no 11651 need_version=no 11652 soname_spec='${libname}${release}${shared_ext}$major' 11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11654 shlibpath_var=LD_LIBRARY_PATH 11655 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11656 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11657 ;; 11658 11659rdos*) 11660 dynamic_linker=no 11661 ;; 11662 11663solaris*) 11664 version_type=linux # correct to gnu/linux during the next big refactor 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11668 soname_spec='${libname}${release}${shared_ext}$major' 11669 shlibpath_var=LD_LIBRARY_PATH 11670 shlibpath_overrides_runpath=yes 11671 hardcode_into_libs=yes 11672 # ldd complains unless libraries are executable 11673 postinstall_cmds='chmod +x $lib' 11674 ;; 11675 11676sunos4*) 11677 version_type=sunos 11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11679 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11680 shlibpath_var=LD_LIBRARY_PATH 11681 shlibpath_overrides_runpath=yes 11682 if test "$with_gnu_ld" = yes; then 11683 need_lib_prefix=no 11684 fi 11685 need_version=yes 11686 ;; 11687 11688sysv4 | sysv4.3*) 11689 version_type=linux # correct to gnu/linux during the next big refactor 11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11691 soname_spec='${libname}${release}${shared_ext}$major' 11692 shlibpath_var=LD_LIBRARY_PATH 11693 case $host_vendor in 11694 sni) 11695 shlibpath_overrides_runpath=no 11696 need_lib_prefix=no 11697 runpath_var=LD_RUN_PATH 11698 ;; 11699 siemens) 11700 need_lib_prefix=no 11701 ;; 11702 motorola) 11703 need_lib_prefix=no 11704 need_version=no 11705 shlibpath_overrides_runpath=no 11706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11707 ;; 11708 esac 11709 ;; 11710 11711sysv4*MP*) 11712 if test -d /usr/nec ;then 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11715 soname_spec='$libname${shared_ext}.$major' 11716 shlibpath_var=LD_LIBRARY_PATH 11717 fi 11718 ;; 11719 11720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11721 version_type=freebsd-elf 11722 need_lib_prefix=no 11723 need_version=no 11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11725 soname_spec='${libname}${release}${shared_ext}$major' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 shlibpath_overrides_runpath=yes 11728 hardcode_into_libs=yes 11729 if test "$with_gnu_ld" = yes; then 11730 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11731 else 11732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11733 case $host_os in 11734 sco3.2v5*) 11735 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11736 ;; 11737 esac 11738 fi 11739 sys_lib_dlsearch_path_spec='/usr/lib' 11740 ;; 11741 11742tpf*) 11743 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11744 version_type=linux # correct to gnu/linux during the next big refactor 11745 need_lib_prefix=no 11746 need_version=no 11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11748 shlibpath_var=LD_LIBRARY_PATH 11749 shlibpath_overrides_runpath=no 11750 hardcode_into_libs=yes 11751 ;; 11752 11753uts4*) 11754 version_type=linux # correct to gnu/linux during the next big refactor 11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11756 soname_spec='${libname}${release}${shared_ext}$major' 11757 shlibpath_var=LD_LIBRARY_PATH 11758 ;; 11759 11760*) 11761 dynamic_linker=no 11762 ;; 11763esac 11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11765$as_echo "$dynamic_linker" >&6; } 11766test "$dynamic_linker" = no && can_build_shared=no 11767 11768variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11769if test "$GCC" = yes; then 11770 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11771fi 11772 11773if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11774 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11775fi 11776if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11777 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11778fi 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11872$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11873hardcode_action= 11874if test -n "$hardcode_libdir_flag_spec" || 11875 test -n "$runpath_var" || 11876 test "X$hardcode_automatic" = "Xyes" ; then 11877 11878 # We can hardcode non-existent directories. 11879 if test "$hardcode_direct" != no && 11880 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11881 # have to relink, otherwise we might link with an installed library 11882 # when we should be linking with a yet-to-be-installed one 11883 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11884 test "$hardcode_minus_L" != no; then 11885 # Linking always hardcodes the temporary library directory. 11886 hardcode_action=relink 11887 else 11888 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11889 hardcode_action=immediate 11890 fi 11891else 11892 # We cannot hardcode anything, or else we can only hardcode existing 11893 # directories. 11894 hardcode_action=unsupported 11895fi 11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11897$as_echo "$hardcode_action" >&6; } 11898 11899if test "$hardcode_action" = relink || 11900 test "$inherit_rpath" = yes; then 11901 # Fast installation is not supported 11902 enable_fast_install=no 11903elif test "$shlibpath_overrides_runpath" = yes || 11904 test "$enable_shared" = no; then 11905 # Fast installation is not necessary 11906 enable_fast_install=needless 11907fi 11908 11909 11910 11911 11912 11913 11914 if test "x$enable_dlopen" != xyes; then 11915 enable_dlopen=unknown 11916 enable_dlopen_self=unknown 11917 enable_dlopen_self_static=unknown 11918else 11919 lt_cv_dlopen=no 11920 lt_cv_dlopen_libs= 11921 11922 case $host_os in 11923 beos*) 11924 lt_cv_dlopen="load_add_on" 11925 lt_cv_dlopen_libs= 11926 lt_cv_dlopen_self=yes 11927 ;; 11928 11929 mingw* | pw32* | cegcc*) 11930 lt_cv_dlopen="LoadLibrary" 11931 lt_cv_dlopen_libs= 11932 ;; 11933 11934 cygwin*) 11935 lt_cv_dlopen="dlopen" 11936 lt_cv_dlopen_libs= 11937 ;; 11938 11939 darwin*) 11940 # if libdl is installed we need to link against it 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11942$as_echo_n "checking for dlopen in -ldl... " >&6; } 11943if ${ac_cv_lib_dl_dlopen+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 ac_check_lib_save_LIBS=$LIBS 11947LIBS="-ldl $LIBS" 11948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11949/* end confdefs.h. */ 11950 11951/* Override any GCC internal prototype to avoid an error. 11952 Use char because int might match the return type of a GCC 11953 builtin and then its argument prototype would still apply. */ 11954#ifdef __cplusplus 11955extern "C" 11956#endif 11957char dlopen (); 11958int 11959main () 11960{ 11961return dlopen (); 11962 ; 11963 return 0; 11964} 11965_ACEOF 11966if ac_fn_c_try_link "$LINENO"; then : 11967 ac_cv_lib_dl_dlopen=yes 11968else 11969 ac_cv_lib_dl_dlopen=no 11970fi 11971rm -f core conftest.err conftest.$ac_objext \ 11972 conftest$ac_exeext conftest.$ac_ext 11973LIBS=$ac_check_lib_save_LIBS 11974fi 11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11976$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11977if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11979else 11980 11981 lt_cv_dlopen="dyld" 11982 lt_cv_dlopen_libs= 11983 lt_cv_dlopen_self=yes 11984 11985fi 11986 11987 ;; 11988 11989 *) 11990 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11991if test "x$ac_cv_func_shl_load" = xyes; then : 11992 lt_cv_dlopen="shl_load" 11993else 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11995$as_echo_n "checking for shl_load in -ldld... " >&6; } 11996if ${ac_cv_lib_dld_shl_load+:} false; then : 11997 $as_echo_n "(cached) " >&6 11998else 11999 ac_check_lib_save_LIBS=$LIBS 12000LIBS="-ldld $LIBS" 12001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12002/* end confdefs.h. */ 12003 12004/* Override any GCC internal prototype to avoid an error. 12005 Use char because int might match the return type of a GCC 12006 builtin and then its argument prototype would still apply. */ 12007#ifdef __cplusplus 12008extern "C" 12009#endif 12010char shl_load (); 12011int 12012main () 12013{ 12014return shl_load (); 12015 ; 12016 return 0; 12017} 12018_ACEOF 12019if ac_fn_c_try_link "$LINENO"; then : 12020 ac_cv_lib_dld_shl_load=yes 12021else 12022 ac_cv_lib_dld_shl_load=no 12023fi 12024rm -f core conftest.err conftest.$ac_objext \ 12025 conftest$ac_exeext conftest.$ac_ext 12026LIBS=$ac_check_lib_save_LIBS 12027fi 12028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12029$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12030if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12031 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12032else 12033 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12034if test "x$ac_cv_func_dlopen" = xyes; then : 12035 lt_cv_dlopen="dlopen" 12036else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12038$as_echo_n "checking for dlopen in -ldl... " >&6; } 12039if ${ac_cv_lib_dl_dlopen+:} false; then : 12040 $as_echo_n "(cached) " >&6 12041else 12042 ac_check_lib_save_LIBS=$LIBS 12043LIBS="-ldl $LIBS" 12044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046 12047/* Override any GCC internal prototype to avoid an error. 12048 Use char because int might match the return type of a GCC 12049 builtin and then its argument prototype would still apply. */ 12050#ifdef __cplusplus 12051extern "C" 12052#endif 12053char dlopen (); 12054int 12055main () 12056{ 12057return dlopen (); 12058 ; 12059 return 0; 12060} 12061_ACEOF 12062if ac_fn_c_try_link "$LINENO"; then : 12063 ac_cv_lib_dl_dlopen=yes 12064else 12065 ac_cv_lib_dl_dlopen=no 12066fi 12067rm -f core conftest.err conftest.$ac_objext \ 12068 conftest$ac_exeext conftest.$ac_ext 12069LIBS=$ac_check_lib_save_LIBS 12070fi 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12072$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12073if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12075else 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12077$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12078if ${ac_cv_lib_svld_dlopen+:} false; then : 12079 $as_echo_n "(cached) " >&6 12080else 12081 ac_check_lib_save_LIBS=$LIBS 12082LIBS="-lsvld $LIBS" 12083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12084/* end confdefs.h. */ 12085 12086/* Override any GCC internal prototype to avoid an error. 12087 Use char because int might match the return type of a GCC 12088 builtin and then its argument prototype would still apply. */ 12089#ifdef __cplusplus 12090extern "C" 12091#endif 12092char dlopen (); 12093int 12094main () 12095{ 12096return dlopen (); 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101if ac_fn_c_try_link "$LINENO"; then : 12102 ac_cv_lib_svld_dlopen=yes 12103else 12104 ac_cv_lib_svld_dlopen=no 12105fi 12106rm -f core conftest.err conftest.$ac_objext \ 12107 conftest$ac_exeext conftest.$ac_ext 12108LIBS=$ac_check_lib_save_LIBS 12109fi 12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12111$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12112if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12114else 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12116$as_echo_n "checking for dld_link in -ldld... " >&6; } 12117if ${ac_cv_lib_dld_dld_link+:} false; then : 12118 $as_echo_n "(cached) " >&6 12119else 12120 ac_check_lib_save_LIBS=$LIBS 12121LIBS="-ldld $LIBS" 12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124 12125/* Override any GCC internal prototype to avoid an error. 12126 Use char because int might match the return type of a GCC 12127 builtin and then its argument prototype would still apply. */ 12128#ifdef __cplusplus 12129extern "C" 12130#endif 12131char dld_link (); 12132int 12133main () 12134{ 12135return dld_link (); 12136 ; 12137 return 0; 12138} 12139_ACEOF 12140if ac_fn_c_try_link "$LINENO"; then : 12141 ac_cv_lib_dld_dld_link=yes 12142else 12143 ac_cv_lib_dld_dld_link=no 12144fi 12145rm -f core conftest.err conftest.$ac_objext \ 12146 conftest$ac_exeext conftest.$ac_ext 12147LIBS=$ac_check_lib_save_LIBS 12148fi 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12150$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12151if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12152 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12153fi 12154 12155 12156fi 12157 12158 12159fi 12160 12161 12162fi 12163 12164 12165fi 12166 12167 12168fi 12169 12170 ;; 12171 esac 12172 12173 if test "x$lt_cv_dlopen" != xno; then 12174 enable_dlopen=yes 12175 else 12176 enable_dlopen=no 12177 fi 12178 12179 case $lt_cv_dlopen in 12180 dlopen) 12181 save_CPPFLAGS="$CPPFLAGS" 12182 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12183 12184 save_LDFLAGS="$LDFLAGS" 12185 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12186 12187 save_LIBS="$LIBS" 12188 LIBS="$lt_cv_dlopen_libs $LIBS" 12189 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12191$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12192if ${lt_cv_dlopen_self+:} false; then : 12193 $as_echo_n "(cached) " >&6 12194else 12195 if test "$cross_compiling" = yes; then : 12196 lt_cv_dlopen_self=cross 12197else 12198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12199 lt_status=$lt_dlunknown 12200 cat > conftest.$ac_ext <<_LT_EOF 12201#line $LINENO "configure" 12202#include "confdefs.h" 12203 12204#if HAVE_DLFCN_H 12205#include <dlfcn.h> 12206#endif 12207 12208#include <stdio.h> 12209 12210#ifdef RTLD_GLOBAL 12211# define LT_DLGLOBAL RTLD_GLOBAL 12212#else 12213# ifdef DL_GLOBAL 12214# define LT_DLGLOBAL DL_GLOBAL 12215# else 12216# define LT_DLGLOBAL 0 12217# endif 12218#endif 12219 12220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12221 find out it does not work in some platform. */ 12222#ifndef LT_DLLAZY_OR_NOW 12223# ifdef RTLD_LAZY 12224# define LT_DLLAZY_OR_NOW RTLD_LAZY 12225# else 12226# ifdef DL_LAZY 12227# define LT_DLLAZY_OR_NOW DL_LAZY 12228# else 12229# ifdef RTLD_NOW 12230# define LT_DLLAZY_OR_NOW RTLD_NOW 12231# else 12232# ifdef DL_NOW 12233# define LT_DLLAZY_OR_NOW DL_NOW 12234# else 12235# define LT_DLLAZY_OR_NOW 0 12236# endif 12237# endif 12238# endif 12239# endif 12240#endif 12241 12242/* When -fvisbility=hidden is used, assume the code has been annotated 12243 correspondingly for the symbols needed. */ 12244#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12245int fnord () __attribute__((visibility("default"))); 12246#endif 12247 12248int fnord () { return 42; } 12249int main () 12250{ 12251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12252 int status = $lt_dlunknown; 12253 12254 if (self) 12255 { 12256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12257 else 12258 { 12259 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12260 else puts (dlerror ()); 12261 } 12262 /* dlclose (self); */ 12263 } 12264 else 12265 puts (dlerror ()); 12266 12267 return status; 12268} 12269_LT_EOF 12270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12271 (eval $ac_link) 2>&5 12272 ac_status=$? 12273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12274 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12275 (./conftest; exit; ) >&5 2>/dev/null 12276 lt_status=$? 12277 case x$lt_status in 12278 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12279 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12280 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12281 esac 12282 else : 12283 # compilation failed 12284 lt_cv_dlopen_self=no 12285 fi 12286fi 12287rm -fr conftest* 12288 12289 12290fi 12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12292$as_echo "$lt_cv_dlopen_self" >&6; } 12293 12294 if test "x$lt_cv_dlopen_self" = xyes; then 12295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12297$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12298if ${lt_cv_dlopen_self_static+:} false; then : 12299 $as_echo_n "(cached) " >&6 12300else 12301 if test "$cross_compiling" = yes; then : 12302 lt_cv_dlopen_self_static=cross 12303else 12304 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12305 lt_status=$lt_dlunknown 12306 cat > conftest.$ac_ext <<_LT_EOF 12307#line $LINENO "configure" 12308#include "confdefs.h" 12309 12310#if HAVE_DLFCN_H 12311#include <dlfcn.h> 12312#endif 12313 12314#include <stdio.h> 12315 12316#ifdef RTLD_GLOBAL 12317# define LT_DLGLOBAL RTLD_GLOBAL 12318#else 12319# ifdef DL_GLOBAL 12320# define LT_DLGLOBAL DL_GLOBAL 12321# else 12322# define LT_DLGLOBAL 0 12323# endif 12324#endif 12325 12326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12327 find out it does not work in some platform. */ 12328#ifndef LT_DLLAZY_OR_NOW 12329# ifdef RTLD_LAZY 12330# define LT_DLLAZY_OR_NOW RTLD_LAZY 12331# else 12332# ifdef DL_LAZY 12333# define LT_DLLAZY_OR_NOW DL_LAZY 12334# else 12335# ifdef RTLD_NOW 12336# define LT_DLLAZY_OR_NOW RTLD_NOW 12337# else 12338# ifdef DL_NOW 12339# define LT_DLLAZY_OR_NOW DL_NOW 12340# else 12341# define LT_DLLAZY_OR_NOW 0 12342# endif 12343# endif 12344# endif 12345# endif 12346#endif 12347 12348/* When -fvisbility=hidden is used, assume the code has been annotated 12349 correspondingly for the symbols needed. */ 12350#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12351int fnord () __attribute__((visibility("default"))); 12352#endif 12353 12354int fnord () { return 42; } 12355int main () 12356{ 12357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12358 int status = $lt_dlunknown; 12359 12360 if (self) 12361 { 12362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12363 else 12364 { 12365 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12366 else puts (dlerror ()); 12367 } 12368 /* dlclose (self); */ 12369 } 12370 else 12371 puts (dlerror ()); 12372 12373 return status; 12374} 12375_LT_EOF 12376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12377 (eval $ac_link) 2>&5 12378 ac_status=$? 12379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12380 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12381 (./conftest; exit; ) >&5 2>/dev/null 12382 lt_status=$? 12383 case x$lt_status in 12384 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12385 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12386 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12387 esac 12388 else : 12389 # compilation failed 12390 lt_cv_dlopen_self_static=no 12391 fi 12392fi 12393rm -fr conftest* 12394 12395 12396fi 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12398$as_echo "$lt_cv_dlopen_self_static" >&6; } 12399 fi 12400 12401 CPPFLAGS="$save_CPPFLAGS" 12402 LDFLAGS="$save_LDFLAGS" 12403 LIBS="$save_LIBS" 12404 ;; 12405 esac 12406 12407 case $lt_cv_dlopen_self in 12408 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12409 *) enable_dlopen_self=unknown ;; 12410 esac 12411 12412 case $lt_cv_dlopen_self_static in 12413 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12414 *) enable_dlopen_self_static=unknown ;; 12415 esac 12416fi 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434striplib= 12435old_striplib= 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12437$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12438if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12439 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12440 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12442$as_echo "yes" >&6; } 12443else 12444# FIXME - insert some real tests, host_os isn't really good enough 12445 case $host_os in 12446 darwin*) 12447 if test -n "$STRIP" ; then 12448 striplib="$STRIP -x" 12449 old_striplib="$STRIP -S" 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12451$as_echo "yes" >&6; } 12452 else 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12454$as_echo "no" >&6; } 12455 fi 12456 ;; 12457 *) 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12459$as_echo "no" >&6; } 12460 ;; 12461 esac 12462fi 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 # Report which library types will actually be built 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12477$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12479$as_echo "$can_build_shared" >&6; } 12480 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12482$as_echo_n "checking whether to build shared libraries... " >&6; } 12483 test "$can_build_shared" = "no" && enable_shared=no 12484 12485 # On AIX, shared libraries and static libraries use the same namespace, and 12486 # are all built from PIC. 12487 case $host_os in 12488 aix3*) 12489 test "$enable_shared" = yes && enable_static=no 12490 if test -n "$RANLIB"; then 12491 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12492 postinstall_cmds='$RANLIB $lib' 12493 fi 12494 ;; 12495 12496 aix[4-9]*) 12497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12498 test "$enable_shared" = yes && enable_static=no 12499 fi 12500 ;; 12501 esac 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12503$as_echo "$enable_shared" >&6; } 12504 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12506$as_echo_n "checking whether to build static libraries... " >&6; } 12507 # Make sure either enable_shared or enable_static is yes. 12508 test "$enable_shared" = yes || enable_static=yes 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12510$as_echo "$enable_static" >&6; } 12511 12512 12513 12514 12515fi 12516ac_ext=c 12517ac_cpp='$CPP $CPPFLAGS' 12518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12520ac_compiler_gnu=$ac_cv_c_compiler_gnu 12521 12522CC="$lt_save_CC" 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 ac_config_commands="$ac_config_commands libtool" 12539 12540 12541 12542 12543# Only expand once: 12544 12545 12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5 12547$as_echo_n "checking if -Wl,--version-script works... " >&6; } 12548if ${rra_cv_ld_version_script+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 save_LDFLAGS="$LDFLAGS" 12552 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 12553 cat > conftest.map <<EOF 12554VERSION_1 { 12555 global: 12556 sym; 12557 12558 local: 12559 *; 12560}; 12561EOF 12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12563/* end confdefs.h. */ 12564 12565int 12566main () 12567{ 12568 12569 ; 12570 return 0; 12571} 12572_ACEOF 12573if ac_fn_c_try_link "$LINENO"; then : 12574 rra_cv_ld_version_script=yes 12575else 12576 rra_cv_ld_version_script=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext \ 12579 conftest$ac_exeext conftest.$ac_ext 12580 rm -f conftest.map 12581 LDFLAGS="$save_LDFLAGS" 12582fi 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_ld_version_script" >&5 12584$as_echo "$rra_cv_ld_version_script" >&6; } 12585 if test x"$rra_cv_ld_version_script" = xyes; then 12586 HAVE_LD_VERSION_SCRIPT_TRUE= 12587 HAVE_LD_VERSION_SCRIPT_FALSE='#' 12588else 12589 HAVE_LD_VERSION_SCRIPT_TRUE='#' 12590 HAVE_LD_VERSION_SCRIPT_FALSE= 12591fi 12592 12593 12594 12595webauth_user=`(whoami || /usr/ucb/whoami || echo UNKNOWN) 2>/dev/null` 12596webauth_host=`(hostname || echo UNKNOWN) 2>/dev/null` 12597webauth_date=`(date -u +"%Y-%m-%d %T UTC" || echo UNKNOWN) 2>/dev/null` 12598 12599cat >>confdefs.h <<_ACEOF 12600#define PACKAGE_BUILD_INFO "Built by $webauth_user@$webauth_host on $webauth_date" 12601_ACEOF 12602 12603 12604build_webkdc=false 12605# Check whether --enable-webkdc was given. 12606if test "${enable_webkdc+set}" = set; then : 12607 enableval=$enable_webkdc; if test x"$enableval" != xno; then : 12608 build_webkdc=true 12609fi 12610fi 12611 12612 if test x"$build_webkdc" = xtrue; then 12613 BUILD_WEBKDC_TRUE= 12614 BUILD_WEBKDC_FALSE='#' 12615else 12616 BUILD_WEBKDC_TRUE='#' 12617 BUILD_WEBKDC_FALSE= 12618fi 12619 12620 12621build_webauth=true 12622# Check whether --enable-mod_webauth was given. 12623if test "${enable_mod_webauth+set}" = set; then : 12624 enableval=$enable_mod_webauth; if test x"$enableval" = xno; then : 12625 build_webauth=false 12626fi 12627fi 12628 12629 if test x"$build_webauth" = xtrue; then 12630 BUILD_WEBAUTH_TRUE= 12631 BUILD_WEBAUTH_FALSE='#' 12632else 12633 BUILD_WEBAUTH_TRUE='#' 12634 BUILD_WEBAUTH_FALSE= 12635fi 12636 12637 12638build_webauthldap=true 12639# Check whether --enable-mod_webauthldap was given. 12640if test "${enable_mod_webauthldap+set}" = set; then : 12641 enableval=$enable_mod_webauthldap; if test x"$enableval" = xno; then : 12642 build_webauthldap=false 12643fi 12644fi 12645 12646 if test x"$build_webauthldap" = xtrue; then 12647 BUILD_WEBAUTHLDAP_TRUE= 12648 BUILD_WEBAUTHLDAP_FALSE='#' 12649else 12650 BUILD_WEBAUTHLDAP_TRUE='#' 12651 BUILD_WEBAUTHLDAP_FALSE= 12652fi 12653 12654 12655PERL_LDFLAGS= 12656# Check whether --enable-perl was given. 12657if test "${enable_perl+set}" = set; then : 12658 enableval=$enable_perl; if test x"$enableval" = xyes; then : 12659 build_perl=true 12660else 12661 build_perl=false 12662fi 12663else 12664 build_perl="$build_webkdc" 12665fi 12666 12667 if test x"$build_perl" = xtrue; then 12668 BUILD_PERL_TRUE= 12669 BUILD_PERL_FALSE='#' 12670else 12671 BUILD_PERL_TRUE='#' 12672 BUILD_PERL_FALSE= 12673fi 12674 12675if test x"$build_perl" = xtrue; then : 12676 # Extract the first word of "perl", so it can be a program name with args. 12677set dummy perl; ac_word=$2 12678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12679$as_echo_n "checking for $ac_word... " >&6; } 12680if ${ac_cv_path_PERL+:} false; then : 12681 $as_echo_n "(cached) " >&6 12682else 12683 case $PERL in 12684 [\\/]* | ?:[\\/]*) 12685 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12686 ;; 12687 *) 12688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12689for as_dir in $PATH 12690do 12691 IFS=$as_save_IFS 12692 test -z "$as_dir" && as_dir=. 12693 for ac_exec_ext in '' $ac_executable_extensions; do 12694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12695 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12697 break 2 12698 fi 12699done 12700 done 12701IFS=$as_save_IFS 12702 12703 ;; 12704esac 12705fi 12706PERL=$ac_cv_path_PERL 12707if test -n "$PERL"; then 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12709$as_echo "$PERL" >&6; } 12710else 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712$as_echo "no" >&6; } 12713fi 12714 12715 12716 PERL_LDFLAGS=`$PERL -MConfig -e 'print $Config{lddlflags}'` 12717fi 12718 12719 12720 12721# Extract the first word of "remctld", so it can be a program name with args. 12722set dummy remctld; ac_word=$2 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12724$as_echo_n "checking for $ac_word... " >&6; } 12725if ${ac_cv_path_PATH_REMCTLD+:} false; then : 12726 $as_echo_n "(cached) " >&6 12727else 12728 case $PATH_REMCTLD in 12729 [\\/]* | ?:[\\/]*) 12730 ac_cv_path_PATH_REMCTLD="$PATH_REMCTLD" # Let the user override the test with a path. 12731 ;; 12732 *) 12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12734for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/usr/local/sbin 12735do 12736 IFS=$as_save_IFS 12737 test -z "$as_dir" && as_dir=. 12738 for ac_exec_ext in '' $ac_executable_extensions; do 12739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12740 ac_cv_path_PATH_REMCTLD="$as_dir/$ac_word$ac_exec_ext" 12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12742 break 2 12743 fi 12744done 12745 done 12746IFS=$as_save_IFS 12747 12748 ;; 12749esac 12750fi 12751PATH_REMCTLD=$ac_cv_path_PATH_REMCTLD 12752if test -n "$PATH_REMCTLD"; then 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_REMCTLD" >&5 12754$as_echo "$PATH_REMCTLD" >&6; } 12755else 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12757$as_echo "no" >&6; } 12758fi 12759 12760 12761 12762rra_apache_apxs= 12763 APACHE_CPPFLAGS= 12764 APACHE_LDFLAGS= 12765 APACHE_LIBS= 12766 12767 12768 12769 12770 12771# Check whether --with-apxs was given. 12772if test "${with_apxs+set}" = set; then : 12773 withval=$with_apxs; if test x"$withval" != xno && test x"$withval" != xyes; then : 12774 rra_apache_apxs="$withval" 12775fi 12776fi 12777 12778 if test -z "$rra_apache_apxs"; then : 12779 for ac_prog in apxs2 apxs 12780do 12781 # Extract the first word of "$ac_prog", so it can be a program name with args. 12782set dummy $ac_prog; ac_word=$2 12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12784$as_echo_n "checking for $ac_word... " >&6; } 12785if ${ac_cv_path_rra_apache_apxs+:} false; then : 12786 $as_echo_n "(cached) " >&6 12787else 12788 case $rra_apache_apxs in 12789 [\\/]* | ?:[\\/]*) 12790 ac_cv_path_rra_apache_apxs="$rra_apache_apxs" # Let the user override the test with a path. 12791 ;; 12792 *) 12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12794for as_dir in $PATH 12795do 12796 IFS=$as_save_IFS 12797 test -z "$as_dir" && as_dir=. 12798 for ac_exec_ext in '' $ac_executable_extensions; do 12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12800 ac_cv_path_rra_apache_apxs="$as_dir/$ac_word$ac_exec_ext" 12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12802 break 2 12803 fi 12804done 12805 done 12806IFS=$as_save_IFS 12807 12808 ;; 12809esac 12810fi 12811rra_apache_apxs=$ac_cv_path_rra_apache_apxs 12812if test -n "$rra_apache_apxs"; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_apache_apxs" >&5 12814$as_echo "$rra_apache_apxs" >&6; } 12815else 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817$as_echo "no" >&6; } 12818fi 12819 12820 12821 test -n "$rra_apache_apxs" && break 12822done 12823test -n "$rra_apache_apxs" || rra_apache_apxs="false" 12824 12825 if test x"$rra_apache_apxs" = xfalse; then : 12826 as_fn_error $? "cannot find usable apxs program" "$LINENO" 5 12827fi 12828fi 12829 APACHE_CPPFLAGS=`"$rra_apache_apxs" -q CFLAGS 2>/dev/null` 12830 APACHE_CPPFLAGS=`echo "$APACHE_CPPFLAGS" | sed -e 's/ -g//' -e 's/ -O0-9//'` 12831 rra_apache_includedir=`"$rra_apache_apxs" -q INCLUDEDIR 2>/dev/null` 12832 if test -z "$rra_apache_includedir"; then : 12833 as_fn_error $? "apxs -q INCLUDEDIR failed or returned no value" "$LINENO" 5 12834fi 12835 APACHE_CPPFLAGS="$APACHE_CPPFLAGS -I$rra_apache_includedir" 12836 12837 for ac_prog in apr-1-config apr-config 12838do 12839 # Extract the first word of "$ac_prog", so it can be a program name with args. 12840set dummy $ac_prog; ac_word=$2 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12842$as_echo_n "checking for $ac_word... " >&6; } 12843if ${ac_cv_path_APR_CONFIG+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 case $APR_CONFIG in 12847 [\\/]* | ?:[\\/]*) 12848 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path. 12849 ;; 12850 *) 12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12852for as_dir in $PATH 12853do 12854 IFS=$as_save_IFS 12855 test -z "$as_dir" && as_dir=. 12856 for ac_exec_ext in '' $ac_executable_extensions; do 12857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12858 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12860 break 2 12861 fi 12862done 12863 done 12864IFS=$as_save_IFS 12865 12866 ;; 12867esac 12868fi 12869APR_CONFIG=$ac_cv_path_APR_CONFIG 12870if test -n "$APR_CONFIG"; then 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5 12872$as_echo "$APR_CONFIG" >&6; } 12873else 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12875$as_echo "no" >&6; } 12876fi 12877 12878 12879 test -n "$APR_CONFIG" && break 12880done 12881test -n "$APR_CONFIG" || APR_CONFIG="false" 12882 12883 if test x"$APR_CONFIG" != xfalse; then : 12884 APACHE_CPPFLAGS="$APACHE_CPPFLAGS "`"$APR_CONFIG" --includes` 12885fi 12886 APACHE_LDFLAGS=`"$rra_apache_apxs" -q LDFLAGS_SHLIB 2>/dev/null` 12887rra_apache_save_CPPFLAGS="$CPPFLAGS" 12888 rra_apache_save_LDFLAGS="$LDFLAGS" 12889 rra_apache_save_LIBS="$LIBS" 12890 CPPFLAGS="$APACHE_CPPFLAGS $CPPFLAGS" 12891 LDFLAGS="$APACHE_LDFLAGS $LDFLAGS" 12892 LIBS="$APACHE_LIBS $LIBS" 12893ac_fn_c_check_decl "$LINENO" "ap_get_server_description" "ac_cv_have_decl_ap_get_server_description" " 12894#include <httpd.h> 12895#include <http_config.h> 12896#include <http_log.h> 12897#include <http_request.h> 12898#include <unixd.h> 12899 12900" 12901if test "x$ac_cv_have_decl_ap_get_server_description" = xyes; then : 12902 ac_have_decl=1 12903else 12904 ac_have_decl=0 12905fi 12906 12907cat >>confdefs.h <<_ACEOF 12908#define HAVE_DECL_AP_GET_SERVER_DESCRIPTION $ac_have_decl 12909_ACEOF 12910ac_fn_c_check_decl "$LINENO" "ap_hook_check_authn" "ac_cv_have_decl_ap_hook_check_authn" " 12911#include <httpd.h> 12912#include <http_config.h> 12913#include <http_log.h> 12914#include <http_request.h> 12915#include <unixd.h> 12916 12917" 12918if test "x$ac_cv_have_decl_ap_hook_check_authn" = xyes; then : 12919 ac_have_decl=1 12920else 12921 ac_have_decl=0 12922fi 12923 12924cat >>confdefs.h <<_ACEOF 12925#define HAVE_DECL_AP_HOOK_CHECK_AUTHN $ac_have_decl 12926_ACEOF 12927ac_fn_c_check_decl "$LINENO" "ap_register_auth_provider" "ac_cv_have_decl_ap_register_auth_provider" " 12928#include <httpd.h> 12929#include <http_config.h> 12930#include <http_log.h> 12931#include <http_request.h> 12932#include <unixd.h> 12933 12934" 12935if test "x$ac_cv_have_decl_ap_register_auth_provider" = xyes; then : 12936 ac_have_decl=1 12937else 12938 ac_have_decl=0 12939fi 12940 12941cat >>confdefs.h <<_ACEOF 12942#define HAVE_DECL_AP_REGISTER_AUTH_PROVIDER $ac_have_decl 12943_ACEOF 12944ac_fn_c_check_decl "$LINENO" "ap_unixd_config" "ac_cv_have_decl_ap_unixd_config" " 12945#include <httpd.h> 12946#include <http_config.h> 12947#include <http_log.h> 12948#include <http_request.h> 12949#include <unixd.h> 12950 12951" 12952if test "x$ac_cv_have_decl_ap_unixd_config" = xyes; then : 12953 ac_have_decl=1 12954else 12955 ac_have_decl=0 12956fi 12957 12958cat >>confdefs.h <<_ACEOF 12959#define HAVE_DECL_AP_UNIXD_CONFIG $ac_have_decl 12960_ACEOF 12961 12962ac_fn_c_check_member "$LINENO" "request_rec" "useragent_ip" "ac_cv_member_request_rec_useragent_ip" " 12963#include <httpd.h> 12964#include <http_config.h> 12965#include <http_log.h> 12966#include <http_request.h> 12967#include <unixd.h> 12968 12969" 12970if test "x$ac_cv_member_request_rec_useragent_ip" = xyes; then : 12971 12972cat >>confdefs.h <<_ACEOF 12973#define HAVE_REQUEST_REC_USERAGENT_IP 1 12974_ACEOF 12975 12976 12977fi 12978 12979for ac_header in mod_auth.h 12980do : 12981 ac_fn_c_check_header_mongrel "$LINENO" "mod_auth.h" "ac_cv_header_mod_auth_h" "$ac_includes_default" 12982if test "x$ac_cv_header_mod_auth_h" = xyes; then : 12983 cat >>confdefs.h <<_ACEOF 12984#define HAVE_MOD_AUTH_H 1 12985_ACEOF 12986 12987fi 12988 12989done 12990 12991CPPFLAGS="$rra_apache_save_CPPFLAGS" 12992 LDFLAGS="$rra_apache_save_LDFLAGS" 12993 LIBS="$rra_apache_save_LIBS" 12994rra_reduced_depends=false 12995# Check whether --enable-reduced-depends was given. 12996if test "${enable_reduced_depends+set}" = set; then : 12997 enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then : 12998 rra_reduced_depends=true 12999fi 13000fi 13001 13002rra_lib_arch_name=lib 13003 # The cast to long int works around a bug in the HP C Compiler 13004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13006# This bug is HP SR number 8606223364. 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13008$as_echo_n "checking size of long... " >&6; } 13009if ${ac_cv_sizeof_long+:} false; then : 13010 $as_echo_n "(cached) " >&6 13011else 13012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13013 13014else 13015 if test "$ac_cv_type_long" = yes; then 13016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13018as_fn_error 77 "cannot compute sizeof (long) 13019See \`config.log' for more details" "$LINENO" 5; } 13020 else 13021 ac_cv_sizeof_long=0 13022 fi 13023fi 13024 13025fi 13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13027$as_echo "$ac_cv_sizeof_long" >&6; } 13028 13029 13030 13031cat >>confdefs.h <<_ACEOF 13032#define SIZEOF_LONG $ac_cv_sizeof_long 13033_ACEOF 13034 13035 13036 if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then : 13037 rra_lib_arch_name=lib32 13038else 13039 if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then : 13040 rra_lib_arch_name=lib64 13041fi 13042fi 13043 13044 rra_apr_root= 13045 rra_apr_libdir= 13046 rra_apr_includedir= 13047 APR_CPPFLAGS= 13048 APR_LDFLAGS= 13049 APR_LIBS= 13050 13051 13052 13053 13054 13055# Check whether --with-apr was given. 13056if test "${with_apr+set}" = set; then : 13057 withval=$with_apr; if test x"$withval" != xyes && test x"$withval" != xno; then : 13058 rra_apr_root="$withval" 13059fi 13060fi 13061 13062 13063# Check whether --with-apr-include was given. 13064if test "${with_apr_include+set}" = set; then : 13065 withval=$with_apr_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 13066 rra_apr_includedir="$withval" 13067fi 13068fi 13069 13070 13071# Check whether --with-apr-lib was given. 13072if test "${with_apr_lib+set}" = set; then : 13073 withval=$with_apr_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 13074 rra_apr_libdir="$withval" 13075fi 13076fi 13077 13078 13079 13080 for ac_prog in apr-1-config apr-config 13081do 13082 # Extract the first word of "$ac_prog", so it can be a program name with args. 13083set dummy $ac_prog; ac_word=$2 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13085$as_echo_n "checking for $ac_word... " >&6; } 13086if ${ac_cv_path_APR_CONFIG+:} false; then : 13087 $as_echo_n "(cached) " >&6 13088else 13089 case $APR_CONFIG in 13090 [\\/]* | ?:[\\/]*) 13091 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path. 13092 ;; 13093 *) 13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13095for as_dir in $PATH 13096do 13097 IFS=$as_save_IFS 13098 test -z "$as_dir" && as_dir=. 13099 for ac_exec_ext in '' $ac_executable_extensions; do 13100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13101 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13103 break 2 13104 fi 13105done 13106 done 13107IFS=$as_save_IFS 13108 13109 ;; 13110esac 13111fi 13112APR_CONFIG=$ac_cv_path_APR_CONFIG 13113if test -n "$APR_CONFIG"; then 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5 13115$as_echo "$APR_CONFIG" >&6; } 13116else 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13118$as_echo "no" >&6; } 13119fi 13120 13121 13122 test -n "$APR_CONFIG" && break 13123done 13124test -n "$APR_CONFIG" || APR_CONFIG="false" 13125 13126 if test x"$APR_CONFIG" != xfalse; then : 13127 APR_CPPFLAGS="$APR_CPPFLAGS "`"$APR_CONFIG" --includes` 13128 if test x"$rra_reduced_depends" = xtrue; then : 13129 APR_LIBS=`"$APR_CONFIG" --link-ld` 13130else 13131 APR_LIBS=`"$APR_CONFIG" --link-ld --libs` 13132fi 13133else 13134 if test x"$rra_apr_libdir" != x; then : 13135 APR_LDFLAGS="-L$rra_apr_libdir" 13136else 13137 if test x"$rra_apr_root" != x; then : 13138 13139 if test -d "$rra_apr_root/$rra_lib_arch_name"; then : 13140 if test x"" = x; then : 13141 APR_LDFLAGS="$APR_LDFLAGS -L$rra_apr_root/${rra_lib_arch_name}" 13142else 13143 APR_LDFLAGS="$APR_LDFLAGS -L$rra_apr_root/${rra_lib_arch_name}/" 13144fi 13145else 13146 if test x"" = x; then : 13147 APR_LDFLAGS="$APR_LDFLAGS -L$rra_apr_root/lib" 13148else 13149 APR_LDFLAGS="$APR_LDFLAGS -L$rra_apr_root/lib/" 13150fi 13151fi 13152 APR_LDFLAGS=`echo "$APR_LDFLAGS" | sed -e 's/^ *//'` 13153fi 13154fi 13155 if test x"$rra_apr_includedir" != x; then : 13156 APR_CPPFLAGS="-I$rra_apr_includedir" 13157else 13158 if test x"$rra_apr_root" != x; then : 13159 if test x"$rra_apr_root" != x/usr; then : 13160 APR_CPPFLAGS="-I${rra_apr_root}/include" 13161fi 13162fi 13163fi 13164 rra_apr_save_CPPFLAGS="$CPPFLAGS" 13165 rra_apr_save_LDFLAGS="$LDFLAGS" 13166 rra_apr_save_LIBS="$LIBS" 13167 CPPFLAGS="$APR_CPPFLAGS $CPPFLAGS" 13168 LDFLAGS="$APR_LDFLAGS $LDFLAGS" 13169 LIBS="$APR_LIBS $LIBS" 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_initialize in -lapr-1" >&5 13171$as_echo_n "checking for apr_initialize in -lapr-1... " >&6; } 13172if ${ac_cv_lib_apr_1_apr_initialize+:} false; then : 13173 $as_echo_n "(cached) " >&6 13174else 13175 ac_check_lib_save_LIBS=$LIBS 13176LIBS="-lapr-1 $LIBS" 13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179 13180/* Override any GCC internal prototype to avoid an error. 13181 Use char because int might match the return type of a GCC 13182 builtin and then its argument prototype would still apply. */ 13183#ifdef __cplusplus 13184extern "C" 13185#endif 13186char apr_initialize (); 13187int 13188main () 13189{ 13190return apr_initialize (); 13191 ; 13192 return 0; 13193} 13194_ACEOF 13195if ac_fn_c_try_link "$LINENO"; then : 13196 ac_cv_lib_apr_1_apr_initialize=yes 13197else 13198 ac_cv_lib_apr_1_apr_initialize=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext \ 13201 conftest$ac_exeext conftest.$ac_ext 13202LIBS=$ac_check_lib_save_LIBS 13203fi 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_1_apr_initialize" >&5 13205$as_echo "$ac_cv_lib_apr_1_apr_initialize" >&6; } 13206if test "x$ac_cv_lib_apr_1_apr_initialize" = xyes; then : 13207 APR_LIBS="-lapr-1" 13208else 13209 as_fn_error $? "cannot find usable APR library" "$LINENO" 5 13210fi 13211 13212 CPPFLAGS="$rra_apr_save_CPPFLAGS" 13213 LDFLAGS="$rra_apr_save_LDFLAGS" 13214 LIBS="$rra_apr_save_LIBS" 13215fi 13216 13217 rra_aprutil_root= 13218 rra_aprutil_libdir= 13219 rra_aprutil_includedir= 13220 APRUTIL_CPPFLAGS= 13221 APRUTIL_LDFLAGS= 13222 APRUTIL_LIBS= 13223 13224 13225 13226 13227 13228# Check whether --with-aprutil was given. 13229if test "${with_aprutil+set}" = set; then : 13230 withval=$with_aprutil; if test x"$withval" != xyes && test x"$withval" != xno; then : 13231 rra_aprutil_root="$withval" 13232fi 13233fi 13234 13235 13236# Check whether --with-aprutil-include was given. 13237if test "${with_aprutil_include+set}" = set; then : 13238 withval=$with_aprutil_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 13239 rra_aprutil_includedir="$withval" 13240fi 13241fi 13242 13243 13244# Check whether --with-aprutil-lib was given. 13245if test "${with_aprutil_lib+set}" = set; then : 13246 withval=$with_aprutil_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 13247 rra_aprutil_libdir="$withval" 13248fi 13249fi 13250 13251 13252 13253 for ac_prog in apu-1-config apu-config 13254do 13255 # Extract the first word of "$ac_prog", so it can be a program name with args. 13256set dummy $ac_prog; ac_word=$2 13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13258$as_echo_n "checking for $ac_word... " >&6; } 13259if ${ac_cv_path_APU_CONFIG+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 case $APU_CONFIG in 13263 [\\/]* | ?:[\\/]*) 13264 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path. 13265 ;; 13266 *) 13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13268for as_dir in $PATH 13269do 13270 IFS=$as_save_IFS 13271 test -z "$as_dir" && as_dir=. 13272 for ac_exec_ext in '' $ac_executable_extensions; do 13273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13274 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13276 break 2 13277 fi 13278done 13279 done 13280IFS=$as_save_IFS 13281 13282 ;; 13283esac 13284fi 13285APU_CONFIG=$ac_cv_path_APU_CONFIG 13286if test -n "$APU_CONFIG"; then 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5 13288$as_echo "$APU_CONFIG" >&6; } 13289else 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13291$as_echo "no" >&6; } 13292fi 13293 13294 13295 test -n "$APU_CONFIG" && break 13296done 13297test -n "$APU_CONFIG" || APU_CONFIG="false" 13298 13299 if test x"$APU_CONFIG" != xfalse; then : 13300 APRUTIL_CPPFLAGS="$APRUTIL_CPPFLAGS "`"$APU_CONFIG" --includes` 13301 if test x"$rra_reduced_depends" = xtrue; then : 13302 APRUTIL_LIBS=`"$APU_CONFIG" --link-ld --avoid-ldap --avoid-dbm` 13303else 13304 APRUTIL_LIBS=`"$APU_CONFIG" --link-ld --libs` 13305fi 13306else 13307 if test x"$rra_aprutil_libdir" != x; then : 13308 APRUTIL_LDFLAGS="-L$rra_aprutil_libdir" 13309else 13310 if test x"$rra_aprutil_root" != x; then : 13311 13312 if test -d "$rra_aprutil_root/$rra_lib_arch_name"; then : 13313 if test x"" = x; then : 13314 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS -L$rra_aprutil_root/${rra_lib_arch_name}" 13315else 13316 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS -L$rra_aprutil_root/${rra_lib_arch_name}/" 13317fi 13318else 13319 if test x"" = x; then : 13320 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS -L$rra_aprutil_root/lib" 13321else 13322 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS -L$rra_aprutil_root/lib/" 13323fi 13324fi 13325 APRUTIL_LDFLAGS=`echo "$APRUTIL_LDFLAGS" | sed -e 's/^ *//'` 13326fi 13327fi 13328 if test x"$rra_aprutil_includedir" != x; then : 13329 APRUTIL_CPPFLAGS="-I$rra_aprutil_includedir" 13330else 13331 if test x"$rra_aprutil_root" != x; then : 13332 if test x"$rra_aprutil_root" != x/usr; then : 13333 APRUTIL_CPPFLAGS="-I${rra_aprutil_root}/include" 13334fi 13335fi 13336fi 13337 rra_aprutil_save_CPPFLAGS="$CPPFLAGS" 13338 rra_aprutil_save_LDFLAGS="$LDFLAGS" 13339 rra_aprutil_save_LIBS="$LIBS" 13340 CPPFLAGS="$APRUTIL_CPPFLAGS $CPPFLAGS" 13341 LDFLAGS="$APRUTIL_LDFLAGS $LDFLAGS" 13342 LIBS="$APRUTIL_LIBS $LIBS" 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_base64_decode in -lapr-1" >&5 13344$as_echo_n "checking for apr_base64_decode in -lapr-1... " >&6; } 13345if ${ac_cv_lib_apr_1_apr_base64_decode+:} false; then : 13346 $as_echo_n "(cached) " >&6 13347else 13348 ac_check_lib_save_LIBS=$LIBS 13349LIBS="-lapr-1 $LIBS" 13350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352 13353/* Override any GCC internal prototype to avoid an error. 13354 Use char because int might match the return type of a GCC 13355 builtin and then its argument prototype would still apply. */ 13356#ifdef __cplusplus 13357extern "C" 13358#endif 13359char apr_base64_decode (); 13360int 13361main () 13362{ 13363return apr_base64_decode (); 13364 ; 13365 return 0; 13366} 13367_ACEOF 13368if ac_fn_c_try_link "$LINENO"; then : 13369 ac_cv_lib_apr_1_apr_base64_decode=yes 13370else 13371 ac_cv_lib_apr_1_apr_base64_decode=no 13372fi 13373rm -f core conftest.err conftest.$ac_objext \ 13374 conftest$ac_exeext conftest.$ac_ext 13375LIBS=$ac_check_lib_save_LIBS 13376fi 13377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_1_apr_base64_decode" >&5 13378$as_echo "$ac_cv_lib_apr_1_apr_base64_decode" >&6; } 13379if test "x$ac_cv_lib_apr_1_apr_base64_decode" = xyes; then : 13380 APRUTIL_LIBS="-lapr-1" 13381else 13382 as_fn_error $? "cannot find usable APR library" "$LINENO" 5 13383fi 13384 13385 CPPFLAGS="$rra_aprutil_save_CPPFLAGS" 13386 LDFLAGS="$rra_aprutil_save_LDFLAGS" 13387 LIBS="$rra_aprutil_save_LIBS" 13388fi 13389 13390 # Extract the first word of "krb5-config", so it can be a program name with args. 13391set dummy krb5-config; ac_word=$2 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13393$as_echo_n "checking for $ac_word... " >&6; } 13394if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : 13395 $as_echo_n "(cached) " >&6 13396else 13397 case $PATH_KRB5_CONFIG in 13398 [\\/]* | ?:[\\/]*) 13399 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. 13400 ;; 13401 *) 13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13403as_dummy="${PATH}:/usr/kerberos/bin" 13404for as_dir in $as_dummy 13405do 13406 IFS=$as_save_IFS 13407 test -z "$as_dir" && as_dir=. 13408 for ac_exec_ext in '' $ac_executable_extensions; do 13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13410 ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13412 break 2 13413 fi 13414done 13415 done 13416IFS=$as_save_IFS 13417 13418 ;; 13419esac 13420fi 13421PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG 13422if test -n "$PATH_KRB5_CONFIG"; then 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 13424$as_echo "$PATH_KRB5_CONFIG" >&6; } 13425else 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13427$as_echo "no" >&6; } 13428fi 13429 13430 13431rra_krb5_root= 13432 rra_krb5_libdir= 13433 rra_krb5_includedir= 13434 rra_use_KRB5=true 13435 13436 13437# Check whether --with-krb5 was given. 13438if test "${with_krb5+set}" = set; then : 13439 withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then : 13440 rra_krb5_root="$withval" 13441fi 13442fi 13443 13444 13445# Check whether --with-krb5-include was given. 13446if test "${with_krb5_include+set}" = set; then : 13447 withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 13448 rra_krb5_includedir="$withval" 13449fi 13450fi 13451 13452 13453# Check whether --with-krb5-lib was given. 13454if test "${with_krb5_lib+set}" = set; then : 13455 withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 13456 rra_krb5_libdir="$withval" 13457fi 13458fi 13459 13460 13461 rra_krb5_incroot= 13462 13463 13464 13465 13466 if test x"$rra_krb5_includedir" != x; then : 13467 rra_krb5_incroot="$rra_krb5_includedir" 13468else 13469 if test x"$rra_krb5_root" != x; then : 13470 rra_krb5_incroot="${rra_krb5_root}/include" 13471fi 13472fi 13473 if test x"$rra_reduced_depends" = xtrue; then : 13474 if test x"$rra_krb5_libdir" != x; then : 13475 KRB5_LDFLAGS="-L$rra_krb5_libdir" 13476else 13477 if test x"$rra_krb5_root" != x; then : 13478 13479 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : 13480 if test x"" = x; then : 13481 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" 13482else 13483 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" 13484fi 13485else 13486 if test x"" = x; then : 13487 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" 13488else 13489 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" 13490fi 13491fi 13492 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` 13493fi 13494fi 13495 if test x"$rra_krb5_includedir" != x; then : 13496 KRB5_CPPFLAGS="-I$rra_krb5_includedir" 13497else 13498 if test x"$rra_krb5_root" != x; then : 13499 if test x"$rra_krb5_root" != x/usr; then : 13500 KRB5_CPPFLAGS="-I${rra_krb5_root}/include" 13501fi 13502fi 13503fi 13504 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 13505 rra_krb5_save_LDFLAGS="$LDFLAGS" 13506 rra_krb5_save_LIBS="$LIBS" 13507 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 13508 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 13509 LIBS="$KRB5_LIBS $LIBS" 13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 13511$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 13512if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : 13513 $as_echo_n "(cached) " >&6 13514else 13515 ac_check_lib_save_LIBS=$LIBS 13516LIBS="-lkrb5 $LIBS" 13517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519 13520/* Override any GCC internal prototype to avoid an error. 13521 Use char because int might match the return type of a GCC 13522 builtin and then its argument prototype would still apply. */ 13523#ifdef __cplusplus 13524extern "C" 13525#endif 13526char krb5_init_context (); 13527int 13528main () 13529{ 13530return krb5_init_context (); 13531 ; 13532 return 0; 13533} 13534_ACEOF 13535if ac_fn_c_try_link "$LINENO"; then : 13536 ac_cv_lib_krb5_krb5_init_context=yes 13537else 13538 ac_cv_lib_krb5_krb5_init_context=no 13539fi 13540rm -f core conftest.err conftest.$ac_objext \ 13541 conftest$ac_exeext conftest.$ac_ext 13542LIBS=$ac_check_lib_save_LIBS 13543fi 13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 13545$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 13546if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : 13547 KRB5_LIBS="-lkrb5" 13548else 13549 if test x"true" = xtrue; then : 13550 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 13551fi 13552fi 13553 13554 LIBS="$KRB5_LIBS $LIBS" 13555 if test x"$rra_krb5_incroot" = x; then : 13556 for ac_header in krb5.h krb5/krb5.h 13557do : 13558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13559ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13560if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13561 cat >>confdefs.h <<_ACEOF 13562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13563_ACEOF 13564 13565fi 13566 13567done 13568 13569else 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 13571$as_echo_n "checking for krb5.h... " >&6; } 13572 if test -f "${rra_krb5_incroot}/krb5.h"; then : 13573 13574cat >>confdefs.h <<_ACEOF 13575#define HAVE_KRB5_H 1 13576_ACEOF 13577 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13579$as_echo "yes" >&6; } 13580else 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13582$as_echo "no" >&6; } 13583fi 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 13585$as_echo_n "checking for krb5/krb5.h... " >&6; } 13586 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : 13587 13588cat >>confdefs.h <<_ACEOF 13589#define HAVE_KRB5_KRB5_H 1 13590_ACEOF 13591 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13593$as_echo "yes" >&6; } 13594else 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596$as_echo "no" >&6; } 13597fi 13598fi 13599 for ac_func in krb5_get_error_message 13600do : 13601 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" 13602if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : 13603 cat >>confdefs.h <<_ACEOF 13604#define HAVE_KRB5_GET_ERROR_MESSAGE 1 13605_ACEOF 13606 for ac_func in krb5_free_error_message 13607do : 13608 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" 13609if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : 13610 cat >>confdefs.h <<_ACEOF 13611#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 13612_ACEOF 13613 13614fi 13615done 13616 13617else 13618 for ac_func in krb5_get_error_string 13619do : 13620 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" 13621if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : 13622 cat >>confdefs.h <<_ACEOF 13623#define HAVE_KRB5_GET_ERROR_STRING 1 13624_ACEOF 13625 13626else 13627 for ac_func in krb5_get_err_txt 13628do : 13629 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" 13630if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : 13631 cat >>confdefs.h <<_ACEOF 13632#define HAVE_KRB5_GET_ERR_TXT 1 13633_ACEOF 13634 13635else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 13637$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } 13638if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : 13639 $as_echo_n "(cached) " >&6 13640else 13641 ac_check_lib_save_LIBS=$LIBS 13642LIBS="-lksvc $LIBS" 13643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13644/* end confdefs.h. */ 13645 13646/* Override any GCC internal prototype to avoid an error. 13647 Use char because int might match the return type of a GCC 13648 builtin and then its argument prototype would still apply. */ 13649#ifdef __cplusplus 13650extern "C" 13651#endif 13652char krb5_svc_get_msg (); 13653int 13654main () 13655{ 13656return krb5_svc_get_msg (); 13657 ; 13658 return 0; 13659} 13660_ACEOF 13661if ac_fn_c_try_link "$LINENO"; then : 13662 ac_cv_lib_ksvc_krb5_svc_get_msg=yes 13663else 13664 ac_cv_lib_ksvc_krb5_svc_get_msg=no 13665fi 13666rm -f core conftest.err conftest.$ac_objext \ 13667 conftest$ac_exeext conftest.$ac_ext 13668LIBS=$ac_check_lib_save_LIBS 13669fi 13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 13671$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } 13672if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : 13673 KRB5_LIBS="$KRB5_LIBS -lksvc" 13674 $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h 13675 13676 for ac_header in ibm_svc/krb5_svc.h 13677do : 13678 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " 13679#if HAVE_KRB5_H 13680# include <krb5.h> 13681#else 13682# include <krb5/krb5.h> 13683#endif 13684 13685" 13686if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : 13687 cat >>confdefs.h <<_ACEOF 13688#define HAVE_IBM_SVC_KRB5_SVC_H 1 13689_ACEOF 13690 13691fi 13692 13693done 13694 13695else 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 13697$as_echo_n "checking for com_err in -lcom_err... " >&6; } 13698if ${ac_cv_lib_com_err_com_err+:} false; then : 13699 $as_echo_n "(cached) " >&6 13700else 13701 ac_check_lib_save_LIBS=$LIBS 13702LIBS="-lcom_err $LIBS" 13703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13704/* end confdefs.h. */ 13705 13706/* Override any GCC internal prototype to avoid an error. 13707 Use char because int might match the return type of a GCC 13708 builtin and then its argument prototype would still apply. */ 13709#ifdef __cplusplus 13710extern "C" 13711#endif 13712char com_err (); 13713int 13714main () 13715{ 13716return com_err (); 13717 ; 13718 return 0; 13719} 13720_ACEOF 13721if ac_fn_c_try_link "$LINENO"; then : 13722 ac_cv_lib_com_err_com_err=yes 13723else 13724 ac_cv_lib_com_err_com_err=no 13725fi 13726rm -f core conftest.err conftest.$ac_objext \ 13727 conftest$ac_exeext conftest.$ac_ext 13728LIBS=$ac_check_lib_save_LIBS 13729fi 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 13731$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 13732if test "x$ac_cv_lib_com_err_com_err" = xyes; then : 13733 KRB5_LIBS="$KRB5_LIBS -lcom_err" 13734else 13735 if test x"true" = xtrue; then : 13736 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5 13737else 13738 KRB5_LIBS="" 13739fi 13740fi 13741 13742 for ac_header in et/com_err.h 13743do : 13744 ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default" 13745if test "x$ac_cv_header_et_com_err_h" = xyes; then : 13746 cat >>confdefs.h <<_ACEOF 13747#define HAVE_ET_COM_ERR_H 1 13748_ACEOF 13749 13750fi 13751 13752done 13753 13754fi 13755 13756fi 13757done 13758 13759fi 13760done 13761 13762fi 13763done 13764 13765 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 13766 LDFLAGS="$rra_krb5_save_LDFLAGS" 13767 LIBS="$rra_krb5_save_LIBS" 13768else 13769 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then : 13770 13771 rra_krb5_config_KRB5= 13772 rra_krb5_config_KRB5_ok= 13773 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then : 13774 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config" 13775else 13776 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG" 13777fi 13778 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then : 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5 13780$as_echo_n "checking for krb5 support in krb5-config... " >&6; } 13781if ${rra_cv_lib_KRB5_config+:} false; then : 13782 $as_echo_n "(cached) " >&6 13783else 13784 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then : 13785 rra_cv_lib_KRB5_config=yes 13786else 13787 rra_cv_lib_KRB5_config=no 13788fi 13789fi 13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5 13791$as_echo "$rra_cv_lib_KRB5_config" >&6; } 13792 if test "$rra_cv_lib_KRB5_config" = yes; then : 13793 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null` 13794 13795 13796 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5 13798$as_echo_n "checking for --deps support in krb5-config... " >&6; } 13799if ${rra_cv_krb5_config_deps+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then : 13803 rra_cv_krb5_config_deps=yes 13804else 13805 rra_cv_krb5_config_deps=no 13806fi 13807fi 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5 13809$as_echo "$rra_cv_krb5_config_deps" >&6; } 13810 if test x"$rra_reduced_depends" = xfalse \ 13811 && test x"$rra_cv_krb5_config_deps" = xyes; then : 13812 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null` 13813else 13814 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null` 13815fi 13816 rra_krb5_config_KRB5_ok=yes 13817else 13818 if test x"krb5" = xkrb5; then : 13819 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null` 13820 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null` 13821 rra_krb5_config_KRB5_ok=yes 13822fi 13823fi 13824fi 13825 if test x"$rra_krb5_config_KRB5_ok" = xyes; then : 13826 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'` 13827 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'` 13828 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 13829 rra_krb5_save_LDFLAGS="$LDFLAGS" 13830 rra_krb5_save_LIBS="$LIBS" 13831 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 13832 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 13833 LIBS="$KRB5_LIBS $LIBS" 13834 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context" 13835if test "x$ac_cv_func_krb5_init_context" = xyes; then : 13836 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 13837 LDFLAGS="$rra_krb5_save_LDFLAGS" 13838 LIBS="$rra_krb5_save_LIBS" 13839else 13840 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 13841 LDFLAGS="$rra_krb5_save_LDFLAGS" 13842 LIBS="$rra_krb5_save_LIBS" 13843 KRB5_CPPFLAGS= 13844 KRB5_LIBS= 13845 if test x"$rra_krb5_libdir" != x; then : 13846 KRB5_LDFLAGS="-L$rra_krb5_libdir" 13847else 13848 if test x"$rra_krb5_root" != x; then : 13849 13850 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : 13851 if test x"" = x; then : 13852 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" 13853else 13854 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" 13855fi 13856else 13857 if test x"" = x; then : 13858 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" 13859else 13860 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" 13861fi 13862fi 13863 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` 13864fi 13865fi 13866 if test x"$rra_krb5_includedir" != x; then : 13867 KRB5_CPPFLAGS="-I$rra_krb5_includedir" 13868else 13869 if test x"$rra_krb5_root" != x; then : 13870 if test x"$rra_krb5_root" != x/usr; then : 13871 KRB5_CPPFLAGS="-I${rra_krb5_root}/include" 13872fi 13873fi 13874fi 13875 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 13876 rra_krb5_save_LDFLAGS="$LDFLAGS" 13877 rra_krb5_save_LIBS="$LIBS" 13878 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 13879 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 13880 LIBS="$KRB5_LIBS $LIBS" 13881 rra_krb5_extra= 13882 LIBS= 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 13884$as_echo_n "checking for library containing res_search... " >&6; } 13885if ${ac_cv_search_res_search+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 ac_func_search_save_LIBS=$LIBS 13889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891 13892/* Override any GCC internal prototype to avoid an error. 13893 Use char because int might match the return type of a GCC 13894 builtin and then its argument prototype would still apply. */ 13895#ifdef __cplusplus 13896extern "C" 13897#endif 13898char res_search (); 13899int 13900main () 13901{ 13902return res_search (); 13903 ; 13904 return 0; 13905} 13906_ACEOF 13907for ac_lib in '' resolv; do 13908 if test -z "$ac_lib"; then 13909 ac_res="none required" 13910 else 13911 ac_res=-l$ac_lib 13912 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13913 fi 13914 if ac_fn_c_try_link "$LINENO"; then : 13915 ac_cv_search_res_search=$ac_res 13916fi 13917rm -f core conftest.err conftest.$ac_objext \ 13918 conftest$ac_exeext 13919 if ${ac_cv_search_res_search+:} false; then : 13920 break 13921fi 13922done 13923if ${ac_cv_search_res_search+:} false; then : 13924 13925else 13926 ac_cv_search_res_search=no 13927fi 13928rm conftest.$ac_ext 13929LIBS=$ac_func_search_save_LIBS 13930fi 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 13932$as_echo "$ac_cv_search_res_search" >&6; } 13933ac_res=$ac_cv_search_res_search 13934if test "$ac_res" != no; then : 13935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13936 13937else 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 13939$as_echo_n "checking for library containing __res_search... " >&6; } 13940if ${ac_cv_search___res_search+:} false; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 ac_func_search_save_LIBS=$LIBS 13944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13945/* end confdefs.h. */ 13946 13947/* Override any GCC internal prototype to avoid an error. 13948 Use char because int might match the return type of a GCC 13949 builtin and then its argument prototype would still apply. */ 13950#ifdef __cplusplus 13951extern "C" 13952#endif 13953char __res_search (); 13954int 13955main () 13956{ 13957return __res_search (); 13958 ; 13959 return 0; 13960} 13961_ACEOF 13962for ac_lib in '' resolv; do 13963 if test -z "$ac_lib"; then 13964 ac_res="none required" 13965 else 13966 ac_res=-l$ac_lib 13967 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13968 fi 13969 if ac_fn_c_try_link "$LINENO"; then : 13970 ac_cv_search___res_search=$ac_res 13971fi 13972rm -f core conftest.err conftest.$ac_objext \ 13973 conftest$ac_exeext 13974 if ${ac_cv_search___res_search+:} false; then : 13975 break 13976fi 13977done 13978if ${ac_cv_search___res_search+:} false; then : 13979 13980else 13981 ac_cv_search___res_search=no 13982fi 13983rm conftest.$ac_ext 13984LIBS=$ac_func_search_save_LIBS 13985fi 13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 13987$as_echo "$ac_cv_search___res_search" >&6; } 13988ac_res=$ac_cv_search___res_search 13989if test "$ac_res" != no; then : 13990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13991 13992fi 13993 13994fi 13995 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 13997$as_echo_n "checking for library containing gethostbyname... " >&6; } 13998if ${ac_cv_search_gethostbyname+:} false; then : 13999 $as_echo_n "(cached) " >&6 14000else 14001 ac_func_search_save_LIBS=$LIBS 14002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14003/* end confdefs.h. */ 14004 14005/* Override any GCC internal prototype to avoid an error. 14006 Use char because int might match the return type of a GCC 14007 builtin and then its argument prototype would still apply. */ 14008#ifdef __cplusplus 14009extern "C" 14010#endif 14011char gethostbyname (); 14012int 14013main () 14014{ 14015return gethostbyname (); 14016 ; 14017 return 0; 14018} 14019_ACEOF 14020for ac_lib in '' nsl; do 14021 if test -z "$ac_lib"; then 14022 ac_res="none required" 14023 else 14024 ac_res=-l$ac_lib 14025 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14026 fi 14027 if ac_fn_c_try_link "$LINENO"; then : 14028 ac_cv_search_gethostbyname=$ac_res 14029fi 14030rm -f core conftest.err conftest.$ac_objext \ 14031 conftest$ac_exeext 14032 if ${ac_cv_search_gethostbyname+:} false; then : 14033 break 14034fi 14035done 14036if ${ac_cv_search_gethostbyname+:} false; then : 14037 14038else 14039 ac_cv_search_gethostbyname=no 14040fi 14041rm conftest.$ac_ext 14042LIBS=$ac_func_search_save_LIBS 14043fi 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 14045$as_echo "$ac_cv_search_gethostbyname" >&6; } 14046ac_res=$ac_cv_search_gethostbyname 14047if test "$ac_res" != no; then : 14048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14049 14050fi 14051 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 14053$as_echo_n "checking for library containing socket... " >&6; } 14054if ${ac_cv_search_socket+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 ac_func_search_save_LIBS=$LIBS 14058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060 14061/* Override any GCC internal prototype to avoid an error. 14062 Use char because int might match the return type of a GCC 14063 builtin and then its argument prototype would still apply. */ 14064#ifdef __cplusplus 14065extern "C" 14066#endif 14067char socket (); 14068int 14069main () 14070{ 14071return socket (); 14072 ; 14073 return 0; 14074} 14075_ACEOF 14076for ac_lib in '' socket; do 14077 if test -z "$ac_lib"; then 14078 ac_res="none required" 14079 else 14080 ac_res=-l$ac_lib 14081 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14082 fi 14083 if ac_fn_c_try_link "$LINENO"; then : 14084 ac_cv_search_socket=$ac_res 14085fi 14086rm -f core conftest.err conftest.$ac_objext \ 14087 conftest$ac_exeext 14088 if ${ac_cv_search_socket+:} false; then : 14089 break 14090fi 14091done 14092if ${ac_cv_search_socket+:} false; then : 14093 14094else 14095 ac_cv_search_socket=no 14096fi 14097rm conftest.$ac_ext 14098LIBS=$ac_func_search_save_LIBS 14099fi 14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 14101$as_echo "$ac_cv_search_socket" >&6; } 14102ac_res=$ac_cv_search_socket 14103if test "$ac_res" != no; then : 14104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14105 14106else 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 14108$as_echo_n "checking for socket in -lnsl... " >&6; } 14109if ${ac_cv_lib_nsl_socket+:} false; then : 14110 $as_echo_n "(cached) " >&6 14111else 14112 ac_check_lib_save_LIBS=$LIBS 14113LIBS="-lnsl -lsocket $LIBS" 14114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14115/* end confdefs.h. */ 14116 14117/* Override any GCC internal prototype to avoid an error. 14118 Use char because int might match the return type of a GCC 14119 builtin and then its argument prototype would still apply. */ 14120#ifdef __cplusplus 14121extern "C" 14122#endif 14123char socket (); 14124int 14125main () 14126{ 14127return socket (); 14128 ; 14129 return 0; 14130} 14131_ACEOF 14132if ac_fn_c_try_link "$LINENO"; then : 14133 ac_cv_lib_nsl_socket=yes 14134else 14135 ac_cv_lib_nsl_socket=no 14136fi 14137rm -f core conftest.err conftest.$ac_objext \ 14138 conftest$ac_exeext conftest.$ac_ext 14139LIBS=$ac_check_lib_save_LIBS 14140fi 14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 14142$as_echo "$ac_cv_lib_nsl_socket" >&6; } 14143if test "x$ac_cv_lib_nsl_socket" = xyes; then : 14144 LIBS="-lnsl -lsocket $LIBS" 14145fi 14146 14147fi 14148 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 14150$as_echo_n "checking for library containing crypt... " >&6; } 14151if ${ac_cv_search_crypt+:} false; then : 14152 $as_echo_n "(cached) " >&6 14153else 14154 ac_func_search_save_LIBS=$LIBS 14155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157 14158/* Override any GCC internal prototype to avoid an error. 14159 Use char because int might match the return type of a GCC 14160 builtin and then its argument prototype would still apply. */ 14161#ifdef __cplusplus 14162extern "C" 14163#endif 14164char crypt (); 14165int 14166main () 14167{ 14168return crypt (); 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173for ac_lib in '' crypt; do 14174 if test -z "$ac_lib"; then 14175 ac_res="none required" 14176 else 14177 ac_res=-l$ac_lib 14178 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14179 fi 14180 if ac_fn_c_try_link "$LINENO"; then : 14181 ac_cv_search_crypt=$ac_res 14182fi 14183rm -f core conftest.err conftest.$ac_objext \ 14184 conftest$ac_exeext 14185 if ${ac_cv_search_crypt+:} false; then : 14186 break 14187fi 14188done 14189if ${ac_cv_search_crypt+:} false; then : 14190 14191else 14192 ac_cv_search_crypt=no 14193fi 14194rm conftest.$ac_ext 14195LIBS=$ac_func_search_save_LIBS 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 14198$as_echo "$ac_cv_search_crypt" >&6; } 14199ac_res=$ac_cv_search_crypt 14200if test "$ac_res" != no; then : 14201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14202 14203fi 14204 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 14206$as_echo_n "checking for library containing roken_concat... " >&6; } 14207if ${ac_cv_search_roken_concat+:} false; then : 14208 $as_echo_n "(cached) " >&6 14209else 14210 ac_func_search_save_LIBS=$LIBS 14211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212/* end confdefs.h. */ 14213 14214/* Override any GCC internal prototype to avoid an error. 14215 Use char because int might match the return type of a GCC 14216 builtin and then its argument prototype would still apply. */ 14217#ifdef __cplusplus 14218extern "C" 14219#endif 14220char roken_concat (); 14221int 14222main () 14223{ 14224return roken_concat (); 14225 ; 14226 return 0; 14227} 14228_ACEOF 14229for ac_lib in '' roken; do 14230 if test -z "$ac_lib"; then 14231 ac_res="none required" 14232 else 14233 ac_res=-l$ac_lib 14234 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14235 fi 14236 if ac_fn_c_try_link "$LINENO"; then : 14237 ac_cv_search_roken_concat=$ac_res 14238fi 14239rm -f core conftest.err conftest.$ac_objext \ 14240 conftest$ac_exeext 14241 if ${ac_cv_search_roken_concat+:} false; then : 14242 break 14243fi 14244done 14245if ${ac_cv_search_roken_concat+:} false; then : 14246 14247else 14248 ac_cv_search_roken_concat=no 14249fi 14250rm conftest.$ac_ext 14251LIBS=$ac_func_search_save_LIBS 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 14254$as_echo "$ac_cv_search_roken_concat" >&6; } 14255ac_res=$ac_cv_search_roken_concat 14256if test "$ac_res" != no; then : 14257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14258 14259fi 14260 14261 rra_krb5_extra="$LIBS" 14262 LIBS="$rra_krb5_save_LIBS" 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 14264$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 14265if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : 14266 $as_echo_n "(cached) " >&6 14267else 14268 ac_check_lib_save_LIBS=$LIBS 14269LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" 14270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14271/* end confdefs.h. */ 14272 14273/* Override any GCC internal prototype to avoid an error. 14274 Use char because int might match the return type of a GCC 14275 builtin and then its argument prototype would still apply. */ 14276#ifdef __cplusplus 14277extern "C" 14278#endif 14279char krb5_init_context (); 14280int 14281main () 14282{ 14283return krb5_init_context (); 14284 ; 14285 return 0; 14286} 14287_ACEOF 14288if ac_fn_c_try_link "$LINENO"; then : 14289 ac_cv_lib_krb5_krb5_init_context=yes 14290else 14291 ac_cv_lib_krb5_krb5_init_context=no 14292fi 14293rm -f core conftest.err conftest.$ac_objext \ 14294 conftest$ac_exeext conftest.$ac_ext 14295LIBS=$ac_check_lib_save_LIBS 14296fi 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 14298$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 14299if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : 14300 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" 14301else 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 14303$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 14304if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 14305 $as_echo_n "(cached) " >&6 14306else 14307 ac_check_lib_save_LIBS=$LIBS 14308LIBS="-lkrb5support $rra_krb5_extra $LIBS" 14309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14310/* end confdefs.h. */ 14311 14312/* Override any GCC internal prototype to avoid an error. 14313 Use char because int might match the return type of a GCC 14314 builtin and then its argument prototype would still apply. */ 14315#ifdef __cplusplus 14316extern "C" 14317#endif 14318char krb5int_getspecific (); 14319int 14320main () 14321{ 14322return krb5int_getspecific (); 14323 ; 14324 return 0; 14325} 14326_ACEOF 14327if ac_fn_c_try_link "$LINENO"; then : 14328 ac_cv_lib_krb5support_krb5int_getspecific=yes 14329else 14330 ac_cv_lib_krb5support_krb5int_getspecific=no 14331fi 14332rm -f core conftest.err conftest.$ac_objext \ 14333 conftest$ac_exeext conftest.$ac_ext 14334LIBS=$ac_check_lib_save_LIBS 14335fi 14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 14337$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 14338if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 14339 rra_krb5_extra="-lkrb5support $rra_krb5_extra" 14340else 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 14342$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 14343if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 ac_check_lib_save_LIBS=$LIBS 14347LIBS="-lpthreads $LIBS" 14348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14349/* end confdefs.h. */ 14350 14351/* Override any GCC internal prototype to avoid an error. 14352 Use char because int might match the return type of a GCC 14353 builtin and then its argument prototype would still apply. */ 14354#ifdef __cplusplus 14355extern "C" 14356#endif 14357char pthread_setspecific (); 14358int 14359main () 14360{ 14361return pthread_setspecific (); 14362 ; 14363 return 0; 14364} 14365_ACEOF 14366if ac_fn_c_try_link "$LINENO"; then : 14367 ac_cv_lib_pthreads_pthread_setspecific=yes 14368else 14369 ac_cv_lib_pthreads_pthread_setspecific=no 14370fi 14371rm -f core conftest.err conftest.$ac_objext \ 14372 conftest$ac_exeext conftest.$ac_ext 14373LIBS=$ac_check_lib_save_LIBS 14374fi 14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 14376$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 14377if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 14378 rra_krb5_pthread="-lpthreads" 14379else 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 14381$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 14382if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 14383 $as_echo_n "(cached) " >&6 14384else 14385 ac_check_lib_save_LIBS=$LIBS 14386LIBS="-lpthread $LIBS" 14387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14388/* end confdefs.h. */ 14389 14390/* Override any GCC internal prototype to avoid an error. 14391 Use char because int might match the return type of a GCC 14392 builtin and then its argument prototype would still apply. */ 14393#ifdef __cplusplus 14394extern "C" 14395#endif 14396char pthread_setspecific (); 14397int 14398main () 14399{ 14400return pthread_setspecific (); 14401 ; 14402 return 0; 14403} 14404_ACEOF 14405if ac_fn_c_try_link "$LINENO"; then : 14406 ac_cv_lib_pthread_pthread_setspecific=yes 14407else 14408 ac_cv_lib_pthread_pthread_setspecific=no 14409fi 14410rm -f core conftest.err conftest.$ac_objext \ 14411 conftest$ac_exeext conftest.$ac_ext 14412LIBS=$ac_check_lib_save_LIBS 14413fi 14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 14415$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 14416if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 14417 rra_krb5_pthread="-lpthread" 14418fi 14419 14420fi 14421 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 14423$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 14424if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 14425 $as_echo_n "(cached) " >&6 14426else 14427 ac_check_lib_save_LIBS=$LIBS 14428LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" 14429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14430/* end confdefs.h. */ 14431 14432/* Override any GCC internal prototype to avoid an error. 14433 Use char because int might match the return type of a GCC 14434 builtin and then its argument prototype would still apply. */ 14435#ifdef __cplusplus 14436extern "C" 14437#endif 14438char krb5int_setspecific (); 14439int 14440main () 14441{ 14442return krb5int_setspecific (); 14443 ; 14444 return 0; 14445} 14446_ACEOF 14447if ac_fn_c_try_link "$LINENO"; then : 14448 ac_cv_lib_krb5support_krb5int_setspecific=yes 14449else 14450 ac_cv_lib_krb5support_krb5int_setspecific=no 14451fi 14452rm -f core conftest.err conftest.$ac_objext \ 14453 conftest$ac_exeext conftest.$ac_ext 14454LIBS=$ac_check_lib_save_LIBS 14455fi 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 14457$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 14458if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 14459 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" 14460fi 14461 14462fi 14463 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 14465$as_echo_n "checking for error_message in -lcom_err... " >&6; } 14466if ${ac_cv_lib_com_err_error_message+:} false; then : 14467 $as_echo_n "(cached) " >&6 14468else 14469 ac_check_lib_save_LIBS=$LIBS 14470LIBS="-lcom_err $rra_krb5_extra $LIBS" 14471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14472/* end confdefs.h. */ 14473 14474/* Override any GCC internal prototype to avoid an error. 14475 Use char because int might match the return type of a GCC 14476 builtin and then its argument prototype would still apply. */ 14477#ifdef __cplusplus 14478extern "C" 14479#endif 14480char error_message (); 14481int 14482main () 14483{ 14484return error_message (); 14485 ; 14486 return 0; 14487} 14488_ACEOF 14489if ac_fn_c_try_link "$LINENO"; then : 14490 ac_cv_lib_com_err_error_message=yes 14491else 14492 ac_cv_lib_com_err_error_message=no 14493fi 14494rm -f core conftest.err conftest.$ac_objext \ 14495 conftest$ac_exeext conftest.$ac_ext 14496LIBS=$ac_check_lib_save_LIBS 14497fi 14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 14499$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 14500if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 14501 rra_krb5_extra="-lcom_err $rra_krb5_extra" 14502fi 14503 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 14505$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } 14506if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : 14507 $as_echo_n "(cached) " >&6 14508else 14509 ac_check_lib_save_LIBS=$LIBS 14510LIBS="-lksvc $rra_krb5_extra $LIBS" 14511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14512/* end confdefs.h. */ 14513 14514/* Override any GCC internal prototype to avoid an error. 14515 Use char because int might match the return type of a GCC 14516 builtin and then its argument prototype would still apply. */ 14517#ifdef __cplusplus 14518extern "C" 14519#endif 14520char krb5_svc_get_msg (); 14521int 14522main () 14523{ 14524return krb5_svc_get_msg (); 14525 ; 14526 return 0; 14527} 14528_ACEOF 14529if ac_fn_c_try_link "$LINENO"; then : 14530 ac_cv_lib_ksvc_krb5_svc_get_msg=yes 14531else 14532 ac_cv_lib_ksvc_krb5_svc_get_msg=no 14533fi 14534rm -f core conftest.err conftest.$ac_objext \ 14535 conftest$ac_exeext conftest.$ac_ext 14536LIBS=$ac_check_lib_save_LIBS 14537fi 14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 14539$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } 14540if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : 14541 rra_krb5_extra="-lksvc $rra_krb5_extra" 14542fi 14543 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 14545$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 14546if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 14547 $as_echo_n "(cached) " >&6 14548else 14549 ac_check_lib_save_LIBS=$LIBS 14550LIBS="-lk5crypto $rra_krb5_extra $LIBS" 14551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552/* end confdefs.h. */ 14553 14554/* Override any GCC internal prototype to avoid an error. 14555 Use char because int might match the return type of a GCC 14556 builtin and then its argument prototype would still apply. */ 14557#ifdef __cplusplus 14558extern "C" 14559#endif 14560char krb5int_hash_md5 (); 14561int 14562main () 14563{ 14564return krb5int_hash_md5 (); 14565 ; 14566 return 0; 14567} 14568_ACEOF 14569if ac_fn_c_try_link "$LINENO"; then : 14570 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 14571else 14572 ac_cv_lib_k5crypto_krb5int_hash_md5=no 14573fi 14574rm -f core conftest.err conftest.$ac_objext \ 14575 conftest$ac_exeext conftest.$ac_ext 14576LIBS=$ac_check_lib_save_LIBS 14577fi 14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 14579$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 14580if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 14581 rra_krb5_extra="-lk5crypto $rra_krb5_extra" 14582fi 14583 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 14585$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } 14586if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588else 14589 ac_check_lib_save_LIBS=$LIBS 14590LIBS="-lk5profile $rra_krb5_extra $LIBS" 14591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592/* end confdefs.h. */ 14593 14594/* Override any GCC internal prototype to avoid an error. 14595 Use char because int might match the return type of a GCC 14596 builtin and then its argument prototype would still apply. */ 14597#ifdef __cplusplus 14598extern "C" 14599#endif 14600char profile_get_values (); 14601int 14602main () 14603{ 14604return profile_get_values (); 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_c_try_link "$LINENO"; then : 14610 ac_cv_lib_k5profile_profile_get_values=yes 14611else 14612 ac_cv_lib_k5profile_profile_get_values=no 14613fi 14614rm -f core conftest.err conftest.$ac_objext \ 14615 conftest$ac_exeext conftest.$ac_ext 14616LIBS=$ac_check_lib_save_LIBS 14617fi 14618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 14619$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } 14620if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : 14621 rra_krb5_extra="-lk5profile $rra_krb5_extra" 14622fi 14623 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 14625$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } 14626if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : 14627 $as_echo_n "(cached) " >&6 14628else 14629 ac_check_lib_save_LIBS=$LIBS 14630LIBS="-lkrb5 $rra_krb5_extra $LIBS" 14631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633 14634/* Override any GCC internal prototype to avoid an error. 14635 Use char because int might match the return type of a GCC 14636 builtin and then its argument prototype would still apply. */ 14637#ifdef __cplusplus 14638extern "C" 14639#endif 14640char krb5_cc_default (); 14641int 14642main () 14643{ 14644return krb5_cc_default (); 14645 ; 14646 return 0; 14647} 14648_ACEOF 14649if ac_fn_c_try_link "$LINENO"; then : 14650 ac_cv_lib_krb5_krb5_cc_default=yes 14651else 14652 ac_cv_lib_krb5_krb5_cc_default=no 14653fi 14654rm -f core conftest.err conftest.$ac_objext \ 14655 conftest$ac_exeext conftest.$ac_ext 14656LIBS=$ac_check_lib_save_LIBS 14657fi 14658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 14659$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } 14660if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : 14661 KRB5_LIBS="-lkrb5 $rra_krb5_extra" 14662else 14663 if test x"true" = xtrue; then : 14664 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 14665fi 14666fi 14667 14668fi 14669 14670 LIBS="$KRB5_LIBS $LIBS" 14671 if test x"$rra_krb5_incroot" = x; then : 14672 for ac_header in krb5.h krb5/krb5.h 14673do : 14674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14675ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14676if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14677 cat >>confdefs.h <<_ACEOF 14678#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14679_ACEOF 14680 14681fi 14682 14683done 14684 14685else 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 14687$as_echo_n "checking for krb5.h... " >&6; } 14688 if test -f "${rra_krb5_incroot}/krb5.h"; then : 14689 14690cat >>confdefs.h <<_ACEOF 14691#define HAVE_KRB5_H 1 14692_ACEOF 14693 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14695$as_echo "yes" >&6; } 14696else 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14698$as_echo "no" >&6; } 14699fi 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 14701$as_echo_n "checking for krb5/krb5.h... " >&6; } 14702 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : 14703 14704cat >>confdefs.h <<_ACEOF 14705#define HAVE_KRB5_KRB5_H 1 14706_ACEOF 14707 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14709$as_echo "yes" >&6; } 14710else 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14712$as_echo "no" >&6; } 14713fi 14714fi 14715 for ac_func in krb5_get_error_message 14716do : 14717 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" 14718if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : 14719 cat >>confdefs.h <<_ACEOF 14720#define HAVE_KRB5_GET_ERROR_MESSAGE 1 14721_ACEOF 14722 for ac_func in krb5_free_error_message 14723do : 14724 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" 14725if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : 14726 cat >>confdefs.h <<_ACEOF 14727#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 14728_ACEOF 14729 14730fi 14731done 14732 14733else 14734 for ac_func in krb5_get_error_string 14735do : 14736 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" 14737if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : 14738 cat >>confdefs.h <<_ACEOF 14739#define HAVE_KRB5_GET_ERROR_STRING 1 14740_ACEOF 14741 14742else 14743 for ac_func in krb5_get_err_txt 14744do : 14745 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" 14746if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : 14747 cat >>confdefs.h <<_ACEOF 14748#define HAVE_KRB5_GET_ERR_TXT 1 14749_ACEOF 14750 14751else 14752 for ac_func in krb5_svc_get_msg 14753do : 14754 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" 14755if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : 14756 cat >>confdefs.h <<_ACEOF 14757#define HAVE_KRB5_SVC_GET_MSG 1 14758_ACEOF 14759 for ac_header in ibm_svc/krb5_svc.h 14760do : 14761 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " 14762#if HAVE_KRB5_H 14763# include <krb5.h> 14764#else 14765# include <krb5/krb5.h> 14766#endif 14767 14768" 14769if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : 14770 cat >>confdefs.h <<_ACEOF 14771#define HAVE_IBM_SVC_KRB5_SVC_H 1 14772_ACEOF 14773 14774fi 14775 14776done 14777 14778else 14779 for ac_header in et/com_err.h 14780do : 14781 ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default" 14782if test "x$ac_cv_header_et_com_err_h" = xyes; then : 14783 cat >>confdefs.h <<_ACEOF 14784#define HAVE_ET_COM_ERR_H 1 14785_ACEOF 14786 14787fi 14788 14789done 14790 14791fi 14792done 14793 14794fi 14795done 14796 14797fi 14798done 14799 14800fi 14801done 14802 14803 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 14804 LDFLAGS="$rra_krb5_save_LDFLAGS" 14805 LIBS="$rra_krb5_save_LIBS" 14806fi 14807 14808 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 14809 rra_krb5_save_LDFLAGS="$LDFLAGS" 14810 rra_krb5_save_LIBS="$LIBS" 14811 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 14812 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 14813 LIBS="$KRB5_LIBS $LIBS" 14814 if test x"$rra_krb5_incroot" = x; then : 14815 for ac_header in krb5.h krb5/krb5.h 14816do : 14817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14820 cat >>confdefs.h <<_ACEOF 14821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14822_ACEOF 14823 14824fi 14825 14826done 14827 14828else 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 14830$as_echo_n "checking for krb5.h... " >&6; } 14831 if test -f "${rra_krb5_incroot}/krb5.h"; then : 14832 14833cat >>confdefs.h <<_ACEOF 14834#define HAVE_KRB5_H 1 14835_ACEOF 14836 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14838$as_echo "yes" >&6; } 14839else 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14841$as_echo "no" >&6; } 14842fi 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 14844$as_echo_n "checking for krb5/krb5.h... " >&6; } 14845 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : 14846 14847cat >>confdefs.h <<_ACEOF 14848#define HAVE_KRB5_KRB5_H 1 14849_ACEOF 14850 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14852$as_echo "yes" >&6; } 14853else 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14855$as_echo "no" >&6; } 14856fi 14857fi 14858 for ac_func in krb5_get_error_message 14859do : 14860 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" 14861if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : 14862 cat >>confdefs.h <<_ACEOF 14863#define HAVE_KRB5_GET_ERROR_MESSAGE 1 14864_ACEOF 14865 for ac_func in krb5_free_error_message 14866do : 14867 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" 14868if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : 14869 cat >>confdefs.h <<_ACEOF 14870#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 14871_ACEOF 14872 14873fi 14874done 14875 14876else 14877 for ac_func in krb5_get_error_string 14878do : 14879 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" 14880if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : 14881 cat >>confdefs.h <<_ACEOF 14882#define HAVE_KRB5_GET_ERROR_STRING 1 14883_ACEOF 14884 14885else 14886 for ac_func in krb5_get_err_txt 14887do : 14888 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" 14889if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : 14890 cat >>confdefs.h <<_ACEOF 14891#define HAVE_KRB5_GET_ERR_TXT 1 14892_ACEOF 14893 14894else 14895 for ac_func in krb5_svc_get_msg 14896do : 14897 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" 14898if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : 14899 cat >>confdefs.h <<_ACEOF 14900#define HAVE_KRB5_SVC_GET_MSG 1 14901_ACEOF 14902 for ac_header in ibm_svc/krb5_svc.h 14903do : 14904 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " 14905#if HAVE_KRB5_H 14906# include <krb5.h> 14907#else 14908# include <krb5/krb5.h> 14909#endif 14910 14911" 14912if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : 14913 cat >>confdefs.h <<_ACEOF 14914#define HAVE_IBM_SVC_KRB5_SVC_H 1 14915_ACEOF 14916 14917fi 14918 14919done 14920 14921else 14922 for ac_header in et/com_err.h 14923do : 14924 ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default" 14925if test "x$ac_cv_header_et_com_err_h" = xyes; then : 14926 cat >>confdefs.h <<_ACEOF 14927#define HAVE_ET_COM_ERR_H 1 14928_ACEOF 14929 14930fi 14931 14932done 14933 14934fi 14935done 14936 14937fi 14938done 14939 14940fi 14941done 14942 14943fi 14944done 14945 14946 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 14947 LDFLAGS="$rra_krb5_save_LDFLAGS" 14948 LIBS="$rra_krb5_save_LIBS" 14949else 14950 if test x"$rra_krb5_libdir" != x; then : 14951 KRB5_LDFLAGS="-L$rra_krb5_libdir" 14952else 14953 if test x"$rra_krb5_root" != x; then : 14954 14955 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : 14956 if test x"" = x; then : 14957 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" 14958else 14959 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" 14960fi 14961else 14962 if test x"" = x; then : 14963 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" 14964else 14965 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" 14966fi 14967fi 14968 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` 14969fi 14970fi 14971 if test x"$rra_krb5_includedir" != x; then : 14972 KRB5_CPPFLAGS="-I$rra_krb5_includedir" 14973else 14974 if test x"$rra_krb5_root" != x; then : 14975 if test x"$rra_krb5_root" != x/usr; then : 14976 KRB5_CPPFLAGS="-I${rra_krb5_root}/include" 14977fi 14978fi 14979fi 14980 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 14981 rra_krb5_save_LDFLAGS="$LDFLAGS" 14982 rra_krb5_save_LIBS="$LIBS" 14983 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 14984 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 14985 LIBS="$KRB5_LIBS $LIBS" 14986 rra_krb5_extra= 14987 LIBS= 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 14989$as_echo_n "checking for library containing res_search... " >&6; } 14990if ${ac_cv_search_res_search+:} false; then : 14991 $as_echo_n "(cached) " >&6 14992else 14993 ac_func_search_save_LIBS=$LIBS 14994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996 14997/* Override any GCC internal prototype to avoid an error. 14998 Use char because int might match the return type of a GCC 14999 builtin and then its argument prototype would still apply. */ 15000#ifdef __cplusplus 15001extern "C" 15002#endif 15003char res_search (); 15004int 15005main () 15006{ 15007return res_search (); 15008 ; 15009 return 0; 15010} 15011_ACEOF 15012for ac_lib in '' resolv; do 15013 if test -z "$ac_lib"; then 15014 ac_res="none required" 15015 else 15016 ac_res=-l$ac_lib 15017 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15018 fi 15019 if ac_fn_c_try_link "$LINENO"; then : 15020 ac_cv_search_res_search=$ac_res 15021fi 15022rm -f core conftest.err conftest.$ac_objext \ 15023 conftest$ac_exeext 15024 if ${ac_cv_search_res_search+:} false; then : 15025 break 15026fi 15027done 15028if ${ac_cv_search_res_search+:} false; then : 15029 15030else 15031 ac_cv_search_res_search=no 15032fi 15033rm conftest.$ac_ext 15034LIBS=$ac_func_search_save_LIBS 15035fi 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 15037$as_echo "$ac_cv_search_res_search" >&6; } 15038ac_res=$ac_cv_search_res_search 15039if test "$ac_res" != no; then : 15040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15041 15042else 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 15044$as_echo_n "checking for library containing __res_search... " >&6; } 15045if ${ac_cv_search___res_search+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 ac_func_search_save_LIBS=$LIBS 15049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15050/* end confdefs.h. */ 15051 15052/* Override any GCC internal prototype to avoid an error. 15053 Use char because int might match the return type of a GCC 15054 builtin and then its argument prototype would still apply. */ 15055#ifdef __cplusplus 15056extern "C" 15057#endif 15058char __res_search (); 15059int 15060main () 15061{ 15062return __res_search (); 15063 ; 15064 return 0; 15065} 15066_ACEOF 15067for ac_lib in '' resolv; do 15068 if test -z "$ac_lib"; then 15069 ac_res="none required" 15070 else 15071 ac_res=-l$ac_lib 15072 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15073 fi 15074 if ac_fn_c_try_link "$LINENO"; then : 15075 ac_cv_search___res_search=$ac_res 15076fi 15077rm -f core conftest.err conftest.$ac_objext \ 15078 conftest$ac_exeext 15079 if ${ac_cv_search___res_search+:} false; then : 15080 break 15081fi 15082done 15083if ${ac_cv_search___res_search+:} false; then : 15084 15085else 15086 ac_cv_search___res_search=no 15087fi 15088rm conftest.$ac_ext 15089LIBS=$ac_func_search_save_LIBS 15090fi 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 15092$as_echo "$ac_cv_search___res_search" >&6; } 15093ac_res=$ac_cv_search___res_search 15094if test "$ac_res" != no; then : 15095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15096 15097fi 15098 15099fi 15100 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 15102$as_echo_n "checking for library containing gethostbyname... " >&6; } 15103if ${ac_cv_search_gethostbyname+:} false; then : 15104 $as_echo_n "(cached) " >&6 15105else 15106 ac_func_search_save_LIBS=$LIBS 15107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109 15110/* Override any GCC internal prototype to avoid an error. 15111 Use char because int might match the return type of a GCC 15112 builtin and then its argument prototype would still apply. */ 15113#ifdef __cplusplus 15114extern "C" 15115#endif 15116char gethostbyname (); 15117int 15118main () 15119{ 15120return gethostbyname (); 15121 ; 15122 return 0; 15123} 15124_ACEOF 15125for ac_lib in '' nsl; do 15126 if test -z "$ac_lib"; then 15127 ac_res="none required" 15128 else 15129 ac_res=-l$ac_lib 15130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15131 fi 15132 if ac_fn_c_try_link "$LINENO"; then : 15133 ac_cv_search_gethostbyname=$ac_res 15134fi 15135rm -f core conftest.err conftest.$ac_objext \ 15136 conftest$ac_exeext 15137 if ${ac_cv_search_gethostbyname+:} false; then : 15138 break 15139fi 15140done 15141if ${ac_cv_search_gethostbyname+:} false; then : 15142 15143else 15144 ac_cv_search_gethostbyname=no 15145fi 15146rm conftest.$ac_ext 15147LIBS=$ac_func_search_save_LIBS 15148fi 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 15150$as_echo "$ac_cv_search_gethostbyname" >&6; } 15151ac_res=$ac_cv_search_gethostbyname 15152if test "$ac_res" != no; then : 15153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15154 15155fi 15156 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15158$as_echo_n "checking for library containing socket... " >&6; } 15159if ${ac_cv_search_socket+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161else 15162 ac_func_search_save_LIBS=$LIBS 15163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164/* end confdefs.h. */ 15165 15166/* Override any GCC internal prototype to avoid an error. 15167 Use char because int might match the return type of a GCC 15168 builtin and then its argument prototype would still apply. */ 15169#ifdef __cplusplus 15170extern "C" 15171#endif 15172char socket (); 15173int 15174main () 15175{ 15176return socket (); 15177 ; 15178 return 0; 15179} 15180_ACEOF 15181for ac_lib in '' socket; do 15182 if test -z "$ac_lib"; then 15183 ac_res="none required" 15184 else 15185 ac_res=-l$ac_lib 15186 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15187 fi 15188 if ac_fn_c_try_link "$LINENO"; then : 15189 ac_cv_search_socket=$ac_res 15190fi 15191rm -f core conftest.err conftest.$ac_objext \ 15192 conftest$ac_exeext 15193 if ${ac_cv_search_socket+:} false; then : 15194 break 15195fi 15196done 15197if ${ac_cv_search_socket+:} false; then : 15198 15199else 15200 ac_cv_search_socket=no 15201fi 15202rm conftest.$ac_ext 15203LIBS=$ac_func_search_save_LIBS 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15206$as_echo "$ac_cv_search_socket" >&6; } 15207ac_res=$ac_cv_search_socket 15208if test "$ac_res" != no; then : 15209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15210 15211else 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 15213$as_echo_n "checking for socket in -lnsl... " >&6; } 15214if ${ac_cv_lib_nsl_socket+:} false; then : 15215 $as_echo_n "(cached) " >&6 15216else 15217 ac_check_lib_save_LIBS=$LIBS 15218LIBS="-lnsl -lsocket $LIBS" 15219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15220/* end confdefs.h. */ 15221 15222/* Override any GCC internal prototype to avoid an error. 15223 Use char because int might match the return type of a GCC 15224 builtin and then its argument prototype would still apply. */ 15225#ifdef __cplusplus 15226extern "C" 15227#endif 15228char socket (); 15229int 15230main () 15231{ 15232return socket (); 15233 ; 15234 return 0; 15235} 15236_ACEOF 15237if ac_fn_c_try_link "$LINENO"; then : 15238 ac_cv_lib_nsl_socket=yes 15239else 15240 ac_cv_lib_nsl_socket=no 15241fi 15242rm -f core conftest.err conftest.$ac_objext \ 15243 conftest$ac_exeext conftest.$ac_ext 15244LIBS=$ac_check_lib_save_LIBS 15245fi 15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 15247$as_echo "$ac_cv_lib_nsl_socket" >&6; } 15248if test "x$ac_cv_lib_nsl_socket" = xyes; then : 15249 LIBS="-lnsl -lsocket $LIBS" 15250fi 15251 15252fi 15253 15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 15255$as_echo_n "checking for library containing crypt... " >&6; } 15256if ${ac_cv_search_crypt+:} false; then : 15257 $as_echo_n "(cached) " >&6 15258else 15259 ac_func_search_save_LIBS=$LIBS 15260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262 15263/* Override any GCC internal prototype to avoid an error. 15264 Use char because int might match the return type of a GCC 15265 builtin and then its argument prototype would still apply. */ 15266#ifdef __cplusplus 15267extern "C" 15268#endif 15269char crypt (); 15270int 15271main () 15272{ 15273return crypt (); 15274 ; 15275 return 0; 15276} 15277_ACEOF 15278for ac_lib in '' crypt; do 15279 if test -z "$ac_lib"; then 15280 ac_res="none required" 15281 else 15282 ac_res=-l$ac_lib 15283 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15284 fi 15285 if ac_fn_c_try_link "$LINENO"; then : 15286 ac_cv_search_crypt=$ac_res 15287fi 15288rm -f core conftest.err conftest.$ac_objext \ 15289 conftest$ac_exeext 15290 if ${ac_cv_search_crypt+:} false; then : 15291 break 15292fi 15293done 15294if ${ac_cv_search_crypt+:} false; then : 15295 15296else 15297 ac_cv_search_crypt=no 15298fi 15299rm conftest.$ac_ext 15300LIBS=$ac_func_search_save_LIBS 15301fi 15302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 15303$as_echo "$ac_cv_search_crypt" >&6; } 15304ac_res=$ac_cv_search_crypt 15305if test "$ac_res" != no; then : 15306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15307 15308fi 15309 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 15311$as_echo_n "checking for library containing roken_concat... " >&6; } 15312if ${ac_cv_search_roken_concat+:} false; then : 15313 $as_echo_n "(cached) " >&6 15314else 15315 ac_func_search_save_LIBS=$LIBS 15316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15317/* end confdefs.h. */ 15318 15319/* Override any GCC internal prototype to avoid an error. 15320 Use char because int might match the return type of a GCC 15321 builtin and then its argument prototype would still apply. */ 15322#ifdef __cplusplus 15323extern "C" 15324#endif 15325char roken_concat (); 15326int 15327main () 15328{ 15329return roken_concat (); 15330 ; 15331 return 0; 15332} 15333_ACEOF 15334for ac_lib in '' roken; do 15335 if test -z "$ac_lib"; then 15336 ac_res="none required" 15337 else 15338 ac_res=-l$ac_lib 15339 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15340 fi 15341 if ac_fn_c_try_link "$LINENO"; then : 15342 ac_cv_search_roken_concat=$ac_res 15343fi 15344rm -f core conftest.err conftest.$ac_objext \ 15345 conftest$ac_exeext 15346 if ${ac_cv_search_roken_concat+:} false; then : 15347 break 15348fi 15349done 15350if ${ac_cv_search_roken_concat+:} false; then : 15351 15352else 15353 ac_cv_search_roken_concat=no 15354fi 15355rm conftest.$ac_ext 15356LIBS=$ac_func_search_save_LIBS 15357fi 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 15359$as_echo "$ac_cv_search_roken_concat" >&6; } 15360ac_res=$ac_cv_search_roken_concat 15361if test "$ac_res" != no; then : 15362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15363 15364fi 15365 15366 rra_krb5_extra="$LIBS" 15367 LIBS="$rra_krb5_save_LIBS" 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 15369$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 15370if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 ac_check_lib_save_LIBS=$LIBS 15374LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" 15375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15376/* end confdefs.h. */ 15377 15378/* Override any GCC internal prototype to avoid an error. 15379 Use char because int might match the return type of a GCC 15380 builtin and then its argument prototype would still apply. */ 15381#ifdef __cplusplus 15382extern "C" 15383#endif 15384char krb5_init_context (); 15385int 15386main () 15387{ 15388return krb5_init_context (); 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_link "$LINENO"; then : 15394 ac_cv_lib_krb5_krb5_init_context=yes 15395else 15396 ac_cv_lib_krb5_krb5_init_context=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400LIBS=$ac_check_lib_save_LIBS 15401fi 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 15403$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 15404if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : 15405 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" 15406else 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 15408$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 15409if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 ac_check_lib_save_LIBS=$LIBS 15413LIBS="-lkrb5support $rra_krb5_extra $LIBS" 15414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416 15417/* Override any GCC internal prototype to avoid an error. 15418 Use char because int might match the return type of a GCC 15419 builtin and then its argument prototype would still apply. */ 15420#ifdef __cplusplus 15421extern "C" 15422#endif 15423char krb5int_getspecific (); 15424int 15425main () 15426{ 15427return krb5int_getspecific (); 15428 ; 15429 return 0; 15430} 15431_ACEOF 15432if ac_fn_c_try_link "$LINENO"; then : 15433 ac_cv_lib_krb5support_krb5int_getspecific=yes 15434else 15435 ac_cv_lib_krb5support_krb5int_getspecific=no 15436fi 15437rm -f core conftest.err conftest.$ac_objext \ 15438 conftest$ac_exeext conftest.$ac_ext 15439LIBS=$ac_check_lib_save_LIBS 15440fi 15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 15442$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 15443if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 15444 rra_krb5_extra="-lkrb5support $rra_krb5_extra" 15445else 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 15447$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 15448if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 15449 $as_echo_n "(cached) " >&6 15450else 15451 ac_check_lib_save_LIBS=$LIBS 15452LIBS="-lpthreads $LIBS" 15453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15454/* end confdefs.h. */ 15455 15456/* Override any GCC internal prototype to avoid an error. 15457 Use char because int might match the return type of a GCC 15458 builtin and then its argument prototype would still apply. */ 15459#ifdef __cplusplus 15460extern "C" 15461#endif 15462char pthread_setspecific (); 15463int 15464main () 15465{ 15466return pthread_setspecific (); 15467 ; 15468 return 0; 15469} 15470_ACEOF 15471if ac_fn_c_try_link "$LINENO"; then : 15472 ac_cv_lib_pthreads_pthread_setspecific=yes 15473else 15474 ac_cv_lib_pthreads_pthread_setspecific=no 15475fi 15476rm -f core conftest.err conftest.$ac_objext \ 15477 conftest$ac_exeext conftest.$ac_ext 15478LIBS=$ac_check_lib_save_LIBS 15479fi 15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 15481$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 15482if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 15483 rra_krb5_pthread="-lpthreads" 15484else 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 15486$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 15487if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 15488 $as_echo_n "(cached) " >&6 15489else 15490 ac_check_lib_save_LIBS=$LIBS 15491LIBS="-lpthread $LIBS" 15492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493/* end confdefs.h. */ 15494 15495/* Override any GCC internal prototype to avoid an error. 15496 Use char because int might match the return type of a GCC 15497 builtin and then its argument prototype would still apply. */ 15498#ifdef __cplusplus 15499extern "C" 15500#endif 15501char pthread_setspecific (); 15502int 15503main () 15504{ 15505return pthread_setspecific (); 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_link "$LINENO"; then : 15511 ac_cv_lib_pthread_pthread_setspecific=yes 15512else 15513 ac_cv_lib_pthread_pthread_setspecific=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext \ 15516 conftest$ac_exeext conftest.$ac_ext 15517LIBS=$ac_check_lib_save_LIBS 15518fi 15519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 15520$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 15521if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 15522 rra_krb5_pthread="-lpthread" 15523fi 15524 15525fi 15526 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 15528$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 15529if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 15530 $as_echo_n "(cached) " >&6 15531else 15532 ac_check_lib_save_LIBS=$LIBS 15533LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" 15534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15535/* end confdefs.h. */ 15536 15537/* Override any GCC internal prototype to avoid an error. 15538 Use char because int might match the return type of a GCC 15539 builtin and then its argument prototype would still apply. */ 15540#ifdef __cplusplus 15541extern "C" 15542#endif 15543char krb5int_setspecific (); 15544int 15545main () 15546{ 15547return krb5int_setspecific (); 15548 ; 15549 return 0; 15550} 15551_ACEOF 15552if ac_fn_c_try_link "$LINENO"; then : 15553 ac_cv_lib_krb5support_krb5int_setspecific=yes 15554else 15555 ac_cv_lib_krb5support_krb5int_setspecific=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext \ 15558 conftest$ac_exeext conftest.$ac_ext 15559LIBS=$ac_check_lib_save_LIBS 15560fi 15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 15562$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 15563if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 15564 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" 15565fi 15566 15567fi 15568 15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 15570$as_echo_n "checking for error_message in -lcom_err... " >&6; } 15571if ${ac_cv_lib_com_err_error_message+:} false; then : 15572 $as_echo_n "(cached) " >&6 15573else 15574 ac_check_lib_save_LIBS=$LIBS 15575LIBS="-lcom_err $rra_krb5_extra $LIBS" 15576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577/* end confdefs.h. */ 15578 15579/* Override any GCC internal prototype to avoid an error. 15580 Use char because int might match the return type of a GCC 15581 builtin and then its argument prototype would still apply. */ 15582#ifdef __cplusplus 15583extern "C" 15584#endif 15585char error_message (); 15586int 15587main () 15588{ 15589return error_message (); 15590 ; 15591 return 0; 15592} 15593_ACEOF 15594if ac_fn_c_try_link "$LINENO"; then : 15595 ac_cv_lib_com_err_error_message=yes 15596else 15597 ac_cv_lib_com_err_error_message=no 15598fi 15599rm -f core conftest.err conftest.$ac_objext \ 15600 conftest$ac_exeext conftest.$ac_ext 15601LIBS=$ac_check_lib_save_LIBS 15602fi 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 15604$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 15605if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 15606 rra_krb5_extra="-lcom_err $rra_krb5_extra" 15607fi 15608 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 15610$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } 15611if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 ac_check_lib_save_LIBS=$LIBS 15615LIBS="-lksvc $rra_krb5_extra $LIBS" 15616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15617/* end confdefs.h. */ 15618 15619/* Override any GCC internal prototype to avoid an error. 15620 Use char because int might match the return type of a GCC 15621 builtin and then its argument prototype would still apply. */ 15622#ifdef __cplusplus 15623extern "C" 15624#endif 15625char krb5_svc_get_msg (); 15626int 15627main () 15628{ 15629return krb5_svc_get_msg (); 15630 ; 15631 return 0; 15632} 15633_ACEOF 15634if ac_fn_c_try_link "$LINENO"; then : 15635 ac_cv_lib_ksvc_krb5_svc_get_msg=yes 15636else 15637 ac_cv_lib_ksvc_krb5_svc_get_msg=no 15638fi 15639rm -f core conftest.err conftest.$ac_objext \ 15640 conftest$ac_exeext conftest.$ac_ext 15641LIBS=$ac_check_lib_save_LIBS 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 15644$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } 15645if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : 15646 rra_krb5_extra="-lksvc $rra_krb5_extra" 15647fi 15648 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 15650$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 15651if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 15652 $as_echo_n "(cached) " >&6 15653else 15654 ac_check_lib_save_LIBS=$LIBS 15655LIBS="-lk5crypto $rra_krb5_extra $LIBS" 15656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15657/* end confdefs.h. */ 15658 15659/* Override any GCC internal prototype to avoid an error. 15660 Use char because int might match the return type of a GCC 15661 builtin and then its argument prototype would still apply. */ 15662#ifdef __cplusplus 15663extern "C" 15664#endif 15665char krb5int_hash_md5 (); 15666int 15667main () 15668{ 15669return krb5int_hash_md5 (); 15670 ; 15671 return 0; 15672} 15673_ACEOF 15674if ac_fn_c_try_link "$LINENO"; then : 15675 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 15676else 15677 ac_cv_lib_k5crypto_krb5int_hash_md5=no 15678fi 15679rm -f core conftest.err conftest.$ac_objext \ 15680 conftest$ac_exeext conftest.$ac_ext 15681LIBS=$ac_check_lib_save_LIBS 15682fi 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 15684$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 15685if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 15686 rra_krb5_extra="-lk5crypto $rra_krb5_extra" 15687fi 15688 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 15690$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } 15691if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : 15692 $as_echo_n "(cached) " >&6 15693else 15694 ac_check_lib_save_LIBS=$LIBS 15695LIBS="-lk5profile $rra_krb5_extra $LIBS" 15696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15697/* end confdefs.h. */ 15698 15699/* Override any GCC internal prototype to avoid an error. 15700 Use char because int might match the return type of a GCC 15701 builtin and then its argument prototype would still apply. */ 15702#ifdef __cplusplus 15703extern "C" 15704#endif 15705char profile_get_values (); 15706int 15707main () 15708{ 15709return profile_get_values (); 15710 ; 15711 return 0; 15712} 15713_ACEOF 15714if ac_fn_c_try_link "$LINENO"; then : 15715 ac_cv_lib_k5profile_profile_get_values=yes 15716else 15717 ac_cv_lib_k5profile_profile_get_values=no 15718fi 15719rm -f core conftest.err conftest.$ac_objext \ 15720 conftest$ac_exeext conftest.$ac_ext 15721LIBS=$ac_check_lib_save_LIBS 15722fi 15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 15724$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } 15725if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : 15726 rra_krb5_extra="-lk5profile $rra_krb5_extra" 15727fi 15728 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 15730$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } 15731if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : 15732 $as_echo_n "(cached) " >&6 15733else 15734 ac_check_lib_save_LIBS=$LIBS 15735LIBS="-lkrb5 $rra_krb5_extra $LIBS" 15736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15737/* end confdefs.h. */ 15738 15739/* Override any GCC internal prototype to avoid an error. 15740 Use char because int might match the return type of a GCC 15741 builtin and then its argument prototype would still apply. */ 15742#ifdef __cplusplus 15743extern "C" 15744#endif 15745char krb5_cc_default (); 15746int 15747main () 15748{ 15749return krb5_cc_default (); 15750 ; 15751 return 0; 15752} 15753_ACEOF 15754if ac_fn_c_try_link "$LINENO"; then : 15755 ac_cv_lib_krb5_krb5_cc_default=yes 15756else 15757 ac_cv_lib_krb5_krb5_cc_default=no 15758fi 15759rm -f core conftest.err conftest.$ac_objext \ 15760 conftest$ac_exeext conftest.$ac_ext 15761LIBS=$ac_check_lib_save_LIBS 15762fi 15763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 15764$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } 15765if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : 15766 KRB5_LIBS="-lkrb5 $rra_krb5_extra" 15767else 15768 if test x"true" = xtrue; then : 15769 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 15770fi 15771fi 15772 15773fi 15774 15775 LIBS="$KRB5_LIBS $LIBS" 15776 if test x"$rra_krb5_incroot" = x; then : 15777 for ac_header in krb5.h krb5/krb5.h 15778do : 15779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15781if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15782 cat >>confdefs.h <<_ACEOF 15783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15784_ACEOF 15785 15786fi 15787 15788done 15789 15790else 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 15792$as_echo_n "checking for krb5.h... " >&6; } 15793 if test -f "${rra_krb5_incroot}/krb5.h"; then : 15794 15795cat >>confdefs.h <<_ACEOF 15796#define HAVE_KRB5_H 1 15797_ACEOF 15798 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15800$as_echo "yes" >&6; } 15801else 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15803$as_echo "no" >&6; } 15804fi 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 15806$as_echo_n "checking for krb5/krb5.h... " >&6; } 15807 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : 15808 15809cat >>confdefs.h <<_ACEOF 15810#define HAVE_KRB5_KRB5_H 1 15811_ACEOF 15812 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15814$as_echo "yes" >&6; } 15815else 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15817$as_echo "no" >&6; } 15818fi 15819fi 15820 for ac_func in krb5_get_error_message 15821do : 15822 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" 15823if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : 15824 cat >>confdefs.h <<_ACEOF 15825#define HAVE_KRB5_GET_ERROR_MESSAGE 1 15826_ACEOF 15827 for ac_func in krb5_free_error_message 15828do : 15829 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" 15830if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : 15831 cat >>confdefs.h <<_ACEOF 15832#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 15833_ACEOF 15834 15835fi 15836done 15837 15838else 15839 for ac_func in krb5_get_error_string 15840do : 15841 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" 15842if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : 15843 cat >>confdefs.h <<_ACEOF 15844#define HAVE_KRB5_GET_ERROR_STRING 1 15845_ACEOF 15846 15847else 15848 for ac_func in krb5_get_err_txt 15849do : 15850 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" 15851if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : 15852 cat >>confdefs.h <<_ACEOF 15853#define HAVE_KRB5_GET_ERR_TXT 1 15854_ACEOF 15855 15856else 15857 for ac_func in krb5_svc_get_msg 15858do : 15859 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" 15860if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : 15861 cat >>confdefs.h <<_ACEOF 15862#define HAVE_KRB5_SVC_GET_MSG 1 15863_ACEOF 15864 for ac_header in ibm_svc/krb5_svc.h 15865do : 15866 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " 15867#if HAVE_KRB5_H 15868# include <krb5.h> 15869#else 15870# include <krb5/krb5.h> 15871#endif 15872 15873" 15874if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : 15875 cat >>confdefs.h <<_ACEOF 15876#define HAVE_IBM_SVC_KRB5_SVC_H 1 15877_ACEOF 15878 15879fi 15880 15881done 15882 15883else 15884 for ac_header in et/com_err.h 15885do : 15886 ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default" 15887if test "x$ac_cv_header_et_com_err_h" = xyes; then : 15888 cat >>confdefs.h <<_ACEOF 15889#define HAVE_ET_COM_ERR_H 1 15890_ACEOF 15891 15892fi 15893 15894done 15895 15896fi 15897done 15898 15899fi 15900done 15901 15902fi 15903done 15904 15905fi 15906done 15907 15908 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 15909 LDFLAGS="$rra_krb5_save_LDFLAGS" 15910 LIBS="$rra_krb5_save_LIBS" 15911fi 15912else 15913 if test x"$rra_krb5_libdir" != x; then : 15914 KRB5_LDFLAGS="-L$rra_krb5_libdir" 15915else 15916 if test x"$rra_krb5_root" != x; then : 15917 15918 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : 15919 if test x"" = x; then : 15920 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" 15921else 15922 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" 15923fi 15924else 15925 if test x"" = x; then : 15926 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" 15927else 15928 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" 15929fi 15930fi 15931 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` 15932fi 15933fi 15934 if test x"$rra_krb5_includedir" != x; then : 15935 KRB5_CPPFLAGS="-I$rra_krb5_includedir" 15936else 15937 if test x"$rra_krb5_root" != x; then : 15938 if test x"$rra_krb5_root" != x/usr; then : 15939 KRB5_CPPFLAGS="-I${rra_krb5_root}/include" 15940fi 15941fi 15942fi 15943 rra_krb5_save_CPPFLAGS="$CPPFLAGS" 15944 rra_krb5_save_LDFLAGS="$LDFLAGS" 15945 rra_krb5_save_LIBS="$LIBS" 15946 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 15947 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 15948 LIBS="$KRB5_LIBS $LIBS" 15949 rra_krb5_extra= 15950 LIBS= 15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 15952$as_echo_n "checking for library containing res_search... " >&6; } 15953if ${ac_cv_search_res_search+:} false; then : 15954 $as_echo_n "(cached) " >&6 15955else 15956 ac_func_search_save_LIBS=$LIBS 15957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15958/* end confdefs.h. */ 15959 15960/* Override any GCC internal prototype to avoid an error. 15961 Use char because int might match the return type of a GCC 15962 builtin and then its argument prototype would still apply. */ 15963#ifdef __cplusplus 15964extern "C" 15965#endif 15966char res_search (); 15967int 15968main () 15969{ 15970return res_search (); 15971 ; 15972 return 0; 15973} 15974_ACEOF 15975for ac_lib in '' resolv; do 15976 if test -z "$ac_lib"; then 15977 ac_res="none required" 15978 else 15979 ac_res=-l$ac_lib 15980 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15981 fi 15982 if ac_fn_c_try_link "$LINENO"; then : 15983 ac_cv_search_res_search=$ac_res 15984fi 15985rm -f core conftest.err conftest.$ac_objext \ 15986 conftest$ac_exeext 15987 if ${ac_cv_search_res_search+:} false; then : 15988 break 15989fi 15990done 15991if ${ac_cv_search_res_search+:} false; then : 15992 15993else 15994 ac_cv_search_res_search=no 15995fi 15996rm conftest.$ac_ext 15997LIBS=$ac_func_search_save_LIBS 15998fi 15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 16000$as_echo "$ac_cv_search_res_search" >&6; } 16001ac_res=$ac_cv_search_res_search 16002if test "$ac_res" != no; then : 16003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16004 16005else 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 16007$as_echo_n "checking for library containing __res_search... " >&6; } 16008if ${ac_cv_search___res_search+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 ac_func_search_save_LIBS=$LIBS 16012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16013/* end confdefs.h. */ 16014 16015/* Override any GCC internal prototype to avoid an error. 16016 Use char because int might match the return type of a GCC 16017 builtin and then its argument prototype would still apply. */ 16018#ifdef __cplusplus 16019extern "C" 16020#endif 16021char __res_search (); 16022int 16023main () 16024{ 16025return __res_search (); 16026 ; 16027 return 0; 16028} 16029_ACEOF 16030for ac_lib in '' resolv; do 16031 if test -z "$ac_lib"; then 16032 ac_res="none required" 16033 else 16034 ac_res=-l$ac_lib 16035 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16036 fi 16037 if ac_fn_c_try_link "$LINENO"; then : 16038 ac_cv_search___res_search=$ac_res 16039fi 16040rm -f core conftest.err conftest.$ac_objext \ 16041 conftest$ac_exeext 16042 if ${ac_cv_search___res_search+:} false; then : 16043 break 16044fi 16045done 16046if ${ac_cv_search___res_search+:} false; then : 16047 16048else 16049 ac_cv_search___res_search=no 16050fi 16051rm conftest.$ac_ext 16052LIBS=$ac_func_search_save_LIBS 16053fi 16054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 16055$as_echo "$ac_cv_search___res_search" >&6; } 16056ac_res=$ac_cv_search___res_search 16057if test "$ac_res" != no; then : 16058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16059 16060fi 16061 16062fi 16063 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 16065$as_echo_n "checking for library containing gethostbyname... " >&6; } 16066if ${ac_cv_search_gethostbyname+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068else 16069 ac_func_search_save_LIBS=$LIBS 16070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16071/* end confdefs.h. */ 16072 16073/* Override any GCC internal prototype to avoid an error. 16074 Use char because int might match the return type of a GCC 16075 builtin and then its argument prototype would still apply. */ 16076#ifdef __cplusplus 16077extern "C" 16078#endif 16079char gethostbyname (); 16080int 16081main () 16082{ 16083return gethostbyname (); 16084 ; 16085 return 0; 16086} 16087_ACEOF 16088for ac_lib in '' nsl; do 16089 if test -z "$ac_lib"; then 16090 ac_res="none required" 16091 else 16092 ac_res=-l$ac_lib 16093 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16094 fi 16095 if ac_fn_c_try_link "$LINENO"; then : 16096 ac_cv_search_gethostbyname=$ac_res 16097fi 16098rm -f core conftest.err conftest.$ac_objext \ 16099 conftest$ac_exeext 16100 if ${ac_cv_search_gethostbyname+:} false; then : 16101 break 16102fi 16103done 16104if ${ac_cv_search_gethostbyname+:} false; then : 16105 16106else 16107 ac_cv_search_gethostbyname=no 16108fi 16109rm conftest.$ac_ext 16110LIBS=$ac_func_search_save_LIBS 16111fi 16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 16113$as_echo "$ac_cv_search_gethostbyname" >&6; } 16114ac_res=$ac_cv_search_gethostbyname 16115if test "$ac_res" != no; then : 16116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16117 16118fi 16119 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 16121$as_echo_n "checking for library containing socket... " >&6; } 16122if ${ac_cv_search_socket+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 ac_func_search_save_LIBS=$LIBS 16126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16127/* end confdefs.h. */ 16128 16129/* Override any GCC internal prototype to avoid an error. 16130 Use char because int might match the return type of a GCC 16131 builtin and then its argument prototype would still apply. */ 16132#ifdef __cplusplus 16133extern "C" 16134#endif 16135char socket (); 16136int 16137main () 16138{ 16139return socket (); 16140 ; 16141 return 0; 16142} 16143_ACEOF 16144for ac_lib in '' socket; do 16145 if test -z "$ac_lib"; then 16146 ac_res="none required" 16147 else 16148 ac_res=-l$ac_lib 16149 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16150 fi 16151 if ac_fn_c_try_link "$LINENO"; then : 16152 ac_cv_search_socket=$ac_res 16153fi 16154rm -f core conftest.err conftest.$ac_objext \ 16155 conftest$ac_exeext 16156 if ${ac_cv_search_socket+:} false; then : 16157 break 16158fi 16159done 16160if ${ac_cv_search_socket+:} false; then : 16161 16162else 16163 ac_cv_search_socket=no 16164fi 16165rm conftest.$ac_ext 16166LIBS=$ac_func_search_save_LIBS 16167fi 16168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 16169$as_echo "$ac_cv_search_socket" >&6; } 16170ac_res=$ac_cv_search_socket 16171if test "$ac_res" != no; then : 16172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16173 16174else 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 16176$as_echo_n "checking for socket in -lnsl... " >&6; } 16177if ${ac_cv_lib_nsl_socket+:} false; then : 16178 $as_echo_n "(cached) " >&6 16179else 16180 ac_check_lib_save_LIBS=$LIBS 16181LIBS="-lnsl -lsocket $LIBS" 16182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16183/* end confdefs.h. */ 16184 16185/* Override any GCC internal prototype to avoid an error. 16186 Use char because int might match the return type of a GCC 16187 builtin and then its argument prototype would still apply. */ 16188#ifdef __cplusplus 16189extern "C" 16190#endif 16191char socket (); 16192int 16193main () 16194{ 16195return socket (); 16196 ; 16197 return 0; 16198} 16199_ACEOF 16200if ac_fn_c_try_link "$LINENO"; then : 16201 ac_cv_lib_nsl_socket=yes 16202else 16203 ac_cv_lib_nsl_socket=no 16204fi 16205rm -f core conftest.err conftest.$ac_objext \ 16206 conftest$ac_exeext conftest.$ac_ext 16207LIBS=$ac_check_lib_save_LIBS 16208fi 16209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 16210$as_echo "$ac_cv_lib_nsl_socket" >&6; } 16211if test "x$ac_cv_lib_nsl_socket" = xyes; then : 16212 LIBS="-lnsl -lsocket $LIBS" 16213fi 16214 16215fi 16216 16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 16218$as_echo_n "checking for library containing crypt... " >&6; } 16219if ${ac_cv_search_crypt+:} false; then : 16220 $as_echo_n "(cached) " >&6 16221else 16222 ac_func_search_save_LIBS=$LIBS 16223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16224/* end confdefs.h. */ 16225 16226/* Override any GCC internal prototype to avoid an error. 16227 Use char because int might match the return type of a GCC 16228 builtin and then its argument prototype would still apply. */ 16229#ifdef __cplusplus 16230extern "C" 16231#endif 16232char crypt (); 16233int 16234main () 16235{ 16236return crypt (); 16237 ; 16238 return 0; 16239} 16240_ACEOF 16241for ac_lib in '' crypt; do 16242 if test -z "$ac_lib"; then 16243 ac_res="none required" 16244 else 16245 ac_res=-l$ac_lib 16246 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16247 fi 16248 if ac_fn_c_try_link "$LINENO"; then : 16249 ac_cv_search_crypt=$ac_res 16250fi 16251rm -f core conftest.err conftest.$ac_objext \ 16252 conftest$ac_exeext 16253 if ${ac_cv_search_crypt+:} false; then : 16254 break 16255fi 16256done 16257if ${ac_cv_search_crypt+:} false; then : 16258 16259else 16260 ac_cv_search_crypt=no 16261fi 16262rm conftest.$ac_ext 16263LIBS=$ac_func_search_save_LIBS 16264fi 16265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 16266$as_echo "$ac_cv_search_crypt" >&6; } 16267ac_res=$ac_cv_search_crypt 16268if test "$ac_res" != no; then : 16269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16270 16271fi 16272 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 16274$as_echo_n "checking for library containing roken_concat... " >&6; } 16275if ${ac_cv_search_roken_concat+:} false; then : 16276 $as_echo_n "(cached) " >&6 16277else 16278 ac_func_search_save_LIBS=$LIBS 16279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280/* end confdefs.h. */ 16281 16282/* Override any GCC internal prototype to avoid an error. 16283 Use char because int might match the return type of a GCC 16284 builtin and then its argument prototype would still apply. */ 16285#ifdef __cplusplus 16286extern "C" 16287#endif 16288char roken_concat (); 16289int 16290main () 16291{ 16292return roken_concat (); 16293 ; 16294 return 0; 16295} 16296_ACEOF 16297for ac_lib in '' roken; do 16298 if test -z "$ac_lib"; then 16299 ac_res="none required" 16300 else 16301 ac_res=-l$ac_lib 16302 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16303 fi 16304 if ac_fn_c_try_link "$LINENO"; then : 16305 ac_cv_search_roken_concat=$ac_res 16306fi 16307rm -f core conftest.err conftest.$ac_objext \ 16308 conftest$ac_exeext 16309 if ${ac_cv_search_roken_concat+:} false; then : 16310 break 16311fi 16312done 16313if ${ac_cv_search_roken_concat+:} false; then : 16314 16315else 16316 ac_cv_search_roken_concat=no 16317fi 16318rm conftest.$ac_ext 16319LIBS=$ac_func_search_save_LIBS 16320fi 16321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 16322$as_echo "$ac_cv_search_roken_concat" >&6; } 16323ac_res=$ac_cv_search_roken_concat 16324if test "$ac_res" != no; then : 16325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16326 16327fi 16328 16329 rra_krb5_extra="$LIBS" 16330 LIBS="$rra_krb5_save_LIBS" 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 16332$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 16333if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : 16334 $as_echo_n "(cached) " >&6 16335else 16336 ac_check_lib_save_LIBS=$LIBS 16337LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" 16338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340 16341/* Override any GCC internal prototype to avoid an error. 16342 Use char because int might match the return type of a GCC 16343 builtin and then its argument prototype would still apply. */ 16344#ifdef __cplusplus 16345extern "C" 16346#endif 16347char krb5_init_context (); 16348int 16349main () 16350{ 16351return krb5_init_context (); 16352 ; 16353 return 0; 16354} 16355_ACEOF 16356if ac_fn_c_try_link "$LINENO"; then : 16357 ac_cv_lib_krb5_krb5_init_context=yes 16358else 16359 ac_cv_lib_krb5_krb5_init_context=no 16360fi 16361rm -f core conftest.err conftest.$ac_objext \ 16362 conftest$ac_exeext conftest.$ac_ext 16363LIBS=$ac_check_lib_save_LIBS 16364fi 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 16366$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 16367if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : 16368 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" 16369else 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 16371$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 16372if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374else 16375 ac_check_lib_save_LIBS=$LIBS 16376LIBS="-lkrb5support $rra_krb5_extra $LIBS" 16377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16378/* end confdefs.h. */ 16379 16380/* Override any GCC internal prototype to avoid an error. 16381 Use char because int might match the return type of a GCC 16382 builtin and then its argument prototype would still apply. */ 16383#ifdef __cplusplus 16384extern "C" 16385#endif 16386char krb5int_getspecific (); 16387int 16388main () 16389{ 16390return krb5int_getspecific (); 16391 ; 16392 return 0; 16393} 16394_ACEOF 16395if ac_fn_c_try_link "$LINENO"; then : 16396 ac_cv_lib_krb5support_krb5int_getspecific=yes 16397else 16398 ac_cv_lib_krb5support_krb5int_getspecific=no 16399fi 16400rm -f core conftest.err conftest.$ac_objext \ 16401 conftest$ac_exeext conftest.$ac_ext 16402LIBS=$ac_check_lib_save_LIBS 16403fi 16404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 16405$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 16406if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 16407 rra_krb5_extra="-lkrb5support $rra_krb5_extra" 16408else 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 16410$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 16411if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 16412 $as_echo_n "(cached) " >&6 16413else 16414 ac_check_lib_save_LIBS=$LIBS 16415LIBS="-lpthreads $LIBS" 16416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16417/* end confdefs.h. */ 16418 16419/* Override any GCC internal prototype to avoid an error. 16420 Use char because int might match the return type of a GCC 16421 builtin and then its argument prototype would still apply. */ 16422#ifdef __cplusplus 16423extern "C" 16424#endif 16425char pthread_setspecific (); 16426int 16427main () 16428{ 16429return pthread_setspecific (); 16430 ; 16431 return 0; 16432} 16433_ACEOF 16434if ac_fn_c_try_link "$LINENO"; then : 16435 ac_cv_lib_pthreads_pthread_setspecific=yes 16436else 16437 ac_cv_lib_pthreads_pthread_setspecific=no 16438fi 16439rm -f core conftest.err conftest.$ac_objext \ 16440 conftest$ac_exeext conftest.$ac_ext 16441LIBS=$ac_check_lib_save_LIBS 16442fi 16443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 16444$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 16445if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 16446 rra_krb5_pthread="-lpthreads" 16447else 16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 16449$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 16450if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 16451 $as_echo_n "(cached) " >&6 16452else 16453 ac_check_lib_save_LIBS=$LIBS 16454LIBS="-lpthread $LIBS" 16455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457 16458/* Override any GCC internal prototype to avoid an error. 16459 Use char because int might match the return type of a GCC 16460 builtin and then its argument prototype would still apply. */ 16461#ifdef __cplusplus 16462extern "C" 16463#endif 16464char pthread_setspecific (); 16465int 16466main () 16467{ 16468return pthread_setspecific (); 16469 ; 16470 return 0; 16471} 16472_ACEOF 16473if ac_fn_c_try_link "$LINENO"; then : 16474 ac_cv_lib_pthread_pthread_setspecific=yes 16475else 16476 ac_cv_lib_pthread_pthread_setspecific=no 16477fi 16478rm -f core conftest.err conftest.$ac_objext \ 16479 conftest$ac_exeext conftest.$ac_ext 16480LIBS=$ac_check_lib_save_LIBS 16481fi 16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 16483$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 16484if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 16485 rra_krb5_pthread="-lpthread" 16486fi 16487 16488fi 16489 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 16491$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 16492if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 16493 $as_echo_n "(cached) " >&6 16494else 16495 ac_check_lib_save_LIBS=$LIBS 16496LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" 16497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16498/* end confdefs.h. */ 16499 16500/* Override any GCC internal prototype to avoid an error. 16501 Use char because int might match the return type of a GCC 16502 builtin and then its argument prototype would still apply. */ 16503#ifdef __cplusplus 16504extern "C" 16505#endif 16506char krb5int_setspecific (); 16507int 16508main () 16509{ 16510return krb5int_setspecific (); 16511 ; 16512 return 0; 16513} 16514_ACEOF 16515if ac_fn_c_try_link "$LINENO"; then : 16516 ac_cv_lib_krb5support_krb5int_setspecific=yes 16517else 16518 ac_cv_lib_krb5support_krb5int_setspecific=no 16519fi 16520rm -f core conftest.err conftest.$ac_objext \ 16521 conftest$ac_exeext conftest.$ac_ext 16522LIBS=$ac_check_lib_save_LIBS 16523fi 16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 16525$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 16526if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 16527 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" 16528fi 16529 16530fi 16531 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 16533$as_echo_n "checking for error_message in -lcom_err... " >&6; } 16534if ${ac_cv_lib_com_err_error_message+:} false; then : 16535 $as_echo_n "(cached) " >&6 16536else 16537 ac_check_lib_save_LIBS=$LIBS 16538LIBS="-lcom_err $rra_krb5_extra $LIBS" 16539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540/* end confdefs.h. */ 16541 16542/* Override any GCC internal prototype to avoid an error. 16543 Use char because int might match the return type of a GCC 16544 builtin and then its argument prototype would still apply. */ 16545#ifdef __cplusplus 16546extern "C" 16547#endif 16548char error_message (); 16549int 16550main () 16551{ 16552return error_message (); 16553 ; 16554 return 0; 16555} 16556_ACEOF 16557if ac_fn_c_try_link "$LINENO"; then : 16558 ac_cv_lib_com_err_error_message=yes 16559else 16560 ac_cv_lib_com_err_error_message=no 16561fi 16562rm -f core conftest.err conftest.$ac_objext \ 16563 conftest$ac_exeext conftest.$ac_ext 16564LIBS=$ac_check_lib_save_LIBS 16565fi 16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 16567$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 16568if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 16569 rra_krb5_extra="-lcom_err $rra_krb5_extra" 16570fi 16571 16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 16573$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } 16574if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : 16575 $as_echo_n "(cached) " >&6 16576else 16577 ac_check_lib_save_LIBS=$LIBS 16578LIBS="-lksvc $rra_krb5_extra $LIBS" 16579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581 16582/* Override any GCC internal prototype to avoid an error. 16583 Use char because int might match the return type of a GCC 16584 builtin and then its argument prototype would still apply. */ 16585#ifdef __cplusplus 16586extern "C" 16587#endif 16588char krb5_svc_get_msg (); 16589int 16590main () 16591{ 16592return krb5_svc_get_msg (); 16593 ; 16594 return 0; 16595} 16596_ACEOF 16597if ac_fn_c_try_link "$LINENO"; then : 16598 ac_cv_lib_ksvc_krb5_svc_get_msg=yes 16599else 16600 ac_cv_lib_ksvc_krb5_svc_get_msg=no 16601fi 16602rm -f core conftest.err conftest.$ac_objext \ 16603 conftest$ac_exeext conftest.$ac_ext 16604LIBS=$ac_check_lib_save_LIBS 16605fi 16606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 16607$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } 16608if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : 16609 rra_krb5_extra="-lksvc $rra_krb5_extra" 16610fi 16611 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 16613$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 16614if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 16615 $as_echo_n "(cached) " >&6 16616else 16617 ac_check_lib_save_LIBS=$LIBS 16618LIBS="-lk5crypto $rra_krb5_extra $LIBS" 16619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621 16622/* Override any GCC internal prototype to avoid an error. 16623 Use char because int might match the return type of a GCC 16624 builtin and then its argument prototype would still apply. */ 16625#ifdef __cplusplus 16626extern "C" 16627#endif 16628char krb5int_hash_md5 (); 16629int 16630main () 16631{ 16632return krb5int_hash_md5 (); 16633 ; 16634 return 0; 16635} 16636_ACEOF 16637if ac_fn_c_try_link "$LINENO"; then : 16638 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 16639else 16640 ac_cv_lib_k5crypto_krb5int_hash_md5=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext \ 16643 conftest$ac_exeext conftest.$ac_ext 16644LIBS=$ac_check_lib_save_LIBS 16645fi 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 16647$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 16648if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 16649 rra_krb5_extra="-lk5crypto $rra_krb5_extra" 16650fi 16651 16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 16653$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } 16654if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 ac_check_lib_save_LIBS=$LIBS 16658LIBS="-lk5profile $rra_krb5_extra $LIBS" 16659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16660/* end confdefs.h. */ 16661 16662/* Override any GCC internal prototype to avoid an error. 16663 Use char because int might match the return type of a GCC 16664 builtin and then its argument prototype would still apply. */ 16665#ifdef __cplusplus 16666extern "C" 16667#endif 16668char profile_get_values (); 16669int 16670main () 16671{ 16672return profile_get_values (); 16673 ; 16674 return 0; 16675} 16676_ACEOF 16677if ac_fn_c_try_link "$LINENO"; then : 16678 ac_cv_lib_k5profile_profile_get_values=yes 16679else 16680 ac_cv_lib_k5profile_profile_get_values=no 16681fi 16682rm -f core conftest.err conftest.$ac_objext \ 16683 conftest$ac_exeext conftest.$ac_ext 16684LIBS=$ac_check_lib_save_LIBS 16685fi 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 16687$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } 16688if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : 16689 rra_krb5_extra="-lk5profile $rra_krb5_extra" 16690fi 16691 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 16693$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } 16694if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 ac_check_lib_save_LIBS=$LIBS 16698LIBS="-lkrb5 $rra_krb5_extra $LIBS" 16699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16700/* end confdefs.h. */ 16701 16702/* Override any GCC internal prototype to avoid an error. 16703 Use char because int might match the return type of a GCC 16704 builtin and then its argument prototype would still apply. */ 16705#ifdef __cplusplus 16706extern "C" 16707#endif 16708char krb5_cc_default (); 16709int 16710main () 16711{ 16712return krb5_cc_default (); 16713 ; 16714 return 0; 16715} 16716_ACEOF 16717if ac_fn_c_try_link "$LINENO"; then : 16718 ac_cv_lib_krb5_krb5_cc_default=yes 16719else 16720 ac_cv_lib_krb5_krb5_cc_default=no 16721fi 16722rm -f core conftest.err conftest.$ac_objext \ 16723 conftest$ac_exeext conftest.$ac_ext 16724LIBS=$ac_check_lib_save_LIBS 16725fi 16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 16727$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } 16728if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : 16729 KRB5_LIBS="-lkrb5 $rra_krb5_extra" 16730else 16731 if test x"true" = xtrue; then : 16732 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 16733fi 16734fi 16735 16736fi 16737 16738 LIBS="$KRB5_LIBS $LIBS" 16739 if test x"$rra_krb5_incroot" = x; then : 16740 for ac_header in krb5.h krb5/krb5.h 16741do : 16742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16743ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16745 cat >>confdefs.h <<_ACEOF 16746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16747_ACEOF 16748 16749fi 16750 16751done 16752 16753else 16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 16755$as_echo_n "checking for krb5.h... " >&6; } 16756 if test -f "${rra_krb5_incroot}/krb5.h"; then : 16757 16758cat >>confdefs.h <<_ACEOF 16759#define HAVE_KRB5_H 1 16760_ACEOF 16761 16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16763$as_echo "yes" >&6; } 16764else 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16766$as_echo "no" >&6; } 16767fi 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 16769$as_echo_n "checking for krb5/krb5.h... " >&6; } 16770 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : 16771 16772cat >>confdefs.h <<_ACEOF 16773#define HAVE_KRB5_KRB5_H 1 16774_ACEOF 16775 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16777$as_echo "yes" >&6; } 16778else 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16780$as_echo "no" >&6; } 16781fi 16782fi 16783 for ac_func in krb5_get_error_message 16784do : 16785 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" 16786if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : 16787 cat >>confdefs.h <<_ACEOF 16788#define HAVE_KRB5_GET_ERROR_MESSAGE 1 16789_ACEOF 16790 for ac_func in krb5_free_error_message 16791do : 16792 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" 16793if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : 16794 cat >>confdefs.h <<_ACEOF 16795#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 16796_ACEOF 16797 16798fi 16799done 16800 16801else 16802 for ac_func in krb5_get_error_string 16803do : 16804 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" 16805if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : 16806 cat >>confdefs.h <<_ACEOF 16807#define HAVE_KRB5_GET_ERROR_STRING 1 16808_ACEOF 16809 16810else 16811 for ac_func in krb5_get_err_txt 16812do : 16813 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" 16814if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : 16815 cat >>confdefs.h <<_ACEOF 16816#define HAVE_KRB5_GET_ERR_TXT 1 16817_ACEOF 16818 16819else 16820 for ac_func in krb5_svc_get_msg 16821do : 16822 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" 16823if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : 16824 cat >>confdefs.h <<_ACEOF 16825#define HAVE_KRB5_SVC_GET_MSG 1 16826_ACEOF 16827 for ac_header in ibm_svc/krb5_svc.h 16828do : 16829 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " 16830#if HAVE_KRB5_H 16831# include <krb5.h> 16832#else 16833# include <krb5/krb5.h> 16834#endif 16835 16836" 16837if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : 16838 cat >>confdefs.h <<_ACEOF 16839#define HAVE_IBM_SVC_KRB5_SVC_H 1 16840_ACEOF 16841 16842fi 16843 16844done 16845 16846else 16847 for ac_header in et/com_err.h 16848do : 16849 ac_fn_c_check_header_mongrel "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default" 16850if test "x$ac_cv_header_et_com_err_h" = xyes; then : 16851 cat >>confdefs.h <<_ACEOF 16852#define HAVE_ET_COM_ERR_H 1 16853_ACEOF 16854 16855fi 16856 16857done 16858 16859fi 16860done 16861 16862fi 16863done 16864 16865fi 16866done 16867 16868fi 16869done 16870 16871 CPPFLAGS="$rra_krb5_save_CPPFLAGS" 16872 LDFLAGS="$rra_krb5_save_LDFLAGS" 16873 LIBS="$rra_krb5_save_LIBS" 16874fi 16875fi 16876 rra_krb5_uses_com_err=false 16877 case $KRB5_LIBS in #( 16878 *-lcom_err*) : 16879 rra_krb5_uses_com_err=true ;; #( 16880 *) : 16881 ;; 16882esac 16883 if test x"$rra_krb5_uses_com_err" = xtrue; then 16884 KRB5_USES_COM_ERR_TRUE= 16885 KRB5_USES_COM_ERR_FALSE='#' 16886else 16887 KRB5_USES_COM_ERR_TRUE='#' 16888 KRB5_USES_COM_ERR_FALSE= 16889fi 16890 16891 KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'` 16892 16893$as_echo "#define HAVE_KRB5 1" >>confdefs.h 16894 16895rra_krb5_save_CPPFLAGS="$CPPFLAGS" 16896 rra_krb5_save_LDFLAGS="$LDFLAGS" 16897 rra_krb5_save_LIBS="$LIBS" 16898 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" 16899 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" 16900 LIBS="$KRB5_LIBS $LIBS" 16901for ac_func in krb5_cc_get_full_name \ 16902 krb5_data_free \ 16903 krb5_free_string \ 16904 krb5_get_init_creds_opt_alloc \ 16905 krb5_get_init_creds_opt_set_default_flags \ 16906 krb5_get_init_creds_opt_set_fast_ccache_name \ 16907 krb5_principal_get_realm \ 16908 krb5_principal_set_realm \ 16909 krb5_unparse_name_flags \ 16910 krb5_xfree 16911do : 16912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16913ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16914if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16915 cat >>confdefs.h <<_ACEOF 16916#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16917_ACEOF 16918 16919fi 16920done 16921 16922for ac_func in krb5_get_init_creds_opt_free 16923do : 16924 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free" 16925if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then : 16926 cat >>confdefs.h <<_ACEOF 16927#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1 16928_ACEOF 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5 16930$as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; } 16931if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then : 16932 $as_echo_n "(cached) " >&6 16933else 16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16935/* end confdefs.h. */ 16936 16937#if HAVE_KRB5_H 16938# include <krb5.h> 16939#else 16940# include <krb5/krb5.h> 16941#endif 16942 16943int 16944main(void) 16945{ 16946 krb5_get_init_creds_opt *opts; 16947 krb5_context c; 16948 krb5_get_init_creds_opt_free(c, opts); 16949} 16950 16951_ACEOF 16952if ac_fn_c_try_compile "$LINENO"; then : 16953 rra_cv_func_krb5_get_init_creds_opt_free_args=yes 16954else 16955 rra_cv_func_krb5_get_init_creds_opt_free_args=no 16956fi 16957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16958fi 16959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5 16960$as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; } 16961 if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then : 16962 16963$as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h 16964 16965fi 16966fi 16967done 16968 16969ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" " 16970#if HAVE_KRB5_H 16971# include <krb5.h> 16972#else 16973# include <krb5/krb5.h> 16974#endif 16975 16976" 16977if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then : 16978 ac_have_decl=1 16979else 16980 ac_have_decl=0 16981fi 16982 16983cat >>confdefs.h <<_ACEOF 16984#define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl 16985_ACEOF 16986 16987ac_fn_c_check_member "$LINENO" "krb5_creds" "session" "ac_cv_member_krb5_creds_session" " 16988#if HAVE_KRB5_H 16989# include <krb5.h> 16990#else 16991# include <krb5/krb5.h> 16992#endif 16993 16994" 16995if test "x$ac_cv_member_krb5_creds_session" = xyes; then : 16996 16997$as_echo "#define HAVE_KRB5_HEIMDAL 1" >>confdefs.h 16998 16999else 17000 17001$as_echo "#define HAVE_KRB5_MIT 1" >>confdefs.h 17002 17003fi 17004 17005CPPFLAGS="$rra_krb5_save_CPPFLAGS" 17006 LDFLAGS="$rra_krb5_save_LDFLAGS" 17007 LIBS="$rra_krb5_save_LIBS" 17008rra_remctl_root= 17009 rra_remctl_libdir= 17010 rra_remctl_includedir= 17011 rra_use_remctl= 17012 REMCTL_CPPFLAGS= 17013 REMCTL_LDFLAGS= 17014 REMCTL_LIBS= 17015 17016 17017 17018 17019 17020# Check whether --with-remctl was given. 17021if test "${with_remctl+set}" = set; then : 17022 withval=$with_remctl; if test x"$withval" = xno; then : 17023 rra_use_remctl=false 17024else 17025 if test x"$withval" != xyes; then : 17026 rra_remctl_root="$withval" 17027fi 17028 rra_use_remctl=true 17029fi 17030fi 17031 17032 17033# Check whether --with-remctl-include was given. 17034if test "${with_remctl_include+set}" = set; then : 17035 withval=$with_remctl_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 17036 rra_remctl_includedir="$withval" 17037fi 17038fi 17039 17040 17041# Check whether --with-remctl-lib was given. 17042if test "${with_remctl_lib+set}" = set; then : 17043 withval=$with_remctl_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 17044 rra_remctl_libdir="$withval" 17045fi 17046fi 17047 17048 if test x"$rra_use_remctl" != xfalse; then : 17049 if test x"$rra_use_remctl" = xtrue; then : 17050 17051 if test x"$rra_remctl_libdir" != x; then : 17052 REMCTL_LDFLAGS="-L$rra_remctl_libdir" 17053else 17054 if test x"$rra_remctl_root" != x; then : 17055 17056 if test -d "$rra_remctl_root/$rra_lib_arch_name"; then : 17057 if test x"" = x; then : 17058 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}" 17059else 17060 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}/" 17061fi 17062else 17063 if test x"" = x; then : 17064 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib" 17065else 17066 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib/" 17067fi 17068fi 17069 REMCTL_LDFLAGS=`echo "$REMCTL_LDFLAGS" | sed -e 's/^ *//'` 17070fi 17071fi 17072 if test x"$rra_remctl_includedir" != x; then : 17073 REMCTL_CPPFLAGS="-I$rra_remctl_includedir" 17074else 17075 if test x"$rra_remctl_root" != x; then : 17076 if test x"$rra_remctl_root" != x/usr; then : 17077 REMCTL_CPPFLAGS="-I${rra_remctl_root}/include" 17078fi 17079fi 17080fi 17081 if test x"$rra_reduced_depends" = xtrue; then : 17082 REMCTL_LIBS="-lremctl" 17083else 17084 17085 rra_gssapi_root= 17086 rra_gssapi_libdir= 17087 rra_gssapi_includedir= 17088 GSSAPI_CPPFLAGS= 17089 GSSAPI_LDFLAGS= 17090 GSSAPI_LIBS= 17091 17092 17093 17094 17095 17096# Check whether --with-gssapi was given. 17097if test "${with_gssapi+set}" = set; then : 17098 withval=$with_gssapi; if test x"$withval" != xyes && test x"$withval" != xno; then : 17099 rra_gssapi_root="$withval" 17100fi 17101fi 17102 17103 17104# Check whether --with-gssapi-include was given. 17105if test "${with_gssapi_include+set}" = set; then : 17106 withval=$with_gssapi_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 17107 rra_gssapi_includedir="$withval" 17108fi 17109fi 17110 17111 17112# Check whether --with-gssapi-lib was given. 17113if test "${with_gssapi_lib+set}" = set; then : 17114 withval=$with_gssapi_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 17115 rra_gssapi_libdir="$withval" 17116fi 17117fi 17118 17119 17120 if test x"$rra_reduced_depends" = xtrue; then : 17121 if test x"$rra_gssapi_libdir" != x; then : 17122 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 17123else 17124 if test x"$rra_gssapi_root" != x; then : 17125 17126 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 17127 if test x"" = x; then : 17128 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 17129else 17130 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 17131fi 17132else 17133 if test x"" = x; then : 17134 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 17135else 17136 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 17137fi 17138fi 17139 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 17140fi 17141fi 17142 if test x"$rra_gssapi_includedir" != x; then : 17143 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 17144else 17145 if test x"$rra_gssapi_root" != x; then : 17146 if test x"$rra_gssapi_root" != x/usr; then : 17147 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 17148fi 17149fi 17150fi 17151 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 17152 rra_gssapi_save_LDFLAGS="$LDFLAGS" 17153 rra_gssapi_save_LIBS="$LIBS" 17154 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 17155 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 17156 LIBS="$GSSAPI_LIBS $LIBS" 17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 17158$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 17159if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 17160 $as_echo_n "(cached) " >&6 17161else 17162 ac_check_lib_save_LIBS=$LIBS 17163LIBS="-lgssapi_krb5 $LIBS" 17164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17165/* end confdefs.h. */ 17166 17167/* Override any GCC internal prototype to avoid an error. 17168 Use char because int might match the return type of a GCC 17169 builtin and then its argument prototype would still apply. */ 17170#ifdef __cplusplus 17171extern "C" 17172#endif 17173char gss_import_name (); 17174int 17175main () 17176{ 17177return gss_import_name (); 17178 ; 17179 return 0; 17180} 17181_ACEOF 17182if ac_fn_c_try_link "$LINENO"; then : 17183 ac_cv_lib_gssapi_krb5_gss_import_name=yes 17184else 17185 ac_cv_lib_gssapi_krb5_gss_import_name=no 17186fi 17187rm -f core conftest.err conftest.$ac_objext \ 17188 conftest$ac_exeext conftest.$ac_ext 17189LIBS=$ac_check_lib_save_LIBS 17190fi 17191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 17192$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 17193if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 17194 GSSAPI_LIBS="-lgssapi_krb5" 17195else 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 17197$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 17198if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 17199 $as_echo_n "(cached) " >&6 17200else 17201 ac_check_lib_save_LIBS=$LIBS 17202LIBS="-lgssapi $LIBS" 17203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17204/* end confdefs.h. */ 17205 17206/* Override any GCC internal prototype to avoid an error. 17207 Use char because int might match the return type of a GCC 17208 builtin and then its argument prototype would still apply. */ 17209#ifdef __cplusplus 17210extern "C" 17211#endif 17212char gss_import_name (); 17213int 17214main () 17215{ 17216return gss_import_name (); 17217 ; 17218 return 0; 17219} 17220_ACEOF 17221if ac_fn_c_try_link "$LINENO"; then : 17222 ac_cv_lib_gssapi_gss_import_name=yes 17223else 17224 ac_cv_lib_gssapi_gss_import_name=no 17225fi 17226rm -f core conftest.err conftest.$ac_objext \ 17227 conftest$ac_exeext conftest.$ac_ext 17228LIBS=$ac_check_lib_save_LIBS 17229fi 17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 17231$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 17232if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 17233 GSSAPI_LIBS="-lgssapi" 17234else 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 17236$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 17237if ${ac_cv_lib_gss_gss_import_name+:} false; then : 17238 $as_echo_n "(cached) " >&6 17239else 17240 ac_check_lib_save_LIBS=$LIBS 17241LIBS="-lgss $LIBS" 17242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17243/* end confdefs.h. */ 17244 17245/* Override any GCC internal prototype to avoid an error. 17246 Use char because int might match the return type of a GCC 17247 builtin and then its argument prototype would still apply. */ 17248#ifdef __cplusplus 17249extern "C" 17250#endif 17251char gss_import_name (); 17252int 17253main () 17254{ 17255return gss_import_name (); 17256 ; 17257 return 0; 17258} 17259_ACEOF 17260if ac_fn_c_try_link "$LINENO"; then : 17261 ac_cv_lib_gss_gss_import_name=yes 17262else 17263 ac_cv_lib_gss_gss_import_name=no 17264fi 17265rm -f core conftest.err conftest.$ac_objext \ 17266 conftest$ac_exeext conftest.$ac_ext 17267LIBS=$ac_check_lib_save_LIBS 17268fi 17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 17270$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 17271if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 17272 GSSAPI_LIBS="-lgss" 17273else 17274 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 17275fi 17276 17277fi 17278 17279fi 17280 17281 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 17282 LDFLAGS="$rra_gssapi_save_LDFLAGS" 17283 LIBS="$rra_gssapi_save_LIBS" 17284else 17285 if test x"$rra_gssapi_includedir" = x \ 17286 && test x"$rra_gssapi_libdir" = x; then : 17287 17288 rra_krb5_config_GSSAPI= 17289 rra_krb5_config_GSSAPI_ok= 17290 if test x"${rra_gssapi_root}" != x && test -x "${rra_gssapi_root}/bin/krb5-config"; then : 17291 rra_krb5_config_GSSAPI="${rra_gssapi_root}/bin/krb5-config" 17292else 17293 rra_krb5_config_GSSAPI="$PATH_KRB5_CONFIG" 17294fi 17295 if test x"$rra_krb5_config_GSSAPI" != x && test -x "$rra_krb5_config_GSSAPI"; then : 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support in krb5-config" >&5 17297$as_echo_n "checking for gssapi support in krb5-config... " >&6; } 17298if ${rra_cv_lib_GSSAPI_config+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 if "$rra_krb5_config_GSSAPI" 2>&1 | grep gssapi >/dev/null 2>&1; then : 17302 rra_cv_lib_GSSAPI_config=yes 17303else 17304 rra_cv_lib_GSSAPI_config=no 17305fi 17306fi 17307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_GSSAPI_config" >&5 17308$as_echo "$rra_cv_lib_GSSAPI_config" >&6; } 17309 if test "$rra_cv_lib_GSSAPI_config" = yes; then : 17310 GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags gssapi 2>/dev/null` 17311 17312 17313 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5 17315$as_echo_n "checking for --deps support in krb5-config... " >&6; } 17316if ${rra_cv_krb5_config_deps+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 if "$rra_krb5_config_GSSAPI" 2>&1 | grep deps >/dev/null 2>&1; then : 17320 rra_cv_krb5_config_deps=yes 17321else 17322 rra_cv_krb5_config_deps=no 17323fi 17324fi 17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5 17326$as_echo "$rra_cv_krb5_config_deps" >&6; } 17327 if test x"$rra_reduced_depends" = xfalse \ 17328 && test x"$rra_cv_krb5_config_deps" = xyes; then : 17329 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --deps --libs gssapi 2>/dev/null` 17330else 17331 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` 17332fi 17333 rra_krb5_config_GSSAPI_ok=yes 17334else 17335 if test x"gssapi" = xkrb5; then : 17336 GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags 2>/dev/null` 17337 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` 17338 rra_krb5_config_GSSAPI_ok=yes 17339fi 17340fi 17341fi 17342 if test x"$rra_krb5_config_GSSAPI_ok" = xyes; then : 17343 GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include %%'` 17344 GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include$%%'` 17345 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 17346 rra_gssapi_save_LDFLAGS="$LDFLAGS" 17347 rra_gssapi_save_LIBS="$LIBS" 17348 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 17349 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 17350 LIBS="$GSSAPI_LIBS $LIBS" 17351 ac_fn_c_check_func "$LINENO" "gss_import_name" "ac_cv_func_gss_import_name" 17352if test "x$ac_cv_func_gss_import_name" = xyes; then : 17353 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 17354 LDFLAGS="$rra_gssapi_save_LDFLAGS" 17355 LIBS="$rra_gssapi_save_LIBS" 17356else 17357 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 17358 LDFLAGS="$rra_gssapi_save_LDFLAGS" 17359 LIBS="$rra_gssapi_save_LIBS" 17360 GSSAPI_CPPFLAGS= 17361 GSSAPI_LIBS= 17362 if test x"$rra_gssapi_libdir" != x; then : 17363 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 17364else 17365 if test x"$rra_gssapi_root" != x; then : 17366 17367 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 17368 if test x"" = x; then : 17369 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 17370else 17371 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 17372fi 17373else 17374 if test x"" = x; then : 17375 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 17376else 17377 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 17378fi 17379fi 17380 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 17381fi 17382fi 17383 if test x"$rra_gssapi_includedir" != x; then : 17384 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 17385else 17386 if test x"$rra_gssapi_root" != x; then : 17387 if test x"$rra_gssapi_root" != x/usr; then : 17388 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 17389fi 17390fi 17391fi 17392 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 17393 rra_gssapi_save_LDFLAGS="$LDFLAGS" 17394 rra_gssapi_save_LIBS="$LIBS" 17395 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 17396 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 17397 LIBS="$GSSAPI_LIBS $LIBS" 17398 rra_gssapi_extra= 17399 LIBS= 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 17401$as_echo_n "checking for library containing res_search... " >&6; } 17402if ${ac_cv_search_res_search+:} false; then : 17403 $as_echo_n "(cached) " >&6 17404else 17405 ac_func_search_save_LIBS=$LIBS 17406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17407/* end confdefs.h. */ 17408 17409/* Override any GCC internal prototype to avoid an error. 17410 Use char because int might match the return type of a GCC 17411 builtin and then its argument prototype would still apply. */ 17412#ifdef __cplusplus 17413extern "C" 17414#endif 17415char res_search (); 17416int 17417main () 17418{ 17419return res_search (); 17420 ; 17421 return 0; 17422} 17423_ACEOF 17424for ac_lib in '' resolv; do 17425 if test -z "$ac_lib"; then 17426 ac_res="none required" 17427 else 17428 ac_res=-l$ac_lib 17429 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17430 fi 17431 if ac_fn_c_try_link "$LINENO"; then : 17432 ac_cv_search_res_search=$ac_res 17433fi 17434rm -f core conftest.err conftest.$ac_objext \ 17435 conftest$ac_exeext 17436 if ${ac_cv_search_res_search+:} false; then : 17437 break 17438fi 17439done 17440if ${ac_cv_search_res_search+:} false; then : 17441 17442else 17443 ac_cv_search_res_search=no 17444fi 17445rm conftest.$ac_ext 17446LIBS=$ac_func_search_save_LIBS 17447fi 17448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 17449$as_echo "$ac_cv_search_res_search" >&6; } 17450ac_res=$ac_cv_search_res_search 17451if test "$ac_res" != no; then : 17452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17453 17454else 17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 17456$as_echo_n "checking for library containing __res_search... " >&6; } 17457if ${ac_cv_search___res_search+:} false; then : 17458 $as_echo_n "(cached) " >&6 17459else 17460 ac_func_search_save_LIBS=$LIBS 17461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463 17464/* Override any GCC internal prototype to avoid an error. 17465 Use char because int might match the return type of a GCC 17466 builtin and then its argument prototype would still apply. */ 17467#ifdef __cplusplus 17468extern "C" 17469#endif 17470char __res_search (); 17471int 17472main () 17473{ 17474return __res_search (); 17475 ; 17476 return 0; 17477} 17478_ACEOF 17479for ac_lib in '' resolv; do 17480 if test -z "$ac_lib"; then 17481 ac_res="none required" 17482 else 17483 ac_res=-l$ac_lib 17484 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17485 fi 17486 if ac_fn_c_try_link "$LINENO"; then : 17487 ac_cv_search___res_search=$ac_res 17488fi 17489rm -f core conftest.err conftest.$ac_objext \ 17490 conftest$ac_exeext 17491 if ${ac_cv_search___res_search+:} false; then : 17492 break 17493fi 17494done 17495if ${ac_cv_search___res_search+:} false; then : 17496 17497else 17498 ac_cv_search___res_search=no 17499fi 17500rm conftest.$ac_ext 17501LIBS=$ac_func_search_save_LIBS 17502fi 17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 17504$as_echo "$ac_cv_search___res_search" >&6; } 17505ac_res=$ac_cv_search___res_search 17506if test "$ac_res" != no; then : 17507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17508 17509fi 17510 17511fi 17512 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 17514$as_echo_n "checking for library containing gethostbyname... " >&6; } 17515if ${ac_cv_search_gethostbyname+:} false; then : 17516 $as_echo_n "(cached) " >&6 17517else 17518 ac_func_search_save_LIBS=$LIBS 17519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521 17522/* Override any GCC internal prototype to avoid an error. 17523 Use char because int might match the return type of a GCC 17524 builtin and then its argument prototype would still apply. */ 17525#ifdef __cplusplus 17526extern "C" 17527#endif 17528char gethostbyname (); 17529int 17530main () 17531{ 17532return gethostbyname (); 17533 ; 17534 return 0; 17535} 17536_ACEOF 17537for ac_lib in '' nsl; do 17538 if test -z "$ac_lib"; then 17539 ac_res="none required" 17540 else 17541 ac_res=-l$ac_lib 17542 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17543 fi 17544 if ac_fn_c_try_link "$LINENO"; then : 17545 ac_cv_search_gethostbyname=$ac_res 17546fi 17547rm -f core conftest.err conftest.$ac_objext \ 17548 conftest$ac_exeext 17549 if ${ac_cv_search_gethostbyname+:} false; then : 17550 break 17551fi 17552done 17553if ${ac_cv_search_gethostbyname+:} false; then : 17554 17555else 17556 ac_cv_search_gethostbyname=no 17557fi 17558rm conftest.$ac_ext 17559LIBS=$ac_func_search_save_LIBS 17560fi 17561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 17562$as_echo "$ac_cv_search_gethostbyname" >&6; } 17563ac_res=$ac_cv_search_gethostbyname 17564if test "$ac_res" != no; then : 17565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17566 17567fi 17568 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 17570$as_echo_n "checking for library containing socket... " >&6; } 17571if ${ac_cv_search_socket+:} false; then : 17572 $as_echo_n "(cached) " >&6 17573else 17574 ac_func_search_save_LIBS=$LIBS 17575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17576/* end confdefs.h. */ 17577 17578/* Override any GCC internal prototype to avoid an error. 17579 Use char because int might match the return type of a GCC 17580 builtin and then its argument prototype would still apply. */ 17581#ifdef __cplusplus 17582extern "C" 17583#endif 17584char socket (); 17585int 17586main () 17587{ 17588return socket (); 17589 ; 17590 return 0; 17591} 17592_ACEOF 17593for ac_lib in '' socket; do 17594 if test -z "$ac_lib"; then 17595 ac_res="none required" 17596 else 17597 ac_res=-l$ac_lib 17598 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17599 fi 17600 if ac_fn_c_try_link "$LINENO"; then : 17601 ac_cv_search_socket=$ac_res 17602fi 17603rm -f core conftest.err conftest.$ac_objext \ 17604 conftest$ac_exeext 17605 if ${ac_cv_search_socket+:} false; then : 17606 break 17607fi 17608done 17609if ${ac_cv_search_socket+:} false; then : 17610 17611else 17612 ac_cv_search_socket=no 17613fi 17614rm conftest.$ac_ext 17615LIBS=$ac_func_search_save_LIBS 17616fi 17617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 17618$as_echo "$ac_cv_search_socket" >&6; } 17619ac_res=$ac_cv_search_socket 17620if test "$ac_res" != no; then : 17621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17622 17623else 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 17625$as_echo_n "checking for socket in -lnsl... " >&6; } 17626if ${ac_cv_lib_nsl_socket+:} false; then : 17627 $as_echo_n "(cached) " >&6 17628else 17629 ac_check_lib_save_LIBS=$LIBS 17630LIBS="-lnsl -lsocket $LIBS" 17631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17632/* end confdefs.h. */ 17633 17634/* Override any GCC internal prototype to avoid an error. 17635 Use char because int might match the return type of a GCC 17636 builtin and then its argument prototype would still apply. */ 17637#ifdef __cplusplus 17638extern "C" 17639#endif 17640char socket (); 17641int 17642main () 17643{ 17644return socket (); 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649if ac_fn_c_try_link "$LINENO"; then : 17650 ac_cv_lib_nsl_socket=yes 17651else 17652 ac_cv_lib_nsl_socket=no 17653fi 17654rm -f core conftest.err conftest.$ac_objext \ 17655 conftest$ac_exeext conftest.$ac_ext 17656LIBS=$ac_check_lib_save_LIBS 17657fi 17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 17659$as_echo "$ac_cv_lib_nsl_socket" >&6; } 17660if test "x$ac_cv_lib_nsl_socket" = xyes; then : 17661 LIBS="-lnsl -lsocket $LIBS" 17662fi 17663 17664fi 17665 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 17667$as_echo_n "checking for library containing crypt... " >&6; } 17668if ${ac_cv_search_crypt+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 ac_func_search_save_LIBS=$LIBS 17672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17673/* end confdefs.h. */ 17674 17675/* Override any GCC internal prototype to avoid an error. 17676 Use char because int might match the return type of a GCC 17677 builtin and then its argument prototype would still apply. */ 17678#ifdef __cplusplus 17679extern "C" 17680#endif 17681char crypt (); 17682int 17683main () 17684{ 17685return crypt (); 17686 ; 17687 return 0; 17688} 17689_ACEOF 17690for ac_lib in '' crypt; do 17691 if test -z "$ac_lib"; then 17692 ac_res="none required" 17693 else 17694 ac_res=-l$ac_lib 17695 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17696 fi 17697 if ac_fn_c_try_link "$LINENO"; then : 17698 ac_cv_search_crypt=$ac_res 17699fi 17700rm -f core conftest.err conftest.$ac_objext \ 17701 conftest$ac_exeext 17702 if ${ac_cv_search_crypt+:} false; then : 17703 break 17704fi 17705done 17706if ${ac_cv_search_crypt+:} false; then : 17707 17708else 17709 ac_cv_search_crypt=no 17710fi 17711rm conftest.$ac_ext 17712LIBS=$ac_func_search_save_LIBS 17713fi 17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 17715$as_echo "$ac_cv_search_crypt" >&6; } 17716ac_res=$ac_cv_search_crypt 17717if test "$ac_res" != no; then : 17718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17719 17720fi 17721 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 17723$as_echo_n "checking for library containing roken_concat... " >&6; } 17724if ${ac_cv_search_roken_concat+:} false; then : 17725 $as_echo_n "(cached) " >&6 17726else 17727 ac_func_search_save_LIBS=$LIBS 17728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730 17731/* Override any GCC internal prototype to avoid an error. 17732 Use char because int might match the return type of a GCC 17733 builtin and then its argument prototype would still apply. */ 17734#ifdef __cplusplus 17735extern "C" 17736#endif 17737char roken_concat (); 17738int 17739main () 17740{ 17741return roken_concat (); 17742 ; 17743 return 0; 17744} 17745_ACEOF 17746for ac_lib in '' roken; do 17747 if test -z "$ac_lib"; then 17748 ac_res="none required" 17749 else 17750 ac_res=-l$ac_lib 17751 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17752 fi 17753 if ac_fn_c_try_link "$LINENO"; then : 17754 ac_cv_search_roken_concat=$ac_res 17755fi 17756rm -f core conftest.err conftest.$ac_objext \ 17757 conftest$ac_exeext 17758 if ${ac_cv_search_roken_concat+:} false; then : 17759 break 17760fi 17761done 17762if ${ac_cv_search_roken_concat+:} false; then : 17763 17764else 17765 ac_cv_search_roken_concat=no 17766fi 17767rm conftest.$ac_ext 17768LIBS=$ac_func_search_save_LIBS 17769fi 17770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 17771$as_echo "$ac_cv_search_roken_concat" >&6; } 17772ac_res=$ac_cv_search_roken_concat 17773if test "$ac_res" != no; then : 17774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17775 17776fi 17777 17778 rra_gssapi_extra="$LIBS" 17779 LIBS="$rra_gssapi_save_LIBS" 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 17781$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 17782if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 17783 $as_echo_n "(cached) " >&6 17784else 17785 ac_check_lib_save_LIBS=$LIBS 17786LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 17787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17788/* end confdefs.h. */ 17789 17790/* Override any GCC internal prototype to avoid an error. 17791 Use char because int might match the return type of a GCC 17792 builtin and then its argument prototype would still apply. */ 17793#ifdef __cplusplus 17794extern "C" 17795#endif 17796char gss_import_name (); 17797int 17798main () 17799{ 17800return gss_import_name (); 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805if ac_fn_c_try_link "$LINENO"; then : 17806 ac_cv_lib_gssapi_gss_import_name=yes 17807else 17808 ac_cv_lib_gssapi_gss_import_name=no 17809fi 17810rm -f core conftest.err conftest.$ac_objext \ 17811 conftest$ac_exeext conftest.$ac_ext 17812LIBS=$ac_check_lib_save_LIBS 17813fi 17814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 17815$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 17816if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 17817 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 17818else 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 17820$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 17821if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 17822 $as_echo_n "(cached) " >&6 17823else 17824 ac_check_lib_save_LIBS=$LIBS 17825LIBS="-lkrb5support $LIBS" 17826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17827/* end confdefs.h. */ 17828 17829/* Override any GCC internal prototype to avoid an error. 17830 Use char because int might match the return type of a GCC 17831 builtin and then its argument prototype would still apply. */ 17832#ifdef __cplusplus 17833extern "C" 17834#endif 17835char krb5int_getspecific (); 17836int 17837main () 17838{ 17839return krb5int_getspecific (); 17840 ; 17841 return 0; 17842} 17843_ACEOF 17844if ac_fn_c_try_link "$LINENO"; then : 17845 ac_cv_lib_krb5support_krb5int_getspecific=yes 17846else 17847 ac_cv_lib_krb5support_krb5int_getspecific=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext \ 17850 conftest$ac_exeext conftest.$ac_ext 17851LIBS=$ac_check_lib_save_LIBS 17852fi 17853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 17854$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 17855if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 17856 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 17857else 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 17859$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 17860if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 17861 $as_echo_n "(cached) " >&6 17862else 17863 ac_check_lib_save_LIBS=$LIBS 17864LIBS="-lpthreads $LIBS" 17865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17866/* end confdefs.h. */ 17867 17868/* Override any GCC internal prototype to avoid an error. 17869 Use char because int might match the return type of a GCC 17870 builtin and then its argument prototype would still apply. */ 17871#ifdef __cplusplus 17872extern "C" 17873#endif 17874char pthread_setspecific (); 17875int 17876main () 17877{ 17878return pthread_setspecific (); 17879 ; 17880 return 0; 17881} 17882_ACEOF 17883if ac_fn_c_try_link "$LINENO"; then : 17884 ac_cv_lib_pthreads_pthread_setspecific=yes 17885else 17886 ac_cv_lib_pthreads_pthread_setspecific=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext \ 17889 conftest$ac_exeext conftest.$ac_ext 17890LIBS=$ac_check_lib_save_LIBS 17891fi 17892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 17893$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 17894if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 17895 rra_gssapi_pthread="-lpthreads" 17896else 17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 17898$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 17899if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 ac_check_lib_save_LIBS=$LIBS 17903LIBS="-lpthread $LIBS" 17904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17905/* end confdefs.h. */ 17906 17907/* Override any GCC internal prototype to avoid an error. 17908 Use char because int might match the return type of a GCC 17909 builtin and then its argument prototype would still apply. */ 17910#ifdef __cplusplus 17911extern "C" 17912#endif 17913char pthread_setspecific (); 17914int 17915main () 17916{ 17917return pthread_setspecific (); 17918 ; 17919 return 0; 17920} 17921_ACEOF 17922if ac_fn_c_try_link "$LINENO"; then : 17923 ac_cv_lib_pthread_pthread_setspecific=yes 17924else 17925 ac_cv_lib_pthread_pthread_setspecific=no 17926fi 17927rm -f core conftest.err conftest.$ac_objext \ 17928 conftest$ac_exeext conftest.$ac_ext 17929LIBS=$ac_check_lib_save_LIBS 17930fi 17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 17932$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 17933if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 17934 rra_gssapi_pthread="-lpthread" 17935fi 17936 17937fi 17938 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 17940$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 17941if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 17942 $as_echo_n "(cached) " >&6 17943else 17944 ac_check_lib_save_LIBS=$LIBS 17945LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 17946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17947/* end confdefs.h. */ 17948 17949/* Override any GCC internal prototype to avoid an error. 17950 Use char because int might match the return type of a GCC 17951 builtin and then its argument prototype would still apply. */ 17952#ifdef __cplusplus 17953extern "C" 17954#endif 17955char krb5int_setspecific (); 17956int 17957main () 17958{ 17959return krb5int_setspecific (); 17960 ; 17961 return 0; 17962} 17963_ACEOF 17964if ac_fn_c_try_link "$LINENO"; then : 17965 ac_cv_lib_krb5support_krb5int_setspecific=yes 17966else 17967 ac_cv_lib_krb5support_krb5int_setspecific=no 17968fi 17969rm -f core conftest.err conftest.$ac_objext \ 17970 conftest$ac_exeext conftest.$ac_ext 17971LIBS=$ac_check_lib_save_LIBS 17972fi 17973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 17974$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 17975if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 17976 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 17977 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 17978fi 17979 17980fi 17981 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 17983$as_echo_n "checking for error_message in -lcom_err... " >&6; } 17984if ${ac_cv_lib_com_err_error_message+:} false; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 ac_check_lib_save_LIBS=$LIBS 17988LIBS="-lcom_err $LIBS" 17989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17990/* end confdefs.h. */ 17991 17992/* Override any GCC internal prototype to avoid an error. 17993 Use char because int might match the return type of a GCC 17994 builtin and then its argument prototype would still apply. */ 17995#ifdef __cplusplus 17996extern "C" 17997#endif 17998char error_message (); 17999int 18000main () 18001{ 18002return error_message (); 18003 ; 18004 return 0; 18005} 18006_ACEOF 18007if ac_fn_c_try_link "$LINENO"; then : 18008 ac_cv_lib_com_err_error_message=yes 18009else 18010 ac_cv_lib_com_err_error_message=no 18011fi 18012rm -f core conftest.err conftest.$ac_objext \ 18013 conftest$ac_exeext conftest.$ac_ext 18014LIBS=$ac_check_lib_save_LIBS 18015fi 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 18017$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 18018if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 18019 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 18020fi 18021 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 18023$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 18024if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 18025 $as_echo_n "(cached) " >&6 18026else 18027 ac_check_lib_save_LIBS=$LIBS 18028LIBS="-lk5crypto $LIBS" 18029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18030/* end confdefs.h. */ 18031 18032/* Override any GCC internal prototype to avoid an error. 18033 Use char because int might match the return type of a GCC 18034 builtin and then its argument prototype would still apply. */ 18035#ifdef __cplusplus 18036extern "C" 18037#endif 18038char krb5int_hash_md5 (); 18039int 18040main () 18041{ 18042return krb5int_hash_md5 (); 18043 ; 18044 return 0; 18045} 18046_ACEOF 18047if ac_fn_c_try_link "$LINENO"; then : 18048 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 18049else 18050 ac_cv_lib_k5crypto_krb5int_hash_md5=no 18051fi 18052rm -f core conftest.err conftest.$ac_objext \ 18053 conftest$ac_exeext conftest.$ac_ext 18054LIBS=$ac_check_lib_save_LIBS 18055fi 18056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 18057$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 18058if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 18059 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 18060fi 18061 18062 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 18064$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 18065if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067else 18068 ac_check_lib_save_LIBS=$LIBS 18069LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 18070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18071/* end confdefs.h. */ 18072 18073/* Override any GCC internal prototype to avoid an error. 18074 Use char because int might match the return type of a GCC 18075 builtin and then its argument prototype would still apply. */ 18076#ifdef __cplusplus 18077extern "C" 18078#endif 18079char gss_import_name (); 18080int 18081main () 18082{ 18083return gss_import_name (); 18084 ; 18085 return 0; 18086} 18087_ACEOF 18088if ac_fn_c_try_link "$LINENO"; then : 18089 ac_cv_lib_gssapi_krb5_gss_import_name=yes 18090else 18091 ac_cv_lib_gssapi_krb5_gss_import_name=no 18092fi 18093rm -f core conftest.err conftest.$ac_objext \ 18094 conftest$ac_exeext conftest.$ac_ext 18095LIBS=$ac_check_lib_save_LIBS 18096fi 18097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 18098$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 18099if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 18100 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 18101else 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 18103$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 18104if ${ac_cv_lib_gss_gss_import_name+:} false; then : 18105 $as_echo_n "(cached) " >&6 18106else 18107 ac_check_lib_save_LIBS=$LIBS 18108LIBS="-lgss $LIBS" 18109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111 18112/* Override any GCC internal prototype to avoid an error. 18113 Use char because int might match the return type of a GCC 18114 builtin and then its argument prototype would still apply. */ 18115#ifdef __cplusplus 18116extern "C" 18117#endif 18118char gss_import_name (); 18119int 18120main () 18121{ 18122return gss_import_name (); 18123 ; 18124 return 0; 18125} 18126_ACEOF 18127if ac_fn_c_try_link "$LINENO"; then : 18128 ac_cv_lib_gss_gss_import_name=yes 18129else 18130 ac_cv_lib_gss_gss_import_name=no 18131fi 18132rm -f core conftest.err conftest.$ac_objext \ 18133 conftest$ac_exeext conftest.$ac_ext 18134LIBS=$ac_check_lib_save_LIBS 18135fi 18136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 18137$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 18138if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 18139 GSSAPI_LIBS="-lgss" 18140else 18141 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 18142fi 18143 18144fi 18145 18146fi 18147 18148 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 18149 LDFLAGS="$rra_gssapi_save_LDFLAGS" 18150 LIBS="$rra_gssapi_save_LIBS" 18151fi 18152 18153else 18154 if test x"$rra_gssapi_libdir" != x; then : 18155 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 18156else 18157 if test x"$rra_gssapi_root" != x; then : 18158 18159 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 18160 if test x"" = x; then : 18161 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 18162else 18163 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 18164fi 18165else 18166 if test x"" = x; then : 18167 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 18168else 18169 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 18170fi 18171fi 18172 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 18173fi 18174fi 18175 if test x"$rra_gssapi_includedir" != x; then : 18176 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 18177else 18178 if test x"$rra_gssapi_root" != x; then : 18179 if test x"$rra_gssapi_root" != x/usr; then : 18180 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 18181fi 18182fi 18183fi 18184 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 18185 rra_gssapi_save_LDFLAGS="$LDFLAGS" 18186 rra_gssapi_save_LIBS="$LIBS" 18187 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 18188 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 18189 LIBS="$GSSAPI_LIBS $LIBS" 18190 rra_gssapi_extra= 18191 LIBS= 18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 18193$as_echo_n "checking for library containing res_search... " >&6; } 18194if ${ac_cv_search_res_search+:} false; then : 18195 $as_echo_n "(cached) " >&6 18196else 18197 ac_func_search_save_LIBS=$LIBS 18198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18199/* end confdefs.h. */ 18200 18201/* Override any GCC internal prototype to avoid an error. 18202 Use char because int might match the return type of a GCC 18203 builtin and then its argument prototype would still apply. */ 18204#ifdef __cplusplus 18205extern "C" 18206#endif 18207char res_search (); 18208int 18209main () 18210{ 18211return res_search (); 18212 ; 18213 return 0; 18214} 18215_ACEOF 18216for ac_lib in '' resolv; do 18217 if test -z "$ac_lib"; then 18218 ac_res="none required" 18219 else 18220 ac_res=-l$ac_lib 18221 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18222 fi 18223 if ac_fn_c_try_link "$LINENO"; then : 18224 ac_cv_search_res_search=$ac_res 18225fi 18226rm -f core conftest.err conftest.$ac_objext \ 18227 conftest$ac_exeext 18228 if ${ac_cv_search_res_search+:} false; then : 18229 break 18230fi 18231done 18232if ${ac_cv_search_res_search+:} false; then : 18233 18234else 18235 ac_cv_search_res_search=no 18236fi 18237rm conftest.$ac_ext 18238LIBS=$ac_func_search_save_LIBS 18239fi 18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 18241$as_echo "$ac_cv_search_res_search" >&6; } 18242ac_res=$ac_cv_search_res_search 18243if test "$ac_res" != no; then : 18244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18245 18246else 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 18248$as_echo_n "checking for library containing __res_search... " >&6; } 18249if ${ac_cv_search___res_search+:} false; then : 18250 $as_echo_n "(cached) " >&6 18251else 18252 ac_func_search_save_LIBS=$LIBS 18253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18254/* end confdefs.h. */ 18255 18256/* Override any GCC internal prototype to avoid an error. 18257 Use char because int might match the return type of a GCC 18258 builtin and then its argument prototype would still apply. */ 18259#ifdef __cplusplus 18260extern "C" 18261#endif 18262char __res_search (); 18263int 18264main () 18265{ 18266return __res_search (); 18267 ; 18268 return 0; 18269} 18270_ACEOF 18271for ac_lib in '' resolv; do 18272 if test -z "$ac_lib"; then 18273 ac_res="none required" 18274 else 18275 ac_res=-l$ac_lib 18276 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18277 fi 18278 if ac_fn_c_try_link "$LINENO"; then : 18279 ac_cv_search___res_search=$ac_res 18280fi 18281rm -f core conftest.err conftest.$ac_objext \ 18282 conftest$ac_exeext 18283 if ${ac_cv_search___res_search+:} false; then : 18284 break 18285fi 18286done 18287if ${ac_cv_search___res_search+:} false; then : 18288 18289else 18290 ac_cv_search___res_search=no 18291fi 18292rm conftest.$ac_ext 18293LIBS=$ac_func_search_save_LIBS 18294fi 18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 18296$as_echo "$ac_cv_search___res_search" >&6; } 18297ac_res=$ac_cv_search___res_search 18298if test "$ac_res" != no; then : 18299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18300 18301fi 18302 18303fi 18304 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 18306$as_echo_n "checking for library containing gethostbyname... " >&6; } 18307if ${ac_cv_search_gethostbyname+:} false; then : 18308 $as_echo_n "(cached) " >&6 18309else 18310 ac_func_search_save_LIBS=$LIBS 18311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313 18314/* Override any GCC internal prototype to avoid an error. 18315 Use char because int might match the return type of a GCC 18316 builtin and then its argument prototype would still apply. */ 18317#ifdef __cplusplus 18318extern "C" 18319#endif 18320char gethostbyname (); 18321int 18322main () 18323{ 18324return gethostbyname (); 18325 ; 18326 return 0; 18327} 18328_ACEOF 18329for ac_lib in '' nsl; do 18330 if test -z "$ac_lib"; then 18331 ac_res="none required" 18332 else 18333 ac_res=-l$ac_lib 18334 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18335 fi 18336 if ac_fn_c_try_link "$LINENO"; then : 18337 ac_cv_search_gethostbyname=$ac_res 18338fi 18339rm -f core conftest.err conftest.$ac_objext \ 18340 conftest$ac_exeext 18341 if ${ac_cv_search_gethostbyname+:} false; then : 18342 break 18343fi 18344done 18345if ${ac_cv_search_gethostbyname+:} false; then : 18346 18347else 18348 ac_cv_search_gethostbyname=no 18349fi 18350rm conftest.$ac_ext 18351LIBS=$ac_func_search_save_LIBS 18352fi 18353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 18354$as_echo "$ac_cv_search_gethostbyname" >&6; } 18355ac_res=$ac_cv_search_gethostbyname 18356if test "$ac_res" != no; then : 18357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18358 18359fi 18360 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18362$as_echo_n "checking for library containing socket... " >&6; } 18363if ${ac_cv_search_socket+:} false; then : 18364 $as_echo_n "(cached) " >&6 18365else 18366 ac_func_search_save_LIBS=$LIBS 18367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18368/* end confdefs.h. */ 18369 18370/* Override any GCC internal prototype to avoid an error. 18371 Use char because int might match the return type of a GCC 18372 builtin and then its argument prototype would still apply. */ 18373#ifdef __cplusplus 18374extern "C" 18375#endif 18376char socket (); 18377int 18378main () 18379{ 18380return socket (); 18381 ; 18382 return 0; 18383} 18384_ACEOF 18385for ac_lib in '' socket; do 18386 if test -z "$ac_lib"; then 18387 ac_res="none required" 18388 else 18389 ac_res=-l$ac_lib 18390 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18391 fi 18392 if ac_fn_c_try_link "$LINENO"; then : 18393 ac_cv_search_socket=$ac_res 18394fi 18395rm -f core conftest.err conftest.$ac_objext \ 18396 conftest$ac_exeext 18397 if ${ac_cv_search_socket+:} false; then : 18398 break 18399fi 18400done 18401if ${ac_cv_search_socket+:} false; then : 18402 18403else 18404 ac_cv_search_socket=no 18405fi 18406rm conftest.$ac_ext 18407LIBS=$ac_func_search_save_LIBS 18408fi 18409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18410$as_echo "$ac_cv_search_socket" >&6; } 18411ac_res=$ac_cv_search_socket 18412if test "$ac_res" != no; then : 18413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18414 18415else 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 18417$as_echo_n "checking for socket in -lnsl... " >&6; } 18418if ${ac_cv_lib_nsl_socket+:} false; then : 18419 $as_echo_n "(cached) " >&6 18420else 18421 ac_check_lib_save_LIBS=$LIBS 18422LIBS="-lnsl -lsocket $LIBS" 18423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18424/* end confdefs.h. */ 18425 18426/* Override any GCC internal prototype to avoid an error. 18427 Use char because int might match the return type of a GCC 18428 builtin and then its argument prototype would still apply. */ 18429#ifdef __cplusplus 18430extern "C" 18431#endif 18432char socket (); 18433int 18434main () 18435{ 18436return socket (); 18437 ; 18438 return 0; 18439} 18440_ACEOF 18441if ac_fn_c_try_link "$LINENO"; then : 18442 ac_cv_lib_nsl_socket=yes 18443else 18444 ac_cv_lib_nsl_socket=no 18445fi 18446rm -f core conftest.err conftest.$ac_objext \ 18447 conftest$ac_exeext conftest.$ac_ext 18448LIBS=$ac_check_lib_save_LIBS 18449fi 18450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 18451$as_echo "$ac_cv_lib_nsl_socket" >&6; } 18452if test "x$ac_cv_lib_nsl_socket" = xyes; then : 18453 LIBS="-lnsl -lsocket $LIBS" 18454fi 18455 18456fi 18457 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 18459$as_echo_n "checking for library containing crypt... " >&6; } 18460if ${ac_cv_search_crypt+:} false; then : 18461 $as_echo_n "(cached) " >&6 18462else 18463 ac_func_search_save_LIBS=$LIBS 18464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18465/* end confdefs.h. */ 18466 18467/* Override any GCC internal prototype to avoid an error. 18468 Use char because int might match the return type of a GCC 18469 builtin and then its argument prototype would still apply. */ 18470#ifdef __cplusplus 18471extern "C" 18472#endif 18473char crypt (); 18474int 18475main () 18476{ 18477return crypt (); 18478 ; 18479 return 0; 18480} 18481_ACEOF 18482for ac_lib in '' crypt; do 18483 if test -z "$ac_lib"; then 18484 ac_res="none required" 18485 else 18486 ac_res=-l$ac_lib 18487 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18488 fi 18489 if ac_fn_c_try_link "$LINENO"; then : 18490 ac_cv_search_crypt=$ac_res 18491fi 18492rm -f core conftest.err conftest.$ac_objext \ 18493 conftest$ac_exeext 18494 if ${ac_cv_search_crypt+:} false; then : 18495 break 18496fi 18497done 18498if ${ac_cv_search_crypt+:} false; then : 18499 18500else 18501 ac_cv_search_crypt=no 18502fi 18503rm conftest.$ac_ext 18504LIBS=$ac_func_search_save_LIBS 18505fi 18506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 18507$as_echo "$ac_cv_search_crypt" >&6; } 18508ac_res=$ac_cv_search_crypt 18509if test "$ac_res" != no; then : 18510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18511 18512fi 18513 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 18515$as_echo_n "checking for library containing roken_concat... " >&6; } 18516if ${ac_cv_search_roken_concat+:} false; then : 18517 $as_echo_n "(cached) " >&6 18518else 18519 ac_func_search_save_LIBS=$LIBS 18520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522 18523/* Override any GCC internal prototype to avoid an error. 18524 Use char because int might match the return type of a GCC 18525 builtin and then its argument prototype would still apply. */ 18526#ifdef __cplusplus 18527extern "C" 18528#endif 18529char roken_concat (); 18530int 18531main () 18532{ 18533return roken_concat (); 18534 ; 18535 return 0; 18536} 18537_ACEOF 18538for ac_lib in '' roken; do 18539 if test -z "$ac_lib"; then 18540 ac_res="none required" 18541 else 18542 ac_res=-l$ac_lib 18543 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18544 fi 18545 if ac_fn_c_try_link "$LINENO"; then : 18546 ac_cv_search_roken_concat=$ac_res 18547fi 18548rm -f core conftest.err conftest.$ac_objext \ 18549 conftest$ac_exeext 18550 if ${ac_cv_search_roken_concat+:} false; then : 18551 break 18552fi 18553done 18554if ${ac_cv_search_roken_concat+:} false; then : 18555 18556else 18557 ac_cv_search_roken_concat=no 18558fi 18559rm conftest.$ac_ext 18560LIBS=$ac_func_search_save_LIBS 18561fi 18562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 18563$as_echo "$ac_cv_search_roken_concat" >&6; } 18564ac_res=$ac_cv_search_roken_concat 18565if test "$ac_res" != no; then : 18566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18567 18568fi 18569 18570 rra_gssapi_extra="$LIBS" 18571 LIBS="$rra_gssapi_save_LIBS" 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 18573$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 18574if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 18575 $as_echo_n "(cached) " >&6 18576else 18577 ac_check_lib_save_LIBS=$LIBS 18578LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 18579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18580/* end confdefs.h. */ 18581 18582/* Override any GCC internal prototype to avoid an error. 18583 Use char because int might match the return type of a GCC 18584 builtin and then its argument prototype would still apply. */ 18585#ifdef __cplusplus 18586extern "C" 18587#endif 18588char gss_import_name (); 18589int 18590main () 18591{ 18592return gss_import_name (); 18593 ; 18594 return 0; 18595} 18596_ACEOF 18597if ac_fn_c_try_link "$LINENO"; then : 18598 ac_cv_lib_gssapi_gss_import_name=yes 18599else 18600 ac_cv_lib_gssapi_gss_import_name=no 18601fi 18602rm -f core conftest.err conftest.$ac_objext \ 18603 conftest$ac_exeext conftest.$ac_ext 18604LIBS=$ac_check_lib_save_LIBS 18605fi 18606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 18607$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 18608if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 18609 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 18610else 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 18612$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 18613if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 18614 $as_echo_n "(cached) " >&6 18615else 18616 ac_check_lib_save_LIBS=$LIBS 18617LIBS="-lkrb5support $LIBS" 18618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18619/* end confdefs.h. */ 18620 18621/* Override any GCC internal prototype to avoid an error. 18622 Use char because int might match the return type of a GCC 18623 builtin and then its argument prototype would still apply. */ 18624#ifdef __cplusplus 18625extern "C" 18626#endif 18627char krb5int_getspecific (); 18628int 18629main () 18630{ 18631return krb5int_getspecific (); 18632 ; 18633 return 0; 18634} 18635_ACEOF 18636if ac_fn_c_try_link "$LINENO"; then : 18637 ac_cv_lib_krb5support_krb5int_getspecific=yes 18638else 18639 ac_cv_lib_krb5support_krb5int_getspecific=no 18640fi 18641rm -f core conftest.err conftest.$ac_objext \ 18642 conftest$ac_exeext conftest.$ac_ext 18643LIBS=$ac_check_lib_save_LIBS 18644fi 18645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 18646$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 18647if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 18648 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 18649else 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 18651$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 18652if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 18653 $as_echo_n "(cached) " >&6 18654else 18655 ac_check_lib_save_LIBS=$LIBS 18656LIBS="-lpthreads $LIBS" 18657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658/* end confdefs.h. */ 18659 18660/* Override any GCC internal prototype to avoid an error. 18661 Use char because int might match the return type of a GCC 18662 builtin and then its argument prototype would still apply. */ 18663#ifdef __cplusplus 18664extern "C" 18665#endif 18666char pthread_setspecific (); 18667int 18668main () 18669{ 18670return pthread_setspecific (); 18671 ; 18672 return 0; 18673} 18674_ACEOF 18675if ac_fn_c_try_link "$LINENO"; then : 18676 ac_cv_lib_pthreads_pthread_setspecific=yes 18677else 18678 ac_cv_lib_pthreads_pthread_setspecific=no 18679fi 18680rm -f core conftest.err conftest.$ac_objext \ 18681 conftest$ac_exeext conftest.$ac_ext 18682LIBS=$ac_check_lib_save_LIBS 18683fi 18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 18685$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 18686if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 18687 rra_gssapi_pthread="-lpthreads" 18688else 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 18690$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 18691if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693else 18694 ac_check_lib_save_LIBS=$LIBS 18695LIBS="-lpthread $LIBS" 18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697/* end confdefs.h. */ 18698 18699/* Override any GCC internal prototype to avoid an error. 18700 Use char because int might match the return type of a GCC 18701 builtin and then its argument prototype would still apply. */ 18702#ifdef __cplusplus 18703extern "C" 18704#endif 18705char pthread_setspecific (); 18706int 18707main () 18708{ 18709return pthread_setspecific (); 18710 ; 18711 return 0; 18712} 18713_ACEOF 18714if ac_fn_c_try_link "$LINENO"; then : 18715 ac_cv_lib_pthread_pthread_setspecific=yes 18716else 18717 ac_cv_lib_pthread_pthread_setspecific=no 18718fi 18719rm -f core conftest.err conftest.$ac_objext \ 18720 conftest$ac_exeext conftest.$ac_ext 18721LIBS=$ac_check_lib_save_LIBS 18722fi 18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 18724$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 18725if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 18726 rra_gssapi_pthread="-lpthread" 18727fi 18728 18729fi 18730 18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 18732$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 18733if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 18734 $as_echo_n "(cached) " >&6 18735else 18736 ac_check_lib_save_LIBS=$LIBS 18737LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 18738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18739/* end confdefs.h. */ 18740 18741/* Override any GCC internal prototype to avoid an error. 18742 Use char because int might match the return type of a GCC 18743 builtin and then its argument prototype would still apply. */ 18744#ifdef __cplusplus 18745extern "C" 18746#endif 18747char krb5int_setspecific (); 18748int 18749main () 18750{ 18751return krb5int_setspecific (); 18752 ; 18753 return 0; 18754} 18755_ACEOF 18756if ac_fn_c_try_link "$LINENO"; then : 18757 ac_cv_lib_krb5support_krb5int_setspecific=yes 18758else 18759 ac_cv_lib_krb5support_krb5int_setspecific=no 18760fi 18761rm -f core conftest.err conftest.$ac_objext \ 18762 conftest$ac_exeext conftest.$ac_ext 18763LIBS=$ac_check_lib_save_LIBS 18764fi 18765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 18766$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 18767if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 18768 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 18769 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 18770fi 18771 18772fi 18773 18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 18775$as_echo_n "checking for error_message in -lcom_err... " >&6; } 18776if ${ac_cv_lib_com_err_error_message+:} false; then : 18777 $as_echo_n "(cached) " >&6 18778else 18779 ac_check_lib_save_LIBS=$LIBS 18780LIBS="-lcom_err $LIBS" 18781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18782/* end confdefs.h. */ 18783 18784/* Override any GCC internal prototype to avoid an error. 18785 Use char because int might match the return type of a GCC 18786 builtin and then its argument prototype would still apply. */ 18787#ifdef __cplusplus 18788extern "C" 18789#endif 18790char error_message (); 18791int 18792main () 18793{ 18794return error_message (); 18795 ; 18796 return 0; 18797} 18798_ACEOF 18799if ac_fn_c_try_link "$LINENO"; then : 18800 ac_cv_lib_com_err_error_message=yes 18801else 18802 ac_cv_lib_com_err_error_message=no 18803fi 18804rm -f core conftest.err conftest.$ac_objext \ 18805 conftest$ac_exeext conftest.$ac_ext 18806LIBS=$ac_check_lib_save_LIBS 18807fi 18808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 18809$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 18810if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 18811 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 18812fi 18813 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 18815$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 18816if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 18817 $as_echo_n "(cached) " >&6 18818else 18819 ac_check_lib_save_LIBS=$LIBS 18820LIBS="-lk5crypto $LIBS" 18821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18822/* end confdefs.h. */ 18823 18824/* Override any GCC internal prototype to avoid an error. 18825 Use char because int might match the return type of a GCC 18826 builtin and then its argument prototype would still apply. */ 18827#ifdef __cplusplus 18828extern "C" 18829#endif 18830char krb5int_hash_md5 (); 18831int 18832main () 18833{ 18834return krb5int_hash_md5 (); 18835 ; 18836 return 0; 18837} 18838_ACEOF 18839if ac_fn_c_try_link "$LINENO"; then : 18840 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 18841else 18842 ac_cv_lib_k5crypto_krb5int_hash_md5=no 18843fi 18844rm -f core conftest.err conftest.$ac_objext \ 18845 conftest$ac_exeext conftest.$ac_ext 18846LIBS=$ac_check_lib_save_LIBS 18847fi 18848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 18849$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 18850if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 18851 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 18852fi 18853 18854 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 18856$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 18857if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 18858 $as_echo_n "(cached) " >&6 18859else 18860 ac_check_lib_save_LIBS=$LIBS 18861LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 18862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18863/* end confdefs.h. */ 18864 18865/* Override any GCC internal prototype to avoid an error. 18866 Use char because int might match the return type of a GCC 18867 builtin and then its argument prototype would still apply. */ 18868#ifdef __cplusplus 18869extern "C" 18870#endif 18871char gss_import_name (); 18872int 18873main () 18874{ 18875return gss_import_name (); 18876 ; 18877 return 0; 18878} 18879_ACEOF 18880if ac_fn_c_try_link "$LINENO"; then : 18881 ac_cv_lib_gssapi_krb5_gss_import_name=yes 18882else 18883 ac_cv_lib_gssapi_krb5_gss_import_name=no 18884fi 18885rm -f core conftest.err conftest.$ac_objext \ 18886 conftest$ac_exeext conftest.$ac_ext 18887LIBS=$ac_check_lib_save_LIBS 18888fi 18889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 18890$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 18891if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 18892 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 18893else 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 18895$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 18896if ${ac_cv_lib_gss_gss_import_name+:} false; then : 18897 $as_echo_n "(cached) " >&6 18898else 18899 ac_check_lib_save_LIBS=$LIBS 18900LIBS="-lgss $LIBS" 18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18902/* end confdefs.h. */ 18903 18904/* Override any GCC internal prototype to avoid an error. 18905 Use char because int might match the return type of a GCC 18906 builtin and then its argument prototype would still apply. */ 18907#ifdef __cplusplus 18908extern "C" 18909#endif 18910char gss_import_name (); 18911int 18912main () 18913{ 18914return gss_import_name (); 18915 ; 18916 return 0; 18917} 18918_ACEOF 18919if ac_fn_c_try_link "$LINENO"; then : 18920 ac_cv_lib_gss_gss_import_name=yes 18921else 18922 ac_cv_lib_gss_gss_import_name=no 18923fi 18924rm -f core conftest.err conftest.$ac_objext \ 18925 conftest$ac_exeext conftest.$ac_ext 18926LIBS=$ac_check_lib_save_LIBS 18927fi 18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 18929$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 18930if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 18931 GSSAPI_LIBS="-lgss" 18932else 18933 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 18934fi 18935 18936fi 18937 18938fi 18939 18940 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 18941 LDFLAGS="$rra_gssapi_save_LDFLAGS" 18942 LIBS="$rra_gssapi_save_LIBS" 18943fi 18944else 18945 if test x"$rra_gssapi_libdir" != x; then : 18946 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 18947else 18948 if test x"$rra_gssapi_root" != x; then : 18949 18950 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 18951 if test x"" = x; then : 18952 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 18953else 18954 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 18955fi 18956else 18957 if test x"" = x; then : 18958 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 18959else 18960 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 18961fi 18962fi 18963 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 18964fi 18965fi 18966 if test x"$rra_gssapi_includedir" != x; then : 18967 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 18968else 18969 if test x"$rra_gssapi_root" != x; then : 18970 if test x"$rra_gssapi_root" != x/usr; then : 18971 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 18972fi 18973fi 18974fi 18975 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 18976 rra_gssapi_save_LDFLAGS="$LDFLAGS" 18977 rra_gssapi_save_LIBS="$LIBS" 18978 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 18979 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 18980 LIBS="$GSSAPI_LIBS $LIBS" 18981 rra_gssapi_extra= 18982 LIBS= 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 18984$as_echo_n "checking for library containing res_search... " >&6; } 18985if ${ac_cv_search_res_search+:} false; then : 18986 $as_echo_n "(cached) " >&6 18987else 18988 ac_func_search_save_LIBS=$LIBS 18989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18990/* end confdefs.h. */ 18991 18992/* Override any GCC internal prototype to avoid an error. 18993 Use char because int might match the return type of a GCC 18994 builtin and then its argument prototype would still apply. */ 18995#ifdef __cplusplus 18996extern "C" 18997#endif 18998char res_search (); 18999int 19000main () 19001{ 19002return res_search (); 19003 ; 19004 return 0; 19005} 19006_ACEOF 19007for ac_lib in '' resolv; do 19008 if test -z "$ac_lib"; then 19009 ac_res="none required" 19010 else 19011 ac_res=-l$ac_lib 19012 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19013 fi 19014 if ac_fn_c_try_link "$LINENO"; then : 19015 ac_cv_search_res_search=$ac_res 19016fi 19017rm -f core conftest.err conftest.$ac_objext \ 19018 conftest$ac_exeext 19019 if ${ac_cv_search_res_search+:} false; then : 19020 break 19021fi 19022done 19023if ${ac_cv_search_res_search+:} false; then : 19024 19025else 19026 ac_cv_search_res_search=no 19027fi 19028rm conftest.$ac_ext 19029LIBS=$ac_func_search_save_LIBS 19030fi 19031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 19032$as_echo "$ac_cv_search_res_search" >&6; } 19033ac_res=$ac_cv_search_res_search 19034if test "$ac_res" != no; then : 19035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19036 19037else 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 19039$as_echo_n "checking for library containing __res_search... " >&6; } 19040if ${ac_cv_search___res_search+:} false; then : 19041 $as_echo_n "(cached) " >&6 19042else 19043 ac_func_search_save_LIBS=$LIBS 19044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19045/* end confdefs.h. */ 19046 19047/* Override any GCC internal prototype to avoid an error. 19048 Use char because int might match the return type of a GCC 19049 builtin and then its argument prototype would still apply. */ 19050#ifdef __cplusplus 19051extern "C" 19052#endif 19053char __res_search (); 19054int 19055main () 19056{ 19057return __res_search (); 19058 ; 19059 return 0; 19060} 19061_ACEOF 19062for ac_lib in '' resolv; do 19063 if test -z "$ac_lib"; then 19064 ac_res="none required" 19065 else 19066 ac_res=-l$ac_lib 19067 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19068 fi 19069 if ac_fn_c_try_link "$LINENO"; then : 19070 ac_cv_search___res_search=$ac_res 19071fi 19072rm -f core conftest.err conftest.$ac_objext \ 19073 conftest$ac_exeext 19074 if ${ac_cv_search___res_search+:} false; then : 19075 break 19076fi 19077done 19078if ${ac_cv_search___res_search+:} false; then : 19079 19080else 19081 ac_cv_search___res_search=no 19082fi 19083rm conftest.$ac_ext 19084LIBS=$ac_func_search_save_LIBS 19085fi 19086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 19087$as_echo "$ac_cv_search___res_search" >&6; } 19088ac_res=$ac_cv_search___res_search 19089if test "$ac_res" != no; then : 19090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19091 19092fi 19093 19094fi 19095 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19097$as_echo_n "checking for library containing gethostbyname... " >&6; } 19098if ${ac_cv_search_gethostbyname+:} false; then : 19099 $as_echo_n "(cached) " >&6 19100else 19101 ac_func_search_save_LIBS=$LIBS 19102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19103/* end confdefs.h. */ 19104 19105/* Override any GCC internal prototype to avoid an error. 19106 Use char because int might match the return type of a GCC 19107 builtin and then its argument prototype would still apply. */ 19108#ifdef __cplusplus 19109extern "C" 19110#endif 19111char gethostbyname (); 19112int 19113main () 19114{ 19115return gethostbyname (); 19116 ; 19117 return 0; 19118} 19119_ACEOF 19120for ac_lib in '' nsl; do 19121 if test -z "$ac_lib"; then 19122 ac_res="none required" 19123 else 19124 ac_res=-l$ac_lib 19125 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19126 fi 19127 if ac_fn_c_try_link "$LINENO"; then : 19128 ac_cv_search_gethostbyname=$ac_res 19129fi 19130rm -f core conftest.err conftest.$ac_objext \ 19131 conftest$ac_exeext 19132 if ${ac_cv_search_gethostbyname+:} false; then : 19133 break 19134fi 19135done 19136if ${ac_cv_search_gethostbyname+:} false; then : 19137 19138else 19139 ac_cv_search_gethostbyname=no 19140fi 19141rm conftest.$ac_ext 19142LIBS=$ac_func_search_save_LIBS 19143fi 19144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19145$as_echo "$ac_cv_search_gethostbyname" >&6; } 19146ac_res=$ac_cv_search_gethostbyname 19147if test "$ac_res" != no; then : 19148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19149 19150fi 19151 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19153$as_echo_n "checking for library containing socket... " >&6; } 19154if ${ac_cv_search_socket+:} false; then : 19155 $as_echo_n "(cached) " >&6 19156else 19157 ac_func_search_save_LIBS=$LIBS 19158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19159/* end confdefs.h. */ 19160 19161/* Override any GCC internal prototype to avoid an error. 19162 Use char because int might match the return type of a GCC 19163 builtin and then its argument prototype would still apply. */ 19164#ifdef __cplusplus 19165extern "C" 19166#endif 19167char socket (); 19168int 19169main () 19170{ 19171return socket (); 19172 ; 19173 return 0; 19174} 19175_ACEOF 19176for ac_lib in '' socket; do 19177 if test -z "$ac_lib"; then 19178 ac_res="none required" 19179 else 19180 ac_res=-l$ac_lib 19181 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19182 fi 19183 if ac_fn_c_try_link "$LINENO"; then : 19184 ac_cv_search_socket=$ac_res 19185fi 19186rm -f core conftest.err conftest.$ac_objext \ 19187 conftest$ac_exeext 19188 if ${ac_cv_search_socket+:} false; then : 19189 break 19190fi 19191done 19192if ${ac_cv_search_socket+:} false; then : 19193 19194else 19195 ac_cv_search_socket=no 19196fi 19197rm conftest.$ac_ext 19198LIBS=$ac_func_search_save_LIBS 19199fi 19200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19201$as_echo "$ac_cv_search_socket" >&6; } 19202ac_res=$ac_cv_search_socket 19203if test "$ac_res" != no; then : 19204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19205 19206else 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 19208$as_echo_n "checking for socket in -lnsl... " >&6; } 19209if ${ac_cv_lib_nsl_socket+:} false; then : 19210 $as_echo_n "(cached) " >&6 19211else 19212 ac_check_lib_save_LIBS=$LIBS 19213LIBS="-lnsl -lsocket $LIBS" 19214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216 19217/* Override any GCC internal prototype to avoid an error. 19218 Use char because int might match the return type of a GCC 19219 builtin and then its argument prototype would still apply. */ 19220#ifdef __cplusplus 19221extern "C" 19222#endif 19223char socket (); 19224int 19225main () 19226{ 19227return socket (); 19228 ; 19229 return 0; 19230} 19231_ACEOF 19232if ac_fn_c_try_link "$LINENO"; then : 19233 ac_cv_lib_nsl_socket=yes 19234else 19235 ac_cv_lib_nsl_socket=no 19236fi 19237rm -f core conftest.err conftest.$ac_objext \ 19238 conftest$ac_exeext conftest.$ac_ext 19239LIBS=$ac_check_lib_save_LIBS 19240fi 19241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 19242$as_echo "$ac_cv_lib_nsl_socket" >&6; } 19243if test "x$ac_cv_lib_nsl_socket" = xyes; then : 19244 LIBS="-lnsl -lsocket $LIBS" 19245fi 19246 19247fi 19248 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 19250$as_echo_n "checking for library containing crypt... " >&6; } 19251if ${ac_cv_search_crypt+:} false; then : 19252 $as_echo_n "(cached) " >&6 19253else 19254 ac_func_search_save_LIBS=$LIBS 19255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19256/* end confdefs.h. */ 19257 19258/* Override any GCC internal prototype to avoid an error. 19259 Use char because int might match the return type of a GCC 19260 builtin and then its argument prototype would still apply. */ 19261#ifdef __cplusplus 19262extern "C" 19263#endif 19264char crypt (); 19265int 19266main () 19267{ 19268return crypt (); 19269 ; 19270 return 0; 19271} 19272_ACEOF 19273for ac_lib in '' crypt; do 19274 if test -z "$ac_lib"; then 19275 ac_res="none required" 19276 else 19277 ac_res=-l$ac_lib 19278 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19279 fi 19280 if ac_fn_c_try_link "$LINENO"; then : 19281 ac_cv_search_crypt=$ac_res 19282fi 19283rm -f core conftest.err conftest.$ac_objext \ 19284 conftest$ac_exeext 19285 if ${ac_cv_search_crypt+:} false; then : 19286 break 19287fi 19288done 19289if ${ac_cv_search_crypt+:} false; then : 19290 19291else 19292 ac_cv_search_crypt=no 19293fi 19294rm conftest.$ac_ext 19295LIBS=$ac_func_search_save_LIBS 19296fi 19297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 19298$as_echo "$ac_cv_search_crypt" >&6; } 19299ac_res=$ac_cv_search_crypt 19300if test "$ac_res" != no; then : 19301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19302 19303fi 19304 19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 19306$as_echo_n "checking for library containing roken_concat... " >&6; } 19307if ${ac_cv_search_roken_concat+:} false; then : 19308 $as_echo_n "(cached) " >&6 19309else 19310 ac_func_search_save_LIBS=$LIBS 19311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19312/* end confdefs.h. */ 19313 19314/* Override any GCC internal prototype to avoid an error. 19315 Use char because int might match the return type of a GCC 19316 builtin and then its argument prototype would still apply. */ 19317#ifdef __cplusplus 19318extern "C" 19319#endif 19320char roken_concat (); 19321int 19322main () 19323{ 19324return roken_concat (); 19325 ; 19326 return 0; 19327} 19328_ACEOF 19329for ac_lib in '' roken; do 19330 if test -z "$ac_lib"; then 19331 ac_res="none required" 19332 else 19333 ac_res=-l$ac_lib 19334 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19335 fi 19336 if ac_fn_c_try_link "$LINENO"; then : 19337 ac_cv_search_roken_concat=$ac_res 19338fi 19339rm -f core conftest.err conftest.$ac_objext \ 19340 conftest$ac_exeext 19341 if ${ac_cv_search_roken_concat+:} false; then : 19342 break 19343fi 19344done 19345if ${ac_cv_search_roken_concat+:} false; then : 19346 19347else 19348 ac_cv_search_roken_concat=no 19349fi 19350rm conftest.$ac_ext 19351LIBS=$ac_func_search_save_LIBS 19352fi 19353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 19354$as_echo "$ac_cv_search_roken_concat" >&6; } 19355ac_res=$ac_cv_search_roken_concat 19356if test "$ac_res" != no; then : 19357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19358 19359fi 19360 19361 rra_gssapi_extra="$LIBS" 19362 LIBS="$rra_gssapi_save_LIBS" 19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 19364$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 19365if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 19366 $as_echo_n "(cached) " >&6 19367else 19368 ac_check_lib_save_LIBS=$LIBS 19369LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 19370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19371/* end confdefs.h. */ 19372 19373/* Override any GCC internal prototype to avoid an error. 19374 Use char because int might match the return type of a GCC 19375 builtin and then its argument prototype would still apply. */ 19376#ifdef __cplusplus 19377extern "C" 19378#endif 19379char gss_import_name (); 19380int 19381main () 19382{ 19383return gss_import_name (); 19384 ; 19385 return 0; 19386} 19387_ACEOF 19388if ac_fn_c_try_link "$LINENO"; then : 19389 ac_cv_lib_gssapi_gss_import_name=yes 19390else 19391 ac_cv_lib_gssapi_gss_import_name=no 19392fi 19393rm -f core conftest.err conftest.$ac_objext \ 19394 conftest$ac_exeext conftest.$ac_ext 19395LIBS=$ac_check_lib_save_LIBS 19396fi 19397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 19398$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 19399if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 19400 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 19401else 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 19403$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 19404if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 19405 $as_echo_n "(cached) " >&6 19406else 19407 ac_check_lib_save_LIBS=$LIBS 19408LIBS="-lkrb5support $LIBS" 19409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19410/* end confdefs.h. */ 19411 19412/* Override any GCC internal prototype to avoid an error. 19413 Use char because int might match the return type of a GCC 19414 builtin and then its argument prototype would still apply. */ 19415#ifdef __cplusplus 19416extern "C" 19417#endif 19418char krb5int_getspecific (); 19419int 19420main () 19421{ 19422return krb5int_getspecific (); 19423 ; 19424 return 0; 19425} 19426_ACEOF 19427if ac_fn_c_try_link "$LINENO"; then : 19428 ac_cv_lib_krb5support_krb5int_getspecific=yes 19429else 19430 ac_cv_lib_krb5support_krb5int_getspecific=no 19431fi 19432rm -f core conftest.err conftest.$ac_objext \ 19433 conftest$ac_exeext conftest.$ac_ext 19434LIBS=$ac_check_lib_save_LIBS 19435fi 19436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 19437$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 19438if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 19439 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 19440else 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 19442$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 19443if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 19444 $as_echo_n "(cached) " >&6 19445else 19446 ac_check_lib_save_LIBS=$LIBS 19447LIBS="-lpthreads $LIBS" 19448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19449/* end confdefs.h. */ 19450 19451/* Override any GCC internal prototype to avoid an error. 19452 Use char because int might match the return type of a GCC 19453 builtin and then its argument prototype would still apply. */ 19454#ifdef __cplusplus 19455extern "C" 19456#endif 19457char pthread_setspecific (); 19458int 19459main () 19460{ 19461return pthread_setspecific (); 19462 ; 19463 return 0; 19464} 19465_ACEOF 19466if ac_fn_c_try_link "$LINENO"; then : 19467 ac_cv_lib_pthreads_pthread_setspecific=yes 19468else 19469 ac_cv_lib_pthreads_pthread_setspecific=no 19470fi 19471rm -f core conftest.err conftest.$ac_objext \ 19472 conftest$ac_exeext conftest.$ac_ext 19473LIBS=$ac_check_lib_save_LIBS 19474fi 19475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 19476$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 19477if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 19478 rra_gssapi_pthread="-lpthreads" 19479else 19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 19481$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 19482if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 19483 $as_echo_n "(cached) " >&6 19484else 19485 ac_check_lib_save_LIBS=$LIBS 19486LIBS="-lpthread $LIBS" 19487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19488/* end confdefs.h. */ 19489 19490/* Override any GCC internal prototype to avoid an error. 19491 Use char because int might match the return type of a GCC 19492 builtin and then its argument prototype would still apply. */ 19493#ifdef __cplusplus 19494extern "C" 19495#endif 19496char pthread_setspecific (); 19497int 19498main () 19499{ 19500return pthread_setspecific (); 19501 ; 19502 return 0; 19503} 19504_ACEOF 19505if ac_fn_c_try_link "$LINENO"; then : 19506 ac_cv_lib_pthread_pthread_setspecific=yes 19507else 19508 ac_cv_lib_pthread_pthread_setspecific=no 19509fi 19510rm -f core conftest.err conftest.$ac_objext \ 19511 conftest$ac_exeext conftest.$ac_ext 19512LIBS=$ac_check_lib_save_LIBS 19513fi 19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 19515$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 19516if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 19517 rra_gssapi_pthread="-lpthread" 19518fi 19519 19520fi 19521 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 19523$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 19524if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 19525 $as_echo_n "(cached) " >&6 19526else 19527 ac_check_lib_save_LIBS=$LIBS 19528LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 19529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19530/* end confdefs.h. */ 19531 19532/* Override any GCC internal prototype to avoid an error. 19533 Use char because int might match the return type of a GCC 19534 builtin and then its argument prototype would still apply. */ 19535#ifdef __cplusplus 19536extern "C" 19537#endif 19538char krb5int_setspecific (); 19539int 19540main () 19541{ 19542return krb5int_setspecific (); 19543 ; 19544 return 0; 19545} 19546_ACEOF 19547if ac_fn_c_try_link "$LINENO"; then : 19548 ac_cv_lib_krb5support_krb5int_setspecific=yes 19549else 19550 ac_cv_lib_krb5support_krb5int_setspecific=no 19551fi 19552rm -f core conftest.err conftest.$ac_objext \ 19553 conftest$ac_exeext conftest.$ac_ext 19554LIBS=$ac_check_lib_save_LIBS 19555fi 19556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 19557$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 19558if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 19559 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 19560 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 19561fi 19562 19563fi 19564 19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 19566$as_echo_n "checking for error_message in -lcom_err... " >&6; } 19567if ${ac_cv_lib_com_err_error_message+:} false; then : 19568 $as_echo_n "(cached) " >&6 19569else 19570 ac_check_lib_save_LIBS=$LIBS 19571LIBS="-lcom_err $LIBS" 19572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19573/* end confdefs.h. */ 19574 19575/* Override any GCC internal prototype to avoid an error. 19576 Use char because int might match the return type of a GCC 19577 builtin and then its argument prototype would still apply. */ 19578#ifdef __cplusplus 19579extern "C" 19580#endif 19581char error_message (); 19582int 19583main () 19584{ 19585return error_message (); 19586 ; 19587 return 0; 19588} 19589_ACEOF 19590if ac_fn_c_try_link "$LINENO"; then : 19591 ac_cv_lib_com_err_error_message=yes 19592else 19593 ac_cv_lib_com_err_error_message=no 19594fi 19595rm -f core conftest.err conftest.$ac_objext \ 19596 conftest$ac_exeext conftest.$ac_ext 19597LIBS=$ac_check_lib_save_LIBS 19598fi 19599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 19600$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 19601if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 19602 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 19603fi 19604 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 19606$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 19607if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 19608 $as_echo_n "(cached) " >&6 19609else 19610 ac_check_lib_save_LIBS=$LIBS 19611LIBS="-lk5crypto $LIBS" 19612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19613/* end confdefs.h. */ 19614 19615/* Override any GCC internal prototype to avoid an error. 19616 Use char because int might match the return type of a GCC 19617 builtin and then its argument prototype would still apply. */ 19618#ifdef __cplusplus 19619extern "C" 19620#endif 19621char krb5int_hash_md5 (); 19622int 19623main () 19624{ 19625return krb5int_hash_md5 (); 19626 ; 19627 return 0; 19628} 19629_ACEOF 19630if ac_fn_c_try_link "$LINENO"; then : 19631 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 19632else 19633 ac_cv_lib_k5crypto_krb5int_hash_md5=no 19634fi 19635rm -f core conftest.err conftest.$ac_objext \ 19636 conftest$ac_exeext conftest.$ac_ext 19637LIBS=$ac_check_lib_save_LIBS 19638fi 19639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 19640$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 19641if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 19642 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 19643fi 19644 19645 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 19647$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 19648if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 19649 $as_echo_n "(cached) " >&6 19650else 19651 ac_check_lib_save_LIBS=$LIBS 19652LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 19653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19654/* end confdefs.h. */ 19655 19656/* Override any GCC internal prototype to avoid an error. 19657 Use char because int might match the return type of a GCC 19658 builtin and then its argument prototype would still apply. */ 19659#ifdef __cplusplus 19660extern "C" 19661#endif 19662char gss_import_name (); 19663int 19664main () 19665{ 19666return gss_import_name (); 19667 ; 19668 return 0; 19669} 19670_ACEOF 19671if ac_fn_c_try_link "$LINENO"; then : 19672 ac_cv_lib_gssapi_krb5_gss_import_name=yes 19673else 19674 ac_cv_lib_gssapi_krb5_gss_import_name=no 19675fi 19676rm -f core conftest.err conftest.$ac_objext \ 19677 conftest$ac_exeext conftest.$ac_ext 19678LIBS=$ac_check_lib_save_LIBS 19679fi 19680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 19681$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 19682if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 19683 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 19684else 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 19686$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 19687if ${ac_cv_lib_gss_gss_import_name+:} false; then : 19688 $as_echo_n "(cached) " >&6 19689else 19690 ac_check_lib_save_LIBS=$LIBS 19691LIBS="-lgss $LIBS" 19692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19693/* end confdefs.h. */ 19694 19695/* Override any GCC internal prototype to avoid an error. 19696 Use char because int might match the return type of a GCC 19697 builtin and then its argument prototype would still apply. */ 19698#ifdef __cplusplus 19699extern "C" 19700#endif 19701char gss_import_name (); 19702int 19703main () 19704{ 19705return gss_import_name (); 19706 ; 19707 return 0; 19708} 19709_ACEOF 19710if ac_fn_c_try_link "$LINENO"; then : 19711 ac_cv_lib_gss_gss_import_name=yes 19712else 19713 ac_cv_lib_gss_gss_import_name=no 19714fi 19715rm -f core conftest.err conftest.$ac_objext \ 19716 conftest$ac_exeext conftest.$ac_ext 19717LIBS=$ac_check_lib_save_LIBS 19718fi 19719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 19720$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 19721if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 19722 GSSAPI_LIBS="-lgss" 19723else 19724 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 19725fi 19726 19727fi 19728 19729fi 19730 19731 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 19732 LDFLAGS="$rra_gssapi_save_LDFLAGS" 19733 LIBS="$rra_gssapi_save_LIBS" 19734fi 19735fi 19736 19737 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 19738 rra_gssapi_save_LDFLAGS="$LDFLAGS" 19739 rra_gssapi_save_LIBS="$LIBS" 19740 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 19741 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 19742 LIBS="$GSSAPI_LIBS $LIBS" 19743 rra_gssapi_incroot= 19744 if test x"$rra_gssapi_includedir" != x; then : 19745 rra_gssapi_incroot="$rra_gssapi_includedir" 19746else 19747 if test x"$rra_gssapi_root" != x; then : 19748 rra_gssapi_incroot="${rra_gssapi_root}/include" 19749fi 19750fi 19751 if test x"$rra_gssapi_incroot" = x; then : 19752 for ac_header in gssapi/gssapi.h gssapi/gssapi_krb5.h 19753do : 19754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19755ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19756if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19757 cat >>confdefs.h <<_ACEOF 19758#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19759_ACEOF 19760 19761fi 19762 19763done 19764 19765else 19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi.h" >&5 19767$as_echo_n "checking for gssapi/gssapi.h... " >&6; } 19768 if test -f "${rra_gssapi_incroot}/gssapi/gssapi.h"; then : 19769 19770cat >>confdefs.h <<_ACEOF 19771#define HAVE_GSSAPI_GSSAPI_H 1 19772_ACEOF 19773 19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19775$as_echo "yes" >&6; } 19776else 19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19778$as_echo "no" >&6; } 19779fi 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi_krb5.h" >&5 19781$as_echo_n "checking for gssapi/gssapi_krb5.h... " >&6; } 19782 if test -f "${rra_gssapi_incroot}/gssapi/gssapi_krb5.h"; then : 19783 19784cat >>confdefs.h <<_ACEOF 19785#define HAVE_GSSAPI_GSSAPI_KRB5_H 1 19786_ACEOF 19787 19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19789$as_echo "yes" >&6; } 19790else 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19792$as_echo "no" >&6; } 19793fi 19794fi 19795 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_USER_NAME" "ac_cv_have_decl_GSS_C_NT_USER_NAME" " 19796#ifdef HAVE_GSSAPI_GSSAPI_H 19797# include <gssapi/gssapi.h> 19798#else 19799# include <gssapi.h> 19800#endif 19801#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H 19802# include <gssapi/gssapi_krb5.h> 19803#endif 19804 19805" 19806if test "x$ac_cv_have_decl_GSS_C_NT_USER_NAME" = xyes; then : 19807 19808$as_echo "#define HAVE_GSS_RFC_OIDS 1" >>confdefs.h 19809 19810fi 19811 19812 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 19813 LDFLAGS="$rra_gssapi_save_LDFLAGS" 19814 LIBS="$rra_gssapi_save_LIBS" 19815 REMCTL_CPPFLAGS="$REMCTL_CPPFLAGS $GSSAPI_CPPFLAGS" 19816 REMCTL_LDFLAGS="$REMCTL_LDFLAGS $GSSAPI_LDFLAGS" 19817 REMCTL_LIBS="-lremctl $GSSAPI_LIBS" 19818fi 19819 rra_remctl_save_CPPFLAGS="$CPPFLAGS" 19820 rra_remctl_save_LDFLAGS="$LDFLAGS" 19821 rra_remctl_save_LIBS="$LIBS" 19822 CPPFLAGS="$REMCTL_CPPFLAGS $CPPFLAGS" 19823 LDFLAGS="$REMCTL_LDFLAGS $LDFLAGS" 19824 LIBS="$REMCTL_LIBS $LIBS" 19825 ac_fn_c_check_func "$LINENO" "remctl_open" "ac_cv_func_remctl_open" 19826if test "x$ac_cv_func_remctl_open" = xyes; then : 19827 19828else 19829 if test x"true" = xtrue; then : 19830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19832as_fn_error $? "unable to link with remctl library 19833See \`config.log' for more details" "$LINENO" 5; } 19834fi 19835 REMCTL_CPPFLAGS= 19836 REMCTL_LDFLAGS= 19837 REMCTL_LIBS= 19838fi 19839 19840 CPPFLAGS="$rra_remctl_save_CPPFLAGS" 19841 LDFLAGS="$rra_remctl_save_LDFLAGS" 19842 LIBS="$rra_remctl_save_LIBS" 19843else 19844 19845 if test x"$rra_remctl_libdir" != x; then : 19846 REMCTL_LDFLAGS="-L$rra_remctl_libdir" 19847else 19848 if test x"$rra_remctl_root" != x; then : 19849 19850 if test -d "$rra_remctl_root/$rra_lib_arch_name"; then : 19851 if test x"" = x; then : 19852 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}" 19853else 19854 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}/" 19855fi 19856else 19857 if test x"" = x; then : 19858 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib" 19859else 19860 REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib/" 19861fi 19862fi 19863 REMCTL_LDFLAGS=`echo "$REMCTL_LDFLAGS" | sed -e 's/^ *//'` 19864fi 19865fi 19866 if test x"$rra_remctl_includedir" != x; then : 19867 REMCTL_CPPFLAGS="-I$rra_remctl_includedir" 19868else 19869 if test x"$rra_remctl_root" != x; then : 19870 if test x"$rra_remctl_root" != x/usr; then : 19871 REMCTL_CPPFLAGS="-I${rra_remctl_root}/include" 19872fi 19873fi 19874fi 19875 if test x"$rra_reduced_depends" = xtrue; then : 19876 REMCTL_LIBS="-lremctl" 19877else 19878 19879 rra_gssapi_root= 19880 rra_gssapi_libdir= 19881 rra_gssapi_includedir= 19882 GSSAPI_CPPFLAGS= 19883 GSSAPI_LDFLAGS= 19884 GSSAPI_LIBS= 19885 19886 19887 19888 19889 19890# Check whether --with-gssapi was given. 19891if test "${with_gssapi+set}" = set; then : 19892 withval=$with_gssapi; if test x"$withval" != xyes && test x"$withval" != xno; then : 19893 rra_gssapi_root="$withval" 19894fi 19895fi 19896 19897 19898# Check whether --with-gssapi-include was given. 19899if test "${with_gssapi_include+set}" = set; then : 19900 withval=$with_gssapi_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 19901 rra_gssapi_includedir="$withval" 19902fi 19903fi 19904 19905 19906# Check whether --with-gssapi-lib was given. 19907if test "${with_gssapi_lib+set}" = set; then : 19908 withval=$with_gssapi_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 19909 rra_gssapi_libdir="$withval" 19910fi 19911fi 19912 19913 19914 if test x"$rra_reduced_depends" = xtrue; then : 19915 if test x"$rra_gssapi_libdir" != x; then : 19916 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 19917else 19918 if test x"$rra_gssapi_root" != x; then : 19919 19920 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 19921 if test x"" = x; then : 19922 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 19923else 19924 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 19925fi 19926else 19927 if test x"" = x; then : 19928 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 19929else 19930 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 19931fi 19932fi 19933 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 19934fi 19935fi 19936 if test x"$rra_gssapi_includedir" != x; then : 19937 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 19938else 19939 if test x"$rra_gssapi_root" != x; then : 19940 if test x"$rra_gssapi_root" != x/usr; then : 19941 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 19942fi 19943fi 19944fi 19945 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 19946 rra_gssapi_save_LDFLAGS="$LDFLAGS" 19947 rra_gssapi_save_LIBS="$LIBS" 19948 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 19949 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 19950 LIBS="$GSSAPI_LIBS $LIBS" 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 19952$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 19953if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 19954 $as_echo_n "(cached) " >&6 19955else 19956 ac_check_lib_save_LIBS=$LIBS 19957LIBS="-lgssapi_krb5 $LIBS" 19958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19959/* end confdefs.h. */ 19960 19961/* Override any GCC internal prototype to avoid an error. 19962 Use char because int might match the return type of a GCC 19963 builtin and then its argument prototype would still apply. */ 19964#ifdef __cplusplus 19965extern "C" 19966#endif 19967char gss_import_name (); 19968int 19969main () 19970{ 19971return gss_import_name (); 19972 ; 19973 return 0; 19974} 19975_ACEOF 19976if ac_fn_c_try_link "$LINENO"; then : 19977 ac_cv_lib_gssapi_krb5_gss_import_name=yes 19978else 19979 ac_cv_lib_gssapi_krb5_gss_import_name=no 19980fi 19981rm -f core conftest.err conftest.$ac_objext \ 19982 conftest$ac_exeext conftest.$ac_ext 19983LIBS=$ac_check_lib_save_LIBS 19984fi 19985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 19986$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 19987if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 19988 GSSAPI_LIBS="-lgssapi_krb5" 19989else 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 19991$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 19992if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 19993 $as_echo_n "(cached) " >&6 19994else 19995 ac_check_lib_save_LIBS=$LIBS 19996LIBS="-lgssapi $LIBS" 19997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19998/* end confdefs.h. */ 19999 20000/* Override any GCC internal prototype to avoid an error. 20001 Use char because int might match the return type of a GCC 20002 builtin and then its argument prototype would still apply. */ 20003#ifdef __cplusplus 20004extern "C" 20005#endif 20006char gss_import_name (); 20007int 20008main () 20009{ 20010return gss_import_name (); 20011 ; 20012 return 0; 20013} 20014_ACEOF 20015if ac_fn_c_try_link "$LINENO"; then : 20016 ac_cv_lib_gssapi_gss_import_name=yes 20017else 20018 ac_cv_lib_gssapi_gss_import_name=no 20019fi 20020rm -f core conftest.err conftest.$ac_objext \ 20021 conftest$ac_exeext conftest.$ac_ext 20022LIBS=$ac_check_lib_save_LIBS 20023fi 20024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 20025$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 20026if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 20027 GSSAPI_LIBS="-lgssapi" 20028else 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 20030$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 20031if ${ac_cv_lib_gss_gss_import_name+:} false; then : 20032 $as_echo_n "(cached) " >&6 20033else 20034 ac_check_lib_save_LIBS=$LIBS 20035LIBS="-lgss $LIBS" 20036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20037/* end confdefs.h. */ 20038 20039/* Override any GCC internal prototype to avoid an error. 20040 Use char because int might match the return type of a GCC 20041 builtin and then its argument prototype would still apply. */ 20042#ifdef __cplusplus 20043extern "C" 20044#endif 20045char gss_import_name (); 20046int 20047main () 20048{ 20049return gss_import_name (); 20050 ; 20051 return 0; 20052} 20053_ACEOF 20054if ac_fn_c_try_link "$LINENO"; then : 20055 ac_cv_lib_gss_gss_import_name=yes 20056else 20057 ac_cv_lib_gss_gss_import_name=no 20058fi 20059rm -f core conftest.err conftest.$ac_objext \ 20060 conftest$ac_exeext conftest.$ac_ext 20061LIBS=$ac_check_lib_save_LIBS 20062fi 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 20064$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 20065if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 20066 GSSAPI_LIBS="-lgss" 20067else 20068 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 20069fi 20070 20071fi 20072 20073fi 20074 20075 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 20076 LDFLAGS="$rra_gssapi_save_LDFLAGS" 20077 LIBS="$rra_gssapi_save_LIBS" 20078else 20079 if test x"$rra_gssapi_includedir" = x \ 20080 && test x"$rra_gssapi_libdir" = x; then : 20081 20082 rra_krb5_config_GSSAPI= 20083 rra_krb5_config_GSSAPI_ok= 20084 if test x"${rra_gssapi_root}" != x && test -x "${rra_gssapi_root}/bin/krb5-config"; then : 20085 rra_krb5_config_GSSAPI="${rra_gssapi_root}/bin/krb5-config" 20086else 20087 rra_krb5_config_GSSAPI="$PATH_KRB5_CONFIG" 20088fi 20089 if test x"$rra_krb5_config_GSSAPI" != x && test -x "$rra_krb5_config_GSSAPI"; then : 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support in krb5-config" >&5 20091$as_echo_n "checking for gssapi support in krb5-config... " >&6; } 20092if ${rra_cv_lib_GSSAPI_config+:} false; then : 20093 $as_echo_n "(cached) " >&6 20094else 20095 if "$rra_krb5_config_GSSAPI" 2>&1 | grep gssapi >/dev/null 2>&1; then : 20096 rra_cv_lib_GSSAPI_config=yes 20097else 20098 rra_cv_lib_GSSAPI_config=no 20099fi 20100fi 20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_GSSAPI_config" >&5 20102$as_echo "$rra_cv_lib_GSSAPI_config" >&6; } 20103 if test "$rra_cv_lib_GSSAPI_config" = yes; then : 20104 GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags gssapi 2>/dev/null` 20105 20106 20107 20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5 20109$as_echo_n "checking for --deps support in krb5-config... " >&6; } 20110if ${rra_cv_krb5_config_deps+:} false; then : 20111 $as_echo_n "(cached) " >&6 20112else 20113 if "$rra_krb5_config_GSSAPI" 2>&1 | grep deps >/dev/null 2>&1; then : 20114 rra_cv_krb5_config_deps=yes 20115else 20116 rra_cv_krb5_config_deps=no 20117fi 20118fi 20119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5 20120$as_echo "$rra_cv_krb5_config_deps" >&6; } 20121 if test x"$rra_reduced_depends" = xfalse \ 20122 && test x"$rra_cv_krb5_config_deps" = xyes; then : 20123 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --deps --libs gssapi 2>/dev/null` 20124else 20125 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` 20126fi 20127 rra_krb5_config_GSSAPI_ok=yes 20128else 20129 if test x"gssapi" = xkrb5; then : 20130 GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags 2>/dev/null` 20131 GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` 20132 rra_krb5_config_GSSAPI_ok=yes 20133fi 20134fi 20135fi 20136 if test x"$rra_krb5_config_GSSAPI_ok" = xyes; then : 20137 GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include %%'` 20138 GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include$%%'` 20139 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 20140 rra_gssapi_save_LDFLAGS="$LDFLAGS" 20141 rra_gssapi_save_LIBS="$LIBS" 20142 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 20143 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 20144 LIBS="$GSSAPI_LIBS $LIBS" 20145 ac_fn_c_check_func "$LINENO" "gss_import_name" "ac_cv_func_gss_import_name" 20146if test "x$ac_cv_func_gss_import_name" = xyes; then : 20147 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 20148 LDFLAGS="$rra_gssapi_save_LDFLAGS" 20149 LIBS="$rra_gssapi_save_LIBS" 20150else 20151 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 20152 LDFLAGS="$rra_gssapi_save_LDFLAGS" 20153 LIBS="$rra_gssapi_save_LIBS" 20154 GSSAPI_CPPFLAGS= 20155 GSSAPI_LIBS= 20156 if test x"$rra_gssapi_libdir" != x; then : 20157 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 20158else 20159 if test x"$rra_gssapi_root" != x; then : 20160 20161 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 20162 if test x"" = x; then : 20163 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 20164else 20165 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 20166fi 20167else 20168 if test x"" = x; then : 20169 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 20170else 20171 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 20172fi 20173fi 20174 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 20175fi 20176fi 20177 if test x"$rra_gssapi_includedir" != x; then : 20178 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 20179else 20180 if test x"$rra_gssapi_root" != x; then : 20181 if test x"$rra_gssapi_root" != x/usr; then : 20182 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 20183fi 20184fi 20185fi 20186 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 20187 rra_gssapi_save_LDFLAGS="$LDFLAGS" 20188 rra_gssapi_save_LIBS="$LIBS" 20189 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 20190 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 20191 LIBS="$GSSAPI_LIBS $LIBS" 20192 rra_gssapi_extra= 20193 LIBS= 20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 20195$as_echo_n "checking for library containing res_search... " >&6; } 20196if ${ac_cv_search_res_search+:} false; then : 20197 $as_echo_n "(cached) " >&6 20198else 20199 ac_func_search_save_LIBS=$LIBS 20200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20201/* end confdefs.h. */ 20202 20203/* Override any GCC internal prototype to avoid an error. 20204 Use char because int might match the return type of a GCC 20205 builtin and then its argument prototype would still apply. */ 20206#ifdef __cplusplus 20207extern "C" 20208#endif 20209char res_search (); 20210int 20211main () 20212{ 20213return res_search (); 20214 ; 20215 return 0; 20216} 20217_ACEOF 20218for ac_lib in '' resolv; do 20219 if test -z "$ac_lib"; then 20220 ac_res="none required" 20221 else 20222 ac_res=-l$ac_lib 20223 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20224 fi 20225 if ac_fn_c_try_link "$LINENO"; then : 20226 ac_cv_search_res_search=$ac_res 20227fi 20228rm -f core conftest.err conftest.$ac_objext \ 20229 conftest$ac_exeext 20230 if ${ac_cv_search_res_search+:} false; then : 20231 break 20232fi 20233done 20234if ${ac_cv_search_res_search+:} false; then : 20235 20236else 20237 ac_cv_search_res_search=no 20238fi 20239rm conftest.$ac_ext 20240LIBS=$ac_func_search_save_LIBS 20241fi 20242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 20243$as_echo "$ac_cv_search_res_search" >&6; } 20244ac_res=$ac_cv_search_res_search 20245if test "$ac_res" != no; then : 20246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20247 20248else 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 20250$as_echo_n "checking for library containing __res_search... " >&6; } 20251if ${ac_cv_search___res_search+:} false; then : 20252 $as_echo_n "(cached) " >&6 20253else 20254 ac_func_search_save_LIBS=$LIBS 20255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20256/* end confdefs.h. */ 20257 20258/* Override any GCC internal prototype to avoid an error. 20259 Use char because int might match the return type of a GCC 20260 builtin and then its argument prototype would still apply. */ 20261#ifdef __cplusplus 20262extern "C" 20263#endif 20264char __res_search (); 20265int 20266main () 20267{ 20268return __res_search (); 20269 ; 20270 return 0; 20271} 20272_ACEOF 20273for ac_lib in '' resolv; do 20274 if test -z "$ac_lib"; then 20275 ac_res="none required" 20276 else 20277 ac_res=-l$ac_lib 20278 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20279 fi 20280 if ac_fn_c_try_link "$LINENO"; then : 20281 ac_cv_search___res_search=$ac_res 20282fi 20283rm -f core conftest.err conftest.$ac_objext \ 20284 conftest$ac_exeext 20285 if ${ac_cv_search___res_search+:} false; then : 20286 break 20287fi 20288done 20289if ${ac_cv_search___res_search+:} false; then : 20290 20291else 20292 ac_cv_search___res_search=no 20293fi 20294rm conftest.$ac_ext 20295LIBS=$ac_func_search_save_LIBS 20296fi 20297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 20298$as_echo "$ac_cv_search___res_search" >&6; } 20299ac_res=$ac_cv_search___res_search 20300if test "$ac_res" != no; then : 20301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20302 20303fi 20304 20305fi 20306 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20308$as_echo_n "checking for library containing gethostbyname... " >&6; } 20309if ${ac_cv_search_gethostbyname+:} false; then : 20310 $as_echo_n "(cached) " >&6 20311else 20312 ac_func_search_save_LIBS=$LIBS 20313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20314/* end confdefs.h. */ 20315 20316/* Override any GCC internal prototype to avoid an error. 20317 Use char because int might match the return type of a GCC 20318 builtin and then its argument prototype would still apply. */ 20319#ifdef __cplusplus 20320extern "C" 20321#endif 20322char gethostbyname (); 20323int 20324main () 20325{ 20326return gethostbyname (); 20327 ; 20328 return 0; 20329} 20330_ACEOF 20331for ac_lib in '' nsl; do 20332 if test -z "$ac_lib"; then 20333 ac_res="none required" 20334 else 20335 ac_res=-l$ac_lib 20336 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20337 fi 20338 if ac_fn_c_try_link "$LINENO"; then : 20339 ac_cv_search_gethostbyname=$ac_res 20340fi 20341rm -f core conftest.err conftest.$ac_objext \ 20342 conftest$ac_exeext 20343 if ${ac_cv_search_gethostbyname+:} false; then : 20344 break 20345fi 20346done 20347if ${ac_cv_search_gethostbyname+:} false; then : 20348 20349else 20350 ac_cv_search_gethostbyname=no 20351fi 20352rm conftest.$ac_ext 20353LIBS=$ac_func_search_save_LIBS 20354fi 20355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20356$as_echo "$ac_cv_search_gethostbyname" >&6; } 20357ac_res=$ac_cv_search_gethostbyname 20358if test "$ac_res" != no; then : 20359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20360 20361fi 20362 20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20364$as_echo_n "checking for library containing socket... " >&6; } 20365if ${ac_cv_search_socket+:} false; then : 20366 $as_echo_n "(cached) " >&6 20367else 20368 ac_func_search_save_LIBS=$LIBS 20369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20370/* end confdefs.h. */ 20371 20372/* Override any GCC internal prototype to avoid an error. 20373 Use char because int might match the return type of a GCC 20374 builtin and then its argument prototype would still apply. */ 20375#ifdef __cplusplus 20376extern "C" 20377#endif 20378char socket (); 20379int 20380main () 20381{ 20382return socket (); 20383 ; 20384 return 0; 20385} 20386_ACEOF 20387for ac_lib in '' socket; do 20388 if test -z "$ac_lib"; then 20389 ac_res="none required" 20390 else 20391 ac_res=-l$ac_lib 20392 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20393 fi 20394 if ac_fn_c_try_link "$LINENO"; then : 20395 ac_cv_search_socket=$ac_res 20396fi 20397rm -f core conftest.err conftest.$ac_objext \ 20398 conftest$ac_exeext 20399 if ${ac_cv_search_socket+:} false; then : 20400 break 20401fi 20402done 20403if ${ac_cv_search_socket+:} false; then : 20404 20405else 20406 ac_cv_search_socket=no 20407fi 20408rm conftest.$ac_ext 20409LIBS=$ac_func_search_save_LIBS 20410fi 20411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20412$as_echo "$ac_cv_search_socket" >&6; } 20413ac_res=$ac_cv_search_socket 20414if test "$ac_res" != no; then : 20415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20416 20417else 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 20419$as_echo_n "checking for socket in -lnsl... " >&6; } 20420if ${ac_cv_lib_nsl_socket+:} false; then : 20421 $as_echo_n "(cached) " >&6 20422else 20423 ac_check_lib_save_LIBS=$LIBS 20424LIBS="-lnsl -lsocket $LIBS" 20425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20426/* end confdefs.h. */ 20427 20428/* Override any GCC internal prototype to avoid an error. 20429 Use char because int might match the return type of a GCC 20430 builtin and then its argument prototype would still apply. */ 20431#ifdef __cplusplus 20432extern "C" 20433#endif 20434char socket (); 20435int 20436main () 20437{ 20438return socket (); 20439 ; 20440 return 0; 20441} 20442_ACEOF 20443if ac_fn_c_try_link "$LINENO"; then : 20444 ac_cv_lib_nsl_socket=yes 20445else 20446 ac_cv_lib_nsl_socket=no 20447fi 20448rm -f core conftest.err conftest.$ac_objext \ 20449 conftest$ac_exeext conftest.$ac_ext 20450LIBS=$ac_check_lib_save_LIBS 20451fi 20452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 20453$as_echo "$ac_cv_lib_nsl_socket" >&6; } 20454if test "x$ac_cv_lib_nsl_socket" = xyes; then : 20455 LIBS="-lnsl -lsocket $LIBS" 20456fi 20457 20458fi 20459 20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 20461$as_echo_n "checking for library containing crypt... " >&6; } 20462if ${ac_cv_search_crypt+:} false; then : 20463 $as_echo_n "(cached) " >&6 20464else 20465 ac_func_search_save_LIBS=$LIBS 20466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20467/* end confdefs.h. */ 20468 20469/* Override any GCC internal prototype to avoid an error. 20470 Use char because int might match the return type of a GCC 20471 builtin and then its argument prototype would still apply. */ 20472#ifdef __cplusplus 20473extern "C" 20474#endif 20475char crypt (); 20476int 20477main () 20478{ 20479return crypt (); 20480 ; 20481 return 0; 20482} 20483_ACEOF 20484for ac_lib in '' crypt; do 20485 if test -z "$ac_lib"; then 20486 ac_res="none required" 20487 else 20488 ac_res=-l$ac_lib 20489 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20490 fi 20491 if ac_fn_c_try_link "$LINENO"; then : 20492 ac_cv_search_crypt=$ac_res 20493fi 20494rm -f core conftest.err conftest.$ac_objext \ 20495 conftest$ac_exeext 20496 if ${ac_cv_search_crypt+:} false; then : 20497 break 20498fi 20499done 20500if ${ac_cv_search_crypt+:} false; then : 20501 20502else 20503 ac_cv_search_crypt=no 20504fi 20505rm conftest.$ac_ext 20506LIBS=$ac_func_search_save_LIBS 20507fi 20508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 20509$as_echo "$ac_cv_search_crypt" >&6; } 20510ac_res=$ac_cv_search_crypt 20511if test "$ac_res" != no; then : 20512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20513 20514fi 20515 20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 20517$as_echo_n "checking for library containing roken_concat... " >&6; } 20518if ${ac_cv_search_roken_concat+:} false; then : 20519 $as_echo_n "(cached) " >&6 20520else 20521 ac_func_search_save_LIBS=$LIBS 20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20523/* end confdefs.h. */ 20524 20525/* Override any GCC internal prototype to avoid an error. 20526 Use char because int might match the return type of a GCC 20527 builtin and then its argument prototype would still apply. */ 20528#ifdef __cplusplus 20529extern "C" 20530#endif 20531char roken_concat (); 20532int 20533main () 20534{ 20535return roken_concat (); 20536 ; 20537 return 0; 20538} 20539_ACEOF 20540for ac_lib in '' roken; do 20541 if test -z "$ac_lib"; then 20542 ac_res="none required" 20543 else 20544 ac_res=-l$ac_lib 20545 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20546 fi 20547 if ac_fn_c_try_link "$LINENO"; then : 20548 ac_cv_search_roken_concat=$ac_res 20549fi 20550rm -f core conftest.err conftest.$ac_objext \ 20551 conftest$ac_exeext 20552 if ${ac_cv_search_roken_concat+:} false; then : 20553 break 20554fi 20555done 20556if ${ac_cv_search_roken_concat+:} false; then : 20557 20558else 20559 ac_cv_search_roken_concat=no 20560fi 20561rm conftest.$ac_ext 20562LIBS=$ac_func_search_save_LIBS 20563fi 20564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 20565$as_echo "$ac_cv_search_roken_concat" >&6; } 20566ac_res=$ac_cv_search_roken_concat 20567if test "$ac_res" != no; then : 20568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20569 20570fi 20571 20572 rra_gssapi_extra="$LIBS" 20573 LIBS="$rra_gssapi_save_LIBS" 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 20575$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 20576if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 20577 $as_echo_n "(cached) " >&6 20578else 20579 ac_check_lib_save_LIBS=$LIBS 20580LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 20581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20582/* end confdefs.h. */ 20583 20584/* Override any GCC internal prototype to avoid an error. 20585 Use char because int might match the return type of a GCC 20586 builtin and then its argument prototype would still apply. */ 20587#ifdef __cplusplus 20588extern "C" 20589#endif 20590char gss_import_name (); 20591int 20592main () 20593{ 20594return gss_import_name (); 20595 ; 20596 return 0; 20597} 20598_ACEOF 20599if ac_fn_c_try_link "$LINENO"; then : 20600 ac_cv_lib_gssapi_gss_import_name=yes 20601else 20602 ac_cv_lib_gssapi_gss_import_name=no 20603fi 20604rm -f core conftest.err conftest.$ac_objext \ 20605 conftest$ac_exeext conftest.$ac_ext 20606LIBS=$ac_check_lib_save_LIBS 20607fi 20608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 20609$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 20610if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 20611 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 20612else 20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 20614$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 20615if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 20616 $as_echo_n "(cached) " >&6 20617else 20618 ac_check_lib_save_LIBS=$LIBS 20619LIBS="-lkrb5support $LIBS" 20620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20621/* end confdefs.h. */ 20622 20623/* Override any GCC internal prototype to avoid an error. 20624 Use char because int might match the return type of a GCC 20625 builtin and then its argument prototype would still apply. */ 20626#ifdef __cplusplus 20627extern "C" 20628#endif 20629char krb5int_getspecific (); 20630int 20631main () 20632{ 20633return krb5int_getspecific (); 20634 ; 20635 return 0; 20636} 20637_ACEOF 20638if ac_fn_c_try_link "$LINENO"; then : 20639 ac_cv_lib_krb5support_krb5int_getspecific=yes 20640else 20641 ac_cv_lib_krb5support_krb5int_getspecific=no 20642fi 20643rm -f core conftest.err conftest.$ac_objext \ 20644 conftest$ac_exeext conftest.$ac_ext 20645LIBS=$ac_check_lib_save_LIBS 20646fi 20647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 20648$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 20649if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 20650 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 20651else 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 20653$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 20654if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 20655 $as_echo_n "(cached) " >&6 20656else 20657 ac_check_lib_save_LIBS=$LIBS 20658LIBS="-lpthreads $LIBS" 20659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20660/* end confdefs.h. */ 20661 20662/* Override any GCC internal prototype to avoid an error. 20663 Use char because int might match the return type of a GCC 20664 builtin and then its argument prototype would still apply. */ 20665#ifdef __cplusplus 20666extern "C" 20667#endif 20668char pthread_setspecific (); 20669int 20670main () 20671{ 20672return pthread_setspecific (); 20673 ; 20674 return 0; 20675} 20676_ACEOF 20677if ac_fn_c_try_link "$LINENO"; then : 20678 ac_cv_lib_pthreads_pthread_setspecific=yes 20679else 20680 ac_cv_lib_pthreads_pthread_setspecific=no 20681fi 20682rm -f core conftest.err conftest.$ac_objext \ 20683 conftest$ac_exeext conftest.$ac_ext 20684LIBS=$ac_check_lib_save_LIBS 20685fi 20686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 20687$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 20688if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 20689 rra_gssapi_pthread="-lpthreads" 20690else 20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 20692$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 20693if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 20694 $as_echo_n "(cached) " >&6 20695else 20696 ac_check_lib_save_LIBS=$LIBS 20697LIBS="-lpthread $LIBS" 20698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20699/* end confdefs.h. */ 20700 20701/* Override any GCC internal prototype to avoid an error. 20702 Use char because int might match the return type of a GCC 20703 builtin and then its argument prototype would still apply. */ 20704#ifdef __cplusplus 20705extern "C" 20706#endif 20707char pthread_setspecific (); 20708int 20709main () 20710{ 20711return pthread_setspecific (); 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716if ac_fn_c_try_link "$LINENO"; then : 20717 ac_cv_lib_pthread_pthread_setspecific=yes 20718else 20719 ac_cv_lib_pthread_pthread_setspecific=no 20720fi 20721rm -f core conftest.err conftest.$ac_objext \ 20722 conftest$ac_exeext conftest.$ac_ext 20723LIBS=$ac_check_lib_save_LIBS 20724fi 20725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 20726$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 20727if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 20728 rra_gssapi_pthread="-lpthread" 20729fi 20730 20731fi 20732 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 20734$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 20735if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 20736 $as_echo_n "(cached) " >&6 20737else 20738 ac_check_lib_save_LIBS=$LIBS 20739LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 20740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20741/* end confdefs.h. */ 20742 20743/* Override any GCC internal prototype to avoid an error. 20744 Use char because int might match the return type of a GCC 20745 builtin and then its argument prototype would still apply. */ 20746#ifdef __cplusplus 20747extern "C" 20748#endif 20749char krb5int_setspecific (); 20750int 20751main () 20752{ 20753return krb5int_setspecific (); 20754 ; 20755 return 0; 20756} 20757_ACEOF 20758if ac_fn_c_try_link "$LINENO"; then : 20759 ac_cv_lib_krb5support_krb5int_setspecific=yes 20760else 20761 ac_cv_lib_krb5support_krb5int_setspecific=no 20762fi 20763rm -f core conftest.err conftest.$ac_objext \ 20764 conftest$ac_exeext conftest.$ac_ext 20765LIBS=$ac_check_lib_save_LIBS 20766fi 20767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 20768$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 20769if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 20770 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 20771 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 20772fi 20773 20774fi 20775 20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 20777$as_echo_n "checking for error_message in -lcom_err... " >&6; } 20778if ${ac_cv_lib_com_err_error_message+:} false; then : 20779 $as_echo_n "(cached) " >&6 20780else 20781 ac_check_lib_save_LIBS=$LIBS 20782LIBS="-lcom_err $LIBS" 20783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20784/* end confdefs.h. */ 20785 20786/* Override any GCC internal prototype to avoid an error. 20787 Use char because int might match the return type of a GCC 20788 builtin and then its argument prototype would still apply. */ 20789#ifdef __cplusplus 20790extern "C" 20791#endif 20792char error_message (); 20793int 20794main () 20795{ 20796return error_message (); 20797 ; 20798 return 0; 20799} 20800_ACEOF 20801if ac_fn_c_try_link "$LINENO"; then : 20802 ac_cv_lib_com_err_error_message=yes 20803else 20804 ac_cv_lib_com_err_error_message=no 20805fi 20806rm -f core conftest.err conftest.$ac_objext \ 20807 conftest$ac_exeext conftest.$ac_ext 20808LIBS=$ac_check_lib_save_LIBS 20809fi 20810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 20811$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 20812if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 20813 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 20814fi 20815 20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 20817$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 20818if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 20819 $as_echo_n "(cached) " >&6 20820else 20821 ac_check_lib_save_LIBS=$LIBS 20822LIBS="-lk5crypto $LIBS" 20823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20824/* end confdefs.h. */ 20825 20826/* Override any GCC internal prototype to avoid an error. 20827 Use char because int might match the return type of a GCC 20828 builtin and then its argument prototype would still apply. */ 20829#ifdef __cplusplus 20830extern "C" 20831#endif 20832char krb5int_hash_md5 (); 20833int 20834main () 20835{ 20836return krb5int_hash_md5 (); 20837 ; 20838 return 0; 20839} 20840_ACEOF 20841if ac_fn_c_try_link "$LINENO"; then : 20842 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 20843else 20844 ac_cv_lib_k5crypto_krb5int_hash_md5=no 20845fi 20846rm -f core conftest.err conftest.$ac_objext \ 20847 conftest$ac_exeext conftest.$ac_ext 20848LIBS=$ac_check_lib_save_LIBS 20849fi 20850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 20851$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 20852if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 20853 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 20854fi 20855 20856 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 20858$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 20859if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 20860 $as_echo_n "(cached) " >&6 20861else 20862 ac_check_lib_save_LIBS=$LIBS 20863LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 20864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20865/* end confdefs.h. */ 20866 20867/* Override any GCC internal prototype to avoid an error. 20868 Use char because int might match the return type of a GCC 20869 builtin and then its argument prototype would still apply. */ 20870#ifdef __cplusplus 20871extern "C" 20872#endif 20873char gss_import_name (); 20874int 20875main () 20876{ 20877return gss_import_name (); 20878 ; 20879 return 0; 20880} 20881_ACEOF 20882if ac_fn_c_try_link "$LINENO"; then : 20883 ac_cv_lib_gssapi_krb5_gss_import_name=yes 20884else 20885 ac_cv_lib_gssapi_krb5_gss_import_name=no 20886fi 20887rm -f core conftest.err conftest.$ac_objext \ 20888 conftest$ac_exeext conftest.$ac_ext 20889LIBS=$ac_check_lib_save_LIBS 20890fi 20891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 20892$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 20893if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 20894 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 20895else 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 20897$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 20898if ${ac_cv_lib_gss_gss_import_name+:} false; then : 20899 $as_echo_n "(cached) " >&6 20900else 20901 ac_check_lib_save_LIBS=$LIBS 20902LIBS="-lgss $LIBS" 20903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20904/* end confdefs.h. */ 20905 20906/* Override any GCC internal prototype to avoid an error. 20907 Use char because int might match the return type of a GCC 20908 builtin and then its argument prototype would still apply. */ 20909#ifdef __cplusplus 20910extern "C" 20911#endif 20912char gss_import_name (); 20913int 20914main () 20915{ 20916return gss_import_name (); 20917 ; 20918 return 0; 20919} 20920_ACEOF 20921if ac_fn_c_try_link "$LINENO"; then : 20922 ac_cv_lib_gss_gss_import_name=yes 20923else 20924 ac_cv_lib_gss_gss_import_name=no 20925fi 20926rm -f core conftest.err conftest.$ac_objext \ 20927 conftest$ac_exeext conftest.$ac_ext 20928LIBS=$ac_check_lib_save_LIBS 20929fi 20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 20931$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 20932if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 20933 GSSAPI_LIBS="-lgss" 20934else 20935 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 20936fi 20937 20938fi 20939 20940fi 20941 20942 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 20943 LDFLAGS="$rra_gssapi_save_LDFLAGS" 20944 LIBS="$rra_gssapi_save_LIBS" 20945fi 20946 20947else 20948 if test x"$rra_gssapi_libdir" != x; then : 20949 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 20950else 20951 if test x"$rra_gssapi_root" != x; then : 20952 20953 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 20954 if test x"" = x; then : 20955 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 20956else 20957 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 20958fi 20959else 20960 if test x"" = x; then : 20961 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 20962else 20963 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 20964fi 20965fi 20966 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 20967fi 20968fi 20969 if test x"$rra_gssapi_includedir" != x; then : 20970 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 20971else 20972 if test x"$rra_gssapi_root" != x; then : 20973 if test x"$rra_gssapi_root" != x/usr; then : 20974 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 20975fi 20976fi 20977fi 20978 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 20979 rra_gssapi_save_LDFLAGS="$LDFLAGS" 20980 rra_gssapi_save_LIBS="$LIBS" 20981 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 20982 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 20983 LIBS="$GSSAPI_LIBS $LIBS" 20984 rra_gssapi_extra= 20985 LIBS= 20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 20987$as_echo_n "checking for library containing res_search... " >&6; } 20988if ${ac_cv_search_res_search+:} false; then : 20989 $as_echo_n "(cached) " >&6 20990else 20991 ac_func_search_save_LIBS=$LIBS 20992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20993/* end confdefs.h. */ 20994 20995/* Override any GCC internal prototype to avoid an error. 20996 Use char because int might match the return type of a GCC 20997 builtin and then its argument prototype would still apply. */ 20998#ifdef __cplusplus 20999extern "C" 21000#endif 21001char res_search (); 21002int 21003main () 21004{ 21005return res_search (); 21006 ; 21007 return 0; 21008} 21009_ACEOF 21010for ac_lib in '' resolv; do 21011 if test -z "$ac_lib"; then 21012 ac_res="none required" 21013 else 21014 ac_res=-l$ac_lib 21015 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21016 fi 21017 if ac_fn_c_try_link "$LINENO"; then : 21018 ac_cv_search_res_search=$ac_res 21019fi 21020rm -f core conftest.err conftest.$ac_objext \ 21021 conftest$ac_exeext 21022 if ${ac_cv_search_res_search+:} false; then : 21023 break 21024fi 21025done 21026if ${ac_cv_search_res_search+:} false; then : 21027 21028else 21029 ac_cv_search_res_search=no 21030fi 21031rm conftest.$ac_ext 21032LIBS=$ac_func_search_save_LIBS 21033fi 21034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 21035$as_echo "$ac_cv_search_res_search" >&6; } 21036ac_res=$ac_cv_search_res_search 21037if test "$ac_res" != no; then : 21038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21039 21040else 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 21042$as_echo_n "checking for library containing __res_search... " >&6; } 21043if ${ac_cv_search___res_search+:} false; then : 21044 $as_echo_n "(cached) " >&6 21045else 21046 ac_func_search_save_LIBS=$LIBS 21047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21048/* end confdefs.h. */ 21049 21050/* Override any GCC internal prototype to avoid an error. 21051 Use char because int might match the return type of a GCC 21052 builtin and then its argument prototype would still apply. */ 21053#ifdef __cplusplus 21054extern "C" 21055#endif 21056char __res_search (); 21057int 21058main () 21059{ 21060return __res_search (); 21061 ; 21062 return 0; 21063} 21064_ACEOF 21065for ac_lib in '' resolv; do 21066 if test -z "$ac_lib"; then 21067 ac_res="none required" 21068 else 21069 ac_res=-l$ac_lib 21070 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21071 fi 21072 if ac_fn_c_try_link "$LINENO"; then : 21073 ac_cv_search___res_search=$ac_res 21074fi 21075rm -f core conftest.err conftest.$ac_objext \ 21076 conftest$ac_exeext 21077 if ${ac_cv_search___res_search+:} false; then : 21078 break 21079fi 21080done 21081if ${ac_cv_search___res_search+:} false; then : 21082 21083else 21084 ac_cv_search___res_search=no 21085fi 21086rm conftest.$ac_ext 21087LIBS=$ac_func_search_save_LIBS 21088fi 21089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 21090$as_echo "$ac_cv_search___res_search" >&6; } 21091ac_res=$ac_cv_search___res_search 21092if test "$ac_res" != no; then : 21093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21094 21095fi 21096 21097fi 21098 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21100$as_echo_n "checking for library containing gethostbyname... " >&6; } 21101if ${ac_cv_search_gethostbyname+:} false; then : 21102 $as_echo_n "(cached) " >&6 21103else 21104 ac_func_search_save_LIBS=$LIBS 21105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21106/* end confdefs.h. */ 21107 21108/* Override any GCC internal prototype to avoid an error. 21109 Use char because int might match the return type of a GCC 21110 builtin and then its argument prototype would still apply. */ 21111#ifdef __cplusplus 21112extern "C" 21113#endif 21114char gethostbyname (); 21115int 21116main () 21117{ 21118return gethostbyname (); 21119 ; 21120 return 0; 21121} 21122_ACEOF 21123for ac_lib in '' nsl; do 21124 if test -z "$ac_lib"; then 21125 ac_res="none required" 21126 else 21127 ac_res=-l$ac_lib 21128 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21129 fi 21130 if ac_fn_c_try_link "$LINENO"; then : 21131 ac_cv_search_gethostbyname=$ac_res 21132fi 21133rm -f core conftest.err conftest.$ac_objext \ 21134 conftest$ac_exeext 21135 if ${ac_cv_search_gethostbyname+:} false; then : 21136 break 21137fi 21138done 21139if ${ac_cv_search_gethostbyname+:} false; then : 21140 21141else 21142 ac_cv_search_gethostbyname=no 21143fi 21144rm conftest.$ac_ext 21145LIBS=$ac_func_search_save_LIBS 21146fi 21147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21148$as_echo "$ac_cv_search_gethostbyname" >&6; } 21149ac_res=$ac_cv_search_gethostbyname 21150if test "$ac_res" != no; then : 21151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21152 21153fi 21154 21155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21156$as_echo_n "checking for library containing socket... " >&6; } 21157if ${ac_cv_search_socket+:} false; then : 21158 $as_echo_n "(cached) " >&6 21159else 21160 ac_func_search_save_LIBS=$LIBS 21161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21162/* end confdefs.h. */ 21163 21164/* Override any GCC internal prototype to avoid an error. 21165 Use char because int might match the return type of a GCC 21166 builtin and then its argument prototype would still apply. */ 21167#ifdef __cplusplus 21168extern "C" 21169#endif 21170char socket (); 21171int 21172main () 21173{ 21174return socket (); 21175 ; 21176 return 0; 21177} 21178_ACEOF 21179for ac_lib in '' socket; do 21180 if test -z "$ac_lib"; then 21181 ac_res="none required" 21182 else 21183 ac_res=-l$ac_lib 21184 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21185 fi 21186 if ac_fn_c_try_link "$LINENO"; then : 21187 ac_cv_search_socket=$ac_res 21188fi 21189rm -f core conftest.err conftest.$ac_objext \ 21190 conftest$ac_exeext 21191 if ${ac_cv_search_socket+:} false; then : 21192 break 21193fi 21194done 21195if ${ac_cv_search_socket+:} false; then : 21196 21197else 21198 ac_cv_search_socket=no 21199fi 21200rm conftest.$ac_ext 21201LIBS=$ac_func_search_save_LIBS 21202fi 21203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21204$as_echo "$ac_cv_search_socket" >&6; } 21205ac_res=$ac_cv_search_socket 21206if test "$ac_res" != no; then : 21207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21208 21209else 21210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 21211$as_echo_n "checking for socket in -lnsl... " >&6; } 21212if ${ac_cv_lib_nsl_socket+:} false; then : 21213 $as_echo_n "(cached) " >&6 21214else 21215 ac_check_lib_save_LIBS=$LIBS 21216LIBS="-lnsl -lsocket $LIBS" 21217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21218/* end confdefs.h. */ 21219 21220/* Override any GCC internal prototype to avoid an error. 21221 Use char because int might match the return type of a GCC 21222 builtin and then its argument prototype would still apply. */ 21223#ifdef __cplusplus 21224extern "C" 21225#endif 21226char socket (); 21227int 21228main () 21229{ 21230return socket (); 21231 ; 21232 return 0; 21233} 21234_ACEOF 21235if ac_fn_c_try_link "$LINENO"; then : 21236 ac_cv_lib_nsl_socket=yes 21237else 21238 ac_cv_lib_nsl_socket=no 21239fi 21240rm -f core conftest.err conftest.$ac_objext \ 21241 conftest$ac_exeext conftest.$ac_ext 21242LIBS=$ac_check_lib_save_LIBS 21243fi 21244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 21245$as_echo "$ac_cv_lib_nsl_socket" >&6; } 21246if test "x$ac_cv_lib_nsl_socket" = xyes; then : 21247 LIBS="-lnsl -lsocket $LIBS" 21248fi 21249 21250fi 21251 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 21253$as_echo_n "checking for library containing crypt... " >&6; } 21254if ${ac_cv_search_crypt+:} false; then : 21255 $as_echo_n "(cached) " >&6 21256else 21257 ac_func_search_save_LIBS=$LIBS 21258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21259/* end confdefs.h. */ 21260 21261/* Override any GCC internal prototype to avoid an error. 21262 Use char because int might match the return type of a GCC 21263 builtin and then its argument prototype would still apply. */ 21264#ifdef __cplusplus 21265extern "C" 21266#endif 21267char crypt (); 21268int 21269main () 21270{ 21271return crypt (); 21272 ; 21273 return 0; 21274} 21275_ACEOF 21276for ac_lib in '' crypt; do 21277 if test -z "$ac_lib"; then 21278 ac_res="none required" 21279 else 21280 ac_res=-l$ac_lib 21281 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21282 fi 21283 if ac_fn_c_try_link "$LINENO"; then : 21284 ac_cv_search_crypt=$ac_res 21285fi 21286rm -f core conftest.err conftest.$ac_objext \ 21287 conftest$ac_exeext 21288 if ${ac_cv_search_crypt+:} false; then : 21289 break 21290fi 21291done 21292if ${ac_cv_search_crypt+:} false; then : 21293 21294else 21295 ac_cv_search_crypt=no 21296fi 21297rm conftest.$ac_ext 21298LIBS=$ac_func_search_save_LIBS 21299fi 21300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 21301$as_echo "$ac_cv_search_crypt" >&6; } 21302ac_res=$ac_cv_search_crypt 21303if test "$ac_res" != no; then : 21304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21305 21306fi 21307 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 21309$as_echo_n "checking for library containing roken_concat... " >&6; } 21310if ${ac_cv_search_roken_concat+:} false; then : 21311 $as_echo_n "(cached) " >&6 21312else 21313 ac_func_search_save_LIBS=$LIBS 21314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21315/* end confdefs.h. */ 21316 21317/* Override any GCC internal prototype to avoid an error. 21318 Use char because int might match the return type of a GCC 21319 builtin and then its argument prototype would still apply. */ 21320#ifdef __cplusplus 21321extern "C" 21322#endif 21323char roken_concat (); 21324int 21325main () 21326{ 21327return roken_concat (); 21328 ; 21329 return 0; 21330} 21331_ACEOF 21332for ac_lib in '' roken; do 21333 if test -z "$ac_lib"; then 21334 ac_res="none required" 21335 else 21336 ac_res=-l$ac_lib 21337 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21338 fi 21339 if ac_fn_c_try_link "$LINENO"; then : 21340 ac_cv_search_roken_concat=$ac_res 21341fi 21342rm -f core conftest.err conftest.$ac_objext \ 21343 conftest$ac_exeext 21344 if ${ac_cv_search_roken_concat+:} false; then : 21345 break 21346fi 21347done 21348if ${ac_cv_search_roken_concat+:} false; then : 21349 21350else 21351 ac_cv_search_roken_concat=no 21352fi 21353rm conftest.$ac_ext 21354LIBS=$ac_func_search_save_LIBS 21355fi 21356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 21357$as_echo "$ac_cv_search_roken_concat" >&6; } 21358ac_res=$ac_cv_search_roken_concat 21359if test "$ac_res" != no; then : 21360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21361 21362fi 21363 21364 rra_gssapi_extra="$LIBS" 21365 LIBS="$rra_gssapi_save_LIBS" 21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 21367$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 21368if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 21369 $as_echo_n "(cached) " >&6 21370else 21371 ac_check_lib_save_LIBS=$LIBS 21372LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 21373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21374/* end confdefs.h. */ 21375 21376/* Override any GCC internal prototype to avoid an error. 21377 Use char because int might match the return type of a GCC 21378 builtin and then its argument prototype would still apply. */ 21379#ifdef __cplusplus 21380extern "C" 21381#endif 21382char gss_import_name (); 21383int 21384main () 21385{ 21386return gss_import_name (); 21387 ; 21388 return 0; 21389} 21390_ACEOF 21391if ac_fn_c_try_link "$LINENO"; then : 21392 ac_cv_lib_gssapi_gss_import_name=yes 21393else 21394 ac_cv_lib_gssapi_gss_import_name=no 21395fi 21396rm -f core conftest.err conftest.$ac_objext \ 21397 conftest$ac_exeext conftest.$ac_ext 21398LIBS=$ac_check_lib_save_LIBS 21399fi 21400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 21401$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 21402if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 21403 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 21404else 21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 21406$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 21407if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 21408 $as_echo_n "(cached) " >&6 21409else 21410 ac_check_lib_save_LIBS=$LIBS 21411LIBS="-lkrb5support $LIBS" 21412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21413/* end confdefs.h. */ 21414 21415/* Override any GCC internal prototype to avoid an error. 21416 Use char because int might match the return type of a GCC 21417 builtin and then its argument prototype would still apply. */ 21418#ifdef __cplusplus 21419extern "C" 21420#endif 21421char krb5int_getspecific (); 21422int 21423main () 21424{ 21425return krb5int_getspecific (); 21426 ; 21427 return 0; 21428} 21429_ACEOF 21430if ac_fn_c_try_link "$LINENO"; then : 21431 ac_cv_lib_krb5support_krb5int_getspecific=yes 21432else 21433 ac_cv_lib_krb5support_krb5int_getspecific=no 21434fi 21435rm -f core conftest.err conftest.$ac_objext \ 21436 conftest$ac_exeext conftest.$ac_ext 21437LIBS=$ac_check_lib_save_LIBS 21438fi 21439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 21440$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 21441if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 21442 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 21443else 21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 21445$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 21446if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 21447 $as_echo_n "(cached) " >&6 21448else 21449 ac_check_lib_save_LIBS=$LIBS 21450LIBS="-lpthreads $LIBS" 21451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21452/* end confdefs.h. */ 21453 21454/* Override any GCC internal prototype to avoid an error. 21455 Use char because int might match the return type of a GCC 21456 builtin and then its argument prototype would still apply. */ 21457#ifdef __cplusplus 21458extern "C" 21459#endif 21460char pthread_setspecific (); 21461int 21462main () 21463{ 21464return pthread_setspecific (); 21465 ; 21466 return 0; 21467} 21468_ACEOF 21469if ac_fn_c_try_link "$LINENO"; then : 21470 ac_cv_lib_pthreads_pthread_setspecific=yes 21471else 21472 ac_cv_lib_pthreads_pthread_setspecific=no 21473fi 21474rm -f core conftest.err conftest.$ac_objext \ 21475 conftest$ac_exeext conftest.$ac_ext 21476LIBS=$ac_check_lib_save_LIBS 21477fi 21478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 21479$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 21480if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 21481 rra_gssapi_pthread="-lpthreads" 21482else 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 21484$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 21485if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 21486 $as_echo_n "(cached) " >&6 21487else 21488 ac_check_lib_save_LIBS=$LIBS 21489LIBS="-lpthread $LIBS" 21490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21491/* end confdefs.h. */ 21492 21493/* Override any GCC internal prototype to avoid an error. 21494 Use char because int might match the return type of a GCC 21495 builtin and then its argument prototype would still apply. */ 21496#ifdef __cplusplus 21497extern "C" 21498#endif 21499char pthread_setspecific (); 21500int 21501main () 21502{ 21503return pthread_setspecific (); 21504 ; 21505 return 0; 21506} 21507_ACEOF 21508if ac_fn_c_try_link "$LINENO"; then : 21509 ac_cv_lib_pthread_pthread_setspecific=yes 21510else 21511 ac_cv_lib_pthread_pthread_setspecific=no 21512fi 21513rm -f core conftest.err conftest.$ac_objext \ 21514 conftest$ac_exeext conftest.$ac_ext 21515LIBS=$ac_check_lib_save_LIBS 21516fi 21517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 21518$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 21519if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 21520 rra_gssapi_pthread="-lpthread" 21521fi 21522 21523fi 21524 21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 21526$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 21527if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 21528 $as_echo_n "(cached) " >&6 21529else 21530 ac_check_lib_save_LIBS=$LIBS 21531LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 21532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21533/* end confdefs.h. */ 21534 21535/* Override any GCC internal prototype to avoid an error. 21536 Use char because int might match the return type of a GCC 21537 builtin and then its argument prototype would still apply. */ 21538#ifdef __cplusplus 21539extern "C" 21540#endif 21541char krb5int_setspecific (); 21542int 21543main () 21544{ 21545return krb5int_setspecific (); 21546 ; 21547 return 0; 21548} 21549_ACEOF 21550if ac_fn_c_try_link "$LINENO"; then : 21551 ac_cv_lib_krb5support_krb5int_setspecific=yes 21552else 21553 ac_cv_lib_krb5support_krb5int_setspecific=no 21554fi 21555rm -f core conftest.err conftest.$ac_objext \ 21556 conftest$ac_exeext conftest.$ac_ext 21557LIBS=$ac_check_lib_save_LIBS 21558fi 21559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 21560$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 21561if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 21562 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 21563 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 21564fi 21565 21566fi 21567 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 21569$as_echo_n "checking for error_message in -lcom_err... " >&6; } 21570if ${ac_cv_lib_com_err_error_message+:} false; then : 21571 $as_echo_n "(cached) " >&6 21572else 21573 ac_check_lib_save_LIBS=$LIBS 21574LIBS="-lcom_err $LIBS" 21575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21576/* end confdefs.h. */ 21577 21578/* Override any GCC internal prototype to avoid an error. 21579 Use char because int might match the return type of a GCC 21580 builtin and then its argument prototype would still apply. */ 21581#ifdef __cplusplus 21582extern "C" 21583#endif 21584char error_message (); 21585int 21586main () 21587{ 21588return error_message (); 21589 ; 21590 return 0; 21591} 21592_ACEOF 21593if ac_fn_c_try_link "$LINENO"; then : 21594 ac_cv_lib_com_err_error_message=yes 21595else 21596 ac_cv_lib_com_err_error_message=no 21597fi 21598rm -f core conftest.err conftest.$ac_objext \ 21599 conftest$ac_exeext conftest.$ac_ext 21600LIBS=$ac_check_lib_save_LIBS 21601fi 21602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 21603$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 21604if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 21605 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 21606fi 21607 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 21609$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 21610if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 21611 $as_echo_n "(cached) " >&6 21612else 21613 ac_check_lib_save_LIBS=$LIBS 21614LIBS="-lk5crypto $LIBS" 21615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21616/* end confdefs.h. */ 21617 21618/* Override any GCC internal prototype to avoid an error. 21619 Use char because int might match the return type of a GCC 21620 builtin and then its argument prototype would still apply. */ 21621#ifdef __cplusplus 21622extern "C" 21623#endif 21624char krb5int_hash_md5 (); 21625int 21626main () 21627{ 21628return krb5int_hash_md5 (); 21629 ; 21630 return 0; 21631} 21632_ACEOF 21633if ac_fn_c_try_link "$LINENO"; then : 21634 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 21635else 21636 ac_cv_lib_k5crypto_krb5int_hash_md5=no 21637fi 21638rm -f core conftest.err conftest.$ac_objext \ 21639 conftest$ac_exeext conftest.$ac_ext 21640LIBS=$ac_check_lib_save_LIBS 21641fi 21642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 21643$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 21644if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 21645 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 21646fi 21647 21648 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 21650$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 21651if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 21652 $as_echo_n "(cached) " >&6 21653else 21654 ac_check_lib_save_LIBS=$LIBS 21655LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 21656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21657/* end confdefs.h. */ 21658 21659/* Override any GCC internal prototype to avoid an error. 21660 Use char because int might match the return type of a GCC 21661 builtin and then its argument prototype would still apply. */ 21662#ifdef __cplusplus 21663extern "C" 21664#endif 21665char gss_import_name (); 21666int 21667main () 21668{ 21669return gss_import_name (); 21670 ; 21671 return 0; 21672} 21673_ACEOF 21674if ac_fn_c_try_link "$LINENO"; then : 21675 ac_cv_lib_gssapi_krb5_gss_import_name=yes 21676else 21677 ac_cv_lib_gssapi_krb5_gss_import_name=no 21678fi 21679rm -f core conftest.err conftest.$ac_objext \ 21680 conftest$ac_exeext conftest.$ac_ext 21681LIBS=$ac_check_lib_save_LIBS 21682fi 21683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 21684$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 21685if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 21686 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 21687else 21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 21689$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 21690if ${ac_cv_lib_gss_gss_import_name+:} false; then : 21691 $as_echo_n "(cached) " >&6 21692else 21693 ac_check_lib_save_LIBS=$LIBS 21694LIBS="-lgss $LIBS" 21695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21696/* end confdefs.h. */ 21697 21698/* Override any GCC internal prototype to avoid an error. 21699 Use char because int might match the return type of a GCC 21700 builtin and then its argument prototype would still apply. */ 21701#ifdef __cplusplus 21702extern "C" 21703#endif 21704char gss_import_name (); 21705int 21706main () 21707{ 21708return gss_import_name (); 21709 ; 21710 return 0; 21711} 21712_ACEOF 21713if ac_fn_c_try_link "$LINENO"; then : 21714 ac_cv_lib_gss_gss_import_name=yes 21715else 21716 ac_cv_lib_gss_gss_import_name=no 21717fi 21718rm -f core conftest.err conftest.$ac_objext \ 21719 conftest$ac_exeext conftest.$ac_ext 21720LIBS=$ac_check_lib_save_LIBS 21721fi 21722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 21723$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 21724if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 21725 GSSAPI_LIBS="-lgss" 21726else 21727 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 21728fi 21729 21730fi 21731 21732fi 21733 21734 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 21735 LDFLAGS="$rra_gssapi_save_LDFLAGS" 21736 LIBS="$rra_gssapi_save_LIBS" 21737fi 21738else 21739 if test x"$rra_gssapi_libdir" != x; then : 21740 GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" 21741else 21742 if test x"$rra_gssapi_root" != x; then : 21743 21744 if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : 21745 if test x"" = x; then : 21746 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" 21747else 21748 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" 21749fi 21750else 21751 if test x"" = x; then : 21752 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" 21753else 21754 GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" 21755fi 21756fi 21757 GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` 21758fi 21759fi 21760 if test x"$rra_gssapi_includedir" != x; then : 21761 GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" 21762else 21763 if test x"$rra_gssapi_root" != x; then : 21764 if test x"$rra_gssapi_root" != x/usr; then : 21765 GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" 21766fi 21767fi 21768fi 21769 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 21770 rra_gssapi_save_LDFLAGS="$LDFLAGS" 21771 rra_gssapi_save_LIBS="$LIBS" 21772 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 21773 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 21774 LIBS="$GSSAPI_LIBS $LIBS" 21775 rra_gssapi_extra= 21776 LIBS= 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 21778$as_echo_n "checking for library containing res_search... " >&6; } 21779if ${ac_cv_search_res_search+:} false; then : 21780 $as_echo_n "(cached) " >&6 21781else 21782 ac_func_search_save_LIBS=$LIBS 21783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21784/* end confdefs.h. */ 21785 21786/* Override any GCC internal prototype to avoid an error. 21787 Use char because int might match the return type of a GCC 21788 builtin and then its argument prototype would still apply. */ 21789#ifdef __cplusplus 21790extern "C" 21791#endif 21792char res_search (); 21793int 21794main () 21795{ 21796return res_search (); 21797 ; 21798 return 0; 21799} 21800_ACEOF 21801for ac_lib in '' resolv; do 21802 if test -z "$ac_lib"; then 21803 ac_res="none required" 21804 else 21805 ac_res=-l$ac_lib 21806 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21807 fi 21808 if ac_fn_c_try_link "$LINENO"; then : 21809 ac_cv_search_res_search=$ac_res 21810fi 21811rm -f core conftest.err conftest.$ac_objext \ 21812 conftest$ac_exeext 21813 if ${ac_cv_search_res_search+:} false; then : 21814 break 21815fi 21816done 21817if ${ac_cv_search_res_search+:} false; then : 21818 21819else 21820 ac_cv_search_res_search=no 21821fi 21822rm conftest.$ac_ext 21823LIBS=$ac_func_search_save_LIBS 21824fi 21825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 21826$as_echo "$ac_cv_search_res_search" >&6; } 21827ac_res=$ac_cv_search_res_search 21828if test "$ac_res" != no; then : 21829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21830 21831else 21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 21833$as_echo_n "checking for library containing __res_search... " >&6; } 21834if ${ac_cv_search___res_search+:} false; then : 21835 $as_echo_n "(cached) " >&6 21836else 21837 ac_func_search_save_LIBS=$LIBS 21838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21839/* end confdefs.h. */ 21840 21841/* Override any GCC internal prototype to avoid an error. 21842 Use char because int might match the return type of a GCC 21843 builtin and then its argument prototype would still apply. */ 21844#ifdef __cplusplus 21845extern "C" 21846#endif 21847char __res_search (); 21848int 21849main () 21850{ 21851return __res_search (); 21852 ; 21853 return 0; 21854} 21855_ACEOF 21856for ac_lib in '' resolv; do 21857 if test -z "$ac_lib"; then 21858 ac_res="none required" 21859 else 21860 ac_res=-l$ac_lib 21861 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21862 fi 21863 if ac_fn_c_try_link "$LINENO"; then : 21864 ac_cv_search___res_search=$ac_res 21865fi 21866rm -f core conftest.err conftest.$ac_objext \ 21867 conftest$ac_exeext 21868 if ${ac_cv_search___res_search+:} false; then : 21869 break 21870fi 21871done 21872if ${ac_cv_search___res_search+:} false; then : 21873 21874else 21875 ac_cv_search___res_search=no 21876fi 21877rm conftest.$ac_ext 21878LIBS=$ac_func_search_save_LIBS 21879fi 21880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 21881$as_echo "$ac_cv_search___res_search" >&6; } 21882ac_res=$ac_cv_search___res_search 21883if test "$ac_res" != no; then : 21884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21885 21886fi 21887 21888fi 21889 21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21891$as_echo_n "checking for library containing gethostbyname... " >&6; } 21892if ${ac_cv_search_gethostbyname+:} false; then : 21893 $as_echo_n "(cached) " >&6 21894else 21895 ac_func_search_save_LIBS=$LIBS 21896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21897/* end confdefs.h. */ 21898 21899/* Override any GCC internal prototype to avoid an error. 21900 Use char because int might match the return type of a GCC 21901 builtin and then its argument prototype would still apply. */ 21902#ifdef __cplusplus 21903extern "C" 21904#endif 21905char gethostbyname (); 21906int 21907main () 21908{ 21909return gethostbyname (); 21910 ; 21911 return 0; 21912} 21913_ACEOF 21914for ac_lib in '' nsl; do 21915 if test -z "$ac_lib"; then 21916 ac_res="none required" 21917 else 21918 ac_res=-l$ac_lib 21919 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21920 fi 21921 if ac_fn_c_try_link "$LINENO"; then : 21922 ac_cv_search_gethostbyname=$ac_res 21923fi 21924rm -f core conftest.err conftest.$ac_objext \ 21925 conftest$ac_exeext 21926 if ${ac_cv_search_gethostbyname+:} false; then : 21927 break 21928fi 21929done 21930if ${ac_cv_search_gethostbyname+:} false; then : 21931 21932else 21933 ac_cv_search_gethostbyname=no 21934fi 21935rm conftest.$ac_ext 21936LIBS=$ac_func_search_save_LIBS 21937fi 21938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21939$as_echo "$ac_cv_search_gethostbyname" >&6; } 21940ac_res=$ac_cv_search_gethostbyname 21941if test "$ac_res" != no; then : 21942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21943 21944fi 21945 21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21947$as_echo_n "checking for library containing socket... " >&6; } 21948if ${ac_cv_search_socket+:} false; then : 21949 $as_echo_n "(cached) " >&6 21950else 21951 ac_func_search_save_LIBS=$LIBS 21952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21953/* end confdefs.h. */ 21954 21955/* Override any GCC internal prototype to avoid an error. 21956 Use char because int might match the return type of a GCC 21957 builtin and then its argument prototype would still apply. */ 21958#ifdef __cplusplus 21959extern "C" 21960#endif 21961char socket (); 21962int 21963main () 21964{ 21965return socket (); 21966 ; 21967 return 0; 21968} 21969_ACEOF 21970for ac_lib in '' socket; do 21971 if test -z "$ac_lib"; then 21972 ac_res="none required" 21973 else 21974 ac_res=-l$ac_lib 21975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21976 fi 21977 if ac_fn_c_try_link "$LINENO"; then : 21978 ac_cv_search_socket=$ac_res 21979fi 21980rm -f core conftest.err conftest.$ac_objext \ 21981 conftest$ac_exeext 21982 if ${ac_cv_search_socket+:} false; then : 21983 break 21984fi 21985done 21986if ${ac_cv_search_socket+:} false; then : 21987 21988else 21989 ac_cv_search_socket=no 21990fi 21991rm conftest.$ac_ext 21992LIBS=$ac_func_search_save_LIBS 21993fi 21994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21995$as_echo "$ac_cv_search_socket" >&6; } 21996ac_res=$ac_cv_search_socket 21997if test "$ac_res" != no; then : 21998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21999 22000else 22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 22002$as_echo_n "checking for socket in -lnsl... " >&6; } 22003if ${ac_cv_lib_nsl_socket+:} false; then : 22004 $as_echo_n "(cached) " >&6 22005else 22006 ac_check_lib_save_LIBS=$LIBS 22007LIBS="-lnsl -lsocket $LIBS" 22008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22009/* end confdefs.h. */ 22010 22011/* Override any GCC internal prototype to avoid an error. 22012 Use char because int might match the return type of a GCC 22013 builtin and then its argument prototype would still apply. */ 22014#ifdef __cplusplus 22015extern "C" 22016#endif 22017char socket (); 22018int 22019main () 22020{ 22021return socket (); 22022 ; 22023 return 0; 22024} 22025_ACEOF 22026if ac_fn_c_try_link "$LINENO"; then : 22027 ac_cv_lib_nsl_socket=yes 22028else 22029 ac_cv_lib_nsl_socket=no 22030fi 22031rm -f core conftest.err conftest.$ac_objext \ 22032 conftest$ac_exeext conftest.$ac_ext 22033LIBS=$ac_check_lib_save_LIBS 22034fi 22035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 22036$as_echo "$ac_cv_lib_nsl_socket" >&6; } 22037if test "x$ac_cv_lib_nsl_socket" = xyes; then : 22038 LIBS="-lnsl -lsocket $LIBS" 22039fi 22040 22041fi 22042 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 22044$as_echo_n "checking for library containing crypt... " >&6; } 22045if ${ac_cv_search_crypt+:} false; then : 22046 $as_echo_n "(cached) " >&6 22047else 22048 ac_func_search_save_LIBS=$LIBS 22049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22050/* end confdefs.h. */ 22051 22052/* Override any GCC internal prototype to avoid an error. 22053 Use char because int might match the return type of a GCC 22054 builtin and then its argument prototype would still apply. */ 22055#ifdef __cplusplus 22056extern "C" 22057#endif 22058char crypt (); 22059int 22060main () 22061{ 22062return crypt (); 22063 ; 22064 return 0; 22065} 22066_ACEOF 22067for ac_lib in '' crypt; do 22068 if test -z "$ac_lib"; then 22069 ac_res="none required" 22070 else 22071 ac_res=-l$ac_lib 22072 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22073 fi 22074 if ac_fn_c_try_link "$LINENO"; then : 22075 ac_cv_search_crypt=$ac_res 22076fi 22077rm -f core conftest.err conftest.$ac_objext \ 22078 conftest$ac_exeext 22079 if ${ac_cv_search_crypt+:} false; then : 22080 break 22081fi 22082done 22083if ${ac_cv_search_crypt+:} false; then : 22084 22085else 22086 ac_cv_search_crypt=no 22087fi 22088rm conftest.$ac_ext 22089LIBS=$ac_func_search_save_LIBS 22090fi 22091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 22092$as_echo "$ac_cv_search_crypt" >&6; } 22093ac_res=$ac_cv_search_crypt 22094if test "$ac_res" != no; then : 22095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22096 22097fi 22098 22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 22100$as_echo_n "checking for library containing roken_concat... " >&6; } 22101if ${ac_cv_search_roken_concat+:} false; then : 22102 $as_echo_n "(cached) " >&6 22103else 22104 ac_func_search_save_LIBS=$LIBS 22105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22106/* end confdefs.h. */ 22107 22108/* Override any GCC internal prototype to avoid an error. 22109 Use char because int might match the return type of a GCC 22110 builtin and then its argument prototype would still apply. */ 22111#ifdef __cplusplus 22112extern "C" 22113#endif 22114char roken_concat (); 22115int 22116main () 22117{ 22118return roken_concat (); 22119 ; 22120 return 0; 22121} 22122_ACEOF 22123for ac_lib in '' roken; do 22124 if test -z "$ac_lib"; then 22125 ac_res="none required" 22126 else 22127 ac_res=-l$ac_lib 22128 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22129 fi 22130 if ac_fn_c_try_link "$LINENO"; then : 22131 ac_cv_search_roken_concat=$ac_res 22132fi 22133rm -f core conftest.err conftest.$ac_objext \ 22134 conftest$ac_exeext 22135 if ${ac_cv_search_roken_concat+:} false; then : 22136 break 22137fi 22138done 22139if ${ac_cv_search_roken_concat+:} false; then : 22140 22141else 22142 ac_cv_search_roken_concat=no 22143fi 22144rm conftest.$ac_ext 22145LIBS=$ac_func_search_save_LIBS 22146fi 22147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 22148$as_echo "$ac_cv_search_roken_concat" >&6; } 22149ac_res=$ac_cv_search_roken_concat 22150if test "$ac_res" != no; then : 22151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22152 22153fi 22154 22155 rra_gssapi_extra="$LIBS" 22156 LIBS="$rra_gssapi_save_LIBS" 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 22158$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } 22159if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : 22160 $as_echo_n "(cached) " >&6 22161else 22162 ac_check_lib_save_LIBS=$LIBS 22163LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" 22164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22165/* end confdefs.h. */ 22166 22167/* Override any GCC internal prototype to avoid an error. 22168 Use char because int might match the return type of a GCC 22169 builtin and then its argument prototype would still apply. */ 22170#ifdef __cplusplus 22171extern "C" 22172#endif 22173char gss_import_name (); 22174int 22175main () 22176{ 22177return gss_import_name (); 22178 ; 22179 return 0; 22180} 22181_ACEOF 22182if ac_fn_c_try_link "$LINENO"; then : 22183 ac_cv_lib_gssapi_gss_import_name=yes 22184else 22185 ac_cv_lib_gssapi_gss_import_name=no 22186fi 22187rm -f core conftest.err conftest.$ac_objext \ 22188 conftest$ac_exeext conftest.$ac_ext 22189LIBS=$ac_check_lib_save_LIBS 22190fi 22191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 22192$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } 22193if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : 22194 GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" 22195else 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 22197$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } 22198if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : 22199 $as_echo_n "(cached) " >&6 22200else 22201 ac_check_lib_save_LIBS=$LIBS 22202LIBS="-lkrb5support $LIBS" 22203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22204/* end confdefs.h. */ 22205 22206/* Override any GCC internal prototype to avoid an error. 22207 Use char because int might match the return type of a GCC 22208 builtin and then its argument prototype would still apply. */ 22209#ifdef __cplusplus 22210extern "C" 22211#endif 22212char krb5int_getspecific (); 22213int 22214main () 22215{ 22216return krb5int_getspecific (); 22217 ; 22218 return 0; 22219} 22220_ACEOF 22221if ac_fn_c_try_link "$LINENO"; then : 22222 ac_cv_lib_krb5support_krb5int_getspecific=yes 22223else 22224 ac_cv_lib_krb5support_krb5int_getspecific=no 22225fi 22226rm -f core conftest.err conftest.$ac_objext \ 22227 conftest$ac_exeext conftest.$ac_ext 22228LIBS=$ac_check_lib_save_LIBS 22229fi 22230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 22231$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } 22232if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : 22233 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 22234else 22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 22236$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } 22237if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : 22238 $as_echo_n "(cached) " >&6 22239else 22240 ac_check_lib_save_LIBS=$LIBS 22241LIBS="-lpthreads $LIBS" 22242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22243/* end confdefs.h. */ 22244 22245/* Override any GCC internal prototype to avoid an error. 22246 Use char because int might match the return type of a GCC 22247 builtin and then its argument prototype would still apply. */ 22248#ifdef __cplusplus 22249extern "C" 22250#endif 22251char pthread_setspecific (); 22252int 22253main () 22254{ 22255return pthread_setspecific (); 22256 ; 22257 return 0; 22258} 22259_ACEOF 22260if ac_fn_c_try_link "$LINENO"; then : 22261 ac_cv_lib_pthreads_pthread_setspecific=yes 22262else 22263 ac_cv_lib_pthreads_pthread_setspecific=no 22264fi 22265rm -f core conftest.err conftest.$ac_objext \ 22266 conftest$ac_exeext conftest.$ac_ext 22267LIBS=$ac_check_lib_save_LIBS 22268fi 22269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 22270$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } 22271if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : 22272 rra_gssapi_pthread="-lpthreads" 22273else 22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 22275$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } 22276if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : 22277 $as_echo_n "(cached) " >&6 22278else 22279 ac_check_lib_save_LIBS=$LIBS 22280LIBS="-lpthread $LIBS" 22281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22282/* end confdefs.h. */ 22283 22284/* Override any GCC internal prototype to avoid an error. 22285 Use char because int might match the return type of a GCC 22286 builtin and then its argument prototype would still apply. */ 22287#ifdef __cplusplus 22288extern "C" 22289#endif 22290char pthread_setspecific (); 22291int 22292main () 22293{ 22294return pthread_setspecific (); 22295 ; 22296 return 0; 22297} 22298_ACEOF 22299if ac_fn_c_try_link "$LINENO"; then : 22300 ac_cv_lib_pthread_pthread_setspecific=yes 22301else 22302 ac_cv_lib_pthread_pthread_setspecific=no 22303fi 22304rm -f core conftest.err conftest.$ac_objext \ 22305 conftest$ac_exeext conftest.$ac_ext 22306LIBS=$ac_check_lib_save_LIBS 22307fi 22308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 22309$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } 22310if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : 22311 rra_gssapi_pthread="-lpthread" 22312fi 22313 22314fi 22315 22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 22317$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } 22318if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : 22319 $as_echo_n "(cached) " >&6 22320else 22321 ac_check_lib_save_LIBS=$LIBS 22322LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" 22323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22324/* end confdefs.h. */ 22325 22326/* Override any GCC internal prototype to avoid an error. 22327 Use char because int might match the return type of a GCC 22328 builtin and then its argument prototype would still apply. */ 22329#ifdef __cplusplus 22330extern "C" 22331#endif 22332char krb5int_setspecific (); 22333int 22334main () 22335{ 22336return krb5int_setspecific (); 22337 ; 22338 return 0; 22339} 22340_ACEOF 22341if ac_fn_c_try_link "$LINENO"; then : 22342 ac_cv_lib_krb5support_krb5int_setspecific=yes 22343else 22344 ac_cv_lib_krb5support_krb5int_setspecific=no 22345fi 22346rm -f core conftest.err conftest.$ac_objext \ 22347 conftest$ac_exeext conftest.$ac_ext 22348LIBS=$ac_check_lib_save_LIBS 22349fi 22350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 22351$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } 22352if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : 22353 rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" 22354 rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" 22355fi 22356 22357fi 22358 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 22360$as_echo_n "checking for error_message in -lcom_err... " >&6; } 22361if ${ac_cv_lib_com_err_error_message+:} false; then : 22362 $as_echo_n "(cached) " >&6 22363else 22364 ac_check_lib_save_LIBS=$LIBS 22365LIBS="-lcom_err $LIBS" 22366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22367/* end confdefs.h. */ 22368 22369/* Override any GCC internal prototype to avoid an error. 22370 Use char because int might match the return type of a GCC 22371 builtin and then its argument prototype would still apply. */ 22372#ifdef __cplusplus 22373extern "C" 22374#endif 22375char error_message (); 22376int 22377main () 22378{ 22379return error_message (); 22380 ; 22381 return 0; 22382} 22383_ACEOF 22384if ac_fn_c_try_link "$LINENO"; then : 22385 ac_cv_lib_com_err_error_message=yes 22386else 22387 ac_cv_lib_com_err_error_message=no 22388fi 22389rm -f core conftest.err conftest.$ac_objext \ 22390 conftest$ac_exeext conftest.$ac_ext 22391LIBS=$ac_check_lib_save_LIBS 22392fi 22393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 22394$as_echo "$ac_cv_lib_com_err_error_message" >&6; } 22395if test "x$ac_cv_lib_com_err_error_message" = xyes; then : 22396 rra_gssapi_extra="-lcom_err $rra_gssapi_extra" 22397fi 22398 22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 22400$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } 22401if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : 22402 $as_echo_n "(cached) " >&6 22403else 22404 ac_check_lib_save_LIBS=$LIBS 22405LIBS="-lk5crypto $LIBS" 22406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22407/* end confdefs.h. */ 22408 22409/* Override any GCC internal prototype to avoid an error. 22410 Use char because int might match the return type of a GCC 22411 builtin and then its argument prototype would still apply. */ 22412#ifdef __cplusplus 22413extern "C" 22414#endif 22415char krb5int_hash_md5 (); 22416int 22417main () 22418{ 22419return krb5int_hash_md5 (); 22420 ; 22421 return 0; 22422} 22423_ACEOF 22424if ac_fn_c_try_link "$LINENO"; then : 22425 ac_cv_lib_k5crypto_krb5int_hash_md5=yes 22426else 22427 ac_cv_lib_k5crypto_krb5int_hash_md5=no 22428fi 22429rm -f core conftest.err conftest.$ac_objext \ 22430 conftest$ac_exeext conftest.$ac_ext 22431LIBS=$ac_check_lib_save_LIBS 22432fi 22433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 22434$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } 22435if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : 22436 rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" 22437fi 22438 22439 rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 22441$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } 22442if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : 22443 $as_echo_n "(cached) " >&6 22444else 22445 ac_check_lib_save_LIBS=$LIBS 22446LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" 22447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22448/* end confdefs.h. */ 22449 22450/* Override any GCC internal prototype to avoid an error. 22451 Use char because int might match the return type of a GCC 22452 builtin and then its argument prototype would still apply. */ 22453#ifdef __cplusplus 22454extern "C" 22455#endif 22456char gss_import_name (); 22457int 22458main () 22459{ 22460return gss_import_name (); 22461 ; 22462 return 0; 22463} 22464_ACEOF 22465if ac_fn_c_try_link "$LINENO"; then : 22466 ac_cv_lib_gssapi_krb5_gss_import_name=yes 22467else 22468 ac_cv_lib_gssapi_krb5_gss_import_name=no 22469fi 22470rm -f core conftest.err conftest.$ac_objext \ 22471 conftest$ac_exeext conftest.$ac_ext 22472LIBS=$ac_check_lib_save_LIBS 22473fi 22474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 22475$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } 22476if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : 22477 GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" 22478else 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 22480$as_echo_n "checking for gss_import_name in -lgss... " >&6; } 22481if ${ac_cv_lib_gss_gss_import_name+:} false; then : 22482 $as_echo_n "(cached) " >&6 22483else 22484 ac_check_lib_save_LIBS=$LIBS 22485LIBS="-lgss $LIBS" 22486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22487/* end confdefs.h. */ 22488 22489/* Override any GCC internal prototype to avoid an error. 22490 Use char because int might match the return type of a GCC 22491 builtin and then its argument prototype would still apply. */ 22492#ifdef __cplusplus 22493extern "C" 22494#endif 22495char gss_import_name (); 22496int 22497main () 22498{ 22499return gss_import_name (); 22500 ; 22501 return 0; 22502} 22503_ACEOF 22504if ac_fn_c_try_link "$LINENO"; then : 22505 ac_cv_lib_gss_gss_import_name=yes 22506else 22507 ac_cv_lib_gss_gss_import_name=no 22508fi 22509rm -f core conftest.err conftest.$ac_objext \ 22510 conftest$ac_exeext conftest.$ac_ext 22511LIBS=$ac_check_lib_save_LIBS 22512fi 22513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 22514$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } 22515if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : 22516 GSSAPI_LIBS="-lgss" 22517else 22518 as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 22519fi 22520 22521fi 22522 22523fi 22524 22525 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 22526 LDFLAGS="$rra_gssapi_save_LDFLAGS" 22527 LIBS="$rra_gssapi_save_LIBS" 22528fi 22529fi 22530 22531 rra_gssapi_save_CPPFLAGS="$CPPFLAGS" 22532 rra_gssapi_save_LDFLAGS="$LDFLAGS" 22533 rra_gssapi_save_LIBS="$LIBS" 22534 CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" 22535 LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" 22536 LIBS="$GSSAPI_LIBS $LIBS" 22537 rra_gssapi_incroot= 22538 if test x"$rra_gssapi_includedir" != x; then : 22539 rra_gssapi_incroot="$rra_gssapi_includedir" 22540else 22541 if test x"$rra_gssapi_root" != x; then : 22542 rra_gssapi_incroot="${rra_gssapi_root}/include" 22543fi 22544fi 22545 if test x"$rra_gssapi_incroot" = x; then : 22546 for ac_header in gssapi/gssapi.h gssapi/gssapi_krb5.h 22547do : 22548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22549ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22550if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22551 cat >>confdefs.h <<_ACEOF 22552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22553_ACEOF 22554 22555fi 22556 22557done 22558 22559else 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi.h" >&5 22561$as_echo_n "checking for gssapi/gssapi.h... " >&6; } 22562 if test -f "${rra_gssapi_incroot}/gssapi/gssapi.h"; then : 22563 22564cat >>confdefs.h <<_ACEOF 22565#define HAVE_GSSAPI_GSSAPI_H 1 22566_ACEOF 22567 22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22569$as_echo "yes" >&6; } 22570else 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22572$as_echo "no" >&6; } 22573fi 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi_krb5.h" >&5 22575$as_echo_n "checking for gssapi/gssapi_krb5.h... " >&6; } 22576 if test -f "${rra_gssapi_incroot}/gssapi/gssapi_krb5.h"; then : 22577 22578cat >>confdefs.h <<_ACEOF 22579#define HAVE_GSSAPI_GSSAPI_KRB5_H 1 22580_ACEOF 22581 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22583$as_echo "yes" >&6; } 22584else 22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22586$as_echo "no" >&6; } 22587fi 22588fi 22589 ac_fn_c_check_decl "$LINENO" "GSS_C_NT_USER_NAME" "ac_cv_have_decl_GSS_C_NT_USER_NAME" " 22590#ifdef HAVE_GSSAPI_GSSAPI_H 22591# include <gssapi/gssapi.h> 22592#else 22593# include <gssapi.h> 22594#endif 22595#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H 22596# include <gssapi/gssapi_krb5.h> 22597#endif 22598 22599" 22600if test "x$ac_cv_have_decl_GSS_C_NT_USER_NAME" = xyes; then : 22601 22602$as_echo "#define HAVE_GSS_RFC_OIDS 1" >>confdefs.h 22603 22604fi 22605 22606 CPPFLAGS="$rra_gssapi_save_CPPFLAGS" 22607 LDFLAGS="$rra_gssapi_save_LDFLAGS" 22608 LIBS="$rra_gssapi_save_LIBS" 22609 REMCTL_CPPFLAGS="$REMCTL_CPPFLAGS $GSSAPI_CPPFLAGS" 22610 REMCTL_LDFLAGS="$REMCTL_LDFLAGS $GSSAPI_LDFLAGS" 22611 REMCTL_LIBS="-lremctl $GSSAPI_LIBS" 22612fi 22613 rra_remctl_save_CPPFLAGS="$CPPFLAGS" 22614 rra_remctl_save_LDFLAGS="$LDFLAGS" 22615 rra_remctl_save_LIBS="$LIBS" 22616 CPPFLAGS="$REMCTL_CPPFLAGS $CPPFLAGS" 22617 LDFLAGS="$REMCTL_LDFLAGS $LDFLAGS" 22618 LIBS="$REMCTL_LIBS $LIBS" 22619 ac_fn_c_check_func "$LINENO" "remctl_open" "ac_cv_func_remctl_open" 22620if test "x$ac_cv_func_remctl_open" = xyes; then : 22621 22622else 22623 if test x"false" = xtrue; then : 22624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22626as_fn_error $? "unable to link with remctl library 22627See \`config.log' for more details" "$LINENO" 5; } 22628fi 22629 REMCTL_CPPFLAGS= 22630 REMCTL_LDFLAGS= 22631 REMCTL_LIBS= 22632fi 22633 22634 CPPFLAGS="$rra_remctl_save_CPPFLAGS" 22635 LDFLAGS="$rra_remctl_save_LDFLAGS" 22636 LIBS="$rra_remctl_save_LIBS" 22637fi 22638fi 22639 if test x"$REMCTL_LIBS" != x; then : 22640 rra_use_remctl=true 22641 22642$as_echo "#define HAVE_REMCTL 1" >>confdefs.h 22643 22644fi 22645if test x"$rra_use_remctl" = x"true"; then : 22646 rra_remctl_save_CPPFLAGS="$CPPFLAGS" 22647 rra_remctl_save_LDFLAGS="$LDFLAGS" 22648 rra_remctl_save_LIBS="$LIBS" 22649 CPPFLAGS="$REMCTL_CPPFLAGS $CPPFLAGS" 22650 LDFLAGS="$REMCTL_LDFLAGS $LDFLAGS" 22651 LIBS="$REMCTL_LIBS $LIBS" 22652 for ac_func in remctl_set_ccache remctl_set_timeout 22653do : 22654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22655ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22656if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22657 cat >>confdefs.h <<_ACEOF 22658#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22659_ACEOF 22660 22661fi 22662done 22663 22664 CPPFLAGS="$rra_remctl_save_CPPFLAGS" 22665 LDFLAGS="$rra_remctl_save_LDFLAGS" 22666 LIBS="$rra_remctl_save_LIBS" 22667fi 22668 22669 22670 22671 22672 22673 22674 22675if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22676 if test -n "$ac_tool_prefix"; then 22677 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22678set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22680$as_echo_n "checking for $ac_word... " >&6; } 22681if ${ac_cv_path_PKG_CONFIG+:} false; then : 22682 $as_echo_n "(cached) " >&6 22683else 22684 case $PKG_CONFIG in 22685 [\\/]* | ?:[\\/]*) 22686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22687 ;; 22688 *) 22689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22690for as_dir in $PATH 22691do 22692 IFS=$as_save_IFS 22693 test -z "$as_dir" && as_dir=. 22694 for ac_exec_ext in '' $ac_executable_extensions; do 22695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22698 break 2 22699 fi 22700done 22701 done 22702IFS=$as_save_IFS 22703 22704 ;; 22705esac 22706fi 22707PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22708if test -n "$PKG_CONFIG"; then 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22710$as_echo "$PKG_CONFIG" >&6; } 22711else 22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22713$as_echo "no" >&6; } 22714fi 22715 22716 22717fi 22718if test -z "$ac_cv_path_PKG_CONFIG"; then 22719 ac_pt_PKG_CONFIG=$PKG_CONFIG 22720 # Extract the first word of "pkg-config", so it can be a program name with args. 22721set dummy pkg-config; ac_word=$2 22722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22723$as_echo_n "checking for $ac_word... " >&6; } 22724if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 22725 $as_echo_n "(cached) " >&6 22726else 22727 case $ac_pt_PKG_CONFIG in 22728 [\\/]* | ?:[\\/]*) 22729 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22730 ;; 22731 *) 22732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22733for as_dir in $PATH 22734do 22735 IFS=$as_save_IFS 22736 test -z "$as_dir" && as_dir=. 22737 for ac_exec_ext in '' $ac_executable_extensions; do 22738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22739 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22741 break 2 22742 fi 22743done 22744 done 22745IFS=$as_save_IFS 22746 22747 ;; 22748esac 22749fi 22750ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22751if test -n "$ac_pt_PKG_CONFIG"; then 22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 22753$as_echo "$ac_pt_PKG_CONFIG" >&6; } 22754else 22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22756$as_echo "no" >&6; } 22757fi 22758 22759 if test "x$ac_pt_PKG_CONFIG" = x; then 22760 PKG_CONFIG="" 22761 else 22762 case $cross_compiling:$ac_tool_warned in 22763yes:) 22764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22766ac_tool_warned=yes ;; 22767esac 22768 PKG_CONFIG=$ac_pt_PKG_CONFIG 22769 fi 22770else 22771 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22772fi 22773 22774fi 22775if test -n "$PKG_CONFIG"; then 22776 _pkg_min_version=0.9.0 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 22778$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 22779 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22781$as_echo "yes" >&6; } 22782 else 22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22784$as_echo "no" >&6; } 22785 PKG_CONFIG="" 22786 fi 22787fi 22788rra_JANSSON_root= 22789 rra_JANSSON_libdir= 22790 rra_JANSSON_includedir= 22791 rra_use_JANSSON= 22792 JANSSON_CPPFLAGS= 22793 JANSSON_LDFLAGS= 22794 JANSSON_LIBS= 22795 22796 22797 22798 22799# Check whether --with-jansson was given. 22800if test "${with_jansson+set}" = set; then : 22801 withval=$with_jansson; if test x"$withval" = xno; then : 22802 rra_use_JANSSON=false 22803else 22804 if test x"$withval" != xyes; then : 22805 rra_JANSSON_root="$withval" 22806fi 22807 rra_use_JANSSON=true 22808fi 22809fi 22810 22811 22812# Check whether --with-jansson-include was given. 22813if test "${with_jansson_include+set}" = set; then : 22814 withval=$with_jansson_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 22815 rra_JANSSON_includedir="$withval" 22816fi 22817fi 22818 22819 22820# Check whether --with-jansson-lib was given. 22821if test "${with_jansson_lib+set}" = set; then : 22822 withval=$with_jansson_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 22823 rra_JANSSON_libdir="$withval" 22824fi 22825fi 22826 22827 if test x"$rra_use_JANSSON" != xfalse; then : 22828 if test x"$rra_use_JANSSON" = xtrue; then : 22829 if test x"$rra_JANSSON_libdir" != x; then : 22830 JANSSON_LDFLAGS="-L$rra_JANSSON_libdir" 22831else 22832 if test x"$rra_JANSSON_root" != x; then : 22833 22834 if test -d "${rra_JANSSON_root}/$rra_lib_arch_name"; then : 22835 if test x"" = x; then : 22836 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/${rra_lib_arch_name}" 22837else 22838 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/${rra_lib_arch_name}/" 22839fi 22840else 22841 if test x"" = x; then : 22842 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/lib" 22843else 22844 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/lib/" 22845fi 22846fi 22847 JANSSON_LDFLAGS=`echo "$JANSSON_LDFLAGS" | sed -e 's/^ *//'` 22848fi 22849fi 22850 if test x"$rra_JANSSON_includedir" != x; then : 22851 JANSSON_CPPFLAGS="-I$rra_JANSSON_includedir" 22852else 22853 if test x"$rra_JANSSON_root" != x; then : 22854 if test x"$rra_JANSSON_root" != x/usr; then : 22855 JANSSON_CPPFLAGS="-I${rra_JANSSON_root}/include" 22856fi 22857fi 22858fi 22859 if test x"$JANSSON_CPPFLAGS" = x && test x"$JANSSON_LDFLAGS" = x; then : 22860 if test -n "$PKG_CONFIG" && \ 22861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 22862 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 22863 ac_status=$? 22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22865 test $ac_status = 0; }; then 22866 22867pkg_failed=no 22868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5 22869$as_echo_n "checking for JANSSON... " >&6; } 22870 22871if test -n "$JANSSON_CFLAGS"; then 22872 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS" 22873 elif test -n "$PKG_CONFIG"; then 22874 if test -n "$PKG_CONFIG" && \ 22875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 22876 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 22877 ac_status=$? 22878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22879 test $ac_status = 0; }; then 22880 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null` 22881 test "x$?" != "x0" && pkg_failed=yes 22882else 22883 pkg_failed=yes 22884fi 22885 else 22886 pkg_failed=untried 22887fi 22888if test -n "$JANSSON_LIBS"; then 22889 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS" 22890 elif test -n "$PKG_CONFIG"; then 22891 if test -n "$PKG_CONFIG" && \ 22892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 22893 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 22894 ac_status=$? 22895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22896 test $ac_status = 0; }; then 22897 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null` 22898 test "x$?" != "x0" && pkg_failed=yes 22899else 22900 pkg_failed=yes 22901fi 22902 else 22903 pkg_failed=untried 22904fi 22905 22906 22907 22908if test $pkg_failed = yes; then 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22910$as_echo "no" >&6; } 22911 22912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22913 _pkg_short_errors_supported=yes 22914else 22915 _pkg_short_errors_supported=no 22916fi 22917 if test $_pkg_short_errors_supported = yes; then 22918 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1` 22919 else 22920 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1` 22921 fi 22922 # Put the nasty error message in config.log where it belongs 22923 echo "$JANSSON_PKG_ERRORS" >&5 22924 22925 as_fn_error $? "Package requirements (jansson) were not met: 22926 22927$JANSSON_PKG_ERRORS 22928 22929Consider adjusting the PKG_CONFIG_PATH environment variable if you 22930installed software in a non-standard prefix. 22931 22932Alternatively, you may set the environment variables JANSSON_CFLAGS 22933and JANSSON_LIBS to avoid the need to call pkg-config. 22934See the pkg-config man page for more details." "$LINENO" 5 22935elif test $pkg_failed = untried; then 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22937$as_echo "no" >&6; } 22938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22940as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22941is in your PATH or set the PKG_CONFIG environment variable to the full 22942path to pkg-config. 22943 22944Alternatively, you may set the environment variables JANSSON_CFLAGS 22945and JANSSON_LIBS to avoid the need to call pkg-config. 22946See the pkg-config man page for more details. 22947 22948To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22949See \`config.log' for more details" "$LINENO" 5; } 22950else 22951 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS 22952 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22954$as_echo "yes" >&6; } 22955 22956fi 22957 JANSSON_CPPFLAGS="$JANSSON_CFLAGS" 22958fi 22959fi 22960 if test x"$JANSSON_LIBS" = x; then : 22961 rra_JANSSON_save_CPPFLAGS="$CPPFLAGS" 22962 rra_JANSSON_save_LDFLAGS="$LDFLAGS" 22963 rra_JANSSON_save_LIBS="$LIBS" 22964 CPPFLAGS="$JANSSON_CPPFLAGS $CPPFLAGS" 22965 LDFLAGS="$JANSSON_LDFLAGS $LDFLAGS" 22966 LIBS="$JANSSON_LIBS $LIBS" 22967 LIBS= 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_loads" >&5 22969$as_echo_n "checking for library containing json_loads... " >&6; } 22970if ${ac_cv_search_json_loads+:} false; then : 22971 $as_echo_n "(cached) " >&6 22972else 22973 ac_func_search_save_LIBS=$LIBS 22974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22975/* end confdefs.h. */ 22976 22977/* Override any GCC internal prototype to avoid an error. 22978 Use char because int might match the return type of a GCC 22979 builtin and then its argument prototype would still apply. */ 22980#ifdef __cplusplus 22981extern "C" 22982#endif 22983char json_loads (); 22984int 22985main () 22986{ 22987return json_loads (); 22988 ; 22989 return 0; 22990} 22991_ACEOF 22992for ac_lib in '' jansson; do 22993 if test -z "$ac_lib"; then 22994 ac_res="none required" 22995 else 22996 ac_res=-l$ac_lib 22997 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22998 fi 22999 if ac_fn_c_try_link "$LINENO"; then : 23000 ac_cv_search_json_loads=$ac_res 23001fi 23002rm -f core conftest.err conftest.$ac_objext \ 23003 conftest$ac_exeext 23004 if ${ac_cv_search_json_loads+:} false; then : 23005 break 23006fi 23007done 23008if ${ac_cv_search_json_loads+:} false; then : 23009 23010else 23011 ac_cv_search_json_loads=no 23012fi 23013rm conftest.$ac_ext 23014LIBS=$ac_func_search_save_LIBS 23015fi 23016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_loads" >&5 23017$as_echo "$ac_cv_search_json_loads" >&6; } 23018ac_res=$ac_cv_search_json_loads 23019if test "$ac_res" != no; then : 23020 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23021 JANSSON_LIBS="$LIBS" 23022else 23023 if test x"true" = xtrue; then : 23024 as_fn_error $? "cannot find usable Jansson library" "$LINENO" 5 23025fi 23026fi 23027 23028 CPPFLAGS="$rra_JANSSON_save_CPPFLAGS" 23029 LDFLAGS="$rra_JANSSON_save_LDFLAGS" 23030 LIBS="$rra_JANSSON_save_LIBS" 23031fi 23032else 23033 if test x"$rra_JANSSON_libdir" != x; then : 23034 JANSSON_LDFLAGS="-L$rra_JANSSON_libdir" 23035else 23036 if test x"$rra_JANSSON_root" != x; then : 23037 23038 if test -d "${rra_JANSSON_root}/$rra_lib_arch_name"; then : 23039 if test x"" = x; then : 23040 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/${rra_lib_arch_name}" 23041else 23042 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/${rra_lib_arch_name}/" 23043fi 23044else 23045 if test x"" = x; then : 23046 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/lib" 23047else 23048 JANSSON_LDFLAGS="$JANSSON_LDFLAGS -L${rra_JANSSON_root}/lib/" 23049fi 23050fi 23051 JANSSON_LDFLAGS=`echo "$JANSSON_LDFLAGS" | sed -e 's/^ *//'` 23052fi 23053fi 23054 if test x"$rra_JANSSON_includedir" != x; then : 23055 JANSSON_CPPFLAGS="-I$rra_JANSSON_includedir" 23056else 23057 if test x"$rra_JANSSON_root" != x; then : 23058 if test x"$rra_JANSSON_root" != x/usr; then : 23059 JANSSON_CPPFLAGS="-I${rra_JANSSON_root}/include" 23060fi 23061fi 23062fi 23063 if test x"$JANSSON_CPPFLAGS" = x && test x"$JANSSON_LDFLAGS" = x; then : 23064 if test -n "$PKG_CONFIG" && \ 23065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 23066 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 23067 ac_status=$? 23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23069 test $ac_status = 0; }; then 23070 23071pkg_failed=no 23072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5 23073$as_echo_n "checking for JANSSON... " >&6; } 23074 23075if test -n "$JANSSON_CFLAGS"; then 23076 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS" 23077 elif test -n "$PKG_CONFIG"; then 23078 if test -n "$PKG_CONFIG" && \ 23079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 23080 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 23081 ac_status=$? 23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23083 test $ac_status = 0; }; then 23084 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null` 23085 test "x$?" != "x0" && pkg_failed=yes 23086else 23087 pkg_failed=yes 23088fi 23089 else 23090 pkg_failed=untried 23091fi 23092if test -n "$JANSSON_LIBS"; then 23093 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS" 23094 elif test -n "$PKG_CONFIG"; then 23095 if test -n "$PKG_CONFIG" && \ 23096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5 23097 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5 23098 ac_status=$? 23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23100 test $ac_status = 0; }; then 23101 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null` 23102 test "x$?" != "x0" && pkg_failed=yes 23103else 23104 pkg_failed=yes 23105fi 23106 else 23107 pkg_failed=untried 23108fi 23109 23110 23111 23112if test $pkg_failed = yes; then 23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23114$as_echo "no" >&6; } 23115 23116if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23117 _pkg_short_errors_supported=yes 23118else 23119 _pkg_short_errors_supported=no 23120fi 23121 if test $_pkg_short_errors_supported = yes; then 23122 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1` 23123 else 23124 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1` 23125 fi 23126 # Put the nasty error message in config.log where it belongs 23127 echo "$JANSSON_PKG_ERRORS" >&5 23128 23129 as_fn_error $? "Package requirements (jansson) were not met: 23130 23131$JANSSON_PKG_ERRORS 23132 23133Consider adjusting the PKG_CONFIG_PATH environment variable if you 23134installed software in a non-standard prefix. 23135 23136Alternatively, you may set the environment variables JANSSON_CFLAGS 23137and JANSSON_LIBS to avoid the need to call pkg-config. 23138See the pkg-config man page for more details." "$LINENO" 5 23139elif test $pkg_failed = untried; then 23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23141$as_echo "no" >&6; } 23142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23144as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 23145is in your PATH or set the PKG_CONFIG environment variable to the full 23146path to pkg-config. 23147 23148Alternatively, you may set the environment variables JANSSON_CFLAGS 23149and JANSSON_LIBS to avoid the need to call pkg-config. 23150See the pkg-config man page for more details. 23151 23152To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23153See \`config.log' for more details" "$LINENO" 5; } 23154else 23155 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS 23156 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23158$as_echo "yes" >&6; } 23159 23160fi 23161 JANSSON_CPPFLAGS="$JANSSON_CFLAGS" 23162fi 23163fi 23164 if test x"$JANSSON_LIBS" = x; then : 23165 rra_JANSSON_save_CPPFLAGS="$CPPFLAGS" 23166 rra_JANSSON_save_LDFLAGS="$LDFLAGS" 23167 rra_JANSSON_save_LIBS="$LIBS" 23168 CPPFLAGS="$JANSSON_CPPFLAGS $CPPFLAGS" 23169 LDFLAGS="$JANSSON_LDFLAGS $LDFLAGS" 23170 LIBS="$JANSSON_LIBS $LIBS" 23171 LIBS= 23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing json_loads" >&5 23173$as_echo_n "checking for library containing json_loads... " >&6; } 23174if ${ac_cv_search_json_loads+:} false; then : 23175 $as_echo_n "(cached) " >&6 23176else 23177 ac_func_search_save_LIBS=$LIBS 23178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23179/* end confdefs.h. */ 23180 23181/* Override any GCC internal prototype to avoid an error. 23182 Use char because int might match the return type of a GCC 23183 builtin and then its argument prototype would still apply. */ 23184#ifdef __cplusplus 23185extern "C" 23186#endif 23187char json_loads (); 23188int 23189main () 23190{ 23191return json_loads (); 23192 ; 23193 return 0; 23194} 23195_ACEOF 23196for ac_lib in '' jansson; do 23197 if test -z "$ac_lib"; then 23198 ac_res="none required" 23199 else 23200 ac_res=-l$ac_lib 23201 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23202 fi 23203 if ac_fn_c_try_link "$LINENO"; then : 23204 ac_cv_search_json_loads=$ac_res 23205fi 23206rm -f core conftest.err conftest.$ac_objext \ 23207 conftest$ac_exeext 23208 if ${ac_cv_search_json_loads+:} false; then : 23209 break 23210fi 23211done 23212if ${ac_cv_search_json_loads+:} false; then : 23213 23214else 23215 ac_cv_search_json_loads=no 23216fi 23217rm conftest.$ac_ext 23218LIBS=$ac_func_search_save_LIBS 23219fi 23220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_json_loads" >&5 23221$as_echo "$ac_cv_search_json_loads" >&6; } 23222ac_res=$ac_cv_search_json_loads 23223if test "$ac_res" != no; then : 23224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23225 JANSSON_LIBS="$LIBS" 23226else 23227 if test x"false" = xtrue; then : 23228 as_fn_error $? "cannot find usable Jansson library" "$LINENO" 5 23229fi 23230fi 23231 23232 CPPFLAGS="$rra_JANSSON_save_CPPFLAGS" 23233 LDFLAGS="$rra_JANSSON_save_LDFLAGS" 23234 LIBS="$rra_JANSSON_save_LIBS" 23235fi 23236fi 23237fi 23238 if test x"$JANSSON_LIBS" != x; then : 23239 rra_use_JANSSON=true 23240 23241$as_echo "#define HAVE_JANSSON 1" >>confdefs.h 23242 23243fi 23244rra_OPENSSL_root= 23245 rra_OPENSSL_libdir= 23246 rra_OPENSSL_includedir= 23247 rra_use_OPENSSL= 23248 OPENSSL_CPPFLAGS= 23249 OPENSSL_LDFLAGS= 23250 OPENSSL_LIBS= 23251 23252 23253 23254 23255# Check whether --with-openssl was given. 23256if test "${with_openssl+set}" = set; then : 23257 withval=$with_openssl; if test x"$withval" != xyes && test x"$withval" != xno; then : 23258 rra_OPENSSL_root="$withval" 23259fi 23260fi 23261 23262 23263# Check whether --with-openssl-include was given. 23264if test "${with_openssl_include+set}" = set; then : 23265 withval=$with_openssl_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 23266 rra_OPENSSL_includedir="$withval" 23267fi 23268fi 23269 23270 23271# Check whether --with-openssl-lib was given. 23272if test "${with_openssl_lib+set}" = set; then : 23273 withval=$with_openssl_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 23274 rra_OPENSSL_libdir="$withval" 23275fi 23276fi 23277 23278 23279 if test x"$rra_OPENSSL_libdir" != x; then : 23280 OPENSSL_LDFLAGS="-L$rra_OPENSSL_libdir" 23281else 23282 if test x"$rra_OPENSSL_root" != x; then : 23283 23284 if test -d "${rra_OPENSSL_root}/$rra_lib_arch_name"; then : 23285 if test x"" = x; then : 23286 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -L${rra_OPENSSL_root}/${rra_lib_arch_name}" 23287else 23288 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -L${rra_OPENSSL_root}/${rra_lib_arch_name}/" 23289fi 23290else 23291 if test x"" = x; then : 23292 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -L${rra_OPENSSL_root}/lib" 23293else 23294 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -L${rra_OPENSSL_root}/lib/" 23295fi 23296fi 23297 OPENSSL_LDFLAGS=`echo "$OPENSSL_LDFLAGS" | sed -e 's/^ *//'` 23298fi 23299fi 23300 if test x"$rra_OPENSSL_includedir" != x; then : 23301 OPENSSL_CPPFLAGS="-I$rra_OPENSSL_includedir" 23302else 23303 if test x"$rra_OPENSSL_root" != x; then : 23304 if test x"$rra_OPENSSL_root" != x/usr; then : 23305 OPENSSL_CPPFLAGS="-I${rra_OPENSSL_root}/include" 23306fi 23307fi 23308fi 23309 CRYPTO_CPPFLAGS="$OPENSSL_CPPFLAGS" 23310 CRYPTO_LDFLAGS="$OPENSSL_LDFLAGS" 23311 CRYPTO_LIBS= 23312 23313 23314 23315 rra_OPENSSL_save_CPPFLAGS="$CPPFLAGS" 23316 rra_OPENSSL_save_LDFLAGS="$LDFLAGS" 23317 rra_OPENSSL_save_LIBS="$LIBS" 23318 CPPFLAGS="$OPENSSL_CPPFLAGS $CPPFLAGS" 23319 LDFLAGS="$OPENSSL_LDFLAGS $LDFLAGS" 23320 LIBS="$OPENSSL_LIBS $LIBS" 23321 rra_openssl_extra= 23322 LIBS= 23323 if test x"$rra_reduced_depends" != xtrue; then : 23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 23325$as_echo_n "checking for library containing dlopen... " >&6; } 23326if ${ac_cv_search_dlopen+:} false; then : 23327 $as_echo_n "(cached) " >&6 23328else 23329 ac_func_search_save_LIBS=$LIBS 23330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23331/* end confdefs.h. */ 23332 23333/* Override any GCC internal prototype to avoid an error. 23334 Use char because int might match the return type of a GCC 23335 builtin and then its argument prototype would still apply. */ 23336#ifdef __cplusplus 23337extern "C" 23338#endif 23339char dlopen (); 23340int 23341main () 23342{ 23343return dlopen (); 23344 ; 23345 return 0; 23346} 23347_ACEOF 23348for ac_lib in '' dl; do 23349 if test -z "$ac_lib"; then 23350 ac_res="none required" 23351 else 23352 ac_res=-l$ac_lib 23353 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23354 fi 23355 if ac_fn_c_try_link "$LINENO"; then : 23356 ac_cv_search_dlopen=$ac_res 23357fi 23358rm -f core conftest.err conftest.$ac_objext \ 23359 conftest$ac_exeext 23360 if ${ac_cv_search_dlopen+:} false; then : 23361 break 23362fi 23363done 23364if ${ac_cv_search_dlopen+:} false; then : 23365 23366else 23367 ac_cv_search_dlopen=no 23368fi 23369rm conftest.$ac_ext 23370LIBS=$ac_func_search_save_LIBS 23371fi 23372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 23373$as_echo "$ac_cv_search_dlopen" >&6; } 23374ac_res=$ac_cv_search_dlopen 23375if test "$ac_res" != no; then : 23376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23377 23378fi 23379 23380fi 23381 rra_openssl_extra="$LIBS" 23382 LIBS="$rra_OPENSSL_save_LIBS" 23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_cbc_encrypt in -lcrypto" >&5 23384$as_echo_n "checking for AES_cbc_encrypt in -lcrypto... " >&6; } 23385if ${ac_cv_lib_crypto_AES_cbc_encrypt+:} false; then : 23386 $as_echo_n "(cached) " >&6 23387else 23388 ac_check_lib_save_LIBS=$LIBS 23389LIBS="-lcrypto $rra_openssl_extra $LIBS" 23390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23391/* end confdefs.h. */ 23392 23393/* Override any GCC internal prototype to avoid an error. 23394 Use char because int might match the return type of a GCC 23395 builtin and then its argument prototype would still apply. */ 23396#ifdef __cplusplus 23397extern "C" 23398#endif 23399char AES_cbc_encrypt (); 23400int 23401main () 23402{ 23403return AES_cbc_encrypt (); 23404 ; 23405 return 0; 23406} 23407_ACEOF 23408if ac_fn_c_try_link "$LINENO"; then : 23409 ac_cv_lib_crypto_AES_cbc_encrypt=yes 23410else 23411 ac_cv_lib_crypto_AES_cbc_encrypt=no 23412fi 23413rm -f core conftest.err conftest.$ac_objext \ 23414 conftest$ac_exeext conftest.$ac_ext 23415LIBS=$ac_check_lib_save_LIBS 23416fi 23417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_cbc_encrypt" >&5 23418$as_echo "$ac_cv_lib_crypto_AES_cbc_encrypt" >&6; } 23419if test "x$ac_cv_lib_crypto_AES_cbc_encrypt" = xyes; then : 23420 CRYPTO_LIBS="-lcrypto $rra_openssl_extra" 23421else 23422 if test x"true" = xtrue; then : 23423 as_fn_error $? "cannot find usable OpenSSL crypto library" "$LINENO" 5 23424fi 23425fi 23426 23427 if test x"$rra_reduced_depends" = xtrue; then : 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 23429$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 23430if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 23431 $as_echo_n "(cached) " >&6 23432else 23433 ac_check_lib_save_LIBS=$LIBS 23434LIBS="-lssl $LIBS" 23435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23436/* end confdefs.h. */ 23437 23438/* Override any GCC internal prototype to avoid an error. 23439 Use char because int might match the return type of a GCC 23440 builtin and then its argument prototype would still apply. */ 23441#ifdef __cplusplus 23442extern "C" 23443#endif 23444char SSL_CTX_new (); 23445int 23446main () 23447{ 23448return SSL_CTX_new (); 23449 ; 23450 return 0; 23451} 23452_ACEOF 23453if ac_fn_c_try_link "$LINENO"; then : 23454 ac_cv_lib_ssl_SSL_CTX_new=yes 23455else 23456 ac_cv_lib_ssl_SSL_CTX_new=no 23457fi 23458rm -f core conftest.err conftest.$ac_objext \ 23459 conftest$ac_exeext conftest.$ac_ext 23460LIBS=$ac_check_lib_save_LIBS 23461fi 23462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 23463$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 23464if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 23465 OPENSSL_LIBS=-lssl 23466else 23467 if test x"true" = xtrue; then : 23468 as_fn_error $? "cannot find usable OpenSSL library" "$LINENO" 5 23469fi 23470fi 23471 23472else 23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5 23474$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; } 23475if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then : 23476 $as_echo_n "(cached) " >&6 23477else 23478 ac_check_lib_save_LIBS=$LIBS 23479LIBS="-lssl $CRYPTO_LIBS $LIBS" 23480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23481/* end confdefs.h. */ 23482 23483/* Override any GCC internal prototype to avoid an error. 23484 Use char because int might match the return type of a GCC 23485 builtin and then its argument prototype would still apply. */ 23486#ifdef __cplusplus 23487extern "C" 23488#endif 23489char SSL_CTX_new (); 23490int 23491main () 23492{ 23493return SSL_CTX_new (); 23494 ; 23495 return 0; 23496} 23497_ACEOF 23498if ac_fn_c_try_link "$LINENO"; then : 23499 ac_cv_lib_ssl_SSL_CTX_new=yes 23500else 23501 ac_cv_lib_ssl_SSL_CTX_new=no 23502fi 23503rm -f core conftest.err conftest.$ac_objext \ 23504 conftest$ac_exeext conftest.$ac_ext 23505LIBS=$ac_check_lib_save_LIBS 23506fi 23507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 23508$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; } 23509if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then : 23510 OPENSSL_LIBS="-lssl $CRYPTO_LIBS" 23511else 23512 if test x"true" = xtrue; then : 23513 as_fn_error $? "cannot find usable OpenSSL library" "$LINENO" 5 23514fi 23515fi 23516 23517fi 23518 CPPFLAGS="$rra_OPENSSL_save_CPPFLAGS" 23519 LDFLAGS="$rra_OPENSSL_save_LDFLAGS" 23520 LIBS="$rra_OPENSSL_save_LIBS" 23521 rra_use_OPENSSL=true 23522 23523$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 23524 23525 23526 23527 rra_curl_root= 23528 rra_curl_libdir= 23529 rra_curl_includedir= 23530 CURL_CPPFLAGS= 23531 CURL_LDFLAGS= 23532 CURL_LIBS= 23533 23534 23535 23536 23537 23538# Check whether --with-curl was given. 23539if test "${with_curl+set}" = set; then : 23540 withval=$with_curl; if test x"$withval" != xyes && test x"$withval" != xno; then : 23541 rra_curl_root="$withval" 23542fi 23543fi 23544 23545 23546# Check whether --with-curl-include was given. 23547if test "${with_curl_include+set}" = set; then : 23548 withval=$with_curl_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 23549 rra_curl_includedir="$withval" 23550fi 23551fi 23552 23553 23554# Check whether --with-curl-lib was given. 23555if test "${with_curl_lib+set}" = set; then : 23556 withval=$with_curl_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 23557 rra_curl_libdir="$withval" 23558fi 23559fi 23560 23561 23562 23563 if test x"$rra_curl_root" != x && test -z "$CURL_CONFIG"; then : 23564 if test -x "${rra_curl_root}/bin/curl-config"; then : 23565 CURL_CONFIG="${rra_curl_root}/bin/curl-config" 23566fi 23567else 23568 # Extract the first word of "curl-config", so it can be a program name with args. 23569set dummy curl-config; ac_word=$2 23570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23571$as_echo_n "checking for $ac_word... " >&6; } 23572if ${ac_cv_path_CURL_CONFIG+:} false; then : 23573 $as_echo_n "(cached) " >&6 23574else 23575 case $CURL_CONFIG in 23576 [\\/]* | ?:[\\/]*) 23577 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path. 23578 ;; 23579 *) 23580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23581for as_dir in $PATH 23582do 23583 IFS=$as_save_IFS 23584 test -z "$as_dir" && as_dir=. 23585 for ac_exec_ext in '' $ac_executable_extensions; do 23586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23587 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23589 break 2 23590 fi 23591done 23592 done 23593IFS=$as_save_IFS 23594 23595 ;; 23596esac 23597fi 23598CURL_CONFIG=$ac_cv_path_CURL_CONFIG 23599if test -n "$CURL_CONFIG"; then 23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5 23601$as_echo "$CURL_CONFIG" >&6; } 23602else 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23604$as_echo "no" >&6; } 23605fi 23606 23607 23608fi 23609 if test x"$CURL_CONFIG" != x && test -x "$CURL_CONFIG"; then : 23610 CURL_CPPFLAGS=`"$CURL_CONFIG" --cflags 2>/dev/null` 23611 CURL_LIBS=`"$CURL_CONFIG" --libs 2>/dev/null` 23612 CURL_CPPFLAGS=`echo "$CURL_CPPFLAGS" | sed 's%-I/usr/include ?%%'` 23613 # Work around a bug in the Mac OS X curl-config script fixed in Tiger. 23614 case $host in #( 23615 powerpc-apple-darwin7*) : 23616 CURL_LIBS=`echo "$CURL_LIBS" | sed 's/-arch i386//g'` ;; #( 23617 *) : 23618 ;; 23619esac 23620 rra_curl_save_CPPFLAGS="$CPPFLAGS" 23621 rra_curl_save_LDFLAGS="$LDFLAGS" 23622 rra_curl_save_LIBS="$LIBS" 23623 CPPFLAGS="$CURL_CPPFLAGS $CPPFLAGS" 23624 LDFLAGS="$CURL_LDFLAGS $LDFLAGS" 23625 LIBS="$CURL_LIBS $LIBS" 23626 ac_fn_c_check_func "$LINENO" "curl_easy_init" "ac_cv_func_curl_easy_init" 23627if test "x$ac_cv_func_curl_easy_init" = xyes; then : 23628 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23629 LDFLAGS="$rra_curl_save_LDFLAGS" 23630 LIBS="$rra_curl_save_LIBS" 23631else 23632 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23633 LDFLAGS="$rra_curl_save_LDFLAGS" 23634 LIBS="$rra_curl_save_LIBS" 23635 CURL_CPPFLAGS= 23636 CURL_LIBS= 23637 if test x"$rra_curl_libdir" != x; then : 23638 CURL_LDFLAGS="-L$rra_curl_libdir" 23639else 23640 if test x"$rra_curl_root" != x; then : 23641 23642 if test -d "$rra_curl_root/$rra_lib_arch_name"; then : 23643 if test x"" = x; then : 23644 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/${rra_lib_arch_name}" 23645else 23646 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/${rra_lib_arch_name}/" 23647fi 23648else 23649 if test x"" = x; then : 23650 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/lib" 23651else 23652 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/lib/" 23653fi 23654fi 23655 CURL_LDFLAGS=`echo "$CURL_LDFLAGS" | sed -e 's/^ *//'` 23656fi 23657fi 23658 if test x"$rra_curl_includedir" != x; then : 23659 CURL_CPPFLAGS="-I$rra_curl_includedir" 23660else 23661 if test x"$rra_curl_root" != x; then : 23662 if test x"$rra_curl_root" != x/usr; then : 23663 CURL_CPPFLAGS="-I${rra_curl_root}/include" 23664fi 23665fi 23666fi 23667 if test x"$rra_reduced_depends" = xtrue; then : 23668 rra_curl_save_CPPFLAGS="$CPPFLAGS" 23669 rra_curl_save_LDFLAGS="$LDFLAGS" 23670 rra_curl_save_LIBS="$LIBS" 23671 CPPFLAGS="$CURL_CPPFLAGS $CPPFLAGS" 23672 LDFLAGS="$CURL_LDFLAGS $LDFLAGS" 23673 LIBS="$CURL_LIBS $LIBS" 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 23675$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } 23676if ${ac_cv_lib_curl_curl_easy_init+:} false; then : 23677 $as_echo_n "(cached) " >&6 23678else 23679 ac_check_lib_save_LIBS=$LIBS 23680LIBS="-lcurl $LIBS" 23681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23682/* end confdefs.h. */ 23683 23684/* Override any GCC internal prototype to avoid an error. 23685 Use char because int might match the return type of a GCC 23686 builtin and then its argument prototype would still apply. */ 23687#ifdef __cplusplus 23688extern "C" 23689#endif 23690char curl_easy_init (); 23691int 23692main () 23693{ 23694return curl_easy_init (); 23695 ; 23696 return 0; 23697} 23698_ACEOF 23699if ac_fn_c_try_link "$LINENO"; then : 23700 ac_cv_lib_curl_curl_easy_init=yes 23701else 23702 ac_cv_lib_curl_curl_easy_init=no 23703fi 23704rm -f core conftest.err conftest.$ac_objext \ 23705 conftest$ac_exeext conftest.$ac_ext 23706LIBS=$ac_check_lib_save_LIBS 23707fi 23708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 23709$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } 23710if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : 23711 CURL_LIBS="-lcurl" 23712else 23713 as_fn_error $? "cannot find usable cURL library" "$LINENO" 5 23714fi 23715 23716 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23717 LDFLAGS="$rra_curl_save_LDFLAGS" 23718 LIBS="$rra_curl_save_LIBS" 23719else 23720 23721 rra_curl_save_CPPFLAGS="$CPPFLAGS" 23722 rra_curl_save_LDFLAGS="$LDFLAGS" 23723 rra_curl_save_LIBS="$LIBS" 23724 CPPFLAGS="$CURL_CPPFLAGS $CPPFLAGS" 23725 LDFLAGS="$CURL_LDFLAGS $LDFLAGS" 23726 LIBS="$CURL_LIBS $LIBS" 23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 23728$as_echo_n "checking for inflate in -lz... " >&6; } 23729if ${ac_cv_lib_z_inflate+:} false; then : 23730 $as_echo_n "(cached) " >&6 23731else 23732 ac_check_lib_save_LIBS=$LIBS 23733LIBS="-lz $LIBS" 23734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23735/* end confdefs.h. */ 23736 23737/* Override any GCC internal prototype to avoid an error. 23738 Use char because int might match the return type of a GCC 23739 builtin and then its argument prototype would still apply. */ 23740#ifdef __cplusplus 23741extern "C" 23742#endif 23743char inflate (); 23744int 23745main () 23746{ 23747return inflate (); 23748 ; 23749 return 0; 23750} 23751_ACEOF 23752if ac_fn_c_try_link "$LINENO"; then : 23753 ac_cv_lib_z_inflate=yes 23754else 23755 ac_cv_lib_z_inflate=no 23756fi 23757rm -f core conftest.err conftest.$ac_objext \ 23758 conftest$ac_exeext conftest.$ac_ext 23759LIBS=$ac_check_lib_save_LIBS 23760fi 23761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 23762$as_echo "$ac_cv_lib_z_inflate" >&6; } 23763if test "x$ac_cv_lib_z_inflate" = xyes; then : 23764 CURL_LIBS=-lz 23765fi 23766 23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 23768$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } 23769if ${ac_cv_lib_curl_curl_easy_init+:} false; then : 23770 $as_echo_n "(cached) " >&6 23771else 23772 ac_check_lib_save_LIBS=$LIBS 23773LIBS="-lcurl $CURL_LIBS $OPENSSL_LDFLAGS $OPENSSL_LIBS $LIBS" 23774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23775/* end confdefs.h. */ 23776 23777/* Override any GCC internal prototype to avoid an error. 23778 Use char because int might match the return type of a GCC 23779 builtin and then its argument prototype would still apply. */ 23780#ifdef __cplusplus 23781extern "C" 23782#endif 23783char curl_easy_init (); 23784int 23785main () 23786{ 23787return curl_easy_init (); 23788 ; 23789 return 0; 23790} 23791_ACEOF 23792if ac_fn_c_try_link "$LINENO"; then : 23793 ac_cv_lib_curl_curl_easy_init=yes 23794else 23795 ac_cv_lib_curl_curl_easy_init=no 23796fi 23797rm -f core conftest.err conftest.$ac_objext \ 23798 conftest$ac_exeext conftest.$ac_ext 23799LIBS=$ac_check_lib_save_LIBS 23800fi 23801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 23802$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } 23803if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : 23804 CURL_LDFLAGS="$CURL_LDFLAGS OPENSSL_LDFLAGS" 23805 CURL_LIBS="-lcurl $CURL_LIBS $OPENSSL_LIBS" 23806else 23807 as_fn_error $? "cannot find usable cURL library" "$LINENO" 5 23808fi 23809 23810 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23811 LDFLAGS="$rra_curl_save_LDFLAGS" 23812 LIBS="$rra_curl_save_LIBS" 23813fi 23814fi 23815 23816else 23817 if test x"$rra_curl_libdir" != x; then : 23818 CURL_LDFLAGS="-L$rra_curl_libdir" 23819else 23820 if test x"$rra_curl_root" != x; then : 23821 23822 if test -d "$rra_curl_root/$rra_lib_arch_name"; then : 23823 if test x"" = x; then : 23824 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/${rra_lib_arch_name}" 23825else 23826 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/${rra_lib_arch_name}/" 23827fi 23828else 23829 if test x"" = x; then : 23830 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/lib" 23831else 23832 CURL_LDFLAGS="$CURL_LDFLAGS -L$rra_curl_root/lib/" 23833fi 23834fi 23835 CURL_LDFLAGS=`echo "$CURL_LDFLAGS" | sed -e 's/^ *//'` 23836fi 23837fi 23838 if test x"$rra_curl_includedir" != x; then : 23839 CURL_CPPFLAGS="-I$rra_curl_includedir" 23840else 23841 if test x"$rra_curl_root" != x; then : 23842 if test x"$rra_curl_root" != x/usr; then : 23843 CURL_CPPFLAGS="-I${rra_curl_root}/include" 23844fi 23845fi 23846fi 23847 if test x"$rra_reduced_depends" = xtrue; then : 23848 rra_curl_save_CPPFLAGS="$CPPFLAGS" 23849 rra_curl_save_LDFLAGS="$LDFLAGS" 23850 rra_curl_save_LIBS="$LIBS" 23851 CPPFLAGS="$CURL_CPPFLAGS $CPPFLAGS" 23852 LDFLAGS="$CURL_LDFLAGS $LDFLAGS" 23853 LIBS="$CURL_LIBS $LIBS" 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 23855$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } 23856if ${ac_cv_lib_curl_curl_easy_init+:} false; then : 23857 $as_echo_n "(cached) " >&6 23858else 23859 ac_check_lib_save_LIBS=$LIBS 23860LIBS="-lcurl $LIBS" 23861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23862/* end confdefs.h. */ 23863 23864/* Override any GCC internal prototype to avoid an error. 23865 Use char because int might match the return type of a GCC 23866 builtin and then its argument prototype would still apply. */ 23867#ifdef __cplusplus 23868extern "C" 23869#endif 23870char curl_easy_init (); 23871int 23872main () 23873{ 23874return curl_easy_init (); 23875 ; 23876 return 0; 23877} 23878_ACEOF 23879if ac_fn_c_try_link "$LINENO"; then : 23880 ac_cv_lib_curl_curl_easy_init=yes 23881else 23882 ac_cv_lib_curl_curl_easy_init=no 23883fi 23884rm -f core conftest.err conftest.$ac_objext \ 23885 conftest$ac_exeext conftest.$ac_ext 23886LIBS=$ac_check_lib_save_LIBS 23887fi 23888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 23889$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } 23890if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : 23891 CURL_LIBS="-lcurl" 23892else 23893 as_fn_error $? "cannot find usable cURL library" "$LINENO" 5 23894fi 23895 23896 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23897 LDFLAGS="$rra_curl_save_LDFLAGS" 23898 LIBS="$rra_curl_save_LIBS" 23899else 23900 23901 rra_curl_save_CPPFLAGS="$CPPFLAGS" 23902 rra_curl_save_LDFLAGS="$LDFLAGS" 23903 rra_curl_save_LIBS="$LIBS" 23904 CPPFLAGS="$CURL_CPPFLAGS $CPPFLAGS" 23905 LDFLAGS="$CURL_LDFLAGS $LDFLAGS" 23906 LIBS="$CURL_LIBS $LIBS" 23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 23908$as_echo_n "checking for inflate in -lz... " >&6; } 23909if ${ac_cv_lib_z_inflate+:} false; then : 23910 $as_echo_n "(cached) " >&6 23911else 23912 ac_check_lib_save_LIBS=$LIBS 23913LIBS="-lz $LIBS" 23914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23915/* end confdefs.h. */ 23916 23917/* Override any GCC internal prototype to avoid an error. 23918 Use char because int might match the return type of a GCC 23919 builtin and then its argument prototype would still apply. */ 23920#ifdef __cplusplus 23921extern "C" 23922#endif 23923char inflate (); 23924int 23925main () 23926{ 23927return inflate (); 23928 ; 23929 return 0; 23930} 23931_ACEOF 23932if ac_fn_c_try_link "$LINENO"; then : 23933 ac_cv_lib_z_inflate=yes 23934else 23935 ac_cv_lib_z_inflate=no 23936fi 23937rm -f core conftest.err conftest.$ac_objext \ 23938 conftest$ac_exeext conftest.$ac_ext 23939LIBS=$ac_check_lib_save_LIBS 23940fi 23941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 23942$as_echo "$ac_cv_lib_z_inflate" >&6; } 23943if test "x$ac_cv_lib_z_inflate" = xyes; then : 23944 CURL_LIBS=-lz 23945fi 23946 23947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 23948$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } 23949if ${ac_cv_lib_curl_curl_easy_init+:} false; then : 23950 $as_echo_n "(cached) " >&6 23951else 23952 ac_check_lib_save_LIBS=$LIBS 23953LIBS="-lcurl $CURL_LIBS $OPENSSL_LDFLAGS $OPENSSL_LIBS $LIBS" 23954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23955/* end confdefs.h. */ 23956 23957/* Override any GCC internal prototype to avoid an error. 23958 Use char because int might match the return type of a GCC 23959 builtin and then its argument prototype would still apply. */ 23960#ifdef __cplusplus 23961extern "C" 23962#endif 23963char curl_easy_init (); 23964int 23965main () 23966{ 23967return curl_easy_init (); 23968 ; 23969 return 0; 23970} 23971_ACEOF 23972if ac_fn_c_try_link "$LINENO"; then : 23973 ac_cv_lib_curl_curl_easy_init=yes 23974else 23975 ac_cv_lib_curl_curl_easy_init=no 23976fi 23977rm -f core conftest.err conftest.$ac_objext \ 23978 conftest$ac_exeext conftest.$ac_ext 23979LIBS=$ac_check_lib_save_LIBS 23980fi 23981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 23982$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } 23983if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : 23984 CURL_LDFLAGS="$CURL_LDFLAGS OPENSSL_LDFLAGS" 23985 CURL_LIBS="-lcurl $CURL_LIBS $OPENSSL_LIBS" 23986else 23987 as_fn_error $? "cannot find usable cURL library" "$LINENO" 5 23988fi 23989 23990 CPPFLAGS="$rra_curl_save_CPPFLAGS" 23991 LDFLAGS="$rra_curl_save_LDFLAGS" 23992 LIBS="$rra_curl_save_LIBS" 23993fi 23994fi 23995if test x"$build_webauthldap" = x"true"; then : 23996 23997 rra_ldap_root= 23998 rra_ldap_libdir= 23999 rra_ldap_includedir= 24000 LDAP_CPPFLAGS= 24001 LDAP_LDFLAGS= 24002 LDAP_LIBS= 24003 24004 24005 24006 24007 24008# Check whether --with-ldap was given. 24009if test "${with_ldap+set}" = set; then : 24010 withval=$with_ldap; if test x"$withval" != xyes && test x"$withval" != xno; then : 24011 rra_ldap_root="$withval" 24012fi 24013fi 24014 24015 24016# Check whether --with-ldap-include was given. 24017if test "${with_ldap_include+set}" = set; then : 24018 withval=$with_ldap_include; if test x"$withval" != xyes && test x"$withval" != xno; then : 24019 rra_ldap_includedir="$withval" 24020fi 24021fi 24022 24023 24024# Check whether --with-ldap-lib was given. 24025if test "${with_ldap_lib+set}" = set; then : 24026 withval=$with_ldap_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : 24027 rra_ldap_libdir="$withval" 24028fi 24029fi 24030 24031 24032 if test x"$rra_ldap_libdir" != x; then : 24033 LDAP_LDFLAGS="-L$rra_ldap_libdir" 24034else 24035 if test x"$rra_ldap_root" != x; then : 24036 24037 if test -d "$rra_ldap_root/$rra_lib_arch_name"; then : 24038 if test x"" = x; then : 24039 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/${rra_lib_arch_name}" 24040else 24041 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/${rra_lib_arch_name}/" 24042fi 24043else 24044 if test x"" = x; then : 24045 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/lib" 24046else 24047 LDAP_LDFLAGS="$LDAP_LDFLAGS -L$rra_ldap_root/lib/" 24048fi 24049fi 24050 LDAP_LDFLAGS=`echo "$LDAP_LDFLAGS" | sed -e 's/^ *//'` 24051fi 24052fi 24053 if test x"$rra_ldap_includedir" != x; then : 24054 LDAP_CPPFLAGS="-I$rra_ldap_includedir" 24055else 24056 if test x"$rra_ldap_root" != x; then : 24057 if test x"$rra_ldap_root" != x/usr; then : 24058 LDAP_CPPFLAGS="-I${rra_ldap_root}/include" 24059fi 24060fi 24061fi 24062 rra_ldap_save_CPPFLAGS="$CPPFLAGS" 24063 rra_ldap_save_LDFLAGS="$LDFLAGS" 24064 rra_ldap_save_LIBS="$LIBS" 24065 CPPFLAGS="$LDAP_CPPFLAGS $CPPFLAGS" 24066 LDFLAGS="$LDAP_LDFLAGS $LDFLAGS" 24067 LIBS="$LDAP_LIBS $LIBS" 24068 if test x"$rra_reduced_depends" != xtrue; then : 24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_dump in -llber" >&5 24070$as_echo_n "checking for ber_dump in -llber... " >&6; } 24071if ${ac_cv_lib_lber_ber_dump+:} false; then : 24072 $as_echo_n "(cached) " >&6 24073else 24074 ac_check_lib_save_LIBS=$LIBS 24075LIBS="-llber $LIBS" 24076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24077/* end confdefs.h. */ 24078 24079/* Override any GCC internal prototype to avoid an error. 24080 Use char because int might match the return type of a GCC 24081 builtin and then its argument prototype would still apply. */ 24082#ifdef __cplusplus 24083extern "C" 24084#endif 24085char ber_dump (); 24086int 24087main () 24088{ 24089return ber_dump (); 24090 ; 24091 return 0; 24092} 24093_ACEOF 24094if ac_fn_c_try_link "$LINENO"; then : 24095 ac_cv_lib_lber_ber_dump=yes 24096else 24097 ac_cv_lib_lber_ber_dump=no 24098fi 24099rm -f core conftest.err conftest.$ac_objext \ 24100 conftest$ac_exeext conftest.$ac_ext 24101LIBS=$ac_check_lib_save_LIBS 24102fi 24103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_dump" >&5 24104$as_echo "$ac_cv_lib_lber_ber_dump" >&6; } 24105if test "x$ac_cv_lib_lber_ber_dump" = xyes; then : 24106 LDAP_LIBS=-llber 24107fi 24108 24109fi 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5 24111$as_echo_n "checking for ldap_open in -lldap... " >&6; } 24112if ${ac_cv_lib_ldap_ldap_open+:} false; then : 24113 $as_echo_n "(cached) " >&6 24114else 24115 ac_check_lib_save_LIBS=$LIBS 24116LIBS="-lldap $LDAP_LIBS $LIBS" 24117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24118/* end confdefs.h. */ 24119 24120/* Override any GCC internal prototype to avoid an error. 24121 Use char because int might match the return type of a GCC 24122 builtin and then its argument prototype would still apply. */ 24123#ifdef __cplusplus 24124extern "C" 24125#endif 24126char ldap_open (); 24127int 24128main () 24129{ 24130return ldap_open (); 24131 ; 24132 return 0; 24133} 24134_ACEOF 24135if ac_fn_c_try_link "$LINENO"; then : 24136 ac_cv_lib_ldap_ldap_open=yes 24137else 24138 ac_cv_lib_ldap_ldap_open=no 24139fi 24140rm -f core conftest.err conftest.$ac_objext \ 24141 conftest$ac_exeext conftest.$ac_ext 24142LIBS=$ac_check_lib_save_LIBS 24143fi 24144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5 24145$as_echo "$ac_cv_lib_ldap_ldap_open" >&6; } 24146if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then : 24147 LDAP_LIBS="-lldap $LDAP_LIBS" 24148else 24149 as_fn_error $? "cannot find usable LDAP library" "$LINENO" 5 24150fi 24151 24152 CPPFLAGS="$rra_ldap_save_CPPFLAGS" 24153 LDFLAGS="$rra_ldap_save_LDFLAGS" 24154 LIBS="$rra_ldap_save_LIBS" 24155fi 24156 24157KEYUTILS_LIBS= 24158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_search in -lkeyutils" >&5 24159$as_echo_n "checking for keyctl_search in -lkeyutils... " >&6; } 24160if ${ac_cv_lib_keyutils_keyctl_search+:} false; then : 24161 $as_echo_n "(cached) " >&6 24162else 24163 ac_check_lib_save_LIBS=$LIBS 24164LIBS="-lkeyutils $LIBS" 24165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24166/* end confdefs.h. */ 24167 24168/* Override any GCC internal prototype to avoid an error. 24169 Use char because int might match the return type of a GCC 24170 builtin and then its argument prototype would still apply. */ 24171#ifdef __cplusplus 24172extern "C" 24173#endif 24174char keyctl_search (); 24175int 24176main () 24177{ 24178return keyctl_search (); 24179 ; 24180 return 0; 24181} 24182_ACEOF 24183if ac_fn_c_try_link "$LINENO"; then : 24184 ac_cv_lib_keyutils_keyctl_search=yes 24185else 24186 ac_cv_lib_keyutils_keyctl_search=no 24187fi 24188rm -f core conftest.err conftest.$ac_objext \ 24189 conftest$ac_exeext conftest.$ac_ext 24190LIBS=$ac_check_lib_save_LIBS 24191fi 24192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_search" >&5 24193$as_echo "$ac_cv_lib_keyutils_keyctl_search" >&6; } 24194if test "x$ac_cv_lib_keyutils_keyctl_search" = xyes; then : 24195 KEYUTILS_LIBS=-lkeyutils 24196 24197$as_echo "#define HAVE_LIBKEYUTILS 1" >>confdefs.h 24198 24199fi 24200 24201 24202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 24203$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 24204if ${ac_cv_header_stdbool_h+:} false; then : 24205 $as_echo_n "(cached) " >&6 24206else 24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24208/* end confdefs.h. */ 24209 24210 #include <stdbool.h> 24211 #ifndef bool 24212 "error: bool is not defined" 24213 #endif 24214 #ifndef false 24215 "error: false is not defined" 24216 #endif 24217 #if false 24218 "error: false is not 0" 24219 #endif 24220 #ifndef true 24221 "error: true is not defined" 24222 #endif 24223 #if true != 1 24224 "error: true is not 1" 24225 #endif 24226 #ifndef __bool_true_false_are_defined 24227 "error: __bool_true_false_are_defined is not defined" 24228 #endif 24229 24230 struct s { _Bool s: 1; _Bool t; } s; 24231 24232 char a[true == 1 ? 1 : -1]; 24233 char b[false == 0 ? 1 : -1]; 24234 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 24235 char d[(bool) 0.5 == true ? 1 : -1]; 24236 /* See body of main program for 'e'. */ 24237 char f[(_Bool) 0.0 == false ? 1 : -1]; 24238 char g[true]; 24239 char h[sizeof (_Bool)]; 24240 char i[sizeof s.t]; 24241 enum { j = false, k = true, l = false * true, m = true * 256 }; 24242 /* The following fails for 24243 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 24244 _Bool n[m]; 24245 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 24246 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 24247 /* Catch a bug in an HP-UX C compiler. See 24248 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 24249 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 24250 */ 24251 _Bool q = true; 24252 _Bool *pq = &q; 24253 24254int 24255main () 24256{ 24257 24258 bool e = &s; 24259 *pq |= q; 24260 *pq |= ! q; 24261 /* Refer to every declared value, to avoid compiler optimizations. */ 24262 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 24263 + !m + !n + !o + !p + !q + !pq); 24264 24265 ; 24266 return 0; 24267} 24268_ACEOF 24269if ac_fn_c_try_compile "$LINENO"; then : 24270 ac_cv_header_stdbool_h=yes 24271else 24272 ac_cv_header_stdbool_h=no 24273fi 24274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24275fi 24276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 24277$as_echo "$ac_cv_header_stdbool_h" >&6; } 24278 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 24279if test "x$ac_cv_type__Bool" = xyes; then : 24280 24281cat >>confdefs.h <<_ACEOF 24282#define HAVE__BOOL 1 24283_ACEOF 24284 24285 24286fi 24287 24288 24289if test $ac_cv_header_stdbool_h = yes; then 24290 24291$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 24292 24293fi 24294 24295for ac_header in sys/bittypes.h sys/select.h syslog.h 24296do : 24297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24298ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24299if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24300 cat >>confdefs.h <<_ACEOF 24301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24302_ACEOF 24303 24304fi 24305 24306done 24307 24308ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 24309if test "x$ac_cv_have_decl_snprintf" = xyes; then : 24310 ac_have_decl=1 24311else 24312 ac_have_decl=0 24313fi 24314 24315cat >>confdefs.h <<_ACEOF 24316#define HAVE_DECL_SNPRINTF $ac_have_decl 24317_ACEOF 24318ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 24319if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 24320 ac_have_decl=1 24321else 24322 ac_have_decl=0 24323fi 24324 24325cat >>confdefs.h <<_ACEOF 24326#define HAVE_DECL_VSNPRINTF $ac_have_decl 24327_ACEOF 24328 24329for ac_func in setrlimit 24330do : 24331 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 24332if test "x$ac_cv_func_setrlimit" = xyes; then : 24333 cat >>confdefs.h <<_ACEOF 24334#define HAVE_SETRLIMIT 1 24335_ACEOF 24336 24337fi 24338done 24339 24340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5 24341$as_echo_n "checking for C99 variadic macros... " >&6; } 24342if ${rra_cv_c_c99_vamacros+:} false; then : 24343 $as_echo_n "(cached) " >&6 24344else 24345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24346/* end confdefs.h. */ 24347 24348#include <stdio.h> 24349#define error(...) fprintf(stderr, __VA_ARGS__) 24350 24351int 24352main(void) { 24353 error("foo"); 24354 error("foo %d", 0); 24355 return 0; 24356} 24357 24358_ACEOF 24359if ac_fn_c_try_compile "$LINENO"; then : 24360 rra_cv_c_c99_vamacros=yes 24361else 24362 rra_cv_c_c99_vamacros=no 24363fi 24364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24365fi 24366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5 24367$as_echo "$rra_cv_c_c99_vamacros" >&6; } 24368 if test x"$rra_cv_c_c99_vamacros" = xyes; then : 24369 24370$as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h 24371 24372fi 24373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5 24374$as_echo_n "checking for GNU-style variadic macros... " >&6; } 24375if ${rra_cv_c_gnu_vamacros+:} false; then : 24376 $as_echo_n "(cached) " >&6 24377else 24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24379/* end confdefs.h. */ 24380 24381#include <stdio.h> 24382#define error(args...) fprintf(stderr, args) 24383 24384int 24385main(void) { 24386 error("foo"); 24387 error("foo %d", 0); 24388 return 0; 24389} 24390 24391_ACEOF 24392if ac_fn_c_try_compile "$LINENO"; then : 24393 rra_cv_c_gnu_vamacros=yes 24394else 24395 rra_cv_c_gnu_vamacros=no 24396fi 24397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24398fi 24399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5 24400$as_echo "$rra_cv_c_gnu_vamacros" >&6; } 24401 if test x"$rra_cv_c_gnu_vamacros" = xyes; then : 24402 24403$as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h 24404 24405fi 24406 24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 24408$as_echo_n "checking for unsigned long long int... " >&6; } 24409if ${ac_cv_type_unsigned_long_long_int+:} false; then : 24410 $as_echo_n "(cached) " >&6 24411else 24412 ac_cv_type_unsigned_long_long_int=yes 24413 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 24414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24415/* end confdefs.h. */ 24416 24417 /* For now, do not test the preprocessor; as of 2007 there are too many 24418 implementations with broken preprocessors. Perhaps this can 24419 be revisited in 2012. In the meantime, code should not expect 24420 #if to work with literals wider than 32 bits. */ 24421 /* Test literals. */ 24422 long long int ll = 9223372036854775807ll; 24423 long long int nll = -9223372036854775807LL; 24424 unsigned long long int ull = 18446744073709551615ULL; 24425 /* Test constant expressions. */ 24426 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 24427 ? 1 : -1)]; 24428 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 24429 ? 1 : -1)]; 24430 int i = 63; 24431int 24432main () 24433{ 24434/* Test availability of runtime routines for shift and division. */ 24435 long long int llmax = 9223372036854775807ll; 24436 unsigned long long int ullmax = 18446744073709551615ull; 24437 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 24438 | (llmax / ll) | (llmax % ll) 24439 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 24440 | (ullmax / ull) | (ullmax % ull)); 24441 ; 24442 return 0; 24443} 24444 24445_ACEOF 24446if ac_fn_c_try_link "$LINENO"; then : 24447 24448else 24449 ac_cv_type_unsigned_long_long_int=no 24450fi 24451rm -f core conftest.err conftest.$ac_objext \ 24452 conftest$ac_exeext conftest.$ac_ext 24453 fi 24454fi 24455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 24456$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 24457 if test $ac_cv_type_unsigned_long_long_int = yes; then 24458 24459$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 24460 24461 fi 24462 24463 24464 24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 24466$as_echo_n "checking for long long int... " >&6; } 24467if ${ac_cv_type_long_long_int+:} false; then : 24468 $as_echo_n "(cached) " >&6 24469else 24470 ac_cv_type_long_long_int=yes 24471 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 24472 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 24473 if test $ac_cv_type_long_long_int = yes; then 24474 if test "$cross_compiling" = yes; then : 24475 : 24476else 24477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24478/* end confdefs.h. */ 24479#include <limits.h> 24480 #ifndef LLONG_MAX 24481 # define HALF \ 24482 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 24483 # define LLONG_MAX (HALF - 1 + HALF) 24484 #endif 24485int 24486main () 24487{ 24488long long int n = 1; 24489 int i; 24490 for (i = 0; ; i++) 24491 { 24492 long long int m = n << i; 24493 if (m >> i != n) 24494 return 1; 24495 if (LLONG_MAX / 2 < m) 24496 break; 24497 } 24498 return 0; 24499 ; 24500 return 0; 24501} 24502_ACEOF 24503if ac_fn_c_try_run "$LINENO"; then : 24504 24505else 24506 ac_cv_type_long_long_int=no 24507fi 24508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24509 conftest.$ac_objext conftest.beam conftest.$ac_ext 24510fi 24511 24512 fi 24513 fi 24514fi 24515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 24516$as_echo "$ac_cv_type_long_long_int" >&6; } 24517 if test $ac_cv_type_long_long_int = yes; then 24518 24519$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 24520 24521 fi 24522 24523ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 24524case $ac_cv_c_int32_t in #( 24525 no|yes) ;; #( 24526 *) 24527 24528cat >>confdefs.h <<_ACEOF 24529#define int32_t $ac_cv_c_int32_t 24530_ACEOF 24531;; 24532esac 24533 24534ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 24535case $ac_cv_c_uint32_t in #( 24536 no|yes) ;; #( 24537 *) 24538 24539$as_echo "#define _UINT32_T 1" >>confdefs.h 24540 24541 24542cat >>confdefs.h <<_ACEOF 24543#define uint32_t $ac_cv_c_uint32_t 24544_ACEOF 24545;; 24546 esac 24547 24548 24549 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 24550if test "x$ac_cv_type_intptr_t" = xyes; then : 24551 24552$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 24553 24554else 24555 for ac_type in 'int' 'long int' 'long long int'; do 24556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24557/* end confdefs.h. */ 24558$ac_includes_default 24559int 24560main () 24561{ 24562static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 24563test_array [0] = 0; 24564return test_array [0]; 24565 24566 ; 24567 return 0; 24568} 24569_ACEOF 24570if ac_fn_c_try_compile "$LINENO"; then : 24571 24572cat >>confdefs.h <<_ACEOF 24573#define intptr_t $ac_type 24574_ACEOF 24575 24576 ac_type= 24577fi 24578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24579 test -z "$ac_type" && break 24580 done 24581fi 24582 24583 24584ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> 24585" 24586if test "x$ac_cv_type_ssize_t" = xyes; then : 24587 24588cat >>confdefs.h <<_ACEOF 24589#define HAVE_SSIZE_T 1 24590_ACEOF 24591 24592 24593fi 24594 24595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 24596$as_echo_n "checking for working snprintf... " >&6; } 24597if ${rra_cv_func_snprintf_works+:} false; then : 24598 $as_echo_n "(cached) " >&6 24599else 24600 if test "$cross_compiling" = yes; then : 24601 rra_cv_func_snprintf_works=no 24602else 24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24604/* end confdefs.h. */ 24605 24606#include <stdio.h> 24607#include <stdarg.h> 24608 24609char buf[2]; 24610 24611int 24612test(char *format, ...) 24613{ 24614 va_list args; 24615 int count; 24616 24617 va_start(args, format); 24618 count = vsnprintf(buf, sizeof buf, format, args); 24619 va_end(args); 24620 return count; 24621} 24622 24623int 24624main() 24625{ 24626 return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0' 24627 && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1); 24628} 24629 24630_ACEOF 24631if ac_fn_c_try_run "$LINENO"; then : 24632 rra_cv_func_snprintf_works=yes 24633else 24634 rra_cv_func_snprintf_works=no 24635fi 24636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24637 conftest.$ac_objext conftest.beam conftest.$ac_ext 24638fi 24639 24640fi 24641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5 24642$as_echo "$rra_cv_func_snprintf_works" >&6; } 24643 if test x"$rra_cv_func_snprintf_works" = xyes; then : 24644 24645$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 24646 24647else 24648 case " $LIBOBJS " in 24649 *" snprintf.$ac_objext "* ) ;; 24650 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 24651 ;; 24652esac 24653 24654fi 24655ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 24656if test "x$ac_cv_func_asprintf" = xyes; then : 24657 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 24658 24659else 24660 case " $LIBOBJS " in 24661 *" asprintf.$ac_objext "* ) ;; 24662 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 24663 ;; 24664esac 24665 24666fi 24667 24668ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 24669if test "x$ac_cv_func_mkstemp" = xyes; then : 24670 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h 24671 24672else 24673 case " $LIBOBJS " in 24674 *" mkstemp.$ac_objext "* ) ;; 24675 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 24676 ;; 24677esac 24678 24679fi 24680 24681ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 24682if test "x$ac_cv_func_reallocarray" = xyes; then : 24683 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 24684 24685else 24686 case " $LIBOBJS " in 24687 *" reallocarray.$ac_objext "* ) ;; 24688 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 24689 ;; 24690esac 24691 24692fi 24693 24694ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 24695if test "x$ac_cv_func_setenv" = xyes; then : 24696 $as_echo "#define HAVE_SETENV 1" >>confdefs.h 24697 24698else 24699 case " $LIBOBJS " in 24700 *" setenv.$ac_objext "* ) ;; 24701 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 24702 ;; 24703esac 24704 24705fi 24706 24707ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24708if test "x$ac_cv_func_strlcat" = xyes; then : 24709 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 24710 24711else 24712 case " $LIBOBJS " in 24713 *" strlcat.$ac_objext "* ) ;; 24714 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 24715 ;; 24716esac 24717 24718fi 24719 24720ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24721if test "x$ac_cv_func_strlcpy" = xyes; then : 24722 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 24723 24724else 24725 case " $LIBOBJS " in 24726 *" strlcpy.$ac_objext "* ) ;; 24727 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 24728 ;; 24729esac 24730 24731fi 24732 24733 24734ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 24735if test "x$ac_cv_func_strndup" = xyes; then : 24736 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 24737 24738else 24739 case " $LIBOBJS " in 24740 *" strndup.$ac_objext "* ) ;; 24741 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 24742 ;; 24743esac 24744 24745fi 24746 24747 24748 24749if test x"$rra_reduced_depends" = xtrue; then : 24750 DEPEND_LIBS= 24751else 24752 DEPEND_LIBS="$APR_LDFLAGS $APR_LIBS $APRUTIL_LDFLAGS $APRUTIL_LIBS" 24753 DEPEND_LIBS="$DEPEND_LIBS $JANSSON_LDFLAGS $JANSSON_LIBS" 24754 DEPEND_LIBS="$DEPEND_LIBS $REMCTL_LDFLAGS $REMCTL_LIBS" 24755 DEPEND_LIBS="$DEPEND_LIBS $KRB5_LDFLAGS $KRB5_LIBS" 24756 DEPEND_LIBS="$DEPEND_LIBS $CRYPTO_LDFLAGS $CRYPTO_LIBS $KEYUTILS_LIBS" 24757fi 24758 24759 24760ac_config_files="$ac_config_files Makefile tests/data/conf-webkdc" 24761 24762ac_config_headers="$ac_config_headers config.h config-mod.h" 24763 24764ac_config_commands="$ac_config_commands include/webauth/defines.h" 24765 24766cat >confcache <<\_ACEOF 24767# This file is a shell script that caches the results of configure 24768# tests run on this system so they can be shared between configure 24769# scripts and configure runs, see configure's option --config-cache. 24770# It is not useful on other systems. If it contains results you don't 24771# want to keep, you may remove or edit it. 24772# 24773# config.status only pays attention to the cache file if you give it 24774# the --recheck option to rerun configure. 24775# 24776# `ac_cv_env_foo' variables (set or unset) will be overridden when 24777# loading this file, other *unset* `ac_cv_foo' will be assigned the 24778# following values. 24779 24780_ACEOF 24781 24782# The following way of writing the cache mishandles newlines in values, 24783# but we know of no workaround that is simple, portable, and efficient. 24784# So, we kill variables containing newlines. 24785# Ultrix sh set writes to stderr and can't be redirected directly, 24786# and sets the high bit in the cache file unless we assign to the vars. 24787( 24788 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24789 eval ac_val=\$$ac_var 24790 case $ac_val in #( 24791 *${as_nl}*) 24792 case $ac_var in #( 24793 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24794$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24795 esac 24796 case $ac_var in #( 24797 _ | IFS | as_nl) ;; #( 24798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24799 *) { eval $ac_var=; unset $ac_var;} ;; 24800 esac ;; 24801 esac 24802 done 24803 24804 (set) 2>&1 | 24805 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24806 *${as_nl}ac_space=\ *) 24807 # `set' does not quote correctly, so add quotes: double-quote 24808 # substitution turns \\\\ into \\, and sed turns \\ into \. 24809 sed -n \ 24810 "s/'/'\\\\''/g; 24811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24812 ;; #( 24813 *) 24814 # `set' quotes correctly as required by POSIX, so do not add quotes. 24815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24816 ;; 24817 esac | 24818 sort 24819) | 24820 sed ' 24821 /^ac_cv_env_/b end 24822 t clear 24823 :clear 24824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24825 t end 24826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24827 :end' >>confcache 24828if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24829 if test -w "$cache_file"; then 24830 if test "x$cache_file" != "x/dev/null"; then 24831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24832$as_echo "$as_me: updating cache $cache_file" >&6;} 24833 if test ! -f "$cache_file" || test -h "$cache_file"; then 24834 cat confcache >"$cache_file" 24835 else 24836 case $cache_file in #( 24837 */* | ?:*) 24838 mv -f confcache "$cache_file"$$ && 24839 mv -f "$cache_file"$$ "$cache_file" ;; #( 24840 *) 24841 mv -f confcache "$cache_file" ;; 24842 esac 24843 fi 24844 fi 24845 else 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24847$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24848 fi 24849fi 24850rm -f confcache 24851 24852test "x$prefix" = xNONE && prefix=$ac_default_prefix 24853# Let make expand exec_prefix. 24854test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24855 24856DEFS=-DHAVE_CONFIG_H 24857 24858ac_libobjs= 24859ac_ltlibobjs= 24860U= 24861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24862 # 1. Remove the extension, and $U if already installed. 24863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24866 # will be set to the directory where LIBOBJS objects are built. 24867 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24868 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24869done 24870LIBOBJS=$ac_libobjs 24871 24872LTLIBOBJS=$ac_ltlibobjs 24873 24874 24875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 24876$as_echo_n "checking that generated files are newer than configure... " >&6; } 24877 if test -n "$am_sleep_pid"; then 24878 # Hide warnings about reused PIDs. 24879 wait $am_sleep_pid 2>/dev/null 24880 fi 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 24882$as_echo "done" >&6; } 24883 if test -n "$EXEEXT"; then 24884 am__EXEEXT_TRUE= 24885 am__EXEEXT_FALSE='#' 24886else 24887 am__EXEEXT_TRUE='#' 24888 am__EXEEXT_FALSE= 24889fi 24890 24891if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 24892 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 24893Usually this means the macro was only invoked conditionally." "$LINENO" 5 24894fi 24895if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24896 as_fn_error $? "conditional \"AMDEP\" was never defined. 24897Usually this means the macro was only invoked conditionally." "$LINENO" 5 24898fi 24899if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24900 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 24901Usually this means the macro was only invoked conditionally." "$LINENO" 5 24902fi 24903if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 24904 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 24905Usually this means the macro was only invoked conditionally." "$LINENO" 5 24906fi 24907if test -z "${BUILD_WEBKDC_TRUE}" && test -z "${BUILD_WEBKDC_FALSE}"; then 24908 as_fn_error $? "conditional \"BUILD_WEBKDC\" was never defined. 24909Usually this means the macro was only invoked conditionally." "$LINENO" 5 24910fi 24911if test -z "${BUILD_WEBAUTH_TRUE}" && test -z "${BUILD_WEBAUTH_FALSE}"; then 24912 as_fn_error $? "conditional \"BUILD_WEBAUTH\" was never defined. 24913Usually this means the macro was only invoked conditionally." "$LINENO" 5 24914fi 24915if test -z "${BUILD_WEBAUTHLDAP_TRUE}" && test -z "${BUILD_WEBAUTHLDAP_FALSE}"; then 24916 as_fn_error $? "conditional \"BUILD_WEBAUTHLDAP\" was never defined. 24917Usually this means the macro was only invoked conditionally." "$LINENO" 5 24918fi 24919if test -z "${BUILD_PERL_TRUE}" && test -z "${BUILD_PERL_FALSE}"; then 24920 as_fn_error $? "conditional \"BUILD_PERL\" was never defined. 24921Usually this means the macro was only invoked conditionally." "$LINENO" 5 24922fi 24923if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then 24924 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined. 24925Usually this means the macro was only invoked conditionally." "$LINENO" 5 24926fi 24927 24928: "${CONFIG_STATUS=./config.status}" 24929ac_write_fail=0 24930ac_clean_files_save=$ac_clean_files 24931ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24932{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24933$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24934as_write_fail=0 24935cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24936#! $SHELL 24937# Generated by $as_me. 24938# Run this file to recreate the current configuration. 24939# Compiler output produced by configure, useful for debugging 24940# configure, is in config.log if it exists. 24941 24942debug=false 24943ac_cs_recheck=false 24944ac_cs_silent=false 24945 24946SHELL=\${CONFIG_SHELL-$SHELL} 24947export SHELL 24948_ASEOF 24949cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24950## -------------------- ## 24951## M4sh Initialization. ## 24952## -------------------- ## 24953 24954# Be more Bourne compatible 24955DUALCASE=1; export DUALCASE # for MKS sh 24956if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24957 emulate sh 24958 NULLCMD=: 24959 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24960 # is contrary to our usage. Disable this feature. 24961 alias -g '${1+"$@"}'='"$@"' 24962 setopt NO_GLOB_SUBST 24963else 24964 case `(set -o) 2>/dev/null` in #( 24965 *posix*) : 24966 set -o posix ;; #( 24967 *) : 24968 ;; 24969esac 24970fi 24971 24972 24973as_nl=' 24974' 24975export as_nl 24976# Printing a long string crashes Solaris 7 /usr/bin/printf. 24977as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24978as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24979as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24980# Prefer a ksh shell builtin over an external printf program on Solaris, 24981# but without wasting forks for bash or zsh. 24982if test -z "$BASH_VERSION$ZSH_VERSION" \ 24983 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24984 as_echo='print -r --' 24985 as_echo_n='print -rn --' 24986elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24987 as_echo='printf %s\n' 24988 as_echo_n='printf %s' 24989else 24990 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24991 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24992 as_echo_n='/usr/ucb/echo -n' 24993 else 24994 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24995 as_echo_n_body='eval 24996 arg=$1; 24997 case $arg in #( 24998 *"$as_nl"*) 24999 expr "X$arg" : "X\\(.*\\)$as_nl"; 25000 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25001 esac; 25002 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25003 ' 25004 export as_echo_n_body 25005 as_echo_n='sh -c $as_echo_n_body as_echo' 25006 fi 25007 export as_echo_body 25008 as_echo='sh -c $as_echo_body as_echo' 25009fi 25010 25011# The user is always right. 25012if test "${PATH_SEPARATOR+set}" != set; then 25013 PATH_SEPARATOR=: 25014 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25015 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25016 PATH_SEPARATOR=';' 25017 } 25018fi 25019 25020 25021# IFS 25022# We need space, tab and new line, in precisely that order. Quoting is 25023# there to prevent editors from complaining about space-tab. 25024# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25025# splitting by setting IFS to empty value.) 25026IFS=" "" $as_nl" 25027 25028# Find who we are. Look in the path if we contain no directory separator. 25029as_myself= 25030case $0 in #(( 25031 *[\\/]* ) as_myself=$0 ;; 25032 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25033for as_dir in $PATH 25034do 25035 IFS=$as_save_IFS 25036 test -z "$as_dir" && as_dir=. 25037 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25038 done 25039IFS=$as_save_IFS 25040 25041 ;; 25042esac 25043# We did not find ourselves, most probably we were run as `sh COMMAND' 25044# in which case we are not to be found in the path. 25045if test "x$as_myself" = x; then 25046 as_myself=$0 25047fi 25048if test ! -f "$as_myself"; then 25049 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25050 exit 1 25051fi 25052 25053# Unset variables that we do not need and which cause bugs (e.g. in 25054# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25055# suppresses any "Segmentation fault" message there. '((' could 25056# trigger a bug in pdksh 5.2.14. 25057for as_var in BASH_ENV ENV MAIL MAILPATH 25058do eval test x\${$as_var+set} = xset \ 25059 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25060done 25061PS1='$ ' 25062PS2='> ' 25063PS4='+ ' 25064 25065# NLS nuisances. 25066LC_ALL=C 25067export LC_ALL 25068LANGUAGE=C 25069export LANGUAGE 25070 25071# CDPATH. 25072(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25073 25074 25075# as_fn_error STATUS ERROR [LINENO LOG_FD] 25076# ---------------------------------------- 25077# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25078# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25079# script with STATUS, using 1 if that was 0. 25080as_fn_error () 25081{ 25082 as_status=$1; test $as_status -eq 0 && as_status=1 25083 if test "$4"; then 25084 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25085 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25086 fi 25087 $as_echo "$as_me: error: $2" >&2 25088 as_fn_exit $as_status 25089} # as_fn_error 25090 25091 25092# as_fn_set_status STATUS 25093# ----------------------- 25094# Set $? to STATUS, without forking. 25095as_fn_set_status () 25096{ 25097 return $1 25098} # as_fn_set_status 25099 25100# as_fn_exit STATUS 25101# ----------------- 25102# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25103as_fn_exit () 25104{ 25105 set +e 25106 as_fn_set_status $1 25107 exit $1 25108} # as_fn_exit 25109 25110# as_fn_unset VAR 25111# --------------- 25112# Portably unset VAR. 25113as_fn_unset () 25114{ 25115 { eval $1=; unset $1;} 25116} 25117as_unset=as_fn_unset 25118# as_fn_append VAR VALUE 25119# ---------------------- 25120# Append the text in VALUE to the end of the definition contained in VAR. Take 25121# advantage of any shell optimizations that allow amortized linear growth over 25122# repeated appends, instead of the typical quadratic growth present in naive 25123# implementations. 25124if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25125 eval 'as_fn_append () 25126 { 25127 eval $1+=\$2 25128 }' 25129else 25130 as_fn_append () 25131 { 25132 eval $1=\$$1\$2 25133 } 25134fi # as_fn_append 25135 25136# as_fn_arith ARG... 25137# ------------------ 25138# Perform arithmetic evaluation on the ARGs, and store the result in the 25139# global $as_val. Take advantage of shells that can avoid forks. The arguments 25140# must be portable across $(()) and expr. 25141if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25142 eval 'as_fn_arith () 25143 { 25144 as_val=$(( $* )) 25145 }' 25146else 25147 as_fn_arith () 25148 { 25149 as_val=`expr "$@" || test $? -eq 1` 25150 } 25151fi # as_fn_arith 25152 25153 25154if expr a : '\(a\)' >/dev/null 2>&1 && 25155 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25156 as_expr=expr 25157else 25158 as_expr=false 25159fi 25160 25161if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25162 as_basename=basename 25163else 25164 as_basename=false 25165fi 25166 25167if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25168 as_dirname=dirname 25169else 25170 as_dirname=false 25171fi 25172 25173as_me=`$as_basename -- "$0" || 25174$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25175 X"$0" : 'X\(//\)$' \| \ 25176 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25177$as_echo X/"$0" | 25178 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25179 s//\1/ 25180 q 25181 } 25182 /^X\/\(\/\/\)$/{ 25183 s//\1/ 25184 q 25185 } 25186 /^X\/\(\/\).*/{ 25187 s//\1/ 25188 q 25189 } 25190 s/.*/./; q'` 25191 25192# Avoid depending upon Character Ranges. 25193as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25194as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25195as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25196as_cr_digits='0123456789' 25197as_cr_alnum=$as_cr_Letters$as_cr_digits 25198 25199ECHO_C= ECHO_N= ECHO_T= 25200case `echo -n x` in #((((( 25201-n*) 25202 case `echo 'xy\c'` in 25203 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25204 xy) ECHO_C='\c';; 25205 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25206 ECHO_T=' ';; 25207 esac;; 25208*) 25209 ECHO_N='-n';; 25210esac 25211 25212rm -f conf$$ conf$$.exe conf$$.file 25213if test -d conf$$.dir; then 25214 rm -f conf$$.dir/conf$$.file 25215else 25216 rm -f conf$$.dir 25217 mkdir conf$$.dir 2>/dev/null 25218fi 25219if (echo >conf$$.file) 2>/dev/null; then 25220 if ln -s conf$$.file conf$$ 2>/dev/null; then 25221 as_ln_s='ln -s' 25222 # ... but there are two gotchas: 25223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25225 # In both cases, we have to default to `cp -pR'. 25226 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25227 as_ln_s='cp -pR' 25228 elif ln conf$$.file conf$$ 2>/dev/null; then 25229 as_ln_s=ln 25230 else 25231 as_ln_s='cp -pR' 25232 fi 25233else 25234 as_ln_s='cp -pR' 25235fi 25236rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25237rmdir conf$$.dir 2>/dev/null 25238 25239 25240# as_fn_mkdir_p 25241# ------------- 25242# Create "$as_dir" as a directory, including parents if necessary. 25243as_fn_mkdir_p () 25244{ 25245 25246 case $as_dir in #( 25247 -*) as_dir=./$as_dir;; 25248 esac 25249 test -d "$as_dir" || eval $as_mkdir_p || { 25250 as_dirs= 25251 while :; do 25252 case $as_dir in #( 25253 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25254 *) as_qdir=$as_dir;; 25255 esac 25256 as_dirs="'$as_qdir' $as_dirs" 25257 as_dir=`$as_dirname -- "$as_dir" || 25258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25259 X"$as_dir" : 'X\(//\)[^/]' \| \ 25260 X"$as_dir" : 'X\(//\)$' \| \ 25261 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25262$as_echo X"$as_dir" | 25263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25264 s//\1/ 25265 q 25266 } 25267 /^X\(\/\/\)[^/].*/{ 25268 s//\1/ 25269 q 25270 } 25271 /^X\(\/\/\)$/{ 25272 s//\1/ 25273 q 25274 } 25275 /^X\(\/\).*/{ 25276 s//\1/ 25277 q 25278 } 25279 s/.*/./; q'` 25280 test -d "$as_dir" && break 25281 done 25282 test -z "$as_dirs" || eval "mkdir $as_dirs" 25283 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25284 25285 25286} # as_fn_mkdir_p 25287if mkdir -p . 2>/dev/null; then 25288 as_mkdir_p='mkdir -p "$as_dir"' 25289else 25290 test -d ./-p && rmdir ./-p 25291 as_mkdir_p=false 25292fi 25293 25294 25295# as_fn_executable_p FILE 25296# ----------------------- 25297# Test if FILE is an executable regular file. 25298as_fn_executable_p () 25299{ 25300 test -f "$1" && test -x "$1" 25301} # as_fn_executable_p 25302as_test_x='test -x' 25303as_executable_p=as_fn_executable_p 25304 25305# Sed expression to map a string onto a valid CPP name. 25306as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25307 25308# Sed expression to map a string onto a valid variable name. 25309as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25310 25311 25312exec 6>&1 25313## ----------------------------------- ## 25314## Main body of $CONFIG_STATUS script. ## 25315## ----------------------------------- ## 25316_ASEOF 25317test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25318 25319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25320# Save the log message, to keep $0 and so on meaningful, and to 25321# report actual input values of CONFIG_FILES etc. instead of their 25322# values after options handling. 25323ac_log=" 25324This file was extended by WebAuth $as_me 4.7.0, which was 25325generated by GNU Autoconf 2.69. Invocation command line was 25326 25327 CONFIG_FILES = $CONFIG_FILES 25328 CONFIG_HEADERS = $CONFIG_HEADERS 25329 CONFIG_LINKS = $CONFIG_LINKS 25330 CONFIG_COMMANDS = $CONFIG_COMMANDS 25331 $ $0 $@ 25332 25333on `(hostname || uname -n) 2>/dev/null | sed 1q` 25334" 25335 25336_ACEOF 25337 25338case $ac_config_files in *" 25339"*) set x $ac_config_files; shift; ac_config_files=$*;; 25340esac 25341 25342case $ac_config_headers in *" 25343"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25344esac 25345 25346 25347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25348# Files that config.status was made for. 25349config_files="$ac_config_files" 25350config_headers="$ac_config_headers" 25351config_commands="$ac_config_commands" 25352 25353_ACEOF 25354 25355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25356ac_cs_usage="\ 25357\`$as_me' instantiates files and other configuration actions 25358from templates according to the current configuration. Unless the files 25359and actions are specified as TAGs, all are instantiated by default. 25360 25361Usage: $0 [OPTION]... [TAG]... 25362 25363 -h, --help print this help, then exit 25364 -V, --version print version number and configuration settings, then exit 25365 --config print configuration, then exit 25366 -q, --quiet, --silent 25367 do not print progress messages 25368 -d, --debug don't remove temporary files 25369 --recheck update $as_me by reconfiguring in the same conditions 25370 --file=FILE[:TEMPLATE] 25371 instantiate the configuration file FILE 25372 --header=FILE[:TEMPLATE] 25373 instantiate the configuration header FILE 25374 25375Configuration files: 25376$config_files 25377 25378Configuration headers: 25379$config_headers 25380 25381Configuration commands: 25382$config_commands 25383 25384Report bugs to <webauth-team@lists.stanford.edu>." 25385 25386_ACEOF 25387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25388ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25389ac_cs_version="\\ 25390WebAuth config.status 4.7.0 25391configured by $0, generated by GNU Autoconf 2.69, 25392 with options \\"\$ac_cs_config\\" 25393 25394Copyright (C) 2012 Free Software Foundation, Inc. 25395This config.status script is free software; the Free Software Foundation 25396gives unlimited permission to copy, distribute and modify it." 25397 25398ac_pwd='$ac_pwd' 25399srcdir='$srcdir' 25400INSTALL='$INSTALL' 25401MKDIR_P='$MKDIR_P' 25402AWK='$AWK' 25403test -n "\$AWK" || AWK=awk 25404_ACEOF 25405 25406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25407# The default lists apply if the user does not specify any file. 25408ac_need_defaults=: 25409while test $# != 0 25410do 25411 case $1 in 25412 --*=?*) 25413 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25414 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25415 ac_shift=: 25416 ;; 25417 --*=) 25418 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25419 ac_optarg= 25420 ac_shift=: 25421 ;; 25422 *) 25423 ac_option=$1 25424 ac_optarg=$2 25425 ac_shift=shift 25426 ;; 25427 esac 25428 25429 case $ac_option in 25430 # Handling of the options. 25431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25432 ac_cs_recheck=: ;; 25433 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25434 $as_echo "$ac_cs_version"; exit ;; 25435 --config | --confi | --conf | --con | --co | --c ) 25436 $as_echo "$ac_cs_config"; exit ;; 25437 --debug | --debu | --deb | --de | --d | -d ) 25438 debug=: ;; 25439 --file | --fil | --fi | --f ) 25440 $ac_shift 25441 case $ac_optarg in 25442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25443 '') as_fn_error $? "missing file argument" ;; 25444 esac 25445 as_fn_append CONFIG_FILES " '$ac_optarg'" 25446 ac_need_defaults=false;; 25447 --header | --heade | --head | --hea ) 25448 $ac_shift 25449 case $ac_optarg in 25450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25451 esac 25452 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25453 ac_need_defaults=false;; 25454 --he | --h) 25455 # Conflict between --help and --header 25456 as_fn_error $? "ambiguous option: \`$1' 25457Try \`$0 --help' for more information.";; 25458 --help | --hel | -h ) 25459 $as_echo "$ac_cs_usage"; exit ;; 25460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25461 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25462 ac_cs_silent=: ;; 25463 25464 # This is an error. 25465 -*) as_fn_error $? "unrecognized option: \`$1' 25466Try \`$0 --help' for more information." ;; 25467 25468 *) as_fn_append ac_config_targets " $1" 25469 ac_need_defaults=false ;; 25470 25471 esac 25472 shift 25473done 25474 25475ac_configure_extra_args= 25476 25477if $ac_cs_silent; then 25478 exec 6>/dev/null 25479 ac_configure_extra_args="$ac_configure_extra_args --silent" 25480fi 25481 25482_ACEOF 25483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25484if \$ac_cs_recheck; then 25485 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25486 shift 25487 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25488 CONFIG_SHELL='$SHELL' 25489 export CONFIG_SHELL 25490 exec "\$@" 25491fi 25492 25493_ACEOF 25494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25495exec 5>>config.log 25496{ 25497 echo 25498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25499## Running $as_me. ## 25500_ASBOX 25501 $as_echo "$ac_log" 25502} >&5 25503 25504_ACEOF 25505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25506# 25507# INIT-COMMANDS 25508# 25509AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 25510 25511 25512# The HP-UX ksh and POSIX shell print the target directory to stdout 25513# if CDPATH is set. 25514(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25515 25516sed_quote_subst='$sed_quote_subst' 25517double_quote_subst='$double_quote_subst' 25518delay_variable_subst='$delay_variable_subst' 25519macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25520macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25521enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25522enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25523pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25524enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25525SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25526ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25527PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25528host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25529host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25530host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25531build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25532build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25533build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25534SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25535Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25536GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25537EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25538FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25539LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25540NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25541LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25542max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25543ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25544exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25545lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25546lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25547lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25548lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25549lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25550reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25551reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25552OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25553deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25554file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25555file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25556want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25557DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25558sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25559AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25560AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25561archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25562STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25563RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25564old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25565old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25566old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25567lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25568CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25569CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25570compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25571GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25572lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25573lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25574lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25575lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 25576nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25577lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25578objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25579MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25580lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25581lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25582lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25583lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25584lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25585need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25586MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 25587DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 25588NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 25589LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 25590OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 25591OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 25592libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 25593shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 25594extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25595archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 25596enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 25597export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 25598whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 25599compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 25600old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 25601old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 25602archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 25603archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25604module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 25605module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 25606with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 25607allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 25608no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 25609hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 25610hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 25611hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 25612hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 25613hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 25614hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 25615hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 25616inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 25617link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 25618always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 25619export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 25620exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 25621include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 25622prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 25623postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 25624file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 25625variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 25626need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 25627need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 25628version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 25629runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 25630shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 25631shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 25632libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 25633library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 25634soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 25635install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 25636postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25637postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25638finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 25639finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 25640hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 25641sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 25642sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 25643hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 25644enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 25645enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 25646enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 25647old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 25648striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 25649 25650LTCC='$LTCC' 25651LTCFLAGS='$LTCFLAGS' 25652compiler='$compiler_DEFAULT' 25653 25654# A function that is used when there is no print builtin or printf. 25655func_fallback_echo () 25656{ 25657 eval 'cat <<_LTECHO_EOF 25658\$1 25659_LTECHO_EOF' 25660} 25661 25662# Quote evaled strings. 25663for var in SHELL \ 25664ECHO \ 25665PATH_SEPARATOR \ 25666SED \ 25667GREP \ 25668EGREP \ 25669FGREP \ 25670LD \ 25671NM \ 25672LN_S \ 25673lt_SP2NL \ 25674lt_NL2SP \ 25675reload_flag \ 25676OBJDUMP \ 25677deplibs_check_method \ 25678file_magic_cmd \ 25679file_magic_glob \ 25680want_nocaseglob \ 25681DLLTOOL \ 25682sharedlib_from_linklib_cmd \ 25683AR \ 25684AR_FLAGS \ 25685archiver_list_spec \ 25686STRIP \ 25687RANLIB \ 25688CC \ 25689CFLAGS \ 25690compiler \ 25691lt_cv_sys_global_symbol_pipe \ 25692lt_cv_sys_global_symbol_to_cdecl \ 25693lt_cv_sys_global_symbol_to_c_name_address \ 25694lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 25695nm_file_list_spec \ 25696lt_prog_compiler_no_builtin_flag \ 25697lt_prog_compiler_pic \ 25698lt_prog_compiler_wl \ 25699lt_prog_compiler_static \ 25700lt_cv_prog_compiler_c_o \ 25701need_locks \ 25702MANIFEST_TOOL \ 25703DSYMUTIL \ 25704NMEDIT \ 25705LIPO \ 25706OTOOL \ 25707OTOOL64 \ 25708shrext_cmds \ 25709export_dynamic_flag_spec \ 25710whole_archive_flag_spec \ 25711compiler_needs_object \ 25712with_gnu_ld \ 25713allow_undefined_flag \ 25714no_undefined_flag \ 25715hardcode_libdir_flag_spec \ 25716hardcode_libdir_separator \ 25717exclude_expsyms \ 25718include_expsyms \ 25719file_list_spec \ 25720variables_saved_for_relink \ 25721libname_spec \ 25722library_names_spec \ 25723soname_spec \ 25724install_override_mode \ 25725finish_eval \ 25726old_striplib \ 25727striplib; do 25728 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25729 *[\\\\\\\`\\"\\\$]*) 25730 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 25731 ;; 25732 *) 25733 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25734 ;; 25735 esac 25736done 25737 25738# Double-quote double-evaled strings. 25739for var in reload_cmds \ 25740old_postinstall_cmds \ 25741old_postuninstall_cmds \ 25742old_archive_cmds \ 25743extract_expsyms_cmds \ 25744old_archive_from_new_cmds \ 25745old_archive_from_expsyms_cmds \ 25746archive_cmds \ 25747archive_expsym_cmds \ 25748module_cmds \ 25749module_expsym_cmds \ 25750export_symbols_cmds \ 25751prelink_cmds \ 25752postlink_cmds \ 25753postinstall_cmds \ 25754postuninstall_cmds \ 25755finish_cmds \ 25756sys_lib_search_path_spec \ 25757sys_lib_dlsearch_path_spec; do 25758 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 25759 *[\\\\\\\`\\"\\\$]*) 25760 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 25761 ;; 25762 *) 25763 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 25764 ;; 25765 esac 25766done 25767 25768ac_aux_dir='$ac_aux_dir' 25769xsi_shell='$xsi_shell' 25770lt_shell_append='$lt_shell_append' 25771 25772# See if we are running on zsh, and set the options which allow our 25773# commands through without removal of \ escapes INIT. 25774if test -n "\${ZSH_VERSION+set}" ; then 25775 setopt NO_GLOB_SUBST 25776fi 25777 25778 25779 PACKAGE='$PACKAGE' 25780 VERSION='$VERSION' 25781 TIMESTAMP='$TIMESTAMP' 25782 RM='$RM' 25783 ofile='$ofile' 25784 25785 25786 25787filename=include/webauth/defines.h 25788 25789_ACEOF 25790 25791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25792 25793# Handling of arguments. 25794for ac_config_target in $ac_config_targets 25795do 25796 case $ac_config_target in 25797 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 25798 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 25799 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25800 "tests/data/conf-webkdc") CONFIG_FILES="$CONFIG_FILES tests/data/conf-webkdc" ;; 25801 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 25802 "config-mod.h") CONFIG_HEADERS="$CONFIG_HEADERS config-mod.h" ;; 25803 "include/webauth/defines.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/webauth/defines.h" ;; 25804 25805 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25806 esac 25807done 25808 25809 25810# If the user did not use the arguments to specify the items to instantiate, 25811# then the envvar interface is used. Set only those that are not. 25812# We use the long form for the default assignment because of an extremely 25813# bizarre bug on SunOS 4.1.3. 25814if $ac_need_defaults; then 25815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25818fi 25819 25820# Have a temporary directory for convenience. Make it in the build tree 25821# simply because there is no reason against having it here, and in addition, 25822# creating and moving files from /tmp can sometimes cause problems. 25823# Hook for its removal unless debugging. 25824# Note that there is a small window in which the directory will not be cleaned: 25825# after its creation but before its name has been assigned to `$tmp'. 25826$debug || 25827{ 25828 tmp= ac_tmp= 25829 trap 'exit_status=$? 25830 : "${ac_tmp:=$tmp}" 25831 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25832' 0 25833 trap 'as_fn_exit 1' 1 2 13 15 25834} 25835# Create a (secure) tmp directory for tmp files. 25836 25837{ 25838 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25839 test -d "$tmp" 25840} || 25841{ 25842 tmp=./conf$$-$RANDOM 25843 (umask 077 && mkdir "$tmp") 25844} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25845ac_tmp=$tmp 25846 25847# Set up the scripts for CONFIG_FILES section. 25848# No need to generate them if there are no CONFIG_FILES. 25849# This happens for instance with `./config.status config.h'. 25850if test -n "$CONFIG_FILES"; then 25851 25852 25853ac_cr=`echo X | tr X '\015'` 25854# On cygwin, bash can eat \r inside `` if the user requested igncr. 25855# But we know of no other shell where ac_cr would be empty at this 25856# point, so we can use a bashism as a fallback. 25857if test "x$ac_cr" = x; then 25858 eval ac_cr=\$\'\\r\' 25859fi 25860ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25861if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25862 ac_cs_awk_cr='\\r' 25863else 25864 ac_cs_awk_cr=$ac_cr 25865fi 25866 25867echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25868_ACEOF 25869 25870 25871{ 25872 echo "cat >conf$$subs.awk <<_ACEOF" && 25873 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25874 echo "_ACEOF" 25875} >conf$$subs.sh || 25876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25877ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25878ac_delim='%!_!# ' 25879for ac_last_try in false false false false false :; do 25880 . ./conf$$subs.sh || 25881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25882 25883 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25884 if test $ac_delim_n = $ac_delim_num; then 25885 break 25886 elif $ac_last_try; then 25887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25888 else 25889 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25890 fi 25891done 25892rm -f conf$$subs.sh 25893 25894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25895cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25896_ACEOF 25897sed -n ' 25898h 25899s/^/S["/; s/!.*/"]=/ 25900p 25901g 25902s/^[^!]*!// 25903:repl 25904t repl 25905s/'"$ac_delim"'$// 25906t delim 25907:nl 25908h 25909s/\(.\{148\}\)..*/\1/ 25910t more1 25911s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25912p 25913n 25914b repl 25915:more1 25916s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25917p 25918g 25919s/.\{148\}// 25920t nl 25921:delim 25922h 25923s/\(.\{148\}\)..*/\1/ 25924t more2 25925s/["\\]/\\&/g; s/^/"/; s/$/"/ 25926p 25927b 25928:more2 25929s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25930p 25931g 25932s/.\{148\}// 25933t delim 25934' <conf$$subs.awk | sed ' 25935/^[^""]/{ 25936 N 25937 s/\n// 25938} 25939' >>$CONFIG_STATUS || ac_write_fail=1 25940rm -f conf$$subs.awk 25941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25942_ACAWK 25943cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25944 for (key in S) S_is_set[key] = 1 25945 FS = "" 25946 25947} 25948{ 25949 line = $ 0 25950 nfields = split(line, field, "@") 25951 substed = 0 25952 len = length(field[1]) 25953 for (i = 2; i < nfields; i++) { 25954 key = field[i] 25955 keylen = length(key) 25956 if (S_is_set[key]) { 25957 value = S[key] 25958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25959 len += length(value) + length(field[++i]) 25960 substed = 1 25961 } else 25962 len += 1 + keylen 25963 } 25964 25965 print line 25966} 25967 25968_ACAWK 25969_ACEOF 25970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25971if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25972 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25973else 25974 cat 25975fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25976 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25977_ACEOF 25978 25979# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25980# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25981# trailing colons and then remove the whole line if VPATH becomes empty 25982# (actually we leave an empty line to preserve line numbers). 25983if test "x$srcdir" = x.; then 25984 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25985h 25986s/// 25987s/^/:/ 25988s/[ ]*$/:/ 25989s/:\$(srcdir):/:/g 25990s/:\${srcdir}:/:/g 25991s/:@srcdir@:/:/g 25992s/^:*// 25993s/:*$// 25994x 25995s/\(=[ ]*\).*/\1/ 25996G 25997s/\n// 25998s/^[^=]*=[ ]*$// 25999}' 26000fi 26001 26002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26003fi # test -n "$CONFIG_FILES" 26004 26005# Set up the scripts for CONFIG_HEADERS section. 26006# No need to generate them if there are no CONFIG_HEADERS. 26007# This happens for instance with `./config.status Makefile'. 26008if test -n "$CONFIG_HEADERS"; then 26009cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26010BEGIN { 26011_ACEOF 26012 26013# Transform confdefs.h into an awk script `defines.awk', embedded as 26014# here-document in config.status, that substitutes the proper values into 26015# config.h.in to produce config.h. 26016 26017# Create a delimiter string that does not exist in confdefs.h, to ease 26018# handling of long lines. 26019ac_delim='%!_!# ' 26020for ac_last_try in false false :; do 26021 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26022 if test -z "$ac_tt"; then 26023 break 26024 elif $ac_last_try; then 26025 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26026 else 26027 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26028 fi 26029done 26030 26031# For the awk script, D is an array of macro values keyed by name, 26032# likewise P contains macro parameters if any. Preserve backslash 26033# newline sequences. 26034 26035ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26036sed -n ' 26037s/.\{148\}/&'"$ac_delim"'/g 26038t rset 26039:rset 26040s/^[ ]*#[ ]*define[ ][ ]*/ / 26041t def 26042d 26043:def 26044s/\\$// 26045t bsnl 26046s/["\\]/\\&/g 26047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26048D["\1"]=" \3"/p 26049s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26050d 26051:bsnl 26052s/["\\]/\\&/g 26053s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26054D["\1"]=" \3\\\\\\n"\\/p 26055t cont 26056s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26057t cont 26058d 26059:cont 26060n 26061s/.\{148\}/&'"$ac_delim"'/g 26062t clear 26063:clear 26064s/\\$// 26065t bsnlc 26066s/["\\]/\\&/g; s/^/"/; s/$/"/p 26067d 26068:bsnlc 26069s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26070b cont 26071' <confdefs.h | sed ' 26072s/'"$ac_delim"'/"\\\ 26073"/g' >>$CONFIG_STATUS || ac_write_fail=1 26074 26075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26076 for (key in D) D_is_set[key] = 1 26077 FS = "" 26078} 26079/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26080 line = \$ 0 26081 split(line, arg, " ") 26082 if (arg[1] == "#") { 26083 defundef = arg[2] 26084 mac1 = arg[3] 26085 } else { 26086 defundef = substr(arg[1], 2) 26087 mac1 = arg[2] 26088 } 26089 split(mac1, mac2, "(") #) 26090 macro = mac2[1] 26091 prefix = substr(line, 1, index(line, defundef) - 1) 26092 if (D_is_set[macro]) { 26093 # Preserve the white space surrounding the "#". 26094 print prefix "define", macro P[macro] D[macro] 26095 next 26096 } else { 26097 # Replace #undef with comments. This is necessary, for example, 26098 # in the case of _POSIX_SOURCE, which is predefined and required 26099 # on some systems where configure will not decide to define it. 26100 if (defundef == "undef") { 26101 print "/*", prefix defundef, macro, "*/" 26102 next 26103 } 26104 } 26105} 26106{ print } 26107_ACAWK 26108_ACEOF 26109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26110 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26111fi # test -n "$CONFIG_HEADERS" 26112 26113 26114eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26115shift 26116for ac_tag 26117do 26118 case $ac_tag in 26119 :[FHLC]) ac_mode=$ac_tag; continue;; 26120 esac 26121 case $ac_mode$ac_tag in 26122 :[FHL]*:*);; 26123 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26124 :[FH]-) ac_tag=-:-;; 26125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26126 esac 26127 ac_save_IFS=$IFS 26128 IFS=: 26129 set x $ac_tag 26130 IFS=$ac_save_IFS 26131 shift 26132 ac_file=$1 26133 shift 26134 26135 case $ac_mode in 26136 :L) ac_source=$1;; 26137 :[FH]) 26138 ac_file_inputs= 26139 for ac_f 26140 do 26141 case $ac_f in 26142 -) ac_f="$ac_tmp/stdin";; 26143 *) # Look for the file first in the build tree, then in the source tree 26144 # (if the path is not absolute). The absolute path cannot be DOS-style, 26145 # because $ac_f cannot contain `:'. 26146 test -f "$ac_f" || 26147 case $ac_f in 26148 [\\/$]*) false;; 26149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26150 esac || 26151 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26152 esac 26153 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26154 as_fn_append ac_file_inputs " '$ac_f'" 26155 done 26156 26157 # Let's still pretend it is `configure' which instantiates (i.e., don't 26158 # use $as_me), people would be surprised to read: 26159 # /* config.h. Generated by config.status. */ 26160 configure_input='Generated from '` 26161 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26162 `' by configure.' 26163 if test x"$ac_file" != x-; then 26164 configure_input="$ac_file. $configure_input" 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26166$as_echo "$as_me: creating $ac_file" >&6;} 26167 fi 26168 # Neutralize special characters interpreted by sed in replacement strings. 26169 case $configure_input in #( 26170 *\&* | *\|* | *\\* ) 26171 ac_sed_conf_input=`$as_echo "$configure_input" | 26172 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26173 *) ac_sed_conf_input=$configure_input;; 26174 esac 26175 26176 case $ac_tag in 26177 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26179 esac 26180 ;; 26181 esac 26182 26183 ac_dir=`$as_dirname -- "$ac_file" || 26184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26185 X"$ac_file" : 'X\(//\)[^/]' \| \ 26186 X"$ac_file" : 'X\(//\)$' \| \ 26187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26188$as_echo X"$ac_file" | 26189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26190 s//\1/ 26191 q 26192 } 26193 /^X\(\/\/\)[^/].*/{ 26194 s//\1/ 26195 q 26196 } 26197 /^X\(\/\/\)$/{ 26198 s//\1/ 26199 q 26200 } 26201 /^X\(\/\).*/{ 26202 s//\1/ 26203 q 26204 } 26205 s/.*/./; q'` 26206 as_dir="$ac_dir"; as_fn_mkdir_p 26207 ac_builddir=. 26208 26209case "$ac_dir" in 26210.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26211*) 26212 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26213 # A ".." for each directory in $ac_dir_suffix. 26214 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26215 case $ac_top_builddir_sub in 26216 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26217 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26218 esac ;; 26219esac 26220ac_abs_top_builddir=$ac_pwd 26221ac_abs_builddir=$ac_pwd$ac_dir_suffix 26222# for backward compatibility: 26223ac_top_builddir=$ac_top_build_prefix 26224 26225case $srcdir in 26226 .) # We are building in place. 26227 ac_srcdir=. 26228 ac_top_srcdir=$ac_top_builddir_sub 26229 ac_abs_top_srcdir=$ac_pwd ;; 26230 [\\/]* | ?:[\\/]* ) # Absolute name. 26231 ac_srcdir=$srcdir$ac_dir_suffix; 26232 ac_top_srcdir=$srcdir 26233 ac_abs_top_srcdir=$srcdir ;; 26234 *) # Relative name. 26235 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26236 ac_top_srcdir=$ac_top_build_prefix$srcdir 26237 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26238esac 26239ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26240 26241 26242 case $ac_mode in 26243 :F) 26244 # 26245 # CONFIG_FILE 26246 # 26247 26248 case $INSTALL in 26249 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26250 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26251 esac 26252 ac_MKDIR_P=$MKDIR_P 26253 case $MKDIR_P in 26254 [\\/$]* | ?:[\\/]* ) ;; 26255 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 26256 esac 26257_ACEOF 26258 26259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26260# If the template does not know about datarootdir, expand it. 26261# FIXME: This hack should be removed a few years after 2.60. 26262ac_datarootdir_hack=; ac_datarootdir_seen= 26263ac_sed_dataroot=' 26264/datarootdir/ { 26265 p 26266 q 26267} 26268/@datadir@/p 26269/@docdir@/p 26270/@infodir@/p 26271/@localedir@/p 26272/@mandir@/p' 26273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26274*datarootdir*) ac_datarootdir_seen=yes;; 26275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26278_ACEOF 26279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26280 ac_datarootdir_hack=' 26281 s&@datadir@&$datadir&g 26282 s&@docdir@&$docdir&g 26283 s&@infodir@&$infodir&g 26284 s&@localedir@&$localedir&g 26285 s&@mandir@&$mandir&g 26286 s&\\\${datarootdir}&$datarootdir&g' ;; 26287esac 26288_ACEOF 26289 26290# Neutralize VPATH when `$srcdir' = `.'. 26291# Shell code in configure.ac might set extrasub. 26292# FIXME: do we really want to maintain this feature? 26293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26294ac_sed_extra="$ac_vpsub 26295$extrasub 26296_ACEOF 26297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26298:t 26299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26300s|@configure_input@|$ac_sed_conf_input|;t t 26301s&@top_builddir@&$ac_top_builddir_sub&;t t 26302s&@top_build_prefix@&$ac_top_build_prefix&;t t 26303s&@srcdir@&$ac_srcdir&;t t 26304s&@abs_srcdir@&$ac_abs_srcdir&;t t 26305s&@top_srcdir@&$ac_top_srcdir&;t t 26306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26307s&@builddir@&$ac_builddir&;t t 26308s&@abs_builddir@&$ac_abs_builddir&;t t 26309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26310s&@INSTALL@&$ac_INSTALL&;t t 26311s&@MKDIR_P@&$ac_MKDIR_P&;t t 26312$ac_datarootdir_hack 26313" 26314eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26315 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26316 26317test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26320 "$ac_tmp/out"`; test -z "$ac_out"; } && 26321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26322which seems to be undefined. Please make sure it is defined" >&5 26323$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26324which seems to be undefined. Please make sure it is defined" >&2;} 26325 26326 rm -f "$ac_tmp/stdin" 26327 case $ac_file in 26328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26330 esac \ 26331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26332 ;; 26333 :H) 26334 # 26335 # CONFIG_HEADER 26336 # 26337 if test x"$ac_file" != x-; then 26338 { 26339 $as_echo "/* $configure_input */" \ 26340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26341 } >"$ac_tmp/config.h" \ 26342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26345$as_echo "$as_me: $ac_file is unchanged" >&6;} 26346 else 26347 rm -f "$ac_file" 26348 mv "$ac_tmp/config.h" "$ac_file" \ 26349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26350 fi 26351 else 26352 $as_echo "/* $configure_input */" \ 26353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26354 || as_fn_error $? "could not create -" "$LINENO" 5 26355 fi 26356# Compute "$ac_file"'s index in $config_headers. 26357_am_arg="$ac_file" 26358_am_stamp_count=1 26359for _am_header in $config_headers :; do 26360 case $_am_header in 26361 $_am_arg | $_am_arg:* ) 26362 break ;; 26363 * ) 26364 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 26365 esac 26366done 26367echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 26368$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26369 X"$_am_arg" : 'X\(//\)[^/]' \| \ 26370 X"$_am_arg" : 'X\(//\)$' \| \ 26371 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 26372$as_echo X"$_am_arg" | 26373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26374 s//\1/ 26375 q 26376 } 26377 /^X\(\/\/\)[^/].*/{ 26378 s//\1/ 26379 q 26380 } 26381 /^X\(\/\/\)$/{ 26382 s//\1/ 26383 q 26384 } 26385 /^X\(\/\).*/{ 26386 s//\1/ 26387 q 26388 } 26389 s/.*/./; q'`/stamp-h$_am_stamp_count 26390 ;; 26391 26392 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26393$as_echo "$as_me: executing $ac_file commands" >&6;} 26394 ;; 26395 esac 26396 26397 26398 case $ac_file$ac_mode in 26399 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 26400 # Older Autoconf quotes --file arguments for eval, but not when files 26401 # are listed without --file. Let's play safe and only enable the eval 26402 # if we detect the quoting. 26403 case $CONFIG_FILES in 26404 *\'*) eval set x "$CONFIG_FILES" ;; 26405 *) set x $CONFIG_FILES ;; 26406 esac 26407 shift 26408 for mf 26409 do 26410 # Strip MF so we end up with the name of the file. 26411 mf=`echo "$mf" | sed -e 's/:.*$//'` 26412 # Check whether this is an Automake generated Makefile or not. 26413 # We used to match only the files named 'Makefile.in', but 26414 # some people rename them; so instead we look at the file content. 26415 # Grep'ing the first line is not enough: some people post-process 26416 # each Makefile.in and add a new line on top of each file to say so. 26417 # Grep'ing the whole file is not good either: AIX grep has a line 26418 # limit of 2048, but all sed's we know have understand at least 4000. 26419 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 26420 dirpart=`$as_dirname -- "$mf" || 26421$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26422 X"$mf" : 'X\(//\)[^/]' \| \ 26423 X"$mf" : 'X\(//\)$' \| \ 26424 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 26425$as_echo X"$mf" | 26426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26427 s//\1/ 26428 q 26429 } 26430 /^X\(\/\/\)[^/].*/{ 26431 s//\1/ 26432 q 26433 } 26434 /^X\(\/\/\)$/{ 26435 s//\1/ 26436 q 26437 } 26438 /^X\(\/\).*/{ 26439 s//\1/ 26440 q 26441 } 26442 s/.*/./; q'` 26443 else 26444 continue 26445 fi 26446 # Extract the definition of DEPDIR, am__include, and am__quote 26447 # from the Makefile without running 'make'. 26448 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 26449 test -z "$DEPDIR" && continue 26450 am__include=`sed -n 's/^am__include = //p' < "$mf"` 26451 test -z "$am__include" && continue 26452 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 26453 # Find all dependency output files, they are included files with 26454 # $(DEPDIR) in their names. We invoke sed twice because it is the 26455 # simplest approach to changing $(DEPDIR) to its actual value in the 26456 # expansion. 26457 for file in `sed -n " 26458 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 26459 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 26460 # Make sure the directory exists. 26461 test -f "$dirpart/$file" && continue 26462 fdir=`$as_dirname -- "$file" || 26463$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26464 X"$file" : 'X\(//\)[^/]' \| \ 26465 X"$file" : 'X\(//\)$' \| \ 26466 X"$file" : 'X\(/\)' \| . 2>/dev/null || 26467$as_echo X"$file" | 26468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26469 s//\1/ 26470 q 26471 } 26472 /^X\(\/\/\)[^/].*/{ 26473 s//\1/ 26474 q 26475 } 26476 /^X\(\/\/\)$/{ 26477 s//\1/ 26478 q 26479 } 26480 /^X\(\/\).*/{ 26481 s//\1/ 26482 q 26483 } 26484 s/.*/./; q'` 26485 as_dir=$dirpart/$fdir; as_fn_mkdir_p 26486 # echo "creating $dirpart/$file" 26487 echo '# dummy' > "$dirpart/$file" 26488 done 26489 done 26490} 26491 ;; 26492 "libtool":C) 26493 26494 # See if we are running on zsh, and set the options which allow our 26495 # commands through without removal of \ escapes. 26496 if test -n "${ZSH_VERSION+set}" ; then 26497 setopt NO_GLOB_SUBST 26498 fi 26499 26500 cfgfile="${ofile}T" 26501 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26502 $RM "$cfgfile" 26503 26504 cat <<_LT_EOF >> "$cfgfile" 26505#! $SHELL 26506 26507# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26508# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26509# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26510# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26511# 26512# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26513# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 26514# Foundation, Inc. 26515# Written by Gordon Matzigkeit, 1996 26516# 26517# This file is part of GNU Libtool. 26518# 26519# GNU Libtool is free software; you can redistribute it and/or 26520# modify it under the terms of the GNU General Public License as 26521# published by the Free Software Foundation; either version 2 of 26522# the License, or (at your option) any later version. 26523# 26524# As a special exception to the GNU General Public License, 26525# if you distribute this file as part of a program or library that 26526# is built using GNU Libtool, you may include this file under the 26527# same distribution terms that you use for the rest of that program. 26528# 26529# GNU Libtool is distributed in the hope that it will be useful, 26530# but WITHOUT ANY WARRANTY; without even the implied warranty of 26531# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26532# GNU General Public License for more details. 26533# 26534# You should have received a copy of the GNU General Public License 26535# along with GNU Libtool; see the file COPYING. If not, a copy 26536# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26537# obtained by writing to the Free Software Foundation, Inc., 26538# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26539 26540 26541# The names of the tagged configurations supported by this script. 26542available_tags="" 26543 26544# ### BEGIN LIBTOOL CONFIG 26545 26546# Which release of libtool.m4 was used? 26547macro_version=$macro_version 26548macro_revision=$macro_revision 26549 26550# Whether or not to build shared libraries. 26551build_libtool_libs=$enable_shared 26552 26553# Whether or not to build static libraries. 26554build_old_libs=$enable_static 26555 26556# What type of objects to build. 26557pic_mode=$pic_mode 26558 26559# Whether or not to optimize for fast installation. 26560fast_install=$enable_fast_install 26561 26562# Shell to use when invoking shell scripts. 26563SHELL=$lt_SHELL 26564 26565# An echo program that protects backslashes. 26566ECHO=$lt_ECHO 26567 26568# The PATH separator for the build system. 26569PATH_SEPARATOR=$lt_PATH_SEPARATOR 26570 26571# The host system. 26572host_alias=$host_alias 26573host=$host 26574host_os=$host_os 26575 26576# The build system. 26577build_alias=$build_alias 26578build=$build 26579build_os=$build_os 26580 26581# A sed program that does not truncate output. 26582SED=$lt_SED 26583 26584# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26585Xsed="\$SED -e 1s/^X//" 26586 26587# A grep program that handles long lines. 26588GREP=$lt_GREP 26589 26590# An ERE matcher. 26591EGREP=$lt_EGREP 26592 26593# A literal string matcher. 26594FGREP=$lt_FGREP 26595 26596# A BSD- or MS-compatible name lister. 26597NM=$lt_NM 26598 26599# Whether we need soft or hard links. 26600LN_S=$lt_LN_S 26601 26602# What is the maximum length of a command? 26603max_cmd_len=$max_cmd_len 26604 26605# Object file suffix (normally "o"). 26606objext=$ac_objext 26607 26608# Executable file suffix (normally ""). 26609exeext=$exeext 26610 26611# whether the shell understands "unset". 26612lt_unset=$lt_unset 26613 26614# turn spaces into newlines. 26615SP2NL=$lt_lt_SP2NL 26616 26617# turn newlines into spaces. 26618NL2SP=$lt_lt_NL2SP 26619 26620# convert \$build file names to \$host format. 26621to_host_file_cmd=$lt_cv_to_host_file_cmd 26622 26623# convert \$build files to toolchain format. 26624to_tool_file_cmd=$lt_cv_to_tool_file_cmd 26625 26626# An object symbol dumper. 26627OBJDUMP=$lt_OBJDUMP 26628 26629# Method to check whether dependent libraries are shared objects. 26630deplibs_check_method=$lt_deplibs_check_method 26631 26632# Command to use when deplibs_check_method = "file_magic". 26633file_magic_cmd=$lt_file_magic_cmd 26634 26635# How to find potential files when deplibs_check_method = "file_magic". 26636file_magic_glob=$lt_file_magic_glob 26637 26638# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 26639want_nocaseglob=$lt_want_nocaseglob 26640 26641# DLL creation program. 26642DLLTOOL=$lt_DLLTOOL 26643 26644# Command to associate shared and link libraries. 26645sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 26646 26647# The archiver. 26648AR=$lt_AR 26649 26650# Flags to create an archive. 26651AR_FLAGS=$lt_AR_FLAGS 26652 26653# How to feed a file listing to the archiver. 26654archiver_list_spec=$lt_archiver_list_spec 26655 26656# A symbol stripping program. 26657STRIP=$lt_STRIP 26658 26659# Commands used to install an old-style archive. 26660RANLIB=$lt_RANLIB 26661old_postinstall_cmds=$lt_old_postinstall_cmds 26662old_postuninstall_cmds=$lt_old_postuninstall_cmds 26663 26664# Whether to use a lock for old archive extraction. 26665lock_old_archive_extraction=$lock_old_archive_extraction 26666 26667# A C compiler. 26668LTCC=$lt_CC 26669 26670# LTCC compiler flags. 26671LTCFLAGS=$lt_CFLAGS 26672 26673# Take the output of nm and produce a listing of raw symbols and C names. 26674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 26675 26676# Transform the output of nm in a proper C declaration. 26677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 26678 26679# Transform the output of nm in a C name address pair. 26680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 26681 26682# Transform the output of nm in a C name address pair when lib prefix is needed. 26683global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 26684 26685# Specify filename containing input files for \$NM. 26686nm_file_list_spec=$lt_nm_file_list_spec 26687 26688# The root where to search for dependent libraries,and in which our libraries should be installed. 26689lt_sysroot=$lt_sysroot 26690 26691# The name of the directory that contains temporary libtool files. 26692objdir=$objdir 26693 26694# Used to examine libraries when file_magic_cmd begins with "file". 26695MAGIC_CMD=$MAGIC_CMD 26696 26697# Must we lock files when doing compilation? 26698need_locks=$lt_need_locks 26699 26700# Manifest tool. 26701MANIFEST_TOOL=$lt_MANIFEST_TOOL 26702 26703# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 26704DSYMUTIL=$lt_DSYMUTIL 26705 26706# Tool to change global to local symbols on Mac OS X. 26707NMEDIT=$lt_NMEDIT 26708 26709# Tool to manipulate fat objects and archives on Mac OS X. 26710LIPO=$lt_LIPO 26711 26712# ldd/readelf like tool for Mach-O binaries on Mac OS X. 26713OTOOL=$lt_OTOOL 26714 26715# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 26716OTOOL64=$lt_OTOOL64 26717 26718# Old archive suffix (normally "a"). 26719libext=$libext 26720 26721# Shared library suffix (normally ".so"). 26722shrext_cmds=$lt_shrext_cmds 26723 26724# The commands to extract the exported symbol list from a shared archive. 26725extract_expsyms_cmds=$lt_extract_expsyms_cmds 26726 26727# Variables whose values should be saved in libtool wrapper scripts and 26728# restored at link time. 26729variables_saved_for_relink=$lt_variables_saved_for_relink 26730 26731# Do we need the "lib" prefix for modules? 26732need_lib_prefix=$need_lib_prefix 26733 26734# Do we need a version for libraries? 26735need_version=$need_version 26736 26737# Library versioning type. 26738version_type=$version_type 26739 26740# Shared library runtime path variable. 26741runpath_var=$runpath_var 26742 26743# Shared library path variable. 26744shlibpath_var=$shlibpath_var 26745 26746# Is shlibpath searched before the hard-coded library search path? 26747shlibpath_overrides_runpath=$shlibpath_overrides_runpath 26748 26749# Format of library name prefix. 26750libname_spec=$lt_libname_spec 26751 26752# List of archive names. First name is the real one, the rest are links. 26753# The last name is the one that the linker finds with -lNAME 26754library_names_spec=$lt_library_names_spec 26755 26756# The coded name of the library, if different from the real name. 26757soname_spec=$lt_soname_spec 26758 26759# Permission mode override for installation of shared libraries. 26760install_override_mode=$lt_install_override_mode 26761 26762# Command to use after installation of a shared archive. 26763postinstall_cmds=$lt_postinstall_cmds 26764 26765# Command to use after uninstallation of a shared archive. 26766postuninstall_cmds=$lt_postuninstall_cmds 26767 26768# Commands used to finish a libtool library installation in a directory. 26769finish_cmds=$lt_finish_cmds 26770 26771# As "finish_cmds", except a single script fragment to be evaled but 26772# not shown. 26773finish_eval=$lt_finish_eval 26774 26775# Whether we should hardcode library paths into libraries. 26776hardcode_into_libs=$hardcode_into_libs 26777 26778# Compile-time system search path for libraries. 26779sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 26780 26781# Run-time system search path for libraries. 26782sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 26783 26784# Whether dlopen is supported. 26785dlopen_support=$enable_dlopen 26786 26787# Whether dlopen of programs is supported. 26788dlopen_self=$enable_dlopen_self 26789 26790# Whether dlopen of statically linked programs is supported. 26791dlopen_self_static=$enable_dlopen_self_static 26792 26793# Commands to strip libraries. 26794old_striplib=$lt_old_striplib 26795striplib=$lt_striplib 26796 26797 26798# The linker used to build libraries. 26799LD=$lt_LD 26800 26801# How to create reloadable object files. 26802reload_flag=$lt_reload_flag 26803reload_cmds=$lt_reload_cmds 26804 26805# Commands used to build an old-style archive. 26806old_archive_cmds=$lt_old_archive_cmds 26807 26808# A language specific compiler. 26809CC=$lt_compiler 26810 26811# Is the compiler the GNU compiler? 26812with_gcc=$GCC 26813 26814# Compiler flag to turn off builtin functions. 26815no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 26816 26817# Additional compiler flags for building library objects. 26818pic_flag=$lt_lt_prog_compiler_pic 26819 26820# How to pass a linker flag through the compiler. 26821wl=$lt_lt_prog_compiler_wl 26822 26823# Compiler flag to prevent dynamic linking. 26824link_static_flag=$lt_lt_prog_compiler_static 26825 26826# Does compiler simultaneously support -c and -o options? 26827compiler_c_o=$lt_lt_cv_prog_compiler_c_o 26828 26829# Whether or not to add -lc for building shared libraries. 26830build_libtool_need_lc=$archive_cmds_need_lc 26831 26832# Whether or not to disallow shared libs when runtime libs are static. 26833allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 26834 26835# Compiler flag to allow reflexive dlopens. 26836export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 26837 26838# Compiler flag to generate shared objects directly from archives. 26839whole_archive_flag_spec=$lt_whole_archive_flag_spec 26840 26841# Whether the compiler copes with passing no objects directly. 26842compiler_needs_object=$lt_compiler_needs_object 26843 26844# Create an old-style archive from a shared archive. 26845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 26846 26847# Create a temporary old-style archive to link instead of a shared archive. 26848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 26849 26850# Commands used to build a shared archive. 26851archive_cmds=$lt_archive_cmds 26852archive_expsym_cmds=$lt_archive_expsym_cmds 26853 26854# Commands used to build a loadable module if different from building 26855# a shared archive. 26856module_cmds=$lt_module_cmds 26857module_expsym_cmds=$lt_module_expsym_cmds 26858 26859# Whether we are building with GNU ld or not. 26860with_gnu_ld=$lt_with_gnu_ld 26861 26862# Flag that allows shared libraries with undefined symbols to be built. 26863allow_undefined_flag=$lt_allow_undefined_flag 26864 26865# Flag that enforces no undefined symbols. 26866no_undefined_flag=$lt_no_undefined_flag 26867 26868# Flag to hardcode \$libdir into a binary during linking. 26869# This must work even if \$libdir does not exist 26870hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 26871 26872# Whether we need a single "-rpath" flag with a separated argument. 26873hardcode_libdir_separator=$lt_hardcode_libdir_separator 26874 26875# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26876# DIR into the resulting binary. 26877hardcode_direct=$hardcode_direct 26878 26879# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 26880# DIR into the resulting binary and the resulting library dependency is 26881# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 26882# library is relocated. 26883hardcode_direct_absolute=$hardcode_direct_absolute 26884 26885# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 26886# into the resulting binary. 26887hardcode_minus_L=$hardcode_minus_L 26888 26889# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 26890# into the resulting binary. 26891hardcode_shlibpath_var=$hardcode_shlibpath_var 26892 26893# Set to "yes" if building a shared library automatically hardcodes DIR 26894# into the library and all subsequent libraries and executables linked 26895# against it. 26896hardcode_automatic=$hardcode_automatic 26897 26898# Set to yes if linker adds runtime paths of dependent libraries 26899# to runtime path list. 26900inherit_rpath=$inherit_rpath 26901 26902# Whether libtool must link a program against all its dependency libraries. 26903link_all_deplibs=$link_all_deplibs 26904 26905# Set to "yes" if exported symbols are required. 26906always_export_symbols=$always_export_symbols 26907 26908# The commands to list exported symbols. 26909export_symbols_cmds=$lt_export_symbols_cmds 26910 26911# Symbols that should not be listed in the preloaded symbols. 26912exclude_expsyms=$lt_exclude_expsyms 26913 26914# Symbols that must always be exported. 26915include_expsyms=$lt_include_expsyms 26916 26917# Commands necessary for linking programs (against libraries) with templates. 26918prelink_cmds=$lt_prelink_cmds 26919 26920# Commands necessary for finishing linking programs. 26921postlink_cmds=$lt_postlink_cmds 26922 26923# Specify filename containing input files. 26924file_list_spec=$lt_file_list_spec 26925 26926# How to hardcode a shared library path into an executable. 26927hardcode_action=$hardcode_action 26928 26929# ### END LIBTOOL CONFIG 26930 26931_LT_EOF 26932 26933 case $host_os in 26934 aix3*) 26935 cat <<\_LT_EOF >> "$cfgfile" 26936# AIX sometimes has problems with the GCC collect2 program. For some 26937# reason, if we set the COLLECT_NAMES environment variable, the problems 26938# vanish in a puff of smoke. 26939if test "X${COLLECT_NAMES+set}" != Xset; then 26940 COLLECT_NAMES= 26941 export COLLECT_NAMES 26942fi 26943_LT_EOF 26944 ;; 26945 esac 26946 26947 26948ltmain="$ac_aux_dir/ltmain.sh" 26949 26950 26951 # We use sed instead of cat because bash on DJGPP gets confused if 26952 # if finds mixed CR/LF and LF-only lines. Since sed operates in 26953 # text mode, it properly converts lines to CR/LF. This bash problem 26954 # is reportedly fixed, but why not run on old versions too? 26955 sed '$q' "$ltmain" >> "$cfgfile" \ 26956 || (rm -f "$cfgfile"; exit 1) 26957 26958 if test x"$xsi_shell" = xyes; then 26959 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 26960func_dirname ()\ 26961{\ 26962\ case ${1} in\ 26963\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26964\ * ) func_dirname_result="${3}" ;;\ 26965\ esac\ 26966} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 26967 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26969test 0 -eq $? || _lt_function_replace_fail=: 26970 26971 26972 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 26973func_basename ()\ 26974{\ 26975\ func_basename_result="${1##*/}"\ 26976} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26977 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26979test 0 -eq $? || _lt_function_replace_fail=: 26980 26981 26982 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 26983func_dirname_and_basename ()\ 26984{\ 26985\ case ${1} in\ 26986\ */*) func_dirname_result="${1%/*}${2}" ;;\ 26987\ * ) func_dirname_result="${3}" ;;\ 26988\ esac\ 26989\ func_basename_result="${1##*/}"\ 26990} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 26991 && mv -f "$cfgfile.tmp" "$cfgfile" \ 26992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 26993test 0 -eq $? || _lt_function_replace_fail=: 26994 26995 26996 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 26997func_stripname ()\ 26998{\ 26999\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 27000\ # positional parameters, so assign one to ordinary parameter first.\ 27001\ func_stripname_result=${3}\ 27002\ func_stripname_result=${func_stripname_result#"${1}"}\ 27003\ func_stripname_result=${func_stripname_result%"${2}"}\ 27004} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 27005 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27007test 0 -eq $? || _lt_function_replace_fail=: 27008 27009 27010 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 27011func_split_long_opt ()\ 27012{\ 27013\ func_split_long_opt_name=${1%%=*}\ 27014\ func_split_long_opt_arg=${1#*=}\ 27015} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27016 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27018test 0 -eq $? || _lt_function_replace_fail=: 27019 27020 27021 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 27022func_split_short_opt ()\ 27023{\ 27024\ func_split_short_opt_arg=${1#??}\ 27025\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 27026} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27027 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27029test 0 -eq $? || _lt_function_replace_fail=: 27030 27031 27032 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 27033func_lo2o ()\ 27034{\ 27035\ case ${1} in\ 27036\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 27037\ *) func_lo2o_result=${1} ;;\ 27038\ esac\ 27039} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 27040 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27042test 0 -eq $? || _lt_function_replace_fail=: 27043 27044 27045 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 27046func_xform ()\ 27047{\ 27048 func_xform_result=${1%.*}.lo\ 27049} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 27050 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27052test 0 -eq $? || _lt_function_replace_fail=: 27053 27054 27055 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 27056func_arith ()\ 27057{\ 27058 func_arith_result=$(( $* ))\ 27059} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 27060 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27062test 0 -eq $? || _lt_function_replace_fail=: 27063 27064 27065 sed -e '/^func_len ()$/,/^} # func_len /c\ 27066func_len ()\ 27067{\ 27068 func_len_result=${#1}\ 27069} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 27070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27072test 0 -eq $? || _lt_function_replace_fail=: 27073 27074fi 27075 27076if test x"$lt_shell_append" = xyes; then 27077 sed -e '/^func_append ()$/,/^} # func_append /c\ 27078func_append ()\ 27079{\ 27080 eval "${1}+=\\${2}"\ 27081} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 27082 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27083 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27084test 0 -eq $? || _lt_function_replace_fail=: 27085 27086 27087 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 27088func_append_quoted ()\ 27089{\ 27090\ func_quote_for_eval "${2}"\ 27091\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 27092} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 27093 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27095test 0 -eq $? || _lt_function_replace_fail=: 27096 27097 27098 # Save a `func_append' function call where possible by direct use of '+=' 27099 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 27100 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27102 test 0 -eq $? || _lt_function_replace_fail=: 27103else 27104 # Save a `func_append' function call even when '+=' is not available 27105 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 27106 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27108 test 0 -eq $? || _lt_function_replace_fail=: 27109fi 27110 27111if test x"$_lt_function_replace_fail" = x":"; then 27112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 27113$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 27114fi 27115 27116 27117 mv -f "$cfgfile" "$ofile" || 27118 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27119 chmod +x "$ofile" 27120 27121 ;; 27122 "include/webauth/defines.h":C) ${srcdir}/include/mkheader ${srcdir}/${filename}.in ${filename} ;; 27123 27124 esac 27125done # for ac_tag 27126 27127 27128as_fn_exit 0 27129_ACEOF 27130ac_clean_files=$ac_clean_files_save 27131 27132test $ac_write_fail = 0 || 27133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27134 27135 27136# configure is writing to config.log, and then calls config.status. 27137# config.status does its own redirection, appending to config.log. 27138# Unfortunately, on DOS this fails, as config.log is still kept open 27139# by configure, so config.status won't be able to write to it; its 27140# output is simply discarded. So we exec the FD to /dev/null, 27141# effectively closing config.log, so it can be properly (re)opened and 27142# appended to by config.status. When coming back to configure, we 27143# need to make the FD available again. 27144if test "$no_create" != yes; then 27145 ac_cs_success=: 27146 ac_config_status_args= 27147 test "$silent" = yes && 27148 ac_config_status_args="$ac_config_status_args --quiet" 27149 exec 5>/dev/null 27150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27151 exec 5>>config.log 27152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27153 # would make configure fail if this is the last instruction. 27154 $ac_cs_success || as_fn_exit 1 27155fi 27156if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27158$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27159fi 27160 27161