1#! /bin/sh 2# From configure.in Revision: 22513 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for Heimdal 1.1. 5# 6# Report bugs to <heimdal-bugs@h5l.org>. 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in 27 *posix*) set -o posix ;; 28esac 29 30fi 31 32 33 34 35# PATH needs CR 36# Avoid depending upon Character Ranges. 37as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39as_cr_Letters=$as_cr_letters$as_cr_LETTERS 40as_cr_digits='0123456789' 41as_cr_alnum=$as_cr_Letters$as_cr_digits 42 43# The user is always right. 44if test "${PATH_SEPARATOR+set}" != set; then 45 echo "#! /bin/sh" >conf$$.sh 46 echo "exit 0" >>conf$$.sh 47 chmod +x conf$$.sh 48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 49 PATH_SEPARATOR=';' 50 else 51 PATH_SEPARATOR=: 52 fi 53 rm -f conf$$.sh 54fi 55 56# Support unset when possible. 57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 58 as_unset=unset 59else 60 as_unset=false 61fi 62 63 64# IFS 65# We need space, tab and new line, in precisely that order. Quoting is 66# there to prevent editors from complaining about space-tab. 67# (If _AS_PATH_WALK were called with IFS unset, it would disable word 68# splitting by setting IFS to empty value.) 69as_nl=' 70' 71IFS=" "" $as_nl" 72 73# Find who we are. Look in the path if we contain no directory separator. 74case $0 in 75 *[\\/]* ) as_myself=$0 ;; 76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 77for as_dir in $PATH 78do 79 IFS=$as_save_IFS 80 test -z "$as_dir" && as_dir=. 81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 82done 83IFS=$as_save_IFS 84 85 ;; 86esac 87# We did not find ourselves, most probably we were run as `sh COMMAND' 88# in which case we are not to be found in the path. 89if test "x$as_myself" = x; then 90 as_myself=$0 91fi 92if test ! -f "$as_myself"; then 93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 94 { (exit 1); exit 1; } 95fi 96 97# Work around bugs in pre-3.0 UWIN ksh. 98for as_var in ENV MAIL MAILPATH 99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 100done 101PS1='$ ' 102PS2='> ' 103PS4='+ ' 104 105# NLS nuisances. 106for as_var in \ 107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 109 LC_TELEPHONE LC_TIME 110do 111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 112 eval $as_var=C; export $as_var 113 else 114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 115 fi 116done 117 118# Required to use basename. 119if expr a : '\(a\)' >/dev/null 2>&1 && 120 test "X`expr 00001 : '.*\(...\)'`" = X001; then 121 as_expr=expr 122else 123 as_expr=false 124fi 125 126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 127 as_basename=basename 128else 129 as_basename=false 130fi 131 132 133# Name of the executable. 134as_me=`$as_basename -- "$0" || 135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 136 X"$0" : 'X\(//\)$' \| \ 137 X"$0" : 'X\(/\)' \| . 2>/dev/null || 138echo X/"$0" | 139 sed '/^.*\/\([^/][^/]*\)\/*$/{ 140 s//\1/ 141 q 142 } 143 /^X\/\(\/\/\)$/{ 144 s//\1/ 145 q 146 } 147 /^X\/\(\/\).*/{ 148 s//\1/ 149 q 150 } 151 s/.*/./; q'` 152 153# CDPATH. 154$as_unset CDPATH 155 156 157if test "x$CONFIG_SHELL" = x; then 158 if (eval ":") 2>/dev/null; then 159 as_have_required=yes 160else 161 as_have_required=no 162fi 163 164 if test $as_have_required = yes && (eval ": 165(as_func_return () { 166 (exit \$1) 167} 168as_func_success () { 169 as_func_return 0 170} 171as_func_failure () { 172 as_func_return 1 173} 174as_func_ret_success () { 175 return 0 176} 177as_func_ret_failure () { 178 return 1 179} 180 181exitcode=0 182if as_func_success; then 183 : 184else 185 exitcode=1 186 echo as_func_success failed. 187fi 188 189if as_func_failure; then 190 exitcode=1 191 echo as_func_failure succeeded. 192fi 193 194if as_func_ret_success; then 195 : 196else 197 exitcode=1 198 echo as_func_ret_success failed. 199fi 200 201if as_func_ret_failure; then 202 exitcode=1 203 echo as_func_ret_failure succeeded. 204fi 205 206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 207 : 208else 209 exitcode=1 210 echo positional parameters were not saved. 211fi 212 213test \$exitcode = 0) || { (exit 1); exit 1; } 214 215( 216 as_lineno_1=\$LINENO 217 as_lineno_2=\$LINENO 218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 220") 2> /dev/null; then 221 : 222else 223 as_candidate_shells= 224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 226do 227 IFS=$as_save_IFS 228 test -z "$as_dir" && as_dir=. 229 case $as_dir in 230 /*) 231 for as_base in sh bash ksh sh5; do 232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 233 done;; 234 esac 235done 236IFS=$as_save_IFS 237 238 239 for as_shell in $as_candidate_shells $SHELL; do 240 # Try only shells that exist, to save several forks. 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 242 { ("$as_shell") 2> /dev/null <<\_ASEOF 243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 244 emulate sh 245 NULLCMD=: 246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 247 # is contrary to our usage. Disable this feature. 248 alias -g '${1+"$@"}'='"$@"' 249 setopt NO_GLOB_SUBST 250else 251 case `(set -o) 2>/dev/null` in 252 *posix*) set -o posix ;; 253esac 254 255fi 256 257 258: 259_ASEOF 260}; then 261 CONFIG_SHELL=$as_shell 262 as_have_required=yes 263 if { "$as_shell" 2> /dev/null <<\_ASEOF 264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 265 emulate sh 266 NULLCMD=: 267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 268 # is contrary to our usage. Disable this feature. 269 alias -g '${1+"$@"}'='"$@"' 270 setopt NO_GLOB_SUBST 271else 272 case `(set -o) 2>/dev/null` in 273 *posix*) set -o posix ;; 274esac 275 276fi 277 278 279: 280(as_func_return () { 281 (exit $1) 282} 283as_func_success () { 284 as_func_return 0 285} 286as_func_failure () { 287 as_func_return 1 288} 289as_func_ret_success () { 290 return 0 291} 292as_func_ret_failure () { 293 return 1 294} 295 296exitcode=0 297if as_func_success; then 298 : 299else 300 exitcode=1 301 echo as_func_success failed. 302fi 303 304if as_func_failure; then 305 exitcode=1 306 echo as_func_failure succeeded. 307fi 308 309if as_func_ret_success; then 310 : 311else 312 exitcode=1 313 echo as_func_ret_success failed. 314fi 315 316if as_func_ret_failure; then 317 exitcode=1 318 echo as_func_ret_failure succeeded. 319fi 320 321if ( set x; as_func_ret_success y && test x = "$1" ); then 322 : 323else 324 exitcode=1 325 echo positional parameters were not saved. 326fi 327 328test $exitcode = 0) || { (exit 1); exit 1; } 329 330( 331 as_lineno_1=$LINENO 332 as_lineno_2=$LINENO 333 test "x$as_lineno_1" != "x$as_lineno_2" && 334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 335 336_ASEOF 337}; then 338 break 339fi 340 341fi 342 343 done 344 345 if test "x$CONFIG_SHELL" != x; then 346 for as_var in BASH_ENV ENV 347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 348 done 349 export CONFIG_SHELL 350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 351fi 352 353 354 if test $as_have_required = no; then 355 echo This script requires a shell more modern than all the 356 echo shells that I found on your system. Please install a 357 echo modern shell, or manually run the script under such a 358 echo shell if you do have one. 359 { (exit 1); exit 1; } 360fi 361 362 363fi 364 365fi 366 367 368 369(eval "as_func_return () { 370 (exit \$1) 371} 372as_func_success () { 373 as_func_return 0 374} 375as_func_failure () { 376 as_func_return 1 377} 378as_func_ret_success () { 379 return 0 380} 381as_func_ret_failure () { 382 return 1 383} 384 385exitcode=0 386if as_func_success; then 387 : 388else 389 exitcode=1 390 echo as_func_success failed. 391fi 392 393if as_func_failure; then 394 exitcode=1 395 echo as_func_failure succeeded. 396fi 397 398if as_func_ret_success; then 399 : 400else 401 exitcode=1 402 echo as_func_ret_success failed. 403fi 404 405if as_func_ret_failure; then 406 exitcode=1 407 echo as_func_ret_failure succeeded. 408fi 409 410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 411 : 412else 413 exitcode=1 414 echo positional parameters were not saved. 415fi 416 417test \$exitcode = 0") || { 418 echo No shell found that supports shell functions. 419 echo Please tell autoconf@gnu.org about your system, 420 echo including any error possibly output before this 421 echo message 422} 423 424 425 426 as_lineno_1=$LINENO 427 as_lineno_2=$LINENO 428 test "x$as_lineno_1" != "x$as_lineno_2" && 429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 430 431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 432 # uniformly replaced by the line number. The first 'sed' inserts a 433 # line-number line after each line using $LINENO; the second 'sed' 434 # does the real work. The second script uses 'N' to pair each 435 # line-number line with the line containing $LINENO, and appends 436 # trailing '-' during substitution so that $LINENO is not a special 437 # case at line end. 438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 439 # scripts with optimization help from Paolo Bonzini. Blame Lee 440 # E. McMahon (1931-1989) for sed's syntax. :-) 441 sed -n ' 442 p 443 /[$]LINENO/= 444 ' <$as_myself | 445 sed ' 446 s/[$]LINENO.*/&-/ 447 t lineno 448 b 449 :lineno 450 N 451 :loop 452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 453 t loop 454 s/-\n.*// 455 ' >$as_me.lineno && 456 chmod +x "$as_me.lineno" || 457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 458 { (exit 1); exit 1; }; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468 469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 470 as_dirname=dirname 471else 472 as_dirname=false 473fi 474 475ECHO_C= ECHO_N= ECHO_T= 476case `echo -n x` in 477-n*) 478 case `echo 'x\c'` in 479 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 480 *) ECHO_C='\c';; 481 esac;; 482*) 483 ECHO_N='-n';; 484esac 485 486if expr a : '\(a\)' >/dev/null 2>&1 && 487 test "X`expr 00001 : '.*\(...\)'`" = X001; then 488 as_expr=expr 489else 490 as_expr=false 491fi 492 493rm -f conf$$ conf$$.exe conf$$.file 494if test -d conf$$.dir; then 495 rm -f conf$$.dir/conf$$.file 496else 497 rm -f conf$$.dir 498 mkdir conf$$.dir 499fi 500echo >conf$$.file 501if ln -s conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s='ln -s' 503 # ... but there are two gotchas: 504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 506 # In both cases, we have to default to `cp -p'. 507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 508 as_ln_s='cp -p' 509elif ln conf$$.file conf$$ 2>/dev/null; then 510 as_ln_s=ln 511else 512 as_ln_s='cp -p' 513fi 514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 515rmdir conf$$.dir 2>/dev/null 516 517if mkdir -p . 2>/dev/null; then 518 as_mkdir_p=: 519else 520 test -d ./-p && rmdir ./-p 521 as_mkdir_p=false 522fi 523 524if test -x / >/dev/null 2>&1; then 525 as_test_x='test -x' 526else 527 if ls -dL / >/dev/null 2>&1; then 528 as_ls_L_option=L 529 else 530 as_ls_L_option= 531 fi 532 as_test_x=' 533 eval sh -c '\'' 534 if test -d "$1"; then 535 test -d "$1/."; 536 else 537 case $1 in 538 -*)set "./$1";; 539 esac; 540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 541 ???[sx]*):;;*)false;;esac;fi 542 '\'' sh 543 ' 544fi 545as_executable_p=$as_test_x 546 547# Sed expression to map a string onto a valid CPP name. 548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 549 550# Sed expression to map a string onto a valid variable name. 551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 552 553 554 555 556# Check that we are running under the correct shell. 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559case X$ECHO in 560X*--fallback-echo) 561 # Remove one level of quotation (which was required for Make). 562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 563 ;; 564esac 565 566echo=${ECHO-echo} 567if test "X$1" = X--no-reexec; then 568 # Discard the --no-reexec flag, and continue. 569 shift 570elif test "X$1" = X--fallback-echo; then 571 # Avoid inline document here, it may be left over 572 : 573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 574 # Yippee, $echo works! 575 : 576else 577 # Restart under the correct shell. 578 exec $SHELL "$0" --no-reexec ${1+"$@"} 579fi 580 581if test "X$1" = X--fallback-echo; then 582 # used as fallback echo 583 shift 584 cat <<EOF 585$* 586EOF 587 exit 0 588fi 589 590# The HP-UX ksh and POSIX shell print the target directory to stdout 591# if CDPATH is set. 592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 593 594if test -z "$ECHO"; then 595if test "X${echo_test_string+set}" != Xset; then 596# find a string as large as possible, as long as the shell can cope with it 597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 599 if (echo_test_string=`eval $cmd`) 2>/dev/null && 600 echo_test_string=`eval $cmd` && 601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 602 then 603 break 604 fi 605 done 606fi 607 608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 : 612else 613 # The Solaris, AIX, and Digital Unix default echo programs unquote 614 # backslashes. This makes it impossible to quote backslashes using 615 # echo "$something" | sed 's/\\/\\\\/g' 616 # 617 # So, first we look for a working echo in the user's PATH. 618 619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 620 for dir in $PATH /usr/ucb; do 621 IFS="$lt_save_ifs" 622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 echo="$dir/echo" 627 break 628 fi 629 done 630 IFS="$lt_save_ifs" 631 632 if test "X$echo" = Xecho; then 633 # We didn't find a better echo, so look for alternatives. 634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # This shell has a builtin print -r that does the trick. 638 echo='print -r' 639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 640 test "X$CONFIG_SHELL" != X/bin/ksh; then 641 # If we have ksh, try running configure again with it. 642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 643 export ORIGINAL_CONFIG_SHELL 644 CONFIG_SHELL=/bin/ksh 645 export CONFIG_SHELL 646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 647 else 648 # Try using printf. 649 echo='printf %s\n' 650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 652 test "X$echo_testing_string" = "X$echo_test_string"; then 653 # Cool, printf works 654 : 655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 656 test "X$echo_testing_string" = 'X\t' && 657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 658 test "X$echo_testing_string" = "X$echo_test_string"; then 659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 660 export CONFIG_SHELL 661 SHELL="$CONFIG_SHELL" 662 export SHELL 663 echo="$CONFIG_SHELL $0 --fallback-echo" 664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 665 test "X$echo_testing_string" = 'X\t' && 666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 667 test "X$echo_testing_string" = "X$echo_test_string"; then 668 echo="$CONFIG_SHELL $0 --fallback-echo" 669 else 670 # maybe with a smaller string... 671 prev=: 672 673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 675 then 676 break 677 fi 678 prev="$cmd" 679 done 680 681 if test "$prev" != 'sed 50q "$0"'; then 682 echo_test_string=`eval $prev` 683 export echo_test_string 684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 685 else 686 # Oops. We lost completely, so just stick with echo. 687 echo=echo 688 fi 689 fi 690 fi 691 fi 692fi 693fi 694 695# Copy echo and quote the copy suitably for passing to libtool from 696# the Makefile, instead of quoting the original, which is used later. 697ECHO=$echo 698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 700fi 701 702 703 704 705tagnames=${tagnames+${tagnames},}CXX 706 707tagnames=${tagnames+${tagnames},}F77 708 709exec 7<&0 </dev/null 6>&1 710 711# Name of the host. 712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 713# so uname gets run too. 714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 715 716# 717# Initializations. 718# 719ac_default_prefix=/usr/local 720ac_clean_files= 721ac_config_libobj_dir=. 722LIBOBJS= 723cross_compiling=no 724subdirs= 725MFLAGS= 726MAKEFLAGS= 727SHELL=${CONFIG_SHELL-/bin/sh} 728 729# Identity of this package. 730PACKAGE_NAME='Heimdal' 731PACKAGE_TARNAME='heimdal' 732PACKAGE_VERSION='1.1' 733PACKAGE_STRING='Heimdal 1.1' 734PACKAGE_BUGREPORT='heimdal-bugs@h5l.org' 735 736ac_unique_file="kuser/kinit.c" 737ac_default_prefix=/usr/heimdal 738# Factoring default headers for most tests. 739ac_includes_default="\ 740#include <stdio.h> 741#ifdef HAVE_SYS_TYPES_H 742# include <sys/types.h> 743#endif 744#ifdef HAVE_SYS_STAT_H 745# include <sys/stat.h> 746#endif 747#ifdef STDC_HEADERS 748# include <stdlib.h> 749# include <stddef.h> 750#else 751# ifdef HAVE_STDLIB_H 752# include <stdlib.h> 753# endif 754#endif 755#ifdef HAVE_STRING_H 756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 757# include <memory.h> 758# endif 759# include <string.h> 760#endif 761#ifdef HAVE_STRINGS_H 762# include <strings.h> 763#endif 764#ifdef HAVE_INTTYPES_H 765# include <inttypes.h> 766#endif 767#ifdef HAVE_STDINT_H 768# include <stdint.h> 769#endif 770#ifdef HAVE_UNISTD_H 771# include <unistd.h> 772#endif" 773 774ac_subst_vars='SHELL 775PATH_SEPARATOR 776PACKAGE_NAME 777PACKAGE_TARNAME 778PACKAGE_VERSION 779PACKAGE_STRING 780PACKAGE_BUGREPORT 781exec_prefix 782prefix 783program_transform_name 784bindir 785sbindir 786libexecdir 787datarootdir 788datadir 789sysconfdir 790sharedstatedir 791localstatedir 792includedir 793oldincludedir 794docdir 795infodir 796htmldir 797dvidir 798pdfdir 799psdir 800libdir 801localedir 802mandir 803DEFS 804ECHO_C 805ECHO_N 806ECHO_T 807LIBS 808build_alias 809host_alias 810target_alias 811INSTALL_PROGRAM 812INSTALL_SCRIPT 813INSTALL_DATA 814am__isrc 815CYGPATH_W 816PACKAGE 817VERSION 818ACLOCAL 819AUTOCONF 820AUTOMAKE 821AUTOHEADER 822MAKEINFO 823install_sh 824STRIP 825INSTALL_STRIP_PROGRAM 826mkdir_p 827AWK 828SET_MAKE 829am__leading_dot 830AMTAR 831am__tar 832am__untar 833MAINTAINER_MODE_TRUE 834MAINTAINER_MODE_FALSE 835MAINT 836CC 837CFLAGS 838LDFLAGS 839CPPFLAGS 840ac_ct_CC 841EXEEXT 842OBJEXT 843CPP 844build 845build_cpu 846build_vendor 847build_os 848host 849host_cpu 850host_vendor 851host_os 852CANONICAL_HOST 853YACC 854YFLAGS 855LEX 856LEX_OUTPUT_ROOT 857LEXLIB 858LN_S 859GREP 860EGREP 861ECHO 862AR 863RANLIB 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXCPP 868F77 869FFLAGS 870ac_ct_F77 871LIBTOOL 872ENABLE_SHARED_TRUE 873ENABLE_SHARED_FALSE 874VERSIONING 875versionscript_TRUE 876versionscript_FALSE 877LDFLAGS_VERSION_SCRIPT 878INCLUDE_openldap 879LIB_openldap 880OPENLDAP_MODULE_TRUE 881OPENLDAP_MODULE_FALSE 882PKINIT_TRUE 883PKINIT_FALSE 884DIR_hdbdir 885INCLUDE_krb4 886LIB_krb4 887KRB4_TRUE 888KRB4_FALSE 889KRB5_TRUE 890KRB5_FALSE 891do_roken_rename_TRUE 892do_roken_rename_FALSE 893LIB_kdb 894HAVE_OPENSSL_TRUE 895HAVE_OPENSSL_FALSE 896DIR_hcrypto 897INCLUDE_hcrypto 898LIB_hcrypto 899LIB_hcrypto_a 900LIB_hcrypto_so 901LIB_hcrypto_appl 902PTHREADS_CFLAGS 903PTHREADS_LIBS 904DCE_TRUE 905DCE_FALSE 906dpagaix_cflags 907dpagaix_ldadd 908dpagaix_ldflags 909LIB_db_create 910LIB_dbopen 911LIB_dbm_firstkey 912HAVE_DB1_TRUE 913HAVE_DB1_FALSE 914HAVE_DB3_TRUE 915HAVE_DB3_FALSE 916HAVE_NDBM_TRUE 917HAVE_NDBM_FALSE 918DBLIB 919LIB_NDBM 920WFLAGS 921WFLAGS_NOUNUSED 922WFLAGS_NOIMPLICITINT 923VOID_RETSIGTYPE 924have_err_h_TRUE 925have_err_h_FALSE 926have_ifaddrs_h_TRUE 927have_ifaddrs_h_FALSE 928have_vis_h_TRUE 929have_vis_h_FALSE 930LIB_socket 931LIB_gethostbyname 932LIB_syslog 933LIB_gethostbyname2 934LIB_res_search 935LIB_res_nsearch 936LIB_res_ndestroy 937LIB_dn_expand 938LIBOBJS 939have_glob_h_TRUE 940have_glob_h_FALSE 941have_cgetent_TRUE 942have_cgetent_FALSE 943LIB_getsockopt 944LIB_setsockopt 945LIB_hstrerror 946LIB_bswap16 947LIB_bswap32 948LIB_pidfile 949LIB_getaddrinfo 950LIB_getnameinfo 951LIB_freeaddrinfo 952LIB_gai_strerror 953have_fnmatch_h_TRUE 954have_fnmatch_h_FALSE 955LIB_crypt 956have_socket_wrapper_TRUE 957have_socket_wrapper_FALSE 958DIR_roken 959LIB_roken 960INCLUDES_roken 961LIBADD_roken 962LIB_otp 963OTP_TRUE 964OTP_FALSE 965LIB_security 966NROFF 967GROFF 968CATMAN 969CATMAN_TRUE 970CATMAN_FALSE 971CATMANEXT 972INCLUDE_readline 973LIB_readline 974INCLUDE_hesiod 975LIB_hesiod 976AIX_TRUE 977AIX_FALSE 978AIX4_TRUE 979AIX4_FALSE 980LIB_dlopen 981HAVE_DLOPEN_TRUE 982HAVE_DLOPEN_FALSE 983LIB_loadquery 984AIX_DYNAMIC_AFS_TRUE 985AIX_DYNAMIC_AFS_FALSE 986AIX_EXTRA_KAFS 987IRIX_TRUE 988IRIX_FALSE 989XMKMF 990X_CFLAGS 991X_PRE_LIBS 992X_LIBS 993X_EXTRA_LIBS 994HAVE_X_TRUE 995HAVE_X_FALSE 996LIB_XauWriteAuth 997LIB_XauReadAuth 998LIB_XauFileName 999NEED_WRITEAUTH_TRUE 1000NEED_WRITEAUTH_FALSE 1001LIB_logwtmp 1002LIB_logout 1003LIB_openpty 1004LIB_tgetent 1005LIB_getpwnam_r 1006LIB_door_create 1007KCM_TRUE 1008KCM_FALSE 1009FRAMEWORK_SECURITY_TRUE 1010FRAMEWORK_SECURITY_FALSE 1011LIB_el_init 1012el_compat_TRUE 1013el_compat_FALSE 1014COMPILE_ET 1015COM_ERR_TRUE 1016COM_ERR_FALSE 1017DIR_com_err 1018LIB_com_err 1019LIB_com_err_a 1020LIB_com_err_so 1021LIB_AUTH_SUBDIRS 1022LTLIBOBJS' 1023ac_subst_files='' 1024 ac_precious_vars='build_alias 1025host_alias 1026target_alias 1027CC 1028CFLAGS 1029LDFLAGS 1030LIBS 1031CPPFLAGS 1032CPP 1033YACC 1034YFLAGS 1035CXX 1036CXXFLAGS 1037CCC 1038CXXCPP 1039F77 1040FFLAGS 1041XMKMF' 1042 1043 1044# Initialize some variables set by options. 1045ac_init_help= 1046ac_init_version=false 1047# The variables have the same names as the options, with 1048# dashes changed to underlines. 1049cache_file=/dev/null 1050exec_prefix=NONE 1051no_create= 1052no_recursion= 1053prefix=NONE 1054program_prefix=NONE 1055program_suffix=NONE 1056program_transform_name=s,x,x, 1057silent= 1058site= 1059srcdir= 1060verbose= 1061x_includes=NONE 1062x_libraries=NONE 1063 1064# Installation directory options. 1065# These are left unexpanded so users can "make install exec_prefix=/foo" 1066# and all the variables that are supposed to be based on exec_prefix 1067# by default will actually change. 1068# Use braces instead of parens because sh, perl, etc. also accept them. 1069# (The list follows the same order as the GNU Coding Standards.) 1070bindir='${exec_prefix}/bin' 1071sbindir='${exec_prefix}/sbin' 1072libexecdir='${exec_prefix}/libexec' 1073datarootdir='${prefix}/share' 1074datadir='${datarootdir}' 1075sysconfdir='${prefix}/etc' 1076sharedstatedir='${prefix}/com' 1077localstatedir='${prefix}/var' 1078includedir='${prefix}/include' 1079oldincludedir='/usr/include' 1080docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1081infodir='${datarootdir}/info' 1082htmldir='${docdir}' 1083dvidir='${docdir}' 1084pdfdir='${docdir}' 1085psdir='${docdir}' 1086libdir='${exec_prefix}/lib' 1087localedir='${datarootdir}/locale' 1088mandir='${datarootdir}/man' 1089 1090ac_prev= 1091ac_dashdash= 1092for ac_option 1093do 1094 # If the previous option needs an argument, assign it. 1095 if test -n "$ac_prev"; then 1096 eval $ac_prev=\$ac_option 1097 ac_prev= 1098 continue 1099 fi 1100 1101 case $ac_option in 1102 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1103 *) ac_optarg=yes ;; 1104 esac 1105 1106 # Accept the important Cygnus configure options, so we can diagnose typos. 1107 1108 case $ac_dashdash$ac_option in 1109 --) 1110 ac_dashdash=yes ;; 1111 1112 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1113 ac_prev=bindir ;; 1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1115 bindir=$ac_optarg ;; 1116 1117 -build | --build | --buil | --bui | --bu) 1118 ac_prev=build_alias ;; 1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1120 build_alias=$ac_optarg ;; 1121 1122 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1124 ac_prev=cache_file ;; 1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1127 cache_file=$ac_optarg ;; 1128 1129 --config-cache | -C) 1130 cache_file=config.cache ;; 1131 1132 -datadir | --datadir | --datadi | --datad) 1133 ac_prev=datadir ;; 1134 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1135 datadir=$ac_optarg ;; 1136 1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1138 | --dataroo | --dataro | --datar) 1139 ac_prev=datarootdir ;; 1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1142 datarootdir=$ac_optarg ;; 1143 1144 -disable-* | --disable-*) 1145 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1148 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1149 { (exit 1); exit 1; }; } 1150 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1151 eval enable_$ac_feature=no ;; 1152 1153 -docdir | --docdir | --docdi | --doc | --do) 1154 ac_prev=docdir ;; 1155 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1156 docdir=$ac_optarg ;; 1157 1158 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1159 ac_prev=dvidir ;; 1160 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1161 dvidir=$ac_optarg ;; 1162 1163 -enable-* | --enable-*) 1164 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1167 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1168 { (exit 1); exit 1; }; } 1169 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1170 eval enable_$ac_feature=\$ac_optarg ;; 1171 1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1174 | --exec | --exe | --ex) 1175 ac_prev=exec_prefix ;; 1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1178 | --exec=* | --exe=* | --ex=*) 1179 exec_prefix=$ac_optarg ;; 1180 1181 -gas | --gas | --ga | --g) 1182 # Obsolete; use --with-gas. 1183 with_gas=yes ;; 1184 1185 -help | --help | --hel | --he | -h) 1186 ac_init_help=long ;; 1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1188 ac_init_help=recursive ;; 1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1190 ac_init_help=short ;; 1191 1192 -host | --host | --hos | --ho) 1193 ac_prev=host_alias ;; 1194 -host=* | --host=* | --hos=* | --ho=*) 1195 host_alias=$ac_optarg ;; 1196 1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1198 ac_prev=htmldir ;; 1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1200 | --ht=*) 1201 htmldir=$ac_optarg ;; 1202 1203 -includedir | --includedir | --includedi | --included | --include \ 1204 | --includ | --inclu | --incl | --inc) 1205 ac_prev=includedir ;; 1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1207 | --includ=* | --inclu=* | --incl=* | --inc=*) 1208 includedir=$ac_optarg ;; 1209 1210 -infodir | --infodir | --infodi | --infod | --info | --inf) 1211 ac_prev=infodir ;; 1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1213 infodir=$ac_optarg ;; 1214 1215 -libdir | --libdir | --libdi | --libd) 1216 ac_prev=libdir ;; 1217 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1218 libdir=$ac_optarg ;; 1219 1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1221 | --libexe | --libex | --libe) 1222 ac_prev=libexecdir ;; 1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1224 | --libexe=* | --libex=* | --libe=*) 1225 libexecdir=$ac_optarg ;; 1226 1227 -localedir | --localedir | --localedi | --localed | --locale) 1228 ac_prev=localedir ;; 1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1230 localedir=$ac_optarg ;; 1231 1232 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1233 | --localstate | --localstat | --localsta | --localst | --locals) 1234 ac_prev=localstatedir ;; 1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1237 localstatedir=$ac_optarg ;; 1238 1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1240 ac_prev=mandir ;; 1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1242 mandir=$ac_optarg ;; 1243 1244 -nfp | --nfp | --nf) 1245 # Obsolete; use --without-fp. 1246 with_fp=no ;; 1247 1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1249 | --no-cr | --no-c | -n) 1250 no_create=yes ;; 1251 1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1254 no_recursion=yes ;; 1255 1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1258 | --oldin | --oldi | --old | --ol | --o) 1259 ac_prev=oldincludedir ;; 1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1263 oldincludedir=$ac_optarg ;; 1264 1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1266 ac_prev=prefix ;; 1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1268 prefix=$ac_optarg ;; 1269 1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1271 | --program-pre | --program-pr | --program-p) 1272 ac_prev=program_prefix ;; 1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1275 program_prefix=$ac_optarg ;; 1276 1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1278 | --program-suf | --program-su | --program-s) 1279 ac_prev=program_suffix ;; 1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1282 program_suffix=$ac_optarg ;; 1283 1284 -program-transform-name | --program-transform-name \ 1285 | --program-transform-nam | --program-transform-na \ 1286 | --program-transform-n | --program-transform- \ 1287 | --program-transform | --program-transfor \ 1288 | --program-transfo | --program-transf \ 1289 | --program-trans | --program-tran \ 1290 | --progr-tra | --program-tr | --program-t) 1291 ac_prev=program_transform_name ;; 1292 -program-transform-name=* | --program-transform-name=* \ 1293 | --program-transform-nam=* | --program-transform-na=* \ 1294 | --program-transform-n=* | --program-transform-=* \ 1295 | --program-transform=* | --program-transfor=* \ 1296 | --program-transfo=* | --program-transf=* \ 1297 | --program-trans=* | --program-tran=* \ 1298 | --progr-tra=* | --program-tr=* | --program-t=*) 1299 program_transform_name=$ac_optarg ;; 1300 1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1302 ac_prev=pdfdir ;; 1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1304 pdfdir=$ac_optarg ;; 1305 1306 -psdir | --psdir | --psdi | --psd | --ps) 1307 ac_prev=psdir ;; 1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1309 psdir=$ac_optarg ;; 1310 1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1312 | -silent | --silent | --silen | --sile | --sil) 1313 silent=yes ;; 1314 1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1316 ac_prev=sbindir ;; 1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1318 | --sbi=* | --sb=*) 1319 sbindir=$ac_optarg ;; 1320 1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1323 | --sharedst | --shareds | --shared | --share | --shar \ 1324 | --sha | --sh) 1325 ac_prev=sharedstatedir ;; 1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1329 | --sha=* | --sh=*) 1330 sharedstatedir=$ac_optarg ;; 1331 1332 -site | --site | --sit) 1333 ac_prev=site ;; 1334 -site=* | --site=* | --sit=*) 1335 site=$ac_optarg ;; 1336 1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1338 ac_prev=srcdir ;; 1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1340 srcdir=$ac_optarg ;; 1341 1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1343 | --syscon | --sysco | --sysc | --sys | --sy) 1344 ac_prev=sysconfdir ;; 1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1347 sysconfdir=$ac_optarg ;; 1348 1349 -target | --target | --targe | --targ | --tar | --ta | --t) 1350 ac_prev=target_alias ;; 1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1352 target_alias=$ac_optarg ;; 1353 1354 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1355 verbose=yes ;; 1356 1357 -version | --version | --versio | --versi | --vers | -V) 1358 ac_init_version=: ;; 1359 1360 -with-* | --with-*) 1361 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1362 # Reject names that are not valid shell variable names. 1363 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1364 { echo "$as_me: error: invalid package name: $ac_package" >&2 1365 { (exit 1); exit 1; }; } 1366 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1367 eval with_$ac_package=\$ac_optarg ;; 1368 1369 -without-* | --without-*) 1370 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1371 # Reject names that are not valid shell variable names. 1372 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1373 { echo "$as_me: error: invalid package name: $ac_package" >&2 1374 { (exit 1); exit 1; }; } 1375 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1376 eval with_$ac_package=no ;; 1377 1378 --x) 1379 # Obsolete; use --with-x. 1380 with_x=yes ;; 1381 1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1383 | --x-incl | --x-inc | --x-in | --x-i) 1384 ac_prev=x_includes ;; 1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1387 x_includes=$ac_optarg ;; 1388 1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1391 ac_prev=x_libraries ;; 1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1394 x_libraries=$ac_optarg ;; 1395 1396 -*) { echo "$as_me: error: unrecognized option: $ac_option 1397Try \`$0 --help' for more information." >&2 1398 { (exit 1); exit 1; }; } 1399 ;; 1400 1401 *=*) 1402 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1403 # Reject names that are not valid shell variable names. 1404 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1405 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1406 { (exit 1); exit 1; }; } 1407 eval $ac_envvar=\$ac_optarg 1408 export $ac_envvar ;; 1409 1410 *) 1411 # FIXME: should be removed in autoconf 3.0. 1412 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1414 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1415 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1416 ;; 1417 1418 esac 1419done 1420 1421if test -n "$ac_prev"; then 1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1423 { echo "$as_me: error: missing argument to $ac_option" >&2 1424 { (exit 1); exit 1; }; } 1425fi 1426 1427# Be sure to have absolute directory names. 1428for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1429 datadir sysconfdir sharedstatedir localstatedir includedir \ 1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1431 libdir localedir mandir 1432do 1433 eval ac_val=\$$ac_var 1434 case $ac_val in 1435 [\\/$]* | ?:[\\/]* ) continue;; 1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1437 esac 1438 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1439 { (exit 1); exit 1; }; } 1440done 1441 1442# There might be people who depend on the old broken behavior: `$host' 1443# used to hold the argument of --host etc. 1444# FIXME: To remove some day. 1445build=$build_alias 1446host=$host_alias 1447target=$target_alias 1448 1449# FIXME: To remove some day. 1450if test "x$host_alias" != x; then 1451 if test "x$build_alias" = x; then 1452 cross_compiling=maybe 1453 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1454 If a cross compiler is detected then cross compile mode will be used." >&2 1455 elif test "x$build_alias" != "x$host_alias"; then 1456 cross_compiling=yes 1457 fi 1458fi 1459 1460ac_tool_prefix= 1461test -n "$host_alias" && ac_tool_prefix=$host_alias- 1462 1463test "$silent" = yes && exec 6>/dev/null 1464 1465 1466ac_pwd=`pwd` && test -n "$ac_pwd" && 1467ac_ls_di=`ls -di .` && 1468ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1469 { echo "$as_me: error: Working directory cannot be determined" >&2 1470 { (exit 1); exit 1; }; } 1471test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1472 { echo "$as_me: error: pwd does not report name of working directory" >&2 1473 { (exit 1); exit 1; }; } 1474 1475 1476# Find the source files, if location was not specified. 1477if test -z "$srcdir"; then 1478 ac_srcdir_defaulted=yes 1479 # Try the directory containing this script, then the parent directory. 1480 ac_confdir=`$as_dirname -- "$0" || 1481$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1482 X"$0" : 'X\(//\)[^/]' \| \ 1483 X"$0" : 'X\(//\)$' \| \ 1484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1485echo X"$0" | 1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1487 s//\1/ 1488 q 1489 } 1490 /^X\(\/\/\)[^/].*/{ 1491 s//\1/ 1492 q 1493 } 1494 /^X\(\/\/\)$/{ 1495 s//\1/ 1496 q 1497 } 1498 /^X\(\/\).*/{ 1499 s//\1/ 1500 q 1501 } 1502 s/.*/./; q'` 1503 srcdir=$ac_confdir 1504 if test ! -r "$srcdir/$ac_unique_file"; then 1505 srcdir=.. 1506 fi 1507else 1508 ac_srcdir_defaulted=no 1509fi 1510if test ! -r "$srcdir/$ac_unique_file"; then 1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1512 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1513 { (exit 1); exit 1; }; } 1514fi 1515ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1516ac_abs_confdir=`( 1517 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1518 { (exit 1); exit 1; }; } 1519 pwd)` 1520# When building in place, set srcdir=. 1521if test "$ac_abs_confdir" = "$ac_pwd"; then 1522 srcdir=. 1523fi 1524# Remove unnecessary trailing slashes from srcdir. 1525# Double slashes in file names in object file debugging info 1526# mess up M-x gdb in Emacs. 1527case $srcdir in 1528*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1529esac 1530for ac_var in $ac_precious_vars; do 1531 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1532 eval ac_env_${ac_var}_value=\$${ac_var} 1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1534 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1535done 1536 1537# 1538# Report the --help message. 1539# 1540if test "$ac_init_help" = "long"; then 1541 # Omit some internal or obsolete options to make the list less imposing. 1542 # This message is too long to be a string in the A/UX 3.1 sh. 1543 cat <<_ACEOF 1544\`configure' configures Heimdal 1.1 to adapt to many kinds of systems. 1545 1546Usage: $0 [OPTION]... [VAR=VALUE]... 1547 1548To assign environment variables (e.g., CC, CFLAGS...), specify them as 1549VAR=VALUE. See below for descriptions of some of the useful variables. 1550 1551Defaults for the options are specified in brackets. 1552 1553Configuration: 1554 -h, --help display this help and exit 1555 --help=short display options specific to this package 1556 --help=recursive display the short help of all the included packages 1557 -V, --version display version information and exit 1558 -q, --quiet, --silent do not print \`checking...' messages 1559 --cache-file=FILE cache test results in FILE [disabled] 1560 -C, --config-cache alias for \`--cache-file=config.cache' 1561 -n, --no-create do not create output files 1562 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1563 1564Installation directories: 1565 --prefix=PREFIX install architecture-independent files in PREFIX 1566 [$ac_default_prefix] 1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1568 [PREFIX] 1569 1570By default, \`make install' will install all the files in 1571\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1572an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1573for instance \`--prefix=\$HOME'. 1574 1575For better control, use the options below. 1576 1577Fine tuning of the installation directories: 1578 --bindir=DIR user executables [EPREFIX/bin] 1579 --sbindir=DIR system admin executables [EPREFIX/sbin] 1580 --libexecdir=DIR program executables [EPREFIX/libexec] 1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1584 --libdir=DIR object code libraries [EPREFIX/lib] 1585 --includedir=DIR C header files [PREFIX/include] 1586 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1589 --infodir=DIR info documentation [DATAROOTDIR/info] 1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1591 --mandir=DIR man documentation [DATAROOTDIR/man] 1592 --docdir=DIR documentation root [DATAROOTDIR/doc/heimdal] 1593 --htmldir=DIR html documentation [DOCDIR] 1594 --dvidir=DIR dvi documentation [DOCDIR] 1595 --pdfdir=DIR pdf documentation [DOCDIR] 1596 --psdir=DIR ps documentation [DOCDIR] 1597_ACEOF 1598 1599 cat <<\_ACEOF 1600 1601Program names: 1602 --program-prefix=PREFIX prepend PREFIX to installed program names 1603 --program-suffix=SUFFIX append SUFFIX to installed program names 1604 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1605 1606X features: 1607 --x-includes=DIR X include files are in DIR 1608 --x-libraries=DIR X library files are in DIR 1609 1610System types: 1611 --build=BUILD configure for building on BUILD [guessed] 1612 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1613_ACEOF 1614fi 1615 1616if test -n "$ac_init_help"; then 1617 case $ac_init_help in 1618 short | recursive ) echo "Configuration of Heimdal 1.1:";; 1619 esac 1620 cat <<\_ACEOF 1621 1622Optional Features: 1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1625 --enable-maintainer-mode enable make rules and dependencies not useful 1626 (and sometimes confusing) to the casual installer 1627 --disable-largefile omit support for large files 1628 --enable-shared[=PKGS] build shared libraries [default=yes] 1629 --enable-static[=PKGS] build static libraries [default=yes] 1630 --enable-fast-install[=PKGS] 1631 optimize for fast installation [default=yes] 1632 --disable-libtool-lock avoid locking (might break parallel builds) 1633 --enable-hdb-openldap-module 1634 if you want support to build openldap hdb as shared 1635 object 1636 --disable-pk-init if you want disable to PK-INIT support 1637 --enable-pthread-support 1638 if you want thread safe libraries 1639 --enable-dce if you want support for DCE/DFS PAG's 1640 --disable-afs-support if you don't want support for AFS 1641 --disable-berkeley-db if you don't want berkeley db 1642 --disable-ndbm-db if you don't want ndbm db 1643 --enable-developer enable developer warnings 1644 --enable-socket-wrapper use sambas socket-wrapper for testing 1645 --disable-otp if you don't want OTP support 1646 --enable-osfc2 enable some OSF C2 support 1647 --disable-mmap disable use of mmap 1648 --disable-afs-string-to-key 1649 disable use of weak AFS string-to-key functions 1650 --enable-bigendian the target is big endian 1651 --enable-littleendian the target is little endian 1652 --disable-dynamic-afs do not use loaded AFS library with AIX 1653 --enable-netinfo enable netinfo for configuration lookup 1654 --enable-kcm enable Kerberos Credentials Manager 1655 1656Optional Packages: 1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1659 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1661 --with-pic try to use only PIC/non-PIC objects [default=use 1662 both] 1663 --with-tags[=TAGS] include additional configurations [automatic] 1664 --with-openldap=dir use openldap in dir 1665 --with-openldap-lib=dir use openldap libraries in dir 1666 --with-openldap-include=dir 1667 use openldap headers in dir 1668 --with-openldap-config=path 1669 config program for openldap 1670 --with-hdbdir Default location for KDC database 1671 [default=/var/heimdal] 1672 --with-openssl=dir use openssl in dir 1673 --with-openssl-lib=dir use openssl libraries in dir 1674 --with-openssl-include=dir 1675 use openssl headers in dir 1676 --without-ipv6 do not enable IPv6 support 1677 --with-readline=dir use readline in dir 1678 --with-readline-lib=dir use readline libraries in dir 1679 --with-readline-include=dir 1680 use readline headers in dir 1681 --with-readline-config=path 1682 config program for readline 1683 --with-hesiod=dir use hesiod in dir 1684 --with-hesiod-lib=dir use hesiod libraries in dir 1685 --with-hesiod-include=dir 1686 use hesiod headers in dir 1687 --with-hesiod-config=path 1688 config program for hesiod 1689 --with-x use the X Window System 1690 1691Some influential environment variables: 1692 CC C compiler command 1693 CFLAGS C compiler flags 1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1695 nonstandard directory <lib dir> 1696 LIBS libraries to pass to the linker, e.g. -l<library> 1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1698 you have headers in a nonstandard directory <include dir> 1699 CPP C preprocessor 1700 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1701 the first program found out of: `bison -y', `byacc', `yacc'. 1702 YFLAGS The list of arguments that will be passed by default to $YACC. 1703 This script will default YFLAGS to the empty string to avoid a 1704 default value of `-d' given by some make applications. 1705 CXX C++ compiler command 1706 CXXFLAGS C++ compiler flags 1707 CXXCPP C++ preprocessor 1708 F77 Fortran 77 compiler command 1709 FFLAGS Fortran 77 compiler flags 1710 XMKMF Path to xmkmf, Makefile generator for X Window System 1711 1712Use these variables to override the choices made by `configure' or to help 1713it to find libraries and programs with nonstandard names/locations. 1714 1715Report bugs to <heimdal-bugs@h5l.org>. 1716_ACEOF 1717ac_status=$? 1718fi 1719 1720if test "$ac_init_help" = "recursive"; then 1721 # If there are subdirs, report their specific --help. 1722 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1723 test -d "$ac_dir" || continue 1724 ac_builddir=. 1725 1726case "$ac_dir" in 1727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1728*) 1729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1730 # A ".." for each directory in $ac_dir_suffix. 1731 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1732 case $ac_top_builddir_sub in 1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1735 esac ;; 1736esac 1737ac_abs_top_builddir=$ac_pwd 1738ac_abs_builddir=$ac_pwd$ac_dir_suffix 1739# for backward compatibility: 1740ac_top_builddir=$ac_top_build_prefix 1741 1742case $srcdir in 1743 .) # We are building in place. 1744 ac_srcdir=. 1745 ac_top_srcdir=$ac_top_builddir_sub 1746 ac_abs_top_srcdir=$ac_pwd ;; 1747 [\\/]* | ?:[\\/]* ) # Absolute name. 1748 ac_srcdir=$srcdir$ac_dir_suffix; 1749 ac_top_srcdir=$srcdir 1750 ac_abs_top_srcdir=$srcdir ;; 1751 *) # Relative name. 1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1753 ac_top_srcdir=$ac_top_build_prefix$srcdir 1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1755esac 1756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1757 1758 cd "$ac_dir" || { ac_status=$?; continue; } 1759 # Check for guested configure. 1760 if test -f "$ac_srcdir/configure.gnu"; then 1761 echo && 1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1763 elif test -f "$ac_srcdir/configure"; then 1764 echo && 1765 $SHELL "$ac_srcdir/configure" --help=recursive 1766 else 1767 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1768 fi || ac_status=$? 1769 cd "$ac_pwd" || { ac_status=$?; break; } 1770 done 1771fi 1772 1773test -n "$ac_init_help" && exit $ac_status 1774if $ac_init_version; then 1775 cat <<\_ACEOF 1776Heimdal configure 1.1 1777generated by GNU Autoconf 2.61 1778 1779Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1781This configure script is free software; the Free Software Foundation 1782gives unlimited permission to copy, distribute and modify it. 1783_ACEOF 1784 exit 1785fi 1786cat >config.log <<_ACEOF 1787This file contains any messages produced by compilers while 1788running configure, to aid debugging if configure makes a mistake. 1789 1790It was created by Heimdal $as_me 1.1, which was 1791generated by GNU Autoconf 2.61. Invocation command line was 1792 1793 $ $0 $@ 1794 1795_ACEOF 1796exec 5>>config.log 1797{ 1798cat <<_ASUNAME 1799## --------- ## 1800## Platform. ## 1801## --------- ## 1802 1803hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1804uname -m = `(uname -m) 2>/dev/null || echo unknown` 1805uname -r = `(uname -r) 2>/dev/null || echo unknown` 1806uname -s = `(uname -s) 2>/dev/null || echo unknown` 1807uname -v = `(uname -v) 2>/dev/null || echo unknown` 1808 1809/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1810/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1811 1812/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1813/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1814/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1815/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1816/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1817/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1818/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1819 1820_ASUNAME 1821 1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1823for as_dir in $PATH 1824do 1825 IFS=$as_save_IFS 1826 test -z "$as_dir" && as_dir=. 1827 echo "PATH: $as_dir" 1828done 1829IFS=$as_save_IFS 1830 1831} >&5 1832 1833cat >&5 <<_ACEOF 1834 1835 1836## ----------- ## 1837## Core tests. ## 1838## ----------- ## 1839 1840_ACEOF 1841 1842 1843# Keep a trace of the command line. 1844# Strip out --no-create and --no-recursion so they do not pile up. 1845# Strip out --silent because we don't want to record it for future runs. 1846# Also quote any args containing shell meta-characters. 1847# Make two passes to allow for proper duplicate-argument suppression. 1848ac_configure_args= 1849ac_configure_args0= 1850ac_configure_args1= 1851ac_must_keep_next=false 1852for ac_pass in 1 2 1853do 1854 for ac_arg 1855 do 1856 case $ac_arg in 1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1859 | -silent | --silent | --silen | --sile | --sil) 1860 continue ;; 1861 *\'*) 1862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1863 esac 1864 case $ac_pass in 1865 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1866 2) 1867 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1868 if test $ac_must_keep_next = true; then 1869 ac_must_keep_next=false # Got value, back to normal. 1870 else 1871 case $ac_arg in 1872 *=* | --config-cache | -C | -disable-* | --disable-* \ 1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1875 | -with-* | --with-* | -without-* | --without-* | --x) 1876 case "$ac_configure_args0 " in 1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1878 esac 1879 ;; 1880 -* ) ac_must_keep_next=true ;; 1881 esac 1882 fi 1883 ac_configure_args="$ac_configure_args '$ac_arg'" 1884 ;; 1885 esac 1886 done 1887done 1888$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1889$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1890 1891# When interrupted or exit'd, cleanup temporary files, and complete 1892# config.log. We remove comments because anyway the quotes in there 1893# would cause problems or look ugly. 1894# WARNING: Use '\'' to represent an apostrophe within the trap. 1895# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1896trap 'exit_status=$? 1897 # Save into config.log some information that might help in debugging. 1898 { 1899 echo 1900 1901 cat <<\_ASBOX 1902## ---------------- ## 1903## Cache variables. ## 1904## ---------------- ## 1905_ASBOX 1906 echo 1907 # The following way of writing the cache mishandles newlines in values, 1908( 1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1910 eval ac_val=\$$ac_var 1911 case $ac_val in #( 1912 *${as_nl}*) 1913 case $ac_var in #( 1914 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1915echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1916 esac 1917 case $ac_var in #( 1918 _ | IFS | as_nl) ;; #( 1919 *) $as_unset $ac_var ;; 1920 esac ;; 1921 esac 1922 done 1923 (set) 2>&1 | 1924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1925 *${as_nl}ac_space=\ *) 1926 sed -n \ 1927 "s/'\''/'\''\\\\'\'''\''/g; 1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1929 ;; #( 1930 *) 1931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1932 ;; 1933 esac | 1934 sort 1935) 1936 echo 1937 1938 cat <<\_ASBOX 1939## ----------------- ## 1940## Output variables. ## 1941## ----------------- ## 1942_ASBOX 1943 echo 1944 for ac_var in $ac_subst_vars 1945 do 1946 eval ac_val=\$$ac_var 1947 case $ac_val in 1948 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1949 esac 1950 echo "$ac_var='\''$ac_val'\''" 1951 done | sort 1952 echo 1953 1954 if test -n "$ac_subst_files"; then 1955 cat <<\_ASBOX 1956## ------------------- ## 1957## File substitutions. ## 1958## ------------------- ## 1959_ASBOX 1960 echo 1961 for ac_var in $ac_subst_files 1962 do 1963 eval ac_val=\$$ac_var 1964 case $ac_val in 1965 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1966 esac 1967 echo "$ac_var='\''$ac_val'\''" 1968 done | sort 1969 echo 1970 fi 1971 1972 if test -s confdefs.h; then 1973 cat <<\_ASBOX 1974## ----------- ## 1975## confdefs.h. ## 1976## ----------- ## 1977_ASBOX 1978 echo 1979 cat confdefs.h 1980 echo 1981 fi 1982 test "$ac_signal" != 0 && 1983 echo "$as_me: caught signal $ac_signal" 1984 echo "$as_me: exit $exit_status" 1985 } >&5 1986 rm -f core *.core core.conftest.* && 1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1988 exit $exit_status 1989' 0 1990for ac_signal in 1 2 13 15; do 1991 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1992done 1993ac_signal=0 1994 1995# confdefs.h avoids OS command line length limits that DEFS can exceed. 1996rm -f -r conftest* confdefs.h 1997 1998# Predefined preprocessor variables. 1999 2000cat >>confdefs.h <<_ACEOF 2001#define PACKAGE_NAME "$PACKAGE_NAME" 2002_ACEOF 2003 2004 2005cat >>confdefs.h <<_ACEOF 2006#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2007_ACEOF 2008 2009 2010cat >>confdefs.h <<_ACEOF 2011#define PACKAGE_VERSION "$PACKAGE_VERSION" 2012_ACEOF 2013 2014 2015cat >>confdefs.h <<_ACEOF 2016#define PACKAGE_STRING "$PACKAGE_STRING" 2017_ACEOF 2018 2019 2020cat >>confdefs.h <<_ACEOF 2021#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2022_ACEOF 2023 2024 2025# Let the site file select an alternate cache file if it wants to. 2026# Prefer explicitly selected file to automatically selected ones. 2027if test -n "$CONFIG_SITE"; then 2028 set x "$CONFIG_SITE" 2029elif test "x$prefix" != xNONE; then 2030 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2031else 2032 set x "$ac_default_prefix/share/config.site" \ 2033 "$ac_default_prefix/etc/config.site" 2034fi 2035shift 2036for ac_site_file 2037do 2038 if test -r "$ac_site_file"; then 2039 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2040echo "$as_me: loading site script $ac_site_file" >&6;} 2041 sed 's/^/| /' "$ac_site_file" >&5 2042 . "$ac_site_file" 2043 fi 2044done 2045 2046if test -r "$cache_file"; then 2047 # Some versions of bash will fail to source /dev/null (special 2048 # files actually), so we avoid doing that. 2049 if test -f "$cache_file"; then 2050 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2051echo "$as_me: loading cache $cache_file" >&6;} 2052 case $cache_file in 2053 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2054 *) . "./$cache_file";; 2055 esac 2056 fi 2057else 2058 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2059echo "$as_me: creating cache $cache_file" >&6;} 2060 >$cache_file 2061fi 2062 2063# Check that the precious variables saved in the cache have kept the same 2064# value. 2065ac_cache_corrupted=false 2066for ac_var in $ac_precious_vars; do 2067 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2068 eval ac_new_set=\$ac_env_${ac_var}_set 2069 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2070 eval ac_new_val=\$ac_env_${ac_var}_value 2071 case $ac_old_set,$ac_new_set in 2072 set,) 2073 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2074echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2075 ac_cache_corrupted=: ;; 2076 ,set) 2077 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2078echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2079 ac_cache_corrupted=: ;; 2080 ,);; 2081 *) 2082 if test "x$ac_old_val" != "x$ac_new_val"; then 2083 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2084echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2085 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 2086echo "$as_me: former value: $ac_old_val" >&2;} 2087 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 2088echo "$as_me: current value: $ac_new_val" >&2;} 2089 ac_cache_corrupted=: 2090 fi;; 2091 esac 2092 # Pass precious variables to config.status. 2093 if test "$ac_new_set" = set; then 2094 case $ac_new_val in 2095 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2096 *) ac_arg=$ac_var=$ac_new_val ;; 2097 esac 2098 case " $ac_configure_args " in 2099 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2100 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2101 esac 2102 fi 2103done 2104if $ac_cache_corrupted; then 2105 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2106echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2107 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2108echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2109 { (exit 1); exit 1; }; } 2110fi 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136ac_ext=c 2137ac_cpp='$CPP $CPPFLAGS' 2138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2140ac_compiler_gnu=$ac_cv_c_compiler_gnu 2141 2142 2143 2144ac_config_headers="$ac_config_headers include/config.h" 2145 2146 2147am__api_version='1.10' 2148 2149ac_aux_dir= 2150for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2151 if test -f "$ac_dir/install-sh"; then 2152 ac_aux_dir=$ac_dir 2153 ac_install_sh="$ac_aux_dir/install-sh -c" 2154 break 2155 elif test -f "$ac_dir/install.sh"; then 2156 ac_aux_dir=$ac_dir 2157 ac_install_sh="$ac_aux_dir/install.sh -c" 2158 break 2159 elif test -f "$ac_dir/shtool"; then 2160 ac_aux_dir=$ac_dir 2161 ac_install_sh="$ac_aux_dir/shtool install -c" 2162 break 2163 fi 2164done 2165if test -z "$ac_aux_dir"; then 2166 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2167echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2168 { (exit 1); exit 1; }; } 2169fi 2170 2171# These three variables are undocumented and unsupported, 2172# and are intended to be withdrawn in a future Autoconf release. 2173# They can cause serious problems if a builder's source tree is in a directory 2174# whose full name contains unusual characters. 2175ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2176ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2177ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2178 2179 2180# Find a good install program. We prefer a C program (faster), 2181# so one script is as good as another. But avoid the broken or 2182# incompatible versions: 2183# SysV /etc/install, /usr/sbin/install 2184# SunOS /usr/etc/install 2185# IRIX /sbin/install 2186# AIX /bin/install 2187# AmigaOS /C/install, which installs bootblocks on floppy discs 2188# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2189# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2190# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2191# OS/2's system install, which has a completely different semantic 2192# ./install, which can be erroneously created by make from ./install.sh. 2193{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2194echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2195if test -z "$INSTALL"; then 2196if test "${ac_cv_path_install+set}" = set; then 2197 echo $ECHO_N "(cached) $ECHO_C" >&6 2198else 2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2200for as_dir in $PATH 2201do 2202 IFS=$as_save_IFS 2203 test -z "$as_dir" && as_dir=. 2204 # Account for people who put trailing slashes in PATH elements. 2205case $as_dir/ in 2206 ./ | .// | /cC/* | \ 2207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2208 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2209 /usr/ucb/* ) ;; 2210 *) 2211 # OSF1 and SCO ODT 3.0 have their own names for install. 2212 # Don't use installbsd from OSF since it installs stuff as root 2213 # by default. 2214 for ac_prog in ginstall scoinst install; do 2215 for ac_exec_ext in '' $ac_executable_extensions; do 2216 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2217 if test $ac_prog = install && 2218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2219 # AIX install. It has an incompatible calling convention. 2220 : 2221 elif test $ac_prog = install && 2222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2223 # program-specific install script used by HP pwplus--don't use. 2224 : 2225 else 2226 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2227 break 3 2228 fi 2229 fi 2230 done 2231 done 2232 ;; 2233esac 2234done 2235IFS=$as_save_IFS 2236 2237 2238fi 2239 if test "${ac_cv_path_install+set}" = set; then 2240 INSTALL=$ac_cv_path_install 2241 else 2242 # As a last resort, use the slow shell script. Don't cache a 2243 # value for INSTALL within a source directory, because that will 2244 # break other packages using the cache if that directory is 2245 # removed, or if the value is a relative name. 2246 INSTALL=$ac_install_sh 2247 fi 2248fi 2249{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2250echo "${ECHO_T}$INSTALL" >&6; } 2251 2252# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2253# It thinks the first close brace ends the variable substitution. 2254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2255 2256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2257 2258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2259 2260{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2261echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2262# Just in case 2263sleep 1 2264echo timestamp > conftest.file 2265# Do `set' in a subshell so we don't clobber the current shell's 2266# arguments. Must try -L first in case configure is actually a 2267# symlink; some systems play weird games with the mod time of symlinks 2268# (eg FreeBSD returns the mod time of the symlink's containing 2269# directory). 2270if ( 2271 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2272 if test "$*" = "X"; then 2273 # -L didn't work. 2274 set X `ls -t $srcdir/configure conftest.file` 2275 fi 2276 rm -f conftest.file 2277 if test "$*" != "X $srcdir/configure conftest.file" \ 2278 && test "$*" != "X conftest.file $srcdir/configure"; then 2279 2280 # If neither matched, then we have a broken ls. This can happen 2281 # if, for instance, CONFIG_SHELL is bash and it inherits a 2282 # broken ls alias from the environment. This has actually 2283 # happened. Such a system could not be considered "sane". 2284 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2285alias in your environment" >&5 2286echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2287alias in your environment" >&2;} 2288 { (exit 1); exit 1; }; } 2289 fi 2290 2291 test "$2" = conftest.file 2292 ) 2293then 2294 # Ok. 2295 : 2296else 2297 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2298Check your system clock" >&5 2299echo "$as_me: error: newly created file is older than distributed files! 2300Check your system clock" >&2;} 2301 { (exit 1); exit 1; }; } 2302fi 2303{ echo "$as_me:$LINENO: result: yes" >&5 2304echo "${ECHO_T}yes" >&6; } 2305test "$program_prefix" != NONE && 2306 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2307# Use a double $ so make ignores it. 2308test "$program_suffix" != NONE && 2309 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2310# Double any \ or $. echo might interpret backslashes. 2311# By default was `s,x,x', remove it if useless. 2312cat <<\_ACEOF >conftest.sed 2313s/[\\$]/&&/g;s/;s,x,x,$// 2314_ACEOF 2315program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2316rm -f conftest.sed 2317 2318# expand $ac_aux_dir to an absolute path 2319am_aux_dir=`cd $ac_aux_dir && pwd` 2320 2321test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2322# Use eval to expand $SHELL 2323if eval "$MISSING --run true"; then 2324 am_missing_run="$MISSING --run " 2325else 2326 am_missing_run= 2327 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2328echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2329fi 2330 2331{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2332echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2333if test -z "$MKDIR_P"; then 2334 if test "${ac_cv_path_mkdir+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_prog in mkdir gmkdir; do 2343 for ac_exec_ext in '' $ac_executable_extensions; do 2344 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2345 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2346 'mkdir (GNU coreutils) '* | \ 2347 'mkdir (coreutils) '* | \ 2348 'mkdir (fileutils) '4.1*) 2349 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2350 break 3;; 2351 esac 2352 done 2353 done 2354done 2355IFS=$as_save_IFS 2356 2357fi 2358 2359 if test "${ac_cv_path_mkdir+set}" = set; then 2360 MKDIR_P="$ac_cv_path_mkdir -p" 2361 else 2362 # As a last resort, use the slow shell script. Don't cache a 2363 # value for MKDIR_P within a source directory, because that will 2364 # break other packages using the cache if that directory is 2365 # removed, or if the value is a relative name. 2366 test -d ./--version && rmdir ./--version 2367 MKDIR_P="$ac_install_sh -d" 2368 fi 2369fi 2370{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2371echo "${ECHO_T}$MKDIR_P" >&6; } 2372 2373mkdir_p="$MKDIR_P" 2374case $mkdir_p in 2375 [\\/$]* | ?:[\\/]*) ;; 2376 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2377esac 2378 2379for ac_prog in gawk mawk nawk awk 2380do 2381 # Extract the first word of "$ac_prog", so it can be a program name with args. 2382set dummy $ac_prog; ac_word=$2 2383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2385if test "${ac_cv_prog_AWK+set}" = set; then 2386 echo $ECHO_N "(cached) $ECHO_C" >&6 2387else 2388 if test -n "$AWK"; then 2389 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2390else 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2398 ac_cv_prog_AWK="$ac_prog" 2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2400 break 2 2401 fi 2402done 2403done 2404IFS=$as_save_IFS 2405 2406fi 2407fi 2408AWK=$ac_cv_prog_AWK 2409if test -n "$AWK"; then 2410 { echo "$as_me:$LINENO: result: $AWK" >&5 2411echo "${ECHO_T}$AWK" >&6; } 2412else 2413 { echo "$as_me:$LINENO: result: no" >&5 2414echo "${ECHO_T}no" >&6; } 2415fi 2416 2417 2418 test -n "$AWK" && break 2419done 2420 2421{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2422echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2423set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2424if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2425 echo $ECHO_N "(cached) $ECHO_C" >&6 2426else 2427 cat >conftest.make <<\_ACEOF 2428SHELL = /bin/sh 2429all: 2430 @echo '@@@%%%=$(MAKE)=@@@%%%' 2431_ACEOF 2432# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2433case `${MAKE-make} -f conftest.make 2>/dev/null` in 2434 *@@@%%%=?*=@@@%%%*) 2435 eval ac_cv_prog_make_${ac_make}_set=yes;; 2436 *) 2437 eval ac_cv_prog_make_${ac_make}_set=no;; 2438esac 2439rm -f conftest.make 2440fi 2441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2442 { echo "$as_me:$LINENO: result: yes" >&5 2443echo "${ECHO_T}yes" >&6; } 2444 SET_MAKE= 2445else 2446 { echo "$as_me:$LINENO: result: no" >&5 2447echo "${ECHO_T}no" >&6; } 2448 SET_MAKE="MAKE=${MAKE-make}" 2449fi 2450 2451rm -rf .tst 2>/dev/null 2452mkdir .tst 2>/dev/null 2453if test -d .tst; then 2454 am__leading_dot=. 2455else 2456 am__leading_dot=_ 2457fi 2458rmdir .tst 2>/dev/null 2459 2460if test "`cd $srcdir && pwd`" != "`pwd`"; then 2461 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2462 # is not polluted with repeated "-I." 2463 am__isrc=' -I$(srcdir)' 2464 # test to see if srcdir already configured 2465 if test -f $srcdir/config.status; then 2466 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2467echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2468 { (exit 1); exit 1; }; } 2469 fi 2470fi 2471 2472# test whether we have cygpath 2473if test -z "$CYGPATH_W"; then 2474 if (cygpath --version) >/dev/null 2>/dev/null; then 2475 CYGPATH_W='cygpath -w' 2476 else 2477 CYGPATH_W=echo 2478 fi 2479fi 2480 2481 2482# Define the identity of the package. 2483 PACKAGE='heimdal' 2484 VERSION='1.1' 2485 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE "$PACKAGE" 2489_ACEOF 2490 2491 2492cat >>confdefs.h <<_ACEOF 2493#define VERSION "$VERSION" 2494_ACEOF 2495 2496# Some tools Automake needs. 2497 2498ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2499 2500 2501AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2502 2503 2504AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2505 2506 2507AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2508 2509 2510MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2511 2512install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2513 2514# Installed binaries are usually stripped using `strip' when the user 2515# run `make install-strip'. However `strip' might not be the right 2516# tool to use in cross-compilation environments, therefore Automake 2517# will honor the `STRIP' environment variable to overrule this program. 2518if test "$cross_compiling" != no; then 2519 if test -n "$ac_tool_prefix"; then 2520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2521set dummy ${ac_tool_prefix}strip; ac_word=$2 2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2524if test "${ac_cv_prog_STRIP+set}" = set; then 2525 echo $ECHO_N "(cached) $ECHO_C" >&6 2526else 2527 if test -n "$STRIP"; then 2528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547STRIP=$ac_cv_prog_STRIP 2548if test -n "$STRIP"; then 2549 { echo "$as_me:$LINENO: result: $STRIP" >&5 2550echo "${ECHO_T}$STRIP" >&6; } 2551else 2552 { echo "$as_me:$LINENO: result: no" >&5 2553echo "${ECHO_T}no" >&6; } 2554fi 2555 2556 2557fi 2558if test -z "$ac_cv_prog_STRIP"; then 2559 ac_ct_STRIP=$STRIP 2560 # Extract the first word of "strip", so it can be a program name with args. 2561set dummy strip; ac_word=$2 2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2564if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 if test -n "$ac_ct_STRIP"; then 2568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 ac_cv_prog_ac_ct_STRIP="strip" 2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2588if test -n "$ac_ct_STRIP"; then 2589 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2590echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2591else 2592 { echo "$as_me:$LINENO: result: no" >&5 2593echo "${ECHO_T}no" >&6; } 2594fi 2595 2596 if test "x$ac_ct_STRIP" = x; then 2597 STRIP=":" 2598 else 2599 case $cross_compiling:$ac_tool_warned in 2600yes:) 2601{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2602whose name does not start with the host triplet. If you think this 2603configuration is useful to you, please write to autoconf@gnu.org." >&5 2604echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2605whose name does not start with the host triplet. If you think this 2606configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2607ac_tool_warned=yes ;; 2608esac 2609 STRIP=$ac_ct_STRIP 2610 fi 2611else 2612 STRIP="$ac_cv_prog_STRIP" 2613fi 2614 2615fi 2616INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2617 2618# We need awk for the "check" target. The system "awk" is bad on 2619# some platforms. 2620# Always define AMTAR for backward compatibility. 2621 2622AMTAR=${AMTAR-"${am_missing_run}tar"} 2623 2624am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2625 2626 2627 2628 2629 2630{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2631echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2632 # Check whether --enable-maintainer-mode was given. 2633if test "${enable_maintainer_mode+set}" = set; then 2634 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2635else 2636 USE_MAINTAINER_MODE=no 2637fi 2638 2639 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2640echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2641 if test $USE_MAINTAINER_MODE = yes; then 2642 MAINTAINER_MODE_TRUE= 2643 MAINTAINER_MODE_FALSE='#' 2644else 2645 MAINTAINER_MODE_TRUE='#' 2646 MAINTAINER_MODE_FALSE= 2647fi 2648 2649 MAINT=$MAINTAINER_MODE_TRUE 2650 2651 2652 2653ac_ext=c 2654ac_cpp='$CPP $CPPFLAGS' 2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2657ac_compiler_gnu=$ac_cv_c_compiler_gnu 2658if test -n "$ac_tool_prefix"; then 2659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2660set dummy ${ac_tool_prefix}gcc; ac_word=$2 2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2663if test "${ac_cv_prog_CC+set}" = set; then 2664 echo $ECHO_N "(cached) $ECHO_C" >&6 2665else 2666 if test -n "$CC"; then 2667 ac_cv_prog_CC="$CC" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2676 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681done 2682IFS=$as_save_IFS 2683 2684fi 2685fi 2686CC=$ac_cv_prog_CC 2687if test -n "$CC"; then 2688 { echo "$as_me:$LINENO: result: $CC" >&5 2689echo "${ECHO_T}$CC" >&6; } 2690else 2691 { echo "$as_me:$LINENO: result: no" >&5 2692echo "${ECHO_T}no" >&6; } 2693fi 2694 2695 2696fi 2697if test -z "$ac_cv_prog_CC"; then 2698 ac_ct_CC=$CC 2699 # Extract the first word of "gcc", so it can be a program name with args. 2700set dummy gcc; ac_word=$2 2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 if test -n "$ac_ct_CC"; then 2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_ac_ct_CC="gcc" 2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_CC=$ac_cv_prog_ac_ct_CC 2727if test -n "$ac_ct_CC"; then 2728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2729echo "${ECHO_T}$ac_ct_CC" >&6; } 2730else 2731 { echo "$as_me:$LINENO: result: no" >&5 2732echo "${ECHO_T}no" >&6; } 2733fi 2734 2735 if test "x$ac_ct_CC" = x; then 2736 CC="" 2737 else 2738 case $cross_compiling:$ac_tool_warned in 2739yes:) 2740{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2741whose name does not start with the host triplet. If you think this 2742configuration is useful to you, please write to autoconf@gnu.org." >&5 2743echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2744whose name does not start with the host triplet. If you think this 2745configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2746ac_tool_warned=yes ;; 2747esac 2748 CC=$ac_ct_CC 2749 fi 2750else 2751 CC="$ac_cv_prog_CC" 2752fi 2753 2754if test -z "$CC"; then 2755 if test -n "$ac_tool_prefix"; then 2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2757set dummy ${ac_tool_prefix}cc; ac_word=$2 2758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2760if test "${ac_cv_prog_CC+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 if test -n "$CC"; then 2764 ac_cv_prog_CC="$CC" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2773 ac_cv_prog_CC="${ac_tool_prefix}cc" 2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783CC=$ac_cv_prog_CC 2784if test -n "$CC"; then 2785 { echo "$as_me:$LINENO: result: $CC" >&5 2786echo "${ECHO_T}$CC" >&6; } 2787else 2788 { echo "$as_me:$LINENO: result: no" >&5 2789echo "${ECHO_T}no" >&6; } 2790fi 2791 2792 2793 fi 2794fi 2795if test -z "$CC"; then 2796 # Extract the first word of "cc", so it can be a program name with args. 2797set dummy cc; ac_word=$2 2798{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2800if test "${ac_cv_prog_CC+set}" = set; then 2801 echo $ECHO_N "(cached) $ECHO_C" >&6 2802else 2803 if test -n "$CC"; then 2804 ac_cv_prog_CC="$CC" # Let the user override the test. 2805else 2806 ac_prog_rejected=no 2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH 2809do 2810 IFS=$as_save_IFS 2811 test -z "$as_dir" && as_dir=. 2812 for ac_exec_ext in '' $ac_executable_extensions; do 2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2815 ac_prog_rejected=yes 2816 continue 2817 fi 2818 ac_cv_prog_CC="cc" 2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2820 break 2 2821 fi 2822done 2823done 2824IFS=$as_save_IFS 2825 2826if test $ac_prog_rejected = yes; then 2827 # We found a bogon in the path, so make sure we never use it. 2828 set dummy $ac_cv_prog_CC 2829 shift 2830 if test $# != 0; then 2831 # We chose a different compiler from the bogus one. 2832 # However, it has the same basename, so the bogon will be chosen 2833 # first if we set CC to just the basename; use the full file name. 2834 shift 2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2836 fi 2837fi 2838fi 2839fi 2840CC=$ac_cv_prog_CC 2841if test -n "$CC"; then 2842 { echo "$as_me:$LINENO: result: $CC" >&5 2843echo "${ECHO_T}$CC" >&6; } 2844else 2845 { echo "$as_me:$LINENO: result: no" >&5 2846echo "${ECHO_T}no" >&6; } 2847fi 2848 2849 2850fi 2851if test -z "$CC"; then 2852 if test -n "$ac_tool_prefix"; then 2853 for ac_prog in cl.exe 2854 do 2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2856set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2857{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2859if test "${ac_cv_prog_CC+set}" = set; then 2860 echo $ECHO_N "(cached) $ECHO_C" >&6 2861else 2862 if test -n "$CC"; then 2863 ac_cv_prog_CC="$CC" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882CC=$ac_cv_prog_CC 2883if test -n "$CC"; then 2884 { echo "$as_me:$LINENO: result: $CC" >&5 2885echo "${ECHO_T}$CC" >&6; } 2886else 2887 { echo "$as_me:$LINENO: result: no" >&5 2888echo "${ECHO_T}no" >&6; } 2889fi 2890 2891 2892 test -n "$CC" && break 2893 done 2894fi 2895if test -z "$CC"; then 2896 ac_ct_CC=$CC 2897 for ac_prog in cl.exe 2898do 2899 # Extract the first word of "$ac_prog", so it can be a program name with args. 2900set dummy $ac_prog; ac_word=$2 2901{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2903if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2904 echo $ECHO_N "(cached) $ECHO_C" >&6 2905else 2906 if test -n "$ac_ct_CC"; then 2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2916 ac_cv_prog_ac_ct_CC="$ac_prog" 2917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926ac_ct_CC=$ac_cv_prog_ac_ct_CC 2927if test -n "$ac_ct_CC"; then 2928 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2929echo "${ECHO_T}$ac_ct_CC" >&6; } 2930else 2931 { echo "$as_me:$LINENO: result: no" >&5 2932echo "${ECHO_T}no" >&6; } 2933fi 2934 2935 2936 test -n "$ac_ct_CC" && break 2937done 2938 2939 if test "x$ac_ct_CC" = x; then 2940 CC="" 2941 else 2942 case $cross_compiling:$ac_tool_warned in 2943yes:) 2944{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2945whose name does not start with the host triplet. If you think this 2946configuration is useful to you, please write to autoconf@gnu.org." >&5 2947echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2948whose name does not start with the host triplet. If you think this 2949configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2950ac_tool_warned=yes ;; 2951esac 2952 CC=$ac_ct_CC 2953 fi 2954fi 2955 2956fi 2957 2958 2959test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2960See \`config.log' for more details." >&5 2961echo "$as_me: error: no acceptable C compiler found in \$PATH 2962See \`config.log' for more details." >&2;} 2963 { (exit 1); exit 1; }; } 2964 2965# Provide some information about the compiler. 2966echo "$as_me:$LINENO: checking for C compiler version" >&5 2967ac_compiler=`set X $ac_compile; echo $2` 2968{ (ac_try="$ac_compiler --version >&5" 2969case "(($ac_try" in 2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2971 *) ac_try_echo=$ac_try;; 2972esac 2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2974 (eval "$ac_compiler --version >&5") 2>&5 2975 ac_status=$? 2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2977 (exit $ac_status); } 2978{ (ac_try="$ac_compiler -v >&5" 2979case "(($ac_try" in 2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2981 *) ac_try_echo=$ac_try;; 2982esac 2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2984 (eval "$ac_compiler -v >&5") 2>&5 2985 ac_status=$? 2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2987 (exit $ac_status); } 2988{ (ac_try="$ac_compiler -V >&5" 2989case "(($ac_try" in 2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2991 *) ac_try_echo=$ac_try;; 2992esac 2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2994 (eval "$ac_compiler -V >&5") 2>&5 2995 ac_status=$? 2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); } 2998 2999cat >conftest.$ac_ext <<_ACEOF 3000/* confdefs.h. */ 3001_ACEOF 3002cat confdefs.h >>conftest.$ac_ext 3003cat >>conftest.$ac_ext <<_ACEOF 3004/* end confdefs.h. */ 3005 3006int 3007main () 3008{ 3009 3010 ; 3011 return 0; 3012} 3013_ACEOF 3014ac_clean_files_save=$ac_clean_files 3015ac_clean_files="$ac_clean_files a.out a.exe b.out" 3016# Try to create an executable without -o first, disregard a.out. 3017# It will help us diagnose broken compilers, and finding out an intuition 3018# of exeext. 3019{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3020echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3021ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3022# 3023# List of possible output files, starting from the most likely. 3024# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3025# only as a last resort. b.out is created by i960 compilers. 3026ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3027# 3028# The IRIX 6 linker writes into existing files which may not be 3029# executable, retaining their permissions. Remove them first so a 3030# subsequent execution test works. 3031ac_rmfiles= 3032for ac_file in $ac_files 3033do 3034 case $ac_file in 3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3037 esac 3038done 3039rm -f $ac_rmfiles 3040 3041if { (ac_try="$ac_link_default" 3042case "(($ac_try" in 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3044 *) ac_try_echo=$ac_try;; 3045esac 3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3047 (eval "$ac_link_default") 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; then 3051 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3052# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3053# in a Makefile. We should not override ac_cv_exeext if it was cached, 3054# so that the user can short-circuit this test for compilers unknown to 3055# Autoconf. 3056for ac_file in $ac_files '' 3057do 3058 test -f "$ac_file" || continue 3059 case $ac_file in 3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3061 ;; 3062 [ab].out ) 3063 # We found the default executable, but exeext='' is most 3064 # certainly right. 3065 break;; 3066 *.* ) 3067 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3068 then :; else 3069 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3070 fi 3071 # We set ac_cv_exeext here because the later test for it is not 3072 # safe: cross compilers may not add the suffix if given an `-o' 3073 # argument, so we may need to know it at that point already. 3074 # Even if this section looks crufty: it has the advantage of 3075 # actually working. 3076 break;; 3077 * ) 3078 break;; 3079 esac 3080done 3081test "$ac_cv_exeext" = no && ac_cv_exeext= 3082 3083else 3084 ac_file='' 3085fi 3086 3087{ echo "$as_me:$LINENO: result: $ac_file" >&5 3088echo "${ECHO_T}$ac_file" >&6; } 3089if test -z "$ac_file"; then 3090 echo "$as_me: failed program was:" >&5 3091sed 's/^/| /' conftest.$ac_ext >&5 3092 3093{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3094See \`config.log' for more details." >&5 3095echo "$as_me: error: C compiler cannot create executables 3096See \`config.log' for more details." >&2;} 3097 { (exit 77); exit 77; }; } 3098fi 3099 3100ac_exeext=$ac_cv_exeext 3101 3102# Check that the compiler produces executables we can run. If not, either 3103# the compiler is broken, or we cross compile. 3104{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3105echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3106# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3107# If not cross compiling, check that we can run a simple program. 3108if test "$cross_compiling" != yes; then 3109 if { ac_try='./$ac_file' 3110 { (case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3115 (eval "$ac_try") 2>&5 3116 ac_status=$? 3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); }; }; then 3119 cross_compiling=no 3120 else 3121 if test "$cross_compiling" = maybe; then 3122 cross_compiling=yes 3123 else 3124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3125If you meant to cross compile, use \`--host'. 3126See \`config.log' for more details." >&5 3127echo "$as_me: error: cannot run C compiled programs. 3128If you meant to cross compile, use \`--host'. 3129See \`config.log' for more details." >&2;} 3130 { (exit 1); exit 1; }; } 3131 fi 3132 fi 3133fi 3134{ echo "$as_me:$LINENO: result: yes" >&5 3135echo "${ECHO_T}yes" >&6; } 3136 3137rm -f a.out a.exe conftest$ac_cv_exeext b.out 3138ac_clean_files=$ac_clean_files_save 3139# Check that the compiler produces executables we can run. If not, either 3140# the compiler is broken, or we cross compile. 3141{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3142echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3143{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3144echo "${ECHO_T}$cross_compiling" >&6; } 3145 3146{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3147echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3148if { (ac_try="$ac_link" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3154 (eval "$ac_link") 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); }; then 3158 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3159# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3160# work properly (i.e., refer to `conftest.exe'), while it won't with 3161# `rm'. 3162for ac_file in conftest.exe conftest conftest.*; do 3163 test -f "$ac_file" || continue 3164 case $ac_file in 3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3167 break;; 3168 * ) break;; 3169 esac 3170done 3171else 3172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3173See \`config.log' for more details." >&5 3174echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3175See \`config.log' for more details." >&2;} 3176 { (exit 1); exit 1; }; } 3177fi 3178 3179rm -f conftest$ac_cv_exeext 3180{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3181echo "${ECHO_T}$ac_cv_exeext" >&6; } 3182 3183rm -f conftest.$ac_ext 3184EXEEXT=$ac_cv_exeext 3185ac_exeext=$EXEEXT 3186{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3187echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3188if test "${ac_cv_objext+set}" = set; then 3189 echo $ECHO_N "(cached) $ECHO_C" >&6 3190else 3191 cat >conftest.$ac_ext <<_ACEOF 3192/* confdefs.h. */ 3193_ACEOF 3194cat confdefs.h >>conftest.$ac_ext 3195cat >>conftest.$ac_ext <<_ACEOF 3196/* end confdefs.h. */ 3197 3198int 3199main () 3200{ 3201 3202 ; 3203 return 0; 3204} 3205_ACEOF 3206rm -f conftest.o conftest.obj 3207if { (ac_try="$ac_compile" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3213 (eval "$ac_compile") 2>&5 3214 ac_status=$? 3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3216 (exit $ac_status); }; then 3217 for ac_file in conftest.o conftest.obj conftest.*; do 3218 test -f "$ac_file" || continue; 3219 case $ac_file in 3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3221 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3222 break;; 3223 esac 3224done 3225else 3226 echo "$as_me: failed program was:" >&5 3227sed 's/^/| /' conftest.$ac_ext >&5 3228 3229{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3230See \`config.log' for more details." >&5 3231echo "$as_me: error: cannot compute suffix of object files: cannot compile 3232See \`config.log' for more details." >&2;} 3233 { (exit 1); exit 1; }; } 3234fi 3235 3236rm -f conftest.$ac_cv_objext conftest.$ac_ext 3237fi 3238{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3239echo "${ECHO_T}$ac_cv_objext" >&6; } 3240OBJEXT=$ac_cv_objext 3241ac_objext=$OBJEXT 3242{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3243echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3244if test "${ac_cv_c_compiler_gnu+set}" = set; then 3245 echo $ECHO_N "(cached) $ECHO_C" >&6 3246else 3247 cat >conftest.$ac_ext <<_ACEOF 3248/* confdefs.h. */ 3249_ACEOF 3250cat confdefs.h >>conftest.$ac_ext 3251cat >>conftest.$ac_ext <<_ACEOF 3252/* end confdefs.h. */ 3253 3254int 3255main () 3256{ 3257#ifndef __GNUC__ 3258 choke me 3259#endif 3260 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265rm -f conftest.$ac_objext 3266if { (ac_try="$ac_compile" 3267case "(($ac_try" in 3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3269 *) ac_try_echo=$ac_try;; 3270esac 3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3272 (eval "$ac_compile") 2>conftest.er1 3273 ac_status=$? 3274 grep -v '^ *+' conftest.er1 >conftest.err 3275 rm -f conftest.er1 3276 cat conftest.err >&5 3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3278 (exit $ac_status); } && { 3279 test -z "$ac_c_werror_flag" || 3280 test ! -s conftest.err 3281 } && test -s conftest.$ac_objext; then 3282 ac_compiler_gnu=yes 3283else 3284 echo "$as_me: failed program was:" >&5 3285sed 's/^/| /' conftest.$ac_ext >&5 3286 3287 ac_compiler_gnu=no 3288fi 3289 3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3291ac_cv_c_compiler_gnu=$ac_compiler_gnu 3292 3293fi 3294{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3295echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3296GCC=`test $ac_compiler_gnu = yes && echo yes` 3297ac_test_CFLAGS=${CFLAGS+set} 3298ac_save_CFLAGS=$CFLAGS 3299{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3300echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3301if test "${ac_cv_prog_cc_g+set}" = set; then 3302 echo $ECHO_N "(cached) $ECHO_C" >&6 3303else 3304 ac_save_c_werror_flag=$ac_c_werror_flag 3305 ac_c_werror_flag=yes 3306 ac_cv_prog_cc_g=no 3307 CFLAGS="-g" 3308 cat >conftest.$ac_ext <<_ACEOF 3309/* confdefs.h. */ 3310_ACEOF 3311cat confdefs.h >>conftest.$ac_ext 3312cat >>conftest.$ac_ext <<_ACEOF 3313/* end confdefs.h. */ 3314 3315int 3316main () 3317{ 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323rm -f conftest.$ac_objext 3324if { (ac_try="$ac_compile" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3330 (eval "$ac_compile") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } && { 3337 test -z "$ac_c_werror_flag" || 3338 test ! -s conftest.err 3339 } && test -s conftest.$ac_objext; then 3340 ac_cv_prog_cc_g=yes 3341else 3342 echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 CFLAGS="" 3346 cat >conftest.$ac_ext <<_ACEOF 3347/* confdefs.h. */ 3348_ACEOF 3349cat confdefs.h >>conftest.$ac_ext 3350cat >>conftest.$ac_ext <<_ACEOF 3351/* end confdefs.h. */ 3352 3353int 3354main () 3355{ 3356 3357 ; 3358 return 0; 3359} 3360_ACEOF 3361rm -f conftest.$ac_objext 3362if { (ac_try="$ac_compile" 3363case "(($ac_try" in 3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3365 *) ac_try_echo=$ac_try;; 3366esac 3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3368 (eval "$ac_compile") 2>conftest.er1 3369 ac_status=$? 3370 grep -v '^ *+' conftest.er1 >conftest.err 3371 rm -f conftest.er1 3372 cat conftest.err >&5 3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3374 (exit $ac_status); } && { 3375 test -z "$ac_c_werror_flag" || 3376 test ! -s conftest.err 3377 } && test -s conftest.$ac_objext; then 3378 : 3379else 3380 echo "$as_me: failed program was:" >&5 3381sed 's/^/| /' conftest.$ac_ext >&5 3382 3383 ac_c_werror_flag=$ac_save_c_werror_flag 3384 CFLAGS="-g" 3385 cat >conftest.$ac_ext <<_ACEOF 3386/* confdefs.h. */ 3387_ACEOF 3388cat confdefs.h >>conftest.$ac_ext 3389cat >>conftest.$ac_ext <<_ACEOF 3390/* end confdefs.h. */ 3391 3392int 3393main () 3394{ 3395 3396 ; 3397 return 0; 3398} 3399_ACEOF 3400rm -f conftest.$ac_objext 3401if { (ac_try="$ac_compile" 3402case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405esac 3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3407 (eval "$ac_compile") 2>conftest.er1 3408 ac_status=$? 3409 grep -v '^ *+' conftest.er1 >conftest.err 3410 rm -f conftest.er1 3411 cat conftest.err >&5 3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3413 (exit $ac_status); } && { 3414 test -z "$ac_c_werror_flag" || 3415 test ! -s conftest.err 3416 } && test -s conftest.$ac_objext; then 3417 ac_cv_prog_cc_g=yes 3418else 3419 echo "$as_me: failed program was:" >&5 3420sed 's/^/| /' conftest.$ac_ext >&5 3421 3422 3423fi 3424 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426fi 3427 3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429fi 3430 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3432 ac_c_werror_flag=$ac_save_c_werror_flag 3433fi 3434{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3435echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3436if test "$ac_test_CFLAGS" = set; then 3437 CFLAGS=$ac_save_CFLAGS 3438elif test $ac_cv_prog_cc_g = yes; then 3439 if test "$GCC" = yes; then 3440 CFLAGS="-g -O2" 3441 else 3442 CFLAGS="-g" 3443 fi 3444else 3445 if test "$GCC" = yes; then 3446 CFLAGS="-O2" 3447 else 3448 CFLAGS= 3449 fi 3450fi 3451{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3452echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3453if test "${ac_cv_prog_cc_c89+set}" = set; then 3454 echo $ECHO_N "(cached) $ECHO_C" >&6 3455else 3456 ac_cv_prog_cc_c89=no 3457ac_save_CC=$CC 3458cat >conftest.$ac_ext <<_ACEOF 3459/* confdefs.h. */ 3460_ACEOF 3461cat confdefs.h >>conftest.$ac_ext 3462cat >>conftest.$ac_ext <<_ACEOF 3463/* end confdefs.h. */ 3464#include <stdarg.h> 3465#include <stdio.h> 3466#include <sys/types.h> 3467#include <sys/stat.h> 3468/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3469struct buf { int x; }; 3470FILE * (*rcsopen) (struct buf *, struct stat *, int); 3471static char *e (p, i) 3472 char **p; 3473 int i; 3474{ 3475 return p[i]; 3476} 3477static char *f (char * (*g) (char **, int), char **p, ...) 3478{ 3479 char *s; 3480 va_list v; 3481 va_start (v,p); 3482 s = g (p, va_arg (v,int)); 3483 va_end (v); 3484 return s; 3485} 3486 3487/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3488 function prototypes and stuff, but not '\xHH' hex character constants. 3489 These don't provoke an error unfortunately, instead are silently treated 3490 as 'x'. The following induces an error, until -std is added to get 3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3492 array size at least. It's necessary to write '\x00'==0 to get something 3493 that's true only with -std. */ 3494int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3495 3496/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3497 inside strings and character constants. */ 3498#define FOO(x) 'x' 3499int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3500 3501int test (int i, double x); 3502struct s1 {int (*f) (int a);}; 3503struct s2 {int (*f) (double a);}; 3504int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3505int argc; 3506char **argv; 3507int 3508main () 3509{ 3510return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3517do 3518 CC="$ac_save_CC $ac_arg" 3519 rm -f conftest.$ac_objext 3520if { (ac_try="$ac_compile" 3521case "(($ac_try" in 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3523 *) ac_try_echo=$ac_try;; 3524esac 3525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3526 (eval "$ac_compile") 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } && { 3533 test -z "$ac_c_werror_flag" || 3534 test ! -s conftest.err 3535 } && test -s conftest.$ac_objext; then 3536 ac_cv_prog_cc_c89=$ac_arg 3537else 3538 echo "$as_me: failed program was:" >&5 3539sed 's/^/| /' conftest.$ac_ext >&5 3540 3541 3542fi 3543 3544rm -f core conftest.err conftest.$ac_objext 3545 test "x$ac_cv_prog_cc_c89" != "xno" && break 3546done 3547rm -f conftest.$ac_ext 3548CC=$ac_save_CC 3549 3550fi 3551# AC_CACHE_VAL 3552case "x$ac_cv_prog_cc_c89" in 3553 x) 3554 { echo "$as_me:$LINENO: result: none needed" >&5 3555echo "${ECHO_T}none needed" >&6; } ;; 3556 xno) 3557 { echo "$as_me:$LINENO: result: unsupported" >&5 3558echo "${ECHO_T}unsupported" >&6; } ;; 3559 *) 3560 CC="$CC $ac_cv_prog_cc_c89" 3561 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3562echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3563esac 3564 3565 3566ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571 3572if test "x$CC" != xcc; then 3573 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3574echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 3575else 3576 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3577echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 3578fi 3579set dummy $CC; ac_cc=`echo $2 | 3580 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3581if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3582 echo $ECHO_N "(cached) $ECHO_C" >&6 3583else 3584 cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590 3591int 3592main () 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599# Make sure it works both with $CC and with simple cc. 3600# We do the test twice because some compilers refuse to overwrite an 3601# existing .o file with -o, though they will create one. 3602ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3603rm -f conftest2.* 3604if { (case "(($ac_try" in 3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3606 *) ac_try_echo=$ac_try;; 3607esac 3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3609 (eval "$ac_try") 2>&5 3610 ac_status=$? 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3612 (exit $ac_status); } && 3613 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3615 *) ac_try_echo=$ac_try;; 3616esac 3617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3618 (eval "$ac_try") 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); }; 3622then 3623 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3624 if test "x$CC" != xcc; then 3625 # Test first that cc exists at all. 3626 if { ac_try='cc -c conftest.$ac_ext >&5' 3627 { (case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630esac 3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3632 (eval "$ac_try") 2>&5 3633 ac_status=$? 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); }; }; then 3636 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3637 rm -f conftest2.* 3638 if { (case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3643 (eval "$ac_try") 2>&5 3644 ac_status=$? 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); } && 3647 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650esac 3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3652 (eval "$ac_try") 2>&5 3653 ac_status=$? 3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 (exit $ac_status); }; 3656 then 3657 # cc works too. 3658 : 3659 else 3660 # cc exists but doesn't like -o. 3661 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3662 fi 3663 fi 3664 fi 3665else 3666 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3667fi 3668rm -f core conftest* 3669 3670fi 3671if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3672 { echo "$as_me:$LINENO: result: yes" >&5 3673echo "${ECHO_T}yes" >&6; } 3674else 3675 { echo "$as_me:$LINENO: result: no" >&5 3676echo "${ECHO_T}no" >&6; } 3677 3678cat >>confdefs.h <<\_ACEOF 3679#define NO_MINUS_C_MINUS_O 1 3680_ACEOF 3681 3682fi 3683 3684# FIXME: we rely on the cache variable name because 3685# there is no other way. 3686set dummy $CC 3687ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3688if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3689 # Losing compiler, so override with the script. 3690 # FIXME: It is wrong to rewrite CC. 3691 # But if we don't then we get into trouble of one sort or another. 3692 # A longer-term fix would be to have automake use am__CC in this case, 3693 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3694 CC="$am_aux_dir/compile $CC" 3695fi 3696 3697 3698ac_ext=c 3699ac_cpp='$CPP $CPPFLAGS' 3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3702ac_compiler_gnu=$ac_cv_c_compiler_gnu 3703{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3704echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3705# On Suns, sometimes $CPP names a directory. 3706if test -n "$CPP" && test -d "$CPP"; then 3707 CPP= 3708fi 3709if test -z "$CPP"; then 3710 if test "${ac_cv_prog_CPP+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712else 3713 # Double quotes because CPP needs to be expanded 3714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3715 do 3716 ac_preproc_ok=false 3717for ac_c_preproc_warn_flag in '' yes 3718do 3719 # Use a header file that comes with gcc, so configuring glibc 3720 # with a fresh cross-compiler works. 3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3722 # <limits.h> exists even on freestanding compilers. 3723 # On the NeXT, cc -E runs the code through the compiler's parser, 3724 # not just through cpp. "Syntax error" is here to catch this case. 3725 cat >conftest.$ac_ext <<_ACEOF 3726/* confdefs.h. */ 3727_ACEOF 3728cat confdefs.h >>conftest.$ac_ext 3729cat >>conftest.$ac_ext <<_ACEOF 3730/* end confdefs.h. */ 3731#ifdef __STDC__ 3732# include <limits.h> 3733#else 3734# include <assert.h> 3735#endif 3736 Syntax error 3737_ACEOF 3738if { (ac_try="$ac_cpp conftest.$ac_ext" 3739case "(($ac_try" in 3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3741 *) ac_try_echo=$ac_try;; 3742esac 3743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3745 ac_status=$? 3746 grep -v '^ *+' conftest.er1 >conftest.err 3747 rm -f conftest.er1 3748 cat conftest.err >&5 3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3750 (exit $ac_status); } >/dev/null && { 3751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3752 test ! -s conftest.err 3753 }; then 3754 : 3755else 3756 echo "$as_me: failed program was:" >&5 3757sed 's/^/| /' conftest.$ac_ext >&5 3758 3759 # Broken: fails on valid input. 3760continue 3761fi 3762 3763rm -f conftest.err conftest.$ac_ext 3764 3765 # OK, works on sane cases. Now check whether nonexistent headers 3766 # can be detected and how. 3767 cat >conftest.$ac_ext <<_ACEOF 3768/* confdefs.h. */ 3769_ACEOF 3770cat confdefs.h >>conftest.$ac_ext 3771cat >>conftest.$ac_ext <<_ACEOF 3772/* end confdefs.h. */ 3773#include <ac_nonexistent.h> 3774_ACEOF 3775if { (ac_try="$ac_cpp conftest.$ac_ext" 3776case "(($ac_try" in 3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3778 *) ac_try_echo=$ac_try;; 3779esac 3780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3782 ac_status=$? 3783 grep -v '^ *+' conftest.er1 >conftest.err 3784 rm -f conftest.er1 3785 cat conftest.err >&5 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); } >/dev/null && { 3788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3789 test ! -s conftest.err 3790 }; then 3791 # Broken: success on invalid input. 3792continue 3793else 3794 echo "$as_me: failed program was:" >&5 3795sed 's/^/| /' conftest.$ac_ext >&5 3796 3797 # Passes both tests. 3798ac_preproc_ok=: 3799break 3800fi 3801 3802rm -f conftest.err conftest.$ac_ext 3803 3804done 3805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3806rm -f conftest.err conftest.$ac_ext 3807if $ac_preproc_ok; then 3808 break 3809fi 3810 3811 done 3812 ac_cv_prog_CPP=$CPP 3813 3814fi 3815 CPP=$ac_cv_prog_CPP 3816else 3817 ac_cv_prog_CPP=$CPP 3818fi 3819{ echo "$as_me:$LINENO: result: $CPP" >&5 3820echo "${ECHO_T}$CPP" >&6; } 3821ac_preproc_ok=false 3822for ac_c_preproc_warn_flag in '' yes 3823do 3824 # Use a header file that comes with gcc, so configuring glibc 3825 # with a fresh cross-compiler works. 3826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3827 # <limits.h> exists even on freestanding compilers. 3828 # On the NeXT, cc -E runs the code through the compiler's parser, 3829 # not just through cpp. "Syntax error" is here to catch this case. 3830 cat >conftest.$ac_ext <<_ACEOF 3831/* confdefs.h. */ 3832_ACEOF 3833cat confdefs.h >>conftest.$ac_ext 3834cat >>conftest.$ac_ext <<_ACEOF 3835/* end confdefs.h. */ 3836#ifdef __STDC__ 3837# include <limits.h> 3838#else 3839# include <assert.h> 3840#endif 3841 Syntax error 3842_ACEOF 3843if { (ac_try="$ac_cpp conftest.$ac_ext" 3844case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3850 ac_status=$? 3851 grep -v '^ *+' conftest.er1 >conftest.err 3852 rm -f conftest.er1 3853 cat conftest.err >&5 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 (exit $ac_status); } >/dev/null && { 3856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3857 test ! -s conftest.err 3858 }; then 3859 : 3860else 3861 echo "$as_me: failed program was:" >&5 3862sed 's/^/| /' conftest.$ac_ext >&5 3863 3864 # Broken: fails on valid input. 3865continue 3866fi 3867 3868rm -f conftest.err conftest.$ac_ext 3869 3870 # OK, works on sane cases. Now check whether nonexistent headers 3871 # can be detected and how. 3872 cat >conftest.$ac_ext <<_ACEOF 3873/* confdefs.h. */ 3874_ACEOF 3875cat confdefs.h >>conftest.$ac_ext 3876cat >>conftest.$ac_ext <<_ACEOF 3877/* end confdefs.h. */ 3878#include <ac_nonexistent.h> 3879_ACEOF 3880if { (ac_try="$ac_cpp conftest.$ac_ext" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3887 ac_status=$? 3888 grep -v '^ *+' conftest.er1 >conftest.err 3889 rm -f conftest.er1 3890 cat conftest.err >&5 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); } >/dev/null && { 3893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3894 test ! -s conftest.err 3895 }; then 3896 # Broken: success on invalid input. 3897continue 3898else 3899 echo "$as_me: failed program was:" >&5 3900sed 's/^/| /' conftest.$ac_ext >&5 3901 3902 # Passes both tests. 3903ac_preproc_ok=: 3904break 3905fi 3906 3907rm -f conftest.err conftest.$ac_ext 3908 3909done 3910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3911rm -f conftest.err conftest.$ac_ext 3912if $ac_preproc_ok; then 3913 : 3914else 3915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3916See \`config.log' for more details." >&5 3917echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3918See \`config.log' for more details." >&2;} 3919 { (exit 1); exit 1; }; } 3920fi 3921 3922ac_ext=c 3923ac_cpp='$CPP $CPPFLAGS' 3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3926ac_compiler_gnu=$ac_cv_c_compiler_gnu 3927 3928 3929 3930 3931test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 3932test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 3933 3934# Make sure we can run config.sub. 3935$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3936 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3937echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3938 { (exit 1); exit 1; }; } 3939 3940{ echo "$as_me:$LINENO: checking build system type" >&5 3941echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3942if test "${ac_cv_build+set}" = set; then 3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3944else 3945 ac_build_alias=$build_alias 3946test "x$ac_build_alias" = x && 3947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3948test "x$ac_build_alias" = x && 3949 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3950echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3951 { (exit 1); exit 1; }; } 3952ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3953 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3954echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3955 { (exit 1); exit 1; }; } 3956 3957fi 3958{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3959echo "${ECHO_T}$ac_cv_build" >&6; } 3960case $ac_cv_build in 3961*-*-*) ;; 3962*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3963echo "$as_me: error: invalid value of canonical build" >&2;} 3964 { (exit 1); exit 1; }; };; 3965esac 3966build=$ac_cv_build 3967ac_save_IFS=$IFS; IFS='-' 3968set x $ac_cv_build 3969shift 3970build_cpu=$1 3971build_vendor=$2 3972shift; shift 3973# Remember, the first character of IFS is used to create $*, 3974# except with old shells: 3975build_os=$* 3976IFS=$ac_save_IFS 3977case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3978 3979 3980{ echo "$as_me:$LINENO: checking host system type" >&5 3981echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3982if test "${ac_cv_host+set}" = set; then 3983 echo $ECHO_N "(cached) $ECHO_C" >&6 3984else 3985 if test "x$host_alias" = x; then 3986 ac_cv_host=$ac_cv_build 3987else 3988 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3989 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3990echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3991 { (exit 1); exit 1; }; } 3992fi 3993 3994fi 3995{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3996echo "${ECHO_T}$ac_cv_host" >&6; } 3997case $ac_cv_host in 3998*-*-*) ;; 3999*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4000echo "$as_me: error: invalid value of canonical host" >&2;} 4001 { (exit 1); exit 1; }; };; 4002esac 4003host=$ac_cv_host 4004ac_save_IFS=$IFS; IFS='-' 4005set x $ac_cv_host 4006shift 4007host_cpu=$1 4008host_vendor=$2 4009shift; shift 4010# Remember, the first character of IFS is used to create $*, 4011# except with old shells: 4012host_os=$* 4013IFS=$ac_save_IFS 4014case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4015 4016 4017CANONICAL_HOST=$host 4018 4019 4020 4021 4022 4023 4024 { echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5 4025echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;} 4026 { echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5 4027echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;} 4028 hostname=`hostname` 4029 if test "$hostname"; then 4030 { echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5 4031echo "$as_me: autobuild hostname... $hostname" >&6;} 4032 fi 4033 4034 date=`date +%Y%m%d-%H%M%S` 4035 if test "$?" != 0; then 4036 date=`date` 4037 fi 4038 if test "$date"; then 4039 { echo "$as_me:$LINENO: autobuild timestamp... $date" >&5 4040echo "$as_me: autobuild timestamp... $date" >&6;} 4041 fi 4042 4043 4044 4045# Check whether --enable-largefile was given. 4046if test "${enable_largefile+set}" = set; then 4047 enableval=$enable_largefile; 4048fi 4049 4050if test "$enable_largefile" != no; then 4051 4052 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4053echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 4054if test "${ac_cv_sys_largefile_CC+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 ac_cv_sys_largefile_CC=no 4058 if test "$GCC" != yes; then 4059 ac_save_CC=$CC 4060 while :; do 4061 # IRIX 6.2 and later do not support large files by default, 4062 # so use the C compiler's -n32 option if that helps. 4063 cat >conftest.$ac_ext <<_ACEOF 4064/* confdefs.h. */ 4065_ACEOF 4066cat confdefs.h >>conftest.$ac_ext 4067cat >>conftest.$ac_ext <<_ACEOF 4068/* end confdefs.h. */ 4069#include <sys/types.h> 4070 /* Check that off_t can represent 2**63 - 1 correctly. 4071 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4072 since some C++ compilers masquerading as C compilers 4073 incorrectly reject 9223372036854775807. */ 4074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4076 && LARGE_OFF_T % 2147483647 == 1) 4077 ? 1 : -1]; 4078int 4079main () 4080{ 4081 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086 rm -f conftest.$ac_objext 4087if { (ac_try="$ac_compile" 4088case "(($ac_try" in 4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4090 *) ac_try_echo=$ac_try;; 4091esac 4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4093 (eval "$ac_compile") 2>conftest.er1 4094 ac_status=$? 4095 grep -v '^ *+' conftest.er1 >conftest.err 4096 rm -f conftest.er1 4097 cat conftest.err >&5 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); } && { 4100 test -z "$ac_c_werror_flag" || 4101 test ! -s conftest.err 4102 } && test -s conftest.$ac_objext; then 4103 break 4104else 4105 echo "$as_me: failed program was:" >&5 4106sed 's/^/| /' conftest.$ac_ext >&5 4107 4108 4109fi 4110 4111rm -f core conftest.err conftest.$ac_objext 4112 CC="$CC -n32" 4113 rm -f conftest.$ac_objext 4114if { (ac_try="$ac_compile" 4115case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118esac 4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4120 (eval "$ac_compile") 2>conftest.er1 4121 ac_status=$? 4122 grep -v '^ *+' conftest.er1 >conftest.err 4123 rm -f conftest.er1 4124 cat conftest.err >&5 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); } && { 4127 test -z "$ac_c_werror_flag" || 4128 test ! -s conftest.err 4129 } && test -s conftest.$ac_objext; then 4130 ac_cv_sys_largefile_CC=' -n32'; break 4131else 4132 echo "$as_me: failed program was:" >&5 4133sed 's/^/| /' conftest.$ac_ext >&5 4134 4135 4136fi 4137 4138rm -f core conftest.err conftest.$ac_objext 4139 break 4140 done 4141 CC=$ac_save_CC 4142 rm -f conftest.$ac_ext 4143 fi 4144fi 4145{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 4146echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 4147 if test "$ac_cv_sys_largefile_CC" != no; then 4148 CC=$CC$ac_cv_sys_largefile_CC 4149 fi 4150 4151 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4152echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 4153if test "${ac_cv_sys_file_offset_bits+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155else 4156 while :; do 4157 cat >conftest.$ac_ext <<_ACEOF 4158/* confdefs.h. */ 4159_ACEOF 4160cat confdefs.h >>conftest.$ac_ext 4161cat >>conftest.$ac_ext <<_ACEOF 4162/* end confdefs.h. */ 4163#include <sys/types.h> 4164 /* Check that off_t can represent 2**63 - 1 correctly. 4165 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4166 since some C++ compilers masquerading as C compilers 4167 incorrectly reject 9223372036854775807. */ 4168#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4170 && LARGE_OFF_T % 2147483647 == 1) 4171 ? 1 : -1]; 4172int 4173main () 4174{ 4175 4176 ; 4177 return 0; 4178} 4179_ACEOF 4180rm -f conftest.$ac_objext 4181if { (ac_try="$ac_compile" 4182case "(($ac_try" in 4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4184 *) ac_try_echo=$ac_try;; 4185esac 4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4187 (eval "$ac_compile") 2>conftest.er1 4188 ac_status=$? 4189 grep -v '^ *+' conftest.er1 >conftest.err 4190 rm -f conftest.er1 4191 cat conftest.err >&5 4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193 (exit $ac_status); } && { 4194 test -z "$ac_c_werror_flag" || 4195 test ! -s conftest.err 4196 } && test -s conftest.$ac_objext; then 4197 ac_cv_sys_file_offset_bits=no; break 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202 4203fi 4204 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4206 cat >conftest.$ac_ext <<_ACEOF 4207/* confdefs.h. */ 4208_ACEOF 4209cat confdefs.h >>conftest.$ac_ext 4210cat >>conftest.$ac_ext <<_ACEOF 4211/* end confdefs.h. */ 4212#define _FILE_OFFSET_BITS 64 4213#include <sys/types.h> 4214 /* Check that off_t can represent 2**63 - 1 correctly. 4215 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4216 since some C++ compilers masquerading as C compilers 4217 incorrectly reject 9223372036854775807. */ 4218#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4220 && LARGE_OFF_T % 2147483647 == 1) 4221 ? 1 : -1]; 4222int 4223main () 4224{ 4225 4226 ; 4227 return 0; 4228} 4229_ACEOF 4230rm -f conftest.$ac_objext 4231if { (ac_try="$ac_compile" 4232case "(($ac_try" in 4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4234 *) ac_try_echo=$ac_try;; 4235esac 4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4237 (eval "$ac_compile") 2>conftest.er1 4238 ac_status=$? 4239 grep -v '^ *+' conftest.er1 >conftest.err 4240 rm -f conftest.er1 4241 cat conftest.err >&5 4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 (exit $ac_status); } && { 4244 test -z "$ac_c_werror_flag" || 4245 test ! -s conftest.err 4246 } && test -s conftest.$ac_objext; then 4247 ac_cv_sys_file_offset_bits=64; break 4248else 4249 echo "$as_me: failed program was:" >&5 4250sed 's/^/| /' conftest.$ac_ext >&5 4251 4252 4253fi 4254 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256 ac_cv_sys_file_offset_bits=unknown 4257 break 4258done 4259fi 4260{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 4261echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 4262case $ac_cv_sys_file_offset_bits in #( 4263 no | unknown) ;; 4264 *) 4265cat >>confdefs.h <<_ACEOF 4266#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4267_ACEOF 4268;; 4269esac 4270rm -f conftest* 4271 if test $ac_cv_sys_file_offset_bits = unknown; then 4272 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 4273echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 4274if test "${ac_cv_sys_large_files+set}" = set; then 4275 echo $ECHO_N "(cached) $ECHO_C" >&6 4276else 4277 while :; do 4278 cat >conftest.$ac_ext <<_ACEOF 4279/* confdefs.h. */ 4280_ACEOF 4281cat confdefs.h >>conftest.$ac_ext 4282cat >>conftest.$ac_ext <<_ACEOF 4283/* end confdefs.h. */ 4284#include <sys/types.h> 4285 /* Check that off_t can represent 2**63 - 1 correctly. 4286 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4287 since some C++ compilers masquerading as C compilers 4288 incorrectly reject 9223372036854775807. */ 4289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4291 && LARGE_OFF_T % 2147483647 == 1) 4292 ? 1 : -1]; 4293int 4294main () 4295{ 4296 4297 ; 4298 return 0; 4299} 4300_ACEOF 4301rm -f conftest.$ac_objext 4302if { (ac_try="$ac_compile" 4303case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4308 (eval "$ac_compile") 2>conftest.er1 4309 ac_status=$? 4310 grep -v '^ *+' conftest.er1 >conftest.err 4311 rm -f conftest.er1 4312 cat conftest.err >&5 4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4314 (exit $ac_status); } && { 4315 test -z "$ac_c_werror_flag" || 4316 test ! -s conftest.err 4317 } && test -s conftest.$ac_objext; then 4318 ac_cv_sys_large_files=no; break 4319else 4320 echo "$as_me: failed program was:" >&5 4321sed 's/^/| /' conftest.$ac_ext >&5 4322 4323 4324fi 4325 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327 cat >conftest.$ac_ext <<_ACEOF 4328/* confdefs.h. */ 4329_ACEOF 4330cat confdefs.h >>conftest.$ac_ext 4331cat >>conftest.$ac_ext <<_ACEOF 4332/* end confdefs.h. */ 4333#define _LARGE_FILES 1 4334#include <sys/types.h> 4335 /* Check that off_t can represent 2**63 - 1 correctly. 4336 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4337 since some C++ compilers masquerading as C compilers 4338 incorrectly reject 9223372036854775807. */ 4339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4341 && LARGE_OFF_T % 2147483647 == 1) 4342 ? 1 : -1]; 4343int 4344main () 4345{ 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351rm -f conftest.$ac_objext 4352if { (ac_try="$ac_compile" 4353case "(($ac_try" in 4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4355 *) ac_try_echo=$ac_try;; 4356esac 4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4358 (eval "$ac_compile") 2>conftest.er1 4359 ac_status=$? 4360 grep -v '^ *+' conftest.er1 >conftest.err 4361 rm -f conftest.er1 4362 cat conftest.err >&5 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); } && { 4365 test -z "$ac_c_werror_flag" || 4366 test ! -s conftest.err 4367 } && test -s conftest.$ac_objext; then 4368 ac_cv_sys_large_files=1; break 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373 4374fi 4375 4376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4377 ac_cv_sys_large_files=unknown 4378 break 4379done 4380fi 4381{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 4382echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 4383case $ac_cv_sys_large_files in #( 4384 no | unknown) ;; 4385 *) 4386cat >>confdefs.h <<_ACEOF 4387#define _LARGE_FILES $ac_cv_sys_large_files 4388_ACEOF 4389;; 4390esac 4391rm -f conftest* 4392 fi 4393fi 4394 4395 4396if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 4397 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 4398fi 4399if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then 4400 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 4401fi 4402 4403 4404 4405cat >>confdefs.h <<\_ACEOF 4406#define _GNU_SOURCE 1 4407_ACEOF 4408 4409 4410 4411 4412 4413for ac_prog in 'bison -y' byacc 4414do 4415 # Extract the first word of "$ac_prog", so it can be a program name with args. 4416set dummy $ac_prog; ac_word=$2 4417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4419if test "${ac_cv_prog_YACC+set}" = set; then 4420 echo $ECHO_N "(cached) $ECHO_C" >&6 4421else 4422 if test -n "$YACC"; then 4423 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4424else 4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_prog_YACC="$ac_prog" 4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436done 4437done 4438IFS=$as_save_IFS 4439 4440fi 4441fi 4442YACC=$ac_cv_prog_YACC 4443if test -n "$YACC"; then 4444 { echo "$as_me:$LINENO: result: $YACC" >&5 4445echo "${ECHO_T}$YACC" >&6; } 4446else 4447 { echo "$as_me:$LINENO: result: no" >&5 4448echo "${ECHO_T}no" >&6; } 4449fi 4450 4451 4452 test -n "$YACC" && break 4453done 4454test -n "$YACC" || YACC="yacc" 4455 4456for ac_prog in flex lex 4457do 4458 # Extract the first word of "$ac_prog", so it can be a program name with args. 4459set dummy $ac_prog; ac_word=$2 4460{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4462if test "${ac_cv_prog_LEX+set}" = set; then 4463 echo $ECHO_N "(cached) $ECHO_C" >&6 4464else 4465 if test -n "$LEX"; then 4466 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4467else 4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4475 ac_cv_prog_LEX="$ac_prog" 4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480done 4481IFS=$as_save_IFS 4482 4483fi 4484fi 4485LEX=$ac_cv_prog_LEX 4486if test -n "$LEX"; then 4487 { echo "$as_me:$LINENO: result: $LEX" >&5 4488echo "${ECHO_T}$LEX" >&6; } 4489else 4490 { echo "$as_me:$LINENO: result: no" >&5 4491echo "${ECHO_T}no" >&6; } 4492fi 4493 4494 4495 test -n "$LEX" && break 4496done 4497test -n "$LEX" || LEX=":" 4498 4499if test "x$LEX" != "x:"; then 4500 cat >conftest.l <<_ACEOF 4501%% 4502a { ECHO; } 4503b { REJECT; } 4504c { yymore (); } 4505d { yyless (1); } 4506e { yyless (input () != 0); } 4507f { unput (yytext[0]); } 4508. { BEGIN INITIAL; } 4509%% 4510#ifdef YYTEXT_POINTER 4511extern char *yytext; 4512#endif 4513int 4514main (void) 4515{ 4516 return ! yylex () + ! yywrap (); 4517} 4518_ACEOF 4519{ (ac_try="$LEX conftest.l" 4520case "(($ac_try" in 4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4522 *) ac_try_echo=$ac_try;; 4523esac 4524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4525 (eval "$LEX conftest.l") 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); } 4529{ echo "$as_me:$LINENO: checking lex output file root" >&5 4530echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } 4531if test "${ac_cv_prog_lex_root+set}" = set; then 4532 echo $ECHO_N "(cached) $ECHO_C" >&6 4533else 4534 4535if test -f lex.yy.c; then 4536 ac_cv_prog_lex_root=lex.yy 4537elif test -f lexyy.c; then 4538 ac_cv_prog_lex_root=lexyy 4539else 4540 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 4541echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 4542 { (exit 1); exit 1; }; } 4543fi 4544fi 4545{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 4546echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } 4547LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4548 4549if test -z "${LEXLIB+set}"; then 4550 { echo "$as_me:$LINENO: checking lex library" >&5 4551echo $ECHO_N "checking lex library... $ECHO_C" >&6; } 4552if test "${ac_cv_lib_lex+set}" = set; then 4553 echo $ECHO_N "(cached) $ECHO_C" >&6 4554else 4555 4556 ac_save_LIBS=$LIBS 4557 ac_cv_lib_lex='none needed' 4558 for ac_lib in '' -lfl -ll; do 4559 LIBS="$ac_lib $ac_save_LIBS" 4560 cat >conftest.$ac_ext <<_ACEOF 4561`cat $LEX_OUTPUT_ROOT.c` 4562_ACEOF 4563rm -f conftest.$ac_objext conftest$ac_exeext 4564if { (ac_try="$ac_link" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_link") 2>conftest.er1 4571 ac_status=$? 4572 grep -v '^ *+' conftest.er1 >conftest.err 4573 rm -f conftest.er1 4574 cat conftest.err >&5 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); } && { 4577 test -z "$ac_c_werror_flag" || 4578 test ! -s conftest.err 4579 } && test -s conftest$ac_exeext && 4580 $as_test_x conftest$ac_exeext; then 4581 ac_cv_lib_lex=$ac_lib 4582else 4583 echo "$as_me: failed program was:" >&5 4584sed 's/^/| /' conftest.$ac_ext >&5 4585 4586 4587fi 4588 4589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4590 conftest$ac_exeext conftest.$ac_ext 4591 test "$ac_cv_lib_lex" != 'none needed' && break 4592 done 4593 LIBS=$ac_save_LIBS 4594 4595fi 4596{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 4597echo "${ECHO_T}$ac_cv_lib_lex" >&6; } 4598 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4599fi 4600 4601 4602{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 4603echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } 4604if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606else 4607 # POSIX says lex can declare yytext either as a pointer or an array; the 4608# default is implementation-dependent. Figure out which it is, since 4609# not all implementations provide the %pointer and %array declarations. 4610ac_cv_prog_lex_yytext_pointer=no 4611ac_save_LIBS=$LIBS 4612LIBS="$LEXLIB $ac_save_LIBS" 4613cat >conftest.$ac_ext <<_ACEOF 4614#define YYTEXT_POINTER 1 4615`cat $LEX_OUTPUT_ROOT.c` 4616_ACEOF 4617rm -f conftest.$ac_objext conftest$ac_exeext 4618if { (ac_try="$ac_link" 4619case "(($ac_try" in 4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 *) ac_try_echo=$ac_try;; 4622esac 4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4624 (eval "$ac_link") 2>conftest.er1 4625 ac_status=$? 4626 grep -v '^ *+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } && { 4631 test -z "$ac_c_werror_flag" || 4632 test ! -s conftest.err 4633 } && test -s conftest$ac_exeext && 4634 $as_test_x conftest$ac_exeext; then 4635 ac_cv_prog_lex_yytext_pointer=yes 4636else 4637 echo "$as_me: failed program was:" >&5 4638sed 's/^/| /' conftest.$ac_ext >&5 4639 4640 4641fi 4642 4643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4644 conftest$ac_exeext conftest.$ac_ext 4645LIBS=$ac_save_LIBS 4646 4647fi 4648{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 4649echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } 4650if test $ac_cv_prog_lex_yytext_pointer = yes; then 4651 4652cat >>confdefs.h <<\_ACEOF 4653#define YYTEXT_POINTER 1 4654_ACEOF 4655 4656fi 4657rm -f conftest.l $LEX_OUTPUT_ROOT.c 4658 4659fi 4660if test "$LEX" = :; then 4661 LEX=${am_missing_run}flex 4662fi 4663for ac_prog in gawk mawk nawk awk 4664do 4665 # Extract the first word of "$ac_prog", so it can be a program name with args. 4666set dummy $ac_prog; ac_word=$2 4667{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4669if test "${ac_cv_prog_AWK+set}" = set; then 4670 echo $ECHO_N "(cached) $ECHO_C" >&6 4671else 4672 if test -n "$AWK"; then 4673 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4674else 4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676for as_dir in $PATH 4677do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4682 ac_cv_prog_AWK="$ac_prog" 4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4684 break 2 4685 fi 4686done 4687done 4688IFS=$as_save_IFS 4689 4690fi 4691fi 4692AWK=$ac_cv_prog_AWK 4693if test -n "$AWK"; then 4694 { echo "$as_me:$LINENO: result: $AWK" >&5 4695echo "${ECHO_T}$AWK" >&6; } 4696else 4697 { echo "$as_me:$LINENO: result: no" >&5 4698echo "${ECHO_T}no" >&6; } 4699fi 4700 4701 4702 test -n "$AWK" && break 4703done 4704 4705{ echo "$as_me:$LINENO: checking for ln -s or something else" >&5 4706echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6; } 4707if test "${ac_cv_prog_LN_S+set}" = set; then 4708 echo $ECHO_N "(cached) $ECHO_C" >&6 4709else 4710 rm -f conftestdata 4711if ln -s X conftestdata 2>/dev/null 4712then 4713 rm -f conftestdata 4714 ac_cv_prog_LN_S="ln -s" 4715else 4716 touch conftestdata1 4717 if ln conftestdata1 conftestdata2; then 4718 rm -f conftestdata* 4719 ac_cv_prog_LN_S=ln 4720 else 4721 ac_cv_prog_LN_S=cp 4722 fi 4723fi 4724fi 4725LN_S="$ac_cv_prog_LN_S" 4726{ echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5 4727echo "${ECHO_T}$ac_cv_prog_LN_S" >&6; } 4728 4729 4730 4731 4732# Check whether --with-mips_abi was given. 4733if test "${with_mips_abi+set}" = set; then 4734 withval=$with_mips_abi; 4735fi 4736 4737 4738case "$host_os" in 4739irix*) 4740with_mips_abi="${with_mips_abi:-yes}" 4741if test -n "$GCC"; then 4742 4743# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 4744# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 4745# 4746# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 4747# GCC and revert back to O32. The same goes if O32 is asked for - old 4748# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 4749# 4750# Don't you just love *all* the different SGI ABIs? 4751 4752case "${with_mips_abi}" in 4753 32|o32) abi='-mabi=32'; abilibdirext='' ;; 4754 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 4755 64) abi='-mabi=64'; abilibdirext='64' ;; 4756 no) abi=''; abilibdirext='';; 4757 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 4758echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 4759 { (exit 1); exit 1; }; } ;; 4760esac 4761if test -n "$abi" ; then 4762ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 4763{ echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5 4764echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6; } 4765if { as_var=$ac_foo; eval "test \"\${$as_var+set}\" = set"; }; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767else 4768 4769save_CFLAGS="$CFLAGS" 4770CFLAGS="$CFLAGS $abi" 4771cat >conftest.$ac_ext <<_ACEOF 4772/* confdefs.h. */ 4773_ACEOF 4774cat confdefs.h >>conftest.$ac_ext 4775cat >>conftest.$ac_ext <<_ACEOF 4776/* end confdefs.h. */ 4777 4778int 4779main () 4780{ 4781int x; 4782 ; 4783 return 0; 4784} 4785_ACEOF 4786rm -f conftest.$ac_objext 4787if { (ac_try="$ac_compile" 4788case "(($ac_try" in 4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4790 *) ac_try_echo=$ac_try;; 4791esac 4792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4793 (eval "$ac_compile") 2>conftest.er1 4794 ac_status=$? 4795 grep -v '^ *+' conftest.er1 >conftest.err 4796 rm -f conftest.er1 4797 cat conftest.err >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4799 (exit $ac_status); } && { 4800 test -z "$ac_c_werror_flag" || 4801 test ! -s conftest.err 4802 } && test -s conftest.$ac_objext; then 4803 eval $ac_foo=yes 4804else 4805 echo "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808 eval $ac_foo=no 4809fi 4810 4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_extCFLAGS="$save_CFLAGS" 4812 4813fi 4814 4815ac_res=`eval echo \\\$$ac_foo` 4816{ echo "$as_me:$LINENO: result: $ac_res" >&5 4817echo "${ECHO_T}$ac_res" >&6; } 4818if test $ac_res = no; then 4819# Try to figure out why that failed... 4820case $abi in 4821 -mabi=32) 4822 save_CFLAGS="$CFLAGS" 4823 CFLAGS="$CFLAGS -mabi=n32" 4824 cat >conftest.$ac_ext <<_ACEOF 4825/* confdefs.h. */ 4826_ACEOF 4827cat confdefs.h >>conftest.$ac_ext 4828cat >>conftest.$ac_ext <<_ACEOF 4829/* end confdefs.h. */ 4830 4831int 4832main () 4833{ 4834int x; 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (ac_try="$ac_compile" 4841case "(($ac_try" in 4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4843 *) ac_try_echo=$ac_try;; 4844esac 4845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4846 (eval "$ac_compile") 2>conftest.er1 4847 ac_status=$? 4848 grep -v '^ *+' conftest.er1 >conftest.err 4849 rm -f conftest.er1 4850 cat conftest.err >&5 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); } && { 4853 test -z "$ac_c_werror_flag" || 4854 test ! -s conftest.err 4855 } && test -s conftest.$ac_objext; then 4856 ac_res=yes 4857else 4858 echo "$as_me: failed program was:" >&5 4859sed 's/^/| /' conftest.$ac_ext >&5 4860 4861 ac_res=no 4862fi 4863 4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CLAGS="$save_CFLAGS" 4865 if test $ac_res = yes; then 4866 # New GCC 4867 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 4868echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 4869 { (exit 1); exit 1; }; } 4870 fi 4871 # Old GCC 4872 abi='' 4873 abilibdirext='' 4874 ;; 4875 -mabi=n32|-mabi=64) 4876 if test $with_mips_abi = yes; then 4877 # Old GCC, default to O32 4878 abi='' 4879 abilibdirext='' 4880 else 4881 # Some broken GCC 4882 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 4883echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 4884 { (exit 1); exit 1; }; } 4885 fi 4886 ;; 4887esac 4888fi #if test $ac_res = no; then 4889fi #if test -n "$abi" ; then 4890else 4891case "${with_mips_abi}" in 4892 32|o32) abi='-32'; abilibdirext='' ;; 4893 n32|yes) abi='-n32'; abilibdirext='32' ;; 4894 64) abi='-64'; abilibdirext='64' ;; 4895 no) abi=''; abilibdirext='';; 4896 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 4897echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 4898 { (exit 1); exit 1; }; } ;; 4899esac 4900fi #if test -n "$GCC"; then 4901;; 4902esac 4903 4904CC="$CC $abi" 4905libdir="$libdir$abilibdirext" 4906 4907 4908{ echo "$as_me:$LINENO: checking for __attribute__" >&5 4909echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; } 4910if test "${ac_cv___attribute__+set}" = set; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 4914cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920#include <stdlib.h> 4921static void foo(void) __attribute__ ((noreturn)); 4922 4923static void 4924foo(void) 4925{ 4926 exit(1); 4927} 4928 4929_ACEOF 4930rm -f conftest.$ac_objext 4931if { (ac_try="$ac_compile" 4932case "(($ac_try" in 4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4934 *) ac_try_echo=$ac_try;; 4935esac 4936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4937 (eval "$ac_compile") 2>conftest.er1 4938 ac_status=$? 4939 grep -v '^ *+' conftest.er1 >conftest.err 4940 rm -f conftest.er1 4941 cat conftest.err >&5 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } && { 4944 test -z "$ac_c_werror_flag" || 4945 test ! -s conftest.err 4946 } && test -s conftest.$ac_objext; then 4947 ac_cv___attribute__=yes 4948else 4949 echo "$as_me: failed program was:" >&5 4950sed 's/^/| /' conftest.$ac_ext >&5 4951 4952 ac_cv___attribute__=no 4953fi 4954 4955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956fi 4957 4958if test "$ac_cv___attribute__" = "yes"; then 4959 4960cat >>confdefs.h <<\_ACEOF 4961#define HAVE___ATTRIBUTE__ 1 4962_ACEOF 4963 4964fi 4965{ echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 4966echo "${ECHO_T}$ac_cv___attribute__" >&6; } 4967 4968 4969# Check whether --enable-shared was given. 4970if test "${enable_shared+set}" = set; then 4971 enableval=$enable_shared; p=${PACKAGE-default} 4972 case $enableval in 4973 yes) enable_shared=yes ;; 4974 no) enable_shared=no ;; 4975 *) 4976 enable_shared=no 4977 # Look at the argument we got. We use all the common list separators. 4978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4979 for pkg in $enableval; do 4980 IFS="$lt_save_ifs" 4981 if test "X$pkg" = "X$p"; then 4982 enable_shared=yes 4983 fi 4984 done 4985 IFS="$lt_save_ifs" 4986 ;; 4987 esac 4988else 4989 enable_shared=yes 4990fi 4991 4992 4993# Check whether --enable-static was given. 4994if test "${enable_static+set}" = set; then 4995 enableval=$enable_static; p=${PACKAGE-default} 4996 case $enableval in 4997 yes) enable_static=yes ;; 4998 no) enable_static=no ;; 4999 *) 5000 enable_static=no 5001 # Look at the argument we got. We use all the common list separators. 5002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5003 for pkg in $enableval; do 5004 IFS="$lt_save_ifs" 5005 if test "X$pkg" = "X$p"; then 5006 enable_static=yes 5007 fi 5008 done 5009 IFS="$lt_save_ifs" 5010 ;; 5011 esac 5012else 5013 enable_static=yes 5014fi 5015 5016 5017# Check whether --enable-fast-install was given. 5018if test "${enable_fast_install+set}" = set; then 5019 enableval=$enable_fast_install; p=${PACKAGE-default} 5020 case $enableval in 5021 yes) enable_fast_install=yes ;; 5022 no) enable_fast_install=no ;; 5023 *) 5024 enable_fast_install=no 5025 # Look at the argument we got. We use all the common list separators. 5026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5027 for pkg in $enableval; do 5028 IFS="$lt_save_ifs" 5029 if test "X$pkg" = "X$p"; then 5030 enable_fast_install=yes 5031 fi 5032 done 5033 IFS="$lt_save_ifs" 5034 ;; 5035 esac 5036else 5037 enable_fast_install=yes 5038fi 5039 5040 5041{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5042echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5043if test "${lt_cv_path_SED+set}" = set; then 5044 echo $ECHO_N "(cached) $ECHO_C" >&6 5045else 5046 # Loop through the user's path and test for sed and gsed. 5047# Then use that list of sed's as ones to test for truncation. 5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for lt_ac_prog in sed gsed; do 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5056 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5057 fi 5058 done 5059 done 5060done 5061lt_ac_max=0 5062lt_ac_count=0 5063# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5064# along with /bin/sed that truncates output. 5065for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5066 test ! -f $lt_ac_sed && continue 5067 cat /dev/null > conftest.in 5068 lt_ac_count=0 5069 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5070 # Check for GNU sed and select it if it is found. 5071 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5072 lt_cv_path_SED=$lt_ac_sed 5073 break 5074 fi 5075 while true; do 5076 cat conftest.in conftest.in >conftest.tmp 5077 mv conftest.tmp conftest.in 5078 cp conftest.in conftest.nl 5079 echo >>conftest.nl 5080 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5081 cmp -s conftest.out conftest.nl || break 5082 # 10000 chars as input seems more than enough 5083 test $lt_ac_count -gt 10 && break 5084 lt_ac_count=`expr $lt_ac_count + 1` 5085 if test $lt_ac_count -gt $lt_ac_max; then 5086 lt_ac_max=$lt_ac_count 5087 lt_cv_path_SED=$lt_ac_sed 5088 fi 5089 done 5090done 5091 5092fi 5093 5094SED=$lt_cv_path_SED 5095{ echo "$as_me:$LINENO: result: $SED" >&5 5096echo "${ECHO_T}$SED" >&6; } 5097 5098{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5099echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5100if test "${ac_cv_path_GREP+set}" = set; then 5101 echo $ECHO_N "(cached) $ECHO_C" >&6 5102else 5103 # Extract the first word of "grep ggrep" to use in msg output 5104if test -z "$GREP"; then 5105set dummy grep ggrep; ac_prog_name=$2 5106if test "${ac_cv_path_GREP+set}" = set; then 5107 echo $ECHO_N "(cached) $ECHO_C" >&6 5108else 5109 ac_path_GREP_found=false 5110# Loop through the user's path and test for each of PROGNAME-LIST 5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5113do 5114 IFS=$as_save_IFS 5115 test -z "$as_dir" && as_dir=. 5116 for ac_prog in grep ggrep; do 5117 for ac_exec_ext in '' $ac_executable_extensions; do 5118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5120 # Check for GNU ac_path_GREP and select it if it is found. 5121 # Check for GNU $ac_path_GREP 5122case `"$ac_path_GREP" --version 2>&1` in 5123*GNU*) 5124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5125*) 5126 ac_count=0 5127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5128 while : 5129 do 5130 cat "conftest.in" "conftest.in" >"conftest.tmp" 5131 mv "conftest.tmp" "conftest.in" 5132 cp "conftest.in" "conftest.nl" 5133 echo 'GREP' >> "conftest.nl" 5134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5136 ac_count=`expr $ac_count + 1` 5137 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5138 # Best one so far, save it but keep looking for a better one 5139 ac_cv_path_GREP="$ac_path_GREP" 5140 ac_path_GREP_max=$ac_count 5141 fi 5142 # 10*(2^10) chars as input seems more than enough 5143 test $ac_count -gt 10 && break 5144 done 5145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5146esac 5147 5148 5149 $ac_path_GREP_found && break 3 5150 done 5151done 5152 5153done 5154IFS=$as_save_IFS 5155 5156 5157fi 5158 5159GREP="$ac_cv_path_GREP" 5160if test -z "$GREP"; then 5161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5162echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5163 { (exit 1); exit 1; }; } 5164fi 5165 5166else 5167 ac_cv_path_GREP=$GREP 5168fi 5169 5170 5171fi 5172{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5173echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5174 GREP="$ac_cv_path_GREP" 5175 5176 5177{ echo "$as_me:$LINENO: checking for egrep" >&5 5178echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5179if test "${ac_cv_path_EGREP+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181else 5182 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5183 then ac_cv_path_EGREP="$GREP -E" 5184 else 5185 # Extract the first word of "egrep" to use in msg output 5186if test -z "$EGREP"; then 5187set dummy egrep; ac_prog_name=$2 5188if test "${ac_cv_path_EGREP+set}" = set; then 5189 echo $ECHO_N "(cached) $ECHO_C" >&6 5190else 5191 ac_path_EGREP_found=false 5192# Loop through the user's path and test for each of PROGNAME-LIST 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_prog in egrep; do 5199 for ac_exec_ext in '' $ac_executable_extensions; do 5200 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5201 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5202 # Check for GNU ac_path_EGREP and select it if it is found. 5203 # Check for GNU $ac_path_EGREP 5204case `"$ac_path_EGREP" --version 2>&1` in 5205*GNU*) 5206 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5207*) 5208 ac_count=0 5209 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5210 while : 5211 do 5212 cat "conftest.in" "conftest.in" >"conftest.tmp" 5213 mv "conftest.tmp" "conftest.in" 5214 cp "conftest.in" "conftest.nl" 5215 echo 'EGREP' >> "conftest.nl" 5216 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5218 ac_count=`expr $ac_count + 1` 5219 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5220 # Best one so far, save it but keep looking for a better one 5221 ac_cv_path_EGREP="$ac_path_EGREP" 5222 ac_path_EGREP_max=$ac_count 5223 fi 5224 # 10*(2^10) chars as input seems more than enough 5225 test $ac_count -gt 10 && break 5226 done 5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5228esac 5229 5230 5231 $ac_path_EGREP_found && break 3 5232 done 5233done 5234 5235done 5236IFS=$as_save_IFS 5237 5238 5239fi 5240 5241EGREP="$ac_cv_path_EGREP" 5242if test -z "$EGREP"; then 5243 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5244echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5245 { (exit 1); exit 1; }; } 5246fi 5247 5248else 5249 ac_cv_path_EGREP=$EGREP 5250fi 5251 5252 5253 fi 5254fi 5255{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5256echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5257 EGREP="$ac_cv_path_EGREP" 5258 5259 5260 5261# Check whether --with-gnu-ld was given. 5262if test "${with_gnu_ld+set}" = set; then 5263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5264else 5265 with_gnu_ld=no 5266fi 5267 5268ac_prog=ld 5269if test "$GCC" = yes; then 5270 # Check if gcc -print-prog-name=ld gives a path. 5271 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5272echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5273 case $host in 5274 *-*-mingw*) 5275 # gcc leaves a trailing carriage return which upsets mingw 5276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5277 *) 5278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5279 esac 5280 case $ac_prog in 5281 # Accept absolute paths. 5282 [\\/]* | ?:[\\/]*) 5283 re_direlt='/[^/][^/]*/\.\./' 5284 # Canonicalize the pathname of ld 5285 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5287 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5288 done 5289 test -z "$LD" && LD="$ac_prog" 5290 ;; 5291 "") 5292 # If it fails, then pretend we aren't using GCC. 5293 ac_prog=ld 5294 ;; 5295 *) 5296 # If it is relative, then search for the first ld in PATH. 5297 with_gnu_ld=unknown 5298 ;; 5299 esac 5300elif test "$with_gnu_ld" = yes; then 5301 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5302echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5303else 5304 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5305echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5306fi 5307if test "${lt_cv_path_LD+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 if test -z "$LD"; then 5311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5312 for ac_dir in $PATH; do 5313 IFS="$lt_save_ifs" 5314 test -z "$ac_dir" && ac_dir=. 5315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5316 lt_cv_path_LD="$ac_dir/$ac_prog" 5317 # Check to see if the program is GNU ld. I'd rather use --version, 5318 # but apparently some variants of GNU ld only accept -v. 5319 # Break only if it was the GNU/non-GNU ld that we prefer. 5320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5321 *GNU* | *'with BFD'*) 5322 test "$with_gnu_ld" != no && break 5323 ;; 5324 *) 5325 test "$with_gnu_ld" != yes && break 5326 ;; 5327 esac 5328 fi 5329 done 5330 IFS="$lt_save_ifs" 5331else 5332 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5333fi 5334fi 5335 5336LD="$lt_cv_path_LD" 5337if test -n "$LD"; then 5338 { echo "$as_me:$LINENO: result: $LD" >&5 5339echo "${ECHO_T}$LD" >&6; } 5340else 5341 { echo "$as_me:$LINENO: result: no" >&5 5342echo "${ECHO_T}no" >&6; } 5343fi 5344test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5345echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5346 { (exit 1); exit 1; }; } 5347{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5348echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5349if test "${lt_cv_prog_gnu_ld+set}" = set; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351else 5352 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5353case `$LD -v 2>&1 </dev/null` in 5354*GNU* | *'with BFD'*) 5355 lt_cv_prog_gnu_ld=yes 5356 ;; 5357*) 5358 lt_cv_prog_gnu_ld=no 5359 ;; 5360esac 5361fi 5362{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5363echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5364with_gnu_ld=$lt_cv_prog_gnu_ld 5365 5366 5367{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5368echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5369if test "${lt_cv_ld_reload_flag+set}" = set; then 5370 echo $ECHO_N "(cached) $ECHO_C" >&6 5371else 5372 lt_cv_ld_reload_flag='-r' 5373fi 5374{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5375echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5376reload_flag=$lt_cv_ld_reload_flag 5377case $reload_flag in 5378"" | " "*) ;; 5379*) reload_flag=" $reload_flag" ;; 5380esac 5381reload_cmds='$LD$reload_flag -o $output$reload_objs' 5382case $host_os in 5383 darwin*) 5384 if test "$GCC" = yes; then 5385 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5386 else 5387 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5388 fi 5389 ;; 5390esac 5391 5392{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5393echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5394if test "${lt_cv_path_NM+set}" = set; then 5395 echo $ECHO_N "(cached) $ECHO_C" >&6 5396else 5397 if test -n "$NM"; then 5398 # Let the user override the test. 5399 lt_cv_path_NM="$NM" 5400else 5401 lt_nm_to_check="${ac_tool_prefix}nm" 5402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5403 lt_nm_to_check="$lt_nm_to_check nm" 5404 fi 5405 for lt_tmp_nm in $lt_nm_to_check; do 5406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5407 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5408 IFS="$lt_save_ifs" 5409 test -z "$ac_dir" && ac_dir=. 5410 tmp_nm="$ac_dir/$lt_tmp_nm" 5411 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5412 # Check to see if the nm accepts a BSD-compat flag. 5413 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5414 # nm: unknown option "B" ignored 5415 # Tru64's nm complains that /dev/null is an invalid object file 5416 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5417 */dev/null* | *'Invalid file or object type'*) 5418 lt_cv_path_NM="$tmp_nm -B" 5419 break 5420 ;; 5421 *) 5422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5423 */dev/null*) 5424 lt_cv_path_NM="$tmp_nm -p" 5425 break 5426 ;; 5427 *) 5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5429 continue # so that we can try to find one that supports BSD flags 5430 ;; 5431 esac 5432 ;; 5433 esac 5434 fi 5435 done 5436 IFS="$lt_save_ifs" 5437 done 5438 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5439fi 5440fi 5441{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5442echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5443NM="$lt_cv_path_NM" 5444 5445{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5446echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5447LN_S=$as_ln_s 5448if test "$LN_S" = "ln -s"; then 5449 { echo "$as_me:$LINENO: result: yes" >&5 5450echo "${ECHO_T}yes" >&6; } 5451else 5452 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5453echo "${ECHO_T}no, using $LN_S" >&6; } 5454fi 5455 5456{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5457echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 5458if test "${lt_cv_deplibs_check_method+set}" = set; then 5459 echo $ECHO_N "(cached) $ECHO_C" >&6 5460else 5461 lt_cv_file_magic_cmd='$MAGIC_CMD' 5462lt_cv_file_magic_test_file= 5463lt_cv_deplibs_check_method='unknown' 5464# Need to set the preceding variable on all platforms that support 5465# interlibrary dependencies. 5466# 'none' -- dependencies not supported. 5467# `unknown' -- same as none, but documents that we really don't know. 5468# 'pass_all' -- all dependencies passed with no checks. 5469# 'test_compile' -- check by making test program. 5470# 'file_magic [[regex]]' -- check by looking for files in library path 5471# which responds to the $file_magic_cmd with a given extended regex. 5472# If you have `file' or equivalent on your system and you're not sure 5473# whether `pass_all' will *always* work, you probably want this one. 5474 5475case $host_os in 5476aix4* | aix5*) 5477 lt_cv_deplibs_check_method=pass_all 5478 ;; 5479 5480beos*) 5481 lt_cv_deplibs_check_method=pass_all 5482 ;; 5483 5484bsdi[45]*) 5485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5486 lt_cv_file_magic_cmd='/usr/bin/file -L' 5487 lt_cv_file_magic_test_file=/shlib/libc.so 5488 ;; 5489 5490cygwin*) 5491 # func_win32_libid is a shell function defined in ltmain.sh 5492 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5493 lt_cv_file_magic_cmd='func_win32_libid' 5494 ;; 5495 5496mingw* | pw32*) 5497 # Base MSYS/MinGW do not provide the 'file' command needed by 5498 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5499 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5500 lt_cv_file_magic_cmd='$OBJDUMP -f' 5501 ;; 5502 5503darwin* | rhapsody*) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 5507freebsd* | kfreebsd*-gnu | dragonfly*) 5508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5509 case $host_cpu in 5510 i*86 ) 5511 # Not sure whether the presence of OpenBSD here was a mistake. 5512 # Let's accept both of them until this is cleared up. 5513 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5514 lt_cv_file_magic_cmd=/usr/bin/file 5515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5516 ;; 5517 esac 5518 else 5519 lt_cv_deplibs_check_method=pass_all 5520 fi 5521 ;; 5522 5523gnu*) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 5527hpux10.20* | hpux11*) 5528 lt_cv_file_magic_cmd=/usr/bin/file 5529 case $host_cpu in 5530 ia64*) 5531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5533 ;; 5534 hppa*64*) 5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5536 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5537 ;; 5538 *) 5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5540 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5541 ;; 5542 esac 5543 ;; 5544 5545interix3*) 5546 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5548 ;; 5549 5550irix5* | irix6* | nonstopux*) 5551 case $LD in 5552 *-32|*"-32 ") libmagic=32-bit;; 5553 *-n32|*"-n32 ") libmagic=N32;; 5554 *-64|*"-64 ") libmagic=64-bit;; 5555 *) libmagic=never-match;; 5556 esac 5557 lt_cv_deplibs_check_method=pass_all 5558 ;; 5559 5560# This must be Linux ELF. 5561linux*) 5562 lt_cv_deplibs_check_method=pass_all 5563 ;; 5564 5565netbsd*) 5566 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5568 else 5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5570 fi 5571 ;; 5572 5573newos6*) 5574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5575 lt_cv_file_magic_cmd=/usr/bin/file 5576 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5577 ;; 5578 5579nto-qnx*) 5580 lt_cv_deplibs_check_method=unknown 5581 ;; 5582 5583openbsd*) 5584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5586 else 5587 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5588 fi 5589 ;; 5590 5591osf3* | osf4* | osf5*) 5592 lt_cv_deplibs_check_method=pass_all 5593 ;; 5594 5595solaris*) 5596 lt_cv_deplibs_check_method=pass_all 5597 ;; 5598 5599sysv4 | sysv4.3*) 5600 case $host_vendor in 5601 motorola) 5602 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]' 5603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5604 ;; 5605 ncr) 5606 lt_cv_deplibs_check_method=pass_all 5607 ;; 5608 sequent) 5609 lt_cv_file_magic_cmd='/bin/file' 5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5611 ;; 5612 sni) 5613 lt_cv_file_magic_cmd='/bin/file' 5614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5615 lt_cv_file_magic_test_file=/lib/libc.so 5616 ;; 5617 siemens) 5618 lt_cv_deplibs_check_method=pass_all 5619 ;; 5620 pc) 5621 lt_cv_deplibs_check_method=pass_all 5622 ;; 5623 esac 5624 ;; 5625 5626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629esac 5630 5631fi 5632{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5633echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5634file_magic_cmd=$lt_cv_file_magic_cmd 5635deplibs_check_method=$lt_cv_deplibs_check_method 5636test -z "$deplibs_check_method" && deplibs_check_method=unknown 5637 5638 5639# If no C compiler was specified, use CC. 5640LTCC=${LTCC-"$CC"} 5641 5642# If no C compiler flags were specified, use CFLAGS. 5643LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5644 5645# Allow CC to be a program name with arguments. 5646compiler=$CC 5647 5648# Check whether --enable-libtool-lock was given. 5649if test "${enable_libtool_lock+set}" = set; then 5650 enableval=$enable_libtool_lock; 5651fi 5652 5653test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5654 5655# Some flags need to be propagated to the compiler or linker for good 5656# libtool support. 5657case $host in 5658ia64-*-hpux*) 5659 # Find out which ABI we are using. 5660 echo 'int i;' > conftest.$ac_ext 5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5662 (eval $ac_compile) 2>&5 5663 ac_status=$? 5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5665 (exit $ac_status); }; then 5666 case `/usr/bin/file conftest.$ac_objext` in 5667 *ELF-32*) 5668 HPUX_IA64_MODE="32" 5669 ;; 5670 *ELF-64*) 5671 HPUX_IA64_MODE="64" 5672 ;; 5673 esac 5674 fi 5675 rm -rf conftest* 5676 ;; 5677*-*-irix6*) 5678 # Find out which ABI we are using. 5679 echo '#line 5679 "configure"' > conftest.$ac_ext 5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5681 (eval $ac_compile) 2>&5 5682 ac_status=$? 5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 (exit $ac_status); }; then 5685 if test "$lt_cv_prog_gnu_ld" = yes; then 5686 case `/usr/bin/file conftest.$ac_objext` in 5687 *32-bit*) 5688 LD="${LD-ld} -melf32bsmip" 5689 ;; 5690 *N32*) 5691 LD="${LD-ld} -melf32bmipn32" 5692 ;; 5693 *64-bit*) 5694 LD="${LD-ld} -melf64bmip" 5695 ;; 5696 esac 5697 else 5698 case `/usr/bin/file conftest.$ac_objext` in 5699 *32-bit*) 5700 LD="${LD-ld} -32" 5701 ;; 5702 *N32*) 5703 LD="${LD-ld} -n32" 5704 ;; 5705 *64-bit*) 5706 LD="${LD-ld} -64" 5707 ;; 5708 esac 5709 fi 5710 fi 5711 rm -rf conftest* 5712 ;; 5713 5714x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5715 # Find out which ABI we are using. 5716 echo 'int i;' > conftest.$ac_ext 5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5718 (eval $ac_compile) 2>&5 5719 ac_status=$? 5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5721 (exit $ac_status); }; then 5722 case `/usr/bin/file conftest.o` in 5723 *32-bit*) 5724 case $host in 5725 x86_64-*linux*) 5726 LD="${LD-ld} -m elf_i386" 5727 ;; 5728 ppc64-*linux*|powerpc64-*linux*) 5729 LD="${LD-ld} -m elf32ppclinux" 5730 ;; 5731 s390x-*linux*) 5732 LD="${LD-ld} -m elf_s390" 5733 ;; 5734 sparc64-*linux*) 5735 LD="${LD-ld} -m elf32_sparc" 5736 ;; 5737 esac 5738 ;; 5739 *64-bit*) 5740 case $host in 5741 x86_64-*linux*) 5742 LD="${LD-ld} -m elf_x86_64" 5743 ;; 5744 ppc*-*linux*|powerpc*-*linux*) 5745 LD="${LD-ld} -m elf64ppc" 5746 ;; 5747 s390*-*linux*) 5748 LD="${LD-ld} -m elf64_s390" 5749 ;; 5750 sparc*-*linux*) 5751 LD="${LD-ld} -m elf64_sparc" 5752 ;; 5753 esac 5754 ;; 5755 esac 5756 fi 5757 rm -rf conftest* 5758 ;; 5759 5760*-*-sco3.2v5*) 5761 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5762 SAVE_CFLAGS="$CFLAGS" 5763 CFLAGS="$CFLAGS -belf" 5764 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5765echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5766if test "${lt_cv_cc_needs_belf+set}" = set; then 5767 echo $ECHO_N "(cached) $ECHO_C" >&6 5768else 5769 ac_ext=c 5770ac_cpp='$CPP $CPPFLAGS' 5771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5773ac_compiler_gnu=$ac_cv_c_compiler_gnu 5774 5775 cat >conftest.$ac_ext <<_ACEOF 5776/* confdefs.h. */ 5777_ACEOF 5778cat confdefs.h >>conftest.$ac_ext 5779cat >>conftest.$ac_ext <<_ACEOF 5780/* end confdefs.h. */ 5781 5782int 5783main () 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790rm -f conftest.$ac_objext conftest$ac_exeext 5791if { (ac_try="$ac_link" 5792case "(($ac_try" in 5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5794 *) ac_try_echo=$ac_try;; 5795esac 5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5797 (eval "$ac_link") 2>conftest.er1 5798 ac_status=$? 5799 grep -v '^ *+' conftest.er1 >conftest.err 5800 rm -f conftest.er1 5801 cat conftest.err >&5 5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5803 (exit $ac_status); } && { 5804 test -z "$ac_c_werror_flag" || 5805 test ! -s conftest.err 5806 } && test -s conftest$ac_exeext && 5807 $as_test_x conftest$ac_exeext; then 5808 lt_cv_cc_needs_belf=yes 5809else 5810 echo "$as_me: failed program was:" >&5 5811sed 's/^/| /' conftest.$ac_ext >&5 5812 5813 lt_cv_cc_needs_belf=no 5814fi 5815 5816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5817 conftest$ac_exeext conftest.$ac_ext 5818 ac_ext=c 5819ac_cpp='$CPP $CPPFLAGS' 5820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5822ac_compiler_gnu=$ac_cv_c_compiler_gnu 5823 5824fi 5825{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5826echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5827 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5828 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5829 CFLAGS="$SAVE_CFLAGS" 5830 fi 5831 ;; 5832sparc*-*solaris*) 5833 # Find out which ABI we are using. 5834 echo 'int i;' > conftest.$ac_ext 5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5836 (eval $ac_compile) 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); }; then 5840 case `/usr/bin/file conftest.o` in 5841 *64-bit*) 5842 case $lt_cv_prog_gnu_ld in 5843 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5844 *) LD="${LD-ld} -64" ;; 5845 esac 5846 ;; 5847 esac 5848 fi 5849 rm -rf conftest* 5850 ;; 5851 5852 5853esac 5854 5855need_locks="$enable_libtool_lock" 5856 5857 5858 5859{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5860echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5861if test "${ac_cv_header_stdc+set}" = set; then 5862 echo $ECHO_N "(cached) $ECHO_C" >&6 5863else 5864 cat >conftest.$ac_ext <<_ACEOF 5865/* confdefs.h. */ 5866_ACEOF 5867cat confdefs.h >>conftest.$ac_ext 5868cat >>conftest.$ac_ext <<_ACEOF 5869/* end confdefs.h. */ 5870#include <stdlib.h> 5871#include <stdarg.h> 5872#include <string.h> 5873#include <float.h> 5874 5875int 5876main () 5877{ 5878 5879 ; 5880 return 0; 5881} 5882_ACEOF 5883rm -f conftest.$ac_objext 5884if { (ac_try="$ac_compile" 5885case "(($ac_try" in 5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5887 *) ac_try_echo=$ac_try;; 5888esac 5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5890 (eval "$ac_compile") 2>conftest.er1 5891 ac_status=$? 5892 grep -v '^ *+' conftest.er1 >conftest.err 5893 rm -f conftest.er1 5894 cat conftest.err >&5 5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 (exit $ac_status); } && { 5897 test -z "$ac_c_werror_flag" || 5898 test ! -s conftest.err 5899 } && test -s conftest.$ac_objext; then 5900 ac_cv_header_stdc=yes 5901else 5902 echo "$as_me: failed program was:" >&5 5903sed 's/^/| /' conftest.$ac_ext >&5 5904 5905 ac_cv_header_stdc=no 5906fi 5907 5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5909 5910if test $ac_cv_header_stdc = yes; then 5911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5912 cat >conftest.$ac_ext <<_ACEOF 5913/* confdefs.h. */ 5914_ACEOF 5915cat confdefs.h >>conftest.$ac_ext 5916cat >>conftest.$ac_ext <<_ACEOF 5917/* end confdefs.h. */ 5918#include <string.h> 5919 5920_ACEOF 5921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5922 $EGREP "memchr" >/dev/null 2>&1; then 5923 : 5924else 5925 ac_cv_header_stdc=no 5926fi 5927rm -f conftest* 5928 5929fi 5930 5931if test $ac_cv_header_stdc = yes; then 5932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5933 cat >conftest.$ac_ext <<_ACEOF 5934/* confdefs.h. */ 5935_ACEOF 5936cat confdefs.h >>conftest.$ac_ext 5937cat >>conftest.$ac_ext <<_ACEOF 5938/* end confdefs.h. */ 5939#include <stdlib.h> 5940 5941_ACEOF 5942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5943 $EGREP "free" >/dev/null 2>&1; then 5944 : 5945else 5946 ac_cv_header_stdc=no 5947fi 5948rm -f conftest* 5949 5950fi 5951 5952if test $ac_cv_header_stdc = yes; then 5953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5954 if test "$cross_compiling" = yes; then 5955 : 5956else 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <ctype.h> 5964#include <stdlib.h> 5965#if ((' ' & 0x0FF) == 0x020) 5966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5968#else 5969# define ISLOWER(c) \ 5970 (('a' <= (c) && (c) <= 'i') \ 5971 || ('j' <= (c) && (c) <= 'r') \ 5972 || ('s' <= (c) && (c) <= 'z')) 5973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5974#endif 5975 5976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5977int 5978main () 5979{ 5980 int i; 5981 for (i = 0; i < 256; i++) 5982 if (XOR (islower (i), ISLOWER (i)) 5983 || toupper (i) != TOUPPER (i)) 5984 return 2; 5985 return 0; 5986} 5987_ACEOF 5988rm -f conftest$ac_exeext 5989if { (ac_try="$ac_link" 5990case "(($ac_try" in 5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5992 *) ac_try_echo=$ac_try;; 5993esac 5994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5995 (eval "$ac_link") 2>&5 5996 ac_status=$? 5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5999 { (case "(($ac_try" in 6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6001 *) ac_try_echo=$ac_try;; 6002esac 6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6004 (eval "$ac_try") 2>&5 6005 ac_status=$? 6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6007 (exit $ac_status); }; }; then 6008 : 6009else 6010 echo "$as_me: program exited with status $ac_status" >&5 6011echo "$as_me: failed program was:" >&5 6012sed 's/^/| /' conftest.$ac_ext >&5 6013 6014( exit $ac_status ) 6015ac_cv_header_stdc=no 6016fi 6017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6018fi 6019 6020 6021fi 6022fi 6023{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6024echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6025if test $ac_cv_header_stdc = yes; then 6026 6027cat >>confdefs.h <<\_ACEOF 6028#define STDC_HEADERS 1 6029_ACEOF 6030 6031fi 6032 6033# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6044 inttypes.h stdint.h unistd.h 6045do 6046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6047{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6050 echo $ECHO_N "(cached) $ECHO_C" >&6 6051else 6052 cat >conftest.$ac_ext <<_ACEOF 6053/* confdefs.h. */ 6054_ACEOF 6055cat confdefs.h >>conftest.$ac_ext 6056cat >>conftest.$ac_ext <<_ACEOF 6057/* end confdefs.h. */ 6058$ac_includes_default 6059 6060#include <$ac_header> 6061_ACEOF 6062rm -f conftest.$ac_objext 6063if { (ac_try="$ac_compile" 6064case "(($ac_try" in 6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6066 *) ac_try_echo=$ac_try;; 6067esac 6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6069 (eval "$ac_compile") 2>conftest.er1 6070 ac_status=$? 6071 grep -v '^ *+' conftest.er1 >conftest.err 6072 rm -f conftest.er1 6073 cat conftest.err >&5 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); } && { 6076 test -z "$ac_c_werror_flag" || 6077 test ! -s conftest.err 6078 } && test -s conftest.$ac_objext; then 6079 eval "$as_ac_Header=yes" 6080else 6081 echo "$as_me: failed program was:" >&5 6082sed 's/^/| /' conftest.$ac_ext >&5 6083 6084 eval "$as_ac_Header=no" 6085fi 6086 6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6088fi 6089ac_res=`eval echo '${'$as_ac_Header'}'` 6090 { echo "$as_me:$LINENO: result: $ac_res" >&5 6091echo "${ECHO_T}$ac_res" >&6; } 6092if test `eval echo '${'$as_ac_Header'}'` = yes; then 6093 cat >>confdefs.h <<_ACEOF 6094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6095_ACEOF 6096 6097fi 6098 6099done 6100 6101 6102 6103for ac_header in dlfcn.h 6104do 6105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6107 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111fi 6112ac_res=`eval echo '${'$as_ac_Header'}'` 6113 { echo "$as_me:$LINENO: result: $ac_res" >&5 6114echo "${ECHO_T}$ac_res" >&6; } 6115else 6116 # Is the header compilable? 6117{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6118echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6119cat >conftest.$ac_ext <<_ACEOF 6120/* confdefs.h. */ 6121_ACEOF 6122cat confdefs.h >>conftest.$ac_ext 6123cat >>conftest.$ac_ext <<_ACEOF 6124/* end confdefs.h. */ 6125$ac_includes_default 6126#include <$ac_header> 6127_ACEOF 6128rm -f conftest.$ac_objext 6129if { (ac_try="$ac_compile" 6130case "(($ac_try" in 6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6132 *) ac_try_echo=$ac_try;; 6133esac 6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6135 (eval "$ac_compile") 2>conftest.er1 6136 ac_status=$? 6137 grep -v '^ *+' conftest.er1 >conftest.err 6138 rm -f conftest.er1 6139 cat conftest.err >&5 6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6141 (exit $ac_status); } && { 6142 test -z "$ac_c_werror_flag" || 6143 test ! -s conftest.err 6144 } && test -s conftest.$ac_objext; then 6145 ac_header_compiler=yes 6146else 6147 echo "$as_me: failed program was:" >&5 6148sed 's/^/| /' conftest.$ac_ext >&5 6149 6150 ac_header_compiler=no 6151fi 6152 6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6154{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6155echo "${ECHO_T}$ac_header_compiler" >&6; } 6156 6157# Is the header present? 6158{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6160cat >conftest.$ac_ext <<_ACEOF 6161/* confdefs.h. */ 6162_ACEOF 6163cat confdefs.h >>conftest.$ac_ext 6164cat >>conftest.$ac_ext <<_ACEOF 6165/* end confdefs.h. */ 6166#include <$ac_header> 6167_ACEOF 6168if { (ac_try="$ac_cpp conftest.$ac_ext" 6169case "(($ac_try" in 6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6171 *) ac_try_echo=$ac_try;; 6172esac 6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6175 ac_status=$? 6176 grep -v '^ *+' conftest.er1 >conftest.err 6177 rm -f conftest.er1 6178 cat conftest.err >&5 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6180 (exit $ac_status); } >/dev/null && { 6181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6182 test ! -s conftest.err 6183 }; then 6184 ac_header_preproc=yes 6185else 6186 echo "$as_me: failed program was:" >&5 6187sed 's/^/| /' conftest.$ac_ext >&5 6188 6189 ac_header_preproc=no 6190fi 6191 6192rm -f conftest.err conftest.$ac_ext 6193{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6194echo "${ECHO_T}$ac_header_preproc" >&6; } 6195 6196# So? What about this header? 6197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6198 yes:no: ) 6199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6203 ac_header_preproc=yes 6204 ;; 6205 no:yes:* ) 6206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6218 ( cat <<\_ASBOX 6219## ----------------------------------- ## 6220## Report this to heimdal-bugs@h5l.org ## 6221## ----------------------------------- ## 6222_ASBOX 6223 ) | sed "s/^/$as_me: WARNING: /" >&2 6224 ;; 6225esac 6226{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6229 echo $ECHO_N "(cached) $ECHO_C" >&6 6230else 6231 eval "$as_ac_Header=\$ac_header_preproc" 6232fi 6233ac_res=`eval echo '${'$as_ac_Header'}'` 6234 { echo "$as_me:$LINENO: result: $ac_res" >&5 6235echo "${ECHO_T}$ac_res" >&6; } 6236 6237fi 6238if test `eval echo '${'$as_ac_Header'}'` = yes; then 6239 cat >>confdefs.h <<_ACEOF 6240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6241_ACEOF 6242 6243fi 6244 6245done 6246 6247ac_ext=cpp 6248ac_cpp='$CXXCPP $CPPFLAGS' 6249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6252if test -z "$CXX"; then 6253 if test -n "$CCC"; then 6254 CXX=$CCC 6255 else 6256 if test -n "$ac_tool_prefix"; then 6257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6258 do 6259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6260set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6261{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6263if test "${ac_cv_prog_CXX+set}" = set; then 6264 echo $ECHO_N "(cached) $ECHO_C" >&6 6265else 6266 if test -n "$CXX"; then 6267 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6268else 6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280done 6281done 6282IFS=$as_save_IFS 6283 6284fi 6285fi 6286CXX=$ac_cv_prog_CXX 6287if test -n "$CXX"; then 6288 { echo "$as_me:$LINENO: result: $CXX" >&5 6289echo "${ECHO_T}$CXX" >&6; } 6290else 6291 { echo "$as_me:$LINENO: result: no" >&5 6292echo "${ECHO_T}no" >&6; } 6293fi 6294 6295 6296 test -n "$CXX" && break 6297 done 6298fi 6299if test -z "$CXX"; then 6300 ac_ct_CXX=$CXX 6301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6302do 6303 # Extract the first word of "$ac_prog", so it can be a program name with args. 6304set dummy $ac_prog; ac_word=$2 6305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6307if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309else 6310 if test -n "$ac_ct_CXX"; then 6311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6312else 6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6314for as_dir in $PATH 6315do 6316 IFS=$as_save_IFS 6317 test -z "$as_dir" && as_dir=. 6318 for ac_exec_ext in '' $ac_executable_extensions; do 6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6320 ac_cv_prog_ac_ct_CXX="$ac_prog" 6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6322 break 2 6323 fi 6324done 6325done 6326IFS=$as_save_IFS 6327 6328fi 6329fi 6330ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6331if test -n "$ac_ct_CXX"; then 6332 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6333echo "${ECHO_T}$ac_ct_CXX" >&6; } 6334else 6335 { echo "$as_me:$LINENO: result: no" >&5 6336echo "${ECHO_T}no" >&6; } 6337fi 6338 6339 6340 test -n "$ac_ct_CXX" && break 6341done 6342 6343 if test "x$ac_ct_CXX" = x; then 6344 CXX="g++" 6345 else 6346 case $cross_compiling:$ac_tool_warned in 6347yes:) 6348{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6349whose name does not start with the host triplet. If you think this 6350configuration is useful to you, please write to autoconf@gnu.org." >&5 6351echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6352whose name does not start with the host triplet. If you think this 6353configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6354ac_tool_warned=yes ;; 6355esac 6356 CXX=$ac_ct_CXX 6357 fi 6358fi 6359 6360 fi 6361fi 6362# Provide some information about the compiler. 6363echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6364ac_compiler=`set X $ac_compile; echo $2` 6365{ (ac_try="$ac_compiler --version >&5" 6366case "(($ac_try" in 6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6368 *) ac_try_echo=$ac_try;; 6369esac 6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6371 (eval "$ac_compiler --version >&5") 2>&5 6372 ac_status=$? 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); } 6375{ (ac_try="$ac_compiler -v >&5" 6376case "(($ac_try" in 6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6378 *) ac_try_echo=$ac_try;; 6379esac 6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6381 (eval "$ac_compiler -v >&5") 2>&5 6382 ac_status=$? 6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6384 (exit $ac_status); } 6385{ (ac_try="$ac_compiler -V >&5" 6386case "(($ac_try" in 6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6388 *) ac_try_echo=$ac_try;; 6389esac 6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6391 (eval "$ac_compiler -V >&5") 2>&5 6392 ac_status=$? 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); } 6395 6396{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6397echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6398if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6399 echo $ECHO_N "(cached) $ECHO_C" >&6 6400else 6401 cat >conftest.$ac_ext <<_ACEOF 6402/* confdefs.h. */ 6403_ACEOF 6404cat confdefs.h >>conftest.$ac_ext 6405cat >>conftest.$ac_ext <<_ACEOF 6406/* end confdefs.h. */ 6407 6408int 6409main () 6410{ 6411#ifndef __GNUC__ 6412 choke me 6413#endif 6414 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419rm -f conftest.$ac_objext 6420if { (ac_try="$ac_compile" 6421case "(($ac_try" in 6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6423 *) ac_try_echo=$ac_try;; 6424esac 6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6426 (eval "$ac_compile") 2>conftest.er1 6427 ac_status=$? 6428 grep -v '^ *+' conftest.er1 >conftest.err 6429 rm -f conftest.er1 6430 cat conftest.err >&5 6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6432 (exit $ac_status); } && { 6433 test -z "$ac_cxx_werror_flag" || 6434 test ! -s conftest.err 6435 } && test -s conftest.$ac_objext; then 6436 ac_compiler_gnu=yes 6437else 6438 echo "$as_me: failed program was:" >&5 6439sed 's/^/| /' conftest.$ac_ext >&5 6440 6441 ac_compiler_gnu=no 6442fi 6443 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6446 6447fi 6448{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6449echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6450GXX=`test $ac_compiler_gnu = yes && echo yes` 6451ac_test_CXXFLAGS=${CXXFLAGS+set} 6452ac_save_CXXFLAGS=$CXXFLAGS 6453{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6454echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6455if test "${ac_cv_prog_cxx_g+set}" = set; then 6456 echo $ECHO_N "(cached) $ECHO_C" >&6 6457else 6458 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6459 ac_cxx_werror_flag=yes 6460 ac_cv_prog_cxx_g=no 6461 CXXFLAGS="-g" 6462 cat >conftest.$ac_ext <<_ACEOF 6463/* confdefs.h. */ 6464_ACEOF 6465cat confdefs.h >>conftest.$ac_ext 6466cat >>conftest.$ac_ext <<_ACEOF 6467/* end confdefs.h. */ 6468 6469int 6470main () 6471{ 6472 6473 ; 6474 return 0; 6475} 6476_ACEOF 6477rm -f conftest.$ac_objext 6478if { (ac_try="$ac_compile" 6479case "(($ac_try" in 6480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6481 *) ac_try_echo=$ac_try;; 6482esac 6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6484 (eval "$ac_compile") 2>conftest.er1 6485 ac_status=$? 6486 grep -v '^ *+' conftest.er1 >conftest.err 6487 rm -f conftest.er1 6488 cat conftest.err >&5 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); } && { 6491 test -z "$ac_cxx_werror_flag" || 6492 test ! -s conftest.err 6493 } && test -s conftest.$ac_objext; then 6494 ac_cv_prog_cxx_g=yes 6495else 6496 echo "$as_me: failed program was:" >&5 6497sed 's/^/| /' conftest.$ac_ext >&5 6498 6499 CXXFLAGS="" 6500 cat >conftest.$ac_ext <<_ACEOF 6501/* confdefs.h. */ 6502_ACEOF 6503cat confdefs.h >>conftest.$ac_ext 6504cat >>conftest.$ac_ext <<_ACEOF 6505/* end confdefs.h. */ 6506 6507int 6508main () 6509{ 6510 6511 ; 6512 return 0; 6513} 6514_ACEOF 6515rm -f conftest.$ac_objext 6516if { (ac_try="$ac_compile" 6517case "(($ac_try" in 6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6519 *) ac_try_echo=$ac_try;; 6520esac 6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6522 (eval "$ac_compile") 2>conftest.er1 6523 ac_status=$? 6524 grep -v '^ *+' conftest.er1 >conftest.err 6525 rm -f conftest.er1 6526 cat conftest.err >&5 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); } && { 6529 test -z "$ac_cxx_werror_flag" || 6530 test ! -s conftest.err 6531 } && test -s conftest.$ac_objext; then 6532 : 6533else 6534 echo "$as_me: failed program was:" >&5 6535sed 's/^/| /' conftest.$ac_ext >&5 6536 6537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6538 CXXFLAGS="-g" 6539 cat >conftest.$ac_ext <<_ACEOF 6540/* confdefs.h. */ 6541_ACEOF 6542cat confdefs.h >>conftest.$ac_ext 6543cat >>conftest.$ac_ext <<_ACEOF 6544/* end confdefs.h. */ 6545 6546int 6547main () 6548{ 6549 6550 ; 6551 return 0; 6552} 6553_ACEOF 6554rm -f conftest.$ac_objext 6555if { (ac_try="$ac_compile" 6556case "(($ac_try" in 6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6558 *) ac_try_echo=$ac_try;; 6559esac 6560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6561 (eval "$ac_compile") 2>conftest.er1 6562 ac_status=$? 6563 grep -v '^ *+' conftest.er1 >conftest.err 6564 rm -f conftest.er1 6565 cat conftest.err >&5 6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6567 (exit $ac_status); } && { 6568 test -z "$ac_cxx_werror_flag" || 6569 test ! -s conftest.err 6570 } && test -s conftest.$ac_objext; then 6571 ac_cv_prog_cxx_g=yes 6572else 6573 echo "$as_me: failed program was:" >&5 6574sed 's/^/| /' conftest.$ac_ext >&5 6575 6576 6577fi 6578 6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6580fi 6581 6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6583fi 6584 6585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6587fi 6588{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6589echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6590if test "$ac_test_CXXFLAGS" = set; then 6591 CXXFLAGS=$ac_save_CXXFLAGS 6592elif test $ac_cv_prog_cxx_g = yes; then 6593 if test "$GXX" = yes; then 6594 CXXFLAGS="-g -O2" 6595 else 6596 CXXFLAGS="-g" 6597 fi 6598else 6599 if test "$GXX" = yes; then 6600 CXXFLAGS="-O2" 6601 else 6602 CXXFLAGS= 6603 fi 6604fi 6605ac_ext=cpp 6606ac_cpp='$CXXCPP $CPPFLAGS' 6607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6610 6611 6612 6613if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6614 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6615 (test "X$CXX" != "Xg++"))) ; then 6616 ac_ext=cpp 6617ac_cpp='$CXXCPP $CPPFLAGS' 6618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6621{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6622echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6623if test -z "$CXXCPP"; then 6624 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6625 echo $ECHO_N "(cached) $ECHO_C" >&6 6626else 6627 # Double quotes because CXXCPP needs to be expanded 6628 for CXXCPP in "$CXX -E" "/lib/cpp" 6629 do 6630 ac_preproc_ok=false 6631for ac_cxx_preproc_warn_flag in '' yes 6632do 6633 # Use a header file that comes with gcc, so configuring glibc 6634 # with a fresh cross-compiler works. 6635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6636 # <limits.h> exists even on freestanding compilers. 6637 # On the NeXT, cc -E runs the code through the compiler's parser, 6638 # not just through cpp. "Syntax error" is here to catch this case. 6639 cat >conftest.$ac_ext <<_ACEOF 6640/* confdefs.h. */ 6641_ACEOF 6642cat confdefs.h >>conftest.$ac_ext 6643cat >>conftest.$ac_ext <<_ACEOF 6644/* end confdefs.h. */ 6645#ifdef __STDC__ 6646# include <limits.h> 6647#else 6648# include <assert.h> 6649#endif 6650 Syntax error 6651_ACEOF 6652if { (ac_try="$ac_cpp conftest.$ac_ext" 6653case "(($ac_try" in 6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6655 *) ac_try_echo=$ac_try;; 6656esac 6657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6659 ac_status=$? 6660 grep -v '^ *+' conftest.er1 >conftest.err 6661 rm -f conftest.er1 6662 cat conftest.err >&5 6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6664 (exit $ac_status); } >/dev/null && { 6665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6666 test ! -s conftest.err 6667 }; then 6668 : 6669else 6670 echo "$as_me: failed program was:" >&5 6671sed 's/^/| /' conftest.$ac_ext >&5 6672 6673 # Broken: fails on valid input. 6674continue 6675fi 6676 6677rm -f conftest.err conftest.$ac_ext 6678 6679 # OK, works on sane cases. Now check whether nonexistent headers 6680 # can be detected and how. 6681 cat >conftest.$ac_ext <<_ACEOF 6682/* confdefs.h. */ 6683_ACEOF 6684cat confdefs.h >>conftest.$ac_ext 6685cat >>conftest.$ac_ext <<_ACEOF 6686/* end confdefs.h. */ 6687#include <ac_nonexistent.h> 6688_ACEOF 6689if { (ac_try="$ac_cpp conftest.$ac_ext" 6690case "(($ac_try" in 6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6692 *) ac_try_echo=$ac_try;; 6693esac 6694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6696 ac_status=$? 6697 grep -v '^ *+' conftest.er1 >conftest.err 6698 rm -f conftest.er1 6699 cat conftest.err >&5 6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6701 (exit $ac_status); } >/dev/null && { 6702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6703 test ! -s conftest.err 6704 }; then 6705 # Broken: success on invalid input. 6706continue 6707else 6708 echo "$as_me: failed program was:" >&5 6709sed 's/^/| /' conftest.$ac_ext >&5 6710 6711 # Passes both tests. 6712ac_preproc_ok=: 6713break 6714fi 6715 6716rm -f conftest.err conftest.$ac_ext 6717 6718done 6719# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6720rm -f conftest.err conftest.$ac_ext 6721if $ac_preproc_ok; then 6722 break 6723fi 6724 6725 done 6726 ac_cv_prog_CXXCPP=$CXXCPP 6727 6728fi 6729 CXXCPP=$ac_cv_prog_CXXCPP 6730else 6731 ac_cv_prog_CXXCPP=$CXXCPP 6732fi 6733{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6734echo "${ECHO_T}$CXXCPP" >&6; } 6735ac_preproc_ok=false 6736for ac_cxx_preproc_warn_flag in '' yes 6737do 6738 # Use a header file that comes with gcc, so configuring glibc 6739 # with a fresh cross-compiler works. 6740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6741 # <limits.h> exists even on freestanding compilers. 6742 # On the NeXT, cc -E runs the code through the compiler's parser, 6743 # not just through cpp. "Syntax error" is here to catch this case. 6744 cat >conftest.$ac_ext <<_ACEOF 6745/* confdefs.h. */ 6746_ACEOF 6747cat confdefs.h >>conftest.$ac_ext 6748cat >>conftest.$ac_ext <<_ACEOF 6749/* end confdefs.h. */ 6750#ifdef __STDC__ 6751# include <limits.h> 6752#else 6753# include <assert.h> 6754#endif 6755 Syntax error 6756_ACEOF 6757if { (ac_try="$ac_cpp conftest.$ac_ext" 6758case "(($ac_try" in 6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6760 *) ac_try_echo=$ac_try;; 6761esac 6762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6764 ac_status=$? 6765 grep -v '^ *+' conftest.er1 >conftest.err 6766 rm -f conftest.er1 6767 cat conftest.err >&5 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); } >/dev/null && { 6770 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6771 test ! -s conftest.err 6772 }; then 6773 : 6774else 6775 echo "$as_me: failed program was:" >&5 6776sed 's/^/| /' conftest.$ac_ext >&5 6777 6778 # Broken: fails on valid input. 6779continue 6780fi 6781 6782rm -f conftest.err conftest.$ac_ext 6783 6784 # OK, works on sane cases. Now check whether nonexistent headers 6785 # can be detected and how. 6786 cat >conftest.$ac_ext <<_ACEOF 6787/* confdefs.h. */ 6788_ACEOF 6789cat confdefs.h >>conftest.$ac_ext 6790cat >>conftest.$ac_ext <<_ACEOF 6791/* end confdefs.h. */ 6792#include <ac_nonexistent.h> 6793_ACEOF 6794if { (ac_try="$ac_cpp conftest.$ac_ext" 6795case "(($ac_try" in 6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6797 *) ac_try_echo=$ac_try;; 6798esac 6799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6801 ac_status=$? 6802 grep -v '^ *+' conftest.er1 >conftest.err 6803 rm -f conftest.er1 6804 cat conftest.err >&5 6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6806 (exit $ac_status); } >/dev/null && { 6807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6808 test ! -s conftest.err 6809 }; then 6810 # Broken: success on invalid input. 6811continue 6812else 6813 echo "$as_me: failed program was:" >&5 6814sed 's/^/| /' conftest.$ac_ext >&5 6815 6816 # Passes both tests. 6817ac_preproc_ok=: 6818break 6819fi 6820 6821rm -f conftest.err conftest.$ac_ext 6822 6823done 6824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6825rm -f conftest.err conftest.$ac_ext 6826if $ac_preproc_ok; then 6827 : 6828else 6829 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6830See \`config.log' for more details." >&5 6831echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6832See \`config.log' for more details." >&2;} 6833 { (exit 1); exit 1; }; } 6834fi 6835 6836ac_ext=cpp 6837ac_cpp='$CXXCPP $CPPFLAGS' 6838ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6839ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6840ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6841 6842fi 6843 6844 6845ac_ext=f 6846ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6847ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6848ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6849if test -n "$ac_tool_prefix"; then 6850 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6851 do 6852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6853set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6854{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6856if test "${ac_cv_prog_F77+set}" = set; then 6857 echo $ECHO_N "(cached) $ECHO_C" >&6 6858else 6859 if test -n "$F77"; then 6860 ac_cv_prog_F77="$F77" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6869 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879F77=$ac_cv_prog_F77 6880if test -n "$F77"; then 6881 { echo "$as_me:$LINENO: result: $F77" >&5 6882echo "${ECHO_T}$F77" >&6; } 6883else 6884 { echo "$as_me:$LINENO: result: no" >&5 6885echo "${ECHO_T}no" >&6; } 6886fi 6887 6888 6889 test -n "$F77" && break 6890 done 6891fi 6892if test -z "$F77"; then 6893 ac_ct_F77=$F77 6894 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6895do 6896 # Extract the first word of "$ac_prog", so it can be a program name with args. 6897set dummy $ac_prog; ac_word=$2 6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6900if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6901 echo $ECHO_N "(cached) $ECHO_C" >&6 6902else 6903 if test -n "$ac_ct_F77"; then 6904 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6905else 6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907for as_dir in $PATH 6908do 6909 IFS=$as_save_IFS 6910 test -z "$as_dir" && as_dir=. 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6913 ac_cv_prog_ac_ct_F77="$ac_prog" 6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917done 6918done 6919IFS=$as_save_IFS 6920 6921fi 6922fi 6923ac_ct_F77=$ac_cv_prog_ac_ct_F77 6924if test -n "$ac_ct_F77"; then 6925 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6926echo "${ECHO_T}$ac_ct_F77" >&6; } 6927else 6928 { echo "$as_me:$LINENO: result: no" >&5 6929echo "${ECHO_T}no" >&6; } 6930fi 6931 6932 6933 test -n "$ac_ct_F77" && break 6934done 6935 6936 if test "x$ac_ct_F77" = x; then 6937 F77="" 6938 else 6939 case $cross_compiling:$ac_tool_warned in 6940yes:) 6941{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6942whose name does not start with the host triplet. If you think this 6943configuration is useful to you, please write to autoconf@gnu.org." >&5 6944echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6945whose name does not start with the host triplet. If you think this 6946configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6947ac_tool_warned=yes ;; 6948esac 6949 F77=$ac_ct_F77 6950 fi 6951fi 6952 6953 6954# Provide some information about the compiler. 6955echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6956ac_compiler=`set X $ac_compile; echo $2` 6957{ (ac_try="$ac_compiler --version >&5" 6958case "(($ac_try" in 6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6960 *) ac_try_echo=$ac_try;; 6961esac 6962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6963 (eval "$ac_compiler --version >&5") 2>&5 6964 ac_status=$? 6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6966 (exit $ac_status); } 6967{ (ac_try="$ac_compiler -v >&5" 6968case "(($ac_try" in 6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6970 *) ac_try_echo=$ac_try;; 6971esac 6972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6973 (eval "$ac_compiler -v >&5") 2>&5 6974 ac_status=$? 6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6976 (exit $ac_status); } 6977{ (ac_try="$ac_compiler -V >&5" 6978case "(($ac_try" in 6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6980 *) ac_try_echo=$ac_try;; 6981esac 6982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6983 (eval "$ac_compiler -V >&5") 2>&5 6984 ac_status=$? 6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6986 (exit $ac_status); } 6987rm -f a.out 6988 6989# If we don't use `.F' as extension, the preprocessor is not run on the 6990# input file. (Note that this only needs to work for GNU compilers.) 6991ac_save_ext=$ac_ext 6992ac_ext=F 6993{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6994echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6995if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6996 echo $ECHO_N "(cached) $ECHO_C" >&6 6997else 6998 cat >conftest.$ac_ext <<_ACEOF 6999 program main 7000#ifndef __GNUC__ 7001 choke me 7002#endif 7003 7004 end 7005_ACEOF 7006rm -f conftest.$ac_objext 7007if { (ac_try="$ac_compile" 7008case "(($ac_try" in 7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7010 *) ac_try_echo=$ac_try;; 7011esac 7012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7013 (eval "$ac_compile") 2>conftest.er1 7014 ac_status=$? 7015 grep -v '^ *+' conftest.er1 >conftest.err 7016 rm -f conftest.er1 7017 cat conftest.err >&5 7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 (exit $ac_status); } && { 7020 test -z "$ac_f77_werror_flag" || 7021 test ! -s conftest.err 7022 } && test -s conftest.$ac_objext; then 7023 ac_compiler_gnu=yes 7024else 7025 echo "$as_me: failed program was:" >&5 7026sed 's/^/| /' conftest.$ac_ext >&5 7027 7028 ac_compiler_gnu=no 7029fi 7030 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7032ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7033 7034fi 7035{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7036echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 7037ac_ext=$ac_save_ext 7038ac_test_FFLAGS=${FFLAGS+set} 7039ac_save_FFLAGS=$FFLAGS 7040FFLAGS= 7041{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7042echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 7043if test "${ac_cv_prog_f77_g+set}" = set; then 7044 echo $ECHO_N "(cached) $ECHO_C" >&6 7045else 7046 FFLAGS=-g 7047cat >conftest.$ac_ext <<_ACEOF 7048 program main 7049 7050 end 7051_ACEOF 7052rm -f conftest.$ac_objext 7053if { (ac_try="$ac_compile" 7054case "(($ac_try" in 7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7056 *) ac_try_echo=$ac_try;; 7057esac 7058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7059 (eval "$ac_compile") 2>conftest.er1 7060 ac_status=$? 7061 grep -v '^ *+' conftest.er1 >conftest.err 7062 rm -f conftest.er1 7063 cat conftest.err >&5 7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); } && { 7066 test -z "$ac_f77_werror_flag" || 7067 test ! -s conftest.err 7068 } && test -s conftest.$ac_objext; then 7069 ac_cv_prog_f77_g=yes 7070else 7071 echo "$as_me: failed program was:" >&5 7072sed 's/^/| /' conftest.$ac_ext >&5 7073 7074 ac_cv_prog_f77_g=no 7075fi 7076 7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7078 7079fi 7080{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7081echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 7082if test "$ac_test_FFLAGS" = set; then 7083 FFLAGS=$ac_save_FFLAGS 7084elif test $ac_cv_prog_f77_g = yes; then 7085 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7086 FFLAGS="-g -O2" 7087 else 7088 FFLAGS="-g" 7089 fi 7090else 7091 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7092 FFLAGS="-O2" 7093 else 7094 FFLAGS= 7095 fi 7096fi 7097 7098G77=`test $ac_compiler_gnu = yes && echo yes` 7099ac_ext=c 7100ac_cpp='$CPP $CPPFLAGS' 7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7103ac_compiler_gnu=$ac_cv_c_compiler_gnu 7104 7105 7106 7107# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7108 7109# find the maximum length of command line arguments 7110{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7111echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 7112if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7113 echo $ECHO_N "(cached) $ECHO_C" >&6 7114else 7115 i=0 7116 teststring="ABCD" 7117 7118 case $build_os in 7119 msdosdjgpp*) 7120 # On DJGPP, this test can blow up pretty badly due to problems in libc 7121 # (any single argument exceeding 2000 bytes causes a buffer overrun 7122 # during glob expansion). Even if it were fixed, the result of this 7123 # check would be larger than it should be. 7124 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7125 ;; 7126 7127 gnu*) 7128 # Under GNU Hurd, this test is not required because there is 7129 # no limit to the length of command line arguments. 7130 # Libtool will interpret -1 as no limit whatsoever 7131 lt_cv_sys_max_cmd_len=-1; 7132 ;; 7133 7134 cygwin* | mingw*) 7135 # On Win9x/ME, this test blows up -- it succeeds, but takes 7136 # about 5 minutes as the teststring grows exponentially. 7137 # Worse, since 9x/ME are not pre-emptively multitasking, 7138 # you end up with a "frozen" computer, even though with patience 7139 # the test eventually succeeds (with a max line length of 256k). 7140 # Instead, let's just punt: use the minimum linelength reported by 7141 # all of the supported platforms: 8192 (on NT/2K/XP). 7142 lt_cv_sys_max_cmd_len=8192; 7143 ;; 7144 7145 amigaos*) 7146 # On AmigaOS with pdksh, this test takes hours, literally. 7147 # So we just punt and use a minimum line length of 8192. 7148 lt_cv_sys_max_cmd_len=8192; 7149 ;; 7150 7151 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7152 # This has been around since 386BSD, at least. Likely further. 7153 if test -x /sbin/sysctl; then 7154 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7155 elif test -x /usr/sbin/sysctl; then 7156 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7157 else 7158 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7159 fi 7160 # And add a safety zone 7161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7163 ;; 7164 7165 interix*) 7166 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7167 lt_cv_sys_max_cmd_len=196608 7168 ;; 7169 7170 osf*) 7171 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7172 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7173 # nice to cause kernel panics so lets avoid the loop below. 7174 # First set a reasonable default. 7175 lt_cv_sys_max_cmd_len=16384 7176 # 7177 if test -x /sbin/sysconfig; then 7178 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7179 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7180 esac 7181 fi 7182 ;; 7183 sco3.2v5*) 7184 lt_cv_sys_max_cmd_len=102400 7185 ;; 7186 sysv5* | sco5v6* | sysv4.2uw2*) 7187 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7188 if test -n "$kargmax"; then 7189 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7190 else 7191 lt_cv_sys_max_cmd_len=32768 7192 fi 7193 ;; 7194 *) 7195 # If test is not a shell built-in, we'll probably end up computing a 7196 # maximum length that is only half of the actual maximum length, but 7197 # we can't tell. 7198 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7199 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7200 = "XX$teststring") >/dev/null 2>&1 && 7201 new_result=`expr "X$teststring" : ".*" 2>&1` && 7202 lt_cv_sys_max_cmd_len=$new_result && 7203 test $i != 17 # 1/2 MB should be enough 7204 do 7205 i=`expr $i + 1` 7206 teststring=$teststring$teststring 7207 done 7208 teststring= 7209 # Add a significant safety factor because C++ compilers can tack on massive 7210 # amounts of additional arguments before passing them to the linker. 7211 # It appears as though 1/2 is a usable value. 7212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7213 ;; 7214 esac 7215 7216fi 7217 7218if test -n $lt_cv_sys_max_cmd_len ; then 7219 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7220echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 7221else 7222 { echo "$as_me:$LINENO: result: none" >&5 7223echo "${ECHO_T}none" >&6; } 7224fi 7225 7226 7227 7228 7229# Check for command to grab the raw symbol name followed by C symbol from nm. 7230{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7231echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 7232if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7233 echo $ECHO_N "(cached) $ECHO_C" >&6 7234else 7235 7236# These are sane defaults that work on at least a few old systems. 7237# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7238 7239# Character class describing NM global symbol codes. 7240symcode='[BCDEGRST]' 7241 7242# Regexp to match symbols that can be accessed directly from C. 7243sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7244 7245# Transform an extracted symbol line into a proper C declaration 7246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7247 7248# Transform an extracted symbol line into symbol name and symbol address 7249lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7250 7251# Define system-specific variables. 7252case $host_os in 7253aix*) 7254 symcode='[BCDT]' 7255 ;; 7256cygwin* | mingw* | pw32*) 7257 symcode='[ABCDGISTW]' 7258 ;; 7259hpux*) # Its linker distinguishes data from code symbols 7260 if test "$host_cpu" = ia64; then 7261 symcode='[ABCDEGRST]' 7262 fi 7263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7264 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7265 ;; 7266linux*) 7267 if test "$host_cpu" = ia64; then 7268 symcode='[ABCDGIRSTW]' 7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7270 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7271 fi 7272 ;; 7273irix* | nonstopux*) 7274 symcode='[BCDEGRST]' 7275 ;; 7276osf*) 7277 symcode='[BCDEGQRST]' 7278 ;; 7279solaris*) 7280 symcode='[BDRT]' 7281 ;; 7282sco3.2v5*) 7283 symcode='[DT]' 7284 ;; 7285sysv4.2uw2*) 7286 symcode='[DT]' 7287 ;; 7288sysv5* | sco5v6* | unixware* | OpenUNIX*) 7289 symcode='[ABDT]' 7290 ;; 7291sysv4) 7292 symcode='[DFNSTU]' 7293 ;; 7294esac 7295 7296# Handle CRLF in mingw tool chain 7297opt_cr= 7298case $build_os in 7299mingw*) 7300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7301 ;; 7302esac 7303 7304# If we're using GNU nm, then use its standard symbol codes. 7305case `$NM -V 2>&1` in 7306*GNU* | *'with BFD'*) 7307 symcode='[ABCDGIRSTW]' ;; 7308esac 7309 7310# Try without a prefix undercore, then with it. 7311for ac_symprfx in "" "_"; do 7312 7313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7314 symxfrm="\\1 $ac_symprfx\\2 \\2" 7315 7316 # Write the raw and C identifiers. 7317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7318 7319 # Check to see that the pipe works correctly. 7320 pipe_works=no 7321 7322 rm -f conftest* 7323 cat > conftest.$ac_ext <<EOF 7324#ifdef __cplusplus 7325extern "C" { 7326#endif 7327char nm_test_var; 7328void nm_test_func(){} 7329#ifdef __cplusplus 7330} 7331#endif 7332int main(){nm_test_var='a';nm_test_func();return(0);} 7333EOF 7334 7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7336 (eval $ac_compile) 2>&5 7337 ac_status=$? 7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7339 (exit $ac_status); }; then 7340 # Now try to grab the symbols. 7341 nlist=conftest.nm 7342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7344 ac_status=$? 7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7346 (exit $ac_status); } && test -s "$nlist"; then 7347 # Try sorting and uniquifying the output. 7348 if sort "$nlist" | uniq > "$nlist"T; then 7349 mv -f "$nlist"T "$nlist" 7350 else 7351 rm -f "$nlist"T 7352 fi 7353 7354 # Make sure that we snagged all the symbols we need. 7355 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7356 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7357 cat <<EOF > conftest.$ac_ext 7358#ifdef __cplusplus 7359extern "C" { 7360#endif 7361 7362EOF 7363 # Now generate the symbol file. 7364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7365 7366 cat <<EOF >> conftest.$ac_ext 7367#if defined (__STDC__) && __STDC__ 7368# define lt_ptr_t void * 7369#else 7370# define lt_ptr_t char * 7371# define const 7372#endif 7373 7374/* The mapping between symbol names and symbols. */ 7375const struct { 7376 const char *name; 7377 lt_ptr_t address; 7378} 7379lt_preloaded_symbols[] = 7380{ 7381EOF 7382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7383 cat <<\EOF >> conftest.$ac_ext 7384 {0, (lt_ptr_t) 0} 7385}; 7386 7387#ifdef __cplusplus 7388} 7389#endif 7390EOF 7391 # Now try linking the two files. 7392 mv conftest.$ac_objext conftstm.$ac_objext 7393 lt_save_LIBS="$LIBS" 7394 lt_save_CFLAGS="$CFLAGS" 7395 LIBS="conftstm.$ac_objext" 7396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7398 (eval $ac_link) 2>&5 7399 ac_status=$? 7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7401 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7402 pipe_works=yes 7403 fi 7404 LIBS="$lt_save_LIBS" 7405 CFLAGS="$lt_save_CFLAGS" 7406 else 7407 echo "cannot find nm_test_func in $nlist" >&5 7408 fi 7409 else 7410 echo "cannot find nm_test_var in $nlist" >&5 7411 fi 7412 else 7413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7414 fi 7415 else 7416 echo "$progname: failed program was:" >&5 7417 cat conftest.$ac_ext >&5 7418 fi 7419 rm -f conftest* conftst* 7420 7421 # Do not use the global_symbol_pipe unless it works. 7422 if test "$pipe_works" = yes; then 7423 break 7424 else 7425 lt_cv_sys_global_symbol_pipe= 7426 fi 7427done 7428 7429fi 7430 7431if test -z "$lt_cv_sys_global_symbol_pipe"; then 7432 lt_cv_sys_global_symbol_to_cdecl= 7433fi 7434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7435 { echo "$as_me:$LINENO: result: failed" >&5 7436echo "${ECHO_T}failed" >&6; } 7437else 7438 { echo "$as_me:$LINENO: result: ok" >&5 7439echo "${ECHO_T}ok" >&6; } 7440fi 7441 7442{ echo "$as_me:$LINENO: checking for objdir" >&5 7443echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7444if test "${lt_cv_objdir+set}" = set; then 7445 echo $ECHO_N "(cached) $ECHO_C" >&6 7446else 7447 rm -f .libs 2>/dev/null 7448mkdir .libs 2>/dev/null 7449if test -d .libs; then 7450 lt_cv_objdir=.libs 7451else 7452 # MS-DOS does not allow filenames that begin with a dot. 7453 lt_cv_objdir=_libs 7454fi 7455rmdir .libs 2>/dev/null 7456fi 7457{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7458echo "${ECHO_T}$lt_cv_objdir" >&6; } 7459objdir=$lt_cv_objdir 7460 7461 7462 7463 7464 7465case $host_os in 7466aix3*) 7467 # AIX sometimes has problems with the GCC collect2 program. For some 7468 # reason, if we set the COLLECT_NAMES environment variable, the problems 7469 # vanish in a puff of smoke. 7470 if test "X${COLLECT_NAMES+set}" != Xset; then 7471 COLLECT_NAMES= 7472 export COLLECT_NAMES 7473 fi 7474 ;; 7475esac 7476 7477# Sed substitution that helps us do robust quoting. It backslashifies 7478# metacharacters that are still active within double-quoted strings. 7479Xsed='sed -e 1s/^X//' 7480sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7481 7482# Same as above, but do not quote variable references. 7483double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7484 7485# Sed substitution to delay expansion of an escaped shell variable in a 7486# double_quote_subst'ed string. 7487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7488 7489# Sed substitution to avoid accidental globbing in evaled expressions 7490no_glob_subst='s/\*/\\\*/g' 7491 7492# Constants: 7493rm="rm -f" 7494 7495# Global variables: 7496default_ofile=libtool 7497can_build_shared=yes 7498 7499# All known linkers require a `.a' archive for static linking (except MSVC, 7500# which needs '.lib'). 7501libext=a 7502ltmain="$ac_aux_dir/ltmain.sh" 7503ofile="$default_ofile" 7504with_gnu_ld="$lt_cv_prog_gnu_ld" 7505 7506if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}ar; ac_word=$2 7509{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7511if test "${ac_cv_prog_AR+set}" = set; then 7512 echo $ECHO_N "(cached) $ECHO_C" >&6 7513else 7514 if test -n "$AR"; then 7515 ac_cv_prog_AR="$AR" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7524 ac_cv_prog_AR="${ac_tool_prefix}ar" 7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534AR=$ac_cv_prog_AR 7535if test -n "$AR"; then 7536 { echo "$as_me:$LINENO: result: $AR" >&5 7537echo "${ECHO_T}$AR" >&6; } 7538else 7539 { echo "$as_me:$LINENO: result: no" >&5 7540echo "${ECHO_T}no" >&6; } 7541fi 7542 7543 7544fi 7545if test -z "$ac_cv_prog_AR"; then 7546 ac_ct_AR=$AR 7547 # Extract the first word of "ar", so it can be a program name with args. 7548set dummy ar; ac_word=$2 7549{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7551if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7552 echo $ECHO_N "(cached) $ECHO_C" >&6 7553else 7554 if test -n "$ac_ct_AR"; then 7555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7564 ac_cv_prog_ac_ct_AR="ar" 7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574ac_ct_AR=$ac_cv_prog_ac_ct_AR 7575if test -n "$ac_ct_AR"; then 7576 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7577echo "${ECHO_T}$ac_ct_AR" >&6; } 7578else 7579 { echo "$as_me:$LINENO: result: no" >&5 7580echo "${ECHO_T}no" >&6; } 7581fi 7582 7583 if test "x$ac_ct_AR" = x; then 7584 AR="false" 7585 else 7586 case $cross_compiling:$ac_tool_warned in 7587yes:) 7588{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7589whose name does not start with the host triplet. If you think this 7590configuration is useful to you, please write to autoconf@gnu.org." >&5 7591echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7592whose name does not start with the host triplet. If you think this 7593configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7594ac_tool_warned=yes ;; 7595esac 7596 AR=$ac_ct_AR 7597 fi 7598else 7599 AR="$ac_cv_prog_AR" 7600fi 7601 7602if test -n "$ac_tool_prefix"; then 7603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7604set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7605{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7607if test "${ac_cv_prog_RANLIB+set}" = set; then 7608 echo $ECHO_N "(cached) $ECHO_C" >&6 7609else 7610 if test -n "$RANLIB"; then 7611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7612else 7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7614for as_dir in $PATH 7615do 7616 IFS=$as_save_IFS 7617 test -z "$as_dir" && as_dir=. 7618 for ac_exec_ext in '' $ac_executable_extensions; do 7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7622 break 2 7623 fi 7624done 7625done 7626IFS=$as_save_IFS 7627 7628fi 7629fi 7630RANLIB=$ac_cv_prog_RANLIB 7631if test -n "$RANLIB"; then 7632 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7633echo "${ECHO_T}$RANLIB" >&6; } 7634else 7635 { echo "$as_me:$LINENO: result: no" >&5 7636echo "${ECHO_T}no" >&6; } 7637fi 7638 7639 7640fi 7641if test -z "$ac_cv_prog_RANLIB"; then 7642 ac_ct_RANLIB=$RANLIB 7643 # Extract the first word of "ranlib", so it can be a program name with args. 7644set dummy ranlib; ac_word=$2 7645{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7647if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7648 echo $ECHO_N "(cached) $ECHO_C" >&6 7649else 7650 if test -n "$ac_ct_RANLIB"; then 7651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7652else 7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7654for as_dir in $PATH 7655do 7656 IFS=$as_save_IFS 7657 test -z "$as_dir" && as_dir=. 7658 for ac_exec_ext in '' $ac_executable_extensions; do 7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7660 ac_cv_prog_ac_ct_RANLIB="ranlib" 7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7662 break 2 7663 fi 7664done 7665done 7666IFS=$as_save_IFS 7667 7668fi 7669fi 7670ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7671if test -n "$ac_ct_RANLIB"; then 7672 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7673echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7674else 7675 { echo "$as_me:$LINENO: result: no" >&5 7676echo "${ECHO_T}no" >&6; } 7677fi 7678 7679 if test "x$ac_ct_RANLIB" = x; then 7680 RANLIB=":" 7681 else 7682 case $cross_compiling:$ac_tool_warned in 7683yes:) 7684{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7685whose name does not start with the host triplet. If you think this 7686configuration is useful to you, please write to autoconf@gnu.org." >&5 7687echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7688whose name does not start with the host triplet. If you think this 7689configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7690ac_tool_warned=yes ;; 7691esac 7692 RANLIB=$ac_ct_RANLIB 7693 fi 7694else 7695 RANLIB="$ac_cv_prog_RANLIB" 7696fi 7697 7698if test -n "$ac_tool_prefix"; then 7699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7700set dummy ${ac_tool_prefix}strip; ac_word=$2 7701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7703if test "${ac_cv_prog_STRIP+set}" = set; then 7704 echo $ECHO_N "(cached) $ECHO_C" >&6 7705else 7706 if test -n "$STRIP"; then 7707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7708else 7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7710for as_dir in $PATH 7711do 7712 IFS=$as_save_IFS 7713 test -z "$as_dir" && as_dir=. 7714 for ac_exec_ext in '' $ac_executable_extensions; do 7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7716 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7718 break 2 7719 fi 7720done 7721done 7722IFS=$as_save_IFS 7723 7724fi 7725fi 7726STRIP=$ac_cv_prog_STRIP 7727if test -n "$STRIP"; then 7728 { echo "$as_me:$LINENO: result: $STRIP" >&5 7729echo "${ECHO_T}$STRIP" >&6; } 7730else 7731 { echo "$as_me:$LINENO: result: no" >&5 7732echo "${ECHO_T}no" >&6; } 7733fi 7734 7735 7736fi 7737if test -z "$ac_cv_prog_STRIP"; then 7738 ac_ct_STRIP=$STRIP 7739 # Extract the first word of "strip", so it can be a program name with args. 7740set dummy strip; ac_word=$2 7741{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7743if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7744 echo $ECHO_N "(cached) $ECHO_C" >&6 7745else 7746 if test -n "$ac_ct_STRIP"; then 7747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7748else 7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7750for as_dir in $PATH 7751do 7752 IFS=$as_save_IFS 7753 test -z "$as_dir" && as_dir=. 7754 for ac_exec_ext in '' $ac_executable_extensions; do 7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7756 ac_cv_prog_ac_ct_STRIP="strip" 7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7758 break 2 7759 fi 7760done 7761done 7762IFS=$as_save_IFS 7763 7764fi 7765fi 7766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7767if test -n "$ac_ct_STRIP"; then 7768 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7769echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7770else 7771 { echo "$as_me:$LINENO: result: no" >&5 7772echo "${ECHO_T}no" >&6; } 7773fi 7774 7775 if test "x$ac_ct_STRIP" = x; then 7776 STRIP=":" 7777 else 7778 case $cross_compiling:$ac_tool_warned in 7779yes:) 7780{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7781whose name does not start with the host triplet. If you think this 7782configuration is useful to you, please write to autoconf@gnu.org." >&5 7783echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7784whose name does not start with the host triplet. If you think this 7785configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7786ac_tool_warned=yes ;; 7787esac 7788 STRIP=$ac_ct_STRIP 7789 fi 7790else 7791 STRIP="$ac_cv_prog_STRIP" 7792fi 7793 7794 7795old_CC="$CC" 7796old_CFLAGS="$CFLAGS" 7797 7798# Set sane defaults for various variables 7799test -z "$AR" && AR=ar 7800test -z "$AR_FLAGS" && AR_FLAGS=cru 7801test -z "$AS" && AS=as 7802test -z "$CC" && CC=cc 7803test -z "$LTCC" && LTCC=$CC 7804test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7805test -z "$DLLTOOL" && DLLTOOL=dlltool 7806test -z "$LD" && LD=ld 7807test -z "$LN_S" && LN_S="ln -s" 7808test -z "$MAGIC_CMD" && MAGIC_CMD=file 7809test -z "$NM" && NM=nm 7810test -z "$SED" && SED=sed 7811test -z "$OBJDUMP" && OBJDUMP=objdump 7812test -z "$RANLIB" && RANLIB=: 7813test -z "$STRIP" && STRIP=: 7814test -z "$ac_objext" && ac_objext=o 7815 7816# Determine commands to create old-style static archives. 7817old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7818old_postinstall_cmds='chmod 644 $oldlib' 7819old_postuninstall_cmds= 7820 7821if test -n "$RANLIB"; then 7822 case $host_os in 7823 openbsd*) 7824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7825 ;; 7826 *) 7827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7828 ;; 7829 esac 7830 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7831fi 7832 7833for cc_temp in $compiler""; do 7834 case $cc_temp in 7835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7837 \-*) ;; 7838 *) break;; 7839 esac 7840done 7841cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7842 7843 7844# Only perform the check for file, if the check method requires it 7845case $deplibs_check_method in 7846file_magic*) 7847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7848 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7849echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7850if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7851 echo $ECHO_N "(cached) $ECHO_C" >&6 7852else 7853 case $MAGIC_CMD in 7854[\\/*] | ?:[\\/]*) 7855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7856 ;; 7857*) 7858 lt_save_MAGIC_CMD="$MAGIC_CMD" 7859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7861 for ac_dir in $ac_dummy; do 7862 IFS="$lt_save_ifs" 7863 test -z "$ac_dir" && ac_dir=. 7864 if test -f $ac_dir/${ac_tool_prefix}file; then 7865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7866 if test -n "$file_magic_test_file"; then 7867 case $deplibs_check_method in 7868 "file_magic "*) 7869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7872 $EGREP "$file_magic_regex" > /dev/null; then 7873 : 7874 else 7875 cat <<EOF 1>&2 7876 7877*** Warning: the command libtool uses to detect shared libraries, 7878*** $file_magic_cmd, produces output that libtool cannot recognize. 7879*** The result is that libtool may fail to recognize shared libraries 7880*** as such. This will affect the creation of libtool libraries that 7881*** depend on shared libraries, but programs linked with such libtool 7882*** libraries will work regardless of this problem. Nevertheless, you 7883*** may want to report the problem to your system manager and/or to 7884*** bug-libtool@gnu.org 7885 7886EOF 7887 fi ;; 7888 esac 7889 fi 7890 break 7891 fi 7892 done 7893 IFS="$lt_save_ifs" 7894 MAGIC_CMD="$lt_save_MAGIC_CMD" 7895 ;; 7896esac 7897fi 7898 7899MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7900if test -n "$MAGIC_CMD"; then 7901 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7902echo "${ECHO_T}$MAGIC_CMD" >&6; } 7903else 7904 { echo "$as_me:$LINENO: result: no" >&5 7905echo "${ECHO_T}no" >&6; } 7906fi 7907 7908if test -z "$lt_cv_path_MAGIC_CMD"; then 7909 if test -n "$ac_tool_prefix"; then 7910 { echo "$as_me:$LINENO: checking for file" >&5 7911echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7912if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7913 echo $ECHO_N "(cached) $ECHO_C" >&6 7914else 7915 case $MAGIC_CMD in 7916[\\/*] | ?:[\\/]*) 7917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7918 ;; 7919*) 7920 lt_save_MAGIC_CMD="$MAGIC_CMD" 7921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7923 for ac_dir in $ac_dummy; do 7924 IFS="$lt_save_ifs" 7925 test -z "$ac_dir" && ac_dir=. 7926 if test -f $ac_dir/file; then 7927 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7928 if test -n "$file_magic_test_file"; then 7929 case $deplibs_check_method in 7930 "file_magic "*) 7931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7934 $EGREP "$file_magic_regex" > /dev/null; then 7935 : 7936 else 7937 cat <<EOF 1>&2 7938 7939*** Warning: the command libtool uses to detect shared libraries, 7940*** $file_magic_cmd, produces output that libtool cannot recognize. 7941*** The result is that libtool may fail to recognize shared libraries 7942*** as such. This will affect the creation of libtool libraries that 7943*** depend on shared libraries, but programs linked with such libtool 7944*** libraries will work regardless of this problem. Nevertheless, you 7945*** may want to report the problem to your system manager and/or to 7946*** bug-libtool@gnu.org 7947 7948EOF 7949 fi ;; 7950 esac 7951 fi 7952 break 7953 fi 7954 done 7955 IFS="$lt_save_ifs" 7956 MAGIC_CMD="$lt_save_MAGIC_CMD" 7957 ;; 7958esac 7959fi 7960 7961MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7962if test -n "$MAGIC_CMD"; then 7963 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7964echo "${ECHO_T}$MAGIC_CMD" >&6; } 7965else 7966 { echo "$as_me:$LINENO: result: no" >&5 7967echo "${ECHO_T}no" >&6; } 7968fi 7969 7970 else 7971 MAGIC_CMD=: 7972 fi 7973fi 7974 7975 fi 7976 ;; 7977esac 7978 7979enable_dlopen=no 7980enable_win32_dll=no 7981 7982# Check whether --enable-libtool-lock was given. 7983if test "${enable_libtool_lock+set}" = set; then 7984 enableval=$enable_libtool_lock; 7985fi 7986 7987test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7988 7989 7990# Check whether --with-pic was given. 7991if test "${with_pic+set}" = set; then 7992 withval=$with_pic; pic_mode="$withval" 7993else 7994 pic_mode=default 7995fi 7996 7997test -z "$pic_mode" && pic_mode=default 7998 7999# Use C for the default configuration in the libtool script 8000tagname= 8001lt_save_CC="$CC" 8002ac_ext=c 8003ac_cpp='$CPP $CPPFLAGS' 8004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8006ac_compiler_gnu=$ac_cv_c_compiler_gnu 8007 8008 8009# Source file extension for C test sources. 8010ac_ext=c 8011 8012# Object file extension for compiled C test sources. 8013objext=o 8014objext=$objext 8015 8016# Code to be used in simple compile tests 8017lt_simple_compile_test_code="int some_variable = 0;\n" 8018 8019# Code to be used in simple link tests 8020lt_simple_link_test_code='int main(){return(0);}\n' 8021 8022 8023# If no C compiler was specified, use CC. 8024LTCC=${LTCC-"$CC"} 8025 8026# If no C compiler flags were specified, use CFLAGS. 8027LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8028 8029# Allow CC to be a program name with arguments. 8030compiler=$CC 8031 8032 8033# save warnings/boilerplate of simple test code 8034ac_outfile=conftest.$ac_objext 8035printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8037_lt_compiler_boilerplate=`cat conftest.err` 8038$rm conftest* 8039 8040ac_outfile=conftest.$ac_objext 8041printf "$lt_simple_link_test_code" >conftest.$ac_ext 8042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8043_lt_linker_boilerplate=`cat conftest.err` 8044$rm conftest* 8045 8046 8047 8048lt_prog_compiler_no_builtin_flag= 8049 8050if test "$GCC" = yes; then 8051 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8052 8053 8054{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8055echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8056if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8057 echo $ECHO_N "(cached) $ECHO_C" >&6 8058else 8059 lt_cv_prog_compiler_rtti_exceptions=no 8060 ac_outfile=conftest.$ac_objext 8061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8062 lt_compiler_flag="-fno-rtti -fno-exceptions" 8063 # Insert the option either (1) after the last *FLAGS variable, or 8064 # (2) before a word containing "conftest.", or (3) at the end. 8065 # Note that $ac_compile itself does not contain backslashes and begins 8066 # with a dollar sign (not a hyphen), so the echo should work correctly. 8067 # The option is referenced via a variable to avoid confusing sed. 8068 lt_compile=`echo "$ac_compile" | $SED \ 8069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8071 -e 's:$: $lt_compiler_flag:'` 8072 (eval echo "\"\$as_me:8072: $lt_compile\"" >&5) 8073 (eval "$lt_compile" 2>conftest.err) 8074 ac_status=$? 8075 cat conftest.err >&5 8076 echo "$as_me:8076: \$? = $ac_status" >&5 8077 if (exit $ac_status) && test -s "$ac_outfile"; then 8078 # The compiler can only warn and ignore the option if not recognized 8079 # So say no if there are warnings other than the usual output. 8080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8083 lt_cv_prog_compiler_rtti_exceptions=yes 8084 fi 8085 fi 8086 $rm conftest* 8087 8088fi 8089{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8090echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8091 8092if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8093 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8094else 8095 : 8096fi 8097 8098fi 8099 8100lt_prog_compiler_wl= 8101lt_prog_compiler_pic= 8102lt_prog_compiler_static= 8103 8104{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8105echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8106 8107 if test "$GCC" = yes; then 8108 lt_prog_compiler_wl='-Wl,' 8109 lt_prog_compiler_static='-static' 8110 8111 case $host_os in 8112 aix*) 8113 # All AIX code is PIC. 8114 if test "$host_cpu" = ia64; then 8115 # AIX 5 now supports IA64 processor 8116 lt_prog_compiler_static='-Bstatic' 8117 fi 8118 ;; 8119 8120 amigaos*) 8121 # FIXME: we need at least 68020 code to build shared libraries, but 8122 # adding the `-m68020' flag to GCC prevents building anything better, 8123 # like `-m68040'. 8124 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8125 ;; 8126 8127 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8128 # PIC is the default for these OSes. 8129 ;; 8130 8131 mingw* | pw32* | os2*) 8132 # This hack is so that the source file can tell whether it is being 8133 # built for inclusion in a dll (and should export symbols for example). 8134 lt_prog_compiler_pic='-DDLL_EXPORT' 8135 ;; 8136 8137 darwin* | rhapsody*) 8138 # PIC is the default on this platform 8139 # Common symbols not allowed in MH_DYLIB files 8140 lt_prog_compiler_pic='-fno-common' 8141 ;; 8142 8143 interix3*) 8144 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8145 # Instead, we relocate shared libraries at runtime. 8146 ;; 8147 8148 msdosdjgpp*) 8149 # Just because we use GCC doesn't mean we suddenly get shared libraries 8150 # on systems that don't support them. 8151 lt_prog_compiler_can_build_shared=no 8152 enable_shared=no 8153 ;; 8154 8155 sysv4*MP*) 8156 if test -d /usr/nec; then 8157 lt_prog_compiler_pic=-Kconform_pic 8158 fi 8159 ;; 8160 8161 hpux*) 8162 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8163 # not for PA HP-UX. 8164 case $host_cpu in 8165 hppa*64*|ia64*) 8166 # +Z the default 8167 ;; 8168 *) 8169 lt_prog_compiler_pic='-fPIC' 8170 ;; 8171 esac 8172 ;; 8173 8174 *) 8175 lt_prog_compiler_pic='-fPIC' 8176 ;; 8177 esac 8178 else 8179 # PORTME Check for flag to pass linker flags through the system compiler. 8180 case $host_os in 8181 aix*) 8182 lt_prog_compiler_wl='-Wl,' 8183 if test "$host_cpu" = ia64; then 8184 # AIX 5 now supports IA64 processor 8185 lt_prog_compiler_static='-Bstatic' 8186 else 8187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8188 fi 8189 ;; 8190 darwin*) 8191 # PIC is the default on this platform 8192 # Common symbols not allowed in MH_DYLIB files 8193 case $cc_basename in 8194 xlc*) 8195 lt_prog_compiler_pic='-qnocommon' 8196 lt_prog_compiler_wl='-Wl,' 8197 ;; 8198 esac 8199 ;; 8200 8201 mingw* | pw32* | os2*) 8202 # This hack is so that the source file can tell whether it is being 8203 # built for inclusion in a dll (and should export symbols for example). 8204 lt_prog_compiler_pic='-DDLL_EXPORT' 8205 ;; 8206 8207 hpux9* | hpux10* | hpux11*) 8208 lt_prog_compiler_wl='-Wl,' 8209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8210 # not for PA HP-UX. 8211 case $host_cpu in 8212 hppa*64*|ia64*) 8213 # +Z the default 8214 ;; 8215 *) 8216 lt_prog_compiler_pic='+Z' 8217 ;; 8218 esac 8219 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8220 lt_prog_compiler_static='${wl}-a ${wl}archive' 8221 ;; 8222 8223 irix5* | irix6* | nonstopux*) 8224 lt_prog_compiler_wl='-Wl,' 8225 # PIC (with -KPIC) is the default. 8226 lt_prog_compiler_static='-non_shared' 8227 ;; 8228 8229 newsos6) 8230 lt_prog_compiler_pic='-KPIC' 8231 lt_prog_compiler_static='-Bstatic' 8232 ;; 8233 8234 linux*) 8235 case $cc_basename in 8236 icc* | ecc*) 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_pic='-KPIC' 8239 lt_prog_compiler_static='-static' 8240 ;; 8241 pgcc* | pgf77* | pgf90* | pgf95*) 8242 # Portland Group compilers (*not* the Pentium gcc compiler, 8243 # which looks to be a dead project) 8244 lt_prog_compiler_wl='-Wl,' 8245 lt_prog_compiler_pic='-fpic' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 ccc*) 8249 lt_prog_compiler_wl='-Wl,' 8250 # All Alpha code is PIC. 8251 lt_prog_compiler_static='-non_shared' 8252 ;; 8253 esac 8254 ;; 8255 8256 osf3* | osf4* | osf5*) 8257 lt_prog_compiler_wl='-Wl,' 8258 # All OSF/1 code is PIC. 8259 lt_prog_compiler_static='-non_shared' 8260 ;; 8261 8262 solaris*) 8263 lt_prog_compiler_pic='-KPIC' 8264 lt_prog_compiler_static='-Bstatic' 8265 case $cc_basename in 8266 f77* | f90* | f95*) 8267 lt_prog_compiler_wl='-Qoption ld ';; 8268 *) 8269 lt_prog_compiler_wl='-Wl,';; 8270 esac 8271 ;; 8272 8273 sunos4*) 8274 lt_prog_compiler_wl='-Qoption ld ' 8275 lt_prog_compiler_pic='-PIC' 8276 lt_prog_compiler_static='-Bstatic' 8277 ;; 8278 8279 sysv4 | sysv4.2uw2* | sysv4.3*) 8280 lt_prog_compiler_wl='-Wl,' 8281 lt_prog_compiler_pic='-KPIC' 8282 lt_prog_compiler_static='-Bstatic' 8283 ;; 8284 8285 sysv4*MP*) 8286 if test -d /usr/nec ;then 8287 lt_prog_compiler_pic='-Kconform_pic' 8288 lt_prog_compiler_static='-Bstatic' 8289 fi 8290 ;; 8291 8292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8293 lt_prog_compiler_wl='-Wl,' 8294 lt_prog_compiler_pic='-KPIC' 8295 lt_prog_compiler_static='-Bstatic' 8296 ;; 8297 8298 unicos*) 8299 lt_prog_compiler_wl='-Wl,' 8300 lt_prog_compiler_can_build_shared=no 8301 ;; 8302 8303 uts4*) 8304 lt_prog_compiler_pic='-pic' 8305 lt_prog_compiler_static='-Bstatic' 8306 ;; 8307 8308 *) 8309 lt_prog_compiler_can_build_shared=no 8310 ;; 8311 esac 8312 fi 8313 8314{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8315echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8316 8317# 8318# Check to make sure the PIC flag actually works. 8319# 8320if test -n "$lt_prog_compiler_pic"; then 8321 8322{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8323echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8324if test "${lt_prog_compiler_pic_works+set}" = set; then 8325 echo $ECHO_N "(cached) $ECHO_C" >&6 8326else 8327 lt_prog_compiler_pic_works=no 8328 ac_outfile=conftest.$ac_objext 8329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8331 # Insert the option either (1) after the last *FLAGS variable, or 8332 # (2) before a word containing "conftest.", or (3) at the end. 8333 # Note that $ac_compile itself does not contain backslashes and begins 8334 # with a dollar sign (not a hyphen), so the echo should work correctly. 8335 # The option is referenced via a variable to avoid confusing sed. 8336 lt_compile=`echo "$ac_compile" | $SED \ 8337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8339 -e 's:$: $lt_compiler_flag:'` 8340 (eval echo "\"\$as_me:8340: $lt_compile\"" >&5) 8341 (eval "$lt_compile" 2>conftest.err) 8342 ac_status=$? 8343 cat conftest.err >&5 8344 echo "$as_me:8344: \$? = $ac_status" >&5 8345 if (exit $ac_status) && test -s "$ac_outfile"; then 8346 # The compiler can only warn and ignore the option if not recognized 8347 # So say no if there are warnings other than the usual output. 8348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8351 lt_prog_compiler_pic_works=yes 8352 fi 8353 fi 8354 $rm conftest* 8355 8356fi 8357{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8358echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 8359 8360if test x"$lt_prog_compiler_pic_works" = xyes; then 8361 case $lt_prog_compiler_pic in 8362 "" | " "*) ;; 8363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8364 esac 8365else 8366 lt_prog_compiler_pic= 8367 lt_prog_compiler_can_build_shared=no 8368fi 8369 8370fi 8371case $host_os in 8372 # For platforms which do not support PIC, -DPIC is meaningless: 8373 *djgpp*) 8374 lt_prog_compiler_pic= 8375 ;; 8376 *) 8377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8378 ;; 8379esac 8380 8381# 8382# Check to make sure the static flag actually works. 8383# 8384wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8385{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8386echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8387if test "${lt_prog_compiler_static_works+set}" = set; then 8388 echo $ECHO_N "(cached) $ECHO_C" >&6 8389else 8390 lt_prog_compiler_static_works=no 8391 save_LDFLAGS="$LDFLAGS" 8392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8393 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8395 # The linker can only warn and ignore the option if not recognized 8396 # So say no if there are warnings 8397 if test -s conftest.err; then 8398 # Append any errors to the config.log. 8399 cat conftest.err 1>&5 8400 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8402 if diff conftest.exp conftest.er2 >/dev/null; then 8403 lt_prog_compiler_static_works=yes 8404 fi 8405 else 8406 lt_prog_compiler_static_works=yes 8407 fi 8408 fi 8409 $rm conftest* 8410 LDFLAGS="$save_LDFLAGS" 8411 8412fi 8413{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8414echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8415 8416if test x"$lt_prog_compiler_static_works" = xyes; then 8417 : 8418else 8419 lt_prog_compiler_static= 8420fi 8421 8422 8423{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8424echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8425if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8426 echo $ECHO_N "(cached) $ECHO_C" >&6 8427else 8428 lt_cv_prog_compiler_c_o=no 8429 $rm -r conftest 2>/dev/null 8430 mkdir conftest 8431 cd conftest 8432 mkdir out 8433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8434 8435 lt_compiler_flag="-o out/conftest2.$ac_objext" 8436 # Insert the option either (1) after the last *FLAGS variable, or 8437 # (2) before a word containing "conftest.", or (3) at the end. 8438 # Note that $ac_compile itself does not contain backslashes and begins 8439 # with a dollar sign (not a hyphen), so the echo should work correctly. 8440 lt_compile=`echo "$ac_compile" | $SED \ 8441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8443 -e 's:$: $lt_compiler_flag:'` 8444 (eval echo "\"\$as_me:8444: $lt_compile\"" >&5) 8445 (eval "$lt_compile" 2>out/conftest.err) 8446 ac_status=$? 8447 cat out/conftest.err >&5 8448 echo "$as_me:8448: \$? = $ac_status" >&5 8449 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8450 then 8451 # The compiler can only warn and ignore the option if not recognized 8452 # So say no if there are warnings 8453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8456 lt_cv_prog_compiler_c_o=yes 8457 fi 8458 fi 8459 chmod u+w . 2>&5 8460 $rm conftest* 8461 # SGI C++ compiler will create directory out/ii_files/ for 8462 # template instantiation 8463 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8464 $rm out/* && rmdir out 8465 cd .. 8466 rmdir conftest 8467 $rm conftest* 8468 8469fi 8470{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8471echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8472 8473 8474hard_links="nottested" 8475if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8476 # do not overwrite the value of need_locks provided by the user 8477 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8479 hard_links=yes 8480 $rm conftest* 8481 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8482 touch conftest.a 8483 ln conftest.a conftest.b 2>&5 || hard_links=no 8484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8485 { echo "$as_me:$LINENO: result: $hard_links" >&5 8486echo "${ECHO_T}$hard_links" >&6; } 8487 if test "$hard_links" = no; then 8488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8490 need_locks=warn 8491 fi 8492else 8493 need_locks=no 8494fi 8495 8496{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8498 8499 runpath_var= 8500 allow_undefined_flag= 8501 enable_shared_with_static_runtimes=no 8502 archive_cmds= 8503 archive_expsym_cmds= 8504 old_archive_From_new_cmds= 8505 old_archive_from_expsyms_cmds= 8506 export_dynamic_flag_spec= 8507 whole_archive_flag_spec= 8508 thread_safe_flag_spec= 8509 hardcode_libdir_flag_spec= 8510 hardcode_libdir_flag_spec_ld= 8511 hardcode_libdir_separator= 8512 hardcode_direct=no 8513 hardcode_minus_L=no 8514 hardcode_shlibpath_var=unsupported 8515 link_all_deplibs=unknown 8516 hardcode_automatic=no 8517 module_cmds= 8518 module_expsym_cmds= 8519 always_export_symbols=no 8520 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8521 # include_expsyms should be a list of space-separated symbols to be *always* 8522 # included in the symbol list 8523 include_expsyms= 8524 # exclude_expsyms can be an extended regexp of symbols to exclude 8525 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8527 # as well as any symbol that contains `d'. 8528 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8530 # platforms (ab)use it in PIC code, but their linkers get confused if 8531 # the symbol is explicitly referenced. Since portable code cannot 8532 # rely on this symbol name, it's probably fine to never include it in 8533 # preloaded symbol tables. 8534 extract_expsyms_cmds= 8535 # Just being paranoid about ensuring that cc_basename is set. 8536 for cc_temp in $compiler""; do 8537 case $cc_temp in 8538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8540 \-*) ;; 8541 *) break;; 8542 esac 8543done 8544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8545 8546 case $host_os in 8547 cygwin* | mingw* | pw32*) 8548 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8549 # When not using gcc, we currently assume that we are using 8550 # Microsoft Visual C++. 8551 if test "$GCC" != yes; then 8552 with_gnu_ld=no 8553 fi 8554 ;; 8555 interix*) 8556 # we just hope/assume this is gcc and not c89 (= MSVC++) 8557 with_gnu_ld=yes 8558 ;; 8559 openbsd*) 8560 with_gnu_ld=no 8561 ;; 8562 esac 8563 8564 ld_shlibs=yes 8565 if test "$with_gnu_ld" = yes; then 8566 # If archive_cmds runs LD, not CC, wlarc should be empty 8567 wlarc='${wl}' 8568 8569 # Set some defaults for GNU ld with shared library support. These 8570 # are reset later if shared libraries are not supported. Putting them 8571 # here allows them to be overridden if necessary. 8572 runpath_var=LD_RUN_PATH 8573 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8574 export_dynamic_flag_spec='${wl}--export-dynamic' 8575 # ancient GNU ld didn't support --whole-archive et. al. 8576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8577 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8578 else 8579 whole_archive_flag_spec= 8580 fi 8581 supports_anon_versioning=no 8582 case `$LD -v 2>/dev/null` in 8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8586 *\ 2.11.*) ;; # other 2.11 versions 8587 *) supports_anon_versioning=yes ;; 8588 esac 8589 8590 # See if GNU ld supports shared libraries. 8591 case $host_os in 8592 aix3* | aix4* | aix5*) 8593 # On AIX/PPC, the GNU linker is very broken 8594 if test "$host_cpu" != ia64; then 8595 ld_shlibs=no 8596 cat <<EOF 1>&2 8597 8598*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8599*** to be unable to reliably create shared libraries on AIX. 8600*** Therefore, libtool is disabling shared libraries support. If you 8601*** really care for shared libraries, you may want to modify your PATH 8602*** so that a non-GNU linker is found, and then restart. 8603 8604EOF 8605 fi 8606 ;; 8607 8608 amigaos*) 8609 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)' 8610 hardcode_libdir_flag_spec='-L$libdir' 8611 hardcode_minus_L=yes 8612 8613 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8614 # that the semantics of dynamic libraries on AmigaOS, at least up 8615 # to version 4, is to share data among multiple programs linked 8616 # with the same dynamic library. Since this doesn't match the 8617 # behavior of shared libraries on other platforms, we can't use 8618 # them. 8619 ld_shlibs=no 8620 ;; 8621 8622 beos*) 8623 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8624 allow_undefined_flag=unsupported 8625 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8626 # support --undefined. This deserves some investigation. FIXME 8627 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8628 else 8629 ld_shlibs=no 8630 fi 8631 ;; 8632 8633 cygwin* | mingw* | pw32*) 8634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8635 # as there is no search path for DLLs. 8636 hardcode_libdir_flag_spec='-L$libdir' 8637 allow_undefined_flag=unsupported 8638 always_export_symbols=no 8639 enable_shared_with_static_runtimes=yes 8640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8641 8642 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8644 # If the export-symbols file already is a .def file (1st line 8645 # is EXPORTS), use it as is; otherwise, prepend... 8646 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8647 cp $export_symbols $output_objdir/$soname.def; 8648 else 8649 echo EXPORTS > $output_objdir/$soname.def; 8650 cat $export_symbols >> $output_objdir/$soname.def; 8651 fi~ 8652 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8653 else 8654 ld_shlibs=no 8655 fi 8656 ;; 8657 8658 interix3*) 8659 hardcode_direct=no 8660 hardcode_shlibpath_var=no 8661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8662 export_dynamic_flag_spec='${wl}-E' 8663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8664 # Instead, shared libraries are loaded at an image base (0x10000000 by 8665 # default) and relocated if they conflict, which is a slow very memory 8666 # consuming and fragmenting process. To avoid this, we pick a random, 8667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8668 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8670 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' 8671 ;; 8672 8673 linux*) 8674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8675 tmp_addflag= 8676 case $cc_basename,$host_cpu in 8677 pgcc*) # Portland Group C compiler 8678 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8679 tmp_addflag=' $pic_flag' 8680 ;; 8681 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8682 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8683 tmp_addflag=' $pic_flag -Mnomain' ;; 8684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8685 tmp_addflag=' -i_dynamic' ;; 8686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8687 tmp_addflag=' -i_dynamic -nofor_main' ;; 8688 ifc* | ifort*) # Intel Fortran compiler 8689 tmp_addflag=' -nofor_main' ;; 8690 esac 8691 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8692 8693 if test $supports_anon_versioning = yes; then 8694 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8696 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8697 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8698 fi 8699 else 8700 ld_shlibs=no 8701 fi 8702 ;; 8703 8704 netbsd*) 8705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8706 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8707 wlarc= 8708 else 8709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8711 fi 8712 ;; 8713 8714 solaris*) 8715 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8716 ld_shlibs=no 8717 cat <<EOF 1>&2 8718 8719*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8720*** create shared libraries on Solaris systems. Therefore, libtool 8721*** is disabling shared libraries support. We urge you to upgrade GNU 8722*** binutils to release 2.9.1 or newer. Another option is to modify 8723*** your PATH or compiler configuration so that the native linker is 8724*** used, and then restart. 8725 8726EOF 8727 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8730 else 8731 ld_shlibs=no 8732 fi 8733 ;; 8734 8735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8736 case `$LD -v 2>&1` in 8737 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8738 ld_shlibs=no 8739 cat <<_LT_EOF 1>&2 8740 8741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8742*** reliably create shared libraries on SCO systems. Therefore, libtool 8743*** is disabling shared libraries support. We urge you to upgrade GNU 8744*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8745*** your PATH or compiler configuration so that the native linker is 8746*** used, and then restart. 8747 8748_LT_EOF 8749 ;; 8750 *) 8751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8752 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8755 else 8756 ld_shlibs=no 8757 fi 8758 ;; 8759 esac 8760 ;; 8761 8762 sunos4*) 8763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8764 wlarc= 8765 hardcode_direct=yes 8766 hardcode_shlibpath_var=no 8767 ;; 8768 8769 *) 8770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8773 else 8774 ld_shlibs=no 8775 fi 8776 ;; 8777 esac 8778 8779 if test "$ld_shlibs" = no; then 8780 runpath_var= 8781 hardcode_libdir_flag_spec= 8782 export_dynamic_flag_spec= 8783 whole_archive_flag_spec= 8784 fi 8785 else 8786 # PORTME fill in a description of your system's linker (not GNU ld) 8787 case $host_os in 8788 aix3*) 8789 allow_undefined_flag=unsupported 8790 always_export_symbols=yes 8791 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' 8792 # Note: this linker hardcodes the directories in LIBPATH if there 8793 # are no directories specified by -L. 8794 hardcode_minus_L=yes 8795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8796 # Neither direct hardcoding nor static linking is supported with a 8797 # broken collect2. 8798 hardcode_direct=unsupported 8799 fi 8800 ;; 8801 8802 aix4* | aix5*) 8803 if test "$host_cpu" = ia64; then 8804 # On IA64, the linker does run time linking by default, so we don't 8805 # have to do anything special. 8806 aix_use_runtimelinking=no 8807 exp_sym_flag='-Bexport' 8808 no_entry_flag="" 8809 else 8810 # If we're using GNU nm, then we don't want the "-C" option. 8811 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8812 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8813 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8814 else 8815 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 8816 fi 8817 aix_use_runtimelinking=no 8818 8819 # Test if we are trying to use run time linking or normal 8820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8821 # need to do runtime linking. 8822 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8823 for ld_flag in $LDFLAGS; do 8824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8825 aix_use_runtimelinking=yes 8826 break 8827 fi 8828 done 8829 ;; 8830 esac 8831 8832 exp_sym_flag='-bexport' 8833 no_entry_flag='-bnoentry' 8834 fi 8835 8836 # When large executables or shared objects are built, AIX ld can 8837 # have problems creating the table of contents. If linking a library 8838 # or program results in "error TOC overflow" add -mminimal-toc to 8839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8841 8842 archive_cmds='' 8843 hardcode_direct=yes 8844 hardcode_libdir_separator=':' 8845 link_all_deplibs=yes 8846 8847 if test "$GCC" = yes; then 8848 case $host_os in aix4.[012]|aix4.[012].*) 8849 # We only want to do this on AIX 4.2 and lower, the check 8850 # below for broken collect2 doesn't work under 4.3+ 8851 collect2name=`${CC} -print-prog-name=collect2` 8852 if test -f "$collect2name" && \ 8853 strings "$collect2name" | grep resolve_lib_name >/dev/null 8854 then 8855 # We have reworked collect2 8856 hardcode_direct=yes 8857 else 8858 # We have old collect2 8859 hardcode_direct=unsupported 8860 # It fails to find uninstalled libraries when the uninstalled 8861 # path is not listed in the libpath. Setting hardcode_minus_L 8862 # to unsupported forces relinking 8863 hardcode_minus_L=yes 8864 hardcode_libdir_flag_spec='-L$libdir' 8865 hardcode_libdir_separator= 8866 fi 8867 ;; 8868 esac 8869 shared_flag='-shared' 8870 if test "$aix_use_runtimelinking" = yes; then 8871 shared_flag="$shared_flag "'${wl}-G' 8872 fi 8873 else 8874 # not using gcc 8875 if test "$host_cpu" = ia64; then 8876 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8877 # chokes on -Wl,-G. The following line is correct: 8878 shared_flag='-G' 8879 else 8880 if test "$aix_use_runtimelinking" = yes; then 8881 shared_flag='${wl}-G' 8882 else 8883 shared_flag='${wl}-bM:SRE' 8884 fi 8885 fi 8886 fi 8887 8888 # It seems that -bexpall does not export symbols beginning with 8889 # underscore (_), so it is better to generate a list of symbols to export. 8890 always_export_symbols=yes 8891 if test "$aix_use_runtimelinking" = yes; then 8892 # Warning - without using the other runtime loading flags (-brtl), 8893 # -berok will link without error, but may produce a broken library. 8894 allow_undefined_flag='-berok' 8895 # Determine the default libpath from the value encoded in an empty executable. 8896 cat >conftest.$ac_ext <<_ACEOF 8897/* confdefs.h. */ 8898_ACEOF 8899cat confdefs.h >>conftest.$ac_ext 8900cat >>conftest.$ac_ext <<_ACEOF 8901/* end confdefs.h. */ 8902 8903int 8904main () 8905{ 8906 8907 ; 8908 return 0; 8909} 8910_ACEOF 8911rm -f conftest.$ac_objext conftest$ac_exeext 8912if { (ac_try="$ac_link" 8913case "(($ac_try" in 8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8915 *) ac_try_echo=$ac_try;; 8916esac 8917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8918 (eval "$ac_link") 2>conftest.er1 8919 ac_status=$? 8920 grep -v '^ *+' conftest.er1 >conftest.err 8921 rm -f conftest.er1 8922 cat conftest.err >&5 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 (exit $ac_status); } && { 8925 test -z "$ac_c_werror_flag" || 8926 test ! -s conftest.err 8927 } && test -s conftest$ac_exeext && 8928 $as_test_x conftest$ac_exeext; then 8929 8930aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8931}'` 8932# Check for a 64-bit object if we didn't find anything. 8933if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8934}'`; fi 8935else 8936 echo "$as_me: failed program was:" >&5 8937sed 's/^/| /' conftest.$ac_ext >&5 8938 8939 8940fi 8941 8942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8943 conftest$ac_exeext conftest.$ac_ext 8944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8945 8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8947 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8948 else 8949 if test "$host_cpu" = ia64; then 8950 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8951 allow_undefined_flag="-z nodefs" 8952 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" 8953 else 8954 # Determine the default libpath from the value encoded in an empty executable. 8955 cat >conftest.$ac_ext <<_ACEOF 8956/* confdefs.h. */ 8957_ACEOF 8958cat confdefs.h >>conftest.$ac_ext 8959cat >>conftest.$ac_ext <<_ACEOF 8960/* end confdefs.h. */ 8961 8962int 8963main () 8964{ 8965 8966 ; 8967 return 0; 8968} 8969_ACEOF 8970rm -f conftest.$ac_objext conftest$ac_exeext 8971if { (ac_try="$ac_link" 8972case "(($ac_try" in 8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8974 *) ac_try_echo=$ac_try;; 8975esac 8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8977 (eval "$ac_link") 2>conftest.er1 8978 ac_status=$? 8979 grep -v '^ *+' conftest.er1 >conftest.err 8980 rm -f conftest.er1 8981 cat conftest.err >&5 8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8983 (exit $ac_status); } && { 8984 test -z "$ac_c_werror_flag" || 8985 test ! -s conftest.err 8986 } && test -s conftest$ac_exeext && 8987 $as_test_x conftest$ac_exeext; then 8988 8989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8990}'` 8991# Check for a 64-bit object if we didn't find anything. 8992if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8993}'`; fi 8994else 8995 echo "$as_me: failed program was:" >&5 8996sed 's/^/| /' conftest.$ac_ext >&5 8997 8998 8999fi 9000 9001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9002 conftest$ac_exeext conftest.$ac_ext 9003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9004 9005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9006 # Warning - without using the other run time loading flags, 9007 # -berok will link without error, but may produce a broken library. 9008 no_undefined_flag=' ${wl}-bernotok' 9009 allow_undefined_flag=' ${wl}-berok' 9010 # Exported symbols can be pulled into shared objects from archives 9011 whole_archive_flag_spec='$convenience' 9012 archive_cmds_need_lc=yes 9013 # This is similar to how AIX traditionally builds its shared libraries. 9014 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' 9015 fi 9016 fi 9017 ;; 9018 9019 amigaos*) 9020 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)' 9021 hardcode_libdir_flag_spec='-L$libdir' 9022 hardcode_minus_L=yes 9023 # see comment about different semantics on the GNU ld section 9024 ld_shlibs=no 9025 ;; 9026 9027 bsdi[45]*) 9028 export_dynamic_flag_spec=-rdynamic 9029 ;; 9030 9031 cygwin* | mingw* | pw32*) 9032 # When not using gcc, we currently assume that we are using 9033 # Microsoft Visual C++. 9034 # hardcode_libdir_flag_spec is actually meaningless, as there is 9035 # no search path for DLLs. 9036 hardcode_libdir_flag_spec=' ' 9037 allow_undefined_flag=unsupported 9038 # Tell ltmain to make .lib files, not .a files. 9039 libext=lib 9040 # Tell ltmain to make .dll files, not .so files. 9041 shrext_cmds=".dll" 9042 # FIXME: Setting linknames here is a bad hack. 9043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9044 # The linker will automatically build a .lib file if we build a DLL. 9045 old_archive_From_new_cmds='true' 9046 # FIXME: Should let the user specify the lib program. 9047 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9048 fix_srcfile_path='`cygpath -w "$srcfile"`' 9049 enable_shared_with_static_runtimes=yes 9050 ;; 9051 9052 darwin* | rhapsody*) 9053 case $host_os in 9054 rhapsody* | darwin1.[012]) 9055 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9056 ;; 9057 *) # Darwin 1.3 on 9058 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9059 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9060 else 9061 case ${MACOSX_DEPLOYMENT_TARGET} in 9062 10.[012]) 9063 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9064 ;; 9065 10.*) 9066 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9067 ;; 9068 esac 9069 fi 9070 ;; 9071 esac 9072 archive_cmds_need_lc=no 9073 hardcode_direct=no 9074 hardcode_automatic=yes 9075 hardcode_shlibpath_var=unsupported 9076 whole_archive_flag_spec='' 9077 link_all_deplibs=yes 9078 if test "$GCC" = yes ; then 9079 output_verbose_link_cmd='echo' 9080 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9081 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9083 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9084 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9085 else 9086 case $cc_basename in 9087 xlc*) 9088 output_verbose_link_cmd='echo' 9089 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9090 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9092 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9093 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9094 ;; 9095 *) 9096 ld_shlibs=no 9097 ;; 9098 esac 9099 fi 9100 ;; 9101 9102 dgux*) 9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9104 hardcode_libdir_flag_spec='-L$libdir' 9105 hardcode_shlibpath_var=no 9106 ;; 9107 9108 freebsd1*) 9109 ld_shlibs=no 9110 ;; 9111 9112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9113 # support. Future versions do this automatically, but an explicit c++rt0.o 9114 # does not break anything, and helps significantly (at the cost of a little 9115 # extra space). 9116 freebsd2.2*) 9117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9118 hardcode_libdir_flag_spec='-R$libdir' 9119 hardcode_direct=yes 9120 hardcode_shlibpath_var=no 9121 ;; 9122 9123 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9124 freebsd2*) 9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9126 hardcode_direct=yes 9127 hardcode_minus_L=yes 9128 hardcode_shlibpath_var=no 9129 ;; 9130 9131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9132 freebsd* | kfreebsd*-gnu | dragonfly*) 9133 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9134 hardcode_libdir_flag_spec='-R$libdir' 9135 hardcode_direct=yes 9136 hardcode_shlibpath_var=no 9137 ;; 9138 9139 hpux9*) 9140 if test "$GCC" = yes; then 9141 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9142 else 9143 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' 9144 fi 9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9146 hardcode_libdir_separator=: 9147 hardcode_direct=yes 9148 9149 # hardcode_minus_L: Not really in the search PATH, 9150 # but as the default location of the library. 9151 hardcode_minus_L=yes 9152 export_dynamic_flag_spec='${wl}-E' 9153 ;; 9154 9155 hpux10*) 9156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9158 else 9159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9160 fi 9161 if test "$with_gnu_ld" = no; then 9162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9163 hardcode_libdir_separator=: 9164 9165 hardcode_direct=yes 9166 export_dynamic_flag_spec='${wl}-E' 9167 9168 # hardcode_minus_L: Not really in the search PATH, 9169 # but as the default location of the library. 9170 hardcode_minus_L=yes 9171 fi 9172 ;; 9173 9174 hpux11*) 9175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9176 case $host_cpu in 9177 hppa*64*) 9178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9179 ;; 9180 ia64*) 9181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9182 ;; 9183 *) 9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9185 ;; 9186 esac 9187 else 9188 case $host_cpu in 9189 hppa*64*) 9190 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9191 ;; 9192 ia64*) 9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9194 ;; 9195 *) 9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9197 ;; 9198 esac 9199 fi 9200 if test "$with_gnu_ld" = no; then 9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9202 hardcode_libdir_separator=: 9203 9204 case $host_cpu in 9205 hppa*64*|ia64*) 9206 hardcode_libdir_flag_spec_ld='+b $libdir' 9207 hardcode_direct=no 9208 hardcode_shlibpath_var=no 9209 ;; 9210 *) 9211 hardcode_direct=yes 9212 export_dynamic_flag_spec='${wl}-E' 9213 9214 # hardcode_minus_L: Not really in the search PATH, 9215 # but as the default location of the library. 9216 hardcode_minus_L=yes 9217 ;; 9218 esac 9219 fi 9220 ;; 9221 9222 irix5* | irix6* | nonstopux*) 9223 if test "$GCC" = yes; then 9224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9225 else 9226 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9227 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9228 fi 9229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9230 hardcode_libdir_separator=: 9231 link_all_deplibs=yes 9232 ;; 9233 9234 netbsd*) 9235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9237 else 9238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9239 fi 9240 hardcode_libdir_flag_spec='-R$libdir' 9241 hardcode_direct=yes 9242 hardcode_shlibpath_var=no 9243 ;; 9244 9245 newsos6) 9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9247 hardcode_direct=yes 9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9249 hardcode_libdir_separator=: 9250 hardcode_shlibpath_var=no 9251 ;; 9252 9253 openbsd*) 9254 hardcode_direct=yes 9255 hardcode_shlibpath_var=no 9256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9260 export_dynamic_flag_spec='${wl}-E' 9261 else 9262 case $host_os in 9263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9265 hardcode_libdir_flag_spec='-R$libdir' 9266 ;; 9267 *) 9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9270 ;; 9271 esac 9272 fi 9273 ;; 9274 9275 os2*) 9276 hardcode_libdir_flag_spec='-L$libdir' 9277 hardcode_minus_L=yes 9278 allow_undefined_flag=unsupported 9279 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' 9280 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9281 ;; 9282 9283 osf3*) 9284 if test "$GCC" = yes; then 9285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9286 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9287 else 9288 allow_undefined_flag=' -expect_unresolved \*' 9289 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9290 fi 9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9292 hardcode_libdir_separator=: 9293 ;; 9294 9295 osf4* | osf5*) # as osf3* with the addition of -msym flag 9296 if test "$GCC" = yes; then 9297 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9298 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9300 else 9301 allow_undefined_flag=' -expect_unresolved \*' 9302 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9303 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9304 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 9305 9306 # Both c and cxx compiler support -rpath directly 9307 hardcode_libdir_flag_spec='-rpath $libdir' 9308 fi 9309 hardcode_libdir_separator=: 9310 ;; 9311 9312 solaris*) 9313 no_undefined_flag=' -z text' 9314 if test "$GCC" = yes; then 9315 wlarc='${wl}' 9316 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9317 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9318 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9319 else 9320 wlarc='' 9321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9322 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9324 fi 9325 hardcode_libdir_flag_spec='-R$libdir' 9326 hardcode_shlibpath_var=no 9327 case $host_os in 9328 solaris2.[0-5] | solaris2.[0-5].*) ;; 9329 *) 9330 # The compiler driver will combine linker options so we 9331 # cannot just pass the convience library names through 9332 # without $wl, iff we do not link with $LD. 9333 # Luckily, gcc supports the same syntax we need for Sun Studio. 9334 # Supported since Solaris 2.6 (maybe 2.5.1?) 9335 case $wlarc in 9336 '') 9337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9338 *) 9339 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 9340 esac ;; 9341 esac 9342 link_all_deplibs=yes 9343 ;; 9344 9345 sunos4*) 9346 if test "x$host_vendor" = xsequent; then 9347 # Use $CC to link under sequent, because it throws in some extra .o 9348 # files that make .init and .fini sections work. 9349 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9350 else 9351 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9352 fi 9353 hardcode_libdir_flag_spec='-L$libdir' 9354 hardcode_direct=yes 9355 hardcode_minus_L=yes 9356 hardcode_shlibpath_var=no 9357 ;; 9358 9359 sysv4) 9360 case $host_vendor in 9361 sni) 9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9363 hardcode_direct=yes # is this really true??? 9364 ;; 9365 siemens) 9366 ## LD is ld it makes a PLAMLIB 9367 ## CC just makes a GrossModule. 9368 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9369 reload_cmds='$CC -r -o $output$reload_objs' 9370 hardcode_direct=no 9371 ;; 9372 motorola) 9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9374 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9375 ;; 9376 esac 9377 runpath_var='LD_RUN_PATH' 9378 hardcode_shlibpath_var=no 9379 ;; 9380 9381 sysv4.3*) 9382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9383 hardcode_shlibpath_var=no 9384 export_dynamic_flag_spec='-Bexport' 9385 ;; 9386 9387 sysv4*MP*) 9388 if test -d /usr/nec; then 9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9390 hardcode_shlibpath_var=no 9391 runpath_var=LD_RUN_PATH 9392 hardcode_runpath_var=yes 9393 ld_shlibs=yes 9394 fi 9395 ;; 9396 9397 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 9398 no_undefined_flag='${wl}-z,text' 9399 archive_cmds_need_lc=no 9400 hardcode_shlibpath_var=no 9401 runpath_var='LD_RUN_PATH' 9402 9403 if test "$GCC" = yes; then 9404 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9406 else 9407 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9409 fi 9410 ;; 9411 9412 sysv5* | sco3.2v5* | sco5v6*) 9413 # Note: We can NOT use -z defs as we might desire, because we do not 9414 # link with -lc, and that would cause any symbols used from libc to 9415 # always be unresolved, which means just about no library would 9416 # ever link correctly. If we're not using GNU ld we use -z text 9417 # though, which does catch some bad symbols but isn't as heavy-handed 9418 # as -z defs. 9419 no_undefined_flag='${wl}-z,text' 9420 allow_undefined_flag='${wl}-z,nodefs' 9421 archive_cmds_need_lc=no 9422 hardcode_shlibpath_var=no 9423 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9424 hardcode_libdir_separator=':' 9425 link_all_deplibs=yes 9426 export_dynamic_flag_spec='${wl}-Bexport' 9427 runpath_var='LD_RUN_PATH' 9428 9429 if test "$GCC" = yes; then 9430 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9432 else 9433 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9435 fi 9436 ;; 9437 9438 uts4*) 9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9440 hardcode_libdir_flag_spec='-L$libdir' 9441 hardcode_shlibpath_var=no 9442 ;; 9443 9444 *) 9445 ld_shlibs=no 9446 ;; 9447 esac 9448 fi 9449 9450{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9451echo "${ECHO_T}$ld_shlibs" >&6; } 9452test "$ld_shlibs" = no && can_build_shared=no 9453 9454# 9455# Do we need to explicitly link libc? 9456# 9457case "x$archive_cmds_need_lc" in 9458x|xyes) 9459 # Assume -lc should be added 9460 archive_cmds_need_lc=yes 9461 9462 if test "$enable_shared" = yes && test "$GCC" = yes; then 9463 case $archive_cmds in 9464 *'~'*) 9465 # FIXME: we may have to deal with multi-command sequences. 9466 ;; 9467 '$CC '*) 9468 # Test whether the compiler implicitly links with -lc since on some 9469 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9470 # to ld, don't add -lc before -lgcc. 9471 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9472echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9473 $rm conftest* 9474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9475 9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9477 (eval $ac_compile) 2>&5 9478 ac_status=$? 9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9480 (exit $ac_status); } 2>conftest.err; then 9481 soname=conftest 9482 lib=conftest 9483 libobjs=conftest.$ac_objext 9484 deplibs= 9485 wl=$lt_prog_compiler_wl 9486 pic_flag=$lt_prog_compiler_pic 9487 compiler_flags=-v 9488 linker_flags=-v 9489 verstring= 9490 output_objdir=. 9491 libname=conftest 9492 lt_save_allow_undefined_flag=$allow_undefined_flag 9493 allow_undefined_flag= 9494 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9495 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9496 ac_status=$? 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); } 9499 then 9500 archive_cmds_need_lc=no 9501 else 9502 archive_cmds_need_lc=yes 9503 fi 9504 allow_undefined_flag=$lt_save_allow_undefined_flag 9505 else 9506 cat conftest.err 1>&5 9507 fi 9508 $rm conftest* 9509 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9510echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9511 ;; 9512 esac 9513 fi 9514 ;; 9515esac 9516 9517{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9518echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9519library_names_spec= 9520libname_spec='lib$name' 9521soname_spec= 9522shrext_cmds=".so" 9523postinstall_cmds= 9524postuninstall_cmds= 9525finish_cmds= 9526finish_eval= 9527shlibpath_var= 9528shlibpath_overrides_runpath=unknown 9529version_type=none 9530dynamic_linker="$host_os ld.so" 9531sys_lib_dlsearch_path_spec="/lib /usr/lib" 9532if test "$GCC" = yes; then 9533 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9534 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9535 # if the path contains ";" then we assume it to be the separator 9536 # otherwise default to the standard path separator (i.e. ":") - it is 9537 # assumed that no part of a normal pathname contains ";" but that should 9538 # okay in the real world where ";" in dirpaths is itself problematic. 9539 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9540 else 9541 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9542 fi 9543else 9544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9545fi 9546need_lib_prefix=unknown 9547hardcode_into_libs=no 9548 9549# when you set need_version to no, make sure it does not cause -set_version 9550# flags to be left without arguments 9551need_version=unknown 9552 9553case $host_os in 9554aix3*) 9555 version_type=linux 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9557 shlibpath_var=LIBPATH 9558 9559 # AIX 3 has no versioning support, so we append a major version to the name. 9560 soname_spec='${libname}${release}${shared_ext}$major' 9561 ;; 9562 9563aix4* | aix5*) 9564 version_type=linux 9565 need_lib_prefix=no 9566 need_version=no 9567 hardcode_into_libs=yes 9568 if test "$host_cpu" = ia64; then 9569 # AIX 5 supports IA64 9570 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9571 shlibpath_var=LD_LIBRARY_PATH 9572 else 9573 # With GCC up to 2.95.x, collect2 would create an import file 9574 # for dependence libraries. The import file would start with 9575 # the line `#! .'. This would cause the generated library to 9576 # depend on `.', always an invalid library. This was fixed in 9577 # development snapshots of GCC prior to 3.0. 9578 case $host_os in 9579 aix4 | aix4.[01] | aix4.[01].*) 9580 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9581 echo ' yes ' 9582 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9583 : 9584 else 9585 can_build_shared=no 9586 fi 9587 ;; 9588 esac 9589 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9590 # soname into executable. Probably we can add versioning support to 9591 # collect2, so additional links can be useful in future. 9592 if test "$aix_use_runtimelinking" = yes; then 9593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9594 # instead of lib<name>.a to let people know that these are not 9595 # typical AIX shared libraries. 9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9597 else 9598 # We preserve .a as extension for shared libraries through AIX4.2 9599 # and later when we are not doing run time linking. 9600 library_names_spec='${libname}${release}.a $libname.a' 9601 soname_spec='${libname}${release}${shared_ext}$major' 9602 fi 9603 shlibpath_var=LIBPATH 9604 fi 9605 ;; 9606 9607amigaos*) 9608 library_names_spec='$libname.ixlibrary $libname.a' 9609 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9610 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 9611 ;; 9612 9613beos*) 9614 library_names_spec='${libname}${shared_ext}' 9615 dynamic_linker="$host_os ld.so" 9616 shlibpath_var=LIBRARY_PATH 9617 ;; 9618 9619bsdi[45]*) 9620 version_type=linux 9621 need_version=no 9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9623 soname_spec='${libname}${release}${shared_ext}$major' 9624 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9625 shlibpath_var=LD_LIBRARY_PATH 9626 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9627 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9628 # the default ld.so.conf also contains /usr/contrib/lib and 9629 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9630 # libtool to hard-code these into programs 9631 ;; 9632 9633cygwin* | mingw* | pw32*) 9634 version_type=windows 9635 shrext_cmds=".dll" 9636 need_version=no 9637 need_lib_prefix=no 9638 9639 case $GCC,$host_os in 9640 yes,cygwin* | yes,mingw* | yes,pw32*) 9641 library_names_spec='$libname.dll.a' 9642 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9643 postinstall_cmds='base_file=`basename \${file}`~ 9644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9645 dldir=$destdir/`dirname \$dlpath`~ 9646 test -d \$dldir || mkdir -p \$dldir~ 9647 $install_prog $dir/$dlname \$dldir/$dlname~ 9648 chmod a+x \$dldir/$dlname' 9649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9650 dlpath=$dir/\$dldll~ 9651 $rm \$dlpath' 9652 shlibpath_overrides_runpath=yes 9653 9654 case $host_os in 9655 cygwin*) 9656 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9659 ;; 9660 mingw*) 9661 # MinGW DLLs use traditional 'lib' prefix 9662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9664 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9665 # It is most probably a Windows format PATH printed by 9666 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9667 # path with ; separators, and with drive letters. We can handle the 9668 # drive letters (cygwin fileutils understands them), so leave them, 9669 # especially as we might pass files found there to a mingw objdump, 9670 # which wouldn't understand a cygwinified path. Ahh. 9671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9672 else 9673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9674 fi 9675 ;; 9676 pw32*) 9677 # pw32 DLLs use 'pw' prefix rather than 'lib' 9678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9679 ;; 9680 esac 9681 ;; 9682 9683 *) 9684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9685 ;; 9686 esac 9687 dynamic_linker='Win32 ld.exe' 9688 # FIXME: first we should search . and the directory the executable is in 9689 shlibpath_var=PATH 9690 ;; 9691 9692darwin* | rhapsody*) 9693 dynamic_linker="$host_os dyld" 9694 version_type=darwin 9695 need_lib_prefix=no 9696 need_version=no 9697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 9698 soname_spec='${libname}${release}${major}$shared_ext' 9699 shlibpath_overrides_runpath=yes 9700 shlibpath_var=DYLD_LIBRARY_PATH 9701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9702 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9703 if test "$GCC" = yes; then 9704 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9705 else 9706 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9707 fi 9708 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9709 ;; 9710 9711dgux*) 9712 version_type=linux 9713 need_lib_prefix=no 9714 need_version=no 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9716 soname_spec='${libname}${release}${shared_ext}$major' 9717 shlibpath_var=LD_LIBRARY_PATH 9718 ;; 9719 9720freebsd1*) 9721 dynamic_linker=no 9722 ;; 9723 9724kfreebsd*-gnu) 9725 version_type=linux 9726 need_lib_prefix=no 9727 need_version=no 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 shlibpath_overrides_runpath=no 9732 hardcode_into_libs=yes 9733 dynamic_linker='GNU ld.so' 9734 ;; 9735 9736freebsd* | dragonfly*) 9737 # DragonFly does not have aout. When/if they implement a new 9738 # versioning mechanism, adjust this. 9739 if test -x /usr/bin/objformat; then 9740 objformat=`/usr/bin/objformat` 9741 else 9742 case $host_os in 9743 freebsd[123]*) objformat=aout ;; 9744 *) objformat=elf ;; 9745 esac 9746 fi 9747 version_type=freebsd-$objformat 9748 case $version_type in 9749 freebsd-elf*) 9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9751 need_version=no 9752 need_lib_prefix=no 9753 ;; 9754 freebsd-*) 9755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9756 need_version=yes 9757 ;; 9758 esac 9759 shlibpath_var=LD_LIBRARY_PATH 9760 case $host_os in 9761 freebsd2*) 9762 shlibpath_overrides_runpath=yes 9763 ;; 9764 freebsd3.[01]* | freebsdelf3.[01]*) 9765 shlibpath_overrides_runpath=yes 9766 hardcode_into_libs=yes 9767 ;; 9768 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9769 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9770 shlibpath_overrides_runpath=no 9771 hardcode_into_libs=yes 9772 ;; 9773 freebsd*) # from 4.6 on 9774 shlibpath_overrides_runpath=yes 9775 hardcode_into_libs=yes 9776 ;; 9777 esac 9778 ;; 9779 9780gnu*) 9781 version_type=linux 9782 need_lib_prefix=no 9783 need_version=no 9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9785 soname_spec='${libname}${release}${shared_ext}$major' 9786 shlibpath_var=LD_LIBRARY_PATH 9787 hardcode_into_libs=yes 9788 ;; 9789 9790hpux9* | hpux10* | hpux11*) 9791 # Give a soname corresponding to the major version so that dld.sl refuses to 9792 # link against other versions. 9793 version_type=sunos 9794 need_lib_prefix=no 9795 need_version=no 9796 case $host_cpu in 9797 ia64*) 9798 shrext_cmds='.so' 9799 hardcode_into_libs=yes 9800 dynamic_linker="$host_os dld.so" 9801 shlibpath_var=LD_LIBRARY_PATH 9802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9804 soname_spec='${libname}${release}${shared_ext}$major' 9805 if test "X$HPUX_IA64_MODE" = X32; then 9806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9807 else 9808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9809 fi 9810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9811 ;; 9812 hppa*64*) 9813 shrext_cmds='.sl' 9814 hardcode_into_libs=yes 9815 dynamic_linker="$host_os dld.sl" 9816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9819 soname_spec='${libname}${release}${shared_ext}$major' 9820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9822 ;; 9823 *) 9824 shrext_cmds='.sl' 9825 dynamic_linker="$host_os dld.sl" 9826 shlibpath_var=SHLIB_PATH 9827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9829 soname_spec='${libname}${release}${shared_ext}$major' 9830 ;; 9831 esac 9832 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9833 postinstall_cmds='chmod 555 $lib' 9834 ;; 9835 9836interix3*) 9837 version_type=linux 9838 need_lib_prefix=no 9839 need_version=no 9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9841 soname_spec='${libname}${release}${shared_ext}$major' 9842 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9843 shlibpath_var=LD_LIBRARY_PATH 9844 shlibpath_overrides_runpath=no 9845 hardcode_into_libs=yes 9846 ;; 9847 9848irix5* | irix6* | nonstopux*) 9849 case $host_os in 9850 nonstopux*) version_type=nonstopux ;; 9851 *) 9852 if test "$lt_cv_prog_gnu_ld" = yes; then 9853 version_type=linux 9854 else 9855 version_type=irix 9856 fi ;; 9857 esac 9858 need_lib_prefix=no 9859 need_version=no 9860 soname_spec='${libname}${release}${shared_ext}$major' 9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9862 case $host_os in 9863 irix5* | nonstopux*) 9864 libsuff= shlibsuff= 9865 ;; 9866 *) 9867 case $LD in # libtool.m4 will add one of these switches to LD 9868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9869 libsuff= shlibsuff= libmagic=32-bit;; 9870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9871 libsuff=32 shlibsuff=N32 libmagic=N32;; 9872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9873 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9874 *) libsuff= shlibsuff= libmagic=never-match;; 9875 esac 9876 ;; 9877 esac 9878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9879 shlibpath_overrides_runpath=no 9880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9882 hardcode_into_libs=yes 9883 ;; 9884 9885# No shared lib support for Linux oldld, aout, or coff. 9886linux*oldld* | linux*aout* | linux*coff*) 9887 dynamic_linker=no 9888 ;; 9889 9890# This must be Linux ELF. 9891linux*) 9892 version_type=linux 9893 need_lib_prefix=no 9894 need_version=no 9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9896 soname_spec='${libname}${release}${shared_ext}$major' 9897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9898 shlibpath_var=LD_LIBRARY_PATH 9899 shlibpath_overrides_runpath=no 9900 # This implies no fast_install, which is unacceptable. 9901 # Some rework will be needed to allow for fast_install 9902 # before this can be enabled. 9903 hardcode_into_libs=yes 9904 9905 # Append ld.so.conf contents to the search path 9906 if test -f /etc/ld.so.conf; then 9907 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9909 fi 9910 9911 # We used to test for /lib/ld.so.1 and disable shared libraries on 9912 # powerpc, because MkLinux only supported shared libraries with the 9913 # GNU dynamic linker. Since this was broken with cross compilers, 9914 # most powerpc-linux boxes support dynamic linking these days and 9915 # people can always --disable-shared, the test was removed, and we 9916 # assume the GNU/Linux dynamic linker is in use. 9917 dynamic_linker='GNU/Linux ld.so' 9918 ;; 9919 9920knetbsd*-gnu) 9921 version_type=linux 9922 need_lib_prefix=no 9923 need_version=no 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9925 soname_spec='${libname}${release}${shared_ext}$major' 9926 shlibpath_var=LD_LIBRARY_PATH 9927 shlibpath_overrides_runpath=no 9928 hardcode_into_libs=yes 9929 dynamic_linker='GNU ld.so' 9930 ;; 9931 9932netbsd*) 9933 version_type=sunos 9934 need_lib_prefix=no 9935 need_version=no 9936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9939 dynamic_linker='NetBSD (a.out) ld.so' 9940 else 9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9942 soname_spec='${libname}${release}${shared_ext}$major' 9943 dynamic_linker='NetBSD ld.elf_so' 9944 fi 9945 shlibpath_var=LD_LIBRARY_PATH 9946 shlibpath_overrides_runpath=yes 9947 hardcode_into_libs=yes 9948 ;; 9949 9950newsos6) 9951 version_type=linux 9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9953 shlibpath_var=LD_LIBRARY_PATH 9954 shlibpath_overrides_runpath=yes 9955 ;; 9956 9957nto-qnx*) 9958 version_type=linux 9959 need_lib_prefix=no 9960 need_version=no 9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9962 soname_spec='${libname}${release}${shared_ext}$major' 9963 shlibpath_var=LD_LIBRARY_PATH 9964 shlibpath_overrides_runpath=yes 9965 ;; 9966 9967openbsd*) 9968 version_type=sunos 9969 sys_lib_dlsearch_path_spec="/usr/lib" 9970 need_lib_prefix=no 9971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9972 case $host_os in 9973 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9974 *) need_version=no ;; 9975 esac 9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9978 shlibpath_var=LD_LIBRARY_PATH 9979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9980 case $host_os in 9981 openbsd2.[89] | openbsd2.[89].*) 9982 shlibpath_overrides_runpath=no 9983 ;; 9984 *) 9985 shlibpath_overrides_runpath=yes 9986 ;; 9987 esac 9988 else 9989 shlibpath_overrides_runpath=yes 9990 fi 9991 ;; 9992 9993os2*) 9994 libname_spec='$name' 9995 shrext_cmds=".dll" 9996 need_lib_prefix=no 9997 library_names_spec='$libname${shared_ext} $libname.a' 9998 dynamic_linker='OS/2 ld.exe' 9999 shlibpath_var=LIBPATH 10000 ;; 10001 10002osf3* | osf4* | osf5*) 10003 version_type=osf 10004 need_lib_prefix=no 10005 need_version=no 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10008 shlibpath_var=LD_LIBRARY_PATH 10009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10011 ;; 10012 10013solaris*) 10014 version_type=linux 10015 need_lib_prefix=no 10016 need_version=no 10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10018 soname_spec='${libname}${release}${shared_ext}$major' 10019 shlibpath_var=LD_LIBRARY_PATH 10020 shlibpath_overrides_runpath=yes 10021 hardcode_into_libs=yes 10022 # ldd complains unless libraries are executable 10023 postinstall_cmds='chmod +x $lib' 10024 ;; 10025 10026sunos4*) 10027 version_type=sunos 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10029 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 shlibpath_overrides_runpath=yes 10032 if test "$with_gnu_ld" = yes; then 10033 need_lib_prefix=no 10034 fi 10035 need_version=yes 10036 ;; 10037 10038sysv4 | sysv4.3*) 10039 version_type=linux 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10041 soname_spec='${libname}${release}${shared_ext}$major' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 case $host_vendor in 10044 sni) 10045 shlibpath_overrides_runpath=no 10046 need_lib_prefix=no 10047 export_dynamic_flag_spec='${wl}-Blargedynsym' 10048 runpath_var=LD_RUN_PATH 10049 ;; 10050 siemens) 10051 need_lib_prefix=no 10052 ;; 10053 motorola) 10054 need_lib_prefix=no 10055 need_version=no 10056 shlibpath_overrides_runpath=no 10057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10058 ;; 10059 esac 10060 ;; 10061 10062sysv4*MP*) 10063 if test -d /usr/nec ;then 10064 version_type=linux 10065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10066 soname_spec='$libname${shared_ext}.$major' 10067 shlibpath_var=LD_LIBRARY_PATH 10068 fi 10069 ;; 10070 10071sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10072 version_type=freebsd-elf 10073 need_lib_prefix=no 10074 need_version=no 10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10076 soname_spec='${libname}${release}${shared_ext}$major' 10077 shlibpath_var=LD_LIBRARY_PATH 10078 hardcode_into_libs=yes 10079 if test "$with_gnu_ld" = yes; then 10080 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10081 shlibpath_overrides_runpath=no 10082 else 10083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10084 shlibpath_overrides_runpath=yes 10085 case $host_os in 10086 sco3.2v5*) 10087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10088 ;; 10089 esac 10090 fi 10091 sys_lib_dlsearch_path_spec='/usr/lib' 10092 ;; 10093 10094uts4*) 10095 version_type=linux 10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10097 soname_spec='${libname}${release}${shared_ext}$major' 10098 shlibpath_var=LD_LIBRARY_PATH 10099 ;; 10100 10101*) 10102 dynamic_linker=no 10103 ;; 10104esac 10105{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10106echo "${ECHO_T}$dynamic_linker" >&6; } 10107test "$dynamic_linker" = no && can_build_shared=no 10108 10109variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10110if test "$GCC" = yes; then 10111 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10112fi 10113 10114{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10115echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10116hardcode_action= 10117if test -n "$hardcode_libdir_flag_spec" || \ 10118 test -n "$runpath_var" || \ 10119 test "X$hardcode_automatic" = "Xyes" ; then 10120 10121 # We can hardcode non-existant directories. 10122 if test "$hardcode_direct" != no && 10123 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10124 # have to relink, otherwise we might link with an installed library 10125 # when we should be linking with a yet-to-be-installed one 10126 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10127 test "$hardcode_minus_L" != no; then 10128 # Linking always hardcodes the temporary library directory. 10129 hardcode_action=relink 10130 else 10131 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10132 hardcode_action=immediate 10133 fi 10134else 10135 # We cannot hardcode anything, or else we can only hardcode existing 10136 # directories. 10137 hardcode_action=unsupported 10138fi 10139{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10140echo "${ECHO_T}$hardcode_action" >&6; } 10141 10142if test "$hardcode_action" = relink; then 10143 # Fast installation is not supported 10144 enable_fast_install=no 10145elif test "$shlibpath_overrides_runpath" = yes || 10146 test "$enable_shared" = no; then 10147 # Fast installation is not necessary 10148 enable_fast_install=needless 10149fi 10150 10151striplib= 10152old_striplib= 10153{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10154echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10155if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10156 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10157 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10158 { echo "$as_me:$LINENO: result: yes" >&5 10159echo "${ECHO_T}yes" >&6; } 10160else 10161# FIXME - insert some real tests, host_os isn't really good enough 10162 case $host_os in 10163 darwin*) 10164 if test -n "$STRIP" ; then 10165 striplib="$STRIP -x" 10166 { echo "$as_me:$LINENO: result: yes" >&5 10167echo "${ECHO_T}yes" >&6; } 10168 else 10169 { echo "$as_me:$LINENO: result: no" >&5 10170echo "${ECHO_T}no" >&6; } 10171fi 10172 ;; 10173 *) 10174 { echo "$as_me:$LINENO: result: no" >&5 10175echo "${ECHO_T}no" >&6; } 10176 ;; 10177 esac 10178fi 10179 10180if test "x$enable_dlopen" != xyes; then 10181 enable_dlopen=unknown 10182 enable_dlopen_self=unknown 10183 enable_dlopen_self_static=unknown 10184else 10185 lt_cv_dlopen=no 10186 lt_cv_dlopen_libs= 10187 10188 case $host_os in 10189 beos*) 10190 lt_cv_dlopen="load_add_on" 10191 lt_cv_dlopen_libs= 10192 lt_cv_dlopen_self=yes 10193 ;; 10194 10195 mingw* | pw32*) 10196 lt_cv_dlopen="LoadLibrary" 10197 lt_cv_dlopen_libs= 10198 ;; 10199 10200 cygwin*) 10201 lt_cv_dlopen="dlopen" 10202 lt_cv_dlopen_libs= 10203 ;; 10204 10205 darwin*) 10206 # if libdl is installed we need to link against it 10207 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10208echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10209if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10210 echo $ECHO_N "(cached) $ECHO_C" >&6 10211else 10212 ac_check_lib_save_LIBS=$LIBS 10213LIBS="-ldl $LIBS" 10214cat >conftest.$ac_ext <<_ACEOF 10215/* confdefs.h. */ 10216_ACEOF 10217cat confdefs.h >>conftest.$ac_ext 10218cat >>conftest.$ac_ext <<_ACEOF 10219/* end confdefs.h. */ 10220 10221/* Override any GCC internal prototype to avoid an error. 10222 Use char because int might match the return type of a GCC 10223 builtin and then its argument prototype would still apply. */ 10224#ifdef __cplusplus 10225extern "C" 10226#endif 10227char dlopen (); 10228int 10229main () 10230{ 10231return dlopen (); 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236rm -f conftest.$ac_objext conftest$ac_exeext 10237if { (ac_try="$ac_link" 10238case "(($ac_try" in 10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10240 *) ac_try_echo=$ac_try;; 10241esac 10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10243 (eval "$ac_link") 2>conftest.er1 10244 ac_status=$? 10245 grep -v '^ *+' conftest.er1 >conftest.err 10246 rm -f conftest.er1 10247 cat conftest.err >&5 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 (exit $ac_status); } && { 10250 test -z "$ac_c_werror_flag" || 10251 test ! -s conftest.err 10252 } && test -s conftest$ac_exeext && 10253 $as_test_x conftest$ac_exeext; then 10254 ac_cv_lib_dl_dlopen=yes 10255else 10256 echo "$as_me: failed program was:" >&5 10257sed 's/^/| /' conftest.$ac_ext >&5 10258 10259 ac_cv_lib_dl_dlopen=no 10260fi 10261 10262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10263 conftest$ac_exeext conftest.$ac_ext 10264LIBS=$ac_check_lib_save_LIBS 10265fi 10266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10267echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10268if test $ac_cv_lib_dl_dlopen = yes; then 10269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10270else 10271 10272 lt_cv_dlopen="dyld" 10273 lt_cv_dlopen_libs= 10274 lt_cv_dlopen_self=yes 10275 10276fi 10277 10278 ;; 10279 10280 *) 10281 { echo "$as_me:$LINENO: checking for shl_load" >&5 10282echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10283if test "${ac_cv_func_shl_load+set}" = set; then 10284 echo $ECHO_N "(cached) $ECHO_C" >&6 10285else 10286 cat >conftest.$ac_ext <<_ACEOF 10287/* confdefs.h. */ 10288_ACEOF 10289cat confdefs.h >>conftest.$ac_ext 10290cat >>conftest.$ac_ext <<_ACEOF 10291/* end confdefs.h. */ 10292/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10293 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10294#define shl_load innocuous_shl_load 10295 10296/* System header to define __stub macros and hopefully few prototypes, 10297 which can conflict with char shl_load (); below. 10298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10299 <limits.h> exists even on freestanding compilers. */ 10300 10301#ifdef __STDC__ 10302# include <limits.h> 10303#else 10304# include <assert.h> 10305#endif 10306 10307#undef shl_load 10308 10309/* Override any GCC internal prototype to avoid an error. 10310 Use char because int might match the return type of a GCC 10311 builtin and then its argument prototype would still apply. */ 10312#ifdef __cplusplus 10313extern "C" 10314#endif 10315char shl_load (); 10316/* The GNU C library defines this for functions which it implements 10317 to always fail with ENOSYS. Some functions are actually named 10318 something starting with __ and the normal name is an alias. */ 10319#if defined __stub_shl_load || defined __stub___shl_load 10320choke me 10321#endif 10322 10323int 10324main () 10325{ 10326return shl_load (); 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331rm -f conftest.$ac_objext conftest$ac_exeext 10332if { (ac_try="$ac_link" 10333case "(($ac_try" in 10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10335 *) ac_try_echo=$ac_try;; 10336esac 10337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10338 (eval "$ac_link") 2>conftest.er1 10339 ac_status=$? 10340 grep -v '^ *+' conftest.er1 >conftest.err 10341 rm -f conftest.er1 10342 cat conftest.err >&5 10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10344 (exit $ac_status); } && { 10345 test -z "$ac_c_werror_flag" || 10346 test ! -s conftest.err 10347 } && test -s conftest$ac_exeext && 10348 $as_test_x conftest$ac_exeext; then 10349 ac_cv_func_shl_load=yes 10350else 10351 echo "$as_me: failed program was:" >&5 10352sed 's/^/| /' conftest.$ac_ext >&5 10353 10354 ac_cv_func_shl_load=no 10355fi 10356 10357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10358 conftest$ac_exeext conftest.$ac_ext 10359fi 10360{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10361echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10362if test $ac_cv_func_shl_load = yes; then 10363 lt_cv_dlopen="shl_load" 10364else 10365 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10366echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10367if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10368 echo $ECHO_N "(cached) $ECHO_C" >&6 10369else 10370 ac_check_lib_save_LIBS=$LIBS 10371LIBS="-ldld $LIBS" 10372cat >conftest.$ac_ext <<_ACEOF 10373/* confdefs.h. */ 10374_ACEOF 10375cat confdefs.h >>conftest.$ac_ext 10376cat >>conftest.$ac_ext <<_ACEOF 10377/* end confdefs.h. */ 10378 10379/* Override any GCC internal prototype to avoid an error. 10380 Use char because int might match the return type of a GCC 10381 builtin and then its argument prototype would still apply. */ 10382#ifdef __cplusplus 10383extern "C" 10384#endif 10385char shl_load (); 10386int 10387main () 10388{ 10389return shl_load (); 10390 ; 10391 return 0; 10392} 10393_ACEOF 10394rm -f conftest.$ac_objext conftest$ac_exeext 10395if { (ac_try="$ac_link" 10396case "(($ac_try" in 10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10398 *) ac_try_echo=$ac_try;; 10399esac 10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10401 (eval "$ac_link") 2>conftest.er1 10402 ac_status=$? 10403 grep -v '^ *+' conftest.er1 >conftest.err 10404 rm -f conftest.er1 10405 cat conftest.err >&5 10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10407 (exit $ac_status); } && { 10408 test -z "$ac_c_werror_flag" || 10409 test ! -s conftest.err 10410 } && test -s conftest$ac_exeext && 10411 $as_test_x conftest$ac_exeext; then 10412 ac_cv_lib_dld_shl_load=yes 10413else 10414 echo "$as_me: failed program was:" >&5 10415sed 's/^/| /' conftest.$ac_ext >&5 10416 10417 ac_cv_lib_dld_shl_load=no 10418fi 10419 10420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10421 conftest$ac_exeext conftest.$ac_ext 10422LIBS=$ac_check_lib_save_LIBS 10423fi 10424{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10425echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10426if test $ac_cv_lib_dld_shl_load = yes; then 10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10428else 10429 { echo "$as_me:$LINENO: checking for dlopen" >&5 10430echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10431if test "${ac_cv_func_dlopen+set}" = set; then 10432 echo $ECHO_N "(cached) $ECHO_C" >&6 10433else 10434 cat >conftest.$ac_ext <<_ACEOF 10435/* confdefs.h. */ 10436_ACEOF 10437cat confdefs.h >>conftest.$ac_ext 10438cat >>conftest.$ac_ext <<_ACEOF 10439/* end confdefs.h. */ 10440/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10441 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10442#define dlopen innocuous_dlopen 10443 10444/* System header to define __stub macros and hopefully few prototypes, 10445 which can conflict with char dlopen (); below. 10446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10447 <limits.h> exists even on freestanding compilers. */ 10448 10449#ifdef __STDC__ 10450# include <limits.h> 10451#else 10452# include <assert.h> 10453#endif 10454 10455#undef dlopen 10456 10457/* Override any GCC internal prototype to avoid an error. 10458 Use char because int might match the return type of a GCC 10459 builtin and then its argument prototype would still apply. */ 10460#ifdef __cplusplus 10461extern "C" 10462#endif 10463char dlopen (); 10464/* The GNU C library defines this for functions which it implements 10465 to always fail with ENOSYS. Some functions are actually named 10466 something starting with __ and the normal name is an alias. */ 10467#if defined __stub_dlopen || defined __stub___dlopen 10468choke me 10469#endif 10470 10471int 10472main () 10473{ 10474return dlopen (); 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479rm -f conftest.$ac_objext conftest$ac_exeext 10480if { (ac_try="$ac_link" 10481case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10486 (eval "$ac_link") 2>conftest.er1 10487 ac_status=$? 10488 grep -v '^ *+' conftest.er1 >conftest.err 10489 rm -f conftest.er1 10490 cat conftest.err >&5 10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); } && { 10493 test -z "$ac_c_werror_flag" || 10494 test ! -s conftest.err 10495 } && test -s conftest$ac_exeext && 10496 $as_test_x conftest$ac_exeext; then 10497 ac_cv_func_dlopen=yes 10498else 10499 echo "$as_me: failed program was:" >&5 10500sed 's/^/| /' conftest.$ac_ext >&5 10501 10502 ac_cv_func_dlopen=no 10503fi 10504 10505rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10506 conftest$ac_exeext conftest.$ac_ext 10507fi 10508{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10509echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10510if test $ac_cv_func_dlopen = yes; then 10511 lt_cv_dlopen="dlopen" 10512else 10513 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10514echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10515if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10516 echo $ECHO_N "(cached) $ECHO_C" >&6 10517else 10518 ac_check_lib_save_LIBS=$LIBS 10519LIBS="-ldl $LIBS" 10520cat >conftest.$ac_ext <<_ACEOF 10521/* confdefs.h. */ 10522_ACEOF 10523cat confdefs.h >>conftest.$ac_ext 10524cat >>conftest.$ac_ext <<_ACEOF 10525/* end confdefs.h. */ 10526 10527/* Override any GCC internal prototype to avoid an error. 10528 Use char because int might match the return type of a GCC 10529 builtin and then its argument prototype would still apply. */ 10530#ifdef __cplusplus 10531extern "C" 10532#endif 10533char dlopen (); 10534int 10535main () 10536{ 10537return dlopen (); 10538 ; 10539 return 0; 10540} 10541_ACEOF 10542rm -f conftest.$ac_objext conftest$ac_exeext 10543if { (ac_try="$ac_link" 10544case "(($ac_try" in 10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10546 *) ac_try_echo=$ac_try;; 10547esac 10548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10549 (eval "$ac_link") 2>conftest.er1 10550 ac_status=$? 10551 grep -v '^ *+' conftest.er1 >conftest.err 10552 rm -f conftest.er1 10553 cat conftest.err >&5 10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10555 (exit $ac_status); } && { 10556 test -z "$ac_c_werror_flag" || 10557 test ! -s conftest.err 10558 } && test -s conftest$ac_exeext && 10559 $as_test_x conftest$ac_exeext; then 10560 ac_cv_lib_dl_dlopen=yes 10561else 10562 echo "$as_me: failed program was:" >&5 10563sed 's/^/| /' conftest.$ac_ext >&5 10564 10565 ac_cv_lib_dl_dlopen=no 10566fi 10567 10568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10569 conftest$ac_exeext conftest.$ac_ext 10570LIBS=$ac_check_lib_save_LIBS 10571fi 10572{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10573echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10574if test $ac_cv_lib_dl_dlopen = yes; then 10575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10576else 10577 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10578echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10579if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10580 echo $ECHO_N "(cached) $ECHO_C" >&6 10581else 10582 ac_check_lib_save_LIBS=$LIBS 10583LIBS="-lsvld $LIBS" 10584cat >conftest.$ac_ext <<_ACEOF 10585/* confdefs.h. */ 10586_ACEOF 10587cat confdefs.h >>conftest.$ac_ext 10588cat >>conftest.$ac_ext <<_ACEOF 10589/* end confdefs.h. */ 10590 10591/* Override any GCC internal prototype to avoid an error. 10592 Use char because int might match the return type of a GCC 10593 builtin and then its argument prototype would still apply. */ 10594#ifdef __cplusplus 10595extern "C" 10596#endif 10597char dlopen (); 10598int 10599main () 10600{ 10601return dlopen (); 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606rm -f conftest.$ac_objext conftest$ac_exeext 10607if { (ac_try="$ac_link" 10608case "(($ac_try" in 10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10610 *) ac_try_echo=$ac_try;; 10611esac 10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10613 (eval "$ac_link") 2>conftest.er1 10614 ac_status=$? 10615 grep -v '^ *+' conftest.er1 >conftest.err 10616 rm -f conftest.er1 10617 cat conftest.err >&5 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); } && { 10620 test -z "$ac_c_werror_flag" || 10621 test ! -s conftest.err 10622 } && test -s conftest$ac_exeext && 10623 $as_test_x conftest$ac_exeext; then 10624 ac_cv_lib_svld_dlopen=yes 10625else 10626 echo "$as_me: failed program was:" >&5 10627sed 's/^/| /' conftest.$ac_ext >&5 10628 10629 ac_cv_lib_svld_dlopen=no 10630fi 10631 10632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10633 conftest$ac_exeext conftest.$ac_ext 10634LIBS=$ac_check_lib_save_LIBS 10635fi 10636{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10637echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10638if test $ac_cv_lib_svld_dlopen = yes; then 10639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10640else 10641 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10642echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10643if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10644 echo $ECHO_N "(cached) $ECHO_C" >&6 10645else 10646 ac_check_lib_save_LIBS=$LIBS 10647LIBS="-ldld $LIBS" 10648cat >conftest.$ac_ext <<_ACEOF 10649/* confdefs.h. */ 10650_ACEOF 10651cat confdefs.h >>conftest.$ac_ext 10652cat >>conftest.$ac_ext <<_ACEOF 10653/* end confdefs.h. */ 10654 10655/* Override any GCC internal prototype to avoid an error. 10656 Use char because int might match the return type of a GCC 10657 builtin and then its argument prototype would still apply. */ 10658#ifdef __cplusplus 10659extern "C" 10660#endif 10661char dld_link (); 10662int 10663main () 10664{ 10665return dld_link (); 10666 ; 10667 return 0; 10668} 10669_ACEOF 10670rm -f conftest.$ac_objext conftest$ac_exeext 10671if { (ac_try="$ac_link" 10672case "(($ac_try" in 10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10674 *) ac_try_echo=$ac_try;; 10675esac 10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10677 (eval "$ac_link") 2>conftest.er1 10678 ac_status=$? 10679 grep -v '^ *+' conftest.er1 >conftest.err 10680 rm -f conftest.er1 10681 cat conftest.err >&5 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10683 (exit $ac_status); } && { 10684 test -z "$ac_c_werror_flag" || 10685 test ! -s conftest.err 10686 } && test -s conftest$ac_exeext && 10687 $as_test_x conftest$ac_exeext; then 10688 ac_cv_lib_dld_dld_link=yes 10689else 10690 echo "$as_me: failed program was:" >&5 10691sed 's/^/| /' conftest.$ac_ext >&5 10692 10693 ac_cv_lib_dld_dld_link=no 10694fi 10695 10696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10697 conftest$ac_exeext conftest.$ac_ext 10698LIBS=$ac_check_lib_save_LIBS 10699fi 10700{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10701echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10702if test $ac_cv_lib_dld_dld_link = yes; then 10703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10704fi 10705 10706 10707fi 10708 10709 10710fi 10711 10712 10713fi 10714 10715 10716fi 10717 10718 10719fi 10720 10721 ;; 10722 esac 10723 10724 if test "x$lt_cv_dlopen" != xno; then 10725 enable_dlopen=yes 10726 else 10727 enable_dlopen=no 10728 fi 10729 10730 case $lt_cv_dlopen in 10731 dlopen) 10732 save_CPPFLAGS="$CPPFLAGS" 10733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10734 10735 save_LDFLAGS="$LDFLAGS" 10736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10737 10738 save_LIBS="$LIBS" 10739 LIBS="$lt_cv_dlopen_libs $LIBS" 10740 10741 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10742echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10743if test "${lt_cv_dlopen_self+set}" = set; then 10744 echo $ECHO_N "(cached) $ECHO_C" >&6 10745else 10746 if test "$cross_compiling" = yes; then : 10747 lt_cv_dlopen_self=cross 10748else 10749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10750 lt_status=$lt_dlunknown 10751 cat > conftest.$ac_ext <<EOF 10752#line 10752 "configure" 10753#include "confdefs.h" 10754 10755#if HAVE_DLFCN_H 10756#include <dlfcn.h> 10757#endif 10758 10759#include <stdio.h> 10760 10761#ifdef RTLD_GLOBAL 10762# define LT_DLGLOBAL RTLD_GLOBAL 10763#else 10764# ifdef DL_GLOBAL 10765# define LT_DLGLOBAL DL_GLOBAL 10766# else 10767# define LT_DLGLOBAL 0 10768# endif 10769#endif 10770 10771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10772 find out it does not work in some platform. */ 10773#ifndef LT_DLLAZY_OR_NOW 10774# ifdef RTLD_LAZY 10775# define LT_DLLAZY_OR_NOW RTLD_LAZY 10776# else 10777# ifdef DL_LAZY 10778# define LT_DLLAZY_OR_NOW DL_LAZY 10779# else 10780# ifdef RTLD_NOW 10781# define LT_DLLAZY_OR_NOW RTLD_NOW 10782# else 10783# ifdef DL_NOW 10784# define LT_DLLAZY_OR_NOW DL_NOW 10785# else 10786# define LT_DLLAZY_OR_NOW 0 10787# endif 10788# endif 10789# endif 10790# endif 10791#endif 10792 10793#ifdef __cplusplus 10794extern "C" void exit (int); 10795#endif 10796 10797void fnord() { int i=42;} 10798int main () 10799{ 10800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10801 int status = $lt_dlunknown; 10802 10803 if (self) 10804 { 10805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10807 /* dlclose (self); */ 10808 } 10809 else 10810 puts (dlerror ()); 10811 10812 exit (status); 10813} 10814EOF 10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10816 (eval $ac_link) 2>&5 10817 ac_status=$? 10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10819 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10820 (./conftest; exit; ) >&5 2>/dev/null 10821 lt_status=$? 10822 case x$lt_status in 10823 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10824 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10825 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10826 esac 10827 else : 10828 # compilation failed 10829 lt_cv_dlopen_self=no 10830 fi 10831fi 10832rm -fr conftest* 10833 10834 10835fi 10836{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10837echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10838 10839 if test "x$lt_cv_dlopen_self" = xyes; then 10840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10841 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10842echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10843if test "${lt_cv_dlopen_self_static+set}" = set; then 10844 echo $ECHO_N "(cached) $ECHO_C" >&6 10845else 10846 if test "$cross_compiling" = yes; then : 10847 lt_cv_dlopen_self_static=cross 10848else 10849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10850 lt_status=$lt_dlunknown 10851 cat > conftest.$ac_ext <<EOF 10852#line 10852 "configure" 10853#include "confdefs.h" 10854 10855#if HAVE_DLFCN_H 10856#include <dlfcn.h> 10857#endif 10858 10859#include <stdio.h> 10860 10861#ifdef RTLD_GLOBAL 10862# define LT_DLGLOBAL RTLD_GLOBAL 10863#else 10864# ifdef DL_GLOBAL 10865# define LT_DLGLOBAL DL_GLOBAL 10866# else 10867# define LT_DLGLOBAL 0 10868# endif 10869#endif 10870 10871/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10872 find out it does not work in some platform. */ 10873#ifndef LT_DLLAZY_OR_NOW 10874# ifdef RTLD_LAZY 10875# define LT_DLLAZY_OR_NOW RTLD_LAZY 10876# else 10877# ifdef DL_LAZY 10878# define LT_DLLAZY_OR_NOW DL_LAZY 10879# else 10880# ifdef RTLD_NOW 10881# define LT_DLLAZY_OR_NOW RTLD_NOW 10882# else 10883# ifdef DL_NOW 10884# define LT_DLLAZY_OR_NOW DL_NOW 10885# else 10886# define LT_DLLAZY_OR_NOW 0 10887# endif 10888# endif 10889# endif 10890# endif 10891#endif 10892 10893#ifdef __cplusplus 10894extern "C" void exit (int); 10895#endif 10896 10897void fnord() { int i=42;} 10898int main () 10899{ 10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10901 int status = $lt_dlunknown; 10902 10903 if (self) 10904 { 10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10907 /* dlclose (self); */ 10908 } 10909 else 10910 puts (dlerror ()); 10911 10912 exit (status); 10913} 10914EOF 10915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10916 (eval $ac_link) 2>&5 10917 ac_status=$? 10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10920 (./conftest; exit; ) >&5 2>/dev/null 10921 lt_status=$? 10922 case x$lt_status in 10923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10925 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10926 esac 10927 else : 10928 # compilation failed 10929 lt_cv_dlopen_self_static=no 10930 fi 10931fi 10932rm -fr conftest* 10933 10934 10935fi 10936{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10937echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10938 fi 10939 10940 CPPFLAGS="$save_CPPFLAGS" 10941 LDFLAGS="$save_LDFLAGS" 10942 LIBS="$save_LIBS" 10943 ;; 10944 esac 10945 10946 case $lt_cv_dlopen_self in 10947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10948 *) enable_dlopen_self=unknown ;; 10949 esac 10950 10951 case $lt_cv_dlopen_self_static in 10952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10953 *) enable_dlopen_self_static=unknown ;; 10954 esac 10955fi 10956 10957 10958# Report which library types will actually be built 10959{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10960echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10961{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10962echo "${ECHO_T}$can_build_shared" >&6; } 10963 10964{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10965echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10966test "$can_build_shared" = "no" && enable_shared=no 10967 10968# On AIX, shared libraries and static libraries use the same namespace, and 10969# are all built from PIC. 10970case $host_os in 10971aix3*) 10972 test "$enable_shared" = yes && enable_static=no 10973 if test -n "$RANLIB"; then 10974 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10975 postinstall_cmds='$RANLIB $lib' 10976 fi 10977 ;; 10978 10979aix4* | aix5*) 10980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10981 test "$enable_shared" = yes && enable_static=no 10982 fi 10983 ;; 10984esac 10985{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10986echo "${ECHO_T}$enable_shared" >&6; } 10987 10988{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10989echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10990# Make sure either enable_shared or enable_static is yes. 10991test "$enable_shared" = yes || enable_static=yes 10992{ echo "$as_me:$LINENO: result: $enable_static" >&5 10993echo "${ECHO_T}$enable_static" >&6; } 10994 10995# The else clause should only fire when bootstrapping the 10996# libtool distribution, otherwise you forgot to ship ltmain.sh 10997# with your package, and you will get complaints that there are 10998# no rules to generate ltmain.sh. 10999if test -f "$ltmain"; then 11000 # See if we are running on zsh, and set the options which allow our commands through 11001 # without removal of \ escapes. 11002 if test -n "${ZSH_VERSION+set}" ; then 11003 setopt NO_GLOB_SUBST 11004 fi 11005 # Now quote all the things that may contain metacharacters while being 11006 # careful not to overquote the AC_SUBSTed values. We take copies of the 11007 # variables and quote the copies for generation of the libtool script. 11008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11009 SED SHELL STRIP \ 11010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11012 deplibs_check_method reload_flag reload_cmds need_locks \ 11013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11014 lt_cv_sys_global_symbol_to_c_name_address \ 11015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11016 old_postinstall_cmds old_postuninstall_cmds \ 11017 compiler \ 11018 CC \ 11019 LD \ 11020 lt_prog_compiler_wl \ 11021 lt_prog_compiler_pic \ 11022 lt_prog_compiler_static \ 11023 lt_prog_compiler_no_builtin_flag \ 11024 export_dynamic_flag_spec \ 11025 thread_safe_flag_spec \ 11026 whole_archive_flag_spec \ 11027 enable_shared_with_static_runtimes \ 11028 old_archive_cmds \ 11029 old_archive_from_new_cmds \ 11030 predep_objects \ 11031 postdep_objects \ 11032 predeps \ 11033 postdeps \ 11034 compiler_lib_search_path \ 11035 archive_cmds \ 11036 archive_expsym_cmds \ 11037 postinstall_cmds \ 11038 postuninstall_cmds \ 11039 old_archive_from_expsyms_cmds \ 11040 allow_undefined_flag \ 11041 no_undefined_flag \ 11042 export_symbols_cmds \ 11043 hardcode_libdir_flag_spec \ 11044 hardcode_libdir_flag_spec_ld \ 11045 hardcode_libdir_separator \ 11046 hardcode_automatic \ 11047 module_cmds \ 11048 module_expsym_cmds \ 11049 lt_cv_prog_compiler_c_o \ 11050 exclude_expsyms \ 11051 include_expsyms; do 11052 11053 case $var in 11054 old_archive_cmds | \ 11055 old_archive_from_new_cmds | \ 11056 archive_cmds | \ 11057 archive_expsym_cmds | \ 11058 module_cmds | \ 11059 module_expsym_cmds | \ 11060 old_archive_from_expsyms_cmds | \ 11061 export_symbols_cmds | \ 11062 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11063 postinstall_cmds | postuninstall_cmds | \ 11064 old_postinstall_cmds | old_postuninstall_cmds | \ 11065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11066 # Double-quote double-evaled strings. 11067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11068 ;; 11069 *) 11070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11071 ;; 11072 esac 11073 done 11074 11075 case $lt_echo in 11076 *'\$0 --fallback-echo"') 11077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11078 ;; 11079 esac 11080 11081cfgfile="${ofile}T" 11082 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11083 $rm -f "$cfgfile" 11084 { echo "$as_me:$LINENO: creating $ofile" >&5 11085echo "$as_me: creating $ofile" >&6;} 11086 11087 cat <<__EOF__ >> "$cfgfile" 11088#! $SHELL 11089 11090# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11091# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11092# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11093# 11094# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11095# Free Software Foundation, Inc. 11096# 11097# This file is part of GNU Libtool: 11098# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11099# 11100# This program is free software; you can redistribute it and/or modify 11101# it under the terms of the GNU General Public License as published by 11102# the Free Software Foundation; either version 2 of the License, or 11103# (at your option) any later version. 11104# 11105# This program is distributed in the hope that it will be useful, but 11106# WITHOUT ANY WARRANTY; without even the implied warranty of 11107# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11108# General Public License for more details. 11109# 11110# You should have received a copy of the GNU General Public License 11111# along with this program; if not, write to the Free Software 11112# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11113# 11114# As a special exception to the GNU General Public License, if you 11115# distribute this file as part of a program that contains a 11116# configuration script generated by Autoconf, you may include it under 11117# the same distribution terms that you use for the rest of that program. 11118 11119# A sed program that does not truncate output. 11120SED=$lt_SED 11121 11122# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11123Xsed="$SED -e 1s/^X//" 11124 11125# The HP-UX ksh and POSIX shell print the target directory to stdout 11126# if CDPATH is set. 11127(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11128 11129# The names of the tagged configurations supported by this script. 11130available_tags= 11131 11132# ### BEGIN LIBTOOL CONFIG 11133 11134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11135 11136# Shell to use when invoking shell scripts. 11137SHELL=$lt_SHELL 11138 11139# Whether or not to build shared libraries. 11140build_libtool_libs=$enable_shared 11141 11142# Whether or not to build static libraries. 11143build_old_libs=$enable_static 11144 11145# Whether or not to add -lc for building shared libraries. 11146build_libtool_need_lc=$archive_cmds_need_lc 11147 11148# Whether or not to disallow shared libs when runtime libs are static 11149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11150 11151# Whether or not to optimize for fast installation. 11152fast_install=$enable_fast_install 11153 11154# The host system. 11155host_alias=$host_alias 11156host=$host 11157host_os=$host_os 11158 11159# The build system. 11160build_alias=$build_alias 11161build=$build 11162build_os=$build_os 11163 11164# An echo program that does not interpret backslashes. 11165echo=$lt_echo 11166 11167# The archiver. 11168AR=$lt_AR 11169AR_FLAGS=$lt_AR_FLAGS 11170 11171# A C compiler. 11172LTCC=$lt_LTCC 11173 11174# LTCC compiler flags. 11175LTCFLAGS=$lt_LTCFLAGS 11176 11177# A language-specific compiler. 11178CC=$lt_compiler 11179 11180# Is the compiler the GNU C compiler? 11181with_gcc=$GCC 11182 11183# An ERE matcher. 11184EGREP=$lt_EGREP 11185 11186# The linker used to build libraries. 11187LD=$lt_LD 11188 11189# Whether we need hard or soft links. 11190LN_S=$lt_LN_S 11191 11192# A BSD-compatible nm program. 11193NM=$lt_NM 11194 11195# A symbol stripping program 11196STRIP=$lt_STRIP 11197 11198# Used to examine libraries when file_magic_cmd begins "file" 11199MAGIC_CMD=$MAGIC_CMD 11200 11201# Used on cygwin: DLL creation program. 11202DLLTOOL="$DLLTOOL" 11203 11204# Used on cygwin: object dumper. 11205OBJDUMP="$OBJDUMP" 11206 11207# Used on cygwin: assembler. 11208AS="$AS" 11209 11210# The name of the directory that contains temporary libtool files. 11211objdir=$objdir 11212 11213# How to create reloadable object files. 11214reload_flag=$lt_reload_flag 11215reload_cmds=$lt_reload_cmds 11216 11217# How to pass a linker flag through the compiler. 11218wl=$lt_lt_prog_compiler_wl 11219 11220# Object file suffix (normally "o"). 11221objext="$ac_objext" 11222 11223# Old archive suffix (normally "a"). 11224libext="$libext" 11225 11226# Shared library suffix (normally ".so"). 11227shrext_cmds='$shrext_cmds' 11228 11229# Executable file suffix (normally ""). 11230exeext="$exeext" 11231 11232# Additional compiler flags for building library objects. 11233pic_flag=$lt_lt_prog_compiler_pic 11234pic_mode=$pic_mode 11235 11236# What is the maximum length of a command? 11237max_cmd_len=$lt_cv_sys_max_cmd_len 11238 11239# Does compiler simultaneously support -c and -o options? 11240compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11241 11242# Must we lock files when doing compilation? 11243need_locks=$lt_need_locks 11244 11245# Do we need the lib prefix for modules? 11246need_lib_prefix=$need_lib_prefix 11247 11248# Do we need a version for libraries? 11249need_version=$need_version 11250 11251# Whether dlopen is supported. 11252dlopen_support=$enable_dlopen 11253 11254# Whether dlopen of programs is supported. 11255dlopen_self=$enable_dlopen_self 11256 11257# Whether dlopen of statically linked programs is supported. 11258dlopen_self_static=$enable_dlopen_self_static 11259 11260# Compiler flag to prevent dynamic linking. 11261link_static_flag=$lt_lt_prog_compiler_static 11262 11263# Compiler flag to turn off builtin functions. 11264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11265 11266# Compiler flag to allow reflexive dlopens. 11267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11268 11269# Compiler flag to generate shared objects directly from archives. 11270whole_archive_flag_spec=$lt_whole_archive_flag_spec 11271 11272# Compiler flag to generate thread-safe objects. 11273thread_safe_flag_spec=$lt_thread_safe_flag_spec 11274 11275# Library versioning type. 11276version_type=$version_type 11277 11278# Format of library name prefix. 11279libname_spec=$lt_libname_spec 11280 11281# List of archive names. First name is the real one, the rest are links. 11282# The last name is the one that the linker finds with -lNAME. 11283library_names_spec=$lt_library_names_spec 11284 11285# The coded name of the library, if different from the real name. 11286soname_spec=$lt_soname_spec 11287 11288# Commands used to build and install an old-style archive. 11289RANLIB=$lt_RANLIB 11290old_archive_cmds=$lt_old_archive_cmds 11291old_postinstall_cmds=$lt_old_postinstall_cmds 11292old_postuninstall_cmds=$lt_old_postuninstall_cmds 11293 11294# Create an old-style archive from a shared archive. 11295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11296 11297# Create a temporary old-style archive to link instead of a shared archive. 11298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11299 11300# Commands used to build and install a shared archive. 11301archive_cmds=$lt_archive_cmds 11302archive_expsym_cmds=$lt_archive_expsym_cmds 11303postinstall_cmds=$lt_postinstall_cmds 11304postuninstall_cmds=$lt_postuninstall_cmds 11305 11306# Commands used to build a loadable module (assumed same as above if empty) 11307module_cmds=$lt_module_cmds 11308module_expsym_cmds=$lt_module_expsym_cmds 11309 11310# Commands to strip libraries. 11311old_striplib=$lt_old_striplib 11312striplib=$lt_striplib 11313 11314# Dependencies to place before the objects being linked to create a 11315# shared library. 11316predep_objects=$lt_predep_objects 11317 11318# Dependencies to place after the objects being linked to create a 11319# shared library. 11320postdep_objects=$lt_postdep_objects 11321 11322# Dependencies to place before the objects being linked to create a 11323# shared library. 11324predeps=$lt_predeps 11325 11326# Dependencies to place after the objects being linked to create a 11327# shared library. 11328postdeps=$lt_postdeps 11329 11330# The library search path used internally by the compiler when linking 11331# a shared library. 11332compiler_lib_search_path=$lt_compiler_lib_search_path 11333 11334# Method to check whether dependent libraries are shared objects. 11335deplibs_check_method=$lt_deplibs_check_method 11336 11337# Command to use when deplibs_check_method == file_magic. 11338file_magic_cmd=$lt_file_magic_cmd 11339 11340# Flag that allows shared libraries with undefined symbols to be built. 11341allow_undefined_flag=$lt_allow_undefined_flag 11342 11343# Flag that forces no undefined symbols. 11344no_undefined_flag=$lt_no_undefined_flag 11345 11346# Commands used to finish a libtool library installation in a directory. 11347finish_cmds=$lt_finish_cmds 11348 11349# Same as above, but a single script fragment to be evaled but not shown. 11350finish_eval=$lt_finish_eval 11351 11352# Take the output of nm and produce a listing of raw symbols and C names. 11353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11354 11355# Transform the output of nm in a proper C declaration 11356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11357 11358# Transform the output of nm in a C name address pair 11359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11360 11361# This is the shared library runtime path variable. 11362runpath_var=$runpath_var 11363 11364# This is the shared library path variable. 11365shlibpath_var=$shlibpath_var 11366 11367# Is shlibpath searched before the hard-coded library search path? 11368shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11369 11370# How to hardcode a shared library path into an executable. 11371hardcode_action=$hardcode_action 11372 11373# Whether we should hardcode library paths into libraries. 11374hardcode_into_libs=$hardcode_into_libs 11375 11376# Flag to hardcode \$libdir into a binary during linking. 11377# This must work even if \$libdir does not exist. 11378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11379 11380# If ld is used when linking, flag to hardcode \$libdir into 11381# a binary during linking. This must work even if \$libdir does 11382# not exist. 11383hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11384 11385# Whether we need a single -rpath flag with a separated argument. 11386hardcode_libdir_separator=$lt_hardcode_libdir_separator 11387 11388# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11389# resulting binary. 11390hardcode_direct=$hardcode_direct 11391 11392# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11393# resulting binary. 11394hardcode_minus_L=$hardcode_minus_L 11395 11396# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11397# the resulting binary. 11398hardcode_shlibpath_var=$hardcode_shlibpath_var 11399 11400# Set to yes if building a shared library automatically hardcodes DIR into the library 11401# and all subsequent libraries and executables linked against it. 11402hardcode_automatic=$hardcode_automatic 11403 11404# Variables whose values should be saved in libtool wrapper scripts and 11405# restored at relink time. 11406variables_saved_for_relink="$variables_saved_for_relink" 11407 11408# Whether libtool must link a program against all its dependency libraries. 11409link_all_deplibs=$link_all_deplibs 11410 11411# Compile-time system search path for libraries 11412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11413 11414# Run-time system search path for libraries 11415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11416 11417# Fix the shell variable \$srcfile for the compiler. 11418fix_srcfile_path="$fix_srcfile_path" 11419 11420# Set to yes if exported symbols are required. 11421always_export_symbols=$always_export_symbols 11422 11423# The commands to list exported symbols. 11424export_symbols_cmds=$lt_export_symbols_cmds 11425 11426# The commands to extract the exported symbol list from a shared archive. 11427extract_expsyms_cmds=$lt_extract_expsyms_cmds 11428 11429# Symbols that should not be listed in the preloaded symbols. 11430exclude_expsyms=$lt_exclude_expsyms 11431 11432# Symbols that must always be exported. 11433include_expsyms=$lt_include_expsyms 11434 11435# ### END LIBTOOL CONFIG 11436 11437__EOF__ 11438 11439 11440 case $host_os in 11441 aix3*) 11442 cat <<\EOF >> "$cfgfile" 11443 11444# AIX sometimes has problems with the GCC collect2 program. For some 11445# reason, if we set the COLLECT_NAMES environment variable, the problems 11446# vanish in a puff of smoke. 11447if test "X${COLLECT_NAMES+set}" != Xset; then 11448 COLLECT_NAMES= 11449 export COLLECT_NAMES 11450fi 11451EOF 11452 ;; 11453 esac 11454 11455 # We use sed instead of cat because bash on DJGPP gets confused if 11456 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11457 # text mode, it properly converts lines to CR/LF. This bash problem 11458 # is reportedly fixed, but why not run on old versions too? 11459 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11460 11461 mv -f "$cfgfile" "$ofile" || \ 11462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11463 chmod +x "$ofile" 11464 11465else 11466 # If there is no Makefile yet, we rely on a make rule to execute 11467 # `config.status --recheck' to rerun these tests and create the 11468 # libtool script then. 11469 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11470 if test -f "$ltmain_in"; then 11471 test -f Makefile && make "$ltmain" 11472 fi 11473fi 11474 11475 11476ac_ext=c 11477ac_cpp='$CPP $CPPFLAGS' 11478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11480ac_compiler_gnu=$ac_cv_c_compiler_gnu 11481 11482CC="$lt_save_CC" 11483 11484 11485# Check whether --with-tags was given. 11486if test "${with_tags+set}" = set; then 11487 withval=$with_tags; tagnames="$withval" 11488fi 11489 11490 11491if test -f "$ltmain" && test -n "$tagnames"; then 11492 if test ! -f "${ofile}"; then 11493 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11494echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11495 fi 11496 11497 if test -z "$LTCC"; then 11498 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11499 if test -z "$LTCC"; then 11500 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11501echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11502 else 11503 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11504echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11505 fi 11506 fi 11507 if test -z "$LTCFLAGS"; then 11508 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11509 fi 11510 11511 # Extract list of available tagged configurations in $ofile. 11512 # Note that this assumes the entire list is on one line. 11513 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11514 11515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11516 for tagname in $tagnames; do 11517 IFS="$lt_save_ifs" 11518 # Check whether tagname contains only valid characters 11519 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11520 "") ;; 11521 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11522echo "$as_me: error: invalid tag name: $tagname" >&2;} 11523 { (exit 1); exit 1; }; } 11524 ;; 11525 esac 11526 11527 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11528 then 11529 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11530echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11531 { (exit 1); exit 1; }; } 11532 fi 11533 11534 # Update the list of available tags. 11535 if test -n "$tagname"; then 11536 echo appending configuration tag \"$tagname\" to $ofile 11537 11538 case $tagname in 11539 CXX) 11540 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11542 (test "X$CXX" != "Xg++"))) ; then 11543 ac_ext=cpp 11544ac_cpp='$CXXCPP $CPPFLAGS' 11545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11548 11549 11550 11551 11552archive_cmds_need_lc_CXX=no 11553allow_undefined_flag_CXX= 11554always_export_symbols_CXX=no 11555archive_expsym_cmds_CXX= 11556export_dynamic_flag_spec_CXX= 11557hardcode_direct_CXX=no 11558hardcode_libdir_flag_spec_CXX= 11559hardcode_libdir_flag_spec_ld_CXX= 11560hardcode_libdir_separator_CXX= 11561hardcode_minus_L_CXX=no 11562hardcode_shlibpath_var_CXX=unsupported 11563hardcode_automatic_CXX=no 11564module_cmds_CXX= 11565module_expsym_cmds_CXX= 11566link_all_deplibs_CXX=unknown 11567old_archive_cmds_CXX=$old_archive_cmds 11568no_undefined_flag_CXX= 11569whole_archive_flag_spec_CXX= 11570enable_shared_with_static_runtimes_CXX=no 11571 11572# Dependencies to place before and after the object being linked: 11573predep_objects_CXX= 11574postdep_objects_CXX= 11575predeps_CXX= 11576postdeps_CXX= 11577compiler_lib_search_path_CXX= 11578 11579# Source file extension for C++ test sources. 11580ac_ext=cpp 11581 11582# Object file extension for compiled C++ test sources. 11583objext=o 11584objext_CXX=$objext 11585 11586# Code to be used in simple compile tests 11587lt_simple_compile_test_code="int some_variable = 0;\n" 11588 11589# Code to be used in simple link tests 11590lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11591 11592# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11593 11594# If no C compiler was specified, use CC. 11595LTCC=${LTCC-"$CC"} 11596 11597# If no C compiler flags were specified, use CFLAGS. 11598LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11599 11600# Allow CC to be a program name with arguments. 11601compiler=$CC 11602 11603 11604# save warnings/boilerplate of simple test code 11605ac_outfile=conftest.$ac_objext 11606printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11608_lt_compiler_boilerplate=`cat conftest.err` 11609$rm conftest* 11610 11611ac_outfile=conftest.$ac_objext 11612printf "$lt_simple_link_test_code" >conftest.$ac_ext 11613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11614_lt_linker_boilerplate=`cat conftest.err` 11615$rm conftest* 11616 11617 11618# Allow CC to be a program name with arguments. 11619lt_save_CC=$CC 11620lt_save_LD=$LD 11621lt_save_GCC=$GCC 11622GCC=$GXX 11623lt_save_with_gnu_ld=$with_gnu_ld 11624lt_save_path_LD=$lt_cv_path_LD 11625if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11626 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11627else 11628 $as_unset lt_cv_prog_gnu_ld 11629fi 11630if test -n "${lt_cv_path_LDCXX+set}"; then 11631 lt_cv_path_LD=$lt_cv_path_LDCXX 11632else 11633 $as_unset lt_cv_path_LD 11634fi 11635test -z "${LDCXX+set}" || LD=$LDCXX 11636CC=${CXX-"c++"} 11637compiler=$CC 11638compiler_CXX=$CC 11639for cc_temp in $compiler""; do 11640 case $cc_temp in 11641 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11642 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11643 \-*) ;; 11644 *) break;; 11645 esac 11646done 11647cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11648 11649 11650# We don't want -fno-exception wen compiling C++ code, so set the 11651# no_builtin_flag separately 11652if test "$GXX" = yes; then 11653 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11654else 11655 lt_prog_compiler_no_builtin_flag_CXX= 11656fi 11657 11658if test "$GXX" = yes; then 11659 # Set up default GNU C++ configuration 11660 11661 11662# Check whether --with-gnu-ld was given. 11663if test "${with_gnu_ld+set}" = set; then 11664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11665else 11666 with_gnu_ld=no 11667fi 11668 11669ac_prog=ld 11670if test "$GCC" = yes; then 11671 # Check if gcc -print-prog-name=ld gives a path. 11672 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11673echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11674 case $host in 11675 *-*-mingw*) 11676 # gcc leaves a trailing carriage return which upsets mingw 11677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11678 *) 11679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11680 esac 11681 case $ac_prog in 11682 # Accept absolute paths. 11683 [\\/]* | ?:[\\/]*) 11684 re_direlt='/[^/][^/]*/\.\./' 11685 # Canonicalize the pathname of ld 11686 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11688 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11689 done 11690 test -z "$LD" && LD="$ac_prog" 11691 ;; 11692 "") 11693 # If it fails, then pretend we aren't using GCC. 11694 ac_prog=ld 11695 ;; 11696 *) 11697 # If it is relative, then search for the first ld in PATH. 11698 with_gnu_ld=unknown 11699 ;; 11700 esac 11701elif test "$with_gnu_ld" = yes; then 11702 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11703echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11704else 11705 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11706echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11707fi 11708if test "${lt_cv_path_LD+set}" = set; then 11709 echo $ECHO_N "(cached) $ECHO_C" >&6 11710else 11711 if test -z "$LD"; then 11712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11713 for ac_dir in $PATH; do 11714 IFS="$lt_save_ifs" 11715 test -z "$ac_dir" && ac_dir=. 11716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11717 lt_cv_path_LD="$ac_dir/$ac_prog" 11718 # Check to see if the program is GNU ld. I'd rather use --version, 11719 # but apparently some variants of GNU ld only accept -v. 11720 # Break only if it was the GNU/non-GNU ld that we prefer. 11721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11722 *GNU* | *'with BFD'*) 11723 test "$with_gnu_ld" != no && break 11724 ;; 11725 *) 11726 test "$with_gnu_ld" != yes && break 11727 ;; 11728 esac 11729 fi 11730 done 11731 IFS="$lt_save_ifs" 11732else 11733 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11734fi 11735fi 11736 11737LD="$lt_cv_path_LD" 11738if test -n "$LD"; then 11739 { echo "$as_me:$LINENO: result: $LD" >&5 11740echo "${ECHO_T}$LD" >&6; } 11741else 11742 { echo "$as_me:$LINENO: result: no" >&5 11743echo "${ECHO_T}no" >&6; } 11744fi 11745test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11746echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11747 { (exit 1); exit 1; }; } 11748{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11749echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11750if test "${lt_cv_prog_gnu_ld+set}" = set; then 11751 echo $ECHO_N "(cached) $ECHO_C" >&6 11752else 11753 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11754case `$LD -v 2>&1 </dev/null` in 11755*GNU* | *'with BFD'*) 11756 lt_cv_prog_gnu_ld=yes 11757 ;; 11758*) 11759 lt_cv_prog_gnu_ld=no 11760 ;; 11761esac 11762fi 11763{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11764echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11765with_gnu_ld=$lt_cv_prog_gnu_ld 11766 11767 11768 11769 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11770 # archiving commands below assume that GNU ld is being used. 11771 if test "$with_gnu_ld" = yes; then 11772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11773 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11774 11775 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11777 11778 # If archive_cmds runs LD, not CC, wlarc should be empty 11779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11780 # investigate it a little bit more. (MM) 11781 wlarc='${wl}' 11782 11783 # ancient GNU ld didn't support --whole-archive et. al. 11784 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11785 grep 'no-whole-archive' > /dev/null; then 11786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11787 else 11788 whole_archive_flag_spec_CXX= 11789 fi 11790 else 11791 with_gnu_ld=no 11792 wlarc= 11793 11794 # A generic and very simple default shared library creation 11795 # command for GNU C++ for the case where it uses the native 11796 # linker, instead of GNU ld. If possible, this setting should 11797 # overridden to take advantage of the native linker features on 11798 # the platform it is being used on. 11799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11800 fi 11801 11802 # Commands to make compiler produce verbose output that lists 11803 # what "hidden" libraries, object files and flags are used when 11804 # linking a shared library. 11805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11806 11807else 11808 GXX=no 11809 with_gnu_ld=no 11810 wlarc= 11811fi 11812 11813# PORTME: fill in a description of your system's C++ link characteristics 11814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11816ld_shlibs_CXX=yes 11817case $host_os in 11818 aix3*) 11819 # FIXME: insert proper C++ library support 11820 ld_shlibs_CXX=no 11821 ;; 11822 aix4* | aix5*) 11823 if test "$host_cpu" = ia64; then 11824 # On IA64, the linker does run time linking by default, so we don't 11825 # have to do anything special. 11826 aix_use_runtimelinking=no 11827 exp_sym_flag='-Bexport' 11828 no_entry_flag="" 11829 else 11830 aix_use_runtimelinking=no 11831 11832 # Test if we are trying to use run time linking or normal 11833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11834 # need to do runtime linking. 11835 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11836 for ld_flag in $LDFLAGS; do 11837 case $ld_flag in 11838 *-brtl*) 11839 aix_use_runtimelinking=yes 11840 break 11841 ;; 11842 esac 11843 done 11844 ;; 11845 esac 11846 11847 exp_sym_flag='-bexport' 11848 no_entry_flag='-bnoentry' 11849 fi 11850 11851 # When large executables or shared objects are built, AIX ld can 11852 # have problems creating the table of contents. If linking a library 11853 # or program results in "error TOC overflow" add -mminimal-toc to 11854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11856 11857 archive_cmds_CXX='' 11858 hardcode_direct_CXX=yes 11859 hardcode_libdir_separator_CXX=':' 11860 link_all_deplibs_CXX=yes 11861 11862 if test "$GXX" = yes; then 11863 case $host_os in aix4.[012]|aix4.[012].*) 11864 # We only want to do this on AIX 4.2 and lower, the check 11865 # below for broken collect2 doesn't work under 4.3+ 11866 collect2name=`${CC} -print-prog-name=collect2` 11867 if test -f "$collect2name" && \ 11868 strings "$collect2name" | grep resolve_lib_name >/dev/null 11869 then 11870 # We have reworked collect2 11871 hardcode_direct_CXX=yes 11872 else 11873 # We have old collect2 11874 hardcode_direct_CXX=unsupported 11875 # It fails to find uninstalled libraries when the uninstalled 11876 # path is not listed in the libpath. Setting hardcode_minus_L 11877 # to unsupported forces relinking 11878 hardcode_minus_L_CXX=yes 11879 hardcode_libdir_flag_spec_CXX='-L$libdir' 11880 hardcode_libdir_separator_CXX= 11881 fi 11882 ;; 11883 esac 11884 shared_flag='-shared' 11885 if test "$aix_use_runtimelinking" = yes; then 11886 shared_flag="$shared_flag "'${wl}-G' 11887 fi 11888 else 11889 # not using gcc 11890 if test "$host_cpu" = ia64; then 11891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11892 # chokes on -Wl,-G. The following line is correct: 11893 shared_flag='-G' 11894 else 11895 if test "$aix_use_runtimelinking" = yes; then 11896 shared_flag='${wl}-G' 11897 else 11898 shared_flag='${wl}-bM:SRE' 11899 fi 11900 fi 11901 fi 11902 11903 # It seems that -bexpall does not export symbols beginning with 11904 # underscore (_), so it is better to generate a list of symbols to export. 11905 always_export_symbols_CXX=yes 11906 if test "$aix_use_runtimelinking" = yes; then 11907 # Warning - without using the other runtime loading flags (-brtl), 11908 # -berok will link without error, but may produce a broken library. 11909 allow_undefined_flag_CXX='-berok' 11910 # Determine the default libpath from the value encoded in an empty executable. 11911 cat >conftest.$ac_ext <<_ACEOF 11912/* confdefs.h. */ 11913_ACEOF 11914cat confdefs.h >>conftest.$ac_ext 11915cat >>conftest.$ac_ext <<_ACEOF 11916/* end confdefs.h. */ 11917 11918int 11919main () 11920{ 11921 11922 ; 11923 return 0; 11924} 11925_ACEOF 11926rm -f conftest.$ac_objext conftest$ac_exeext 11927if { (ac_try="$ac_link" 11928case "(($ac_try" in 11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11930 *) ac_try_echo=$ac_try;; 11931esac 11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11933 (eval "$ac_link") 2>conftest.er1 11934 ac_status=$? 11935 grep -v '^ *+' conftest.er1 >conftest.err 11936 rm -f conftest.er1 11937 cat conftest.err >&5 11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11939 (exit $ac_status); } && { 11940 test -z "$ac_cxx_werror_flag" || 11941 test ! -s conftest.err 11942 } && test -s conftest$ac_exeext && 11943 $as_test_x conftest$ac_exeext; then 11944 11945aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11946}'` 11947# Check for a 64-bit object if we didn't find anything. 11948if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11949}'`; fi 11950else 11951 echo "$as_me: failed program was:" >&5 11952sed 's/^/| /' conftest.$ac_ext >&5 11953 11954 11955fi 11956 11957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11958 conftest$ac_exeext conftest.$ac_ext 11959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11960 11961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11962 11963 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11964 else 11965 if test "$host_cpu" = ia64; then 11966 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11967 allow_undefined_flag_CXX="-z nodefs" 11968 archive_expsym_cmds_CXX="\$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" 11969 else 11970 # Determine the default libpath from the value encoded in an empty executable. 11971 cat >conftest.$ac_ext <<_ACEOF 11972/* confdefs.h. */ 11973_ACEOF 11974cat confdefs.h >>conftest.$ac_ext 11975cat >>conftest.$ac_ext <<_ACEOF 11976/* end confdefs.h. */ 11977 11978int 11979main () 11980{ 11981 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986rm -f conftest.$ac_objext conftest$ac_exeext 11987if { (ac_try="$ac_link" 11988case "(($ac_try" in 11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11990 *) ac_try_echo=$ac_try;; 11991esac 11992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11993 (eval "$ac_link") 2>conftest.er1 11994 ac_status=$? 11995 grep -v '^ *+' conftest.er1 >conftest.err 11996 rm -f conftest.er1 11997 cat conftest.err >&5 11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11999 (exit $ac_status); } && { 12000 test -z "$ac_cxx_werror_flag" || 12001 test ! -s conftest.err 12002 } && test -s conftest$ac_exeext && 12003 $as_test_x conftest$ac_exeext; then 12004 12005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12006}'` 12007# Check for a 64-bit object if we didn't find anything. 12008if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12009}'`; fi 12010else 12011 echo "$as_me: failed program was:" >&5 12012sed 's/^/| /' conftest.$ac_ext >&5 12013 12014 12015fi 12016 12017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12018 conftest$ac_exeext conftest.$ac_ext 12019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12020 12021 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12022 # Warning - without using the other run time loading flags, 12023 # -berok will link without error, but may produce a broken library. 12024 no_undefined_flag_CXX=' ${wl}-bernotok' 12025 allow_undefined_flag_CXX=' ${wl}-berok' 12026 # Exported symbols can be pulled into shared objects from archives 12027 whole_archive_flag_spec_CXX='$convenience' 12028 archive_cmds_need_lc_CXX=yes 12029 # This is similar to how AIX traditionally builds its shared libraries. 12030 archive_expsym_cmds_CXX="\$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' 12031 fi 12032 fi 12033 ;; 12034 12035 beos*) 12036 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12037 allow_undefined_flag_CXX=unsupported 12038 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12039 # support --undefined. This deserves some investigation. FIXME 12040 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12041 else 12042 ld_shlibs_CXX=no 12043 fi 12044 ;; 12045 12046 chorus*) 12047 case $cc_basename in 12048 *) 12049 # FIXME: insert proper C++ library support 12050 ld_shlibs_CXX=no 12051 ;; 12052 esac 12053 ;; 12054 12055 cygwin* | mingw* | pw32*) 12056 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12057 # as there is no search path for DLLs. 12058 hardcode_libdir_flag_spec_CXX='-L$libdir' 12059 allow_undefined_flag_CXX=unsupported 12060 always_export_symbols_CXX=no 12061 enable_shared_with_static_runtimes_CXX=yes 12062 12063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12064 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12065 # If the export-symbols file already is a .def file (1st line 12066 # is EXPORTS), use it as is; otherwise, prepend... 12067 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12068 cp $export_symbols $output_objdir/$soname.def; 12069 else 12070 echo EXPORTS > $output_objdir/$soname.def; 12071 cat $export_symbols >> $output_objdir/$soname.def; 12072 fi~ 12073 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12074 else 12075 ld_shlibs_CXX=no 12076 fi 12077 ;; 12078 darwin* | rhapsody*) 12079 case $host_os in 12080 rhapsody* | darwin1.[012]) 12081 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12082 ;; 12083 *) # Darwin 1.3 on 12084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12085 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12086 else 12087 case ${MACOSX_DEPLOYMENT_TARGET} in 12088 10.[012]) 12089 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12090 ;; 12091 10.*) 12092 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12093 ;; 12094 esac 12095 fi 12096 ;; 12097 esac 12098 archive_cmds_need_lc_CXX=no 12099 hardcode_direct_CXX=no 12100 hardcode_automatic_CXX=yes 12101 hardcode_shlibpath_var_CXX=unsupported 12102 whole_archive_flag_spec_CXX='' 12103 link_all_deplibs_CXX=yes 12104 12105 if test "$GXX" = yes ; then 12106 lt_int_apple_cc_single_mod=no 12107 output_verbose_link_cmd='echo' 12108 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12109 lt_int_apple_cc_single_mod=yes 12110 fi 12111 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12112 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12113 else 12114 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12115 fi 12116 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12118 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12119 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12120 else 12121 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12122 fi 12123 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12124 else 12125 case $cc_basename in 12126 xlc*) 12127 output_verbose_link_cmd='echo' 12128 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 12129 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12131 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12132 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12133 ;; 12134 *) 12135 ld_shlibs_CXX=no 12136 ;; 12137 esac 12138 fi 12139 ;; 12140 12141 dgux*) 12142 case $cc_basename in 12143 ec++*) 12144 # FIXME: insert proper C++ library support 12145 ld_shlibs_CXX=no 12146 ;; 12147 ghcx*) 12148 # Green Hills C++ Compiler 12149 # FIXME: insert proper C++ library support 12150 ld_shlibs_CXX=no 12151 ;; 12152 *) 12153 # FIXME: insert proper C++ library support 12154 ld_shlibs_CXX=no 12155 ;; 12156 esac 12157 ;; 12158 freebsd[12]*) 12159 # C++ shared libraries reported to be fairly broken before switch to ELF 12160 ld_shlibs_CXX=no 12161 ;; 12162 freebsd-elf*) 12163 archive_cmds_need_lc_CXX=no 12164 ;; 12165 freebsd* | kfreebsd*-gnu | dragonfly*) 12166 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12167 # conventions 12168 ld_shlibs_CXX=yes 12169 ;; 12170 gnu*) 12171 ;; 12172 hpux9*) 12173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12174 hardcode_libdir_separator_CXX=: 12175 export_dynamic_flag_spec_CXX='${wl}-E' 12176 hardcode_direct_CXX=yes 12177 hardcode_minus_L_CXX=yes # Not in the search PATH, 12178 # but as the default 12179 # location of the library. 12180 12181 case $cc_basename in 12182 CC*) 12183 # FIXME: insert proper C++ library support 12184 ld_shlibs_CXX=no 12185 ;; 12186 aCC*) 12187 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12188 # Commands to make compiler produce verbose output that lists 12189 # what "hidden" libraries, object files and flags are used when 12190 # linking a shared library. 12191 # 12192 # There doesn't appear to be a way to prevent this compiler from 12193 # explicitly linking system object files so we need to strip them 12194 # from the output so that they don't get included in the library 12195 # dependencies. 12196 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12197 ;; 12198 *) 12199 if test "$GXX" = yes; then 12200 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12201 else 12202 # FIXME: insert proper C++ library support 12203 ld_shlibs_CXX=no 12204 fi 12205 ;; 12206 esac 12207 ;; 12208 hpux10*|hpux11*) 12209 if test $with_gnu_ld = no; then 12210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12211 hardcode_libdir_separator_CXX=: 12212 12213 case $host_cpu in 12214 hppa*64*|ia64*) 12215 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12216 ;; 12217 *) 12218 export_dynamic_flag_spec_CXX='${wl}-E' 12219 ;; 12220 esac 12221 fi 12222 case $host_cpu in 12223 hppa*64*|ia64*) 12224 hardcode_direct_CXX=no 12225 hardcode_shlibpath_var_CXX=no 12226 ;; 12227 *) 12228 hardcode_direct_CXX=yes 12229 hardcode_minus_L_CXX=yes # Not in the search PATH, 12230 # but as the default 12231 # location of the library. 12232 ;; 12233 esac 12234 12235 case $cc_basename in 12236 CC*) 12237 # FIXME: insert proper C++ library support 12238 ld_shlibs_CXX=no 12239 ;; 12240 aCC*) 12241 case $host_cpu in 12242 hppa*64*) 12243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12244 ;; 12245 ia64*) 12246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12247 ;; 12248 *) 12249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12250 ;; 12251 esac 12252 # Commands to make compiler produce verbose output that lists 12253 # what "hidden" libraries, object files and flags are used when 12254 # linking a shared library. 12255 # 12256 # There doesn't appear to be a way to prevent this compiler from 12257 # explicitly linking system object files so we need to strip them 12258 # from the output so that they don't get included in the library 12259 # dependencies. 12260 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12261 ;; 12262 *) 12263 if test "$GXX" = yes; then 12264 if test $with_gnu_ld = no; then 12265 case $host_cpu in 12266 hppa*64*) 12267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12268 ;; 12269 ia64*) 12270 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12271 ;; 12272 *) 12273 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12274 ;; 12275 esac 12276 fi 12277 else 12278 # FIXME: insert proper C++ library support 12279 ld_shlibs_CXX=no 12280 fi 12281 ;; 12282 esac 12283 ;; 12284 interix3*) 12285 hardcode_direct_CXX=no 12286 hardcode_shlibpath_var_CXX=no 12287 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12288 export_dynamic_flag_spec_CXX='${wl}-E' 12289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12290 # Instead, shared libraries are loaded at an image base (0x10000000 by 12291 # default) and relocated if they conflict, which is a slow very memory 12292 # consuming and fragmenting process. To avoid this, we pick a random, 12293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12294 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12295 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12296 archive_expsym_cmds_CXX='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' 12297 ;; 12298 irix5* | irix6*) 12299 case $cc_basename in 12300 CC*) 12301 # SGI C++ 12302 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12303 12304 # Archives containing C++ object files must be created using 12305 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12306 # necessary to make sure instantiated templates are included 12307 # in the archive. 12308 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12309 ;; 12310 *) 12311 if test "$GXX" = yes; then 12312 if test "$with_gnu_ld" = no; then 12313 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12314 else 12315 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12316 fi 12317 fi 12318 link_all_deplibs_CXX=yes 12319 ;; 12320 esac 12321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12322 hardcode_libdir_separator_CXX=: 12323 ;; 12324 linux*) 12325 case $cc_basename in 12326 KCC*) 12327 # Kuck and Associates, Inc. (KAI) C++ Compiler 12328 12329 # KCC will only create a shared library if the output file 12330 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12331 # to its proper name (with version) after linking. 12332 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12333 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12334 # Commands to make compiler produce verbose output that lists 12335 # what "hidden" libraries, object files and flags are used when 12336 # linking a shared library. 12337 # 12338 # There doesn't appear to be a way to prevent this compiler from 12339 # explicitly linking system object files so we need to strip them 12340 # from the output so that they don't get included in the library 12341 # dependencies. 12342 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12343 12344 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12346 12347 # Archives containing C++ object files must be created using 12348 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12350 ;; 12351 icpc*) 12352 # Intel C++ 12353 with_gnu_ld=yes 12354 # version 8.0 and above of icpc choke on multiply defined symbols 12355 # if we add $predep_objects and $postdep_objects, however 7.1 and 12356 # earlier do not add the objects themselves. 12357 case `$CC -V 2>&1` in 12358 *"Version 7."*) 12359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12360 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12361 ;; 12362 *) # Version 8.0 or newer 12363 tmp_idyn= 12364 case $host_cpu in 12365 ia64*) tmp_idyn=' -i_dynamic';; 12366 esac 12367 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12368 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12369 ;; 12370 esac 12371 archive_cmds_need_lc_CXX=no 12372 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12374 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12375 ;; 12376 pgCC*) 12377 # Portland Group C++ compiler 12378 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12379 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12380 12381 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12383 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12384 ;; 12385 cxx*) 12386 # Compaq C++ 12387 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12388 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12389 12390 runpath_var=LD_RUN_PATH 12391 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12392 hardcode_libdir_separator_CXX=: 12393 12394 # Commands to make compiler produce verbose output that lists 12395 # what "hidden" libraries, object files and flags are used when 12396 # linking a shared library. 12397 # 12398 # There doesn't appear to be a way to prevent this compiler from 12399 # explicitly linking system object files so we need to strip them 12400 # from the output so that they don't get included in the library 12401 # dependencies. 12402 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12403 ;; 12404 esac 12405 ;; 12406 lynxos*) 12407 # FIXME: insert proper C++ library support 12408 ld_shlibs_CXX=no 12409 ;; 12410 m88k*) 12411 # FIXME: insert proper C++ library support 12412 ld_shlibs_CXX=no 12413 ;; 12414 mvs*) 12415 case $cc_basename in 12416 cxx*) 12417 # FIXME: insert proper C++ library support 12418 ld_shlibs_CXX=no 12419 ;; 12420 *) 12421 # FIXME: insert proper C++ library support 12422 ld_shlibs_CXX=no 12423 ;; 12424 esac 12425 ;; 12426 netbsd*) 12427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12428 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12429 wlarc= 12430 hardcode_libdir_flag_spec_CXX='-R$libdir' 12431 hardcode_direct_CXX=yes 12432 hardcode_shlibpath_var_CXX=no 12433 fi 12434 # Workaround some broken pre-1.5 toolchains 12435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12436 ;; 12437 openbsd2*) 12438 # C++ shared libraries are fairly broken 12439 ld_shlibs_CXX=no 12440 ;; 12441 openbsd*) 12442 hardcode_direct_CXX=yes 12443 hardcode_shlibpath_var_CXX=no 12444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12447 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12448 export_dynamic_flag_spec_CXX='${wl}-E' 12449 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12450 fi 12451 output_verbose_link_cmd='echo' 12452 ;; 12453 osf3*) 12454 case $cc_basename in 12455 KCC*) 12456 # Kuck and Associates, Inc. (KAI) C++ Compiler 12457 12458 # KCC will only create a shared library if the output file 12459 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12460 # to its proper name (with version) after linking. 12461 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12462 12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12464 hardcode_libdir_separator_CXX=: 12465 12466 # Archives containing C++ object files must be created using 12467 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12468 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12469 12470 ;; 12471 RCC*) 12472 # Rational C++ 2.4.1 12473 # FIXME: insert proper C++ library support 12474 ld_shlibs_CXX=no 12475 ;; 12476 cxx*) 12477 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12478 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12479 12480 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12481 hardcode_libdir_separator_CXX=: 12482 12483 # Commands to make compiler produce verbose output that lists 12484 # what "hidden" libraries, object files and flags are used when 12485 # linking a shared library. 12486 # 12487 # There doesn't appear to be a way to prevent this compiler from 12488 # explicitly linking system object files so we need to strip them 12489 # from the output so that they don't get included in the library 12490 # dependencies. 12491 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12492 ;; 12493 *) 12494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12495 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12496 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12497 12498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12499 hardcode_libdir_separator_CXX=: 12500 12501 # Commands to make compiler produce verbose output that lists 12502 # what "hidden" libraries, object files and flags are used when 12503 # linking a shared library. 12504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12505 12506 else 12507 # FIXME: insert proper C++ library support 12508 ld_shlibs_CXX=no 12509 fi 12510 ;; 12511 esac 12512 ;; 12513 osf4* | osf5*) 12514 case $cc_basename in 12515 KCC*) 12516 # Kuck and Associates, Inc. (KAI) C++ Compiler 12517 12518 # KCC will only create a shared library if the output file 12519 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12520 # to its proper name (with version) after linking. 12521 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12522 12523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12524 hardcode_libdir_separator_CXX=: 12525 12526 # Archives containing C++ object files must be created using 12527 # the KAI C++ compiler. 12528 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12529 ;; 12530 RCC*) 12531 # Rational C++ 2.4.1 12532 # FIXME: insert proper C++ library support 12533 ld_shlibs_CXX=no 12534 ;; 12535 cxx*) 12536 allow_undefined_flag_CXX=' -expect_unresolved \*' 12537 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12538 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12539 echo "-hidden">> $lib.exp~ 12540 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12541 $rm $lib.exp' 12542 12543 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12544 hardcode_libdir_separator_CXX=: 12545 12546 # Commands to make compiler produce verbose output that lists 12547 # what "hidden" libraries, object files and flags are used when 12548 # linking a shared library. 12549 # 12550 # There doesn't appear to be a way to prevent this compiler from 12551 # explicitly linking system object files so we need to strip them 12552 # from the output so that they don't get included in the library 12553 # dependencies. 12554 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12555 ;; 12556 *) 12557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12558 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12559 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12560 12561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12562 hardcode_libdir_separator_CXX=: 12563 12564 # Commands to make compiler produce verbose output that lists 12565 # what "hidden" libraries, object files and flags are used when 12566 # linking a shared library. 12567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12568 12569 else 12570 # FIXME: insert proper C++ library support 12571 ld_shlibs_CXX=no 12572 fi 12573 ;; 12574 esac 12575 ;; 12576 psos*) 12577 # FIXME: insert proper C++ library support 12578 ld_shlibs_CXX=no 12579 ;; 12580 sunos4*) 12581 case $cc_basename in 12582 CC*) 12583 # Sun C++ 4.x 12584 # FIXME: insert proper C++ library support 12585 ld_shlibs_CXX=no 12586 ;; 12587 lcc*) 12588 # Lucid 12589 # FIXME: insert proper C++ library support 12590 ld_shlibs_CXX=no 12591 ;; 12592 *) 12593 # FIXME: insert proper C++ library support 12594 ld_shlibs_CXX=no 12595 ;; 12596 esac 12597 ;; 12598 solaris*) 12599 case $cc_basename in 12600 CC*) 12601 # Sun C++ 4.2, 5.x and Centerline C++ 12602 archive_cmds_need_lc_CXX=yes 12603 no_undefined_flag_CXX=' -zdefs' 12604 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12605 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12606 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12607 12608 hardcode_libdir_flag_spec_CXX='-R$libdir' 12609 hardcode_shlibpath_var_CXX=no 12610 case $host_os in 12611 solaris2.[0-5] | solaris2.[0-5].*) ;; 12612 *) 12613 # The C++ compiler is used as linker so we must use $wl 12614 # flag to pass the commands to the underlying system 12615 # linker. We must also pass each convience library through 12616 # to the system linker between allextract/defaultextract. 12617 # The C++ compiler will combine linker options so we 12618 # cannot just pass the convience library names through 12619 # without $wl. 12620 # Supported since Solaris 2.6 (maybe 2.5.1?) 12621 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12622 ;; 12623 esac 12624 link_all_deplibs_CXX=yes 12625 12626 output_verbose_link_cmd='echo' 12627 12628 # Archives containing C++ object files must be created using 12629 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12630 # necessary to make sure instantiated templates are included 12631 # in the archive. 12632 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12633 ;; 12634 gcx*) 12635 # Green Hills C++ Compiler 12636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12637 12638 # The C++ compiler must be used to create the archive. 12639 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12640 ;; 12641 *) 12642 # GNU C++ compiler with Solaris linker 12643 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12644 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12645 if $CC --version | grep -v '^2\.7' > /dev/null; then 12646 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12647 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12648 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12649 12650 # Commands to make compiler produce verbose output that lists 12651 # what "hidden" libraries, object files and flags are used when 12652 # linking a shared library. 12653 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12654 else 12655 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12656 # platform. 12657 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12658 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12659 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12660 12661 # Commands to make compiler produce verbose output that lists 12662 # what "hidden" libraries, object files and flags are used when 12663 # linking a shared library. 12664 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12665 fi 12666 12667 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12668 fi 12669 ;; 12670 esac 12671 ;; 12672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12673 no_undefined_flag_CXX='${wl}-z,text' 12674 archive_cmds_need_lc_CXX=no 12675 hardcode_shlibpath_var_CXX=no 12676 runpath_var='LD_RUN_PATH' 12677 12678 case $cc_basename in 12679 CC*) 12680 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12682 ;; 12683 *) 12684 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12686 ;; 12687 esac 12688 ;; 12689 sysv5* | sco3.2v5* | sco5v6*) 12690 # Note: We can NOT use -z defs as we might desire, because we do not 12691 # link with -lc, and that would cause any symbols used from libc to 12692 # always be unresolved, which means just about no library would 12693 # ever link correctly. If we're not using GNU ld we use -z text 12694 # though, which does catch some bad symbols but isn't as heavy-handed 12695 # as -z defs. 12696 # For security reasons, it is highly recommended that you always 12697 # use absolute paths for naming shared libraries, and exclude the 12698 # DT_RUNPATH tag from executables and libraries. But doing so 12699 # requires that you compile everything twice, which is a pain. 12700 # So that behaviour is only enabled if SCOABSPATH is set to a 12701 # non-empty value in the environment. Most likely only useful for 12702 # creating official distributions of packages. 12703 # This is a hack until libtool officially supports absolute path 12704 # names for shared libraries. 12705 no_undefined_flag_CXX='${wl}-z,text' 12706 allow_undefined_flag_CXX='${wl}-z,nodefs' 12707 archive_cmds_need_lc_CXX=no 12708 hardcode_shlibpath_var_CXX=no 12709 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12710 hardcode_libdir_separator_CXX=':' 12711 link_all_deplibs_CXX=yes 12712 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12713 runpath_var='LD_RUN_PATH' 12714 12715 case $cc_basename in 12716 CC*) 12717 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12719 ;; 12720 *) 12721 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12723 ;; 12724 esac 12725 ;; 12726 tandem*) 12727 case $cc_basename in 12728 NCC*) 12729 # NonStop-UX NCC 3.20 12730 # FIXME: insert proper C++ library support 12731 ld_shlibs_CXX=no 12732 ;; 12733 *) 12734 # FIXME: insert proper C++ library support 12735 ld_shlibs_CXX=no 12736 ;; 12737 esac 12738 ;; 12739 vxworks*) 12740 # FIXME: insert proper C++ library support 12741 ld_shlibs_CXX=no 12742 ;; 12743 *) 12744 # FIXME: insert proper C++ library support 12745 ld_shlibs_CXX=no 12746 ;; 12747esac 12748{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12749echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12750test "$ld_shlibs_CXX" = no && can_build_shared=no 12751 12752GCC_CXX="$GXX" 12753LD_CXX="$LD" 12754 12755 12756cat > conftest.$ac_ext <<EOF 12757class Foo 12758{ 12759public: 12760 Foo (void) { a = 0; } 12761private: 12762 int a; 12763}; 12764EOF 12765 12766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12767 (eval $ac_compile) 2>&5 12768 ac_status=$? 12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12770 (exit $ac_status); }; then 12771 # Parse the compiler output and extract the necessary 12772 # objects, libraries and library flags. 12773 12774 # Sentinel used to keep track of whether or not we are before 12775 # the conftest object file. 12776 pre_test_object_deps_done=no 12777 12778 # The `*' in the case matches for architectures that use `case' in 12779 # $output_verbose_cmd can trigger glob expansion during the loop 12780 # eval without this substitution. 12781 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12782 12783 for p in `eval $output_verbose_link_cmd`; do 12784 case $p in 12785 12786 -L* | -R* | -l*) 12787 # Some compilers place space between "-{L,R}" and the path. 12788 # Remove the space. 12789 if test $p = "-L" \ 12790 || test $p = "-R"; then 12791 prev=$p 12792 continue 12793 else 12794 prev= 12795 fi 12796 12797 if test "$pre_test_object_deps_done" = no; then 12798 case $p in 12799 -L* | -R*) 12800 # Internal compiler library paths should come after those 12801 # provided the user. The postdeps already come after the 12802 # user supplied libs so there is no need to process them. 12803 if test -z "$compiler_lib_search_path_CXX"; then 12804 compiler_lib_search_path_CXX="${prev}${p}" 12805 else 12806 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12807 fi 12808 ;; 12809 # The "-l" case would never come before the object being 12810 # linked, so don't bother handling this case. 12811 esac 12812 else 12813 if test -z "$postdeps_CXX"; then 12814 postdeps_CXX="${prev}${p}" 12815 else 12816 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12817 fi 12818 fi 12819 ;; 12820 12821 *.$objext) 12822 # This assumes that the test object file only shows up 12823 # once in the compiler output. 12824 if test "$p" = "conftest.$objext"; then 12825 pre_test_object_deps_done=yes 12826 continue 12827 fi 12828 12829 if test "$pre_test_object_deps_done" = no; then 12830 if test -z "$predep_objects_CXX"; then 12831 predep_objects_CXX="$p" 12832 else 12833 predep_objects_CXX="$predep_objects_CXX $p" 12834 fi 12835 else 12836 if test -z "$postdep_objects_CXX"; then 12837 postdep_objects_CXX="$p" 12838 else 12839 postdep_objects_CXX="$postdep_objects_CXX $p" 12840 fi 12841 fi 12842 ;; 12843 12844 *) ;; # Ignore the rest. 12845 12846 esac 12847 done 12848 12849 # Clean up. 12850 rm -f a.out a.exe 12851else 12852 echo "libtool.m4: error: problem compiling CXX test program" 12853fi 12854 12855$rm -f confest.$objext 12856 12857# PORTME: override above test on systems where it is broken 12858case $host_os in 12859interix3*) 12860 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12861 # hack all around it, let's just trust "g++" to DTRT. 12862 predep_objects_CXX= 12863 postdep_objects_CXX= 12864 postdeps_CXX= 12865 ;; 12866 12867solaris*) 12868 case $cc_basename in 12869 CC*) 12870 # Adding this requires a known-good setup of shared libraries for 12871 # Sun compiler versions before 5.6, else PIC objects from an old 12872 # archive will be linked into the output, leading to subtle bugs. 12873 postdeps_CXX='-lCstd -lCrun' 12874 ;; 12875 esac 12876 ;; 12877esac 12878 12879 12880case " $postdeps_CXX " in 12881*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12882esac 12883 12884lt_prog_compiler_wl_CXX= 12885lt_prog_compiler_pic_CXX= 12886lt_prog_compiler_static_CXX= 12887 12888{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12889echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12890 12891 # C++ specific cases for pic, static, wl, etc. 12892 if test "$GXX" = yes; then 12893 lt_prog_compiler_wl_CXX='-Wl,' 12894 lt_prog_compiler_static_CXX='-static' 12895 12896 case $host_os in 12897 aix*) 12898 # All AIX code is PIC. 12899 if test "$host_cpu" = ia64; then 12900 # AIX 5 now supports IA64 processor 12901 lt_prog_compiler_static_CXX='-Bstatic' 12902 fi 12903 ;; 12904 amigaos*) 12905 # FIXME: we need at least 68020 code to build shared libraries, but 12906 # adding the `-m68020' flag to GCC prevents building anything better, 12907 # like `-m68040'. 12908 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12909 ;; 12910 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12911 # PIC is the default for these OSes. 12912 ;; 12913 mingw* | os2* | pw32*) 12914 # This hack is so that the source file can tell whether it is being 12915 # built for inclusion in a dll (and should export symbols for example). 12916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12917 ;; 12918 darwin* | rhapsody*) 12919 # PIC is the default on this platform 12920 # Common symbols not allowed in MH_DYLIB files 12921 lt_prog_compiler_pic_CXX='-fno-common' 12922 ;; 12923 *djgpp*) 12924 # DJGPP does not support shared libraries at all 12925 lt_prog_compiler_pic_CXX= 12926 ;; 12927 interix3*) 12928 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12929 # Instead, we relocate shared libraries at runtime. 12930 ;; 12931 sysv4*MP*) 12932 if test -d /usr/nec; then 12933 lt_prog_compiler_pic_CXX=-Kconform_pic 12934 fi 12935 ;; 12936 hpux*) 12937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12938 # not for PA HP-UX. 12939 case $host_cpu in 12940 hppa*64*|ia64*) 12941 ;; 12942 *) 12943 lt_prog_compiler_pic_CXX='-fPIC' 12944 ;; 12945 esac 12946 ;; 12947 *) 12948 lt_prog_compiler_pic_CXX='-fPIC' 12949 ;; 12950 esac 12951 else 12952 case $host_os in 12953 aix4* | aix5*) 12954 # All AIX code is PIC. 12955 if test "$host_cpu" = ia64; then 12956 # AIX 5 now supports IA64 processor 12957 lt_prog_compiler_static_CXX='-Bstatic' 12958 else 12959 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12960 fi 12961 ;; 12962 chorus*) 12963 case $cc_basename in 12964 cxch68*) 12965 # Green Hills C++ Compiler 12966 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12967 ;; 12968 esac 12969 ;; 12970 darwin*) 12971 # PIC is the default on this platform 12972 # Common symbols not allowed in MH_DYLIB files 12973 case $cc_basename in 12974 xlc*) 12975 lt_prog_compiler_pic_CXX='-qnocommon' 12976 lt_prog_compiler_wl_CXX='-Wl,' 12977 ;; 12978 esac 12979 ;; 12980 dgux*) 12981 case $cc_basename in 12982 ec++*) 12983 lt_prog_compiler_pic_CXX='-KPIC' 12984 ;; 12985 ghcx*) 12986 # Green Hills C++ Compiler 12987 lt_prog_compiler_pic_CXX='-pic' 12988 ;; 12989 *) 12990 ;; 12991 esac 12992 ;; 12993 freebsd* | kfreebsd*-gnu | dragonfly*) 12994 # FreeBSD uses GNU C++ 12995 ;; 12996 hpux9* | hpux10* | hpux11*) 12997 case $cc_basename in 12998 CC*) 12999 lt_prog_compiler_wl_CXX='-Wl,' 13000 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13001 if test "$host_cpu" != ia64; then 13002 lt_prog_compiler_pic_CXX='+Z' 13003 fi 13004 ;; 13005 aCC*) 13006 lt_prog_compiler_wl_CXX='-Wl,' 13007 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13008 case $host_cpu in 13009 hppa*64*|ia64*) 13010 # +Z the default 13011 ;; 13012 *) 13013 lt_prog_compiler_pic_CXX='+Z' 13014 ;; 13015 esac 13016 ;; 13017 *) 13018 ;; 13019 esac 13020 ;; 13021 interix*) 13022 # This is c89, which is MS Visual C++ (no shared libs) 13023 # Anyone wants to do a port? 13024 ;; 13025 irix5* | irix6* | nonstopux*) 13026 case $cc_basename in 13027 CC*) 13028 lt_prog_compiler_wl_CXX='-Wl,' 13029 lt_prog_compiler_static_CXX='-non_shared' 13030 # CC pic flag -KPIC is the default. 13031 ;; 13032 *) 13033 ;; 13034 esac 13035 ;; 13036 linux*) 13037 case $cc_basename in 13038 KCC*) 13039 # KAI C++ Compiler 13040 lt_prog_compiler_wl_CXX='--backend -Wl,' 13041 lt_prog_compiler_pic_CXX='-fPIC' 13042 ;; 13043 icpc* | ecpc*) 13044 # Intel C++ 13045 lt_prog_compiler_wl_CXX='-Wl,' 13046 lt_prog_compiler_pic_CXX='-KPIC' 13047 lt_prog_compiler_static_CXX='-static' 13048 ;; 13049 pgCC*) 13050 # Portland Group C++ compiler. 13051 lt_prog_compiler_wl_CXX='-Wl,' 13052 lt_prog_compiler_pic_CXX='-fpic' 13053 lt_prog_compiler_static_CXX='-Bstatic' 13054 ;; 13055 cxx*) 13056 # Compaq C++ 13057 # Make sure the PIC flag is empty. It appears that all Alpha 13058 # Linux and Compaq Tru64 Unix objects are PIC. 13059 lt_prog_compiler_pic_CXX= 13060 lt_prog_compiler_static_CXX='-non_shared' 13061 ;; 13062 *) 13063 ;; 13064 esac 13065 ;; 13066 lynxos*) 13067 ;; 13068 m88k*) 13069 ;; 13070 mvs*) 13071 case $cc_basename in 13072 cxx*) 13073 lt_prog_compiler_pic_CXX='-W c,exportall' 13074 ;; 13075 *) 13076 ;; 13077 esac 13078 ;; 13079 netbsd*) 13080 ;; 13081 osf3* | osf4* | osf5*) 13082 case $cc_basename in 13083 KCC*) 13084 lt_prog_compiler_wl_CXX='--backend -Wl,' 13085 ;; 13086 RCC*) 13087 # Rational C++ 2.4.1 13088 lt_prog_compiler_pic_CXX='-pic' 13089 ;; 13090 cxx*) 13091 # Digital/Compaq C++ 13092 lt_prog_compiler_wl_CXX='-Wl,' 13093 # Make sure the PIC flag is empty. It appears that all Alpha 13094 # Linux and Compaq Tru64 Unix objects are PIC. 13095 lt_prog_compiler_pic_CXX= 13096 lt_prog_compiler_static_CXX='-non_shared' 13097 ;; 13098 *) 13099 ;; 13100 esac 13101 ;; 13102 psos*) 13103 ;; 13104 solaris*) 13105 case $cc_basename in 13106 CC*) 13107 # Sun C++ 4.2, 5.x and Centerline C++ 13108 lt_prog_compiler_pic_CXX='-KPIC' 13109 lt_prog_compiler_static_CXX='-Bstatic' 13110 lt_prog_compiler_wl_CXX='-Qoption ld ' 13111 ;; 13112 gcx*) 13113 # Green Hills C++ Compiler 13114 lt_prog_compiler_pic_CXX='-PIC' 13115 ;; 13116 *) 13117 ;; 13118 esac 13119 ;; 13120 sunos4*) 13121 case $cc_basename in 13122 CC*) 13123 # Sun C++ 4.x 13124 lt_prog_compiler_pic_CXX='-pic' 13125 lt_prog_compiler_static_CXX='-Bstatic' 13126 ;; 13127 lcc*) 13128 # Lucid 13129 lt_prog_compiler_pic_CXX='-pic' 13130 ;; 13131 *) 13132 ;; 13133 esac 13134 ;; 13135 tandem*) 13136 case $cc_basename in 13137 NCC*) 13138 # NonStop-UX NCC 3.20 13139 lt_prog_compiler_pic_CXX='-KPIC' 13140 ;; 13141 *) 13142 ;; 13143 esac 13144 ;; 13145 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13146 case $cc_basename in 13147 CC*) 13148 lt_prog_compiler_wl_CXX='-Wl,' 13149 lt_prog_compiler_pic_CXX='-KPIC' 13150 lt_prog_compiler_static_CXX='-Bstatic' 13151 ;; 13152 esac 13153 ;; 13154 vxworks*) 13155 ;; 13156 *) 13157 lt_prog_compiler_can_build_shared_CXX=no 13158 ;; 13159 esac 13160 fi 13161 13162{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13163echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13164 13165# 13166# Check to make sure the PIC flag actually works. 13167# 13168if test -n "$lt_prog_compiler_pic_CXX"; then 13169 13170{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13171echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13172if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13173 echo $ECHO_N "(cached) $ECHO_C" >&6 13174else 13175 lt_prog_compiler_pic_works_CXX=no 13176 ac_outfile=conftest.$ac_objext 13177 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13178 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13179 # Insert the option either (1) after the last *FLAGS variable, or 13180 # (2) before a word containing "conftest.", or (3) at the end. 13181 # Note that $ac_compile itself does not contain backslashes and begins 13182 # with a dollar sign (not a hyphen), so the echo should work correctly. 13183 # The option is referenced via a variable to avoid confusing sed. 13184 lt_compile=`echo "$ac_compile" | $SED \ 13185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13187 -e 's:$: $lt_compiler_flag:'` 13188 (eval echo "\"\$as_me:13188: $lt_compile\"" >&5) 13189 (eval "$lt_compile" 2>conftest.err) 13190 ac_status=$? 13191 cat conftest.err >&5 13192 echo "$as_me:13192: \$? = $ac_status" >&5 13193 if (exit $ac_status) && test -s "$ac_outfile"; then 13194 # The compiler can only warn and ignore the option if not recognized 13195 # So say no if there are warnings other than the usual output. 13196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13199 lt_prog_compiler_pic_works_CXX=yes 13200 fi 13201 fi 13202 $rm conftest* 13203 13204fi 13205{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13206echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 13207 13208if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13209 case $lt_prog_compiler_pic_CXX in 13210 "" | " "*) ;; 13211 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13212 esac 13213else 13214 lt_prog_compiler_pic_CXX= 13215 lt_prog_compiler_can_build_shared_CXX=no 13216fi 13217 13218fi 13219case $host_os in 13220 # For platforms which do not support PIC, -DPIC is meaningless: 13221 *djgpp*) 13222 lt_prog_compiler_pic_CXX= 13223 ;; 13224 *) 13225 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13226 ;; 13227esac 13228 13229# 13230# Check to make sure the static flag actually works. 13231# 13232wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13233{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13234echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13235if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13236 echo $ECHO_N "(cached) $ECHO_C" >&6 13237else 13238 lt_prog_compiler_static_works_CXX=no 13239 save_LDFLAGS="$LDFLAGS" 13240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13241 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13243 # The linker can only warn and ignore the option if not recognized 13244 # So say no if there are warnings 13245 if test -s conftest.err; then 13246 # Append any errors to the config.log. 13247 cat conftest.err 1>&5 13248 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13250 if diff conftest.exp conftest.er2 >/dev/null; then 13251 lt_prog_compiler_static_works_CXX=yes 13252 fi 13253 else 13254 lt_prog_compiler_static_works_CXX=yes 13255 fi 13256 fi 13257 $rm conftest* 13258 LDFLAGS="$save_LDFLAGS" 13259 13260fi 13261{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13262echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 13263 13264if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13265 : 13266else 13267 lt_prog_compiler_static_CXX= 13268fi 13269 13270 13271{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13272echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13273if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13274 echo $ECHO_N "(cached) $ECHO_C" >&6 13275else 13276 lt_cv_prog_compiler_c_o_CXX=no 13277 $rm -r conftest 2>/dev/null 13278 mkdir conftest 13279 cd conftest 13280 mkdir out 13281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13282 13283 lt_compiler_flag="-o out/conftest2.$ac_objext" 13284 # Insert the option either (1) after the last *FLAGS variable, or 13285 # (2) before a word containing "conftest.", or (3) at the end. 13286 # Note that $ac_compile itself does not contain backslashes and begins 13287 # with a dollar sign (not a hyphen), so the echo should work correctly. 13288 lt_compile=`echo "$ac_compile" | $SED \ 13289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13291 -e 's:$: $lt_compiler_flag:'` 13292 (eval echo "\"\$as_me:13292: $lt_compile\"" >&5) 13293 (eval "$lt_compile" 2>out/conftest.err) 13294 ac_status=$? 13295 cat out/conftest.err >&5 13296 echo "$as_me:13296: \$? = $ac_status" >&5 13297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13298 then 13299 # The compiler can only warn and ignore the option if not recognized 13300 # So say no if there are warnings 13301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13304 lt_cv_prog_compiler_c_o_CXX=yes 13305 fi 13306 fi 13307 chmod u+w . 2>&5 13308 $rm conftest* 13309 # SGI C++ compiler will create directory out/ii_files/ for 13310 # template instantiation 13311 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13312 $rm out/* && rmdir out 13313 cd .. 13314 rmdir conftest 13315 $rm conftest* 13316 13317fi 13318{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13319echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 13320 13321 13322hard_links="nottested" 13323if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13324 # do not overwrite the value of need_locks provided by the user 13325 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13326echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13327 hard_links=yes 13328 $rm conftest* 13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13330 touch conftest.a 13331 ln conftest.a conftest.b 2>&5 || hard_links=no 13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13333 { echo "$as_me:$LINENO: result: $hard_links" >&5 13334echo "${ECHO_T}$hard_links" >&6; } 13335 if test "$hard_links" = no; then 13336 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13337echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13338 need_locks=warn 13339 fi 13340else 13341 need_locks=no 13342fi 13343 13344{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13345echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13346 13347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13348 case $host_os in 13349 aix4* | aix5*) 13350 # If we're using GNU nm, then we don't want the "-C" option. 13351 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13352 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13353 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13354 else 13355 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13356 fi 13357 ;; 13358 pw32*) 13359 export_symbols_cmds_CXX="$ltdll_cmds" 13360 ;; 13361 cygwin* | mingw*) 13362 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13363 ;; 13364 *) 13365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13366 ;; 13367 esac 13368 13369{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13370echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13371test "$ld_shlibs_CXX" = no && can_build_shared=no 13372 13373# 13374# Do we need to explicitly link libc? 13375# 13376case "x$archive_cmds_need_lc_CXX" in 13377x|xyes) 13378 # Assume -lc should be added 13379 archive_cmds_need_lc_CXX=yes 13380 13381 if test "$enable_shared" = yes && test "$GCC" = yes; then 13382 case $archive_cmds_CXX in 13383 *'~'*) 13384 # FIXME: we may have to deal with multi-command sequences. 13385 ;; 13386 '$CC '*) 13387 # Test whether the compiler implicitly links with -lc since on some 13388 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13389 # to ld, don't add -lc before -lgcc. 13390 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13391echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13392 $rm conftest* 13393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13394 13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13396 (eval $ac_compile) 2>&5 13397 ac_status=$? 13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13399 (exit $ac_status); } 2>conftest.err; then 13400 soname=conftest 13401 lib=conftest 13402 libobjs=conftest.$ac_objext 13403 deplibs= 13404 wl=$lt_prog_compiler_wl_CXX 13405 pic_flag=$lt_prog_compiler_pic_CXX 13406 compiler_flags=-v 13407 linker_flags=-v 13408 verstring= 13409 output_objdir=. 13410 libname=conftest 13411 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13412 allow_undefined_flag_CXX= 13413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13414 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13415 ac_status=$? 13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13417 (exit $ac_status); } 13418 then 13419 archive_cmds_need_lc_CXX=no 13420 else 13421 archive_cmds_need_lc_CXX=yes 13422 fi 13423 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13424 else 13425 cat conftest.err 1>&5 13426 fi 13427 $rm conftest* 13428 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13429echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13430 ;; 13431 esac 13432 fi 13433 ;; 13434esac 13435 13436{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13437echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13438library_names_spec= 13439libname_spec='lib$name' 13440soname_spec= 13441shrext_cmds=".so" 13442postinstall_cmds= 13443postuninstall_cmds= 13444finish_cmds= 13445finish_eval= 13446shlibpath_var= 13447shlibpath_overrides_runpath=unknown 13448version_type=none 13449dynamic_linker="$host_os ld.so" 13450sys_lib_dlsearch_path_spec="/lib /usr/lib" 13451if test "$GCC" = yes; then 13452 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13453 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13454 # if the path contains ";" then we assume it to be the separator 13455 # otherwise default to the standard path separator (i.e. ":") - it is 13456 # assumed that no part of a normal pathname contains ";" but that should 13457 # okay in the real world where ";" in dirpaths is itself problematic. 13458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13459 else 13460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13461 fi 13462else 13463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13464fi 13465need_lib_prefix=unknown 13466hardcode_into_libs=no 13467 13468# when you set need_version to no, make sure it does not cause -set_version 13469# flags to be left without arguments 13470need_version=unknown 13471 13472case $host_os in 13473aix3*) 13474 version_type=linux 13475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13476 shlibpath_var=LIBPATH 13477 13478 # AIX 3 has no versioning support, so we append a major version to the name. 13479 soname_spec='${libname}${release}${shared_ext}$major' 13480 ;; 13481 13482aix4* | aix5*) 13483 version_type=linux 13484 need_lib_prefix=no 13485 need_version=no 13486 hardcode_into_libs=yes 13487 if test "$host_cpu" = ia64; then 13488 # AIX 5 supports IA64 13489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13490 shlibpath_var=LD_LIBRARY_PATH 13491 else 13492 # With GCC up to 2.95.x, collect2 would create an import file 13493 # for dependence libraries. The import file would start with 13494 # the line `#! .'. This would cause the generated library to 13495 # depend on `.', always an invalid library. This was fixed in 13496 # development snapshots of GCC prior to 3.0. 13497 case $host_os in 13498 aix4 | aix4.[01] | aix4.[01].*) 13499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13500 echo ' yes ' 13501 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13502 : 13503 else 13504 can_build_shared=no 13505 fi 13506 ;; 13507 esac 13508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13509 # soname into executable. Probably we can add versioning support to 13510 # collect2, so additional links can be useful in future. 13511 if test "$aix_use_runtimelinking" = yes; then 13512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13513 # instead of lib<name>.a to let people know that these are not 13514 # typical AIX shared libraries. 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13516 else 13517 # We preserve .a as extension for shared libraries through AIX4.2 13518 # and later when we are not doing run time linking. 13519 library_names_spec='${libname}${release}.a $libname.a' 13520 soname_spec='${libname}${release}${shared_ext}$major' 13521 fi 13522 shlibpath_var=LIBPATH 13523 fi 13524 ;; 13525 13526amigaos*) 13527 library_names_spec='$libname.ixlibrary $libname.a' 13528 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13529 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 13530 ;; 13531 13532beos*) 13533 library_names_spec='${libname}${shared_ext}' 13534 dynamic_linker="$host_os ld.so" 13535 shlibpath_var=LIBRARY_PATH 13536 ;; 13537 13538bsdi[45]*) 13539 version_type=linux 13540 need_version=no 13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13542 soname_spec='${libname}${release}${shared_ext}$major' 13543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13544 shlibpath_var=LD_LIBRARY_PATH 13545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13547 # the default ld.so.conf also contains /usr/contrib/lib and 13548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13549 # libtool to hard-code these into programs 13550 ;; 13551 13552cygwin* | mingw* | pw32*) 13553 version_type=windows 13554 shrext_cmds=".dll" 13555 need_version=no 13556 need_lib_prefix=no 13557 13558 case $GCC,$host_os in 13559 yes,cygwin* | yes,mingw* | yes,pw32*) 13560 library_names_spec='$libname.dll.a' 13561 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13562 postinstall_cmds='base_file=`basename \${file}`~ 13563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13564 dldir=$destdir/`dirname \$dlpath`~ 13565 test -d \$dldir || mkdir -p \$dldir~ 13566 $install_prog $dir/$dlname \$dldir/$dlname~ 13567 chmod a+x \$dldir/$dlname' 13568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13569 dlpath=$dir/\$dldll~ 13570 $rm \$dlpath' 13571 shlibpath_overrides_runpath=yes 13572 13573 case $host_os in 13574 cygwin*) 13575 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13577 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13578 ;; 13579 mingw*) 13580 # MinGW DLLs use traditional 'lib' prefix 13581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13583 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13584 # It is most probably a Windows format PATH printed by 13585 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13586 # path with ; separators, and with drive letters. We can handle the 13587 # drive letters (cygwin fileutils understands them), so leave them, 13588 # especially as we might pass files found there to a mingw objdump, 13589 # which wouldn't understand a cygwinified path. Ahh. 13590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13591 else 13592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13593 fi 13594 ;; 13595 pw32*) 13596 # pw32 DLLs use 'pw' prefix rather than 'lib' 13597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13598 ;; 13599 esac 13600 ;; 13601 13602 *) 13603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13604 ;; 13605 esac 13606 dynamic_linker='Win32 ld.exe' 13607 # FIXME: first we should search . and the directory the executable is in 13608 shlibpath_var=PATH 13609 ;; 13610 13611darwin* | rhapsody*) 13612 dynamic_linker="$host_os dyld" 13613 version_type=darwin 13614 need_lib_prefix=no 13615 need_version=no 13616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 13617 soname_spec='${libname}${release}${major}$shared_ext' 13618 shlibpath_overrides_runpath=yes 13619 shlibpath_var=DYLD_LIBRARY_PATH 13620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13621 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13622 if test "$GCC" = yes; then 13623 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13624 else 13625 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13626 fi 13627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13628 ;; 13629 13630dgux*) 13631 version_type=linux 13632 need_lib_prefix=no 13633 need_version=no 13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13635 soname_spec='${libname}${release}${shared_ext}$major' 13636 shlibpath_var=LD_LIBRARY_PATH 13637 ;; 13638 13639freebsd1*) 13640 dynamic_linker=no 13641 ;; 13642 13643kfreebsd*-gnu) 13644 version_type=linux 13645 need_lib_prefix=no 13646 need_version=no 13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13648 soname_spec='${libname}${release}${shared_ext}$major' 13649 shlibpath_var=LD_LIBRARY_PATH 13650 shlibpath_overrides_runpath=no 13651 hardcode_into_libs=yes 13652 dynamic_linker='GNU ld.so' 13653 ;; 13654 13655freebsd* | dragonfly*) 13656 # DragonFly does not have aout. When/if they implement a new 13657 # versioning mechanism, adjust this. 13658 if test -x /usr/bin/objformat; then 13659 objformat=`/usr/bin/objformat` 13660 else 13661 case $host_os in 13662 freebsd[123]*) objformat=aout ;; 13663 *) objformat=elf ;; 13664 esac 13665 fi 13666 version_type=freebsd-$objformat 13667 case $version_type in 13668 freebsd-elf*) 13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13670 need_version=no 13671 need_lib_prefix=no 13672 ;; 13673 freebsd-*) 13674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13675 need_version=yes 13676 ;; 13677 esac 13678 shlibpath_var=LD_LIBRARY_PATH 13679 case $host_os in 13680 freebsd2*) 13681 shlibpath_overrides_runpath=yes 13682 ;; 13683 freebsd3.[01]* | freebsdelf3.[01]*) 13684 shlibpath_overrides_runpath=yes 13685 hardcode_into_libs=yes 13686 ;; 13687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13689 shlibpath_overrides_runpath=no 13690 hardcode_into_libs=yes 13691 ;; 13692 freebsd*) # from 4.6 on 13693 shlibpath_overrides_runpath=yes 13694 hardcode_into_libs=yes 13695 ;; 13696 esac 13697 ;; 13698 13699gnu*) 13700 version_type=linux 13701 need_lib_prefix=no 13702 need_version=no 13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13704 soname_spec='${libname}${release}${shared_ext}$major' 13705 shlibpath_var=LD_LIBRARY_PATH 13706 hardcode_into_libs=yes 13707 ;; 13708 13709hpux9* | hpux10* | hpux11*) 13710 # Give a soname corresponding to the major version so that dld.sl refuses to 13711 # link against other versions. 13712 version_type=sunos 13713 need_lib_prefix=no 13714 need_version=no 13715 case $host_cpu in 13716 ia64*) 13717 shrext_cmds='.so' 13718 hardcode_into_libs=yes 13719 dynamic_linker="$host_os dld.so" 13720 shlibpath_var=LD_LIBRARY_PATH 13721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13723 soname_spec='${libname}${release}${shared_ext}$major' 13724 if test "X$HPUX_IA64_MODE" = X32; then 13725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13726 else 13727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13728 fi 13729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13730 ;; 13731 hppa*64*) 13732 shrext_cmds='.sl' 13733 hardcode_into_libs=yes 13734 dynamic_linker="$host_os dld.sl" 13735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13738 soname_spec='${libname}${release}${shared_ext}$major' 13739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13741 ;; 13742 *) 13743 shrext_cmds='.sl' 13744 dynamic_linker="$host_os dld.sl" 13745 shlibpath_var=SHLIB_PATH 13746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13748 soname_spec='${libname}${release}${shared_ext}$major' 13749 ;; 13750 esac 13751 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13752 postinstall_cmds='chmod 555 $lib' 13753 ;; 13754 13755interix3*) 13756 version_type=linux 13757 need_lib_prefix=no 13758 need_version=no 13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13760 soname_spec='${libname}${release}${shared_ext}$major' 13761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13762 shlibpath_var=LD_LIBRARY_PATH 13763 shlibpath_overrides_runpath=no 13764 hardcode_into_libs=yes 13765 ;; 13766 13767irix5* | irix6* | nonstopux*) 13768 case $host_os in 13769 nonstopux*) version_type=nonstopux ;; 13770 *) 13771 if test "$lt_cv_prog_gnu_ld" = yes; then 13772 version_type=linux 13773 else 13774 version_type=irix 13775 fi ;; 13776 esac 13777 need_lib_prefix=no 13778 need_version=no 13779 soname_spec='${libname}${release}${shared_ext}$major' 13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13781 case $host_os in 13782 irix5* | nonstopux*) 13783 libsuff= shlibsuff= 13784 ;; 13785 *) 13786 case $LD in # libtool.m4 will add one of these switches to LD 13787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13788 libsuff= shlibsuff= libmagic=32-bit;; 13789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13790 libsuff=32 shlibsuff=N32 libmagic=N32;; 13791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13792 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13793 *) libsuff= shlibsuff= libmagic=never-match;; 13794 esac 13795 ;; 13796 esac 13797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13798 shlibpath_overrides_runpath=no 13799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13801 hardcode_into_libs=yes 13802 ;; 13803 13804# No shared lib support for Linux oldld, aout, or coff. 13805linux*oldld* | linux*aout* | linux*coff*) 13806 dynamic_linker=no 13807 ;; 13808 13809# This must be Linux ELF. 13810linux*) 13811 version_type=linux 13812 need_lib_prefix=no 13813 need_version=no 13814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13815 soname_spec='${libname}${release}${shared_ext}$major' 13816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13817 shlibpath_var=LD_LIBRARY_PATH 13818 shlibpath_overrides_runpath=no 13819 # This implies no fast_install, which is unacceptable. 13820 # Some rework will be needed to allow for fast_install 13821 # before this can be enabled. 13822 hardcode_into_libs=yes 13823 13824 # Append ld.so.conf contents to the search path 13825 if test -f /etc/ld.so.conf; then 13826 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13828 fi 13829 13830 # We used to test for /lib/ld.so.1 and disable shared libraries on 13831 # powerpc, because MkLinux only supported shared libraries with the 13832 # GNU dynamic linker. Since this was broken with cross compilers, 13833 # most powerpc-linux boxes support dynamic linking these days and 13834 # people can always --disable-shared, the test was removed, and we 13835 # assume the GNU/Linux dynamic linker is in use. 13836 dynamic_linker='GNU/Linux ld.so' 13837 ;; 13838 13839knetbsd*-gnu) 13840 version_type=linux 13841 need_lib_prefix=no 13842 need_version=no 13843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13844 soname_spec='${libname}${release}${shared_ext}$major' 13845 shlibpath_var=LD_LIBRARY_PATH 13846 shlibpath_overrides_runpath=no 13847 hardcode_into_libs=yes 13848 dynamic_linker='GNU ld.so' 13849 ;; 13850 13851netbsd*) 13852 version_type=sunos 13853 need_lib_prefix=no 13854 need_version=no 13855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13858 dynamic_linker='NetBSD (a.out) ld.so' 13859 else 13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13861 soname_spec='${libname}${release}${shared_ext}$major' 13862 dynamic_linker='NetBSD ld.elf_so' 13863 fi 13864 shlibpath_var=LD_LIBRARY_PATH 13865 shlibpath_overrides_runpath=yes 13866 hardcode_into_libs=yes 13867 ;; 13868 13869newsos6) 13870 version_type=linux 13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13872 shlibpath_var=LD_LIBRARY_PATH 13873 shlibpath_overrides_runpath=yes 13874 ;; 13875 13876nto-qnx*) 13877 version_type=linux 13878 need_lib_prefix=no 13879 need_version=no 13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13881 soname_spec='${libname}${release}${shared_ext}$major' 13882 shlibpath_var=LD_LIBRARY_PATH 13883 shlibpath_overrides_runpath=yes 13884 ;; 13885 13886openbsd*) 13887 version_type=sunos 13888 sys_lib_dlsearch_path_spec="/usr/lib" 13889 need_lib_prefix=no 13890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13891 case $host_os in 13892 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13893 *) need_version=no ;; 13894 esac 13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13897 shlibpath_var=LD_LIBRARY_PATH 13898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13899 case $host_os in 13900 openbsd2.[89] | openbsd2.[89].*) 13901 shlibpath_overrides_runpath=no 13902 ;; 13903 *) 13904 shlibpath_overrides_runpath=yes 13905 ;; 13906 esac 13907 else 13908 shlibpath_overrides_runpath=yes 13909 fi 13910 ;; 13911 13912os2*) 13913 libname_spec='$name' 13914 shrext_cmds=".dll" 13915 need_lib_prefix=no 13916 library_names_spec='$libname${shared_ext} $libname.a' 13917 dynamic_linker='OS/2 ld.exe' 13918 shlibpath_var=LIBPATH 13919 ;; 13920 13921osf3* | osf4* | osf5*) 13922 version_type=osf 13923 need_lib_prefix=no 13924 need_version=no 13925 soname_spec='${libname}${release}${shared_ext}$major' 13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13927 shlibpath_var=LD_LIBRARY_PATH 13928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13930 ;; 13931 13932solaris*) 13933 version_type=linux 13934 need_lib_prefix=no 13935 need_version=no 13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13937 soname_spec='${libname}${release}${shared_ext}$major' 13938 shlibpath_var=LD_LIBRARY_PATH 13939 shlibpath_overrides_runpath=yes 13940 hardcode_into_libs=yes 13941 # ldd complains unless libraries are executable 13942 postinstall_cmds='chmod +x $lib' 13943 ;; 13944 13945sunos4*) 13946 version_type=sunos 13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13949 shlibpath_var=LD_LIBRARY_PATH 13950 shlibpath_overrides_runpath=yes 13951 if test "$with_gnu_ld" = yes; then 13952 need_lib_prefix=no 13953 fi 13954 need_version=yes 13955 ;; 13956 13957sysv4 | sysv4.3*) 13958 version_type=linux 13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13960 soname_spec='${libname}${release}${shared_ext}$major' 13961 shlibpath_var=LD_LIBRARY_PATH 13962 case $host_vendor in 13963 sni) 13964 shlibpath_overrides_runpath=no 13965 need_lib_prefix=no 13966 export_dynamic_flag_spec='${wl}-Blargedynsym' 13967 runpath_var=LD_RUN_PATH 13968 ;; 13969 siemens) 13970 need_lib_prefix=no 13971 ;; 13972 motorola) 13973 need_lib_prefix=no 13974 need_version=no 13975 shlibpath_overrides_runpath=no 13976 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13977 ;; 13978 esac 13979 ;; 13980 13981sysv4*MP*) 13982 if test -d /usr/nec ;then 13983 version_type=linux 13984 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13985 soname_spec='$libname${shared_ext}.$major' 13986 shlibpath_var=LD_LIBRARY_PATH 13987 fi 13988 ;; 13989 13990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13991 version_type=freebsd-elf 13992 need_lib_prefix=no 13993 need_version=no 13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13995 soname_spec='${libname}${release}${shared_ext}$major' 13996 shlibpath_var=LD_LIBRARY_PATH 13997 hardcode_into_libs=yes 13998 if test "$with_gnu_ld" = yes; then 13999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14000 shlibpath_overrides_runpath=no 14001 else 14002 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14003 shlibpath_overrides_runpath=yes 14004 case $host_os in 14005 sco3.2v5*) 14006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14007 ;; 14008 esac 14009 fi 14010 sys_lib_dlsearch_path_spec='/usr/lib' 14011 ;; 14012 14013uts4*) 14014 version_type=linux 14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14016 soname_spec='${libname}${release}${shared_ext}$major' 14017 shlibpath_var=LD_LIBRARY_PATH 14018 ;; 14019 14020*) 14021 dynamic_linker=no 14022 ;; 14023esac 14024{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14025echo "${ECHO_T}$dynamic_linker" >&6; } 14026test "$dynamic_linker" = no && can_build_shared=no 14027 14028variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14029if test "$GCC" = yes; then 14030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14031fi 14032 14033{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14034echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14035hardcode_action_CXX= 14036if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14037 test -n "$runpath_var_CXX" || \ 14038 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14039 14040 # We can hardcode non-existant directories. 14041 if test "$hardcode_direct_CXX" != no && 14042 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14043 # have to relink, otherwise we might link with an installed library 14044 # when we should be linking with a yet-to-be-installed one 14045 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14046 test "$hardcode_minus_L_CXX" != no; then 14047 # Linking always hardcodes the temporary library directory. 14048 hardcode_action_CXX=relink 14049 else 14050 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14051 hardcode_action_CXX=immediate 14052 fi 14053else 14054 # We cannot hardcode anything, or else we can only hardcode existing 14055 # directories. 14056 hardcode_action_CXX=unsupported 14057fi 14058{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14059echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14060 14061if test "$hardcode_action_CXX" = relink; then 14062 # Fast installation is not supported 14063 enable_fast_install=no 14064elif test "$shlibpath_overrides_runpath" = yes || 14065 test "$enable_shared" = no; then 14066 # Fast installation is not necessary 14067 enable_fast_install=needless 14068fi 14069 14070 14071# The else clause should only fire when bootstrapping the 14072# libtool distribution, otherwise you forgot to ship ltmain.sh 14073# with your package, and you will get complaints that there are 14074# no rules to generate ltmain.sh. 14075if test -f "$ltmain"; then 14076 # See if we are running on zsh, and set the options which allow our commands through 14077 # without removal of \ escapes. 14078 if test -n "${ZSH_VERSION+set}" ; then 14079 setopt NO_GLOB_SUBST 14080 fi 14081 # Now quote all the things that may contain metacharacters while being 14082 # careful not to overquote the AC_SUBSTed values. We take copies of the 14083 # variables and quote the copies for generation of the libtool script. 14084 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14085 SED SHELL STRIP \ 14086 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14087 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14088 deplibs_check_method reload_flag reload_cmds need_locks \ 14089 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14090 lt_cv_sys_global_symbol_to_c_name_address \ 14091 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14092 old_postinstall_cmds old_postuninstall_cmds \ 14093 compiler_CXX \ 14094 CC_CXX \ 14095 LD_CXX \ 14096 lt_prog_compiler_wl_CXX \ 14097 lt_prog_compiler_pic_CXX \ 14098 lt_prog_compiler_static_CXX \ 14099 lt_prog_compiler_no_builtin_flag_CXX \ 14100 export_dynamic_flag_spec_CXX \ 14101 thread_safe_flag_spec_CXX \ 14102 whole_archive_flag_spec_CXX \ 14103 enable_shared_with_static_runtimes_CXX \ 14104 old_archive_cmds_CXX \ 14105 old_archive_from_new_cmds_CXX \ 14106 predep_objects_CXX \ 14107 postdep_objects_CXX \ 14108 predeps_CXX \ 14109 postdeps_CXX \ 14110 compiler_lib_search_path_CXX \ 14111 archive_cmds_CXX \ 14112 archive_expsym_cmds_CXX \ 14113 postinstall_cmds_CXX \ 14114 postuninstall_cmds_CXX \ 14115 old_archive_from_expsyms_cmds_CXX \ 14116 allow_undefined_flag_CXX \ 14117 no_undefined_flag_CXX \ 14118 export_symbols_cmds_CXX \ 14119 hardcode_libdir_flag_spec_CXX \ 14120 hardcode_libdir_flag_spec_ld_CXX \ 14121 hardcode_libdir_separator_CXX \ 14122 hardcode_automatic_CXX \ 14123 module_cmds_CXX \ 14124 module_expsym_cmds_CXX \ 14125 lt_cv_prog_compiler_c_o_CXX \ 14126 exclude_expsyms_CXX \ 14127 include_expsyms_CXX; do 14128 14129 case $var in 14130 old_archive_cmds_CXX | \ 14131 old_archive_from_new_cmds_CXX | \ 14132 archive_cmds_CXX | \ 14133 archive_expsym_cmds_CXX | \ 14134 module_cmds_CXX | \ 14135 module_expsym_cmds_CXX | \ 14136 old_archive_from_expsyms_cmds_CXX | \ 14137 export_symbols_cmds_CXX | \ 14138 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14139 postinstall_cmds | postuninstall_cmds | \ 14140 old_postinstall_cmds | old_postuninstall_cmds | \ 14141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14142 # Double-quote double-evaled strings. 14143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14144 ;; 14145 *) 14146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14147 ;; 14148 esac 14149 done 14150 14151 case $lt_echo in 14152 *'\$0 --fallback-echo"') 14153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14154 ;; 14155 esac 14156 14157cfgfile="$ofile" 14158 14159 cat <<__EOF__ >> "$cfgfile" 14160# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14161 14162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14163 14164# Shell to use when invoking shell scripts. 14165SHELL=$lt_SHELL 14166 14167# Whether or not to build shared libraries. 14168build_libtool_libs=$enable_shared 14169 14170# Whether or not to build static libraries. 14171build_old_libs=$enable_static 14172 14173# Whether or not to add -lc for building shared libraries. 14174build_libtool_need_lc=$archive_cmds_need_lc_CXX 14175 14176# Whether or not to disallow shared libs when runtime libs are static 14177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14178 14179# Whether or not to optimize for fast installation. 14180fast_install=$enable_fast_install 14181 14182# The host system. 14183host_alias=$host_alias 14184host=$host 14185host_os=$host_os 14186 14187# The build system. 14188build_alias=$build_alias 14189build=$build 14190build_os=$build_os 14191 14192# An echo program that does not interpret backslashes. 14193echo=$lt_echo 14194 14195# The archiver. 14196AR=$lt_AR 14197AR_FLAGS=$lt_AR_FLAGS 14198 14199# A C compiler. 14200LTCC=$lt_LTCC 14201 14202# LTCC compiler flags. 14203LTCFLAGS=$lt_LTCFLAGS 14204 14205# A language-specific compiler. 14206CC=$lt_compiler_CXX 14207 14208# Is the compiler the GNU C compiler? 14209with_gcc=$GCC_CXX 14210 14211# An ERE matcher. 14212EGREP=$lt_EGREP 14213 14214# The linker used to build libraries. 14215LD=$lt_LD_CXX 14216 14217# Whether we need hard or soft links. 14218LN_S=$lt_LN_S 14219 14220# A BSD-compatible nm program. 14221NM=$lt_NM 14222 14223# A symbol stripping program 14224STRIP=$lt_STRIP 14225 14226# Used to examine libraries when file_magic_cmd begins "file" 14227MAGIC_CMD=$MAGIC_CMD 14228 14229# Used on cygwin: DLL creation program. 14230DLLTOOL="$DLLTOOL" 14231 14232# Used on cygwin: object dumper. 14233OBJDUMP="$OBJDUMP" 14234 14235# Used on cygwin: assembler. 14236AS="$AS" 14237 14238# The name of the directory that contains temporary libtool files. 14239objdir=$objdir 14240 14241# How to create reloadable object files. 14242reload_flag=$lt_reload_flag 14243reload_cmds=$lt_reload_cmds 14244 14245# How to pass a linker flag through the compiler. 14246wl=$lt_lt_prog_compiler_wl_CXX 14247 14248# Object file suffix (normally "o"). 14249objext="$ac_objext" 14250 14251# Old archive suffix (normally "a"). 14252libext="$libext" 14253 14254# Shared library suffix (normally ".so"). 14255shrext_cmds='$shrext_cmds' 14256 14257# Executable file suffix (normally ""). 14258exeext="$exeext" 14259 14260# Additional compiler flags for building library objects. 14261pic_flag=$lt_lt_prog_compiler_pic_CXX 14262pic_mode=$pic_mode 14263 14264# What is the maximum length of a command? 14265max_cmd_len=$lt_cv_sys_max_cmd_len 14266 14267# Does compiler simultaneously support -c and -o options? 14268compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14269 14270# Must we lock files when doing compilation? 14271need_locks=$lt_need_locks 14272 14273# Do we need the lib prefix for modules? 14274need_lib_prefix=$need_lib_prefix 14275 14276# Do we need a version for libraries? 14277need_version=$need_version 14278 14279# Whether dlopen is supported. 14280dlopen_support=$enable_dlopen 14281 14282# Whether dlopen of programs is supported. 14283dlopen_self=$enable_dlopen_self 14284 14285# Whether dlopen of statically linked programs is supported. 14286dlopen_self_static=$enable_dlopen_self_static 14287 14288# Compiler flag to prevent dynamic linking. 14289link_static_flag=$lt_lt_prog_compiler_static_CXX 14290 14291# Compiler flag to turn off builtin functions. 14292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14293 14294# Compiler flag to allow reflexive dlopens. 14295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14296 14297# Compiler flag to generate shared objects directly from archives. 14298whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14299 14300# Compiler flag to generate thread-safe objects. 14301thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14302 14303# Library versioning type. 14304version_type=$version_type 14305 14306# Format of library name prefix. 14307libname_spec=$lt_libname_spec 14308 14309# List of archive names. First name is the real one, the rest are links. 14310# The last name is the one that the linker finds with -lNAME. 14311library_names_spec=$lt_library_names_spec 14312 14313# The coded name of the library, if different from the real name. 14314soname_spec=$lt_soname_spec 14315 14316# Commands used to build and install an old-style archive. 14317RANLIB=$lt_RANLIB 14318old_archive_cmds=$lt_old_archive_cmds_CXX 14319old_postinstall_cmds=$lt_old_postinstall_cmds 14320old_postuninstall_cmds=$lt_old_postuninstall_cmds 14321 14322# Create an old-style archive from a shared archive. 14323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14324 14325# Create a temporary old-style archive to link instead of a shared archive. 14326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14327 14328# Commands used to build and install a shared archive. 14329archive_cmds=$lt_archive_cmds_CXX 14330archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14331postinstall_cmds=$lt_postinstall_cmds 14332postuninstall_cmds=$lt_postuninstall_cmds 14333 14334# Commands used to build a loadable module (assumed same as above if empty) 14335module_cmds=$lt_module_cmds_CXX 14336module_expsym_cmds=$lt_module_expsym_cmds_CXX 14337 14338# Commands to strip libraries. 14339old_striplib=$lt_old_striplib 14340striplib=$lt_striplib 14341 14342# Dependencies to place before the objects being linked to create a 14343# shared library. 14344predep_objects=$lt_predep_objects_CXX 14345 14346# Dependencies to place after the objects being linked to create a 14347# shared library. 14348postdep_objects=$lt_postdep_objects_CXX 14349 14350# Dependencies to place before the objects being linked to create a 14351# shared library. 14352predeps=$lt_predeps_CXX 14353 14354# Dependencies to place after the objects being linked to create a 14355# shared library. 14356postdeps=$lt_postdeps_CXX 14357 14358# The library search path used internally by the compiler when linking 14359# a shared library. 14360compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14361 14362# Method to check whether dependent libraries are shared objects. 14363deplibs_check_method=$lt_deplibs_check_method 14364 14365# Command to use when deplibs_check_method == file_magic. 14366file_magic_cmd=$lt_file_magic_cmd 14367 14368# Flag that allows shared libraries with undefined symbols to be built. 14369allow_undefined_flag=$lt_allow_undefined_flag_CXX 14370 14371# Flag that forces no undefined symbols. 14372no_undefined_flag=$lt_no_undefined_flag_CXX 14373 14374# Commands used to finish a libtool library installation in a directory. 14375finish_cmds=$lt_finish_cmds 14376 14377# Same as above, but a single script fragment to be evaled but not shown. 14378finish_eval=$lt_finish_eval 14379 14380# Take the output of nm and produce a listing of raw symbols and C names. 14381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14382 14383# Transform the output of nm in a proper C declaration 14384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14385 14386# Transform the output of nm in a C name address pair 14387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14388 14389# This is the shared library runtime path variable. 14390runpath_var=$runpath_var 14391 14392# This is the shared library path variable. 14393shlibpath_var=$shlibpath_var 14394 14395# Is shlibpath searched before the hard-coded library search path? 14396shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14397 14398# How to hardcode a shared library path into an executable. 14399hardcode_action=$hardcode_action_CXX 14400 14401# Whether we should hardcode library paths into libraries. 14402hardcode_into_libs=$hardcode_into_libs 14403 14404# Flag to hardcode \$libdir into a binary during linking. 14405# This must work even if \$libdir does not exist. 14406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14407 14408# If ld is used when linking, flag to hardcode \$libdir into 14409# a binary during linking. This must work even if \$libdir does 14410# not exist. 14411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14412 14413# Whether we need a single -rpath flag with a separated argument. 14414hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14415 14416# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14417# resulting binary. 14418hardcode_direct=$hardcode_direct_CXX 14419 14420# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14421# resulting binary. 14422hardcode_minus_L=$hardcode_minus_L_CXX 14423 14424# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14425# the resulting binary. 14426hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14427 14428# Set to yes if building a shared library automatically hardcodes DIR into the library 14429# and all subsequent libraries and executables linked against it. 14430hardcode_automatic=$hardcode_automatic_CXX 14431 14432# Variables whose values should be saved in libtool wrapper scripts and 14433# restored at relink time. 14434variables_saved_for_relink="$variables_saved_for_relink" 14435 14436# Whether libtool must link a program against all its dependency libraries. 14437link_all_deplibs=$link_all_deplibs_CXX 14438 14439# Compile-time system search path for libraries 14440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14441 14442# Run-time system search path for libraries 14443sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14444 14445# Fix the shell variable \$srcfile for the compiler. 14446fix_srcfile_path="$fix_srcfile_path_CXX" 14447 14448# Set to yes if exported symbols are required. 14449always_export_symbols=$always_export_symbols_CXX 14450 14451# The commands to list exported symbols. 14452export_symbols_cmds=$lt_export_symbols_cmds_CXX 14453 14454# The commands to extract the exported symbol list from a shared archive. 14455extract_expsyms_cmds=$lt_extract_expsyms_cmds 14456 14457# Symbols that should not be listed in the preloaded symbols. 14458exclude_expsyms=$lt_exclude_expsyms_CXX 14459 14460# Symbols that must always be exported. 14461include_expsyms=$lt_include_expsyms_CXX 14462 14463# ### END LIBTOOL TAG CONFIG: $tagname 14464 14465__EOF__ 14466 14467 14468else 14469 # If there is no Makefile yet, we rely on a make rule to execute 14470 # `config.status --recheck' to rerun these tests and create the 14471 # libtool script then. 14472 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14473 if test -f "$ltmain_in"; then 14474 test -f Makefile && make "$ltmain" 14475 fi 14476fi 14477 14478 14479ac_ext=c 14480ac_cpp='$CPP $CPPFLAGS' 14481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14483ac_compiler_gnu=$ac_cv_c_compiler_gnu 14484 14485CC=$lt_save_CC 14486LDCXX=$LD 14487LD=$lt_save_LD 14488GCC=$lt_save_GCC 14489with_gnu_ldcxx=$with_gnu_ld 14490with_gnu_ld=$lt_save_with_gnu_ld 14491lt_cv_path_LDCXX=$lt_cv_path_LD 14492lt_cv_path_LD=$lt_save_path_LD 14493lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14494lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14495 14496 else 14497 tagname="" 14498 fi 14499 ;; 14500 14501 F77) 14502 if test -n "$F77" && test "X$F77" != "Xno"; then 14503 14504ac_ext=f 14505ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14506ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14507ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14508 14509 14510archive_cmds_need_lc_F77=no 14511allow_undefined_flag_F77= 14512always_export_symbols_F77=no 14513archive_expsym_cmds_F77= 14514export_dynamic_flag_spec_F77= 14515hardcode_direct_F77=no 14516hardcode_libdir_flag_spec_F77= 14517hardcode_libdir_flag_spec_ld_F77= 14518hardcode_libdir_separator_F77= 14519hardcode_minus_L_F77=no 14520hardcode_automatic_F77=no 14521module_cmds_F77= 14522module_expsym_cmds_F77= 14523link_all_deplibs_F77=unknown 14524old_archive_cmds_F77=$old_archive_cmds 14525no_undefined_flag_F77= 14526whole_archive_flag_spec_F77= 14527enable_shared_with_static_runtimes_F77=no 14528 14529# Source file extension for f77 test sources. 14530ac_ext=f 14531 14532# Object file extension for compiled f77 test sources. 14533objext=o 14534objext_F77=$objext 14535 14536# Code to be used in simple compile tests 14537lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14538 14539# Code to be used in simple link tests 14540lt_simple_link_test_code=" program t\n end\n" 14541 14542# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14543 14544# If no C compiler was specified, use CC. 14545LTCC=${LTCC-"$CC"} 14546 14547# If no C compiler flags were specified, use CFLAGS. 14548LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14549 14550# Allow CC to be a program name with arguments. 14551compiler=$CC 14552 14553 14554# save warnings/boilerplate of simple test code 14555ac_outfile=conftest.$ac_objext 14556printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14557eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14558_lt_compiler_boilerplate=`cat conftest.err` 14559$rm conftest* 14560 14561ac_outfile=conftest.$ac_objext 14562printf "$lt_simple_link_test_code" >conftest.$ac_ext 14563eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14564_lt_linker_boilerplate=`cat conftest.err` 14565$rm conftest* 14566 14567 14568# Allow CC to be a program name with arguments. 14569lt_save_CC="$CC" 14570CC=${F77-"f77"} 14571compiler=$CC 14572compiler_F77=$CC 14573for cc_temp in $compiler""; do 14574 case $cc_temp in 14575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14577 \-*) ;; 14578 *) break;; 14579 esac 14580done 14581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14582 14583 14584{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14585echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14586{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14587echo "${ECHO_T}$can_build_shared" >&6; } 14588 14589{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14590echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14591test "$can_build_shared" = "no" && enable_shared=no 14592 14593# On AIX, shared libraries and static libraries use the same namespace, and 14594# are all built from PIC. 14595case $host_os in 14596aix3*) 14597 test "$enable_shared" = yes && enable_static=no 14598 if test -n "$RANLIB"; then 14599 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14600 postinstall_cmds='$RANLIB $lib' 14601 fi 14602 ;; 14603aix4* | aix5*) 14604 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14605 test "$enable_shared" = yes && enable_static=no 14606 fi 14607 ;; 14608esac 14609{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14610echo "${ECHO_T}$enable_shared" >&6; } 14611 14612{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14613echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14614# Make sure either enable_shared or enable_static is yes. 14615test "$enable_shared" = yes || enable_static=yes 14616{ echo "$as_me:$LINENO: result: $enable_static" >&5 14617echo "${ECHO_T}$enable_static" >&6; } 14618 14619GCC_F77="$G77" 14620LD_F77="$LD" 14621 14622lt_prog_compiler_wl_F77= 14623lt_prog_compiler_pic_F77= 14624lt_prog_compiler_static_F77= 14625 14626{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14627echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14628 14629 if test "$GCC" = yes; then 14630 lt_prog_compiler_wl_F77='-Wl,' 14631 lt_prog_compiler_static_F77='-static' 14632 14633 case $host_os in 14634 aix*) 14635 # All AIX code is PIC. 14636 if test "$host_cpu" = ia64; then 14637 # AIX 5 now supports IA64 processor 14638 lt_prog_compiler_static_F77='-Bstatic' 14639 fi 14640 ;; 14641 14642 amigaos*) 14643 # FIXME: we need at least 68020 code to build shared libraries, but 14644 # adding the `-m68020' flag to GCC prevents building anything better, 14645 # like `-m68040'. 14646 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14647 ;; 14648 14649 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14650 # PIC is the default for these OSes. 14651 ;; 14652 14653 mingw* | pw32* | os2*) 14654 # This hack is so that the source file can tell whether it is being 14655 # built for inclusion in a dll (and should export symbols for example). 14656 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14657 ;; 14658 14659 darwin* | rhapsody*) 14660 # PIC is the default on this platform 14661 # Common symbols not allowed in MH_DYLIB files 14662 lt_prog_compiler_pic_F77='-fno-common' 14663 ;; 14664 14665 interix3*) 14666 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14667 # Instead, we relocate shared libraries at runtime. 14668 ;; 14669 14670 msdosdjgpp*) 14671 # Just because we use GCC doesn't mean we suddenly get shared libraries 14672 # on systems that don't support them. 14673 lt_prog_compiler_can_build_shared_F77=no 14674 enable_shared=no 14675 ;; 14676 14677 sysv4*MP*) 14678 if test -d /usr/nec; then 14679 lt_prog_compiler_pic_F77=-Kconform_pic 14680 fi 14681 ;; 14682 14683 hpux*) 14684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14685 # not for PA HP-UX. 14686 case $host_cpu in 14687 hppa*64*|ia64*) 14688 # +Z the default 14689 ;; 14690 *) 14691 lt_prog_compiler_pic_F77='-fPIC' 14692 ;; 14693 esac 14694 ;; 14695 14696 *) 14697 lt_prog_compiler_pic_F77='-fPIC' 14698 ;; 14699 esac 14700 else 14701 # PORTME Check for flag to pass linker flags through the system compiler. 14702 case $host_os in 14703 aix*) 14704 lt_prog_compiler_wl_F77='-Wl,' 14705 if test "$host_cpu" = ia64; then 14706 # AIX 5 now supports IA64 processor 14707 lt_prog_compiler_static_F77='-Bstatic' 14708 else 14709 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14710 fi 14711 ;; 14712 darwin*) 14713 # PIC is the default on this platform 14714 # Common symbols not allowed in MH_DYLIB files 14715 case $cc_basename in 14716 xlc*) 14717 lt_prog_compiler_pic_F77='-qnocommon' 14718 lt_prog_compiler_wl_F77='-Wl,' 14719 ;; 14720 esac 14721 ;; 14722 14723 mingw* | pw32* | os2*) 14724 # This hack is so that the source file can tell whether it is being 14725 # built for inclusion in a dll (and should export symbols for example). 14726 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14727 ;; 14728 14729 hpux9* | hpux10* | hpux11*) 14730 lt_prog_compiler_wl_F77='-Wl,' 14731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14732 # not for PA HP-UX. 14733 case $host_cpu in 14734 hppa*64*|ia64*) 14735 # +Z the default 14736 ;; 14737 *) 14738 lt_prog_compiler_pic_F77='+Z' 14739 ;; 14740 esac 14741 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14742 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14743 ;; 14744 14745 irix5* | irix6* | nonstopux*) 14746 lt_prog_compiler_wl_F77='-Wl,' 14747 # PIC (with -KPIC) is the default. 14748 lt_prog_compiler_static_F77='-non_shared' 14749 ;; 14750 14751 newsos6) 14752 lt_prog_compiler_pic_F77='-KPIC' 14753 lt_prog_compiler_static_F77='-Bstatic' 14754 ;; 14755 14756 linux*) 14757 case $cc_basename in 14758 icc* | ecc*) 14759 lt_prog_compiler_wl_F77='-Wl,' 14760 lt_prog_compiler_pic_F77='-KPIC' 14761 lt_prog_compiler_static_F77='-static' 14762 ;; 14763 pgcc* | pgf77* | pgf90* | pgf95*) 14764 # Portland Group compilers (*not* the Pentium gcc compiler, 14765 # which looks to be a dead project) 14766 lt_prog_compiler_wl_F77='-Wl,' 14767 lt_prog_compiler_pic_F77='-fpic' 14768 lt_prog_compiler_static_F77='-Bstatic' 14769 ;; 14770 ccc*) 14771 lt_prog_compiler_wl_F77='-Wl,' 14772 # All Alpha code is PIC. 14773 lt_prog_compiler_static_F77='-non_shared' 14774 ;; 14775 esac 14776 ;; 14777 14778 osf3* | osf4* | osf5*) 14779 lt_prog_compiler_wl_F77='-Wl,' 14780 # All OSF/1 code is PIC. 14781 lt_prog_compiler_static_F77='-non_shared' 14782 ;; 14783 14784 solaris*) 14785 lt_prog_compiler_pic_F77='-KPIC' 14786 lt_prog_compiler_static_F77='-Bstatic' 14787 case $cc_basename in 14788 f77* | f90* | f95*) 14789 lt_prog_compiler_wl_F77='-Qoption ld ';; 14790 *) 14791 lt_prog_compiler_wl_F77='-Wl,';; 14792 esac 14793 ;; 14794 14795 sunos4*) 14796 lt_prog_compiler_wl_F77='-Qoption ld ' 14797 lt_prog_compiler_pic_F77='-PIC' 14798 lt_prog_compiler_static_F77='-Bstatic' 14799 ;; 14800 14801 sysv4 | sysv4.2uw2* | sysv4.3*) 14802 lt_prog_compiler_wl_F77='-Wl,' 14803 lt_prog_compiler_pic_F77='-KPIC' 14804 lt_prog_compiler_static_F77='-Bstatic' 14805 ;; 14806 14807 sysv4*MP*) 14808 if test -d /usr/nec ;then 14809 lt_prog_compiler_pic_F77='-Kconform_pic' 14810 lt_prog_compiler_static_F77='-Bstatic' 14811 fi 14812 ;; 14813 14814 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14815 lt_prog_compiler_wl_F77='-Wl,' 14816 lt_prog_compiler_pic_F77='-KPIC' 14817 lt_prog_compiler_static_F77='-Bstatic' 14818 ;; 14819 14820 unicos*) 14821 lt_prog_compiler_wl_F77='-Wl,' 14822 lt_prog_compiler_can_build_shared_F77=no 14823 ;; 14824 14825 uts4*) 14826 lt_prog_compiler_pic_F77='-pic' 14827 lt_prog_compiler_static_F77='-Bstatic' 14828 ;; 14829 14830 *) 14831 lt_prog_compiler_can_build_shared_F77=no 14832 ;; 14833 esac 14834 fi 14835 14836{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14837echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14838 14839# 14840# Check to make sure the PIC flag actually works. 14841# 14842if test -n "$lt_prog_compiler_pic_F77"; then 14843 14844{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14845echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14846if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14847 echo $ECHO_N "(cached) $ECHO_C" >&6 14848else 14849 lt_prog_compiler_pic_works_F77=no 14850 ac_outfile=conftest.$ac_objext 14851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14852 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14853 # Insert the option either (1) after the last *FLAGS variable, or 14854 # (2) before a word containing "conftest.", or (3) at the end. 14855 # Note that $ac_compile itself does not contain backslashes and begins 14856 # with a dollar sign (not a hyphen), so the echo should work correctly. 14857 # The option is referenced via a variable to avoid confusing sed. 14858 lt_compile=`echo "$ac_compile" | $SED \ 14859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14861 -e 's:$: $lt_compiler_flag:'` 14862 (eval echo "\"\$as_me:14862: $lt_compile\"" >&5) 14863 (eval "$lt_compile" 2>conftest.err) 14864 ac_status=$? 14865 cat conftest.err >&5 14866 echo "$as_me:14866: \$? = $ac_status" >&5 14867 if (exit $ac_status) && test -s "$ac_outfile"; then 14868 # The compiler can only warn and ignore the option if not recognized 14869 # So say no if there are warnings other than the usual output. 14870 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14873 lt_prog_compiler_pic_works_F77=yes 14874 fi 14875 fi 14876 $rm conftest* 14877 14878fi 14879{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14880echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14881 14882if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14883 case $lt_prog_compiler_pic_F77 in 14884 "" | " "*) ;; 14885 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14886 esac 14887else 14888 lt_prog_compiler_pic_F77= 14889 lt_prog_compiler_can_build_shared_F77=no 14890fi 14891 14892fi 14893case $host_os in 14894 # For platforms which do not support PIC, -DPIC is meaningless: 14895 *djgpp*) 14896 lt_prog_compiler_pic_F77= 14897 ;; 14898 *) 14899 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14900 ;; 14901esac 14902 14903# 14904# Check to make sure the static flag actually works. 14905# 14906wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14907{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14908echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14909if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14910 echo $ECHO_N "(cached) $ECHO_C" >&6 14911else 14912 lt_prog_compiler_static_works_F77=no 14913 save_LDFLAGS="$LDFLAGS" 14914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14915 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14917 # The linker can only warn and ignore the option if not recognized 14918 # So say no if there are warnings 14919 if test -s conftest.err; then 14920 # Append any errors to the config.log. 14921 cat conftest.err 1>&5 14922 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14924 if diff conftest.exp conftest.er2 >/dev/null; then 14925 lt_prog_compiler_static_works_F77=yes 14926 fi 14927 else 14928 lt_prog_compiler_static_works_F77=yes 14929 fi 14930 fi 14931 $rm conftest* 14932 LDFLAGS="$save_LDFLAGS" 14933 14934fi 14935{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14936echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14937 14938if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14939 : 14940else 14941 lt_prog_compiler_static_F77= 14942fi 14943 14944 14945{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14946echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14947if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14948 echo $ECHO_N "(cached) $ECHO_C" >&6 14949else 14950 lt_cv_prog_compiler_c_o_F77=no 14951 $rm -r conftest 2>/dev/null 14952 mkdir conftest 14953 cd conftest 14954 mkdir out 14955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14956 14957 lt_compiler_flag="-o out/conftest2.$ac_objext" 14958 # Insert the option either (1) after the last *FLAGS variable, or 14959 # (2) before a word containing "conftest.", or (3) at the end. 14960 # Note that $ac_compile itself does not contain backslashes and begins 14961 # with a dollar sign (not a hyphen), so the echo should work correctly. 14962 lt_compile=`echo "$ac_compile" | $SED \ 14963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14965 -e 's:$: $lt_compiler_flag:'` 14966 (eval echo "\"\$as_me:14966: $lt_compile\"" >&5) 14967 (eval "$lt_compile" 2>out/conftest.err) 14968 ac_status=$? 14969 cat out/conftest.err >&5 14970 echo "$as_me:14970: \$? = $ac_status" >&5 14971 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14972 then 14973 # The compiler can only warn and ignore the option if not recognized 14974 # So say no if there are warnings 14975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14978 lt_cv_prog_compiler_c_o_F77=yes 14979 fi 14980 fi 14981 chmod u+w . 2>&5 14982 $rm conftest* 14983 # SGI C++ compiler will create directory out/ii_files/ for 14984 # template instantiation 14985 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14986 $rm out/* && rmdir out 14987 cd .. 14988 rmdir conftest 14989 $rm conftest* 14990 14991fi 14992{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14993echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14994 14995 14996hard_links="nottested" 14997if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14998 # do not overwrite the value of need_locks provided by the user 14999 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15000echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15001 hard_links=yes 15002 $rm conftest* 15003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15004 touch conftest.a 15005 ln conftest.a conftest.b 2>&5 || hard_links=no 15006 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15007 { echo "$as_me:$LINENO: result: $hard_links" >&5 15008echo "${ECHO_T}$hard_links" >&6; } 15009 if test "$hard_links" = no; then 15010 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15011echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15012 need_locks=warn 15013 fi 15014else 15015 need_locks=no 15016fi 15017 15018{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15019echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15020 15021 runpath_var= 15022 allow_undefined_flag_F77= 15023 enable_shared_with_static_runtimes_F77=no 15024 archive_cmds_F77= 15025 archive_expsym_cmds_F77= 15026 old_archive_From_new_cmds_F77= 15027 old_archive_from_expsyms_cmds_F77= 15028 export_dynamic_flag_spec_F77= 15029 whole_archive_flag_spec_F77= 15030 thread_safe_flag_spec_F77= 15031 hardcode_libdir_flag_spec_F77= 15032 hardcode_libdir_flag_spec_ld_F77= 15033 hardcode_libdir_separator_F77= 15034 hardcode_direct_F77=no 15035 hardcode_minus_L_F77=no 15036 hardcode_shlibpath_var_F77=unsupported 15037 link_all_deplibs_F77=unknown 15038 hardcode_automatic_F77=no 15039 module_cmds_F77= 15040 module_expsym_cmds_F77= 15041 always_export_symbols_F77=no 15042 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15043 # include_expsyms should be a list of space-separated symbols to be *always* 15044 # included in the symbol list 15045 include_expsyms_F77= 15046 # exclude_expsyms can be an extended regexp of symbols to exclude 15047 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15048 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15049 # as well as any symbol that contains `d'. 15050 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15051 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15052 # platforms (ab)use it in PIC code, but their linkers get confused if 15053 # the symbol is explicitly referenced. Since portable code cannot 15054 # rely on this symbol name, it's probably fine to never include it in 15055 # preloaded symbol tables. 15056 extract_expsyms_cmds= 15057 # Just being paranoid about ensuring that cc_basename is set. 15058 for cc_temp in $compiler""; do 15059 case $cc_temp in 15060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15062 \-*) ;; 15063 *) break;; 15064 esac 15065done 15066cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15067 15068 case $host_os in 15069 cygwin* | mingw* | pw32*) 15070 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15071 # When not using gcc, we currently assume that we are using 15072 # Microsoft Visual C++. 15073 if test "$GCC" != yes; then 15074 with_gnu_ld=no 15075 fi 15076 ;; 15077 interix*) 15078 # we just hope/assume this is gcc and not c89 (= MSVC++) 15079 with_gnu_ld=yes 15080 ;; 15081 openbsd*) 15082 with_gnu_ld=no 15083 ;; 15084 esac 15085 15086 ld_shlibs_F77=yes 15087 if test "$with_gnu_ld" = yes; then 15088 # If archive_cmds runs LD, not CC, wlarc should be empty 15089 wlarc='${wl}' 15090 15091 # Set some defaults for GNU ld with shared library support. These 15092 # are reset later if shared libraries are not supported. Putting them 15093 # here allows them to be overridden if necessary. 15094 runpath_var=LD_RUN_PATH 15095 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15096 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15097 # ancient GNU ld didn't support --whole-archive et. al. 15098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15099 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15100 else 15101 whole_archive_flag_spec_F77= 15102 fi 15103 supports_anon_versioning=no 15104 case `$LD -v 2>/dev/null` in 15105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15108 *\ 2.11.*) ;; # other 2.11 versions 15109 *) supports_anon_versioning=yes ;; 15110 esac 15111 15112 # See if GNU ld supports shared libraries. 15113 case $host_os in 15114 aix3* | aix4* | aix5*) 15115 # On AIX/PPC, the GNU linker is very broken 15116 if test "$host_cpu" != ia64; then 15117 ld_shlibs_F77=no 15118 cat <<EOF 1>&2 15119 15120*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15121*** to be unable to reliably create shared libraries on AIX. 15122*** Therefore, libtool is disabling shared libraries support. If you 15123*** really care for shared libraries, you may want to modify your PATH 15124*** so that a non-GNU linker is found, and then restart. 15125 15126EOF 15127 fi 15128 ;; 15129 15130 amigaos*) 15131 archive_cmds_F77='$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)' 15132 hardcode_libdir_flag_spec_F77='-L$libdir' 15133 hardcode_minus_L_F77=yes 15134 15135 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15136 # that the semantics of dynamic libraries on AmigaOS, at least up 15137 # to version 4, is to share data among multiple programs linked 15138 # with the same dynamic library. Since this doesn't match the 15139 # behavior of shared libraries on other platforms, we can't use 15140 # them. 15141 ld_shlibs_F77=no 15142 ;; 15143 15144 beos*) 15145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15146 allow_undefined_flag_F77=unsupported 15147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15148 # support --undefined. This deserves some investigation. FIXME 15149 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15150 else 15151 ld_shlibs_F77=no 15152 fi 15153 ;; 15154 15155 cygwin* | mingw* | pw32*) 15156 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15157 # as there is no search path for DLLs. 15158 hardcode_libdir_flag_spec_F77='-L$libdir' 15159 allow_undefined_flag_F77=unsupported 15160 always_export_symbols_F77=no 15161 enable_shared_with_static_runtimes_F77=yes 15162 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15163 15164 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15165 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15166 # If the export-symbols file already is a .def file (1st line 15167 # is EXPORTS), use it as is; otherwise, prepend... 15168 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15169 cp $export_symbols $output_objdir/$soname.def; 15170 else 15171 echo EXPORTS > $output_objdir/$soname.def; 15172 cat $export_symbols >> $output_objdir/$soname.def; 15173 fi~ 15174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15175 else 15176 ld_shlibs_F77=no 15177 fi 15178 ;; 15179 15180 interix3*) 15181 hardcode_direct_F77=no 15182 hardcode_shlibpath_var_F77=no 15183 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15184 export_dynamic_flag_spec_F77='${wl}-E' 15185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15186 # Instead, shared libraries are loaded at an image base (0x10000000 by 15187 # default) and relocated if they conflict, which is a slow very memory 15188 # consuming and fragmenting process. To avoid this, we pick a random, 15189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15190 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15191 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15192 archive_expsym_cmds_F77='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' 15193 ;; 15194 15195 linux*) 15196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15197 tmp_addflag= 15198 case $cc_basename,$host_cpu in 15199 pgcc*) # Portland Group C compiler 15200 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15201 tmp_addflag=' $pic_flag' 15202 ;; 15203 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15204 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15205 tmp_addflag=' $pic_flag -Mnomain' ;; 15206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15207 tmp_addflag=' -i_dynamic' ;; 15208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15209 tmp_addflag=' -i_dynamic -nofor_main' ;; 15210 ifc* | ifort*) # Intel Fortran compiler 15211 tmp_addflag=' -nofor_main' ;; 15212 esac 15213 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15214 15215 if test $supports_anon_versioning = yes; then 15216 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15218 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15219 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15220 fi 15221 else 15222 ld_shlibs_F77=no 15223 fi 15224 ;; 15225 15226 netbsd*) 15227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15228 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15229 wlarc= 15230 else 15231 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15232 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15233 fi 15234 ;; 15235 15236 solaris*) 15237 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15238 ld_shlibs_F77=no 15239 cat <<EOF 1>&2 15240 15241*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15242*** create shared libraries on Solaris systems. Therefore, libtool 15243*** is disabling shared libraries support. We urge you to upgrade GNU 15244*** binutils to release 2.9.1 or newer. Another option is to modify 15245*** your PATH or compiler configuration so that the native linker is 15246*** used, and then restart. 15247 15248EOF 15249 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15252 else 15253 ld_shlibs_F77=no 15254 fi 15255 ;; 15256 15257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15258 case `$LD -v 2>&1` in 15259 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15260 ld_shlibs_F77=no 15261 cat <<_LT_EOF 1>&2 15262 15263*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15264*** reliably create shared libraries on SCO systems. Therefore, libtool 15265*** is disabling shared libraries support. We urge you to upgrade GNU 15266*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15267*** your PATH or compiler configuration so that the native linker is 15268*** used, and then restart. 15269 15270_LT_EOF 15271 ;; 15272 *) 15273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15274 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15277 else 15278 ld_shlibs_F77=no 15279 fi 15280 ;; 15281 esac 15282 ;; 15283 15284 sunos4*) 15285 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15286 wlarc= 15287 hardcode_direct_F77=yes 15288 hardcode_shlibpath_var_F77=no 15289 ;; 15290 15291 *) 15292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15293 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15294 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15295 else 15296 ld_shlibs_F77=no 15297 fi 15298 ;; 15299 esac 15300 15301 if test "$ld_shlibs_F77" = no; then 15302 runpath_var= 15303 hardcode_libdir_flag_spec_F77= 15304 export_dynamic_flag_spec_F77= 15305 whole_archive_flag_spec_F77= 15306 fi 15307 else 15308 # PORTME fill in a description of your system's linker (not GNU ld) 15309 case $host_os in 15310 aix3*) 15311 allow_undefined_flag_F77=unsupported 15312 always_export_symbols_F77=yes 15313 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15314 # Note: this linker hardcodes the directories in LIBPATH if there 15315 # are no directories specified by -L. 15316 hardcode_minus_L_F77=yes 15317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15318 # Neither direct hardcoding nor static linking is supported with a 15319 # broken collect2. 15320 hardcode_direct_F77=unsupported 15321 fi 15322 ;; 15323 15324 aix4* | aix5*) 15325 if test "$host_cpu" = ia64; then 15326 # On IA64, the linker does run time linking by default, so we don't 15327 # have to do anything special. 15328 aix_use_runtimelinking=no 15329 exp_sym_flag='-Bexport' 15330 no_entry_flag="" 15331 else 15332 # If we're using GNU nm, then we don't want the "-C" option. 15333 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15334 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15335 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15336 else 15337 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15338 fi 15339 aix_use_runtimelinking=no 15340 15341 # Test if we are trying to use run time linking or normal 15342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15343 # need to do runtime linking. 15344 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15345 for ld_flag in $LDFLAGS; do 15346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15347 aix_use_runtimelinking=yes 15348 break 15349 fi 15350 done 15351 ;; 15352 esac 15353 15354 exp_sym_flag='-bexport' 15355 no_entry_flag='-bnoentry' 15356 fi 15357 15358 # When large executables or shared objects are built, AIX ld can 15359 # have problems creating the table of contents. If linking a library 15360 # or program results in "error TOC overflow" add -mminimal-toc to 15361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15363 15364 archive_cmds_F77='' 15365 hardcode_direct_F77=yes 15366 hardcode_libdir_separator_F77=':' 15367 link_all_deplibs_F77=yes 15368 15369 if test "$GCC" = yes; then 15370 case $host_os in aix4.[012]|aix4.[012].*) 15371 # We only want to do this on AIX 4.2 and lower, the check 15372 # below for broken collect2 doesn't work under 4.3+ 15373 collect2name=`${CC} -print-prog-name=collect2` 15374 if test -f "$collect2name" && \ 15375 strings "$collect2name" | grep resolve_lib_name >/dev/null 15376 then 15377 # We have reworked collect2 15378 hardcode_direct_F77=yes 15379 else 15380 # We have old collect2 15381 hardcode_direct_F77=unsupported 15382 # It fails to find uninstalled libraries when the uninstalled 15383 # path is not listed in the libpath. Setting hardcode_minus_L 15384 # to unsupported forces relinking 15385 hardcode_minus_L_F77=yes 15386 hardcode_libdir_flag_spec_F77='-L$libdir' 15387 hardcode_libdir_separator_F77= 15388 fi 15389 ;; 15390 esac 15391 shared_flag='-shared' 15392 if test "$aix_use_runtimelinking" = yes; then 15393 shared_flag="$shared_flag "'${wl}-G' 15394 fi 15395 else 15396 # not using gcc 15397 if test "$host_cpu" = ia64; then 15398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15399 # chokes on -Wl,-G. The following line is correct: 15400 shared_flag='-G' 15401 else 15402 if test "$aix_use_runtimelinking" = yes; then 15403 shared_flag='${wl}-G' 15404 else 15405 shared_flag='${wl}-bM:SRE' 15406 fi 15407 fi 15408 fi 15409 15410 # It seems that -bexpall does not export symbols beginning with 15411 # underscore (_), so it is better to generate a list of symbols to export. 15412 always_export_symbols_F77=yes 15413 if test "$aix_use_runtimelinking" = yes; then 15414 # Warning - without using the other runtime loading flags (-brtl), 15415 # -berok will link without error, but may produce a broken library. 15416 allow_undefined_flag_F77='-berok' 15417 # Determine the default libpath from the value encoded in an empty executable. 15418 cat >conftest.$ac_ext <<_ACEOF 15419 program main 15420 15421 end 15422_ACEOF 15423rm -f conftest.$ac_objext conftest$ac_exeext 15424if { (ac_try="$ac_link" 15425case "(($ac_try" in 15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15427 *) ac_try_echo=$ac_try;; 15428esac 15429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15430 (eval "$ac_link") 2>conftest.er1 15431 ac_status=$? 15432 grep -v '^ *+' conftest.er1 >conftest.err 15433 rm -f conftest.er1 15434 cat conftest.err >&5 15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15436 (exit $ac_status); } && { 15437 test -z "$ac_f77_werror_flag" || 15438 test ! -s conftest.err 15439 } && test -s conftest$ac_exeext && 15440 $as_test_x conftest$ac_exeext; then 15441 15442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15443}'` 15444# Check for a 64-bit object if we didn't find anything. 15445if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15446}'`; fi 15447else 15448 echo "$as_me: failed program was:" >&5 15449sed 's/^/| /' conftest.$ac_ext >&5 15450 15451 15452fi 15453 15454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15455 conftest$ac_exeext conftest.$ac_ext 15456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15457 15458 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15459 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15460 else 15461 if test "$host_cpu" = ia64; then 15462 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15463 allow_undefined_flag_F77="-z nodefs" 15464 archive_expsym_cmds_F77="\$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" 15465 else 15466 # Determine the default libpath from the value encoded in an empty executable. 15467 cat >conftest.$ac_ext <<_ACEOF 15468 program main 15469 15470 end 15471_ACEOF 15472rm -f conftest.$ac_objext conftest$ac_exeext 15473if { (ac_try="$ac_link" 15474case "(($ac_try" in 15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15476 *) ac_try_echo=$ac_try;; 15477esac 15478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15479 (eval "$ac_link") 2>conftest.er1 15480 ac_status=$? 15481 grep -v '^ *+' conftest.er1 >conftest.err 15482 rm -f conftest.er1 15483 cat conftest.err >&5 15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15485 (exit $ac_status); } && { 15486 test -z "$ac_f77_werror_flag" || 15487 test ! -s conftest.err 15488 } && test -s conftest$ac_exeext && 15489 $as_test_x conftest$ac_exeext; then 15490 15491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15492}'` 15493# Check for a 64-bit object if we didn't find anything. 15494if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15495}'`; fi 15496else 15497 echo "$as_me: failed program was:" >&5 15498sed 's/^/| /' conftest.$ac_ext >&5 15499 15500 15501fi 15502 15503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15504 conftest$ac_exeext conftest.$ac_ext 15505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15506 15507 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15508 # Warning - without using the other run time loading flags, 15509 # -berok will link without error, but may produce a broken library. 15510 no_undefined_flag_F77=' ${wl}-bernotok' 15511 allow_undefined_flag_F77=' ${wl}-berok' 15512 # Exported symbols can be pulled into shared objects from archives 15513 whole_archive_flag_spec_F77='$convenience' 15514 archive_cmds_need_lc_F77=yes 15515 # This is similar to how AIX traditionally builds its shared libraries. 15516 archive_expsym_cmds_F77="\$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' 15517 fi 15518 fi 15519 ;; 15520 15521 amigaos*) 15522 archive_cmds_F77='$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)' 15523 hardcode_libdir_flag_spec_F77='-L$libdir' 15524 hardcode_minus_L_F77=yes 15525 # see comment about different semantics on the GNU ld section 15526 ld_shlibs_F77=no 15527 ;; 15528 15529 bsdi[45]*) 15530 export_dynamic_flag_spec_F77=-rdynamic 15531 ;; 15532 15533 cygwin* | mingw* | pw32*) 15534 # When not using gcc, we currently assume that we are using 15535 # Microsoft Visual C++. 15536 # hardcode_libdir_flag_spec is actually meaningless, as there is 15537 # no search path for DLLs. 15538 hardcode_libdir_flag_spec_F77=' ' 15539 allow_undefined_flag_F77=unsupported 15540 # Tell ltmain to make .lib files, not .a files. 15541 libext=lib 15542 # Tell ltmain to make .dll files, not .so files. 15543 shrext_cmds=".dll" 15544 # FIXME: Setting linknames here is a bad hack. 15545 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15546 # The linker will automatically build a .lib file if we build a DLL. 15547 old_archive_From_new_cmds_F77='true' 15548 # FIXME: Should let the user specify the lib program. 15549 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15550 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15551 enable_shared_with_static_runtimes_F77=yes 15552 ;; 15553 15554 darwin* | rhapsody*) 15555 case $host_os in 15556 rhapsody* | darwin1.[012]) 15557 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15558 ;; 15559 *) # Darwin 1.3 on 15560 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15561 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15562 else 15563 case ${MACOSX_DEPLOYMENT_TARGET} in 15564 10.[012]) 15565 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15566 ;; 15567 10.*) 15568 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15569 ;; 15570 esac 15571 fi 15572 ;; 15573 esac 15574 archive_cmds_need_lc_F77=no 15575 hardcode_direct_F77=no 15576 hardcode_automatic_F77=yes 15577 hardcode_shlibpath_var_F77=unsupported 15578 whole_archive_flag_spec_F77='' 15579 link_all_deplibs_F77=yes 15580 if test "$GCC" = yes ; then 15581 output_verbose_link_cmd='echo' 15582 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15583 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15585 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15586 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15587 else 15588 case $cc_basename in 15589 xlc*) 15590 output_verbose_link_cmd='echo' 15591 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15594 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15595 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15596 ;; 15597 *) 15598 ld_shlibs_F77=no 15599 ;; 15600 esac 15601 fi 15602 ;; 15603 15604 dgux*) 15605 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15606 hardcode_libdir_flag_spec_F77='-L$libdir' 15607 hardcode_shlibpath_var_F77=no 15608 ;; 15609 15610 freebsd1*) 15611 ld_shlibs_F77=no 15612 ;; 15613 15614 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15615 # support. Future versions do this automatically, but an explicit c++rt0.o 15616 # does not break anything, and helps significantly (at the cost of a little 15617 # extra space). 15618 freebsd2.2*) 15619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15620 hardcode_libdir_flag_spec_F77='-R$libdir' 15621 hardcode_direct_F77=yes 15622 hardcode_shlibpath_var_F77=no 15623 ;; 15624 15625 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15626 freebsd2*) 15627 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15628 hardcode_direct_F77=yes 15629 hardcode_minus_L_F77=yes 15630 hardcode_shlibpath_var_F77=no 15631 ;; 15632 15633 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15634 freebsd* | kfreebsd*-gnu | dragonfly*) 15635 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15636 hardcode_libdir_flag_spec_F77='-R$libdir' 15637 hardcode_direct_F77=yes 15638 hardcode_shlibpath_var_F77=no 15639 ;; 15640 15641 hpux9*) 15642 if test "$GCC" = yes; then 15643 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15644 else 15645 archive_cmds_F77='$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' 15646 fi 15647 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15648 hardcode_libdir_separator_F77=: 15649 hardcode_direct_F77=yes 15650 15651 # hardcode_minus_L: Not really in the search PATH, 15652 # but as the default location of the library. 15653 hardcode_minus_L_F77=yes 15654 export_dynamic_flag_spec_F77='${wl}-E' 15655 ;; 15656 15657 hpux10*) 15658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15660 else 15661 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15662 fi 15663 if test "$with_gnu_ld" = no; then 15664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15665 hardcode_libdir_separator_F77=: 15666 15667 hardcode_direct_F77=yes 15668 export_dynamic_flag_spec_F77='${wl}-E' 15669 15670 # hardcode_minus_L: Not really in the search PATH, 15671 # but as the default location of the library. 15672 hardcode_minus_L_F77=yes 15673 fi 15674 ;; 15675 15676 hpux11*) 15677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15678 case $host_cpu in 15679 hppa*64*) 15680 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15681 ;; 15682 ia64*) 15683 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15684 ;; 15685 *) 15686 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15687 ;; 15688 esac 15689 else 15690 case $host_cpu in 15691 hppa*64*) 15692 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15693 ;; 15694 ia64*) 15695 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15696 ;; 15697 *) 15698 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15699 ;; 15700 esac 15701 fi 15702 if test "$with_gnu_ld" = no; then 15703 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15704 hardcode_libdir_separator_F77=: 15705 15706 case $host_cpu in 15707 hppa*64*|ia64*) 15708 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15709 hardcode_direct_F77=no 15710 hardcode_shlibpath_var_F77=no 15711 ;; 15712 *) 15713 hardcode_direct_F77=yes 15714 export_dynamic_flag_spec_F77='${wl}-E' 15715 15716 # hardcode_minus_L: Not really in the search PATH, 15717 # but as the default location of the library. 15718 hardcode_minus_L_F77=yes 15719 ;; 15720 esac 15721 fi 15722 ;; 15723 15724 irix5* | irix6* | nonstopux*) 15725 if test "$GCC" = yes; then 15726 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15727 else 15728 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15729 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15730 fi 15731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15732 hardcode_libdir_separator_F77=: 15733 link_all_deplibs_F77=yes 15734 ;; 15735 15736 netbsd*) 15737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15738 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15739 else 15740 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15741 fi 15742 hardcode_libdir_flag_spec_F77='-R$libdir' 15743 hardcode_direct_F77=yes 15744 hardcode_shlibpath_var_F77=no 15745 ;; 15746 15747 newsos6) 15748 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15749 hardcode_direct_F77=yes 15750 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15751 hardcode_libdir_separator_F77=: 15752 hardcode_shlibpath_var_F77=no 15753 ;; 15754 15755 openbsd*) 15756 hardcode_direct_F77=yes 15757 hardcode_shlibpath_var_F77=no 15758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15760 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15762 export_dynamic_flag_spec_F77='${wl}-E' 15763 else 15764 case $host_os in 15765 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15767 hardcode_libdir_flag_spec_F77='-R$libdir' 15768 ;; 15769 *) 15770 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15771 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15772 ;; 15773 esac 15774 fi 15775 ;; 15776 15777 os2*) 15778 hardcode_libdir_flag_spec_F77='-L$libdir' 15779 hardcode_minus_L_F77=yes 15780 allow_undefined_flag_F77=unsupported 15781 archive_cmds_F77='$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' 15782 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15783 ;; 15784 15785 osf3*) 15786 if test "$GCC" = yes; then 15787 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15788 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15789 else 15790 allow_undefined_flag_F77=' -expect_unresolved \*' 15791 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15792 fi 15793 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15794 hardcode_libdir_separator_F77=: 15795 ;; 15796 15797 osf4* | osf5*) # as osf3* with the addition of -msym flag 15798 if test "$GCC" = yes; then 15799 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15800 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15801 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15802 else 15803 allow_undefined_flag_F77=' -expect_unresolved \*' 15804 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15805 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15806 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15807 15808 # Both c and cxx compiler support -rpath directly 15809 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15810 fi 15811 hardcode_libdir_separator_F77=: 15812 ;; 15813 15814 solaris*) 15815 no_undefined_flag_F77=' -z text' 15816 if test "$GCC" = yes; then 15817 wlarc='${wl}' 15818 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15821 else 15822 wlarc='' 15823 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15824 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15825 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15826 fi 15827 hardcode_libdir_flag_spec_F77='-R$libdir' 15828 hardcode_shlibpath_var_F77=no 15829 case $host_os in 15830 solaris2.[0-5] | solaris2.[0-5].*) ;; 15831 *) 15832 # The compiler driver will combine linker options so we 15833 # cannot just pass the convience library names through 15834 # without $wl, iff we do not link with $LD. 15835 # Luckily, gcc supports the same syntax we need for Sun Studio. 15836 # Supported since Solaris 2.6 (maybe 2.5.1?) 15837 case $wlarc in 15838 '') 15839 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15840 *) 15841 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15842 esac ;; 15843 esac 15844 link_all_deplibs_F77=yes 15845 ;; 15846 15847 sunos4*) 15848 if test "x$host_vendor" = xsequent; then 15849 # Use $CC to link under sequent, because it throws in some extra .o 15850 # files that make .init and .fini sections work. 15851 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15852 else 15853 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15854 fi 15855 hardcode_libdir_flag_spec_F77='-L$libdir' 15856 hardcode_direct_F77=yes 15857 hardcode_minus_L_F77=yes 15858 hardcode_shlibpath_var_F77=no 15859 ;; 15860 15861 sysv4) 15862 case $host_vendor in 15863 sni) 15864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15865 hardcode_direct_F77=yes # is this really true??? 15866 ;; 15867 siemens) 15868 ## LD is ld it makes a PLAMLIB 15869 ## CC just makes a GrossModule. 15870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15871 reload_cmds_F77='$CC -r -o $output$reload_objs' 15872 hardcode_direct_F77=no 15873 ;; 15874 motorola) 15875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15876 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15877 ;; 15878 esac 15879 runpath_var='LD_RUN_PATH' 15880 hardcode_shlibpath_var_F77=no 15881 ;; 15882 15883 sysv4.3*) 15884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15885 hardcode_shlibpath_var_F77=no 15886 export_dynamic_flag_spec_F77='-Bexport' 15887 ;; 15888 15889 sysv4*MP*) 15890 if test -d /usr/nec; then 15891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15892 hardcode_shlibpath_var_F77=no 15893 runpath_var=LD_RUN_PATH 15894 hardcode_runpath_var=yes 15895 ld_shlibs_F77=yes 15896 fi 15897 ;; 15898 15899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15900 no_undefined_flag_F77='${wl}-z,text' 15901 archive_cmds_need_lc_F77=no 15902 hardcode_shlibpath_var_F77=no 15903 runpath_var='LD_RUN_PATH' 15904 15905 if test "$GCC" = yes; then 15906 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15907 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15908 else 15909 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15910 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15911 fi 15912 ;; 15913 15914 sysv5* | sco3.2v5* | sco5v6*) 15915 # Note: We can NOT use -z defs as we might desire, because we do not 15916 # link with -lc, and that would cause any symbols used from libc to 15917 # always be unresolved, which means just about no library would 15918 # ever link correctly. If we're not using GNU ld we use -z text 15919 # though, which does catch some bad symbols but isn't as heavy-handed 15920 # as -z defs. 15921 no_undefined_flag_F77='${wl}-z,text' 15922 allow_undefined_flag_F77='${wl}-z,nodefs' 15923 archive_cmds_need_lc_F77=no 15924 hardcode_shlibpath_var_F77=no 15925 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15926 hardcode_libdir_separator_F77=':' 15927 link_all_deplibs_F77=yes 15928 export_dynamic_flag_spec_F77='${wl}-Bexport' 15929 runpath_var='LD_RUN_PATH' 15930 15931 if test "$GCC" = yes; then 15932 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15933 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15934 else 15935 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15936 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15937 fi 15938 ;; 15939 15940 uts4*) 15941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15942 hardcode_libdir_flag_spec_F77='-L$libdir' 15943 hardcode_shlibpath_var_F77=no 15944 ;; 15945 15946 *) 15947 ld_shlibs_F77=no 15948 ;; 15949 esac 15950 fi 15951 15952{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15953echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15954test "$ld_shlibs_F77" = no && can_build_shared=no 15955 15956# 15957# Do we need to explicitly link libc? 15958# 15959case "x$archive_cmds_need_lc_F77" in 15960x|xyes) 15961 # Assume -lc should be added 15962 archive_cmds_need_lc_F77=yes 15963 15964 if test "$enable_shared" = yes && test "$GCC" = yes; then 15965 case $archive_cmds_F77 in 15966 *'~'*) 15967 # FIXME: we may have to deal with multi-command sequences. 15968 ;; 15969 '$CC '*) 15970 # Test whether the compiler implicitly links with -lc since on some 15971 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15972 # to ld, don't add -lc before -lgcc. 15973 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15974echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15975 $rm conftest* 15976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15977 15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15979 (eval $ac_compile) 2>&5 15980 ac_status=$? 15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15982 (exit $ac_status); } 2>conftest.err; then 15983 soname=conftest 15984 lib=conftest 15985 libobjs=conftest.$ac_objext 15986 deplibs= 15987 wl=$lt_prog_compiler_wl_F77 15988 pic_flag=$lt_prog_compiler_pic_F77 15989 compiler_flags=-v 15990 linker_flags=-v 15991 verstring= 15992 output_objdir=. 15993 libname=conftest 15994 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15995 allow_undefined_flag_F77= 15996 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15997 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15998 ac_status=$? 15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16000 (exit $ac_status); } 16001 then 16002 archive_cmds_need_lc_F77=no 16003 else 16004 archive_cmds_need_lc_F77=yes 16005 fi 16006 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16007 else 16008 cat conftest.err 1>&5 16009 fi 16010 $rm conftest* 16011 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16012echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16013 ;; 16014 esac 16015 fi 16016 ;; 16017esac 16018 16019{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16020echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16021library_names_spec= 16022libname_spec='lib$name' 16023soname_spec= 16024shrext_cmds=".so" 16025postinstall_cmds= 16026postuninstall_cmds= 16027finish_cmds= 16028finish_eval= 16029shlibpath_var= 16030shlibpath_overrides_runpath=unknown 16031version_type=none 16032dynamic_linker="$host_os ld.so" 16033sys_lib_dlsearch_path_spec="/lib /usr/lib" 16034if test "$GCC" = yes; then 16035 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16036 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16037 # if the path contains ";" then we assume it to be the separator 16038 # otherwise default to the standard path separator (i.e. ":") - it is 16039 # assumed that no part of a normal pathname contains ";" but that should 16040 # okay in the real world where ";" in dirpaths is itself problematic. 16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16042 else 16043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16044 fi 16045else 16046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16047fi 16048need_lib_prefix=unknown 16049hardcode_into_libs=no 16050 16051# when you set need_version to no, make sure it does not cause -set_version 16052# flags to be left without arguments 16053need_version=unknown 16054 16055case $host_os in 16056aix3*) 16057 version_type=linux 16058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16059 shlibpath_var=LIBPATH 16060 16061 # AIX 3 has no versioning support, so we append a major version to the name. 16062 soname_spec='${libname}${release}${shared_ext}$major' 16063 ;; 16064 16065aix4* | aix5*) 16066 version_type=linux 16067 need_lib_prefix=no 16068 need_version=no 16069 hardcode_into_libs=yes 16070 if test "$host_cpu" = ia64; then 16071 # AIX 5 supports IA64 16072 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16073 shlibpath_var=LD_LIBRARY_PATH 16074 else 16075 # With GCC up to 2.95.x, collect2 would create an import file 16076 # for dependence libraries. The import file would start with 16077 # the line `#! .'. This would cause the generated library to 16078 # depend on `.', always an invalid library. This was fixed in 16079 # development snapshots of GCC prior to 3.0. 16080 case $host_os in 16081 aix4 | aix4.[01] | aix4.[01].*) 16082 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16083 echo ' yes ' 16084 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16085 : 16086 else 16087 can_build_shared=no 16088 fi 16089 ;; 16090 esac 16091 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16092 # soname into executable. Probably we can add versioning support to 16093 # collect2, so additional links can be useful in future. 16094 if test "$aix_use_runtimelinking" = yes; then 16095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16096 # instead of lib<name>.a to let people know that these are not 16097 # typical AIX shared libraries. 16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16099 else 16100 # We preserve .a as extension for shared libraries through AIX4.2 16101 # and later when we are not doing run time linking. 16102 library_names_spec='${libname}${release}.a $libname.a' 16103 soname_spec='${libname}${release}${shared_ext}$major' 16104 fi 16105 shlibpath_var=LIBPATH 16106 fi 16107 ;; 16108 16109amigaos*) 16110 library_names_spec='$libname.ixlibrary $libname.a' 16111 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16112 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 16113 ;; 16114 16115beos*) 16116 library_names_spec='${libname}${shared_ext}' 16117 dynamic_linker="$host_os ld.so" 16118 shlibpath_var=LIBRARY_PATH 16119 ;; 16120 16121bsdi[45]*) 16122 version_type=linux 16123 need_version=no 16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16125 soname_spec='${libname}${release}${shared_ext}$major' 16126 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16129 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16130 # the default ld.so.conf also contains /usr/contrib/lib and 16131 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16132 # libtool to hard-code these into programs 16133 ;; 16134 16135cygwin* | mingw* | pw32*) 16136 version_type=windows 16137 shrext_cmds=".dll" 16138 need_version=no 16139 need_lib_prefix=no 16140 16141 case $GCC,$host_os in 16142 yes,cygwin* | yes,mingw* | yes,pw32*) 16143 library_names_spec='$libname.dll.a' 16144 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16145 postinstall_cmds='base_file=`basename \${file}`~ 16146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16147 dldir=$destdir/`dirname \$dlpath`~ 16148 test -d \$dldir || mkdir -p \$dldir~ 16149 $install_prog $dir/$dlname \$dldir/$dlname~ 16150 chmod a+x \$dldir/$dlname' 16151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16152 dlpath=$dir/\$dldll~ 16153 $rm \$dlpath' 16154 shlibpath_overrides_runpath=yes 16155 16156 case $host_os in 16157 cygwin*) 16158 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16160 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16161 ;; 16162 mingw*) 16163 # MinGW DLLs use traditional 'lib' prefix 16164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16166 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16167 # It is most probably a Windows format PATH printed by 16168 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16169 # path with ; separators, and with drive letters. We can handle the 16170 # drive letters (cygwin fileutils understands them), so leave them, 16171 # especially as we might pass files found there to a mingw objdump, 16172 # which wouldn't understand a cygwinified path. Ahh. 16173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16174 else 16175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16176 fi 16177 ;; 16178 pw32*) 16179 # pw32 DLLs use 'pw' prefix rather than 'lib' 16180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16181 ;; 16182 esac 16183 ;; 16184 16185 *) 16186 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16187 ;; 16188 esac 16189 dynamic_linker='Win32 ld.exe' 16190 # FIXME: first we should search . and the directory the executable is in 16191 shlibpath_var=PATH 16192 ;; 16193 16194darwin* | rhapsody*) 16195 dynamic_linker="$host_os dyld" 16196 version_type=darwin 16197 need_lib_prefix=no 16198 need_version=no 16199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 16200 soname_spec='${libname}${release}${major}$shared_ext' 16201 shlibpath_overrides_runpath=yes 16202 shlibpath_var=DYLD_LIBRARY_PATH 16203 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16205 if test "$GCC" = yes; then 16206 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16207 else 16208 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16209 fi 16210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16211 ;; 16212 16213dgux*) 16214 version_type=linux 16215 need_lib_prefix=no 16216 need_version=no 16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16218 soname_spec='${libname}${release}${shared_ext}$major' 16219 shlibpath_var=LD_LIBRARY_PATH 16220 ;; 16221 16222freebsd1*) 16223 dynamic_linker=no 16224 ;; 16225 16226kfreebsd*-gnu) 16227 version_type=linux 16228 need_lib_prefix=no 16229 need_version=no 16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16231 soname_spec='${libname}${release}${shared_ext}$major' 16232 shlibpath_var=LD_LIBRARY_PATH 16233 shlibpath_overrides_runpath=no 16234 hardcode_into_libs=yes 16235 dynamic_linker='GNU ld.so' 16236 ;; 16237 16238freebsd* | dragonfly*) 16239 # DragonFly does not have aout. When/if they implement a new 16240 # versioning mechanism, adjust this. 16241 if test -x /usr/bin/objformat; then 16242 objformat=`/usr/bin/objformat` 16243 else 16244 case $host_os in 16245 freebsd[123]*) objformat=aout ;; 16246 *) objformat=elf ;; 16247 esac 16248 fi 16249 version_type=freebsd-$objformat 16250 case $version_type in 16251 freebsd-elf*) 16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16253 need_version=no 16254 need_lib_prefix=no 16255 ;; 16256 freebsd-*) 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16258 need_version=yes 16259 ;; 16260 esac 16261 shlibpath_var=LD_LIBRARY_PATH 16262 case $host_os in 16263 freebsd2*) 16264 shlibpath_overrides_runpath=yes 16265 ;; 16266 freebsd3.[01]* | freebsdelf3.[01]*) 16267 shlibpath_overrides_runpath=yes 16268 hardcode_into_libs=yes 16269 ;; 16270 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16271 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16272 shlibpath_overrides_runpath=no 16273 hardcode_into_libs=yes 16274 ;; 16275 freebsd*) # from 4.6 on 16276 shlibpath_overrides_runpath=yes 16277 hardcode_into_libs=yes 16278 ;; 16279 esac 16280 ;; 16281 16282gnu*) 16283 version_type=linux 16284 need_lib_prefix=no 16285 need_version=no 16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16287 soname_spec='${libname}${release}${shared_ext}$major' 16288 shlibpath_var=LD_LIBRARY_PATH 16289 hardcode_into_libs=yes 16290 ;; 16291 16292hpux9* | hpux10* | hpux11*) 16293 # Give a soname corresponding to the major version so that dld.sl refuses to 16294 # link against other versions. 16295 version_type=sunos 16296 need_lib_prefix=no 16297 need_version=no 16298 case $host_cpu in 16299 ia64*) 16300 shrext_cmds='.so' 16301 hardcode_into_libs=yes 16302 dynamic_linker="$host_os dld.so" 16303 shlibpath_var=LD_LIBRARY_PATH 16304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16306 soname_spec='${libname}${release}${shared_ext}$major' 16307 if test "X$HPUX_IA64_MODE" = X32; then 16308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16309 else 16310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16311 fi 16312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16313 ;; 16314 hppa*64*) 16315 shrext_cmds='.sl' 16316 hardcode_into_libs=yes 16317 dynamic_linker="$host_os dld.sl" 16318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16321 soname_spec='${libname}${release}${shared_ext}$major' 16322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16324 ;; 16325 *) 16326 shrext_cmds='.sl' 16327 dynamic_linker="$host_os dld.sl" 16328 shlibpath_var=SHLIB_PATH 16329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16331 soname_spec='${libname}${release}${shared_ext}$major' 16332 ;; 16333 esac 16334 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16335 postinstall_cmds='chmod 555 $lib' 16336 ;; 16337 16338interix3*) 16339 version_type=linux 16340 need_lib_prefix=no 16341 need_version=no 16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16343 soname_spec='${libname}${release}${shared_ext}$major' 16344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16345 shlibpath_var=LD_LIBRARY_PATH 16346 shlibpath_overrides_runpath=no 16347 hardcode_into_libs=yes 16348 ;; 16349 16350irix5* | irix6* | nonstopux*) 16351 case $host_os in 16352 nonstopux*) version_type=nonstopux ;; 16353 *) 16354 if test "$lt_cv_prog_gnu_ld" = yes; then 16355 version_type=linux 16356 else 16357 version_type=irix 16358 fi ;; 16359 esac 16360 need_lib_prefix=no 16361 need_version=no 16362 soname_spec='${libname}${release}${shared_ext}$major' 16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16364 case $host_os in 16365 irix5* | nonstopux*) 16366 libsuff= shlibsuff= 16367 ;; 16368 *) 16369 case $LD in # libtool.m4 will add one of these switches to LD 16370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16371 libsuff= shlibsuff= libmagic=32-bit;; 16372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16373 libsuff=32 shlibsuff=N32 libmagic=N32;; 16374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16375 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16376 *) libsuff= shlibsuff= libmagic=never-match;; 16377 esac 16378 ;; 16379 esac 16380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16381 shlibpath_overrides_runpath=no 16382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16384 hardcode_into_libs=yes 16385 ;; 16386 16387# No shared lib support for Linux oldld, aout, or coff. 16388linux*oldld* | linux*aout* | linux*coff*) 16389 dynamic_linker=no 16390 ;; 16391 16392# This must be Linux ELF. 16393linux*) 16394 version_type=linux 16395 need_lib_prefix=no 16396 need_version=no 16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16398 soname_spec='${libname}${release}${shared_ext}$major' 16399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16400 shlibpath_var=LD_LIBRARY_PATH 16401 shlibpath_overrides_runpath=no 16402 # This implies no fast_install, which is unacceptable. 16403 # Some rework will be needed to allow for fast_install 16404 # before this can be enabled. 16405 hardcode_into_libs=yes 16406 16407 # Append ld.so.conf contents to the search path 16408 if test -f /etc/ld.so.conf; then 16409 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16410 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16411 fi 16412 16413 # We used to test for /lib/ld.so.1 and disable shared libraries on 16414 # powerpc, because MkLinux only supported shared libraries with the 16415 # GNU dynamic linker. Since this was broken with cross compilers, 16416 # most powerpc-linux boxes support dynamic linking these days and 16417 # people can always --disable-shared, the test was removed, and we 16418 # assume the GNU/Linux dynamic linker is in use. 16419 dynamic_linker='GNU/Linux ld.so' 16420 ;; 16421 16422knetbsd*-gnu) 16423 version_type=linux 16424 need_lib_prefix=no 16425 need_version=no 16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16427 soname_spec='${libname}${release}${shared_ext}$major' 16428 shlibpath_var=LD_LIBRARY_PATH 16429 shlibpath_overrides_runpath=no 16430 hardcode_into_libs=yes 16431 dynamic_linker='GNU ld.so' 16432 ;; 16433 16434netbsd*) 16435 version_type=sunos 16436 need_lib_prefix=no 16437 need_version=no 16438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16441 dynamic_linker='NetBSD (a.out) ld.so' 16442 else 16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16444 soname_spec='${libname}${release}${shared_ext}$major' 16445 dynamic_linker='NetBSD ld.elf_so' 16446 fi 16447 shlibpath_var=LD_LIBRARY_PATH 16448 shlibpath_overrides_runpath=yes 16449 hardcode_into_libs=yes 16450 ;; 16451 16452newsos6) 16453 version_type=linux 16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16455 shlibpath_var=LD_LIBRARY_PATH 16456 shlibpath_overrides_runpath=yes 16457 ;; 16458 16459nto-qnx*) 16460 version_type=linux 16461 need_lib_prefix=no 16462 need_version=no 16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16464 soname_spec='${libname}${release}${shared_ext}$major' 16465 shlibpath_var=LD_LIBRARY_PATH 16466 shlibpath_overrides_runpath=yes 16467 ;; 16468 16469openbsd*) 16470 version_type=sunos 16471 sys_lib_dlsearch_path_spec="/usr/lib" 16472 need_lib_prefix=no 16473 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16474 case $host_os in 16475 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16476 *) need_version=no ;; 16477 esac 16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16480 shlibpath_var=LD_LIBRARY_PATH 16481 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16482 case $host_os in 16483 openbsd2.[89] | openbsd2.[89].*) 16484 shlibpath_overrides_runpath=no 16485 ;; 16486 *) 16487 shlibpath_overrides_runpath=yes 16488 ;; 16489 esac 16490 else 16491 shlibpath_overrides_runpath=yes 16492 fi 16493 ;; 16494 16495os2*) 16496 libname_spec='$name' 16497 shrext_cmds=".dll" 16498 need_lib_prefix=no 16499 library_names_spec='$libname${shared_ext} $libname.a' 16500 dynamic_linker='OS/2 ld.exe' 16501 shlibpath_var=LIBPATH 16502 ;; 16503 16504osf3* | osf4* | osf5*) 16505 version_type=osf 16506 need_lib_prefix=no 16507 need_version=no 16508 soname_spec='${libname}${release}${shared_ext}$major' 16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16510 shlibpath_var=LD_LIBRARY_PATH 16511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16512 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16513 ;; 16514 16515solaris*) 16516 version_type=linux 16517 need_lib_prefix=no 16518 need_version=no 16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16520 soname_spec='${libname}${release}${shared_ext}$major' 16521 shlibpath_var=LD_LIBRARY_PATH 16522 shlibpath_overrides_runpath=yes 16523 hardcode_into_libs=yes 16524 # ldd complains unless libraries are executable 16525 postinstall_cmds='chmod +x $lib' 16526 ;; 16527 16528sunos4*) 16529 version_type=sunos 16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16532 shlibpath_var=LD_LIBRARY_PATH 16533 shlibpath_overrides_runpath=yes 16534 if test "$with_gnu_ld" = yes; then 16535 need_lib_prefix=no 16536 fi 16537 need_version=yes 16538 ;; 16539 16540sysv4 | sysv4.3*) 16541 version_type=linux 16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16543 soname_spec='${libname}${release}${shared_ext}$major' 16544 shlibpath_var=LD_LIBRARY_PATH 16545 case $host_vendor in 16546 sni) 16547 shlibpath_overrides_runpath=no 16548 need_lib_prefix=no 16549 export_dynamic_flag_spec='${wl}-Blargedynsym' 16550 runpath_var=LD_RUN_PATH 16551 ;; 16552 siemens) 16553 need_lib_prefix=no 16554 ;; 16555 motorola) 16556 need_lib_prefix=no 16557 need_version=no 16558 shlibpath_overrides_runpath=no 16559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16560 ;; 16561 esac 16562 ;; 16563 16564sysv4*MP*) 16565 if test -d /usr/nec ;then 16566 version_type=linux 16567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16568 soname_spec='$libname${shared_ext}.$major' 16569 shlibpath_var=LD_LIBRARY_PATH 16570 fi 16571 ;; 16572 16573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16574 version_type=freebsd-elf 16575 need_lib_prefix=no 16576 need_version=no 16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16578 soname_spec='${libname}${release}${shared_ext}$major' 16579 shlibpath_var=LD_LIBRARY_PATH 16580 hardcode_into_libs=yes 16581 if test "$with_gnu_ld" = yes; then 16582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16583 shlibpath_overrides_runpath=no 16584 else 16585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16586 shlibpath_overrides_runpath=yes 16587 case $host_os in 16588 sco3.2v5*) 16589 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16590 ;; 16591 esac 16592 fi 16593 sys_lib_dlsearch_path_spec='/usr/lib' 16594 ;; 16595 16596uts4*) 16597 version_type=linux 16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16599 soname_spec='${libname}${release}${shared_ext}$major' 16600 shlibpath_var=LD_LIBRARY_PATH 16601 ;; 16602 16603*) 16604 dynamic_linker=no 16605 ;; 16606esac 16607{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16608echo "${ECHO_T}$dynamic_linker" >&6; } 16609test "$dynamic_linker" = no && can_build_shared=no 16610 16611variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16612if test "$GCC" = yes; then 16613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16614fi 16615 16616{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16617echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16618hardcode_action_F77= 16619if test -n "$hardcode_libdir_flag_spec_F77" || \ 16620 test -n "$runpath_var_F77" || \ 16621 test "X$hardcode_automatic_F77" = "Xyes" ; then 16622 16623 # We can hardcode non-existant directories. 16624 if test "$hardcode_direct_F77" != no && 16625 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16626 # have to relink, otherwise we might link with an installed library 16627 # when we should be linking with a yet-to-be-installed one 16628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16629 test "$hardcode_minus_L_F77" != no; then 16630 # Linking always hardcodes the temporary library directory. 16631 hardcode_action_F77=relink 16632 else 16633 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16634 hardcode_action_F77=immediate 16635 fi 16636else 16637 # We cannot hardcode anything, or else we can only hardcode existing 16638 # directories. 16639 hardcode_action_F77=unsupported 16640fi 16641{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16642echo "${ECHO_T}$hardcode_action_F77" >&6; } 16643 16644if test "$hardcode_action_F77" = relink; then 16645 # Fast installation is not supported 16646 enable_fast_install=no 16647elif test "$shlibpath_overrides_runpath" = yes || 16648 test "$enable_shared" = no; then 16649 # Fast installation is not necessary 16650 enable_fast_install=needless 16651fi 16652 16653 16654# The else clause should only fire when bootstrapping the 16655# libtool distribution, otherwise you forgot to ship ltmain.sh 16656# with your package, and you will get complaints that there are 16657# no rules to generate ltmain.sh. 16658if test -f "$ltmain"; then 16659 # See if we are running on zsh, and set the options which allow our commands through 16660 # without removal of \ escapes. 16661 if test -n "${ZSH_VERSION+set}" ; then 16662 setopt NO_GLOB_SUBST 16663 fi 16664 # Now quote all the things that may contain metacharacters while being 16665 # careful not to overquote the AC_SUBSTed values. We take copies of the 16666 # variables and quote the copies for generation of the libtool script. 16667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16668 SED SHELL STRIP \ 16669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16671 deplibs_check_method reload_flag reload_cmds need_locks \ 16672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16673 lt_cv_sys_global_symbol_to_c_name_address \ 16674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16675 old_postinstall_cmds old_postuninstall_cmds \ 16676 compiler_F77 \ 16677 CC_F77 \ 16678 LD_F77 \ 16679 lt_prog_compiler_wl_F77 \ 16680 lt_prog_compiler_pic_F77 \ 16681 lt_prog_compiler_static_F77 \ 16682 lt_prog_compiler_no_builtin_flag_F77 \ 16683 export_dynamic_flag_spec_F77 \ 16684 thread_safe_flag_spec_F77 \ 16685 whole_archive_flag_spec_F77 \ 16686 enable_shared_with_static_runtimes_F77 \ 16687 old_archive_cmds_F77 \ 16688 old_archive_from_new_cmds_F77 \ 16689 predep_objects_F77 \ 16690 postdep_objects_F77 \ 16691 predeps_F77 \ 16692 postdeps_F77 \ 16693 compiler_lib_search_path_F77 \ 16694 archive_cmds_F77 \ 16695 archive_expsym_cmds_F77 \ 16696 postinstall_cmds_F77 \ 16697 postuninstall_cmds_F77 \ 16698 old_archive_from_expsyms_cmds_F77 \ 16699 allow_undefined_flag_F77 \ 16700 no_undefined_flag_F77 \ 16701 export_symbols_cmds_F77 \ 16702 hardcode_libdir_flag_spec_F77 \ 16703 hardcode_libdir_flag_spec_ld_F77 \ 16704 hardcode_libdir_separator_F77 \ 16705 hardcode_automatic_F77 \ 16706 module_cmds_F77 \ 16707 module_expsym_cmds_F77 \ 16708 lt_cv_prog_compiler_c_o_F77 \ 16709 exclude_expsyms_F77 \ 16710 include_expsyms_F77; do 16711 16712 case $var in 16713 old_archive_cmds_F77 | \ 16714 old_archive_from_new_cmds_F77 | \ 16715 archive_cmds_F77 | \ 16716 archive_expsym_cmds_F77 | \ 16717 module_cmds_F77 | \ 16718 module_expsym_cmds_F77 | \ 16719 old_archive_from_expsyms_cmds_F77 | \ 16720 export_symbols_cmds_F77 | \ 16721 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16722 postinstall_cmds | postuninstall_cmds | \ 16723 old_postinstall_cmds | old_postuninstall_cmds | \ 16724 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16725 # Double-quote double-evaled strings. 16726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16727 ;; 16728 *) 16729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16730 ;; 16731 esac 16732 done 16733 16734 case $lt_echo in 16735 *'\$0 --fallback-echo"') 16736 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16737 ;; 16738 esac 16739 16740cfgfile="$ofile" 16741 16742 cat <<__EOF__ >> "$cfgfile" 16743# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16744 16745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16746 16747# Shell to use when invoking shell scripts. 16748SHELL=$lt_SHELL 16749 16750# Whether or not to build shared libraries. 16751build_libtool_libs=$enable_shared 16752 16753# Whether or not to build static libraries. 16754build_old_libs=$enable_static 16755 16756# Whether or not to add -lc for building shared libraries. 16757build_libtool_need_lc=$archive_cmds_need_lc_F77 16758 16759# Whether or not to disallow shared libs when runtime libs are static 16760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16761 16762# Whether or not to optimize for fast installation. 16763fast_install=$enable_fast_install 16764 16765# The host system. 16766host_alias=$host_alias 16767host=$host 16768host_os=$host_os 16769 16770# The build system. 16771build_alias=$build_alias 16772build=$build 16773build_os=$build_os 16774 16775# An echo program that does not interpret backslashes. 16776echo=$lt_echo 16777 16778# The archiver. 16779AR=$lt_AR 16780AR_FLAGS=$lt_AR_FLAGS 16781 16782# A C compiler. 16783LTCC=$lt_LTCC 16784 16785# LTCC compiler flags. 16786LTCFLAGS=$lt_LTCFLAGS 16787 16788# A language-specific compiler. 16789CC=$lt_compiler_F77 16790 16791# Is the compiler the GNU C compiler? 16792with_gcc=$GCC_F77 16793 16794# An ERE matcher. 16795EGREP=$lt_EGREP 16796 16797# The linker used to build libraries. 16798LD=$lt_LD_F77 16799 16800# Whether we need hard or soft links. 16801LN_S=$lt_LN_S 16802 16803# A BSD-compatible nm program. 16804NM=$lt_NM 16805 16806# A symbol stripping program 16807STRIP=$lt_STRIP 16808 16809# Used to examine libraries when file_magic_cmd begins "file" 16810MAGIC_CMD=$MAGIC_CMD 16811 16812# Used on cygwin: DLL creation program. 16813DLLTOOL="$DLLTOOL" 16814 16815# Used on cygwin: object dumper. 16816OBJDUMP="$OBJDUMP" 16817 16818# Used on cygwin: assembler. 16819AS="$AS" 16820 16821# The name of the directory that contains temporary libtool files. 16822objdir=$objdir 16823 16824# How to create reloadable object files. 16825reload_flag=$lt_reload_flag 16826reload_cmds=$lt_reload_cmds 16827 16828# How to pass a linker flag through the compiler. 16829wl=$lt_lt_prog_compiler_wl_F77 16830 16831# Object file suffix (normally "o"). 16832objext="$ac_objext" 16833 16834# Old archive suffix (normally "a"). 16835libext="$libext" 16836 16837# Shared library suffix (normally ".so"). 16838shrext_cmds='$shrext_cmds' 16839 16840# Executable file suffix (normally ""). 16841exeext="$exeext" 16842 16843# Additional compiler flags for building library objects. 16844pic_flag=$lt_lt_prog_compiler_pic_F77 16845pic_mode=$pic_mode 16846 16847# What is the maximum length of a command? 16848max_cmd_len=$lt_cv_sys_max_cmd_len 16849 16850# Does compiler simultaneously support -c and -o options? 16851compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16852 16853# Must we lock files when doing compilation? 16854need_locks=$lt_need_locks 16855 16856# Do we need the lib prefix for modules? 16857need_lib_prefix=$need_lib_prefix 16858 16859# Do we need a version for libraries? 16860need_version=$need_version 16861 16862# Whether dlopen is supported. 16863dlopen_support=$enable_dlopen 16864 16865# Whether dlopen of programs is supported. 16866dlopen_self=$enable_dlopen_self 16867 16868# Whether dlopen of statically linked programs is supported. 16869dlopen_self_static=$enable_dlopen_self_static 16870 16871# Compiler flag to prevent dynamic linking. 16872link_static_flag=$lt_lt_prog_compiler_static_F77 16873 16874# Compiler flag to turn off builtin functions. 16875no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16876 16877# Compiler flag to allow reflexive dlopens. 16878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16879 16880# Compiler flag to generate shared objects directly from archives. 16881whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16882 16883# Compiler flag to generate thread-safe objects. 16884thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16885 16886# Library versioning type. 16887version_type=$version_type 16888 16889# Format of library name prefix. 16890libname_spec=$lt_libname_spec 16891 16892# List of archive names. First name is the real one, the rest are links. 16893# The last name is the one that the linker finds with -lNAME. 16894library_names_spec=$lt_library_names_spec 16895 16896# The coded name of the library, if different from the real name. 16897soname_spec=$lt_soname_spec 16898 16899# Commands used to build and install an old-style archive. 16900RANLIB=$lt_RANLIB 16901old_archive_cmds=$lt_old_archive_cmds_F77 16902old_postinstall_cmds=$lt_old_postinstall_cmds 16903old_postuninstall_cmds=$lt_old_postuninstall_cmds 16904 16905# Create an old-style archive from a shared archive. 16906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16907 16908# Create a temporary old-style archive to link instead of a shared archive. 16909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16910 16911# Commands used to build and install a shared archive. 16912archive_cmds=$lt_archive_cmds_F77 16913archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16914postinstall_cmds=$lt_postinstall_cmds 16915postuninstall_cmds=$lt_postuninstall_cmds 16916 16917# Commands used to build a loadable module (assumed same as above if empty) 16918module_cmds=$lt_module_cmds_F77 16919module_expsym_cmds=$lt_module_expsym_cmds_F77 16920 16921# Commands to strip libraries. 16922old_striplib=$lt_old_striplib 16923striplib=$lt_striplib 16924 16925# Dependencies to place before the objects being linked to create a 16926# shared library. 16927predep_objects=$lt_predep_objects_F77 16928 16929# Dependencies to place after the objects being linked to create a 16930# shared library. 16931postdep_objects=$lt_postdep_objects_F77 16932 16933# Dependencies to place before the objects being linked to create a 16934# shared library. 16935predeps=$lt_predeps_F77 16936 16937# Dependencies to place after the objects being linked to create a 16938# shared library. 16939postdeps=$lt_postdeps_F77 16940 16941# The library search path used internally by the compiler when linking 16942# a shared library. 16943compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16944 16945# Method to check whether dependent libraries are shared objects. 16946deplibs_check_method=$lt_deplibs_check_method 16947 16948# Command to use when deplibs_check_method == file_magic. 16949file_magic_cmd=$lt_file_magic_cmd 16950 16951# Flag that allows shared libraries with undefined symbols to be built. 16952allow_undefined_flag=$lt_allow_undefined_flag_F77 16953 16954# Flag that forces no undefined symbols. 16955no_undefined_flag=$lt_no_undefined_flag_F77 16956 16957# Commands used to finish a libtool library installation in a directory. 16958finish_cmds=$lt_finish_cmds 16959 16960# Same as above, but a single script fragment to be evaled but not shown. 16961finish_eval=$lt_finish_eval 16962 16963# Take the output of nm and produce a listing of raw symbols and C names. 16964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16965 16966# Transform the output of nm in a proper C declaration 16967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16968 16969# Transform the output of nm in a C name address pair 16970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16971 16972# This is the shared library runtime path variable. 16973runpath_var=$runpath_var 16974 16975# This is the shared library path variable. 16976shlibpath_var=$shlibpath_var 16977 16978# Is shlibpath searched before the hard-coded library search path? 16979shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16980 16981# How to hardcode a shared library path into an executable. 16982hardcode_action=$hardcode_action_F77 16983 16984# Whether we should hardcode library paths into libraries. 16985hardcode_into_libs=$hardcode_into_libs 16986 16987# Flag to hardcode \$libdir into a binary during linking. 16988# This must work even if \$libdir does not exist. 16989hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16990 16991# If ld is used when linking, flag to hardcode \$libdir into 16992# a binary during linking. This must work even if \$libdir does 16993# not exist. 16994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16995 16996# Whether we need a single -rpath flag with a separated argument. 16997hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16998 16999# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17000# resulting binary. 17001hardcode_direct=$hardcode_direct_F77 17002 17003# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17004# resulting binary. 17005hardcode_minus_L=$hardcode_minus_L_F77 17006 17007# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17008# the resulting binary. 17009hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17010 17011# Set to yes if building a shared library automatically hardcodes DIR into the library 17012# and all subsequent libraries and executables linked against it. 17013hardcode_automatic=$hardcode_automatic_F77 17014 17015# Variables whose values should be saved in libtool wrapper scripts and 17016# restored at relink time. 17017variables_saved_for_relink="$variables_saved_for_relink" 17018 17019# Whether libtool must link a program against all its dependency libraries. 17020link_all_deplibs=$link_all_deplibs_F77 17021 17022# Compile-time system search path for libraries 17023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17024 17025# Run-time system search path for libraries 17026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17027 17028# Fix the shell variable \$srcfile for the compiler. 17029fix_srcfile_path="$fix_srcfile_path_F77" 17030 17031# Set to yes if exported symbols are required. 17032always_export_symbols=$always_export_symbols_F77 17033 17034# The commands to list exported symbols. 17035export_symbols_cmds=$lt_export_symbols_cmds_F77 17036 17037# The commands to extract the exported symbol list from a shared archive. 17038extract_expsyms_cmds=$lt_extract_expsyms_cmds 17039 17040# Symbols that should not be listed in the preloaded symbols. 17041exclude_expsyms=$lt_exclude_expsyms_F77 17042 17043# Symbols that must always be exported. 17044include_expsyms=$lt_include_expsyms_F77 17045 17046# ### END LIBTOOL TAG CONFIG: $tagname 17047 17048__EOF__ 17049 17050 17051else 17052 # If there is no Makefile yet, we rely on a make rule to execute 17053 # `config.status --recheck' to rerun these tests and create the 17054 # libtool script then. 17055 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17056 if test -f "$ltmain_in"; then 17057 test -f Makefile && make "$ltmain" 17058 fi 17059fi 17060 17061 17062ac_ext=c 17063ac_cpp='$CPP $CPPFLAGS' 17064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17066ac_compiler_gnu=$ac_cv_c_compiler_gnu 17067 17068CC="$lt_save_CC" 17069 17070 else 17071 tagname="" 17072 fi 17073 ;; 17074 17075 GCJ) 17076 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17077 17078 17079# Source file extension for Java test sources. 17080ac_ext=java 17081 17082# Object file extension for compiled Java test sources. 17083objext=o 17084objext_GCJ=$objext 17085 17086# Code to be used in simple compile tests 17087lt_simple_compile_test_code="class foo {}\n" 17088 17089# Code to be used in simple link tests 17090lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17091 17092# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17093 17094# If no C compiler was specified, use CC. 17095LTCC=${LTCC-"$CC"} 17096 17097# If no C compiler flags were specified, use CFLAGS. 17098LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17099 17100# Allow CC to be a program name with arguments. 17101compiler=$CC 17102 17103 17104# save warnings/boilerplate of simple test code 17105ac_outfile=conftest.$ac_objext 17106printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17108_lt_compiler_boilerplate=`cat conftest.err` 17109$rm conftest* 17110 17111ac_outfile=conftest.$ac_objext 17112printf "$lt_simple_link_test_code" >conftest.$ac_ext 17113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17114_lt_linker_boilerplate=`cat conftest.err` 17115$rm conftest* 17116 17117 17118# Allow CC to be a program name with arguments. 17119lt_save_CC="$CC" 17120CC=${GCJ-"gcj"} 17121compiler=$CC 17122compiler_GCJ=$CC 17123for cc_temp in $compiler""; do 17124 case $cc_temp in 17125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17127 \-*) ;; 17128 *) break;; 17129 esac 17130done 17131cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17132 17133 17134# GCJ did not exist at the time GCC didn't implicitly link libc in. 17135archive_cmds_need_lc_GCJ=no 17136 17137old_archive_cmds_GCJ=$old_archive_cmds 17138 17139 17140lt_prog_compiler_no_builtin_flag_GCJ= 17141 17142if test "$GCC" = yes; then 17143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17144 17145 17146{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17147echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17148if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17149 echo $ECHO_N "(cached) $ECHO_C" >&6 17150else 17151 lt_cv_prog_compiler_rtti_exceptions=no 17152 ac_outfile=conftest.$ac_objext 17153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17154 lt_compiler_flag="-fno-rtti -fno-exceptions" 17155 # Insert the option either (1) after the last *FLAGS variable, or 17156 # (2) before a word containing "conftest.", or (3) at the end. 17157 # Note that $ac_compile itself does not contain backslashes and begins 17158 # with a dollar sign (not a hyphen), so the echo should work correctly. 17159 # The option is referenced via a variable to avoid confusing sed. 17160 lt_compile=`echo "$ac_compile" | $SED \ 17161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17163 -e 's:$: $lt_compiler_flag:'` 17164 (eval echo "\"\$as_me:17164: $lt_compile\"" >&5) 17165 (eval "$lt_compile" 2>conftest.err) 17166 ac_status=$? 17167 cat conftest.err >&5 17168 echo "$as_me:17168: \$? = $ac_status" >&5 17169 if (exit $ac_status) && test -s "$ac_outfile"; then 17170 # The compiler can only warn and ignore the option if not recognized 17171 # So say no if there are warnings other than the usual output. 17172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17175 lt_cv_prog_compiler_rtti_exceptions=yes 17176 fi 17177 fi 17178 $rm conftest* 17179 17180fi 17181{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17183 17184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17186else 17187 : 17188fi 17189 17190fi 17191 17192lt_prog_compiler_wl_GCJ= 17193lt_prog_compiler_pic_GCJ= 17194lt_prog_compiler_static_GCJ= 17195 17196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 17198 17199 if test "$GCC" = yes; then 17200 lt_prog_compiler_wl_GCJ='-Wl,' 17201 lt_prog_compiler_static_GCJ='-static' 17202 17203 case $host_os in 17204 aix*) 17205 # All AIX code is PIC. 17206 if test "$host_cpu" = ia64; then 17207 # AIX 5 now supports IA64 processor 17208 lt_prog_compiler_static_GCJ='-Bstatic' 17209 fi 17210 ;; 17211 17212 amigaos*) 17213 # FIXME: we need at least 68020 code to build shared libraries, but 17214 # adding the `-m68020' flag to GCC prevents building anything better, 17215 # like `-m68040'. 17216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17217 ;; 17218 17219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17220 # PIC is the default for these OSes. 17221 ;; 17222 17223 mingw* | pw32* | os2*) 17224 # This hack is so that the source file can tell whether it is being 17225 # built for inclusion in a dll (and should export symbols for example). 17226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17227 ;; 17228 17229 darwin* | rhapsody*) 17230 # PIC is the default on this platform 17231 # Common symbols not allowed in MH_DYLIB files 17232 lt_prog_compiler_pic_GCJ='-fno-common' 17233 ;; 17234 17235 interix3*) 17236 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17237 # Instead, we relocate shared libraries at runtime. 17238 ;; 17239 17240 msdosdjgpp*) 17241 # Just because we use GCC doesn't mean we suddenly get shared libraries 17242 # on systems that don't support them. 17243 lt_prog_compiler_can_build_shared_GCJ=no 17244 enable_shared=no 17245 ;; 17246 17247 sysv4*MP*) 17248 if test -d /usr/nec; then 17249 lt_prog_compiler_pic_GCJ=-Kconform_pic 17250 fi 17251 ;; 17252 17253 hpux*) 17254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17255 # not for PA HP-UX. 17256 case $host_cpu in 17257 hppa*64*|ia64*) 17258 # +Z the default 17259 ;; 17260 *) 17261 lt_prog_compiler_pic_GCJ='-fPIC' 17262 ;; 17263 esac 17264 ;; 17265 17266 *) 17267 lt_prog_compiler_pic_GCJ='-fPIC' 17268 ;; 17269 esac 17270 else 17271 # PORTME Check for flag to pass linker flags through the system compiler. 17272 case $host_os in 17273 aix*) 17274 lt_prog_compiler_wl_GCJ='-Wl,' 17275 if test "$host_cpu" = ia64; then 17276 # AIX 5 now supports IA64 processor 17277 lt_prog_compiler_static_GCJ='-Bstatic' 17278 else 17279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17280 fi 17281 ;; 17282 darwin*) 17283 # PIC is the default on this platform 17284 # Common symbols not allowed in MH_DYLIB files 17285 case $cc_basename in 17286 xlc*) 17287 lt_prog_compiler_pic_GCJ='-qnocommon' 17288 lt_prog_compiler_wl_GCJ='-Wl,' 17289 ;; 17290 esac 17291 ;; 17292 17293 mingw* | pw32* | os2*) 17294 # This hack is so that the source file can tell whether it is being 17295 # built for inclusion in a dll (and should export symbols for example). 17296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17297 ;; 17298 17299 hpux9* | hpux10* | hpux11*) 17300 lt_prog_compiler_wl_GCJ='-Wl,' 17301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17302 # not for PA HP-UX. 17303 case $host_cpu in 17304 hppa*64*|ia64*) 17305 # +Z the default 17306 ;; 17307 *) 17308 lt_prog_compiler_pic_GCJ='+Z' 17309 ;; 17310 esac 17311 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17313 ;; 17314 17315 irix5* | irix6* | nonstopux*) 17316 lt_prog_compiler_wl_GCJ='-Wl,' 17317 # PIC (with -KPIC) is the default. 17318 lt_prog_compiler_static_GCJ='-non_shared' 17319 ;; 17320 17321 newsos6) 17322 lt_prog_compiler_pic_GCJ='-KPIC' 17323 lt_prog_compiler_static_GCJ='-Bstatic' 17324 ;; 17325 17326 linux*) 17327 case $cc_basename in 17328 icc* | ecc*) 17329 lt_prog_compiler_wl_GCJ='-Wl,' 17330 lt_prog_compiler_pic_GCJ='-KPIC' 17331 lt_prog_compiler_static_GCJ='-static' 17332 ;; 17333 pgcc* | pgf77* | pgf90* | pgf95*) 17334 # Portland Group compilers (*not* the Pentium gcc compiler, 17335 # which looks to be a dead project) 17336 lt_prog_compiler_wl_GCJ='-Wl,' 17337 lt_prog_compiler_pic_GCJ='-fpic' 17338 lt_prog_compiler_static_GCJ='-Bstatic' 17339 ;; 17340 ccc*) 17341 lt_prog_compiler_wl_GCJ='-Wl,' 17342 # All Alpha code is PIC. 17343 lt_prog_compiler_static_GCJ='-non_shared' 17344 ;; 17345 esac 17346 ;; 17347 17348 osf3* | osf4* | osf5*) 17349 lt_prog_compiler_wl_GCJ='-Wl,' 17350 # All OSF/1 code is PIC. 17351 lt_prog_compiler_static_GCJ='-non_shared' 17352 ;; 17353 17354 solaris*) 17355 lt_prog_compiler_pic_GCJ='-KPIC' 17356 lt_prog_compiler_static_GCJ='-Bstatic' 17357 case $cc_basename in 17358 f77* | f90* | f95*) 17359 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17360 *) 17361 lt_prog_compiler_wl_GCJ='-Wl,';; 17362 esac 17363 ;; 17364 17365 sunos4*) 17366 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17367 lt_prog_compiler_pic_GCJ='-PIC' 17368 lt_prog_compiler_static_GCJ='-Bstatic' 17369 ;; 17370 17371 sysv4 | sysv4.2uw2* | sysv4.3*) 17372 lt_prog_compiler_wl_GCJ='-Wl,' 17373 lt_prog_compiler_pic_GCJ='-KPIC' 17374 lt_prog_compiler_static_GCJ='-Bstatic' 17375 ;; 17376 17377 sysv4*MP*) 17378 if test -d /usr/nec ;then 17379 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17380 lt_prog_compiler_static_GCJ='-Bstatic' 17381 fi 17382 ;; 17383 17384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17385 lt_prog_compiler_wl_GCJ='-Wl,' 17386 lt_prog_compiler_pic_GCJ='-KPIC' 17387 lt_prog_compiler_static_GCJ='-Bstatic' 17388 ;; 17389 17390 unicos*) 17391 lt_prog_compiler_wl_GCJ='-Wl,' 17392 lt_prog_compiler_can_build_shared_GCJ=no 17393 ;; 17394 17395 uts4*) 17396 lt_prog_compiler_pic_GCJ='-pic' 17397 lt_prog_compiler_static_GCJ='-Bstatic' 17398 ;; 17399 17400 *) 17401 lt_prog_compiler_can_build_shared_GCJ=no 17402 ;; 17403 esac 17404 fi 17405 17406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17407echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17408 17409# 17410# Check to make sure the PIC flag actually works. 17411# 17412if test -n "$lt_prog_compiler_pic_GCJ"; then 17413 17414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17416if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17417 echo $ECHO_N "(cached) $ECHO_C" >&6 17418else 17419 lt_prog_compiler_pic_works_GCJ=no 17420 ac_outfile=conftest.$ac_objext 17421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17423 # Insert the option either (1) after the last *FLAGS variable, or 17424 # (2) before a word containing "conftest.", or (3) at the end. 17425 # Note that $ac_compile itself does not contain backslashes and begins 17426 # with a dollar sign (not a hyphen), so the echo should work correctly. 17427 # The option is referenced via a variable to avoid confusing sed. 17428 lt_compile=`echo "$ac_compile" | $SED \ 17429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17431 -e 's:$: $lt_compiler_flag:'` 17432 (eval echo "\"\$as_me:17432: $lt_compile\"" >&5) 17433 (eval "$lt_compile" 2>conftest.err) 17434 ac_status=$? 17435 cat conftest.err >&5 17436 echo "$as_me:17436: \$? = $ac_status" >&5 17437 if (exit $ac_status) && test -s "$ac_outfile"; then 17438 # The compiler can only warn and ignore the option if not recognized 17439 # So say no if there are warnings other than the usual output. 17440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17443 lt_prog_compiler_pic_works_GCJ=yes 17444 fi 17445 fi 17446 $rm conftest* 17447 17448fi 17449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17450echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17451 17452if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17453 case $lt_prog_compiler_pic_GCJ in 17454 "" | " "*) ;; 17455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17456 esac 17457else 17458 lt_prog_compiler_pic_GCJ= 17459 lt_prog_compiler_can_build_shared_GCJ=no 17460fi 17461 17462fi 17463case $host_os in 17464 # For platforms which do not support PIC, -DPIC is meaningless: 17465 *djgpp*) 17466 lt_prog_compiler_pic_GCJ= 17467 ;; 17468 *) 17469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17470 ;; 17471esac 17472 17473# 17474# Check to make sure the static flag actually works. 17475# 17476wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17479if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17480 echo $ECHO_N "(cached) $ECHO_C" >&6 17481else 17482 lt_prog_compiler_static_works_GCJ=no 17483 save_LDFLAGS="$LDFLAGS" 17484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17485 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17487 # The linker can only warn and ignore the option if not recognized 17488 # So say no if there are warnings 17489 if test -s conftest.err; then 17490 # Append any errors to the config.log. 17491 cat conftest.err 1>&5 17492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17494 if diff conftest.exp conftest.er2 >/dev/null; then 17495 lt_prog_compiler_static_works_GCJ=yes 17496 fi 17497 else 17498 lt_prog_compiler_static_works_GCJ=yes 17499 fi 17500 fi 17501 $rm conftest* 17502 LDFLAGS="$save_LDFLAGS" 17503 17504fi 17505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17506echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17507 17508if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17509 : 17510else 17511 lt_prog_compiler_static_GCJ= 17512fi 17513 17514 17515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17517if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17518 echo $ECHO_N "(cached) $ECHO_C" >&6 17519else 17520 lt_cv_prog_compiler_c_o_GCJ=no 17521 $rm -r conftest 2>/dev/null 17522 mkdir conftest 17523 cd conftest 17524 mkdir out 17525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17526 17527 lt_compiler_flag="-o out/conftest2.$ac_objext" 17528 # Insert the option either (1) after the last *FLAGS variable, or 17529 # (2) before a word containing "conftest.", or (3) at the end. 17530 # Note that $ac_compile itself does not contain backslashes and begins 17531 # with a dollar sign (not a hyphen), so the echo should work correctly. 17532 lt_compile=`echo "$ac_compile" | $SED \ 17533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17535 -e 's:$: $lt_compiler_flag:'` 17536 (eval echo "\"\$as_me:17536: $lt_compile\"" >&5) 17537 (eval "$lt_compile" 2>out/conftest.err) 17538 ac_status=$? 17539 cat out/conftest.err >&5 17540 echo "$as_me:17540: \$? = $ac_status" >&5 17541 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17542 then 17543 # The compiler can only warn and ignore the option if not recognized 17544 # So say no if there are warnings 17545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17548 lt_cv_prog_compiler_c_o_GCJ=yes 17549 fi 17550 fi 17551 chmod u+w . 2>&5 17552 $rm conftest* 17553 # SGI C++ compiler will create directory out/ii_files/ for 17554 # template instantiation 17555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17556 $rm out/* && rmdir out 17557 cd .. 17558 rmdir conftest 17559 $rm conftest* 17560 17561fi 17562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17564 17565 17566hard_links="nottested" 17567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17568 # do not overwrite the value of need_locks provided by the user 17569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17571 hard_links=yes 17572 $rm conftest* 17573 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17574 touch conftest.a 17575 ln conftest.a conftest.b 2>&5 || hard_links=no 17576 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17577 { echo "$as_me:$LINENO: result: $hard_links" >&5 17578echo "${ECHO_T}$hard_links" >&6; } 17579 if test "$hard_links" = no; then 17580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17582 need_locks=warn 17583 fi 17584else 17585 need_locks=no 17586fi 17587 17588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17590 17591 runpath_var= 17592 allow_undefined_flag_GCJ= 17593 enable_shared_with_static_runtimes_GCJ=no 17594 archive_cmds_GCJ= 17595 archive_expsym_cmds_GCJ= 17596 old_archive_From_new_cmds_GCJ= 17597 old_archive_from_expsyms_cmds_GCJ= 17598 export_dynamic_flag_spec_GCJ= 17599 whole_archive_flag_spec_GCJ= 17600 thread_safe_flag_spec_GCJ= 17601 hardcode_libdir_flag_spec_GCJ= 17602 hardcode_libdir_flag_spec_ld_GCJ= 17603 hardcode_libdir_separator_GCJ= 17604 hardcode_direct_GCJ=no 17605 hardcode_minus_L_GCJ=no 17606 hardcode_shlibpath_var_GCJ=unsupported 17607 link_all_deplibs_GCJ=unknown 17608 hardcode_automatic_GCJ=no 17609 module_cmds_GCJ= 17610 module_expsym_cmds_GCJ= 17611 always_export_symbols_GCJ=no 17612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17613 # include_expsyms should be a list of space-separated symbols to be *always* 17614 # included in the symbol list 17615 include_expsyms_GCJ= 17616 # exclude_expsyms can be an extended regexp of symbols to exclude 17617 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17619 # as well as any symbol that contains `d'. 17620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17622 # platforms (ab)use it in PIC code, but their linkers get confused if 17623 # the symbol is explicitly referenced. Since portable code cannot 17624 # rely on this symbol name, it's probably fine to never include it in 17625 # preloaded symbol tables. 17626 extract_expsyms_cmds= 17627 # Just being paranoid about ensuring that cc_basename is set. 17628 for cc_temp in $compiler""; do 17629 case $cc_temp in 17630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17632 \-*) ;; 17633 *) break;; 17634 esac 17635done 17636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17637 17638 case $host_os in 17639 cygwin* | mingw* | pw32*) 17640 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17641 # When not using gcc, we currently assume that we are using 17642 # Microsoft Visual C++. 17643 if test "$GCC" != yes; then 17644 with_gnu_ld=no 17645 fi 17646 ;; 17647 interix*) 17648 # we just hope/assume this is gcc and not c89 (= MSVC++) 17649 with_gnu_ld=yes 17650 ;; 17651 openbsd*) 17652 with_gnu_ld=no 17653 ;; 17654 esac 17655 17656 ld_shlibs_GCJ=yes 17657 if test "$with_gnu_ld" = yes; then 17658 # If archive_cmds runs LD, not CC, wlarc should be empty 17659 wlarc='${wl}' 17660 17661 # Set some defaults for GNU ld with shared library support. These 17662 # are reset later if shared libraries are not supported. Putting them 17663 # here allows them to be overridden if necessary. 17664 runpath_var=LD_RUN_PATH 17665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17667 # ancient GNU ld didn't support --whole-archive et. al. 17668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17670 else 17671 whole_archive_flag_spec_GCJ= 17672 fi 17673 supports_anon_versioning=no 17674 case `$LD -v 2>/dev/null` in 17675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17678 *\ 2.11.*) ;; # other 2.11 versions 17679 *) supports_anon_versioning=yes ;; 17680 esac 17681 17682 # See if GNU ld supports shared libraries. 17683 case $host_os in 17684 aix3* | aix4* | aix5*) 17685 # On AIX/PPC, the GNU linker is very broken 17686 if test "$host_cpu" != ia64; then 17687 ld_shlibs_GCJ=no 17688 cat <<EOF 1>&2 17689 17690*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17691*** to be unable to reliably create shared libraries on AIX. 17692*** Therefore, libtool is disabling shared libraries support. If you 17693*** really care for shared libraries, you may want to modify your PATH 17694*** so that a non-GNU linker is found, and then restart. 17695 17696EOF 17697 fi 17698 ;; 17699 17700 amigaos*) 17701 archive_cmds_GCJ='$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)' 17702 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17703 hardcode_minus_L_GCJ=yes 17704 17705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17706 # that the semantics of dynamic libraries on AmigaOS, at least up 17707 # to version 4, is to share data among multiple programs linked 17708 # with the same dynamic library. Since this doesn't match the 17709 # behavior of shared libraries on other platforms, we can't use 17710 # them. 17711 ld_shlibs_GCJ=no 17712 ;; 17713 17714 beos*) 17715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17716 allow_undefined_flag_GCJ=unsupported 17717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17718 # support --undefined. This deserves some investigation. FIXME 17719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17720 else 17721 ld_shlibs_GCJ=no 17722 fi 17723 ;; 17724 17725 cygwin* | mingw* | pw32*) 17726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17727 # as there is no search path for DLLs. 17728 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17729 allow_undefined_flag_GCJ=unsupported 17730 always_export_symbols_GCJ=no 17731 enable_shared_with_static_runtimes_GCJ=yes 17732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17733 17734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17735 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17736 # If the export-symbols file already is a .def file (1st line 17737 # is EXPORTS), use it as is; otherwise, prepend... 17738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17739 cp $export_symbols $output_objdir/$soname.def; 17740 else 17741 echo EXPORTS > $output_objdir/$soname.def; 17742 cat $export_symbols >> $output_objdir/$soname.def; 17743 fi~ 17744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17745 else 17746 ld_shlibs_GCJ=no 17747 fi 17748 ;; 17749 17750 interix3*) 17751 hardcode_direct_GCJ=no 17752 hardcode_shlibpath_var_GCJ=no 17753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17754 export_dynamic_flag_spec_GCJ='${wl}-E' 17755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17756 # Instead, shared libraries are loaded at an image base (0x10000000 by 17757 # default) and relocated if they conflict, which is a slow very memory 17758 # consuming and fragmenting process. To avoid this, we pick a random, 17759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17760 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17761 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17762 archive_expsym_cmds_GCJ='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' 17763 ;; 17764 17765 linux*) 17766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17767 tmp_addflag= 17768 case $cc_basename,$host_cpu in 17769 pgcc*) # Portland Group C compiler 17770 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17771 tmp_addflag=' $pic_flag' 17772 ;; 17773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17774 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17775 tmp_addflag=' $pic_flag -Mnomain' ;; 17776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17777 tmp_addflag=' -i_dynamic' ;; 17778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17779 tmp_addflag=' -i_dynamic -nofor_main' ;; 17780 ifc* | ifort*) # Intel Fortran compiler 17781 tmp_addflag=' -nofor_main' ;; 17782 esac 17783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17784 17785 if test $supports_anon_versioning = yes; then 17786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17788 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17790 fi 17791 else 17792 ld_shlibs_GCJ=no 17793 fi 17794 ;; 17795 17796 netbsd*) 17797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17799 wlarc= 17800 else 17801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17803 fi 17804 ;; 17805 17806 solaris*) 17807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17808 ld_shlibs_GCJ=no 17809 cat <<EOF 1>&2 17810 17811*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17812*** create shared libraries on Solaris systems. Therefore, libtool 17813*** is disabling shared libraries support. We urge you to upgrade GNU 17814*** binutils to release 2.9.1 or newer. Another option is to modify 17815*** your PATH or compiler configuration so that the native linker is 17816*** used, and then restart. 17817 17818EOF 17819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17822 else 17823 ld_shlibs_GCJ=no 17824 fi 17825 ;; 17826 17827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17828 case `$LD -v 2>&1` in 17829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17830 ld_shlibs_GCJ=no 17831 cat <<_LT_EOF 1>&2 17832 17833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17834*** reliably create shared libraries on SCO systems. Therefore, libtool 17835*** is disabling shared libraries support. We urge you to upgrade GNU 17836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17837*** your PATH or compiler configuration so that the native linker is 17838*** used, and then restart. 17839 17840_LT_EOF 17841 ;; 17842 *) 17843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17847 else 17848 ld_shlibs_GCJ=no 17849 fi 17850 ;; 17851 esac 17852 ;; 17853 17854 sunos4*) 17855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17856 wlarc= 17857 hardcode_direct_GCJ=yes 17858 hardcode_shlibpath_var_GCJ=no 17859 ;; 17860 17861 *) 17862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17865 else 17866 ld_shlibs_GCJ=no 17867 fi 17868 ;; 17869 esac 17870 17871 if test "$ld_shlibs_GCJ" = no; then 17872 runpath_var= 17873 hardcode_libdir_flag_spec_GCJ= 17874 export_dynamic_flag_spec_GCJ= 17875 whole_archive_flag_spec_GCJ= 17876 fi 17877 else 17878 # PORTME fill in a description of your system's linker (not GNU ld) 17879 case $host_os in 17880 aix3*) 17881 allow_undefined_flag_GCJ=unsupported 17882 always_export_symbols_GCJ=yes 17883 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17884 # Note: this linker hardcodes the directories in LIBPATH if there 17885 # are no directories specified by -L. 17886 hardcode_minus_L_GCJ=yes 17887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17888 # Neither direct hardcoding nor static linking is supported with a 17889 # broken collect2. 17890 hardcode_direct_GCJ=unsupported 17891 fi 17892 ;; 17893 17894 aix4* | aix5*) 17895 if test "$host_cpu" = ia64; then 17896 # On IA64, the linker does run time linking by default, so we don't 17897 # have to do anything special. 17898 aix_use_runtimelinking=no 17899 exp_sym_flag='-Bexport' 17900 no_entry_flag="" 17901 else 17902 # If we're using GNU nm, then we don't want the "-C" option. 17903 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17905 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17906 else 17907 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17908 fi 17909 aix_use_runtimelinking=no 17910 17911 # Test if we are trying to use run time linking or normal 17912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17913 # need to do runtime linking. 17914 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17915 for ld_flag in $LDFLAGS; do 17916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17917 aix_use_runtimelinking=yes 17918 break 17919 fi 17920 done 17921 ;; 17922 esac 17923 17924 exp_sym_flag='-bexport' 17925 no_entry_flag='-bnoentry' 17926 fi 17927 17928 # When large executables or shared objects are built, AIX ld can 17929 # have problems creating the table of contents. If linking a library 17930 # or program results in "error TOC overflow" add -mminimal-toc to 17931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17933 17934 archive_cmds_GCJ='' 17935 hardcode_direct_GCJ=yes 17936 hardcode_libdir_separator_GCJ=':' 17937 link_all_deplibs_GCJ=yes 17938 17939 if test "$GCC" = yes; then 17940 case $host_os in aix4.[012]|aix4.[012].*) 17941 # We only want to do this on AIX 4.2 and lower, the check 17942 # below for broken collect2 doesn't work under 4.3+ 17943 collect2name=`${CC} -print-prog-name=collect2` 17944 if test -f "$collect2name" && \ 17945 strings "$collect2name" | grep resolve_lib_name >/dev/null 17946 then 17947 # We have reworked collect2 17948 hardcode_direct_GCJ=yes 17949 else 17950 # We have old collect2 17951 hardcode_direct_GCJ=unsupported 17952 # It fails to find uninstalled libraries when the uninstalled 17953 # path is not listed in the libpath. Setting hardcode_minus_L 17954 # to unsupported forces relinking 17955 hardcode_minus_L_GCJ=yes 17956 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17957 hardcode_libdir_separator_GCJ= 17958 fi 17959 ;; 17960 esac 17961 shared_flag='-shared' 17962 if test "$aix_use_runtimelinking" = yes; then 17963 shared_flag="$shared_flag "'${wl}-G' 17964 fi 17965 else 17966 # not using gcc 17967 if test "$host_cpu" = ia64; then 17968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17969 # chokes on -Wl,-G. The following line is correct: 17970 shared_flag='-G' 17971 else 17972 if test "$aix_use_runtimelinking" = yes; then 17973 shared_flag='${wl}-G' 17974 else 17975 shared_flag='${wl}-bM:SRE' 17976 fi 17977 fi 17978 fi 17979 17980 # It seems that -bexpall does not export symbols beginning with 17981 # underscore (_), so it is better to generate a list of symbols to export. 17982 always_export_symbols_GCJ=yes 17983 if test "$aix_use_runtimelinking" = yes; then 17984 # Warning - without using the other runtime loading flags (-brtl), 17985 # -berok will link without error, but may produce a broken library. 17986 allow_undefined_flag_GCJ='-berok' 17987 # Determine the default libpath from the value encoded in an empty executable. 17988 cat >conftest.$ac_ext <<_ACEOF 17989/* confdefs.h. */ 17990_ACEOF 17991cat confdefs.h >>conftest.$ac_ext 17992cat >>conftest.$ac_ext <<_ACEOF 17993/* end confdefs.h. */ 17994 17995int 17996main () 17997{ 17998 17999 ; 18000 return 0; 18001} 18002_ACEOF 18003rm -f conftest.$ac_objext conftest$ac_exeext 18004if { (ac_try="$ac_link" 18005case "(($ac_try" in 18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18007 *) ac_try_echo=$ac_try;; 18008esac 18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18010 (eval "$ac_link") 2>conftest.er1 18011 ac_status=$? 18012 grep -v '^ *+' conftest.er1 >conftest.err 18013 rm -f conftest.er1 18014 cat conftest.err >&5 18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18016 (exit $ac_status); } && { 18017 test -z "$ac_c_werror_flag" || 18018 test ! -s conftest.err 18019 } && test -s conftest$ac_exeext && 18020 $as_test_x conftest$ac_exeext; then 18021 18022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18023}'` 18024# Check for a 64-bit object if we didn't find anything. 18025if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18026}'`; fi 18027else 18028 echo "$as_me: failed program was:" >&5 18029sed 's/^/| /' conftest.$ac_ext >&5 18030 18031 18032fi 18033 18034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18035 conftest$ac_exeext conftest.$ac_ext 18036if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18037 18038 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18039 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18040 else 18041 if test "$host_cpu" = ia64; then 18042 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18043 allow_undefined_flag_GCJ="-z nodefs" 18044 archive_expsym_cmds_GCJ="\$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" 18045 else 18046 # Determine the default libpath from the value encoded in an empty executable. 18047 cat >conftest.$ac_ext <<_ACEOF 18048/* confdefs.h. */ 18049_ACEOF 18050cat confdefs.h >>conftest.$ac_ext 18051cat >>conftest.$ac_ext <<_ACEOF 18052/* end confdefs.h. */ 18053 18054int 18055main () 18056{ 18057 18058 ; 18059 return 0; 18060} 18061_ACEOF 18062rm -f conftest.$ac_objext conftest$ac_exeext 18063if { (ac_try="$ac_link" 18064case "(($ac_try" in 18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18066 *) ac_try_echo=$ac_try;; 18067esac 18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18069 (eval "$ac_link") 2>conftest.er1 18070 ac_status=$? 18071 grep -v '^ *+' conftest.er1 >conftest.err 18072 rm -f conftest.er1 18073 cat conftest.err >&5 18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18075 (exit $ac_status); } && { 18076 test -z "$ac_c_werror_flag" || 18077 test ! -s conftest.err 18078 } && test -s conftest$ac_exeext && 18079 $as_test_x conftest$ac_exeext; then 18080 18081aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18082}'` 18083# Check for a 64-bit object if we didn't find anything. 18084if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18085}'`; fi 18086else 18087 echo "$as_me: failed program was:" >&5 18088sed 's/^/| /' conftest.$ac_ext >&5 18089 18090 18091fi 18092 18093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18094 conftest$ac_exeext conftest.$ac_ext 18095if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18096 18097 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18098 # Warning - without using the other run time loading flags, 18099 # -berok will link without error, but may produce a broken library. 18100 no_undefined_flag_GCJ=' ${wl}-bernotok' 18101 allow_undefined_flag_GCJ=' ${wl}-berok' 18102 # Exported symbols can be pulled into shared objects from archives 18103 whole_archive_flag_spec_GCJ='$convenience' 18104 archive_cmds_need_lc_GCJ=yes 18105 # This is similar to how AIX traditionally builds its shared libraries. 18106 archive_expsym_cmds_GCJ="\$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' 18107 fi 18108 fi 18109 ;; 18110 18111 amigaos*) 18112 archive_cmds_GCJ='$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)' 18113 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18114 hardcode_minus_L_GCJ=yes 18115 # see comment about different semantics on the GNU ld section 18116 ld_shlibs_GCJ=no 18117 ;; 18118 18119 bsdi[45]*) 18120 export_dynamic_flag_spec_GCJ=-rdynamic 18121 ;; 18122 18123 cygwin* | mingw* | pw32*) 18124 # When not using gcc, we currently assume that we are using 18125 # Microsoft Visual C++. 18126 # hardcode_libdir_flag_spec is actually meaningless, as there is 18127 # no search path for DLLs. 18128 hardcode_libdir_flag_spec_GCJ=' ' 18129 allow_undefined_flag_GCJ=unsupported 18130 # Tell ltmain to make .lib files, not .a files. 18131 libext=lib 18132 # Tell ltmain to make .dll files, not .so files. 18133 shrext_cmds=".dll" 18134 # FIXME: Setting linknames here is a bad hack. 18135 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18136 # The linker will automatically build a .lib file if we build a DLL. 18137 old_archive_From_new_cmds_GCJ='true' 18138 # FIXME: Should let the user specify the lib program. 18139 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18140 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18141 enable_shared_with_static_runtimes_GCJ=yes 18142 ;; 18143 18144 darwin* | rhapsody*) 18145 case $host_os in 18146 rhapsody* | darwin1.[012]) 18147 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18148 ;; 18149 *) # Darwin 1.3 on 18150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18151 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18152 else 18153 case ${MACOSX_DEPLOYMENT_TARGET} in 18154 10.[012]) 18155 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18156 ;; 18157 10.*) 18158 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18159 ;; 18160 esac 18161 fi 18162 ;; 18163 esac 18164 archive_cmds_need_lc_GCJ=no 18165 hardcode_direct_GCJ=no 18166 hardcode_automatic_GCJ=yes 18167 hardcode_shlibpath_var_GCJ=unsupported 18168 whole_archive_flag_spec_GCJ='' 18169 link_all_deplibs_GCJ=yes 18170 if test "$GCC" = yes ; then 18171 output_verbose_link_cmd='echo' 18172 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18173 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18175 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18176 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18177 else 18178 case $cc_basename in 18179 xlc*) 18180 output_verbose_link_cmd='echo' 18181 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18182 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18184 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18185 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18186 ;; 18187 *) 18188 ld_shlibs_GCJ=no 18189 ;; 18190 esac 18191 fi 18192 ;; 18193 18194 dgux*) 18195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18196 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18197 hardcode_shlibpath_var_GCJ=no 18198 ;; 18199 18200 freebsd1*) 18201 ld_shlibs_GCJ=no 18202 ;; 18203 18204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18205 # support. Future versions do this automatically, but an explicit c++rt0.o 18206 # does not break anything, and helps significantly (at the cost of a little 18207 # extra space). 18208 freebsd2.2*) 18209 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18210 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18211 hardcode_direct_GCJ=yes 18212 hardcode_shlibpath_var_GCJ=no 18213 ;; 18214 18215 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18216 freebsd2*) 18217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18218 hardcode_direct_GCJ=yes 18219 hardcode_minus_L_GCJ=yes 18220 hardcode_shlibpath_var_GCJ=no 18221 ;; 18222 18223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18224 freebsd* | kfreebsd*-gnu | dragonfly*) 18225 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18226 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18227 hardcode_direct_GCJ=yes 18228 hardcode_shlibpath_var_GCJ=no 18229 ;; 18230 18231 hpux9*) 18232 if test "$GCC" = yes; then 18233 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18234 else 18235 archive_cmds_GCJ='$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' 18236 fi 18237 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18238 hardcode_libdir_separator_GCJ=: 18239 hardcode_direct_GCJ=yes 18240 18241 # hardcode_minus_L: Not really in the search PATH, 18242 # but as the default location of the library. 18243 hardcode_minus_L_GCJ=yes 18244 export_dynamic_flag_spec_GCJ='${wl}-E' 18245 ;; 18246 18247 hpux10*) 18248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18249 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18250 else 18251 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18252 fi 18253 if test "$with_gnu_ld" = no; then 18254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18255 hardcode_libdir_separator_GCJ=: 18256 18257 hardcode_direct_GCJ=yes 18258 export_dynamic_flag_spec_GCJ='${wl}-E' 18259 18260 # hardcode_minus_L: Not really in the search PATH, 18261 # but as the default location of the library. 18262 hardcode_minus_L_GCJ=yes 18263 fi 18264 ;; 18265 18266 hpux11*) 18267 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18268 case $host_cpu in 18269 hppa*64*) 18270 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18271 ;; 18272 ia64*) 18273 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18274 ;; 18275 *) 18276 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18277 ;; 18278 esac 18279 else 18280 case $host_cpu in 18281 hppa*64*) 18282 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18283 ;; 18284 ia64*) 18285 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18286 ;; 18287 *) 18288 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18289 ;; 18290 esac 18291 fi 18292 if test "$with_gnu_ld" = no; then 18293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18294 hardcode_libdir_separator_GCJ=: 18295 18296 case $host_cpu in 18297 hppa*64*|ia64*) 18298 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18299 hardcode_direct_GCJ=no 18300 hardcode_shlibpath_var_GCJ=no 18301 ;; 18302 *) 18303 hardcode_direct_GCJ=yes 18304 export_dynamic_flag_spec_GCJ='${wl}-E' 18305 18306 # hardcode_minus_L: Not really in the search PATH, 18307 # but as the default location of the library. 18308 hardcode_minus_L_GCJ=yes 18309 ;; 18310 esac 18311 fi 18312 ;; 18313 18314 irix5* | irix6* | nonstopux*) 18315 if test "$GCC" = yes; then 18316 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18317 else 18318 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18319 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18320 fi 18321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18322 hardcode_libdir_separator_GCJ=: 18323 link_all_deplibs_GCJ=yes 18324 ;; 18325 18326 netbsd*) 18327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18328 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18329 else 18330 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18331 fi 18332 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18333 hardcode_direct_GCJ=yes 18334 hardcode_shlibpath_var_GCJ=no 18335 ;; 18336 18337 newsos6) 18338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18339 hardcode_direct_GCJ=yes 18340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18341 hardcode_libdir_separator_GCJ=: 18342 hardcode_shlibpath_var_GCJ=no 18343 ;; 18344 18345 openbsd*) 18346 hardcode_direct_GCJ=yes 18347 hardcode_shlibpath_var_GCJ=no 18348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18349 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18350 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18352 export_dynamic_flag_spec_GCJ='${wl}-E' 18353 else 18354 case $host_os in 18355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18356 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18357 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18358 ;; 18359 *) 18360 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18362 ;; 18363 esac 18364 fi 18365 ;; 18366 18367 os2*) 18368 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18369 hardcode_minus_L_GCJ=yes 18370 allow_undefined_flag_GCJ=unsupported 18371 archive_cmds_GCJ='$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' 18372 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18373 ;; 18374 18375 osf3*) 18376 if test "$GCC" = yes; then 18377 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18378 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18379 else 18380 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18381 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18382 fi 18383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18384 hardcode_libdir_separator_GCJ=: 18385 ;; 18386 18387 osf4* | osf5*) # as osf3* with the addition of -msym flag 18388 if test "$GCC" = yes; then 18389 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18390 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18392 else 18393 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18394 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18395 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18396 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18397 18398 # Both c and cxx compiler support -rpath directly 18399 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18400 fi 18401 hardcode_libdir_separator_GCJ=: 18402 ;; 18403 18404 solaris*) 18405 no_undefined_flag_GCJ=' -z text' 18406 if test "$GCC" = yes; then 18407 wlarc='${wl}' 18408 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18410 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18411 else 18412 wlarc='' 18413 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18416 fi 18417 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18418 hardcode_shlibpath_var_GCJ=no 18419 case $host_os in 18420 solaris2.[0-5] | solaris2.[0-5].*) ;; 18421 *) 18422 # The compiler driver will combine linker options so we 18423 # cannot just pass the convience library names through 18424 # without $wl, iff we do not link with $LD. 18425 # Luckily, gcc supports the same syntax we need for Sun Studio. 18426 # Supported since Solaris 2.6 (maybe 2.5.1?) 18427 case $wlarc in 18428 '') 18429 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18430 *) 18431 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18432 esac ;; 18433 esac 18434 link_all_deplibs_GCJ=yes 18435 ;; 18436 18437 sunos4*) 18438 if test "x$host_vendor" = xsequent; then 18439 # Use $CC to link under sequent, because it throws in some extra .o 18440 # files that make .init and .fini sections work. 18441 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18442 else 18443 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18444 fi 18445 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18446 hardcode_direct_GCJ=yes 18447 hardcode_minus_L_GCJ=yes 18448 hardcode_shlibpath_var_GCJ=no 18449 ;; 18450 18451 sysv4) 18452 case $host_vendor in 18453 sni) 18454 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18455 hardcode_direct_GCJ=yes # is this really true??? 18456 ;; 18457 siemens) 18458 ## LD is ld it makes a PLAMLIB 18459 ## CC just makes a GrossModule. 18460 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18461 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18462 hardcode_direct_GCJ=no 18463 ;; 18464 motorola) 18465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18466 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18467 ;; 18468 esac 18469 runpath_var='LD_RUN_PATH' 18470 hardcode_shlibpath_var_GCJ=no 18471 ;; 18472 18473 sysv4.3*) 18474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18475 hardcode_shlibpath_var_GCJ=no 18476 export_dynamic_flag_spec_GCJ='-Bexport' 18477 ;; 18478 18479 sysv4*MP*) 18480 if test -d /usr/nec; then 18481 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18482 hardcode_shlibpath_var_GCJ=no 18483 runpath_var=LD_RUN_PATH 18484 hardcode_runpath_var=yes 18485 ld_shlibs_GCJ=yes 18486 fi 18487 ;; 18488 18489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18490 no_undefined_flag_GCJ='${wl}-z,text' 18491 archive_cmds_need_lc_GCJ=no 18492 hardcode_shlibpath_var_GCJ=no 18493 runpath_var='LD_RUN_PATH' 18494 18495 if test "$GCC" = yes; then 18496 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18497 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18498 else 18499 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18500 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18501 fi 18502 ;; 18503 18504 sysv5* | sco3.2v5* | sco5v6*) 18505 # Note: We can NOT use -z defs as we might desire, because we do not 18506 # link with -lc, and that would cause any symbols used from libc to 18507 # always be unresolved, which means just about no library would 18508 # ever link correctly. If we're not using GNU ld we use -z text 18509 # though, which does catch some bad symbols but isn't as heavy-handed 18510 # as -z defs. 18511 no_undefined_flag_GCJ='${wl}-z,text' 18512 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18513 archive_cmds_need_lc_GCJ=no 18514 hardcode_shlibpath_var_GCJ=no 18515 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18516 hardcode_libdir_separator_GCJ=':' 18517 link_all_deplibs_GCJ=yes 18518 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18519 runpath_var='LD_RUN_PATH' 18520 18521 if test "$GCC" = yes; then 18522 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18524 else 18525 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18527 fi 18528 ;; 18529 18530 uts4*) 18531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18532 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18533 hardcode_shlibpath_var_GCJ=no 18534 ;; 18535 18536 *) 18537 ld_shlibs_GCJ=no 18538 ;; 18539 esac 18540 fi 18541 18542{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18543echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18544test "$ld_shlibs_GCJ" = no && can_build_shared=no 18545 18546# 18547# Do we need to explicitly link libc? 18548# 18549case "x$archive_cmds_need_lc_GCJ" in 18550x|xyes) 18551 # Assume -lc should be added 18552 archive_cmds_need_lc_GCJ=yes 18553 18554 if test "$enable_shared" = yes && test "$GCC" = yes; then 18555 case $archive_cmds_GCJ in 18556 *'~'*) 18557 # FIXME: we may have to deal with multi-command sequences. 18558 ;; 18559 '$CC '*) 18560 # Test whether the compiler implicitly links with -lc since on some 18561 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18562 # to ld, don't add -lc before -lgcc. 18563 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18564echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18565 $rm conftest* 18566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18567 18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18569 (eval $ac_compile) 2>&5 18570 ac_status=$? 18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18572 (exit $ac_status); } 2>conftest.err; then 18573 soname=conftest 18574 lib=conftest 18575 libobjs=conftest.$ac_objext 18576 deplibs= 18577 wl=$lt_prog_compiler_wl_GCJ 18578 pic_flag=$lt_prog_compiler_pic_GCJ 18579 compiler_flags=-v 18580 linker_flags=-v 18581 verstring= 18582 output_objdir=. 18583 libname=conftest 18584 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18585 allow_undefined_flag_GCJ= 18586 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18587 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18588 ac_status=$? 18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18590 (exit $ac_status); } 18591 then 18592 archive_cmds_need_lc_GCJ=no 18593 else 18594 archive_cmds_need_lc_GCJ=yes 18595 fi 18596 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18597 else 18598 cat conftest.err 1>&5 18599 fi 18600 $rm conftest* 18601 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18602echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18603 ;; 18604 esac 18605 fi 18606 ;; 18607esac 18608 18609{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18610echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18611library_names_spec= 18612libname_spec='lib$name' 18613soname_spec= 18614shrext_cmds=".so" 18615postinstall_cmds= 18616postuninstall_cmds= 18617finish_cmds= 18618finish_eval= 18619shlibpath_var= 18620shlibpath_overrides_runpath=unknown 18621version_type=none 18622dynamic_linker="$host_os ld.so" 18623sys_lib_dlsearch_path_spec="/lib /usr/lib" 18624if test "$GCC" = yes; then 18625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18626 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18627 # if the path contains ";" then we assume it to be the separator 18628 # otherwise default to the standard path separator (i.e. ":") - it is 18629 # assumed that no part of a normal pathname contains ";" but that should 18630 # okay in the real world where ";" in dirpaths is itself problematic. 18631 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18632 else 18633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18634 fi 18635else 18636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18637fi 18638need_lib_prefix=unknown 18639hardcode_into_libs=no 18640 18641# when you set need_version to no, make sure it does not cause -set_version 18642# flags to be left without arguments 18643need_version=unknown 18644 18645case $host_os in 18646aix3*) 18647 version_type=linux 18648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18649 shlibpath_var=LIBPATH 18650 18651 # AIX 3 has no versioning support, so we append a major version to the name. 18652 soname_spec='${libname}${release}${shared_ext}$major' 18653 ;; 18654 18655aix4* | aix5*) 18656 version_type=linux 18657 need_lib_prefix=no 18658 need_version=no 18659 hardcode_into_libs=yes 18660 if test "$host_cpu" = ia64; then 18661 # AIX 5 supports IA64 18662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18663 shlibpath_var=LD_LIBRARY_PATH 18664 else 18665 # With GCC up to 2.95.x, collect2 would create an import file 18666 # for dependence libraries. The import file would start with 18667 # the line `#! .'. This would cause the generated library to 18668 # depend on `.', always an invalid library. This was fixed in 18669 # development snapshots of GCC prior to 3.0. 18670 case $host_os in 18671 aix4 | aix4.[01] | aix4.[01].*) 18672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18673 echo ' yes ' 18674 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18675 : 18676 else 18677 can_build_shared=no 18678 fi 18679 ;; 18680 esac 18681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18682 # soname into executable. Probably we can add versioning support to 18683 # collect2, so additional links can be useful in future. 18684 if test "$aix_use_runtimelinking" = yes; then 18685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18686 # instead of lib<name>.a to let people know that these are not 18687 # typical AIX shared libraries. 18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18689 else 18690 # We preserve .a as extension for shared libraries through AIX4.2 18691 # and later when we are not doing run time linking. 18692 library_names_spec='${libname}${release}.a $libname.a' 18693 soname_spec='${libname}${release}${shared_ext}$major' 18694 fi 18695 shlibpath_var=LIBPATH 18696 fi 18697 ;; 18698 18699amigaos*) 18700 library_names_spec='$libname.ixlibrary $libname.a' 18701 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18702 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 18703 ;; 18704 18705beos*) 18706 library_names_spec='${libname}${shared_ext}' 18707 dynamic_linker="$host_os ld.so" 18708 shlibpath_var=LIBRARY_PATH 18709 ;; 18710 18711bsdi[45]*) 18712 version_type=linux 18713 need_version=no 18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18715 soname_spec='${libname}${release}${shared_ext}$major' 18716 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18717 shlibpath_var=LD_LIBRARY_PATH 18718 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18719 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18720 # the default ld.so.conf also contains /usr/contrib/lib and 18721 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18722 # libtool to hard-code these into programs 18723 ;; 18724 18725cygwin* | mingw* | pw32*) 18726 version_type=windows 18727 shrext_cmds=".dll" 18728 need_version=no 18729 need_lib_prefix=no 18730 18731 case $GCC,$host_os in 18732 yes,cygwin* | yes,mingw* | yes,pw32*) 18733 library_names_spec='$libname.dll.a' 18734 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18735 postinstall_cmds='base_file=`basename \${file}`~ 18736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18737 dldir=$destdir/`dirname \$dlpath`~ 18738 test -d \$dldir || mkdir -p \$dldir~ 18739 $install_prog $dir/$dlname \$dldir/$dlname~ 18740 chmod a+x \$dldir/$dlname' 18741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18742 dlpath=$dir/\$dldll~ 18743 $rm \$dlpath' 18744 shlibpath_overrides_runpath=yes 18745 18746 case $host_os in 18747 cygwin*) 18748 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18750 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18751 ;; 18752 mingw*) 18753 # MinGW DLLs use traditional 'lib' prefix 18754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18756 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18757 # It is most probably a Windows format PATH printed by 18758 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18759 # path with ; separators, and with drive letters. We can handle the 18760 # drive letters (cygwin fileutils understands them), so leave them, 18761 # especially as we might pass files found there to a mingw objdump, 18762 # which wouldn't understand a cygwinified path. Ahh. 18763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18764 else 18765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18766 fi 18767 ;; 18768 pw32*) 18769 # pw32 DLLs use 'pw' prefix rather than 'lib' 18770 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18771 ;; 18772 esac 18773 ;; 18774 18775 *) 18776 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18777 ;; 18778 esac 18779 dynamic_linker='Win32 ld.exe' 18780 # FIXME: first we should search . and the directory the executable is in 18781 shlibpath_var=PATH 18782 ;; 18783 18784darwin* | rhapsody*) 18785 dynamic_linker="$host_os dyld" 18786 version_type=darwin 18787 need_lib_prefix=no 18788 need_version=no 18789 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 18790 soname_spec='${libname}${release}${major}$shared_ext' 18791 shlibpath_overrides_runpath=yes 18792 shlibpath_var=DYLD_LIBRARY_PATH 18793 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18794 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18795 if test "$GCC" = yes; then 18796 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18797 else 18798 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18799 fi 18800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18801 ;; 18802 18803dgux*) 18804 version_type=linux 18805 need_lib_prefix=no 18806 need_version=no 18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18808 soname_spec='${libname}${release}${shared_ext}$major' 18809 shlibpath_var=LD_LIBRARY_PATH 18810 ;; 18811 18812freebsd1*) 18813 dynamic_linker=no 18814 ;; 18815 18816kfreebsd*-gnu) 18817 version_type=linux 18818 need_lib_prefix=no 18819 need_version=no 18820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18821 soname_spec='${libname}${release}${shared_ext}$major' 18822 shlibpath_var=LD_LIBRARY_PATH 18823 shlibpath_overrides_runpath=no 18824 hardcode_into_libs=yes 18825 dynamic_linker='GNU ld.so' 18826 ;; 18827 18828freebsd* | dragonfly*) 18829 # DragonFly does not have aout. When/if they implement a new 18830 # versioning mechanism, adjust this. 18831 if test -x /usr/bin/objformat; then 18832 objformat=`/usr/bin/objformat` 18833 else 18834 case $host_os in 18835 freebsd[123]*) objformat=aout ;; 18836 *) objformat=elf ;; 18837 esac 18838 fi 18839 version_type=freebsd-$objformat 18840 case $version_type in 18841 freebsd-elf*) 18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18843 need_version=no 18844 need_lib_prefix=no 18845 ;; 18846 freebsd-*) 18847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18848 need_version=yes 18849 ;; 18850 esac 18851 shlibpath_var=LD_LIBRARY_PATH 18852 case $host_os in 18853 freebsd2*) 18854 shlibpath_overrides_runpath=yes 18855 ;; 18856 freebsd3.[01]* | freebsdelf3.[01]*) 18857 shlibpath_overrides_runpath=yes 18858 hardcode_into_libs=yes 18859 ;; 18860 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18861 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18862 shlibpath_overrides_runpath=no 18863 hardcode_into_libs=yes 18864 ;; 18865 freebsd*) # from 4.6 on 18866 shlibpath_overrides_runpath=yes 18867 hardcode_into_libs=yes 18868 ;; 18869 esac 18870 ;; 18871 18872gnu*) 18873 version_type=linux 18874 need_lib_prefix=no 18875 need_version=no 18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18877 soname_spec='${libname}${release}${shared_ext}$major' 18878 shlibpath_var=LD_LIBRARY_PATH 18879 hardcode_into_libs=yes 18880 ;; 18881 18882hpux9* | hpux10* | hpux11*) 18883 # Give a soname corresponding to the major version so that dld.sl refuses to 18884 # link against other versions. 18885 version_type=sunos 18886 need_lib_prefix=no 18887 need_version=no 18888 case $host_cpu in 18889 ia64*) 18890 shrext_cmds='.so' 18891 hardcode_into_libs=yes 18892 dynamic_linker="$host_os dld.so" 18893 shlibpath_var=LD_LIBRARY_PATH 18894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18896 soname_spec='${libname}${release}${shared_ext}$major' 18897 if test "X$HPUX_IA64_MODE" = X32; then 18898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18899 else 18900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18901 fi 18902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18903 ;; 18904 hppa*64*) 18905 shrext_cmds='.sl' 18906 hardcode_into_libs=yes 18907 dynamic_linker="$host_os dld.sl" 18908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18911 soname_spec='${libname}${release}${shared_ext}$major' 18912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18914 ;; 18915 *) 18916 shrext_cmds='.sl' 18917 dynamic_linker="$host_os dld.sl" 18918 shlibpath_var=SHLIB_PATH 18919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18921 soname_spec='${libname}${release}${shared_ext}$major' 18922 ;; 18923 esac 18924 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18925 postinstall_cmds='chmod 555 $lib' 18926 ;; 18927 18928interix3*) 18929 version_type=linux 18930 need_lib_prefix=no 18931 need_version=no 18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18933 soname_spec='${libname}${release}${shared_ext}$major' 18934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18935 shlibpath_var=LD_LIBRARY_PATH 18936 shlibpath_overrides_runpath=no 18937 hardcode_into_libs=yes 18938 ;; 18939 18940irix5* | irix6* | nonstopux*) 18941 case $host_os in 18942 nonstopux*) version_type=nonstopux ;; 18943 *) 18944 if test "$lt_cv_prog_gnu_ld" = yes; then 18945 version_type=linux 18946 else 18947 version_type=irix 18948 fi ;; 18949 esac 18950 need_lib_prefix=no 18951 need_version=no 18952 soname_spec='${libname}${release}${shared_ext}$major' 18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18954 case $host_os in 18955 irix5* | nonstopux*) 18956 libsuff= shlibsuff= 18957 ;; 18958 *) 18959 case $LD in # libtool.m4 will add one of these switches to LD 18960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18961 libsuff= shlibsuff= libmagic=32-bit;; 18962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18963 libsuff=32 shlibsuff=N32 libmagic=N32;; 18964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18965 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18966 *) libsuff= shlibsuff= libmagic=never-match;; 18967 esac 18968 ;; 18969 esac 18970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18971 shlibpath_overrides_runpath=no 18972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18974 hardcode_into_libs=yes 18975 ;; 18976 18977# No shared lib support for Linux oldld, aout, or coff. 18978linux*oldld* | linux*aout* | linux*coff*) 18979 dynamic_linker=no 18980 ;; 18981 18982# This must be Linux ELF. 18983linux*) 18984 version_type=linux 18985 need_lib_prefix=no 18986 need_version=no 18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18988 soname_spec='${libname}${release}${shared_ext}$major' 18989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18990 shlibpath_var=LD_LIBRARY_PATH 18991 shlibpath_overrides_runpath=no 18992 # This implies no fast_install, which is unacceptable. 18993 # Some rework will be needed to allow for fast_install 18994 # before this can be enabled. 18995 hardcode_into_libs=yes 18996 18997 # Append ld.so.conf contents to the search path 18998 if test -f /etc/ld.so.conf; then 18999 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19000 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19001 fi 19002 19003 # We used to test for /lib/ld.so.1 and disable shared libraries on 19004 # powerpc, because MkLinux only supported shared libraries with the 19005 # GNU dynamic linker. Since this was broken with cross compilers, 19006 # most powerpc-linux boxes support dynamic linking these days and 19007 # people can always --disable-shared, the test was removed, and we 19008 # assume the GNU/Linux dynamic linker is in use. 19009 dynamic_linker='GNU/Linux ld.so' 19010 ;; 19011 19012knetbsd*-gnu) 19013 version_type=linux 19014 need_lib_prefix=no 19015 need_version=no 19016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19017 soname_spec='${libname}${release}${shared_ext}$major' 19018 shlibpath_var=LD_LIBRARY_PATH 19019 shlibpath_overrides_runpath=no 19020 hardcode_into_libs=yes 19021 dynamic_linker='GNU ld.so' 19022 ;; 19023 19024netbsd*) 19025 version_type=sunos 19026 need_lib_prefix=no 19027 need_version=no 19028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19031 dynamic_linker='NetBSD (a.out) ld.so' 19032 else 19033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19034 soname_spec='${libname}${release}${shared_ext}$major' 19035 dynamic_linker='NetBSD ld.elf_so' 19036 fi 19037 shlibpath_var=LD_LIBRARY_PATH 19038 shlibpath_overrides_runpath=yes 19039 hardcode_into_libs=yes 19040 ;; 19041 19042newsos6) 19043 version_type=linux 19044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19045 shlibpath_var=LD_LIBRARY_PATH 19046 shlibpath_overrides_runpath=yes 19047 ;; 19048 19049nto-qnx*) 19050 version_type=linux 19051 need_lib_prefix=no 19052 need_version=no 19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19054 soname_spec='${libname}${release}${shared_ext}$major' 19055 shlibpath_var=LD_LIBRARY_PATH 19056 shlibpath_overrides_runpath=yes 19057 ;; 19058 19059openbsd*) 19060 version_type=sunos 19061 sys_lib_dlsearch_path_spec="/usr/lib" 19062 need_lib_prefix=no 19063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19064 case $host_os in 19065 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19066 *) need_version=no ;; 19067 esac 19068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19070 shlibpath_var=LD_LIBRARY_PATH 19071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19072 case $host_os in 19073 openbsd2.[89] | openbsd2.[89].*) 19074 shlibpath_overrides_runpath=no 19075 ;; 19076 *) 19077 shlibpath_overrides_runpath=yes 19078 ;; 19079 esac 19080 else 19081 shlibpath_overrides_runpath=yes 19082 fi 19083 ;; 19084 19085os2*) 19086 libname_spec='$name' 19087 shrext_cmds=".dll" 19088 need_lib_prefix=no 19089 library_names_spec='$libname${shared_ext} $libname.a' 19090 dynamic_linker='OS/2 ld.exe' 19091 shlibpath_var=LIBPATH 19092 ;; 19093 19094osf3* | osf4* | osf5*) 19095 version_type=osf 19096 need_lib_prefix=no 19097 need_version=no 19098 soname_spec='${libname}${release}${shared_ext}$major' 19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19100 shlibpath_var=LD_LIBRARY_PATH 19101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19103 ;; 19104 19105solaris*) 19106 version_type=linux 19107 need_lib_prefix=no 19108 need_version=no 19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19110 soname_spec='${libname}${release}${shared_ext}$major' 19111 shlibpath_var=LD_LIBRARY_PATH 19112 shlibpath_overrides_runpath=yes 19113 hardcode_into_libs=yes 19114 # ldd complains unless libraries are executable 19115 postinstall_cmds='chmod +x $lib' 19116 ;; 19117 19118sunos4*) 19119 version_type=sunos 19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19122 shlibpath_var=LD_LIBRARY_PATH 19123 shlibpath_overrides_runpath=yes 19124 if test "$with_gnu_ld" = yes; then 19125 need_lib_prefix=no 19126 fi 19127 need_version=yes 19128 ;; 19129 19130sysv4 | sysv4.3*) 19131 version_type=linux 19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19133 soname_spec='${libname}${release}${shared_ext}$major' 19134 shlibpath_var=LD_LIBRARY_PATH 19135 case $host_vendor in 19136 sni) 19137 shlibpath_overrides_runpath=no 19138 need_lib_prefix=no 19139 export_dynamic_flag_spec='${wl}-Blargedynsym' 19140 runpath_var=LD_RUN_PATH 19141 ;; 19142 siemens) 19143 need_lib_prefix=no 19144 ;; 19145 motorola) 19146 need_lib_prefix=no 19147 need_version=no 19148 shlibpath_overrides_runpath=no 19149 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19150 ;; 19151 esac 19152 ;; 19153 19154sysv4*MP*) 19155 if test -d /usr/nec ;then 19156 version_type=linux 19157 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19158 soname_spec='$libname${shared_ext}.$major' 19159 shlibpath_var=LD_LIBRARY_PATH 19160 fi 19161 ;; 19162 19163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19164 version_type=freebsd-elf 19165 need_lib_prefix=no 19166 need_version=no 19167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19168 soname_spec='${libname}${release}${shared_ext}$major' 19169 shlibpath_var=LD_LIBRARY_PATH 19170 hardcode_into_libs=yes 19171 if test "$with_gnu_ld" = yes; then 19172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19173 shlibpath_overrides_runpath=no 19174 else 19175 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19176 shlibpath_overrides_runpath=yes 19177 case $host_os in 19178 sco3.2v5*) 19179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19180 ;; 19181 esac 19182 fi 19183 sys_lib_dlsearch_path_spec='/usr/lib' 19184 ;; 19185 19186uts4*) 19187 version_type=linux 19188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19189 soname_spec='${libname}${release}${shared_ext}$major' 19190 shlibpath_var=LD_LIBRARY_PATH 19191 ;; 19192 19193*) 19194 dynamic_linker=no 19195 ;; 19196esac 19197{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19198echo "${ECHO_T}$dynamic_linker" >&6; } 19199test "$dynamic_linker" = no && can_build_shared=no 19200 19201variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19202if test "$GCC" = yes; then 19203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19204fi 19205 19206{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19207echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 19208hardcode_action_GCJ= 19209if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19210 test -n "$runpath_var_GCJ" || \ 19211 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19212 19213 # We can hardcode non-existant directories. 19214 if test "$hardcode_direct_GCJ" != no && 19215 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19216 # have to relink, otherwise we might link with an installed library 19217 # when we should be linking with a yet-to-be-installed one 19218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19219 test "$hardcode_minus_L_GCJ" != no; then 19220 # Linking always hardcodes the temporary library directory. 19221 hardcode_action_GCJ=relink 19222 else 19223 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19224 hardcode_action_GCJ=immediate 19225 fi 19226else 19227 # We cannot hardcode anything, or else we can only hardcode existing 19228 # directories. 19229 hardcode_action_GCJ=unsupported 19230fi 19231{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19232echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 19233 19234if test "$hardcode_action_GCJ" = relink; then 19235 # Fast installation is not supported 19236 enable_fast_install=no 19237elif test "$shlibpath_overrides_runpath" = yes || 19238 test "$enable_shared" = no; then 19239 # Fast installation is not necessary 19240 enable_fast_install=needless 19241fi 19242 19243 19244# The else clause should only fire when bootstrapping the 19245# libtool distribution, otherwise you forgot to ship ltmain.sh 19246# with your package, and you will get complaints that there are 19247# no rules to generate ltmain.sh. 19248if test -f "$ltmain"; then 19249 # See if we are running on zsh, and set the options which allow our commands through 19250 # without removal of \ escapes. 19251 if test -n "${ZSH_VERSION+set}" ; then 19252 setopt NO_GLOB_SUBST 19253 fi 19254 # Now quote all the things that may contain metacharacters while being 19255 # careful not to overquote the AC_SUBSTed values. We take copies of the 19256 # variables and quote the copies for generation of the libtool script. 19257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19258 SED SHELL STRIP \ 19259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19261 deplibs_check_method reload_flag reload_cmds need_locks \ 19262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19263 lt_cv_sys_global_symbol_to_c_name_address \ 19264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19265 old_postinstall_cmds old_postuninstall_cmds \ 19266 compiler_GCJ \ 19267 CC_GCJ \ 19268 LD_GCJ \ 19269 lt_prog_compiler_wl_GCJ \ 19270 lt_prog_compiler_pic_GCJ \ 19271 lt_prog_compiler_static_GCJ \ 19272 lt_prog_compiler_no_builtin_flag_GCJ \ 19273 export_dynamic_flag_spec_GCJ \ 19274 thread_safe_flag_spec_GCJ \ 19275 whole_archive_flag_spec_GCJ \ 19276 enable_shared_with_static_runtimes_GCJ \ 19277 old_archive_cmds_GCJ \ 19278 old_archive_from_new_cmds_GCJ \ 19279 predep_objects_GCJ \ 19280 postdep_objects_GCJ \ 19281 predeps_GCJ \ 19282 postdeps_GCJ \ 19283 compiler_lib_search_path_GCJ \ 19284 archive_cmds_GCJ \ 19285 archive_expsym_cmds_GCJ \ 19286 postinstall_cmds_GCJ \ 19287 postuninstall_cmds_GCJ \ 19288 old_archive_from_expsyms_cmds_GCJ \ 19289 allow_undefined_flag_GCJ \ 19290 no_undefined_flag_GCJ \ 19291 export_symbols_cmds_GCJ \ 19292 hardcode_libdir_flag_spec_GCJ \ 19293 hardcode_libdir_flag_spec_ld_GCJ \ 19294 hardcode_libdir_separator_GCJ \ 19295 hardcode_automatic_GCJ \ 19296 module_cmds_GCJ \ 19297 module_expsym_cmds_GCJ \ 19298 lt_cv_prog_compiler_c_o_GCJ \ 19299 exclude_expsyms_GCJ \ 19300 include_expsyms_GCJ; do 19301 19302 case $var in 19303 old_archive_cmds_GCJ | \ 19304 old_archive_from_new_cmds_GCJ | \ 19305 archive_cmds_GCJ | \ 19306 archive_expsym_cmds_GCJ | \ 19307 module_cmds_GCJ | \ 19308 module_expsym_cmds_GCJ | \ 19309 old_archive_from_expsyms_cmds_GCJ | \ 19310 export_symbols_cmds_GCJ | \ 19311 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19312 postinstall_cmds | postuninstall_cmds | \ 19313 old_postinstall_cmds | old_postuninstall_cmds | \ 19314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19315 # Double-quote double-evaled strings. 19316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19317 ;; 19318 *) 19319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19320 ;; 19321 esac 19322 done 19323 19324 case $lt_echo in 19325 *'\$0 --fallback-echo"') 19326 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19327 ;; 19328 esac 19329 19330cfgfile="$ofile" 19331 19332 cat <<__EOF__ >> "$cfgfile" 19333# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19334 19335# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19336 19337# Shell to use when invoking shell scripts. 19338SHELL=$lt_SHELL 19339 19340# Whether or not to build shared libraries. 19341build_libtool_libs=$enable_shared 19342 19343# Whether or not to build static libraries. 19344build_old_libs=$enable_static 19345 19346# Whether or not to add -lc for building shared libraries. 19347build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19348 19349# Whether or not to disallow shared libs when runtime libs are static 19350allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19351 19352# Whether or not to optimize for fast installation. 19353fast_install=$enable_fast_install 19354 19355# The host system. 19356host_alias=$host_alias 19357host=$host 19358host_os=$host_os 19359 19360# The build system. 19361build_alias=$build_alias 19362build=$build 19363build_os=$build_os 19364 19365# An echo program that does not interpret backslashes. 19366echo=$lt_echo 19367 19368# The archiver. 19369AR=$lt_AR 19370AR_FLAGS=$lt_AR_FLAGS 19371 19372# A C compiler. 19373LTCC=$lt_LTCC 19374 19375# LTCC compiler flags. 19376LTCFLAGS=$lt_LTCFLAGS 19377 19378# A language-specific compiler. 19379CC=$lt_compiler_GCJ 19380 19381# Is the compiler the GNU C compiler? 19382with_gcc=$GCC_GCJ 19383 19384# An ERE matcher. 19385EGREP=$lt_EGREP 19386 19387# The linker used to build libraries. 19388LD=$lt_LD_GCJ 19389 19390# Whether we need hard or soft links. 19391LN_S=$lt_LN_S 19392 19393# A BSD-compatible nm program. 19394NM=$lt_NM 19395 19396# A symbol stripping program 19397STRIP=$lt_STRIP 19398 19399# Used to examine libraries when file_magic_cmd begins "file" 19400MAGIC_CMD=$MAGIC_CMD 19401 19402# Used on cygwin: DLL creation program. 19403DLLTOOL="$DLLTOOL" 19404 19405# Used on cygwin: object dumper. 19406OBJDUMP="$OBJDUMP" 19407 19408# Used on cygwin: assembler. 19409AS="$AS" 19410 19411# The name of the directory that contains temporary libtool files. 19412objdir=$objdir 19413 19414# How to create reloadable object files. 19415reload_flag=$lt_reload_flag 19416reload_cmds=$lt_reload_cmds 19417 19418# How to pass a linker flag through the compiler. 19419wl=$lt_lt_prog_compiler_wl_GCJ 19420 19421# Object file suffix (normally "o"). 19422objext="$ac_objext" 19423 19424# Old archive suffix (normally "a"). 19425libext="$libext" 19426 19427# Shared library suffix (normally ".so"). 19428shrext_cmds='$shrext_cmds' 19429 19430# Executable file suffix (normally ""). 19431exeext="$exeext" 19432 19433# Additional compiler flags for building library objects. 19434pic_flag=$lt_lt_prog_compiler_pic_GCJ 19435pic_mode=$pic_mode 19436 19437# What is the maximum length of a command? 19438max_cmd_len=$lt_cv_sys_max_cmd_len 19439 19440# Does compiler simultaneously support -c and -o options? 19441compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19442 19443# Must we lock files when doing compilation? 19444need_locks=$lt_need_locks 19445 19446# Do we need the lib prefix for modules? 19447need_lib_prefix=$need_lib_prefix 19448 19449# Do we need a version for libraries? 19450need_version=$need_version 19451 19452# Whether dlopen is supported. 19453dlopen_support=$enable_dlopen 19454 19455# Whether dlopen of programs is supported. 19456dlopen_self=$enable_dlopen_self 19457 19458# Whether dlopen of statically linked programs is supported. 19459dlopen_self_static=$enable_dlopen_self_static 19460 19461# Compiler flag to prevent dynamic linking. 19462link_static_flag=$lt_lt_prog_compiler_static_GCJ 19463 19464# Compiler flag to turn off builtin functions. 19465no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19466 19467# Compiler flag to allow reflexive dlopens. 19468export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19469 19470# Compiler flag to generate shared objects directly from archives. 19471whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19472 19473# Compiler flag to generate thread-safe objects. 19474thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19475 19476# Library versioning type. 19477version_type=$version_type 19478 19479# Format of library name prefix. 19480libname_spec=$lt_libname_spec 19481 19482# List of archive names. First name is the real one, the rest are links. 19483# The last name is the one that the linker finds with -lNAME. 19484library_names_spec=$lt_library_names_spec 19485 19486# The coded name of the library, if different from the real name. 19487soname_spec=$lt_soname_spec 19488 19489# Commands used to build and install an old-style archive. 19490RANLIB=$lt_RANLIB 19491old_archive_cmds=$lt_old_archive_cmds_GCJ 19492old_postinstall_cmds=$lt_old_postinstall_cmds 19493old_postuninstall_cmds=$lt_old_postuninstall_cmds 19494 19495# Create an old-style archive from a shared archive. 19496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19497 19498# Create a temporary old-style archive to link instead of a shared archive. 19499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19500 19501# Commands used to build and install a shared archive. 19502archive_cmds=$lt_archive_cmds_GCJ 19503archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19504postinstall_cmds=$lt_postinstall_cmds 19505postuninstall_cmds=$lt_postuninstall_cmds 19506 19507# Commands used to build a loadable module (assumed same as above if empty) 19508module_cmds=$lt_module_cmds_GCJ 19509module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19510 19511# Commands to strip libraries. 19512old_striplib=$lt_old_striplib 19513striplib=$lt_striplib 19514 19515# Dependencies to place before the objects being linked to create a 19516# shared library. 19517predep_objects=$lt_predep_objects_GCJ 19518 19519# Dependencies to place after the objects being linked to create a 19520# shared library. 19521postdep_objects=$lt_postdep_objects_GCJ 19522 19523# Dependencies to place before the objects being linked to create a 19524# shared library. 19525predeps=$lt_predeps_GCJ 19526 19527# Dependencies to place after the objects being linked to create a 19528# shared library. 19529postdeps=$lt_postdeps_GCJ 19530 19531# The library search path used internally by the compiler when linking 19532# a shared library. 19533compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19534 19535# Method to check whether dependent libraries are shared objects. 19536deplibs_check_method=$lt_deplibs_check_method 19537 19538# Command to use when deplibs_check_method == file_magic. 19539file_magic_cmd=$lt_file_magic_cmd 19540 19541# Flag that allows shared libraries with undefined symbols to be built. 19542allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19543 19544# Flag that forces no undefined symbols. 19545no_undefined_flag=$lt_no_undefined_flag_GCJ 19546 19547# Commands used to finish a libtool library installation in a directory. 19548finish_cmds=$lt_finish_cmds 19549 19550# Same as above, but a single script fragment to be evaled but not shown. 19551finish_eval=$lt_finish_eval 19552 19553# Take the output of nm and produce a listing of raw symbols and C names. 19554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19555 19556# Transform the output of nm in a proper C declaration 19557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19558 19559# Transform the output of nm in a C name address pair 19560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19561 19562# This is the shared library runtime path variable. 19563runpath_var=$runpath_var 19564 19565# This is the shared library path variable. 19566shlibpath_var=$shlibpath_var 19567 19568# Is shlibpath searched before the hard-coded library search path? 19569shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19570 19571# How to hardcode a shared library path into an executable. 19572hardcode_action=$hardcode_action_GCJ 19573 19574# Whether we should hardcode library paths into libraries. 19575hardcode_into_libs=$hardcode_into_libs 19576 19577# Flag to hardcode \$libdir into a binary during linking. 19578# This must work even if \$libdir does not exist. 19579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19580 19581# If ld is used when linking, flag to hardcode \$libdir into 19582# a binary during linking. This must work even if \$libdir does 19583# not exist. 19584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19585 19586# Whether we need a single -rpath flag with a separated argument. 19587hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19588 19589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19590# resulting binary. 19591hardcode_direct=$hardcode_direct_GCJ 19592 19593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19594# resulting binary. 19595hardcode_minus_L=$hardcode_minus_L_GCJ 19596 19597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19598# the resulting binary. 19599hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19600 19601# Set to yes if building a shared library automatically hardcodes DIR into the library 19602# and all subsequent libraries and executables linked against it. 19603hardcode_automatic=$hardcode_automatic_GCJ 19604 19605# Variables whose values should be saved in libtool wrapper scripts and 19606# restored at relink time. 19607variables_saved_for_relink="$variables_saved_for_relink" 19608 19609# Whether libtool must link a program against all its dependency libraries. 19610link_all_deplibs=$link_all_deplibs_GCJ 19611 19612# Compile-time system search path for libraries 19613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19614 19615# Run-time system search path for libraries 19616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19617 19618# Fix the shell variable \$srcfile for the compiler. 19619fix_srcfile_path="$fix_srcfile_path_GCJ" 19620 19621# Set to yes if exported symbols are required. 19622always_export_symbols=$always_export_symbols_GCJ 19623 19624# The commands to list exported symbols. 19625export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19626 19627# The commands to extract the exported symbol list from a shared archive. 19628extract_expsyms_cmds=$lt_extract_expsyms_cmds 19629 19630# Symbols that should not be listed in the preloaded symbols. 19631exclude_expsyms=$lt_exclude_expsyms_GCJ 19632 19633# Symbols that must always be exported. 19634include_expsyms=$lt_include_expsyms_GCJ 19635 19636# ### END LIBTOOL TAG CONFIG: $tagname 19637 19638__EOF__ 19639 19640 19641else 19642 # If there is no Makefile yet, we rely on a make rule to execute 19643 # `config.status --recheck' to rerun these tests and create the 19644 # libtool script then. 19645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19646 if test -f "$ltmain_in"; then 19647 test -f Makefile && make "$ltmain" 19648 fi 19649fi 19650 19651 19652ac_ext=c 19653ac_cpp='$CPP $CPPFLAGS' 19654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19656ac_compiler_gnu=$ac_cv_c_compiler_gnu 19657 19658CC="$lt_save_CC" 19659 19660 else 19661 tagname="" 19662 fi 19663 ;; 19664 19665 RC) 19666 19667 19668# Source file extension for RC test sources. 19669ac_ext=rc 19670 19671# Object file extension for compiled RC test sources. 19672objext=o 19673objext_RC=$objext 19674 19675# Code to be used in simple compile tests 19676lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19677 19678# Code to be used in simple link tests 19679lt_simple_link_test_code="$lt_simple_compile_test_code" 19680 19681# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19682 19683# If no C compiler was specified, use CC. 19684LTCC=${LTCC-"$CC"} 19685 19686# If no C compiler flags were specified, use CFLAGS. 19687LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19688 19689# Allow CC to be a program name with arguments. 19690compiler=$CC 19691 19692 19693# save warnings/boilerplate of simple test code 19694ac_outfile=conftest.$ac_objext 19695printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19696eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19697_lt_compiler_boilerplate=`cat conftest.err` 19698$rm conftest* 19699 19700ac_outfile=conftest.$ac_objext 19701printf "$lt_simple_link_test_code" >conftest.$ac_ext 19702eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19703_lt_linker_boilerplate=`cat conftest.err` 19704$rm conftest* 19705 19706 19707# Allow CC to be a program name with arguments. 19708lt_save_CC="$CC" 19709CC=${RC-"windres"} 19710compiler=$CC 19711compiler_RC=$CC 19712for cc_temp in $compiler""; do 19713 case $cc_temp in 19714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19716 \-*) ;; 19717 *) break;; 19718 esac 19719done 19720cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19721 19722lt_cv_prog_compiler_c_o_RC=yes 19723 19724# The else clause should only fire when bootstrapping the 19725# libtool distribution, otherwise you forgot to ship ltmain.sh 19726# with your package, and you will get complaints that there are 19727# no rules to generate ltmain.sh. 19728if test -f "$ltmain"; then 19729 # See if we are running on zsh, and set the options which allow our commands through 19730 # without removal of \ escapes. 19731 if test -n "${ZSH_VERSION+set}" ; then 19732 setopt NO_GLOB_SUBST 19733 fi 19734 # Now quote all the things that may contain metacharacters while being 19735 # careful not to overquote the AC_SUBSTed values. We take copies of the 19736 # variables and quote the copies for generation of the libtool script. 19737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19738 SED SHELL STRIP \ 19739 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19740 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19741 deplibs_check_method reload_flag reload_cmds need_locks \ 19742 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19743 lt_cv_sys_global_symbol_to_c_name_address \ 19744 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19745 old_postinstall_cmds old_postuninstall_cmds \ 19746 compiler_RC \ 19747 CC_RC \ 19748 LD_RC \ 19749 lt_prog_compiler_wl_RC \ 19750 lt_prog_compiler_pic_RC \ 19751 lt_prog_compiler_static_RC \ 19752 lt_prog_compiler_no_builtin_flag_RC \ 19753 export_dynamic_flag_spec_RC \ 19754 thread_safe_flag_spec_RC \ 19755 whole_archive_flag_spec_RC \ 19756 enable_shared_with_static_runtimes_RC \ 19757 old_archive_cmds_RC \ 19758 old_archive_from_new_cmds_RC \ 19759 predep_objects_RC \ 19760 postdep_objects_RC \ 19761 predeps_RC \ 19762 postdeps_RC \ 19763 compiler_lib_search_path_RC \ 19764 archive_cmds_RC \ 19765 archive_expsym_cmds_RC \ 19766 postinstall_cmds_RC \ 19767 postuninstall_cmds_RC \ 19768 old_archive_from_expsyms_cmds_RC \ 19769 allow_undefined_flag_RC \ 19770 no_undefined_flag_RC \ 19771 export_symbols_cmds_RC \ 19772 hardcode_libdir_flag_spec_RC \ 19773 hardcode_libdir_flag_spec_ld_RC \ 19774 hardcode_libdir_separator_RC \ 19775 hardcode_automatic_RC \ 19776 module_cmds_RC \ 19777 module_expsym_cmds_RC \ 19778 lt_cv_prog_compiler_c_o_RC \ 19779 exclude_expsyms_RC \ 19780 include_expsyms_RC; do 19781 19782 case $var in 19783 old_archive_cmds_RC | \ 19784 old_archive_from_new_cmds_RC | \ 19785 archive_cmds_RC | \ 19786 archive_expsym_cmds_RC | \ 19787 module_cmds_RC | \ 19788 module_expsym_cmds_RC | \ 19789 old_archive_from_expsyms_cmds_RC | \ 19790 export_symbols_cmds_RC | \ 19791 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19792 postinstall_cmds | postuninstall_cmds | \ 19793 old_postinstall_cmds | old_postuninstall_cmds | \ 19794 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19795 # Double-quote double-evaled strings. 19796 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19797 ;; 19798 *) 19799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19800 ;; 19801 esac 19802 done 19803 19804 case $lt_echo in 19805 *'\$0 --fallback-echo"') 19806 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19807 ;; 19808 esac 19809 19810cfgfile="$ofile" 19811 19812 cat <<__EOF__ >> "$cfgfile" 19813# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19814 19815# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19816 19817# Shell to use when invoking shell scripts. 19818SHELL=$lt_SHELL 19819 19820# Whether or not to build shared libraries. 19821build_libtool_libs=$enable_shared 19822 19823# Whether or not to build static libraries. 19824build_old_libs=$enable_static 19825 19826# Whether or not to add -lc for building shared libraries. 19827build_libtool_need_lc=$archive_cmds_need_lc_RC 19828 19829# Whether or not to disallow shared libs when runtime libs are static 19830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19831 19832# Whether or not to optimize for fast installation. 19833fast_install=$enable_fast_install 19834 19835# The host system. 19836host_alias=$host_alias 19837host=$host 19838host_os=$host_os 19839 19840# The build system. 19841build_alias=$build_alias 19842build=$build 19843build_os=$build_os 19844 19845# An echo program that does not interpret backslashes. 19846echo=$lt_echo 19847 19848# The archiver. 19849AR=$lt_AR 19850AR_FLAGS=$lt_AR_FLAGS 19851 19852# A C compiler. 19853LTCC=$lt_LTCC 19854 19855# LTCC compiler flags. 19856LTCFLAGS=$lt_LTCFLAGS 19857 19858# A language-specific compiler. 19859CC=$lt_compiler_RC 19860 19861# Is the compiler the GNU C compiler? 19862with_gcc=$GCC_RC 19863 19864# An ERE matcher. 19865EGREP=$lt_EGREP 19866 19867# The linker used to build libraries. 19868LD=$lt_LD_RC 19869 19870# Whether we need hard or soft links. 19871LN_S=$lt_LN_S 19872 19873# A BSD-compatible nm program. 19874NM=$lt_NM 19875 19876# A symbol stripping program 19877STRIP=$lt_STRIP 19878 19879# Used to examine libraries when file_magic_cmd begins "file" 19880MAGIC_CMD=$MAGIC_CMD 19881 19882# Used on cygwin: DLL creation program. 19883DLLTOOL="$DLLTOOL" 19884 19885# Used on cygwin: object dumper. 19886OBJDUMP="$OBJDUMP" 19887 19888# Used on cygwin: assembler. 19889AS="$AS" 19890 19891# The name of the directory that contains temporary libtool files. 19892objdir=$objdir 19893 19894# How to create reloadable object files. 19895reload_flag=$lt_reload_flag 19896reload_cmds=$lt_reload_cmds 19897 19898# How to pass a linker flag through the compiler. 19899wl=$lt_lt_prog_compiler_wl_RC 19900 19901# Object file suffix (normally "o"). 19902objext="$ac_objext" 19903 19904# Old archive suffix (normally "a"). 19905libext="$libext" 19906 19907# Shared library suffix (normally ".so"). 19908shrext_cmds='$shrext_cmds' 19909 19910# Executable file suffix (normally ""). 19911exeext="$exeext" 19912 19913# Additional compiler flags for building library objects. 19914pic_flag=$lt_lt_prog_compiler_pic_RC 19915pic_mode=$pic_mode 19916 19917# What is the maximum length of a command? 19918max_cmd_len=$lt_cv_sys_max_cmd_len 19919 19920# Does compiler simultaneously support -c and -o options? 19921compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19922 19923# Must we lock files when doing compilation? 19924need_locks=$lt_need_locks 19925 19926# Do we need the lib prefix for modules? 19927need_lib_prefix=$need_lib_prefix 19928 19929# Do we need a version for libraries? 19930need_version=$need_version 19931 19932# Whether dlopen is supported. 19933dlopen_support=$enable_dlopen 19934 19935# Whether dlopen of programs is supported. 19936dlopen_self=$enable_dlopen_self 19937 19938# Whether dlopen of statically linked programs is supported. 19939dlopen_self_static=$enable_dlopen_self_static 19940 19941# Compiler flag to prevent dynamic linking. 19942link_static_flag=$lt_lt_prog_compiler_static_RC 19943 19944# Compiler flag to turn off builtin functions. 19945no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19946 19947# Compiler flag to allow reflexive dlopens. 19948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19949 19950# Compiler flag to generate shared objects directly from archives. 19951whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19952 19953# Compiler flag to generate thread-safe objects. 19954thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19955 19956# Library versioning type. 19957version_type=$version_type 19958 19959# Format of library name prefix. 19960libname_spec=$lt_libname_spec 19961 19962# List of archive names. First name is the real one, the rest are links. 19963# The last name is the one that the linker finds with -lNAME. 19964library_names_spec=$lt_library_names_spec 19965 19966# The coded name of the library, if different from the real name. 19967soname_spec=$lt_soname_spec 19968 19969# Commands used to build and install an old-style archive. 19970RANLIB=$lt_RANLIB 19971old_archive_cmds=$lt_old_archive_cmds_RC 19972old_postinstall_cmds=$lt_old_postinstall_cmds 19973old_postuninstall_cmds=$lt_old_postuninstall_cmds 19974 19975# Create an old-style archive from a shared archive. 19976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19977 19978# Create a temporary old-style archive to link instead of a shared archive. 19979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19980 19981# Commands used to build and install a shared archive. 19982archive_cmds=$lt_archive_cmds_RC 19983archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19984postinstall_cmds=$lt_postinstall_cmds 19985postuninstall_cmds=$lt_postuninstall_cmds 19986 19987# Commands used to build a loadable module (assumed same as above if empty) 19988module_cmds=$lt_module_cmds_RC 19989module_expsym_cmds=$lt_module_expsym_cmds_RC 19990 19991# Commands to strip libraries. 19992old_striplib=$lt_old_striplib 19993striplib=$lt_striplib 19994 19995# Dependencies to place before the objects being linked to create a 19996# shared library. 19997predep_objects=$lt_predep_objects_RC 19998 19999# Dependencies to place after the objects being linked to create a 20000# shared library. 20001postdep_objects=$lt_postdep_objects_RC 20002 20003# Dependencies to place before the objects being linked to create a 20004# shared library. 20005predeps=$lt_predeps_RC 20006 20007# Dependencies to place after the objects being linked to create a 20008# shared library. 20009postdeps=$lt_postdeps_RC 20010 20011# The library search path used internally by the compiler when linking 20012# a shared library. 20013compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20014 20015# Method to check whether dependent libraries are shared objects. 20016deplibs_check_method=$lt_deplibs_check_method 20017 20018# Command to use when deplibs_check_method == file_magic. 20019file_magic_cmd=$lt_file_magic_cmd 20020 20021# Flag that allows shared libraries with undefined symbols to be built. 20022allow_undefined_flag=$lt_allow_undefined_flag_RC 20023 20024# Flag that forces no undefined symbols. 20025no_undefined_flag=$lt_no_undefined_flag_RC 20026 20027# Commands used to finish a libtool library installation in a directory. 20028finish_cmds=$lt_finish_cmds 20029 20030# Same as above, but a single script fragment to be evaled but not shown. 20031finish_eval=$lt_finish_eval 20032 20033# Take the output of nm and produce a listing of raw symbols and C names. 20034global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20035 20036# Transform the output of nm in a proper C declaration 20037global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20038 20039# Transform the output of nm in a C name address pair 20040global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20041 20042# This is the shared library runtime path variable. 20043runpath_var=$runpath_var 20044 20045# This is the shared library path variable. 20046shlibpath_var=$shlibpath_var 20047 20048# Is shlibpath searched before the hard-coded library search path? 20049shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20050 20051# How to hardcode a shared library path into an executable. 20052hardcode_action=$hardcode_action_RC 20053 20054# Whether we should hardcode library paths into libraries. 20055hardcode_into_libs=$hardcode_into_libs 20056 20057# Flag to hardcode \$libdir into a binary during linking. 20058# This must work even if \$libdir does not exist. 20059hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20060 20061# If ld is used when linking, flag to hardcode \$libdir into 20062# a binary during linking. This must work even if \$libdir does 20063# not exist. 20064hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20065 20066# Whether we need a single -rpath flag with a separated argument. 20067hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20068 20069# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20070# resulting binary. 20071hardcode_direct=$hardcode_direct_RC 20072 20073# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20074# resulting binary. 20075hardcode_minus_L=$hardcode_minus_L_RC 20076 20077# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20078# the resulting binary. 20079hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20080 20081# Set to yes if building a shared library automatically hardcodes DIR into the library 20082# and all subsequent libraries and executables linked against it. 20083hardcode_automatic=$hardcode_automatic_RC 20084 20085# Variables whose values should be saved in libtool wrapper scripts and 20086# restored at relink time. 20087variables_saved_for_relink="$variables_saved_for_relink" 20088 20089# Whether libtool must link a program against all its dependency libraries. 20090link_all_deplibs=$link_all_deplibs_RC 20091 20092# Compile-time system search path for libraries 20093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20094 20095# Run-time system search path for libraries 20096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20097 20098# Fix the shell variable \$srcfile for the compiler. 20099fix_srcfile_path="$fix_srcfile_path_RC" 20100 20101# Set to yes if exported symbols are required. 20102always_export_symbols=$always_export_symbols_RC 20103 20104# The commands to list exported symbols. 20105export_symbols_cmds=$lt_export_symbols_cmds_RC 20106 20107# The commands to extract the exported symbol list from a shared archive. 20108extract_expsyms_cmds=$lt_extract_expsyms_cmds 20109 20110# Symbols that should not be listed in the preloaded symbols. 20111exclude_expsyms=$lt_exclude_expsyms_RC 20112 20113# Symbols that must always be exported. 20114include_expsyms=$lt_include_expsyms_RC 20115 20116# ### END LIBTOOL TAG CONFIG: $tagname 20117 20118__EOF__ 20119 20120 20121else 20122 # If there is no Makefile yet, we rely on a make rule to execute 20123 # `config.status --recheck' to rerun these tests and create the 20124 # libtool script then. 20125 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20126 if test -f "$ltmain_in"; then 20127 test -f Makefile && make "$ltmain" 20128 fi 20129fi 20130 20131 20132ac_ext=c 20133ac_cpp='$CPP $CPPFLAGS' 20134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20136ac_compiler_gnu=$ac_cv_c_compiler_gnu 20137 20138CC="$lt_save_CC" 20139 20140 ;; 20141 20142 *) 20143 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20144echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20145 { (exit 1); exit 1; }; } 20146 ;; 20147 esac 20148 20149 # Append the new tag name to the list of available tags. 20150 if test -n "$tagname" ; then 20151 available_tags="$available_tags $tagname" 20152 fi 20153 fi 20154 done 20155 IFS="$lt_save_ifs" 20156 20157 # Now substitute the updated list of available tags. 20158 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20159 mv "${ofile}T" "$ofile" 20160 chmod +x "$ofile" 20161 else 20162 rm -f "${ofile}T" 20163 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20164echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20165 { (exit 1); exit 1; }; } 20166 fi 20167fi 20168 20169 20170 20171# This can be used to rebuild libtool when needed 20172LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20173 20174# Always use our own libtool. 20175LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20176 20177# Prevent multiple expansion 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 if test "$enable_shared" = "yes"; then 20200 ENABLE_SHARED_TRUE= 20201 ENABLE_SHARED_FALSE='#' 20202else 20203 ENABLE_SHARED_TRUE='#' 20204 ENABLE_SHARED_FALSE= 20205fi 20206 20207 20208{ echo "$as_me:$LINENO: checking for ld --version-script" >&5 20209echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; } 20210if test "${rk_cv_version_script+set}" = set; then 20211 echo $ECHO_N "(cached) $ECHO_C" >&6 20212else 20213 20214 rk_cv_version_script=no 20215 20216 cat > conftest.map <<EOF 20217HEIM_GSS_V1 { 20218 global: gss*; 20219}; 20220HEIM_GSS_V1_1 { 20221 global: gss_init_creds; 20222} HEIM_GSS_V1; 20223EOF 20224cat > conftest.c <<EOF 20225int gss_init_creds(int foo) { return 0; } 20226EOF 20227 20228 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared 20229 -o conftest.so conftest.c 20230 -Wl,--version-script,conftest.map' 20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20232 (eval $ac_try) 2>&5 20233 ac_status=$? 20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20235 (exit $ac_status); }; }; 20236 then 20237 rk_cv_version_script=yes 20238 fi 20239rm -f conftest* 20240 20241fi 20242{ echo "$as_me:$LINENO: result: $rk_cv_version_script" >&5 20243echo "${ECHO_T}$rk_cv_version_script" >&6; } 20244 20245if test $rk_cv_version_script = yes ; then 20246 doversioning=yes 20247 LDFLAGS_VERSION_SCRIPT="-Wl,--version-script," 20248else 20249 doversioning=no 20250 LDFLAGS_VERSION_SCRIPT= 20251fi 20252 20253 20254 if test $doversioning = yes; then 20255 versionscript_TRUE= 20256 versionscript_FALSE='#' 20257else 20258 versionscript_TRUE='#' 20259 versionscript_FALSE= 20260fi 20261 20262 20263 20264 20265 20266 20267 20268# Check whether --with-openldap was given. 20269if test "${with_openldap+set}" = set; then 20270 withval=$with_openldap; 20271fi 20272 20273 20274# Check whether --with-openldap-lib was given. 20275if test "${with_openldap_lib+set}" = set; then 20276 withval=$with_openldap_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 20277 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5 20278echo "$as_me: error: No argument for --with-openldap-lib" >&2;} 20279 { (exit 1); exit 1; }; } 20280elif test "X$with_openldap" = "X"; then 20281 with_openldap=yes 20282fi 20283fi 20284 20285 20286# Check whether --with-openldap-include was given. 20287if test "${with_openldap_include+set}" = set; then 20288 withval=$with_openldap_include; if test "$withval" = "yes" -o "$withval" = "no"; then 20289 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5 20290echo "$as_me: error: No argument for --with-openldap-include" >&2;} 20291 { (exit 1); exit 1; }; } 20292elif test "X$with_openldap" = "X"; then 20293 with_openldap=yes 20294fi 20295fi 20296 20297 20298# Check whether --with-openldap-config was given. 20299if test "${with_openldap_config+set}" = set; then 20300 withval=$with_openldap_config; 20301fi 20302 20303 20304 20305 20306{ echo "$as_me:$LINENO: checking for openldap" >&5 20307echo $ECHO_N "checking for openldap... $ECHO_C" >&6; } 20308 20309case "$with_openldap" in 20310yes|"") d='' ;; 20311no) d= ;; 20312*) d="$with_openldap" ;; 20313esac 20314 20315header_dirs= 20316lib_dirs= 20317for i in $d; do 20318 if test "$with_openldap_include" = ""; then 20319 if test -d "$i/include/openldap"; then 20320 header_dirs="$header_dirs $i/include/openldap" 20321 fi 20322 if test -d "$i/include"; then 20323 header_dirs="$header_dirs $i/include" 20324 fi 20325 fi 20326 if test "$with_openldap_lib" = ""; then 20327 if test -d "$i/lib$abilibdirext"; then 20328 lib_dirs="$lib_dirs $i/lib$abilibdirext" 20329 fi 20330 fi 20331done 20332 20333if test "$with_openldap_include"; then 20334 header_dirs="$with_openldap_include $header_dirs" 20335fi 20336if test "$with_openldap_lib"; then 20337 lib_dirs="$with_openldap_lib $lib_dirs" 20338fi 20339 20340if test "$with_openldap_config" = ""; then 20341 with_openldap_config='' 20342fi 20343 20344openldap_cflags= 20345openldap_libs= 20346 20347case "$with_openldap_config" in 20348yes|no|""|"") 20349 if test -f $with_openldap/bin/ ; then 20350 with_openldap_config=$with_openldap/bin/ 20351 fi 20352 ;; 20353esac 20354 20355case "$with_openldap_config" in 20356yes|no|"") 20357 ;; 20358*) 20359 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 20360 openldap_libs="`$with_openldap_config --libs 2>&1`" 20361 ;; 20362esac 20363 20364found=no 20365if test "$with_openldap" != no; then 20366 save_CFLAGS="$CFLAGS" 20367 save_LIBS="$LIBS" 20368 if test "$openldap_cflags" -a "$openldap_libs"; then 20369 CFLAGS="$openldap_cflags $save_CFLAGS" 20370 LIBS="$openldap_libs $save_LIBS" 20371 cat >conftest.$ac_ext <<_ACEOF 20372/* confdefs.h. */ 20373_ACEOF 20374cat confdefs.h >>conftest.$ac_ext 20375cat >>conftest.$ac_ext <<_ACEOF 20376/* end confdefs.h. */ 20377#include <lber.h> 20378#include <ldap.h> 20379int 20380main () 20381{ 20382 20383 ; 20384 return 0; 20385} 20386_ACEOF 20387rm -f conftest.$ac_objext conftest$ac_exeext 20388if { (ac_try="$ac_link" 20389case "(($ac_try" in 20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20391 *) ac_try_echo=$ac_try;; 20392esac 20393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20394 (eval "$ac_link") 2>conftest.er1 20395 ac_status=$? 20396 grep -v '^ *+' conftest.er1 >conftest.err 20397 rm -f conftest.er1 20398 cat conftest.err >&5 20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20400 (exit $ac_status); } && { 20401 test -z "$ac_c_werror_flag" || 20402 test ! -s conftest.err 20403 } && test -s conftest$ac_exeext && 20404 $as_test_x conftest$ac_exeext; then 20405 20406 INCLUDE_openldap="$openldap_cflags" 20407 LIB_openldap="$openldap_libs" 20408 { echo "$as_me:$LINENO: result: from $with_openldap_config" >&5 20409echo "${ECHO_T}from $with_openldap_config" >&6; } 20410 found=yes 20411else 20412 echo "$as_me: failed program was:" >&5 20413sed 's/^/| /' conftest.$ac_ext >&5 20414 20415 20416fi 20417 20418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20419 conftest$ac_exeext conftest.$ac_ext 20420 fi 20421 if test "$found" = no; then 20422 ires= lres= 20423 for i in $header_dirs; do 20424 CFLAGS="-I$i $save_CFLAGS" 20425 cat >conftest.$ac_ext <<_ACEOF 20426/* confdefs.h. */ 20427_ACEOF 20428cat confdefs.h >>conftest.$ac_ext 20429cat >>conftest.$ac_ext <<_ACEOF 20430/* end confdefs.h. */ 20431#include <lber.h> 20432#include <ldap.h> 20433int 20434main () 20435{ 20436 20437 ; 20438 return 0; 20439} 20440_ACEOF 20441rm -f conftest.$ac_objext 20442if { (ac_try="$ac_compile" 20443case "(($ac_try" in 20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20445 *) ac_try_echo=$ac_try;; 20446esac 20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20448 (eval "$ac_compile") 2>conftest.er1 20449 ac_status=$? 20450 grep -v '^ *+' conftest.er1 >conftest.err 20451 rm -f conftest.er1 20452 cat conftest.err >&5 20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20454 (exit $ac_status); } && { 20455 test -z "$ac_c_werror_flag" || 20456 test ! -s conftest.err 20457 } && test -s conftest.$ac_objext; then 20458 ires=$i;break 20459else 20460 echo "$as_me: failed program was:" >&5 20461sed 's/^/| /' conftest.$ac_ext >&5 20462 20463 20464fi 20465 20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20467 done 20468 for i in $lib_dirs; do 20469 LIBS="-L$i -lldap -llber $save_LIBS" 20470 cat >conftest.$ac_ext <<_ACEOF 20471/* confdefs.h. */ 20472_ACEOF 20473cat confdefs.h >>conftest.$ac_ext 20474cat >>conftest.$ac_ext <<_ACEOF 20475/* end confdefs.h. */ 20476#include <lber.h> 20477#include <ldap.h> 20478int 20479main () 20480{ 20481 20482 ; 20483 return 0; 20484} 20485_ACEOF 20486rm -f conftest.$ac_objext conftest$ac_exeext 20487if { (ac_try="$ac_link" 20488case "(($ac_try" in 20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20490 *) ac_try_echo=$ac_try;; 20491esac 20492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20493 (eval "$ac_link") 2>conftest.er1 20494 ac_status=$? 20495 grep -v '^ *+' conftest.er1 >conftest.err 20496 rm -f conftest.er1 20497 cat conftest.err >&5 20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20499 (exit $ac_status); } && { 20500 test -z "$ac_c_werror_flag" || 20501 test ! -s conftest.err 20502 } && test -s conftest$ac_exeext && 20503 $as_test_x conftest$ac_exeext; then 20504 lres=$i;break 20505else 20506 echo "$as_me: failed program was:" >&5 20507sed 's/^/| /' conftest.$ac_ext >&5 20508 20509 20510fi 20511 20512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20513 conftest$ac_exeext conftest.$ac_ext 20514 done 20515 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 20516 INCLUDE_openldap="-I$ires" 20517 LIB_openldap="-L$lres -lldap -llber " 20518 found=yes 20519 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 20520echo "${ECHO_T}headers $ires, libraries $lres" >&6; } 20521 fi 20522 fi 20523 CFLAGS="$save_CFLAGS" 20524 LIBS="$save_LIBS" 20525fi 20526 20527if test "$found" = yes; then 20528 20529cat >>confdefs.h <<_ACEOF 20530#define OPENLDAP 1 20531_ACEOF 20532 20533 with_openldap=yes 20534else 20535 with_openldap=no 20536 INCLUDE_openldap= 20537 LIB_openldap= 20538 { echo "$as_me:$LINENO: result: no" >&5 20539echo "${ECHO_T}no" >&6; } 20540fi 20541 20542 20543 20544 20545 20546# Check whether --enable-hdb-openldap-module was given. 20547if test "${enable_hdb_openldap_module+set}" = set; then 20548 enableval=$enable_hdb_openldap_module; 20549fi 20550 20551if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 20552 20553cat >>confdefs.h <<\_ACEOF 20554#define OPENLDAP_MODULE 1 20555_ACEOF 20556 20557fi 20558 if test "$enable_hdb_openldap_module" = yes -a "$with_openldap" = yes; then 20559 OPENLDAP_MODULE_TRUE= 20560 OPENLDAP_MODULE_FALSE='#' 20561else 20562 OPENLDAP_MODULE_TRUE='#' 20563 OPENLDAP_MODULE_FALSE= 20564fi 20565 20566 20567# Check whether --enable-pk-init was given. 20568if test "${enable_pk_init+set}" = set; then 20569 enableval=$enable_pk_init; 20570fi 20571 20572if test "$enable_pk_init" != no ;then 20573 20574cat >>confdefs.h <<\_ACEOF 20575#define PKINIT 1 20576_ACEOF 20577 20578fi 20579 if test "$enable_pk_init" != no; then 20580 PKINIT_TRUE= 20581 PKINIT_FALSE='#' 20582else 20583 PKINIT_TRUE='#' 20584 PKINIT_FALSE= 20585fi 20586 20587 20588 20589 20590# Check whether --with-hdbdir was given. 20591if test "${with_hdbdir+set}" = set; then 20592 withval=$with_hdbdir; 20593else 20594 with_hdbdir=/var/heimdal 20595fi 20596 20597DIR_hdbdir="$with_hdbdir" 20598 20599 20600 20601with_krb4=no 20602 20603 20604 if false; then 20605 KRB4_TRUE= 20606 KRB4_FALSE='#' 20607else 20608 KRB4_TRUE='#' 20609 KRB4_FALSE= 20610fi 20611 20612 20613 if true; then 20614 KRB5_TRUE= 20615 KRB5_FALSE='#' 20616else 20617 KRB5_TRUE='#' 20618 KRB5_FALSE= 20619fi 20620 20621 if true; then 20622 do_roken_rename_TRUE= 20623 do_roken_rename_FALSE='#' 20624else 20625 do_roken_rename_TRUE='#' 20626 do_roken_rename_FALSE= 20627fi 20628 20629 20630 20631cat >>confdefs.h <<\_ACEOF 20632#define KRB5 1 20633_ACEOF 20634 20635 20636crypto_lib=unknown 20637 20638 20639# Check whether --with-openssl was given. 20640if test "${with_openssl+set}" = set; then 20641 withval=$with_openssl; 20642fi 20643 20644 20645 20646# Check whether --with-openssl-lib was given. 20647if test "${with_openssl_lib+set}" = set; then 20648 withval=$with_openssl_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 20649 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5 20650echo "$as_me: error: No argument for --with-openssl-lib" >&2;} 20651 { (exit 1); exit 1; }; } 20652elif test "X$with_openssl" = "X"; then 20653 with_openssl=yes 20654fi 20655fi 20656 20657 20658 20659# Check whether --with-openssl-include was given. 20660if test "${with_openssl_include+set}" = set; then 20661 withval=$with_openssl_include; if test "$withval" = "yes" -o "$withval" = "no"; then 20662 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5 20663echo "$as_me: error: No argument for --with-openssl-include" >&2;} 20664 { (exit 1); exit 1; }; } 20665elif test "X$with_openssl" = "X"; then 20666 with_openssl=yes 20667fi 20668fi 20669 20670 20671case "$with_openssl" in 20672yes) ;; 20673no) ;; 20674"") ;; 20675*) if test "$with_openssl_include" = ""; then 20676 with_openssl_include="$with_openssl/include" 20677 fi 20678 if test "$with_openssl_lib" = ""; then 20679 with_openssl_lib="$with_openssl/lib$abilibdirext" 20680 fi 20681 ;; 20682esac 20683 20684 20685DIR_hcrypto= 20686 20687{ echo "$as_me:$LINENO: checking for crypto library" >&5 20688echo $ECHO_N "checking for crypto library... $ECHO_C" >&6; } 20689 20690openssl=no 20691 20692if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then 20693 save_CPPFLAGS="$CPPFLAGS" 20694 save_LIBS="$LIBS" 20695 20696 cdirs= clibs= 20697 for i in $LIB_krb4; do 20698 case "$i" in 20699 -L*) cdirs="$cdirs $i";; 20700 -l*) clibs="$clibs $i";; 20701 esac 20702 done 20703 20704 ires= 20705 for i in $INCLUDE_krb4; do 20706 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS" 20707 for j in $cdirs; do 20708 for k in $clibs; do 20709 LIBS="$j $k $save_LIBS" 20710 cat >conftest.$ac_ext <<_ACEOF 20711/* confdefs.h. */ 20712_ACEOF 20713cat confdefs.h >>conftest.$ac_ext 20714cat >>conftest.$ac_ext <<_ACEOF 20715/* end confdefs.h. */ 20716 20717 #undef KRB5 /* makes md4.h et al unhappy */ 20718 #ifdef HAVE_OPENSSL 20719 #ifdef HAVE_SYS_TYPES_H 20720 #include <sys/types.h> 20721 #endif 20722 #include <openssl/evp.h> 20723 #include <openssl/md4.h> 20724 #include <openssl/md5.h> 20725 #include <openssl/sha.h> 20726 #include <openssl/des.h> 20727 #include <openssl/rc4.h> 20728 #include <openssl/aes.h> 20729 #include <openssl/engine.h> 20730 #include <openssl/ui.h> 20731 #include <openssl/rand.h> 20732 #include <openssl/hmac.h> 20733 #include <openssl/pkcs12.h> 20734 #else 20735 #include <hcrypto/evp.h> 20736 #include <hcrypto/md4.h> 20737 #include <hcrypto/md5.h> 20738 #include <hcrypto/sha.h> 20739 #include <hcrypto/des.h> 20740 #include <hcrypto/rc4.h> 20741 #include <hcrypto/aes.h> 20742 #include <hcrypto/engine.h> 20743 #include <hcrypto/hmac.h> 20744 #include <hcrypto/pkcs12.h> 20745 #endif 20746 20747int 20748main () 20749{ 20750 20751 void *schedule = 0; 20752 MD4_CTX md4; 20753 MD5_CTX md5; 20754 SHA_CTX sha1; 20755 SHA256_CTX sha256; 20756 20757 MD4_Init(&md4); 20758 MD5_Init(&md5); 20759 SHA1_Init(&sha1); 20760 SHA256_Init(&sha256); 20761 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 20762 #ifdef HAVE_OPENSSL 20763 RAND_status(); 20764 UI_UTIL_read_pw_string(0,0,0,0); 20765 #endif 20766 20767 OpenSSL_add_all_algorithms(); 20768 AES_encrypt(0,0,0); 20769 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 20770 RC4(0, 0, 0, 0); 20771 ; 20772 return 0; 20773} 20774_ACEOF 20775rm -f conftest.$ac_objext conftest$ac_exeext 20776if { (ac_try="$ac_link" 20777case "(($ac_try" in 20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20779 *) ac_try_echo=$ac_try;; 20780esac 20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20782 (eval "$ac_link") 2>conftest.er1 20783 ac_status=$? 20784 grep -v '^ *+' conftest.er1 >conftest.err 20785 rm -f conftest.er1 20786 cat conftest.err >&5 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); } && { 20789 test -z "$ac_c_werror_flag" || 20790 test ! -s conftest.err 20791 } && test -s conftest$ac_exeext && 20792 $as_test_x conftest$ac_exeext; then 20793 openssl=yes ires="$i" lres="$j $k"; break 3 20794else 20795 echo "$as_me: failed program was:" >&5 20796sed 's/^/| /' conftest.$ac_ext >&5 20797 20798 20799fi 20800 20801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20802 conftest$ac_exeext conftest.$ac_ext 20803 done 20804 done 20805 CFLAGS="$i $save_CFLAGS" 20806 for j in $cdirs; do 20807 for k in $clibs; do 20808 LIBS="$j $k $save_LIBS" 20809 cat >conftest.$ac_ext <<_ACEOF 20810/* confdefs.h. */ 20811_ACEOF 20812cat confdefs.h >>conftest.$ac_ext 20813cat >>conftest.$ac_ext <<_ACEOF 20814/* end confdefs.h. */ 20815 20816 #undef KRB5 /* makes md4.h et al unhappy */ 20817 #ifdef HAVE_OPENSSL 20818 #ifdef HAVE_SYS_TYPES_H 20819 #include <sys/types.h> 20820 #endif 20821 #include <openssl/evp.h> 20822 #include <openssl/md4.h> 20823 #include <openssl/md5.h> 20824 #include <openssl/sha.h> 20825 #include <openssl/des.h> 20826 #include <openssl/rc4.h> 20827 #include <openssl/aes.h> 20828 #include <openssl/engine.h> 20829 #include <openssl/ui.h> 20830 #include <openssl/rand.h> 20831 #include <openssl/hmac.h> 20832 #include <openssl/pkcs12.h> 20833 #else 20834 #include <hcrypto/evp.h> 20835 #include <hcrypto/md4.h> 20836 #include <hcrypto/md5.h> 20837 #include <hcrypto/sha.h> 20838 #include <hcrypto/des.h> 20839 #include <hcrypto/rc4.h> 20840 #include <hcrypto/aes.h> 20841 #include <hcrypto/engine.h> 20842 #include <hcrypto/hmac.h> 20843 #include <hcrypto/pkcs12.h> 20844 #endif 20845 20846int 20847main () 20848{ 20849 20850 void *schedule = 0; 20851 MD4_CTX md4; 20852 MD5_CTX md5; 20853 SHA_CTX sha1; 20854 SHA256_CTX sha256; 20855 20856 MD4_Init(&md4); 20857 MD5_Init(&md5); 20858 SHA1_Init(&sha1); 20859 SHA256_Init(&sha256); 20860 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 20861 #ifdef HAVE_OPENSSL 20862 RAND_status(); 20863 UI_UTIL_read_pw_string(0,0,0,0); 20864 #endif 20865 20866 OpenSSL_add_all_algorithms(); 20867 AES_encrypt(0,0,0); 20868 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 20869 RC4(0, 0, 0, 0); 20870 ; 20871 return 0; 20872} 20873_ACEOF 20874rm -f conftest.$ac_objext conftest$ac_exeext 20875if { (ac_try="$ac_link" 20876case "(($ac_try" in 20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20878 *) ac_try_echo=$ac_try;; 20879esac 20880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20881 (eval "$ac_link") 2>conftest.er1 20882 ac_status=$? 20883 grep -v '^ *+' conftest.er1 >conftest.err 20884 rm -f conftest.er1 20885 cat conftest.err >&5 20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20887 (exit $ac_status); } && { 20888 test -z "$ac_c_werror_flag" || 20889 test ! -s conftest.err 20890 } && test -s conftest$ac_exeext && 20891 $as_test_x conftest$ac_exeext; then 20892 openssl=no ires="$i" lres="$j $k"; break 3 20893else 20894 echo "$as_me: failed program was:" >&5 20895sed 's/^/| /' conftest.$ac_ext >&5 20896 20897 20898fi 20899 20900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20901 conftest$ac_exeext conftest.$ac_ext 20902 done 20903 done 20904 done 20905 20906 CFLAGS="$save_CFLAGS" 20907 LIBS="$save_LIBS" 20908 if test "$ires" -a "$lres"; then 20909 INCLUDE_hcrypto="$ires" 20910 LIB_hcrypto="$lres" 20911 crypto_lib=krb4 20912 { echo "$as_me:$LINENO: result: same as krb4" >&5 20913echo "${ECHO_T}same as krb4" >&6; } 20914 LIB_hcrypto_a='$(LIB_hcrypto)' 20915 LIB_hcrypto_so='$(LIB_hcrypto)' 20916 LIB_hcrypto_appl='$(LIB_hcrypto)' 20917 fi 20918fi 20919 20920if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then 20921 save_CFLAGS="$CFLAGS" 20922 save_LIBS="$LIBS" 20923 INCLUDE_hcrypto= 20924 LIB_hcrypto= 20925 if test "$with_openssl_include" != ""; then 20926 INCLUDE_hcrypto="-I${with_openssl_include}" 20927 fi 20928 if test "$with_openssl_lib" != ""; then 20929 LIB_hcrypto="-L${with_openssl_lib}" 20930 fi 20931 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_hcrypto} ${CFLAGS}" 20932 saved_LIB_hcrypto="$LIB_hcrypto" 20933 for lres in "" "-ldl" "-lnsl -lsocket" "-lnsl -lsocket -ldl"; do 20934 LIB_hcrypto="${saved_LIB_hcrypto} -lcrypto $lres" 20935 LIB_hcrypto_a="$LIB_hcrypto" 20936 LIB_hcrypto_so="$LIB_hcrypto" 20937 LIB_hcrypto_appl="$LIB_hcrypto" 20938 LIBS="${LIBS} ${LIB_hcrypto}" 20939 cat >conftest.$ac_ext <<_ACEOF 20940/* confdefs.h. */ 20941_ACEOF 20942cat confdefs.h >>conftest.$ac_ext 20943cat >>conftest.$ac_ext <<_ACEOF 20944/* end confdefs.h. */ 20945 20946 #undef KRB5 /* makes md4.h et al unhappy */ 20947 #ifdef HAVE_OPENSSL 20948 #ifdef HAVE_SYS_TYPES_H 20949 #include <sys/types.h> 20950 #endif 20951 #include <openssl/evp.h> 20952 #include <openssl/md4.h> 20953 #include <openssl/md5.h> 20954 #include <openssl/sha.h> 20955 #include <openssl/des.h> 20956 #include <openssl/rc4.h> 20957 #include <openssl/aes.h> 20958 #include <openssl/engine.h> 20959 #include <openssl/ui.h> 20960 #include <openssl/rand.h> 20961 #include <openssl/hmac.h> 20962 #include <openssl/pkcs12.h> 20963 #else 20964 #include <hcrypto/evp.h> 20965 #include <hcrypto/md4.h> 20966 #include <hcrypto/md5.h> 20967 #include <hcrypto/sha.h> 20968 #include <hcrypto/des.h> 20969 #include <hcrypto/rc4.h> 20970 #include <hcrypto/aes.h> 20971 #include <hcrypto/engine.h> 20972 #include <hcrypto/hmac.h> 20973 #include <hcrypto/pkcs12.h> 20974 #endif 20975 20976int 20977main () 20978{ 20979 20980 void *schedule = 0; 20981 MD4_CTX md4; 20982 MD5_CTX md5; 20983 SHA_CTX sha1; 20984 SHA256_CTX sha256; 20985 20986 MD4_Init(&md4); 20987 MD5_Init(&md5); 20988 SHA1_Init(&sha1); 20989 SHA256_Init(&sha256); 20990 EVP_CIPHER_iv_length(((EVP_CIPHER*)0)); 20991 #ifdef HAVE_OPENSSL 20992 RAND_status(); 20993 UI_UTIL_read_pw_string(0,0,0,0); 20994 #endif 20995 20996 OpenSSL_add_all_algorithms(); 20997 AES_encrypt(0,0,0); 20998 DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); 20999 RC4(0, 0, 0, 0); 21000 ; 21001 return 0; 21002} 21003_ACEOF 21004rm -f conftest.$ac_objext conftest$ac_exeext 21005if { (ac_try="$ac_link" 21006case "(($ac_try" in 21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21008 *) ac_try_echo=$ac_try;; 21009esac 21010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21011 (eval "$ac_link") 2>conftest.er1 21012 ac_status=$? 21013 grep -v '^ *+' conftest.er1 >conftest.err 21014 rm -f conftest.er1 21015 cat conftest.err >&5 21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21017 (exit $ac_status); } && { 21018 test -z "$ac_c_werror_flag" || 21019 test ! -s conftest.err 21020 } && test -s conftest$ac_exeext && 21021 $as_test_x conftest$ac_exeext; then 21022 21023 crypto_lib=libcrypto openssl=yes 21024 { echo "$as_me:$LINENO: result: libcrypto" >&5 21025echo "${ECHO_T}libcrypto" >&6; } 21026 21027else 21028 echo "$as_me: failed program was:" >&5 21029sed 's/^/| /' conftest.$ac_ext >&5 21030 21031 21032fi 21033 21034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21035 conftest$ac_exeext conftest.$ac_ext 21036 if test "$crypto_lib" = libcrypto ; then 21037 break; 21038 fi 21039 done 21040 CFLAGS="$save_CFLAGS" 21041 LIBS="$save_LIBS" 21042fi 21043 21044if test "$crypto_lib" = "unknown"; then 21045 21046 DIR_hcrypto='hcrypto' 21047 LIB_hcrypto='$(top_builddir)/lib/hcrypto/libhcrypto.la' 21048 LIB_hcrypto_a='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.a' 21049 LIB_hcrypto_so='$(top_builddir)/lib/hcrypto/.libs/libhcrypto.so' 21050 LIB_hcrypto_appl="-lhcrypto" 21051 21052 { echo "$as_me:$LINENO: result: included libhcrypto" >&5 21053echo "${ECHO_T}included libhcrypto" >&6; } 21054 21055fi 21056 21057if test "$with_krb4" != no -a "$crypto_lib" != krb4; then 21058 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features 21059required by Kerberos 5; to continue, you need to install a newer 21060Kerberos 4 or configure --without-krb4" >&5 21061echo "$as_me: error: the crypto library used by krb4 lacks features 21062required by Kerberos 5; to continue, you need to install a newer 21063Kerberos 4 or configure --without-krb4" >&2;} 21064 { (exit 1); exit 1; }; } 21065fi 21066 21067if test "$openssl" = "yes"; then 21068 21069cat >>confdefs.h <<\_ACEOF 21070#define HAVE_OPENSSL 1 21071_ACEOF 21072 21073fi 21074 if test "$openssl" = yes; then 21075 HAVE_OPENSSL_TRUE= 21076 HAVE_OPENSSL_FALSE='#' 21077else 21078 HAVE_OPENSSL_TRUE='#' 21079 HAVE_OPENSSL_FALSE= 21080fi 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091{ echo "$as_me:$LINENO: checking if compiling threadsafe libraries" >&5 21092echo $ECHO_N "checking if compiling threadsafe libraries... $ECHO_C" >&6; } 21093 21094# Check whether --enable-pthread-support was given. 21095if test "${enable_pthread_support+set}" = set; then 21096 enableval=$enable_pthread_support; 21097else 21098 enable_pthread_support=maybe 21099fi 21100 21101 21102case "$host" in 21103*-*-solaris2*) 21104 native_pthread_support=yes 21105 if test "$GCC" = yes; then 21106 PTHREADS_CFLAGS=-pthreads 21107 PTHREADS_LIBS=-pthreads 21108 else 21109 PTHREADS_CFLAGS=-mt 21110 PTHREADS_LIBS=-mt 21111 fi 21112 ;; 21113*-*-netbsd*) 21114 native_pthread_support="if running netbsd 1.6T or newer" 21115 PTHREADS_LIBS="" 21116 ;; 21117*-*-freebsd5*) 21118 native_pthread_support=yes 21119 ;; 21120*-*-linux* | *-*-linux-gnu) 21121 case `uname -r` in 21122 2.*) 21123 native_pthread_support=yes 21124 PTHREADS_CFLAGS=-pthread 21125 PTHREADS_LIBS=-pthread 21126 ;; 21127 esac 21128 ;; 21129*-*-aix*) 21130 native_pthread_support=no 21131 ;; 21132mips-sgi-irix6.[5-9]) # maybe works for earlier versions too 21133 native_pthread_support=yes 21134 PTHREADS_LIBS="-lpthread" 21135 ;; 21136*-*-darwin*) 21137 native_pthread_support=yes 21138 ;; 21139*) 21140 native_pthread_support=no 21141 ;; 21142esac 21143 21144if test "$enable_pthread_support" = maybe ; then 21145 enable_pthread_support="$native_pthread_support" 21146fi 21147 21148if test "$enable_pthread_support" != no; then 21149 21150cat >>confdefs.h <<\_ACEOF 21151#define ENABLE_PTHREAD_SUPPORT 1 21152_ACEOF 21153 21154 LIBS="$PTHREADS_LIBS $LIBS" 21155else 21156 PTHREADS_CFLAGS="" 21157 PTHREADS_LIBS="" 21158fi 21159 21160 21161 21162 21163{ echo "$as_me:$LINENO: result: $enable_pthread_support" >&5 21164echo "${ECHO_T}$enable_pthread_support" >&6; } 21165 21166 21167# Check whether --enable-dce was given. 21168if test "${enable_dce+set}" = set; then 21169 enableval=$enable_dce; 21170fi 21171 21172if test "$enable_dce" = yes; then 21173 21174cat >>confdefs.h <<\_ACEOF 21175#define DCE 1 21176_ACEOF 21177 21178fi 21179 if test "$enable_dce" = yes; then 21180 DCE_TRUE= 21181 DCE_FALSE='#' 21182else 21183 DCE_TRUE='#' 21184 DCE_FALSE= 21185fi 21186 21187 21188## XXX quite horrible: 21189if test -f /etc/ibmcxx.cfg; then 21190 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 21191 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 21192 dpagaix_ldflags= 21193else 21194 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 21195 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 21196 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 21197fi 21198 21199 21200 21201 21202# Check whether --enable-afs-support was given. 21203if test "${enable_afs_support+set}" = set; then 21204 enableval=$enable_afs_support; 21205fi 21206 21207if test "$enable_afs_support" = no; then 21208 21209cat >>confdefs.h <<\_ACEOF 21210#define NO_AFS 1 21211_ACEOF 21212 21213fi 21214 21215 21216# Check whether --enable-berkeley-db was given. 21217if test "${enable_berkeley_db+set}" = set; then 21218 enableval=$enable_berkeley_db; 21219 21220fi 21221 21222 21223# Check whether --enable-ndbm-db was given. 21224if test "${enable_ndbm_db+set}" = set; then 21225 enableval=$enable_ndbm_db; 21226 21227fi 21228 21229 21230have_ndbm=no 21231db_type=unknown 21232 21233if test "$enable_berkeley_db" != no; then 21234 21235 21236 21237 21238 21239for ac_header in \ 21240 db4/db.h \ 21241 db3/db.h \ 21242 db.h \ 21243 db_185.h \ 21244 21245do 21246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21251 echo $ECHO_N "(cached) $ECHO_C" >&6 21252fi 21253ac_res=`eval echo '${'$as_ac_Header'}'` 21254 { echo "$as_me:$LINENO: result: $ac_res" >&5 21255echo "${ECHO_T}$ac_res" >&6; } 21256else 21257 # Is the header compilable? 21258{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21260cat >conftest.$ac_ext <<_ACEOF 21261/* confdefs.h. */ 21262_ACEOF 21263cat confdefs.h >>conftest.$ac_ext 21264cat >>conftest.$ac_ext <<_ACEOF 21265/* end confdefs.h. */ 21266$ac_includes_default 21267#include <$ac_header> 21268_ACEOF 21269rm -f conftest.$ac_objext 21270if { (ac_try="$ac_compile" 21271case "(($ac_try" in 21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21273 *) ac_try_echo=$ac_try;; 21274esac 21275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21276 (eval "$ac_compile") 2>conftest.er1 21277 ac_status=$? 21278 grep -v '^ *+' conftest.er1 >conftest.err 21279 rm -f conftest.er1 21280 cat conftest.err >&5 21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21282 (exit $ac_status); } && { 21283 test -z "$ac_c_werror_flag" || 21284 test ! -s conftest.err 21285 } && test -s conftest.$ac_objext; then 21286 ac_header_compiler=yes 21287else 21288 echo "$as_me: failed program was:" >&5 21289sed 's/^/| /' conftest.$ac_ext >&5 21290 21291 ac_header_compiler=no 21292fi 21293 21294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21296echo "${ECHO_T}$ac_header_compiler" >&6; } 21297 21298# Is the header present? 21299{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21301cat >conftest.$ac_ext <<_ACEOF 21302/* confdefs.h. */ 21303_ACEOF 21304cat confdefs.h >>conftest.$ac_ext 21305cat >>conftest.$ac_ext <<_ACEOF 21306/* end confdefs.h. */ 21307#include <$ac_header> 21308_ACEOF 21309if { (ac_try="$ac_cpp conftest.$ac_ext" 21310case "(($ac_try" in 21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21312 *) ac_try_echo=$ac_try;; 21313esac 21314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21316 ac_status=$? 21317 grep -v '^ *+' conftest.er1 >conftest.err 21318 rm -f conftest.er1 21319 cat conftest.err >&5 21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21321 (exit $ac_status); } >/dev/null && { 21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21323 test ! -s conftest.err 21324 }; then 21325 ac_header_preproc=yes 21326else 21327 echo "$as_me: failed program was:" >&5 21328sed 's/^/| /' conftest.$ac_ext >&5 21329 21330 ac_header_preproc=no 21331fi 21332 21333rm -f conftest.err conftest.$ac_ext 21334{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21335echo "${ECHO_T}$ac_header_preproc" >&6; } 21336 21337# So? What about this header? 21338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21339 yes:no: ) 21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21344 ac_header_preproc=yes 21345 ;; 21346 no:yes:* ) 21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21359 ( cat <<\_ASBOX 21360## ----------------------------------- ## 21361## Report this to heimdal-bugs@h5l.org ## 21362## ----------------------------------- ## 21363_ASBOX 21364 ) | sed "s/^/$as_me: WARNING: /" >&2 21365 ;; 21366esac 21367{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21370 echo $ECHO_N "(cached) $ECHO_C" >&6 21371else 21372 eval "$as_ac_Header=\$ac_header_preproc" 21373fi 21374ac_res=`eval echo '${'$as_ac_Header'}'` 21375 { echo "$as_me:$LINENO: result: $ac_res" >&5 21376echo "${ECHO_T}$ac_res" >&6; } 21377 21378fi 21379if test `eval echo '${'$as_ac_Header'}'` = yes; then 21380 cat >>confdefs.h <<_ACEOF 21381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21382_ACEOF 21383 21384fi 21385 21386done 21387 21388 21389 21390 21391 21392 21393{ echo "$as_me:$LINENO: checking for db_create" >&5 21394echo $ECHO_N "checking for db_create... $ECHO_C" >&6; } 21395if test "${ac_cv_funclib_db_create+set}" = set; then 21396 echo $ECHO_N "(cached) $ECHO_C" >&6 21397else 21398 21399if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 21400 ac_save_LIBS="$LIBS" 21401 for ac_lib in "" db4 db3 db; do 21402 case "$ac_lib" in 21403 "") ;; 21404 yes) ac_lib="" ;; 21405 no) continue ;; 21406 -l*) ;; 21407 *) ac_lib="-l$ac_lib" ;; 21408 esac 21409 LIBS=" $ac_lib $ac_save_LIBS" 21410 cat >conftest.$ac_ext <<_ACEOF 21411/* confdefs.h. */ 21412_ACEOF 21413cat confdefs.h >>conftest.$ac_ext 21414cat >>conftest.$ac_ext <<_ACEOF 21415/* end confdefs.h. */ 21416 21417 #include <stdio.h> 21418 #ifdef HAVE_DB4_DB_H 21419 #include <db4/db.h> 21420 #elif defined(HAVE_DB3_DB_H) 21421 #include <db3/db.h> 21422 #else 21423 #include <db.h> 21424 #endif 21425 21426int 21427main () 21428{ 21429db_create(NULL, NULL, 0) 21430 ; 21431 return 0; 21432} 21433_ACEOF 21434rm -f conftest.$ac_objext conftest$ac_exeext 21435if { (ac_try="$ac_link" 21436case "(($ac_try" in 21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21438 *) ac_try_echo=$ac_try;; 21439esac 21440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21441 (eval "$ac_link") 2>conftest.er1 21442 ac_status=$? 21443 grep -v '^ *+' conftest.er1 >conftest.err 21444 rm -f conftest.er1 21445 cat conftest.err >&5 21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21447 (exit $ac_status); } && { 21448 test -z "$ac_c_werror_flag" || 21449 test ! -s conftest.err 21450 } && test -s conftest$ac_exeext && 21451 $as_test_x conftest$ac_exeext; then 21452 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 21453else 21454 echo "$as_me: failed program was:" >&5 21455sed 's/^/| /' conftest.$ac_ext >&5 21456 21457 21458fi 21459 21460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21461 conftest$ac_exeext conftest.$ac_ext 21462 done 21463 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 21464 LIBS="$ac_save_LIBS" 21465fi 21466 21467fi 21468 21469 21470eval "ac_res=\$ac_cv_funclib_db_create" 21471 21472if false; then 21473 21474for ac_func in db_create 21475do 21476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21477{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21480 echo $ECHO_N "(cached) $ECHO_C" >&6 21481else 21482 cat >conftest.$ac_ext <<_ACEOF 21483/* confdefs.h. */ 21484_ACEOF 21485cat confdefs.h >>conftest.$ac_ext 21486cat >>conftest.$ac_ext <<_ACEOF 21487/* end confdefs.h. */ 21488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21490#define $ac_func innocuous_$ac_func 21491 21492/* System header to define __stub macros and hopefully few prototypes, 21493 which can conflict with char $ac_func (); below. 21494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21495 <limits.h> exists even on freestanding compilers. */ 21496 21497#ifdef __STDC__ 21498# include <limits.h> 21499#else 21500# include <assert.h> 21501#endif 21502 21503#undef $ac_func 21504 21505/* Override any GCC internal prototype to avoid an error. 21506 Use char because int might match the return type of a GCC 21507 builtin and then its argument prototype would still apply. */ 21508#ifdef __cplusplus 21509extern "C" 21510#endif 21511char $ac_func (); 21512/* The GNU C library defines this for functions which it implements 21513 to always fail with ENOSYS. Some functions are actually named 21514 something starting with __ and the normal name is an alias. */ 21515#if defined __stub_$ac_func || defined __stub___$ac_func 21516choke me 21517#endif 21518 21519int 21520main () 21521{ 21522return $ac_func (); 21523 ; 21524 return 0; 21525} 21526_ACEOF 21527rm -f conftest.$ac_objext conftest$ac_exeext 21528if { (ac_try="$ac_link" 21529case "(($ac_try" in 21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21531 *) ac_try_echo=$ac_try;; 21532esac 21533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21534 (eval "$ac_link") 2>conftest.er1 21535 ac_status=$? 21536 grep -v '^ *+' conftest.er1 >conftest.err 21537 rm -f conftest.er1 21538 cat conftest.err >&5 21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21540 (exit $ac_status); } && { 21541 test -z "$ac_c_werror_flag" || 21542 test ! -s conftest.err 21543 } && test -s conftest$ac_exeext && 21544 $as_test_x conftest$ac_exeext; then 21545 eval "$as_ac_var=yes" 21546else 21547 echo "$as_me: failed program was:" >&5 21548sed 's/^/| /' conftest.$ac_ext >&5 21549 21550 eval "$as_ac_var=no" 21551fi 21552 21553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21554 conftest$ac_exeext conftest.$ac_ext 21555fi 21556ac_res=`eval echo '${'$as_ac_var'}'` 21557 { echo "$as_me:$LINENO: result: $ac_res" >&5 21558echo "${ECHO_T}$ac_res" >&6; } 21559if test `eval echo '${'$as_ac_var'}'` = yes; then 21560 cat >>confdefs.h <<_ACEOF 21561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21562_ACEOF 21563 21564fi 21565done 21566 21567fi 21568# db_create 21569eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21570eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21571eval "LIB_db_create=$ac_res" 21572 21573case "$ac_res" in 21574 yes) 21575 eval "ac_cv_func_db_create=yes" 21576 eval "LIB_db_create=" 21577 cat >>confdefs.h <<_ACEOF 21578#define $ac_tr_func 1 21579_ACEOF 21580 21581 { echo "$as_me:$LINENO: result: yes" >&5 21582echo "${ECHO_T}yes" >&6; } 21583 ;; 21584 no) 21585 eval "ac_cv_func_db_create=no" 21586 eval "LIB_db_create=" 21587 { echo "$as_me:$LINENO: result: no" >&5 21588echo "${ECHO_T}no" >&6; } 21589 ;; 21590 *) 21591 eval "ac_cv_func_db_create=yes" 21592 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21593 cat >>confdefs.h <<_ACEOF 21594#define $ac_tr_func 1 21595_ACEOF 21596 21597 cat >>confdefs.h <<_ACEOF 21598#define $ac_tr_lib 1 21599_ACEOF 21600 21601 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 21602echo "${ECHO_T}yes, in $ac_res" >&6; } 21603 ;; 21604esac 21605 21606 21607 21608 if test "$ac_cv_func_db_create" = "yes"; then 21609 db_type=db3 21610 if test "$ac_cv_funclib_db_create" != "yes"; then 21611 DBLIB="$ac_cv_funclib_db_create" 21612 else 21613 DBLIB="" 21614 fi 21615 21616cat >>confdefs.h <<\_ACEOF 21617#define HAVE_DB3 1 21618_ACEOF 21619 21620 else 21621 21622 21623 21624 21625 21626{ echo "$as_me:$LINENO: checking for dbopen" >&5 21627echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; } 21628if test "${ac_cv_funclib_dbopen+set}" = set; then 21629 echo $ECHO_N "(cached) $ECHO_C" >&6 21630else 21631 21632if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 21633 ac_save_LIBS="$LIBS" 21634 for ac_lib in "" db2 db; do 21635 case "$ac_lib" in 21636 "") ;; 21637 yes) ac_lib="" ;; 21638 no) continue ;; 21639 -l*) ;; 21640 *) ac_lib="-l$ac_lib" ;; 21641 esac 21642 LIBS=" $ac_lib $ac_save_LIBS" 21643 cat >conftest.$ac_ext <<_ACEOF 21644/* confdefs.h. */ 21645_ACEOF 21646cat confdefs.h >>conftest.$ac_ext 21647cat >>conftest.$ac_ext <<_ACEOF 21648/* end confdefs.h. */ 21649 21650 #include <stdio.h> 21651 #if defined(HAVE_DB2_DB_H) 21652 #include <db2/db.h> 21653 #elif defined(HAVE_DB_185_H) 21654 #include <db_185.h> 21655 #elif defined(HAVE_DB_H) 21656 #include <db.h> 21657 #else 21658 #error no db.h 21659 #endif 21660 21661int 21662main () 21663{ 21664dbopen(NULL, 0, 0, 0, NULL) 21665 ; 21666 return 0; 21667} 21668_ACEOF 21669rm -f conftest.$ac_objext conftest$ac_exeext 21670if { (ac_try="$ac_link" 21671case "(($ac_try" in 21672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21673 *) ac_try_echo=$ac_try;; 21674esac 21675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21676 (eval "$ac_link") 2>conftest.er1 21677 ac_status=$? 21678 grep -v '^ *+' conftest.er1 >conftest.err 21679 rm -f conftest.er1 21680 cat conftest.err >&5 21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21682 (exit $ac_status); } && { 21683 test -z "$ac_c_werror_flag" || 21684 test ! -s conftest.err 21685 } && test -s conftest$ac_exeext && 21686 $as_test_x conftest$ac_exeext; then 21687 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 21688else 21689 echo "$as_me: failed program was:" >&5 21690sed 's/^/| /' conftest.$ac_ext >&5 21691 21692 21693fi 21694 21695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21696 conftest$ac_exeext conftest.$ac_ext 21697 done 21698 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 21699 LIBS="$ac_save_LIBS" 21700fi 21701 21702fi 21703 21704 21705eval "ac_res=\$ac_cv_funclib_dbopen" 21706 21707if false; then 21708 21709for ac_func in dbopen 21710do 21711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21712{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21715 echo $ECHO_N "(cached) $ECHO_C" >&6 21716else 21717 cat >conftest.$ac_ext <<_ACEOF 21718/* confdefs.h. */ 21719_ACEOF 21720cat confdefs.h >>conftest.$ac_ext 21721cat >>conftest.$ac_ext <<_ACEOF 21722/* end confdefs.h. */ 21723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21725#define $ac_func innocuous_$ac_func 21726 21727/* System header to define __stub macros and hopefully few prototypes, 21728 which can conflict with char $ac_func (); below. 21729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21730 <limits.h> exists even on freestanding compilers. */ 21731 21732#ifdef __STDC__ 21733# include <limits.h> 21734#else 21735# include <assert.h> 21736#endif 21737 21738#undef $ac_func 21739 21740/* Override any GCC internal prototype to avoid an error. 21741 Use char because int might match the return type of a GCC 21742 builtin and then its argument prototype would still apply. */ 21743#ifdef __cplusplus 21744extern "C" 21745#endif 21746char $ac_func (); 21747/* The GNU C library defines this for functions which it implements 21748 to always fail with ENOSYS. Some functions are actually named 21749 something starting with __ and the normal name is an alias. */ 21750#if defined __stub_$ac_func || defined __stub___$ac_func 21751choke me 21752#endif 21753 21754int 21755main () 21756{ 21757return $ac_func (); 21758 ; 21759 return 0; 21760} 21761_ACEOF 21762rm -f conftest.$ac_objext conftest$ac_exeext 21763if { (ac_try="$ac_link" 21764case "(($ac_try" in 21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21766 *) ac_try_echo=$ac_try;; 21767esac 21768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21769 (eval "$ac_link") 2>conftest.er1 21770 ac_status=$? 21771 grep -v '^ *+' conftest.er1 >conftest.err 21772 rm -f conftest.er1 21773 cat conftest.err >&5 21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21775 (exit $ac_status); } && { 21776 test -z "$ac_c_werror_flag" || 21777 test ! -s conftest.err 21778 } && test -s conftest$ac_exeext && 21779 $as_test_x conftest$ac_exeext; then 21780 eval "$as_ac_var=yes" 21781else 21782 echo "$as_me: failed program was:" >&5 21783sed 's/^/| /' conftest.$ac_ext >&5 21784 21785 eval "$as_ac_var=no" 21786fi 21787 21788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21789 conftest$ac_exeext conftest.$ac_ext 21790fi 21791ac_res=`eval echo '${'$as_ac_var'}'` 21792 { echo "$as_me:$LINENO: result: $ac_res" >&5 21793echo "${ECHO_T}$ac_res" >&6; } 21794if test `eval echo '${'$as_ac_var'}'` = yes; then 21795 cat >>confdefs.h <<_ACEOF 21796#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21797_ACEOF 21798 21799fi 21800done 21801 21802fi 21803# dbopen 21804eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21805eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21806eval "LIB_dbopen=$ac_res" 21807 21808case "$ac_res" in 21809 yes) 21810 eval "ac_cv_func_dbopen=yes" 21811 eval "LIB_dbopen=" 21812 cat >>confdefs.h <<_ACEOF 21813#define $ac_tr_func 1 21814_ACEOF 21815 21816 { echo "$as_me:$LINENO: result: yes" >&5 21817echo "${ECHO_T}yes" >&6; } 21818 ;; 21819 no) 21820 eval "ac_cv_func_dbopen=no" 21821 eval "LIB_dbopen=" 21822 { echo "$as_me:$LINENO: result: no" >&5 21823echo "${ECHO_T}no" >&6; } 21824 ;; 21825 *) 21826 eval "ac_cv_func_dbopen=yes" 21827 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21828 cat >>confdefs.h <<_ACEOF 21829#define $ac_tr_func 1 21830_ACEOF 21831 21832 cat >>confdefs.h <<_ACEOF 21833#define $ac_tr_lib 1 21834_ACEOF 21835 21836 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 21837echo "${ECHO_T}yes, in $ac_res" >&6; } 21838 ;; 21839esac 21840 21841 21842 21843 if test "$ac_cv_func_dbopen" = "yes"; then 21844 db_type=db1 21845 if test "$ac_cv_funclib_dbopen" != "yes"; then 21846 DBLIB="$ac_cv_funclib_dbopen" 21847 else 21848 DBLIB="" 21849 fi 21850 21851cat >>confdefs.h <<\_ACEOF 21852#define HAVE_DB1 1 21853_ACEOF 21854 21855 fi 21856 fi 21857 21858 21859 if test "$ac_cv_func_dbm_firstkey" != yes; then 21860 21861 21862{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 21863echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; } 21864if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 21865 echo $ECHO_N "(cached) $ECHO_C" >&6 21866else 21867 21868if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 21869 ac_save_LIBS="$LIBS" 21870 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 21871 case "$ac_lib" in 21872 "") ;; 21873 yes) ac_lib="" ;; 21874 no) continue ;; 21875 -l*) ;; 21876 *) ac_lib="-l$ac_lib" ;; 21877 esac 21878 LIBS=" $ac_lib $ac_save_LIBS" 21879 cat >conftest.$ac_ext <<_ACEOF 21880/* confdefs.h. */ 21881_ACEOF 21882cat confdefs.h >>conftest.$ac_ext 21883cat >>conftest.$ac_ext <<_ACEOF 21884/* end confdefs.h. */ 21885 21886 #include <stdio.h> 21887 #define DB_DBM_HSEARCH 1 21888 #include <db.h> 21889 DBM *dbm; 21890 21891int 21892main () 21893{ 21894dbm_firstkey(NULL) 21895 ; 21896 return 0; 21897} 21898_ACEOF 21899rm -f conftest.$ac_objext conftest$ac_exeext 21900if { (ac_try="$ac_link" 21901case "(($ac_try" in 21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21903 *) ac_try_echo=$ac_try;; 21904esac 21905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21906 (eval "$ac_link") 2>conftest.er1 21907 ac_status=$? 21908 grep -v '^ *+' conftest.er1 >conftest.err 21909 rm -f conftest.er1 21910 cat conftest.err >&5 21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21912 (exit $ac_status); } && { 21913 test -z "$ac_c_werror_flag" || 21914 test ! -s conftest.err 21915 } && test -s conftest$ac_exeext && 21916 $as_test_x conftest$ac_exeext; then 21917 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 21918else 21919 echo "$as_me: failed program was:" >&5 21920sed 's/^/| /' conftest.$ac_ext >&5 21921 21922 21923fi 21924 21925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21926 conftest$ac_exeext conftest.$ac_ext 21927 done 21928 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 21929 LIBS="$ac_save_LIBS" 21930fi 21931 21932fi 21933 21934 21935eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 21936 21937if false; then 21938 21939for ac_func in dbm_firstkey 21940do 21941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21942{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21945 echo $ECHO_N "(cached) $ECHO_C" >&6 21946else 21947 cat >conftest.$ac_ext <<_ACEOF 21948/* confdefs.h. */ 21949_ACEOF 21950cat confdefs.h >>conftest.$ac_ext 21951cat >>conftest.$ac_ext <<_ACEOF 21952/* end confdefs.h. */ 21953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21954 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21955#define $ac_func innocuous_$ac_func 21956 21957/* System header to define __stub macros and hopefully few prototypes, 21958 which can conflict with char $ac_func (); below. 21959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21960 <limits.h> exists even on freestanding compilers. */ 21961 21962#ifdef __STDC__ 21963# include <limits.h> 21964#else 21965# include <assert.h> 21966#endif 21967 21968#undef $ac_func 21969 21970/* Override any GCC internal prototype to avoid an error. 21971 Use char because int might match the return type of a GCC 21972 builtin and then its argument prototype would still apply. */ 21973#ifdef __cplusplus 21974extern "C" 21975#endif 21976char $ac_func (); 21977/* The GNU C library defines this for functions which it implements 21978 to always fail with ENOSYS. Some functions are actually named 21979 something starting with __ and the normal name is an alias. */ 21980#if defined __stub_$ac_func || defined __stub___$ac_func 21981choke me 21982#endif 21983 21984int 21985main () 21986{ 21987return $ac_func (); 21988 ; 21989 return 0; 21990} 21991_ACEOF 21992rm -f conftest.$ac_objext conftest$ac_exeext 21993if { (ac_try="$ac_link" 21994case "(($ac_try" in 21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21996 *) ac_try_echo=$ac_try;; 21997esac 21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21999 (eval "$ac_link") 2>conftest.er1 22000 ac_status=$? 22001 grep -v '^ *+' conftest.er1 >conftest.err 22002 rm -f conftest.er1 22003 cat conftest.err >&5 22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22005 (exit $ac_status); } && { 22006 test -z "$ac_c_werror_flag" || 22007 test ! -s conftest.err 22008 } && test -s conftest$ac_exeext && 22009 $as_test_x conftest$ac_exeext; then 22010 eval "$as_ac_var=yes" 22011else 22012 echo "$as_me: failed program was:" >&5 22013sed 's/^/| /' conftest.$ac_ext >&5 22014 22015 eval "$as_ac_var=no" 22016fi 22017 22018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22019 conftest$ac_exeext conftest.$ac_ext 22020fi 22021ac_res=`eval echo '${'$as_ac_var'}'` 22022 { echo "$as_me:$LINENO: result: $ac_res" >&5 22023echo "${ECHO_T}$ac_res" >&6; } 22024if test `eval echo '${'$as_ac_var'}'` = yes; then 22025 cat >>confdefs.h <<_ACEOF 22026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22027_ACEOF 22028 22029fi 22030done 22031 22032fi 22033# dbm_firstkey 22034eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22035eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22036eval "LIB_dbm_firstkey=$ac_res" 22037 22038case "$ac_res" in 22039 yes) 22040 eval "ac_cv_func_dbm_firstkey=yes" 22041 eval "LIB_dbm_firstkey=" 22042 cat >>confdefs.h <<_ACEOF 22043#define $ac_tr_func 1 22044_ACEOF 22045 22046 { echo "$as_me:$LINENO: result: yes" >&5 22047echo "${ECHO_T}yes" >&6; } 22048 ;; 22049 no) 22050 eval "ac_cv_func_dbm_firstkey=no" 22051 eval "LIB_dbm_firstkey=" 22052 { echo "$as_me:$LINENO: result: no" >&5 22053echo "${ECHO_T}no" >&6; } 22054 ;; 22055 *) 22056 eval "ac_cv_func_dbm_firstkey=yes" 22057 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 22058 cat >>confdefs.h <<_ACEOF 22059#define $ac_tr_func 1 22060_ACEOF 22061 22062 cat >>confdefs.h <<_ACEOF 22063#define $ac_tr_lib 1 22064_ACEOF 22065 22066 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 22067echo "${ECHO_T}yes, in $ac_res" >&6; } 22068 ;; 22069esac 22070 22071 22072 22073 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 22074 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 22075 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 22076 else 22077 LIB_NDBM="" 22078 fi 22079 22080cat >>confdefs.h <<\_ACEOF 22081#define HAVE_DB_NDBM 1 22082_ACEOF 22083 22084 22085cat >>confdefs.h <<\_ACEOF 22086#define HAVE_NEW_DB 1 22087_ACEOF 22088 22089 else 22090 $as_unset ac_cv_func_dbm_firstkey 22091 $as_unset ac_cv_funclib_dbm_firstkey 22092 fi 22093 fi 22094 22095fi # berkeley db 22096 22097if test "$enable_ndbm_db" != "no"; then 22098 22099 if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 22100 22101 22102 22103for ac_header in \ 22104 dbm.h \ 22105 ndbm.h \ 22106 22107do 22108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22110 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22113 echo $ECHO_N "(cached) $ECHO_C" >&6 22114fi 22115ac_res=`eval echo '${'$as_ac_Header'}'` 22116 { echo "$as_me:$LINENO: result: $ac_res" >&5 22117echo "${ECHO_T}$ac_res" >&6; } 22118else 22119 # Is the header compilable? 22120{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22121echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22122cat >conftest.$ac_ext <<_ACEOF 22123/* confdefs.h. */ 22124_ACEOF 22125cat confdefs.h >>conftest.$ac_ext 22126cat >>conftest.$ac_ext <<_ACEOF 22127/* end confdefs.h. */ 22128$ac_includes_default 22129#include <$ac_header> 22130_ACEOF 22131rm -f conftest.$ac_objext 22132if { (ac_try="$ac_compile" 22133case "(($ac_try" in 22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22135 *) ac_try_echo=$ac_try;; 22136esac 22137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22138 (eval "$ac_compile") 2>conftest.er1 22139 ac_status=$? 22140 grep -v '^ *+' conftest.er1 >conftest.err 22141 rm -f conftest.er1 22142 cat conftest.err >&5 22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22144 (exit $ac_status); } && { 22145 test -z "$ac_c_werror_flag" || 22146 test ! -s conftest.err 22147 } && test -s conftest.$ac_objext; then 22148 ac_header_compiler=yes 22149else 22150 echo "$as_me: failed program was:" >&5 22151sed 's/^/| /' conftest.$ac_ext >&5 22152 22153 ac_header_compiler=no 22154fi 22155 22156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22157{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22158echo "${ECHO_T}$ac_header_compiler" >&6; } 22159 22160# Is the header present? 22161{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22163cat >conftest.$ac_ext <<_ACEOF 22164/* confdefs.h. */ 22165_ACEOF 22166cat confdefs.h >>conftest.$ac_ext 22167cat >>conftest.$ac_ext <<_ACEOF 22168/* end confdefs.h. */ 22169#include <$ac_header> 22170_ACEOF 22171if { (ac_try="$ac_cpp conftest.$ac_ext" 22172case "(($ac_try" in 22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22174 *) ac_try_echo=$ac_try;; 22175esac 22176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22178 ac_status=$? 22179 grep -v '^ *+' conftest.er1 >conftest.err 22180 rm -f conftest.er1 22181 cat conftest.err >&5 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); } >/dev/null && { 22184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22185 test ! -s conftest.err 22186 }; then 22187 ac_header_preproc=yes 22188else 22189 echo "$as_me: failed program was:" >&5 22190sed 's/^/| /' conftest.$ac_ext >&5 22191 22192 ac_header_preproc=no 22193fi 22194 22195rm -f conftest.err conftest.$ac_ext 22196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22197echo "${ECHO_T}$ac_header_preproc" >&6; } 22198 22199# So? What about this header? 22200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22201 yes:no: ) 22202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22206 ac_header_preproc=yes 22207 ;; 22208 no:yes:* ) 22209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22221 ( cat <<\_ASBOX 22222## ----------------------------------- ## 22223## Report this to heimdal-bugs@h5l.org ## 22224## ----------------------------------- ## 22225_ASBOX 22226 ) | sed "s/^/$as_me: WARNING: /" >&2 22227 ;; 22228esac 22229{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22232 echo $ECHO_N "(cached) $ECHO_C" >&6 22233else 22234 eval "$as_ac_Header=\$ac_header_preproc" 22235fi 22236ac_res=`eval echo '${'$as_ac_Header'}'` 22237 { echo "$as_me:$LINENO: result: $ac_res" >&5 22238echo "${ECHO_T}$ac_res" >&6; } 22239 22240fi 22241if test `eval echo '${'$as_ac_Header'}'` = yes; then 22242 cat >>confdefs.h <<_ACEOF 22243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22244_ACEOF 22245 22246fi 22247 22248done 22249 22250 22251 22252 22253 22254{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 22255echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; } 22256if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 22257 echo $ECHO_N "(cached) $ECHO_C" >&6 22258else 22259 22260if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 22261 ac_save_LIBS="$LIBS" 22262 for ac_lib in "" ndbm; do 22263 case "$ac_lib" in 22264 "") ;; 22265 yes) ac_lib="" ;; 22266 no) continue ;; 22267 -l*) ;; 22268 *) ac_lib="-l$ac_lib" ;; 22269 esac 22270 LIBS=" $ac_lib $ac_save_LIBS" 22271 cat >conftest.$ac_ext <<_ACEOF 22272/* confdefs.h. */ 22273_ACEOF 22274cat confdefs.h >>conftest.$ac_ext 22275cat >>conftest.$ac_ext <<_ACEOF 22276/* end confdefs.h. */ 22277 22278 #include <stdio.h> 22279 #if defined(HAVE_NDBM_H) 22280 #include <ndbm.h> 22281 #elif defined(HAVE_DBM_H) 22282 #include <dbm.h> 22283 #endif 22284 DBM *dbm; 22285 22286int 22287main () 22288{ 22289dbm_firstkey(NULL) 22290 ; 22291 return 0; 22292} 22293_ACEOF 22294rm -f conftest.$ac_objext conftest$ac_exeext 22295if { (ac_try="$ac_link" 22296case "(($ac_try" in 22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22298 *) ac_try_echo=$ac_try;; 22299esac 22300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22301 (eval "$ac_link") 2>conftest.er1 22302 ac_status=$? 22303 grep -v '^ *+' conftest.er1 >conftest.err 22304 rm -f conftest.er1 22305 cat conftest.err >&5 22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22307 (exit $ac_status); } && { 22308 test -z "$ac_c_werror_flag" || 22309 test ! -s conftest.err 22310 } && test -s conftest$ac_exeext && 22311 $as_test_x conftest$ac_exeext; then 22312 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 22313else 22314 echo "$as_me: failed program was:" >&5 22315sed 's/^/| /' conftest.$ac_ext >&5 22316 22317 22318fi 22319 22320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22321 conftest$ac_exeext conftest.$ac_ext 22322 done 22323 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 22324 LIBS="$ac_save_LIBS" 22325fi 22326 22327fi 22328 22329 22330eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 22331 22332if false; then 22333 22334for ac_func in dbm_firstkey 22335do 22336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22337{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22340 echo $ECHO_N "(cached) $ECHO_C" >&6 22341else 22342 cat >conftest.$ac_ext <<_ACEOF 22343/* confdefs.h. */ 22344_ACEOF 22345cat confdefs.h >>conftest.$ac_ext 22346cat >>conftest.$ac_ext <<_ACEOF 22347/* end confdefs.h. */ 22348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22349 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22350#define $ac_func innocuous_$ac_func 22351 22352/* System header to define __stub macros and hopefully few prototypes, 22353 which can conflict with char $ac_func (); below. 22354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22355 <limits.h> exists even on freestanding compilers. */ 22356 22357#ifdef __STDC__ 22358# include <limits.h> 22359#else 22360# include <assert.h> 22361#endif 22362 22363#undef $ac_func 22364 22365/* Override any GCC internal prototype to avoid an error. 22366 Use char because int might match the return type of a GCC 22367 builtin and then its argument prototype would still apply. */ 22368#ifdef __cplusplus 22369extern "C" 22370#endif 22371char $ac_func (); 22372/* The GNU C library defines this for functions which it implements 22373 to always fail with ENOSYS. Some functions are actually named 22374 something starting with __ and the normal name is an alias. */ 22375#if defined __stub_$ac_func || defined __stub___$ac_func 22376choke me 22377#endif 22378 22379int 22380main () 22381{ 22382return $ac_func (); 22383 ; 22384 return 0; 22385} 22386_ACEOF 22387rm -f conftest.$ac_objext conftest$ac_exeext 22388if { (ac_try="$ac_link" 22389case "(($ac_try" in 22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22391 *) ac_try_echo=$ac_try;; 22392esac 22393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22394 (eval "$ac_link") 2>conftest.er1 22395 ac_status=$? 22396 grep -v '^ *+' conftest.er1 >conftest.err 22397 rm -f conftest.er1 22398 cat conftest.err >&5 22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22400 (exit $ac_status); } && { 22401 test -z "$ac_c_werror_flag" || 22402 test ! -s conftest.err 22403 } && test -s conftest$ac_exeext && 22404 $as_test_x conftest$ac_exeext; then 22405 eval "$as_ac_var=yes" 22406else 22407 echo "$as_me: failed program was:" >&5 22408sed 's/^/| /' conftest.$ac_ext >&5 22409 22410 eval "$as_ac_var=no" 22411fi 22412 22413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22414 conftest$ac_exeext conftest.$ac_ext 22415fi 22416ac_res=`eval echo '${'$as_ac_var'}'` 22417 { echo "$as_me:$LINENO: result: $ac_res" >&5 22418echo "${ECHO_T}$ac_res" >&6; } 22419if test `eval echo '${'$as_ac_var'}'` = yes; then 22420 cat >>confdefs.h <<_ACEOF 22421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22422_ACEOF 22423 22424fi 22425done 22426 22427fi 22428# dbm_firstkey 22429eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22430eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22431eval "LIB_dbm_firstkey=$ac_res" 22432 22433case "$ac_res" in 22434 yes) 22435 eval "ac_cv_func_dbm_firstkey=yes" 22436 eval "LIB_dbm_firstkey=" 22437 cat >>confdefs.h <<_ACEOF 22438#define $ac_tr_func 1 22439_ACEOF 22440 22441 { echo "$as_me:$LINENO: result: yes" >&5 22442echo "${ECHO_T}yes" >&6; } 22443 ;; 22444 no) 22445 eval "ac_cv_func_dbm_firstkey=no" 22446 eval "LIB_dbm_firstkey=" 22447 { echo "$as_me:$LINENO: result: no" >&5 22448echo "${ECHO_T}no" >&6; } 22449 ;; 22450 *) 22451 eval "ac_cv_func_dbm_firstkey=yes" 22452 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 22453 cat >>confdefs.h <<_ACEOF 22454#define $ac_tr_func 1 22455_ACEOF 22456 22457 cat >>confdefs.h <<_ACEOF 22458#define $ac_tr_lib 1 22459_ACEOF 22460 22461 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 22462echo "${ECHO_T}yes, in $ac_res" >&6; } 22463 ;; 22464esac 22465 22466 22467 22468 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 22469 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 22470 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 22471 else 22472 LIB_NDBM="" 22473 fi 22474 22475cat >>confdefs.h <<\_ACEOF 22476#define HAVE_NDBM 1 22477_ACEOF 22478 have_ndbm=yes 22479 if test "$db_type" = "unknown"; then 22480 db_type=ndbm 22481 DBLIB="$LIB_NDBM" 22482 fi 22483 else 22484 22485 $as_unset ac_cv_func_dbm_firstkey 22486 $as_unset ac_cv_funclib_dbm_firstkey 22487 22488 22489for ac_header in \ 22490 gdbm/ndbm.h \ 22491 22492do 22493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22495 { echo "$as_me:$LINENO: checking for $ac_header" >&5 22496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22498 echo $ECHO_N "(cached) $ECHO_C" >&6 22499fi 22500ac_res=`eval echo '${'$as_ac_Header'}'` 22501 { echo "$as_me:$LINENO: result: $ac_res" >&5 22502echo "${ECHO_T}$ac_res" >&6; } 22503else 22504 # Is the header compilable? 22505{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 22506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 22507cat >conftest.$ac_ext <<_ACEOF 22508/* confdefs.h. */ 22509_ACEOF 22510cat confdefs.h >>conftest.$ac_ext 22511cat >>conftest.$ac_ext <<_ACEOF 22512/* end confdefs.h. */ 22513$ac_includes_default 22514#include <$ac_header> 22515_ACEOF 22516rm -f conftest.$ac_objext 22517if { (ac_try="$ac_compile" 22518case "(($ac_try" in 22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22520 *) ac_try_echo=$ac_try;; 22521esac 22522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22523 (eval "$ac_compile") 2>conftest.er1 22524 ac_status=$? 22525 grep -v '^ *+' conftest.er1 >conftest.err 22526 rm -f conftest.er1 22527 cat conftest.err >&5 22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22529 (exit $ac_status); } && { 22530 test -z "$ac_c_werror_flag" || 22531 test ! -s conftest.err 22532 } && test -s conftest.$ac_objext; then 22533 ac_header_compiler=yes 22534else 22535 echo "$as_me: failed program was:" >&5 22536sed 's/^/| /' conftest.$ac_ext >&5 22537 22538 ac_header_compiler=no 22539fi 22540 22541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22543echo "${ECHO_T}$ac_header_compiler" >&6; } 22544 22545# Is the header present? 22546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 22547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 22548cat >conftest.$ac_ext <<_ACEOF 22549/* confdefs.h. */ 22550_ACEOF 22551cat confdefs.h >>conftest.$ac_ext 22552cat >>conftest.$ac_ext <<_ACEOF 22553/* end confdefs.h. */ 22554#include <$ac_header> 22555_ACEOF 22556if { (ac_try="$ac_cpp conftest.$ac_ext" 22557case "(($ac_try" in 22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22559 *) ac_try_echo=$ac_try;; 22560esac 22561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22563 ac_status=$? 22564 grep -v '^ *+' conftest.er1 >conftest.err 22565 rm -f conftest.er1 22566 cat conftest.err >&5 22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22568 (exit $ac_status); } >/dev/null && { 22569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22570 test ! -s conftest.err 22571 }; then 22572 ac_header_preproc=yes 22573else 22574 echo "$as_me: failed program was:" >&5 22575sed 's/^/| /' conftest.$ac_ext >&5 22576 22577 ac_header_preproc=no 22578fi 22579 22580rm -f conftest.err conftest.$ac_ext 22581{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22582echo "${ECHO_T}$ac_header_preproc" >&6; } 22583 22584# So? What about this header? 22585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22586 yes:no: ) 22587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22590echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22591 ac_header_preproc=yes 22592 ;; 22593 no:yes:* ) 22594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22599echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22601echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22603echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22605echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22606 ( cat <<\_ASBOX 22607## ----------------------------------- ## 22608## Report this to heimdal-bugs@h5l.org ## 22609## ----------------------------------- ## 22610_ASBOX 22611 ) | sed "s/^/$as_me: WARNING: /" >&2 22612 ;; 22613esac 22614{ echo "$as_me:$LINENO: checking for $ac_header" >&5 22615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 22616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 22617 echo $ECHO_N "(cached) $ECHO_C" >&6 22618else 22619 eval "$as_ac_Header=\$ac_header_preproc" 22620fi 22621ac_res=`eval echo '${'$as_ac_Header'}'` 22622 { echo "$as_me:$LINENO: result: $ac_res" >&5 22623echo "${ECHO_T}$ac_res" >&6; } 22624 22625fi 22626if test `eval echo '${'$as_ac_Header'}'` = yes; then 22627 cat >>confdefs.h <<_ACEOF 22628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22629_ACEOF 22630 22631fi 22632 22633done 22634 22635 22636 22637 22638 22639{ echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 22640echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6; } 22641if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 22642 echo $ECHO_N "(cached) $ECHO_C" >&6 22643else 22644 22645if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 22646 ac_save_LIBS="$LIBS" 22647 for ac_lib in "" gdbm; do 22648 case "$ac_lib" in 22649 "") ;; 22650 yes) ac_lib="" ;; 22651 no) continue ;; 22652 -l*) ;; 22653 *) ac_lib="-l$ac_lib" ;; 22654 esac 22655 LIBS=" $ac_lib $ac_save_LIBS" 22656 cat >conftest.$ac_ext <<_ACEOF 22657/* confdefs.h. */ 22658_ACEOF 22659cat confdefs.h >>conftest.$ac_ext 22660cat >>conftest.$ac_ext <<_ACEOF 22661/* end confdefs.h. */ 22662 22663 #include <stdio.h> 22664 #include <gdbm/ndbm.h> 22665 DBM *dbm; 22666 22667int 22668main () 22669{ 22670dbm_firstkey(NULL) 22671 ; 22672 return 0; 22673} 22674_ACEOF 22675rm -f conftest.$ac_objext conftest$ac_exeext 22676if { (ac_try="$ac_link" 22677case "(($ac_try" in 22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22679 *) ac_try_echo=$ac_try;; 22680esac 22681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22682 (eval "$ac_link") 2>conftest.er1 22683 ac_status=$? 22684 grep -v '^ *+' conftest.er1 >conftest.err 22685 rm -f conftest.er1 22686 cat conftest.err >&5 22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22688 (exit $ac_status); } && { 22689 test -z "$ac_c_werror_flag" || 22690 test ! -s conftest.err 22691 } && test -s conftest$ac_exeext && 22692 $as_test_x conftest$ac_exeext; then 22693 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 22694else 22695 echo "$as_me: failed program was:" >&5 22696sed 's/^/| /' conftest.$ac_ext >&5 22697 22698 22699fi 22700 22701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22702 conftest$ac_exeext conftest.$ac_ext 22703 done 22704 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 22705 LIBS="$ac_save_LIBS" 22706fi 22707 22708fi 22709 22710 22711eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 22712 22713if false; then 22714 22715for ac_func in dbm_firstkey 22716do 22717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22718{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22721 echo $ECHO_N "(cached) $ECHO_C" >&6 22722else 22723 cat >conftest.$ac_ext <<_ACEOF 22724/* confdefs.h. */ 22725_ACEOF 22726cat confdefs.h >>conftest.$ac_ext 22727cat >>conftest.$ac_ext <<_ACEOF 22728/* end confdefs.h. */ 22729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22731#define $ac_func innocuous_$ac_func 22732 22733/* System header to define __stub macros and hopefully few prototypes, 22734 which can conflict with char $ac_func (); below. 22735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22736 <limits.h> exists even on freestanding compilers. */ 22737 22738#ifdef __STDC__ 22739# include <limits.h> 22740#else 22741# include <assert.h> 22742#endif 22743 22744#undef $ac_func 22745 22746/* Override any GCC internal prototype to avoid an error. 22747 Use char because int might match the return type of a GCC 22748 builtin and then its argument prototype would still apply. */ 22749#ifdef __cplusplus 22750extern "C" 22751#endif 22752char $ac_func (); 22753/* The GNU C library defines this for functions which it implements 22754 to always fail with ENOSYS. Some functions are actually named 22755 something starting with __ and the normal name is an alias. */ 22756#if defined __stub_$ac_func || defined __stub___$ac_func 22757choke me 22758#endif 22759 22760int 22761main () 22762{ 22763return $ac_func (); 22764 ; 22765 return 0; 22766} 22767_ACEOF 22768rm -f conftest.$ac_objext conftest$ac_exeext 22769if { (ac_try="$ac_link" 22770case "(($ac_try" in 22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22772 *) ac_try_echo=$ac_try;; 22773esac 22774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22775 (eval "$ac_link") 2>conftest.er1 22776 ac_status=$? 22777 grep -v '^ *+' conftest.er1 >conftest.err 22778 rm -f conftest.er1 22779 cat conftest.err >&5 22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22781 (exit $ac_status); } && { 22782 test -z "$ac_c_werror_flag" || 22783 test ! -s conftest.err 22784 } && test -s conftest$ac_exeext && 22785 $as_test_x conftest$ac_exeext; then 22786 eval "$as_ac_var=yes" 22787else 22788 echo "$as_me: failed program was:" >&5 22789sed 's/^/| /' conftest.$ac_ext >&5 22790 22791 eval "$as_ac_var=no" 22792fi 22793 22794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22795 conftest$ac_exeext conftest.$ac_ext 22796fi 22797ac_res=`eval echo '${'$as_ac_var'}'` 22798 { echo "$as_me:$LINENO: result: $ac_res" >&5 22799echo "${ECHO_T}$ac_res" >&6; } 22800if test `eval echo '${'$as_ac_var'}'` = yes; then 22801 cat >>confdefs.h <<_ACEOF 22802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22803_ACEOF 22804 22805fi 22806done 22807 22808fi 22809# dbm_firstkey 22810eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22811eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 22812eval "LIB_dbm_firstkey=$ac_res" 22813 22814case "$ac_res" in 22815 yes) 22816 eval "ac_cv_func_dbm_firstkey=yes" 22817 eval "LIB_dbm_firstkey=" 22818 cat >>confdefs.h <<_ACEOF 22819#define $ac_tr_func 1 22820_ACEOF 22821 22822 { echo "$as_me:$LINENO: result: yes" >&5 22823echo "${ECHO_T}yes" >&6; } 22824 ;; 22825 no) 22826 eval "ac_cv_func_dbm_firstkey=no" 22827 eval "LIB_dbm_firstkey=" 22828 { echo "$as_me:$LINENO: result: no" >&5 22829echo "${ECHO_T}no" >&6; } 22830 ;; 22831 *) 22832 eval "ac_cv_func_dbm_firstkey=yes" 22833 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 22834 cat >>confdefs.h <<_ACEOF 22835#define $ac_tr_func 1 22836_ACEOF 22837 22838 cat >>confdefs.h <<_ACEOF 22839#define $ac_tr_lib 1 22840_ACEOF 22841 22842 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 22843echo "${ECHO_T}yes, in $ac_res" >&6; } 22844 ;; 22845esac 22846 22847 22848 22849 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 22850 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 22851 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 22852 else 22853 LIB_NDBM="" 22854 fi 22855 22856cat >>confdefs.h <<\_ACEOF 22857#define HAVE_NDBM 1 22858_ACEOF 22859 have_ndbm=yes 22860 if test "$db_type" = "unknown"; then 22861 db_type=ndbm 22862 DBLIB="$LIB_NDBM" 22863 fi 22864 fi 22865 fi 22866 fi #enable_ndbm_db 22867fi # unknown 22868 22869if test "$have_ndbm" = "yes"; then 22870 { echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5 22871echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6; } 22872 if test "$cross_compiling" = yes; then 22873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 22874See \`config.log' for more details." >&5 22875echo "$as_me: error: cannot run test program while cross compiling 22876See \`config.log' for more details." >&2;} 22877 { (exit 1); exit 1; }; } 22878else 22879 cat >conftest.$ac_ext <<_ACEOF 22880/* confdefs.h. */ 22881_ACEOF 22882cat confdefs.h >>conftest.$ac_ext 22883cat >>conftest.$ac_ext <<_ACEOF 22884/* end confdefs.h. */ 22885 22886#include <unistd.h> 22887#include <fcntl.h> 22888#if defined(HAVE_GDBM_NDBM_H) 22889#include <gdbm/ndbm.h> 22890#elif defined(HAVE_NDBM_H) 22891#include <ndbm.h> 22892#elif defined(HAVE_DBM_H) 22893#include <dbm.h> 22894#endif 22895int main(int argc, char **argv) 22896{ 22897 DBM *d; 22898 22899 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 22900 if (d == NULL) 22901 return 1; 22902 dbm_close(d); 22903 return 0; 22904} 22905_ACEOF 22906rm -f conftest$ac_exeext 22907if { (ac_try="$ac_link" 22908case "(($ac_try" in 22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22910 *) ac_try_echo=$ac_try;; 22911esac 22912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22913 (eval "$ac_link") 2>&5 22914 ac_status=$? 22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22917 { (case "(($ac_try" in 22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22919 *) ac_try_echo=$ac_try;; 22920esac 22921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22922 (eval "$ac_try") 2>&5 22923 ac_status=$? 22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22925 (exit $ac_status); }; }; then 22926 22927 if test -f conftest.db; then 22928 { echo "$as_me:$LINENO: result: yes" >&5 22929echo "${ECHO_T}yes" >&6; } 22930 22931cat >>confdefs.h <<\_ACEOF 22932#define HAVE_NEW_DB 1 22933_ACEOF 22934 22935 else 22936 { echo "$as_me:$LINENO: result: no" >&5 22937echo "${ECHO_T}no" >&6; } 22938 fi 22939else 22940 echo "$as_me: program exited with status $ac_status" >&5 22941echo "$as_me: failed program was:" >&5 22942sed 's/^/| /' conftest.$ac_ext >&5 22943 22944( exit $ac_status ) 22945{ echo "$as_me:$LINENO: result: no" >&5 22946echo "${ECHO_T}no" >&6; } 22947fi 22948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22949fi 22950 22951 22952fi 22953 22954 if test "$db_type" = db1; then 22955 HAVE_DB1_TRUE= 22956 HAVE_DB1_FALSE='#' 22957else 22958 HAVE_DB1_TRUE='#' 22959 HAVE_DB1_FALSE= 22960fi 22961 if test "$db_type" = db3; then 22962 HAVE_DB3_TRUE= 22963 HAVE_DB3_FALSE='#' 22964else 22965 HAVE_DB3_TRUE='#' 22966 HAVE_DB3_FALSE= 22967fi 22968 if test "$db_type" = ndbm; then 22969 HAVE_NDBM_TRUE= 22970 HAVE_NDBM_FALSE='#' 22971else 22972 HAVE_NDBM_TRUE='#' 22973 HAVE_NDBM_FALSE= 22974fi 22975 22976## it's probably not correct to include LDFLAGS here, but we might 22977## need it, for now just add any possible -L 22978z="" 22979for i in $LDFLAGS; do 22980 case "$i" in 22981 -L*) z="$z $i";; 22982 esac 22983done 22984DBLIB="$z $DBLIB" 22985 22986 22987 22988 22989 22990{ echo "$as_me:$LINENO: checking for inline" >&5 22991echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 22992if test "${ac_cv_c_inline+set}" = set; then 22993 echo $ECHO_N "(cached) $ECHO_C" >&6 22994else 22995 ac_cv_c_inline=no 22996for ac_kw in inline __inline__ __inline; do 22997 cat >conftest.$ac_ext <<_ACEOF 22998/* confdefs.h. */ 22999_ACEOF 23000cat confdefs.h >>conftest.$ac_ext 23001cat >>conftest.$ac_ext <<_ACEOF 23002/* end confdefs.h. */ 23003#ifndef __cplusplus 23004typedef int foo_t; 23005static $ac_kw foo_t static_foo () {return 0; } 23006$ac_kw foo_t foo () {return 0; } 23007#endif 23008 23009_ACEOF 23010rm -f conftest.$ac_objext 23011if { (ac_try="$ac_compile" 23012case "(($ac_try" in 23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23014 *) ac_try_echo=$ac_try;; 23015esac 23016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23017 (eval "$ac_compile") 2>conftest.er1 23018 ac_status=$? 23019 grep -v '^ *+' conftest.er1 >conftest.err 23020 rm -f conftest.er1 23021 cat conftest.err >&5 23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23023 (exit $ac_status); } && { 23024 test -z "$ac_c_werror_flag" || 23025 test ! -s conftest.err 23026 } && test -s conftest.$ac_objext; then 23027 ac_cv_c_inline=$ac_kw 23028else 23029 echo "$as_me: failed program was:" >&5 23030sed 's/^/| /' conftest.$ac_ext >&5 23031 23032 23033fi 23034 23035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23036 test "$ac_cv_c_inline" != no && break 23037done 23038 23039fi 23040{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 23041echo "${ECHO_T}$ac_cv_c_inline" >&6; } 23042 23043 23044case $ac_cv_c_inline in 23045 inline | yes) ;; 23046 *) 23047 case $ac_cv_c_inline in 23048 no) ac_val=;; 23049 *) ac_val=$ac_cv_c_inline;; 23050 esac 23051 cat >>confdefs.h <<_ACEOF 23052#ifndef __cplusplus 23053#define inline $ac_val 23054#endif 23055_ACEOF 23056 ;; 23057esac 23058 23059{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 23060echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 23061if test "${ac_cv_c_const+set}" = set; then 23062 echo $ECHO_N "(cached) $ECHO_C" >&6 23063else 23064 cat >conftest.$ac_ext <<_ACEOF 23065/* confdefs.h. */ 23066_ACEOF 23067cat confdefs.h >>conftest.$ac_ext 23068cat >>conftest.$ac_ext <<_ACEOF 23069/* end confdefs.h. */ 23070 23071int 23072main () 23073{ 23074/* FIXME: Include the comments suggested by Paul. */ 23075#ifndef __cplusplus 23076 /* Ultrix mips cc rejects this. */ 23077 typedef int charset[2]; 23078 const charset cs; 23079 /* SunOS 4.1.1 cc rejects this. */ 23080 char const *const *pcpcc; 23081 char **ppc; 23082 /* NEC SVR4.0.2 mips cc rejects this. */ 23083 struct point {int x, y;}; 23084 static struct point const zero = {0,0}; 23085 /* AIX XL C 1.02.0.0 rejects this. 23086 It does not let you subtract one const X* pointer from another in 23087 an arm of an if-expression whose if-part is not a constant 23088 expression */ 23089 const char *g = "string"; 23090 pcpcc = &g + (g ? g-g : 0); 23091 /* HPUX 7.0 cc rejects these. */ 23092 ++pcpcc; 23093 ppc = (char**) pcpcc; 23094 pcpcc = (char const *const *) ppc; 23095 { /* SCO 3.2v4 cc rejects this. */ 23096 char *t; 23097 char const *s = 0 ? (char *) 0 : (char const *) 0; 23098 23099 *t++ = 0; 23100 if (s) return 0; 23101 } 23102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23103 int x[] = {25, 17}; 23104 const int *foo = &x[0]; 23105 ++foo; 23106 } 23107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23108 typedef const int *iptr; 23109 iptr p = 0; 23110 ++p; 23111 } 23112 { /* AIX XL C 1.02.0.0 rejects this saying 23113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23114 struct s { int j; const int *ap[3]; }; 23115 struct s *b; b->j = 5; 23116 } 23117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23118 const int foo = 10; 23119 if (!foo) return 0; 23120 } 23121 return !cs[0] && !zero.x; 23122#endif 23123 23124 ; 23125 return 0; 23126} 23127_ACEOF 23128rm -f conftest.$ac_objext 23129if { (ac_try="$ac_compile" 23130case "(($ac_try" in 23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23132 *) ac_try_echo=$ac_try;; 23133esac 23134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23135 (eval "$ac_compile") 2>conftest.er1 23136 ac_status=$? 23137 grep -v '^ *+' conftest.er1 >conftest.err 23138 rm -f conftest.er1 23139 cat conftest.err >&5 23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23141 (exit $ac_status); } && { 23142 test -z "$ac_c_werror_flag" || 23143 test ! -s conftest.err 23144 } && test -s conftest.$ac_objext; then 23145 ac_cv_c_const=yes 23146else 23147 echo "$as_me: failed program was:" >&5 23148sed 's/^/| /' conftest.$ac_ext >&5 23149 23150 ac_cv_c_const=no 23151fi 23152 23153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23154fi 23155{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 23156echo "${ECHO_T}$ac_cv_c_const" >&6; } 23157if test $ac_cv_c_const = no; then 23158 23159cat >>confdefs.h <<\_ACEOF 23160#define const 23161_ACEOF 23162 23163fi 23164 23165{ echo "$as_me:$LINENO: checking for size_t" >&5 23166echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 23167if test "${ac_cv_type_size_t+set}" = set; then 23168 echo $ECHO_N "(cached) $ECHO_C" >&6 23169else 23170 cat >conftest.$ac_ext <<_ACEOF 23171/* confdefs.h. */ 23172_ACEOF 23173cat confdefs.h >>conftest.$ac_ext 23174cat >>conftest.$ac_ext <<_ACEOF 23175/* end confdefs.h. */ 23176$ac_includes_default 23177typedef size_t ac__type_new_; 23178int 23179main () 23180{ 23181if ((ac__type_new_ *) 0) 23182 return 0; 23183if (sizeof (ac__type_new_)) 23184 return 0; 23185 ; 23186 return 0; 23187} 23188_ACEOF 23189rm -f conftest.$ac_objext 23190if { (ac_try="$ac_compile" 23191case "(($ac_try" in 23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23193 *) ac_try_echo=$ac_try;; 23194esac 23195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23196 (eval "$ac_compile") 2>conftest.er1 23197 ac_status=$? 23198 grep -v '^ *+' conftest.er1 >conftest.err 23199 rm -f conftest.er1 23200 cat conftest.err >&5 23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23202 (exit $ac_status); } && { 23203 test -z "$ac_c_werror_flag" || 23204 test ! -s conftest.err 23205 } && test -s conftest.$ac_objext; then 23206 ac_cv_type_size_t=yes 23207else 23208 echo "$as_me: failed program was:" >&5 23209sed 's/^/| /' conftest.$ac_ext >&5 23210 23211 ac_cv_type_size_t=no 23212fi 23213 23214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23215fi 23216{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 23217echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 23218if test $ac_cv_type_size_t = yes; then 23219 : 23220else 23221 23222cat >>confdefs.h <<_ACEOF 23223#define size_t unsigned int 23224_ACEOF 23225 23226fi 23227 23228{ echo "$as_me:$LINENO: checking for pid_t" >&5 23229echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 23230if test "${ac_cv_type_pid_t+set}" = set; then 23231 echo $ECHO_N "(cached) $ECHO_C" >&6 23232else 23233 cat >conftest.$ac_ext <<_ACEOF 23234/* confdefs.h. */ 23235_ACEOF 23236cat confdefs.h >>conftest.$ac_ext 23237cat >>conftest.$ac_ext <<_ACEOF 23238/* end confdefs.h. */ 23239$ac_includes_default 23240typedef pid_t ac__type_new_; 23241int 23242main () 23243{ 23244if ((ac__type_new_ *) 0) 23245 return 0; 23246if (sizeof (ac__type_new_)) 23247 return 0; 23248 ; 23249 return 0; 23250} 23251_ACEOF 23252rm -f conftest.$ac_objext 23253if { (ac_try="$ac_compile" 23254case "(($ac_try" in 23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23256 *) ac_try_echo=$ac_try;; 23257esac 23258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23259 (eval "$ac_compile") 2>conftest.er1 23260 ac_status=$? 23261 grep -v '^ *+' conftest.er1 >conftest.err 23262 rm -f conftest.er1 23263 cat conftest.err >&5 23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23265 (exit $ac_status); } && { 23266 test -z "$ac_c_werror_flag" || 23267 test ! -s conftest.err 23268 } && test -s conftest.$ac_objext; then 23269 ac_cv_type_pid_t=yes 23270else 23271 echo "$as_me: failed program was:" >&5 23272sed 's/^/| /' conftest.$ac_ext >&5 23273 23274 ac_cv_type_pid_t=no 23275fi 23276 23277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23278fi 23279{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 23280echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 23281if test $ac_cv_type_pid_t = yes; then 23282 : 23283else 23284 23285cat >>confdefs.h <<_ACEOF 23286#define pid_t int 23287_ACEOF 23288 23289fi 23290 23291{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 23292echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } 23293if test "${ac_cv_type_uid_t+set}" = set; then 23294 echo $ECHO_N "(cached) $ECHO_C" >&6 23295else 23296 cat >conftest.$ac_ext <<_ACEOF 23297/* confdefs.h. */ 23298_ACEOF 23299cat confdefs.h >>conftest.$ac_ext 23300cat >>conftest.$ac_ext <<_ACEOF 23301/* end confdefs.h. */ 23302#include <sys/types.h> 23303 23304_ACEOF 23305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23306 $EGREP "uid_t" >/dev/null 2>&1; then 23307 ac_cv_type_uid_t=yes 23308else 23309 ac_cv_type_uid_t=no 23310fi 23311rm -f conftest* 23312 23313fi 23314{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 23315echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } 23316if test $ac_cv_type_uid_t = no; then 23317 23318cat >>confdefs.h <<\_ACEOF 23319#define uid_t int 23320_ACEOF 23321 23322 23323cat >>confdefs.h <<\_ACEOF 23324#define gid_t int 23325_ACEOF 23326 23327fi 23328 23329 23330{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 23331echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 23332if test "${ac_cv_type_signal+set}" = set; then 23333 echo $ECHO_N "(cached) $ECHO_C" >&6 23334else 23335 cat >conftest.$ac_ext <<_ACEOF 23336/* confdefs.h. */ 23337_ACEOF 23338cat confdefs.h >>conftest.$ac_ext 23339cat >>conftest.$ac_ext <<_ACEOF 23340/* end confdefs.h. */ 23341#include <sys/types.h> 23342#include <signal.h> 23343 23344int 23345main () 23346{ 23347return *(signal (0, 0)) (0) == 1; 23348 ; 23349 return 0; 23350} 23351_ACEOF 23352rm -f conftest.$ac_objext 23353if { (ac_try="$ac_compile" 23354case "(($ac_try" in 23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23356 *) ac_try_echo=$ac_try;; 23357esac 23358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23359 (eval "$ac_compile") 2>conftest.er1 23360 ac_status=$? 23361 grep -v '^ *+' conftest.er1 >conftest.err 23362 rm -f conftest.er1 23363 cat conftest.err >&5 23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23365 (exit $ac_status); } && { 23366 test -z "$ac_c_werror_flag" || 23367 test ! -s conftest.err 23368 } && test -s conftest.$ac_objext; then 23369 ac_cv_type_signal=int 23370else 23371 echo "$as_me: failed program was:" >&5 23372sed 's/^/| /' conftest.$ac_ext >&5 23373 23374 ac_cv_type_signal=void 23375fi 23376 23377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23378fi 23379{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 23380echo "${ECHO_T}$ac_cv_type_signal" >&6; } 23381 23382cat >>confdefs.h <<_ACEOF 23383#define RETSIGTYPE $ac_cv_type_signal 23384_ACEOF 23385 23386 23387if test "$ac_cv_type_signal" = "void" ; then 23388 23389cat >>confdefs.h <<\_ACEOF 23390#define VOID_RETSIGTYPE 1 23391_ACEOF 23392 23393fi 23394 23395 23396 23397 23398{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 23399echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 23400if test "${ac_cv_header_time+set}" = set; then 23401 echo $ECHO_N "(cached) $ECHO_C" >&6 23402else 23403 cat >conftest.$ac_ext <<_ACEOF 23404/* confdefs.h. */ 23405_ACEOF 23406cat confdefs.h >>conftest.$ac_ext 23407cat >>conftest.$ac_ext <<_ACEOF 23408/* end confdefs.h. */ 23409#include <sys/types.h> 23410#include <sys/time.h> 23411#include <time.h> 23412 23413int 23414main () 23415{ 23416if ((struct tm *) 0) 23417return 0; 23418 ; 23419 return 0; 23420} 23421_ACEOF 23422rm -f conftest.$ac_objext 23423if { (ac_try="$ac_compile" 23424case "(($ac_try" in 23425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23426 *) ac_try_echo=$ac_try;; 23427esac 23428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23429 (eval "$ac_compile") 2>conftest.er1 23430 ac_status=$? 23431 grep -v '^ *+' conftest.er1 >conftest.err 23432 rm -f conftest.er1 23433 cat conftest.err >&5 23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23435 (exit $ac_status); } && { 23436 test -z "$ac_c_werror_flag" || 23437 test ! -s conftest.err 23438 } && test -s conftest.$ac_objext; then 23439 ac_cv_header_time=yes 23440else 23441 echo "$as_me: failed program was:" >&5 23442sed 's/^/| /' conftest.$ac_ext >&5 23443 23444 ac_cv_header_time=no 23445fi 23446 23447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23448fi 23449{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 23450echo "${ECHO_T}$ac_cv_header_time" >&6; } 23451if test $ac_cv_header_time = yes; then 23452 23453cat >>confdefs.h <<\_ACEOF 23454#define TIME_WITH_SYS_TIME 1 23455_ACEOF 23456 23457fi 23458 23459 23460 23461for ac_header in standards.h 23462do 23463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23465 { echo "$as_me:$LINENO: checking for $ac_header" >&5 23466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 23467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23468 echo $ECHO_N "(cached) $ECHO_C" >&6 23469fi 23470ac_res=`eval echo '${'$as_ac_Header'}'` 23471 { echo "$as_me:$LINENO: result: $ac_res" >&5 23472echo "${ECHO_T}$ac_res" >&6; } 23473else 23474 # Is the header compilable? 23475{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 23476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 23477cat >conftest.$ac_ext <<_ACEOF 23478/* confdefs.h. */ 23479_ACEOF 23480cat confdefs.h >>conftest.$ac_ext 23481cat >>conftest.$ac_ext <<_ACEOF 23482/* end confdefs.h. */ 23483$ac_includes_default 23484#include <$ac_header> 23485_ACEOF 23486rm -f conftest.$ac_objext 23487if { (ac_try="$ac_compile" 23488case "(($ac_try" in 23489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23490 *) ac_try_echo=$ac_try;; 23491esac 23492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23493 (eval "$ac_compile") 2>conftest.er1 23494 ac_status=$? 23495 grep -v '^ *+' conftest.er1 >conftest.err 23496 rm -f conftest.er1 23497 cat conftest.err >&5 23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23499 (exit $ac_status); } && { 23500 test -z "$ac_c_werror_flag" || 23501 test ! -s conftest.err 23502 } && test -s conftest.$ac_objext; then 23503 ac_header_compiler=yes 23504else 23505 echo "$as_me: failed program was:" >&5 23506sed 's/^/| /' conftest.$ac_ext >&5 23507 23508 ac_header_compiler=no 23509fi 23510 23511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23513echo "${ECHO_T}$ac_header_compiler" >&6; } 23514 23515# Is the header present? 23516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 23517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 23518cat >conftest.$ac_ext <<_ACEOF 23519/* confdefs.h. */ 23520_ACEOF 23521cat confdefs.h >>conftest.$ac_ext 23522cat >>conftest.$ac_ext <<_ACEOF 23523/* end confdefs.h. */ 23524#include <$ac_header> 23525_ACEOF 23526if { (ac_try="$ac_cpp conftest.$ac_ext" 23527case "(($ac_try" in 23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23529 *) ac_try_echo=$ac_try;; 23530esac 23531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23533 ac_status=$? 23534 grep -v '^ *+' conftest.er1 >conftest.err 23535 rm -f conftest.er1 23536 cat conftest.err >&5 23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23538 (exit $ac_status); } >/dev/null && { 23539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23540 test ! -s conftest.err 23541 }; then 23542 ac_header_preproc=yes 23543else 23544 echo "$as_me: failed program was:" >&5 23545sed 's/^/| /' conftest.$ac_ext >&5 23546 23547 ac_header_preproc=no 23548fi 23549 23550rm -f conftest.err conftest.$ac_ext 23551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23552echo "${ECHO_T}$ac_header_preproc" >&6; } 23553 23554# So? What about this header? 23555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23556 yes:no: ) 23557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23561 ac_header_preproc=yes 23562 ;; 23563 no:yes:* ) 23564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23576 ( cat <<\_ASBOX 23577## ----------------------------------- ## 23578## Report this to heimdal-bugs@h5l.org ## 23579## ----------------------------------- ## 23580_ASBOX 23581 ) | sed "s/^/$as_me: WARNING: /" >&2 23582 ;; 23583esac 23584{ echo "$as_me:$LINENO: checking for $ac_header" >&5 23585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 23586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23587 echo $ECHO_N "(cached) $ECHO_C" >&6 23588else 23589 eval "$as_ac_Header=\$ac_header_preproc" 23590fi 23591ac_res=`eval echo '${'$as_ac_Header'}'` 23592 { echo "$as_me:$LINENO: result: $ac_res" >&5 23593echo "${ECHO_T}$ac_res" >&6; } 23594 23595fi 23596if test `eval echo '${'$as_ac_Header'}'` = yes; then 23597 cat >>confdefs.h <<_ACEOF 23598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23599_ACEOF 23600 23601fi 23602 23603done 23604 23605for i in netinet/ip.h netinet/tcp.h; do 23606 23607cv=`echo "$i" | sed 'y%./+-%__p_%'` 23608 23609{ echo "$as_me:$LINENO: checking for $i" >&5 23610echo $ECHO_N "checking for $i... $ECHO_C" >&6; } 23611if { as_var=ac_cv_header_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 23612 echo $ECHO_N "(cached) $ECHO_C" >&6 23613else 23614 cat >conftest.$ac_ext <<_ACEOF 23615/* confdefs.h. */ 23616_ACEOF 23617cat confdefs.h >>conftest.$ac_ext 23618cat >>conftest.$ac_ext <<_ACEOF 23619/* end confdefs.h. */ 23620 23621#ifdef HAVE_STANDARDS_H 23622#include <standards.h> 23623#endif 23624#include <$i> 23625 23626_ACEOF 23627if { (ac_try="$ac_cpp conftest.$ac_ext" 23628case "(($ac_try" in 23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23630 *) ac_try_echo=$ac_try;; 23631esac 23632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23634 ac_status=$? 23635 grep -v '^ *+' conftest.er1 >conftest.err 23636 rm -f conftest.er1 23637 cat conftest.err >&5 23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23639 (exit $ac_status); } >/dev/null && { 23640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23641 test ! -s conftest.err 23642 }; then 23643 eval "ac_cv_header_$cv=yes" 23644else 23645 echo "$as_me: failed program was:" >&5 23646sed 's/^/| /' conftest.$ac_ext >&5 23647 23648 eval "ac_cv_header_$cv=no" 23649fi 23650 23651rm -f conftest.err conftest.$ac_ext 23652fi 23653ac_res=`eval echo '${'ac_cv_header_$cv'}'` 23654 { echo "$as_me:$LINENO: result: $ac_res" >&5 23655echo "${ECHO_T}$ac_res" >&6; } 23656ac_res=`eval echo \\$ac_cv_header_$cv` 23657if test "$ac_res" = yes; then 23658 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 23659 cat >>confdefs.h <<_ACEOF 23660#define $ac_tr_hdr 1 23661_ACEOF 23662 23663fi 23664done 23665if false;then 23666 23667 23668for ac_header in netinet/ip.h netinet/tcp.h 23669do 23670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23672 { echo "$as_me:$LINENO: checking for $ac_header" >&5 23673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 23674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23675 echo $ECHO_N "(cached) $ECHO_C" >&6 23676fi 23677ac_res=`eval echo '${'$as_ac_Header'}'` 23678 { echo "$as_me:$LINENO: result: $ac_res" >&5 23679echo "${ECHO_T}$ac_res" >&6; } 23680else 23681 # Is the header compilable? 23682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 23683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 23684cat >conftest.$ac_ext <<_ACEOF 23685/* confdefs.h. */ 23686_ACEOF 23687cat confdefs.h >>conftest.$ac_ext 23688cat >>conftest.$ac_ext <<_ACEOF 23689/* end confdefs.h. */ 23690$ac_includes_default 23691#include <$ac_header> 23692_ACEOF 23693rm -f conftest.$ac_objext 23694if { (ac_try="$ac_compile" 23695case "(($ac_try" in 23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23697 *) ac_try_echo=$ac_try;; 23698esac 23699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23700 (eval "$ac_compile") 2>conftest.er1 23701 ac_status=$? 23702 grep -v '^ *+' conftest.er1 >conftest.err 23703 rm -f conftest.er1 23704 cat conftest.err >&5 23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23706 (exit $ac_status); } && { 23707 test -z "$ac_c_werror_flag" || 23708 test ! -s conftest.err 23709 } && test -s conftest.$ac_objext; then 23710 ac_header_compiler=yes 23711else 23712 echo "$as_me: failed program was:" >&5 23713sed 's/^/| /' conftest.$ac_ext >&5 23714 23715 ac_header_compiler=no 23716fi 23717 23718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23720echo "${ECHO_T}$ac_header_compiler" >&6; } 23721 23722# Is the header present? 23723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 23724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 23725cat >conftest.$ac_ext <<_ACEOF 23726/* confdefs.h. */ 23727_ACEOF 23728cat confdefs.h >>conftest.$ac_ext 23729cat >>conftest.$ac_ext <<_ACEOF 23730/* end confdefs.h. */ 23731#include <$ac_header> 23732_ACEOF 23733if { (ac_try="$ac_cpp conftest.$ac_ext" 23734case "(($ac_try" in 23735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23736 *) ac_try_echo=$ac_try;; 23737esac 23738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 23740 ac_status=$? 23741 grep -v '^ *+' conftest.er1 >conftest.err 23742 rm -f conftest.er1 23743 cat conftest.err >&5 23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23745 (exit $ac_status); } >/dev/null && { 23746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 23747 test ! -s conftest.err 23748 }; then 23749 ac_header_preproc=yes 23750else 23751 echo "$as_me: failed program was:" >&5 23752sed 's/^/| /' conftest.$ac_ext >&5 23753 23754 ac_header_preproc=no 23755fi 23756 23757rm -f conftest.err conftest.$ac_ext 23758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23759echo "${ECHO_T}$ac_header_preproc" >&6; } 23760 23761# So? What about this header? 23762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23763 yes:no: ) 23764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23768 ac_header_preproc=yes 23769 ;; 23770 no:yes:* ) 23771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23783 ( cat <<\_ASBOX 23784## ----------------------------------- ## 23785## Report this to heimdal-bugs@h5l.org ## 23786## ----------------------------------- ## 23787_ASBOX 23788 ) | sed "s/^/$as_me: WARNING: /" >&2 23789 ;; 23790esac 23791{ echo "$as_me:$LINENO: checking for $ac_header" >&5 23792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 23793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23794 echo $ECHO_N "(cached) $ECHO_C" >&6 23795else 23796 eval "$as_ac_Header=\$ac_header_preproc" 23797fi 23798ac_res=`eval echo '${'$as_ac_Header'}'` 23799 { echo "$as_me:$LINENO: result: $ac_res" >&5 23800echo "${ECHO_T}$ac_res" >&6; } 23801 23802fi 23803if test `eval echo '${'$as_ac_Header'}'` = yes; then 23804 cat >>confdefs.h <<_ACEOF 23805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23806_ACEOF 23807 23808fi 23809 23810done 23811 23812fi 23813 23814 23815 23816 23817for ac_func in getlogin setlogin 23818do 23819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23820{ echo "$as_me:$LINENO: checking for $ac_func" >&5 23821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 23822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 23823 echo $ECHO_N "(cached) $ECHO_C" >&6 23824else 23825 cat >conftest.$ac_ext <<_ACEOF 23826/* confdefs.h. */ 23827_ACEOF 23828cat confdefs.h >>conftest.$ac_ext 23829cat >>conftest.$ac_ext <<_ACEOF 23830/* end confdefs.h. */ 23831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23833#define $ac_func innocuous_$ac_func 23834 23835/* System header to define __stub macros and hopefully few prototypes, 23836 which can conflict with char $ac_func (); below. 23837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23838 <limits.h> exists even on freestanding compilers. */ 23839 23840#ifdef __STDC__ 23841# include <limits.h> 23842#else 23843# include <assert.h> 23844#endif 23845 23846#undef $ac_func 23847 23848/* Override any GCC internal prototype to avoid an error. 23849 Use char because int might match the return type of a GCC 23850 builtin and then its argument prototype would still apply. */ 23851#ifdef __cplusplus 23852extern "C" 23853#endif 23854char $ac_func (); 23855/* The GNU C library defines this for functions which it implements 23856 to always fail with ENOSYS. Some functions are actually named 23857 something starting with __ and the normal name is an alias. */ 23858#if defined __stub_$ac_func || defined __stub___$ac_func 23859choke me 23860#endif 23861 23862int 23863main () 23864{ 23865return $ac_func (); 23866 ; 23867 return 0; 23868} 23869_ACEOF 23870rm -f conftest.$ac_objext conftest$ac_exeext 23871if { (ac_try="$ac_link" 23872case "(($ac_try" in 23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23874 *) ac_try_echo=$ac_try;; 23875esac 23876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23877 (eval "$ac_link") 2>conftest.er1 23878 ac_status=$? 23879 grep -v '^ *+' conftest.er1 >conftest.err 23880 rm -f conftest.er1 23881 cat conftest.err >&5 23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23883 (exit $ac_status); } && { 23884 test -z "$ac_c_werror_flag" || 23885 test ! -s conftest.err 23886 } && test -s conftest$ac_exeext && 23887 $as_test_x conftest$ac_exeext; then 23888 eval "$as_ac_var=yes" 23889else 23890 echo "$as_me: failed program was:" >&5 23891sed 's/^/| /' conftest.$ac_ext >&5 23892 23893 eval "$as_ac_var=no" 23894fi 23895 23896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23897 conftest$ac_exeext conftest.$ac_ext 23898fi 23899ac_res=`eval echo '${'$as_ac_var'}'` 23900 { echo "$as_me:$LINENO: result: $ac_res" >&5 23901echo "${ECHO_T}$ac_res" >&6; } 23902if test `eval echo '${'$as_ac_var'}'` = yes; then 23903 cat >>confdefs.h <<_ACEOF 23904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23905_ACEOF 23906 23907fi 23908done 23909 23910if test "$ac_cv_func_getlogin" = yes; then 23911{ echo "$as_me:$LINENO: checking if getlogin is posix" >&5 23912echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6; } 23913if test "${ac_cv_func_getlogin_posix+set}" = set; then 23914 echo $ECHO_N "(cached) $ECHO_C" >&6 23915else 23916 23917if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 23918 ac_cv_func_getlogin_posix=no 23919else 23920 ac_cv_func_getlogin_posix=yes 23921fi 23922 23923fi 23924{ echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5 23925echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6; } 23926if test "$ac_cv_func_getlogin_posix" = yes; then 23927 23928cat >>confdefs.h <<\_ACEOF 23929#define POSIX_GETLOGIN 1 23930_ACEOF 23931 23932fi 23933fi 23934 23935 23936 23937for ac_header in stdlib.h unistd.h 23938do 23939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23941 { echo "$as_me:$LINENO: checking for $ac_header" >&5 23942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 23943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 23944 echo $ECHO_N "(cached) $ECHO_C" >&6 23945fi 23946ac_res=`eval echo '${'$as_ac_Header'}'` 23947 { echo "$as_me:$LINENO: result: $ac_res" >&5 23948echo "${ECHO_T}$ac_res" >&6; } 23949else 23950 # Is the header compilable? 23951{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 23952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 23953cat >conftest.$ac_ext <<_ACEOF 23954/* confdefs.h. */ 23955_ACEOF 23956cat confdefs.h >>conftest.$ac_ext 23957cat >>conftest.$ac_ext <<_ACEOF 23958/* end confdefs.h. */ 23959$ac_includes_default 23960#include <$ac_header> 23961_ACEOF 23962rm -f conftest.$ac_objext 23963if { (ac_try="$ac_compile" 23964case "(($ac_try" in 23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23966 *) ac_try_echo=$ac_try;; 23967esac 23968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23969 (eval "$ac_compile") 2>conftest.er1 23970 ac_status=$? 23971 grep -v '^ *+' conftest.er1 >conftest.err 23972 rm -f conftest.er1 23973 cat conftest.err >&5 23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23975 (exit $ac_status); } && { 23976 test -z "$ac_c_werror_flag" || 23977 test ! -s conftest.err 23978 } && test -s conftest.$ac_objext; then 23979 ac_header_compiler=yes 23980else 23981 echo "$as_me: failed program was:" >&5 23982sed 's/^/| /' conftest.$ac_ext >&5 23983 23984 ac_header_compiler=no 23985fi 23986 23987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23988{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23989echo "${ECHO_T}$ac_header_compiler" >&6; } 23990 23991# Is the header present? 23992{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 23993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 23994cat >conftest.$ac_ext <<_ACEOF 23995/* confdefs.h. */ 23996_ACEOF 23997cat confdefs.h >>conftest.$ac_ext 23998cat >>conftest.$ac_ext <<_ACEOF 23999/* end confdefs.h. */ 24000#include <$ac_header> 24001_ACEOF 24002if { (ac_try="$ac_cpp conftest.$ac_ext" 24003case "(($ac_try" in 24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24005 *) ac_try_echo=$ac_try;; 24006esac 24007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 24009 ac_status=$? 24010 grep -v '^ *+' conftest.er1 >conftest.err 24011 rm -f conftest.er1 24012 cat conftest.err >&5 24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24014 (exit $ac_status); } >/dev/null && { 24015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 24016 test ! -s conftest.err 24017 }; then 24018 ac_header_preproc=yes 24019else 24020 echo "$as_me: failed program was:" >&5 24021sed 's/^/| /' conftest.$ac_ext >&5 24022 24023 ac_header_preproc=no 24024fi 24025 24026rm -f conftest.err conftest.$ac_ext 24027{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24028echo "${ECHO_T}$ac_header_preproc" >&6; } 24029 24030# So? What about this header? 24031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24032 yes:no: ) 24033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24037 ac_header_preproc=yes 24038 ;; 24039 no:yes:* ) 24040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24052 ( cat <<\_ASBOX 24053## ----------------------------------- ## 24054## Report this to heimdal-bugs@h5l.org ## 24055## ----------------------------------- ## 24056_ASBOX 24057 ) | sed "s/^/$as_me: WARNING: /" >&2 24058 ;; 24059esac 24060{ echo "$as_me:$LINENO: checking for $ac_header" >&5 24061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24063 echo $ECHO_N "(cached) $ECHO_C" >&6 24064else 24065 eval "$as_ac_Header=\$ac_header_preproc" 24066fi 24067ac_res=`eval echo '${'$as_ac_Header'}'` 24068 { echo "$as_me:$LINENO: result: $ac_res" >&5 24069echo "${ECHO_T}$ac_res" >&6; } 24070 24071fi 24072if test `eval echo '${'$as_ac_Header'}'` = yes; then 24073 cat >>confdefs.h <<_ACEOF 24074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24075_ACEOF 24076 24077fi 24078 24079done 24080 24081 24082for ac_func in getpagesize 24083do 24084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24085{ echo "$as_me:$LINENO: checking for $ac_func" >&5 24086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 24087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 24088 echo $ECHO_N "(cached) $ECHO_C" >&6 24089else 24090 cat >conftest.$ac_ext <<_ACEOF 24091/* confdefs.h. */ 24092_ACEOF 24093cat confdefs.h >>conftest.$ac_ext 24094cat >>conftest.$ac_ext <<_ACEOF 24095/* end confdefs.h. */ 24096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24098#define $ac_func innocuous_$ac_func 24099 24100/* System header to define __stub macros and hopefully few prototypes, 24101 which can conflict with char $ac_func (); below. 24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24103 <limits.h> exists even on freestanding compilers. */ 24104 24105#ifdef __STDC__ 24106# include <limits.h> 24107#else 24108# include <assert.h> 24109#endif 24110 24111#undef $ac_func 24112 24113/* Override any GCC internal prototype to avoid an error. 24114 Use char because int might match the return type of a GCC 24115 builtin and then its argument prototype would still apply. */ 24116#ifdef __cplusplus 24117extern "C" 24118#endif 24119char $ac_func (); 24120/* The GNU C library defines this for functions which it implements 24121 to always fail with ENOSYS. Some functions are actually named 24122 something starting with __ and the normal name is an alias. */ 24123#if defined __stub_$ac_func || defined __stub___$ac_func 24124choke me 24125#endif 24126 24127int 24128main () 24129{ 24130return $ac_func (); 24131 ; 24132 return 0; 24133} 24134_ACEOF 24135rm -f conftest.$ac_objext conftest$ac_exeext 24136if { (ac_try="$ac_link" 24137case "(($ac_try" in 24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24139 *) ac_try_echo=$ac_try;; 24140esac 24141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24142 (eval "$ac_link") 2>conftest.er1 24143 ac_status=$? 24144 grep -v '^ *+' conftest.er1 >conftest.err 24145 rm -f conftest.er1 24146 cat conftest.err >&5 24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24148 (exit $ac_status); } && { 24149 test -z "$ac_c_werror_flag" || 24150 test ! -s conftest.err 24151 } && test -s conftest$ac_exeext && 24152 $as_test_x conftest$ac_exeext; then 24153 eval "$as_ac_var=yes" 24154else 24155 echo "$as_me: failed program was:" >&5 24156sed 's/^/| /' conftest.$ac_ext >&5 24157 24158 eval "$as_ac_var=no" 24159fi 24160 24161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24162 conftest$ac_exeext conftest.$ac_ext 24163fi 24164ac_res=`eval echo '${'$as_ac_var'}'` 24165 { echo "$as_me:$LINENO: result: $ac_res" >&5 24166echo "${ECHO_T}$ac_res" >&6; } 24167if test `eval echo '${'$as_ac_var'}'` = yes; then 24168 cat >>confdefs.h <<_ACEOF 24169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24170_ACEOF 24171 24172fi 24173done 24174 24175{ echo "$as_me:$LINENO: checking for working mmap" >&5 24176echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 24177if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 24178 echo $ECHO_N "(cached) $ECHO_C" >&6 24179else 24180 if test "$cross_compiling" = yes; then 24181 ac_cv_func_mmap_fixed_mapped=no 24182else 24183 cat >conftest.$ac_ext <<_ACEOF 24184/* confdefs.h. */ 24185_ACEOF 24186cat confdefs.h >>conftest.$ac_ext 24187cat >>conftest.$ac_ext <<_ACEOF 24188/* end confdefs.h. */ 24189$ac_includes_default 24190/* malloc might have been renamed as rpl_malloc. */ 24191#undef malloc 24192 24193/* Thanks to Mike Haertel and Jim Avera for this test. 24194 Here is a matrix of mmap possibilities: 24195 mmap private not fixed 24196 mmap private fixed at somewhere currently unmapped 24197 mmap private fixed at somewhere already mapped 24198 mmap shared not fixed 24199 mmap shared fixed at somewhere currently unmapped 24200 mmap shared fixed at somewhere already mapped 24201 For private mappings, we should verify that changes cannot be read() 24202 back from the file, nor mmap's back from the file at a different 24203 address. (There have been systems where private was not correctly 24204 implemented like the infamous i386 svr4.0, and systems where the 24205 VM page cache was not coherent with the file system buffer cache 24206 like early versions of FreeBSD and possibly contemporary NetBSD.) 24207 For shared mappings, we should conversely verify that changes get 24208 propagated back to all the places they're supposed to be. 24209 24210 Grep wants private fixed already mapped. 24211 The main things grep needs to know about mmap are: 24212 * does it exist and is it safe to write into the mmap'd area 24213 * how to use it (BSD variants) */ 24214 24215#include <fcntl.h> 24216#include <sys/mman.h> 24217 24218#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 24219char *malloc (); 24220#endif 24221 24222/* This mess was copied from the GNU getpagesize.h. */ 24223#ifndef HAVE_GETPAGESIZE 24224/* Assume that all systems that can run configure have sys/param.h. */ 24225# ifndef HAVE_SYS_PARAM_H 24226# define HAVE_SYS_PARAM_H 1 24227# endif 24228 24229# ifdef _SC_PAGESIZE 24230# define getpagesize() sysconf(_SC_PAGESIZE) 24231# else /* no _SC_PAGESIZE */ 24232# ifdef HAVE_SYS_PARAM_H 24233# include <sys/param.h> 24234# ifdef EXEC_PAGESIZE 24235# define getpagesize() EXEC_PAGESIZE 24236# else /* no EXEC_PAGESIZE */ 24237# ifdef NBPG 24238# define getpagesize() NBPG * CLSIZE 24239# ifndef CLSIZE 24240# define CLSIZE 1 24241# endif /* no CLSIZE */ 24242# else /* no NBPG */ 24243# ifdef NBPC 24244# define getpagesize() NBPC 24245# else /* no NBPC */ 24246# ifdef PAGESIZE 24247# define getpagesize() PAGESIZE 24248# endif /* PAGESIZE */ 24249# endif /* no NBPC */ 24250# endif /* no NBPG */ 24251# endif /* no EXEC_PAGESIZE */ 24252# else /* no HAVE_SYS_PARAM_H */ 24253# define getpagesize() 8192 /* punt totally */ 24254# endif /* no HAVE_SYS_PARAM_H */ 24255# endif /* no _SC_PAGESIZE */ 24256 24257#endif /* no HAVE_GETPAGESIZE */ 24258 24259int 24260main () 24261{ 24262 char *data, *data2, *data3; 24263 int i, pagesize; 24264 int fd; 24265 24266 pagesize = getpagesize (); 24267 24268 /* First, make a file with some known garbage in it. */ 24269 data = (char *) malloc (pagesize); 24270 if (!data) 24271 return 1; 24272 for (i = 0; i < pagesize; ++i) 24273 *(data + i) = rand (); 24274 umask (0); 24275 fd = creat ("conftest.mmap", 0600); 24276 if (fd < 0) 24277 return 1; 24278 if (write (fd, data, pagesize) != pagesize) 24279 return 1; 24280 close (fd); 24281 24282 /* Next, try to mmap the file at a fixed address which already has 24283 something else allocated at it. If we can, also make sure that 24284 we see the same garbage. */ 24285 fd = open ("conftest.mmap", O_RDWR); 24286 if (fd < 0) 24287 return 1; 24288 data2 = (char *) malloc (2 * pagesize); 24289 if (!data2) 24290 return 1; 24291 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 24292 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 24293 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 24294 return 1; 24295 for (i = 0; i < pagesize; ++i) 24296 if (*(data + i) != *(data2 + i)) 24297 return 1; 24298 24299 /* Finally, make sure that changes to the mapped area do not 24300 percolate back to the file as seen by read(). (This is a bug on 24301 some variants of i386 svr4.0.) */ 24302 for (i = 0; i < pagesize; ++i) 24303 *(data2 + i) = *(data2 + i) + 1; 24304 data3 = (char *) malloc (pagesize); 24305 if (!data3) 24306 return 1; 24307 if (read (fd, data3, pagesize) != pagesize) 24308 return 1; 24309 for (i = 0; i < pagesize; ++i) 24310 if (*(data + i) != *(data3 + i)) 24311 return 1; 24312 close (fd); 24313 return 0; 24314} 24315_ACEOF 24316rm -f conftest$ac_exeext 24317if { (ac_try="$ac_link" 24318case "(($ac_try" in 24319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24320 *) ac_try_echo=$ac_try;; 24321esac 24322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24323 (eval "$ac_link") 2>&5 24324 ac_status=$? 24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24327 { (case "(($ac_try" in 24328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24329 *) ac_try_echo=$ac_try;; 24330esac 24331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24332 (eval "$ac_try") 2>&5 24333 ac_status=$? 24334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24335 (exit $ac_status); }; }; then 24336 ac_cv_func_mmap_fixed_mapped=yes 24337else 24338 echo "$as_me: program exited with status $ac_status" >&5 24339echo "$as_me: failed program was:" >&5 24340sed 's/^/| /' conftest.$ac_ext >&5 24341 24342( exit $ac_status ) 24343ac_cv_func_mmap_fixed_mapped=no 24344fi 24345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24346fi 24347 24348 24349fi 24350{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 24351echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 24352if test $ac_cv_func_mmap_fixed_mapped = yes; then 24353 24354cat >>confdefs.h <<\_ACEOF 24355#define HAVE_MMAP 1 24356_ACEOF 24357 24358fi 24359rm -f conftest.mmap 24360 24361 24362{ echo "$as_me:$LINENO: checking if realloc if broken" >&5 24363echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6; } 24364if test "${ac_cv_func_realloc_broken+set}" = set; then 24365 echo $ECHO_N "(cached) $ECHO_C" >&6 24366else 24367 24368ac_cv_func_realloc_broken=no 24369if test "$cross_compiling" = yes; then 24370 : 24371else 24372 cat >conftest.$ac_ext <<_ACEOF 24373/* confdefs.h. */ 24374_ACEOF 24375cat confdefs.h >>conftest.$ac_ext 24376cat >>conftest.$ac_ext <<_ACEOF 24377/* end confdefs.h. */ 24378 24379#include <stddef.h> 24380#include <stdlib.h> 24381 24382int main(int argc, char **argv) 24383{ 24384 return realloc(NULL, 17) == NULL; 24385} 24386 24387_ACEOF 24388rm -f conftest$ac_exeext 24389if { (ac_try="$ac_link" 24390case "(($ac_try" in 24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24392 *) ac_try_echo=$ac_try;; 24393esac 24394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24395 (eval "$ac_link") 2>&5 24396 ac_status=$? 24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24399 { (case "(($ac_try" in 24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24401 *) ac_try_echo=$ac_try;; 24402esac 24403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24404 (eval "$ac_try") 2>&5 24405 ac_status=$? 24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24407 (exit $ac_status); }; }; then 24408 : 24409else 24410 echo "$as_me: program exited with status $ac_status" >&5 24411echo "$as_me: failed program was:" >&5 24412sed 's/^/| /' conftest.$ac_ext >&5 24413 24414( exit $ac_status ) 24415ac_cv_func_realloc_broken=yes 24416fi 24417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24418fi 24419 24420 24421 24422fi 24423{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5 24424echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6; } 24425if test "$ac_cv_func_realloc_broken" = yes ; then 24426 24427cat >>confdefs.h <<\_ACEOF 24428#define BROKEN_REALLOC 1 24429_ACEOF 24430 24431fi 24432 24433 24434 24435 24436 24437 24438 24439DIR_roken=roken 24440LIB_roken='$(top_builddir)/lib/roken/libroken.la' 24441INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457# Check whether --enable-developer was given. 24458if test "${enable_developer+set}" = set; then 24459 enableval=$enable_developer; 24460fi 24461 24462if test "X$enable_developer" = Xyes; then 24463 dwflags="-Werror" 24464fi 24465 24466WFLAGS_NOUNUSED="" 24467WFLAGS_NOIMPLICITINT="" 24468if test -z "$WFLAGS" -a "$GCC" = "yes"; then 24469 # -Wno-implicit-int for broken X11 headers 24470 # leave these out for now: 24471 # -Wcast-align doesn't work well on alpha osf/1 24472 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 24473 # -Wmissing-declarations -Wnested-externs 24474 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 24475 WFLAGS_NOUNUSED="-Wno-unused" 24476 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 24477fi 24478 24479 24480 24481 24482 24483 24484 24485 24486cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 24487{ echo "$as_me:$LINENO: checking for ssize_t" >&5 24488echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 24489if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 24490 echo $ECHO_N "(cached) $ECHO_C" >&6 24491else 24492 cat >conftest.$ac_ext <<_ACEOF 24493/* confdefs.h. */ 24494_ACEOF 24495cat confdefs.h >>conftest.$ac_ext 24496cat >>conftest.$ac_ext <<_ACEOF 24497/* end confdefs.h. */ 24498 24499#include <sys/types.h> 24500#if STDC_HEADERS 24501#include <stdlib.h> 24502#include <stddef.h> 24503#endif 24504#include <unistd.h> 24505int 24506main () 24507{ 24508ssize_t foo; 24509 ; 24510 return 0; 24511} 24512_ACEOF 24513rm -f conftest.$ac_objext 24514if { (ac_try="$ac_compile" 24515case "(($ac_try" in 24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24517 *) ac_try_echo=$ac_try;; 24518esac 24519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24520 (eval "$ac_compile") 2>conftest.er1 24521 ac_status=$? 24522 grep -v '^ *+' conftest.er1 >conftest.err 24523 rm -f conftest.er1 24524 cat conftest.err >&5 24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24526 (exit $ac_status); } && { 24527 test -z "$ac_c_werror_flag" || 24528 test ! -s conftest.err 24529 } && test -s conftest.$ac_objext; then 24530 eval "ac_cv_type_$cv=yes" 24531else 24532 echo "$as_me: failed program was:" >&5 24533sed 's/^/| /' conftest.$ac_ext >&5 24534 24535 eval "ac_cv_type_$cv=no" 24536fi 24537 24538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24539fi 24540ac_foo=`eval echo \\$ac_cv_type_$cv` 24541{ echo "$as_me:$LINENO: result: $ac_foo" >&5 24542echo "${ECHO_T}$ac_foo" >&6; } 24543if test "$ac_foo" = yes; then 24544 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24545if false; then 24546 { echo "$as_me:$LINENO: checking for ssize_t" >&5 24547echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 24548if test "${ac_cv_type_ssize_t+set}" = set; then 24549 echo $ECHO_N "(cached) $ECHO_C" >&6 24550else 24551 cat >conftest.$ac_ext <<_ACEOF 24552/* confdefs.h. */ 24553_ACEOF 24554cat confdefs.h >>conftest.$ac_ext 24555cat >>conftest.$ac_ext <<_ACEOF 24556/* end confdefs.h. */ 24557$ac_includes_default 24558typedef ssize_t ac__type_new_; 24559int 24560main () 24561{ 24562if ((ac__type_new_ *) 0) 24563 return 0; 24564if (sizeof (ac__type_new_)) 24565 return 0; 24566 ; 24567 return 0; 24568} 24569_ACEOF 24570rm -f conftest.$ac_objext 24571if { (ac_try="$ac_compile" 24572case "(($ac_try" in 24573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24574 *) ac_try_echo=$ac_try;; 24575esac 24576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24577 (eval "$ac_compile") 2>conftest.er1 24578 ac_status=$? 24579 grep -v '^ *+' conftest.er1 >conftest.err 24580 rm -f conftest.er1 24581 cat conftest.err >&5 24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24583 (exit $ac_status); } && { 24584 test -z "$ac_c_werror_flag" || 24585 test ! -s conftest.err 24586 } && test -s conftest.$ac_objext; then 24587 ac_cv_type_ssize_t=yes 24588else 24589 echo "$as_me: failed program was:" >&5 24590sed 's/^/| /' conftest.$ac_ext >&5 24591 24592 ac_cv_type_ssize_t=no 24593fi 24594 24595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24596fi 24597{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 24598echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 24599if test $ac_cv_type_ssize_t = yes; then 24600 24601cat >>confdefs.h <<_ACEOF 24602#define HAVE_SSIZE_T 1 24603_ACEOF 24604 24605 24606fi 24607 24608fi 24609 24610cat >>confdefs.h <<_ACEOF 24611#define $ac_tr_hdr 1 24612_ACEOF 24613 24614fi 24615 24616 24617 24618 24619 24620cv=`echo "long long" | sed 'y%./+- %__p__%'` 24621{ echo "$as_me:$LINENO: checking for long long" >&5 24622echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 24623if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 24624 echo $ECHO_N "(cached) $ECHO_C" >&6 24625else 24626 cat >conftest.$ac_ext <<_ACEOF 24627/* confdefs.h. */ 24628_ACEOF 24629cat confdefs.h >>conftest.$ac_ext 24630cat >>conftest.$ac_ext <<_ACEOF 24631/* end confdefs.h. */ 24632 24633#include <sys/types.h> 24634#if STDC_HEADERS 24635#include <stdlib.h> 24636#include <stddef.h> 24637#endif 24638 24639int 24640main () 24641{ 24642long long foo; 24643 ; 24644 return 0; 24645} 24646_ACEOF 24647rm -f conftest.$ac_objext 24648if { (ac_try="$ac_compile" 24649case "(($ac_try" in 24650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24651 *) ac_try_echo=$ac_try;; 24652esac 24653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24654 (eval "$ac_compile") 2>conftest.er1 24655 ac_status=$? 24656 grep -v '^ *+' conftest.er1 >conftest.err 24657 rm -f conftest.er1 24658 cat conftest.err >&5 24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24660 (exit $ac_status); } && { 24661 test -z "$ac_c_werror_flag" || 24662 test ! -s conftest.err 24663 } && test -s conftest.$ac_objext; then 24664 eval "ac_cv_type_$cv=yes" 24665else 24666 echo "$as_me: failed program was:" >&5 24667sed 's/^/| /' conftest.$ac_ext >&5 24668 24669 eval "ac_cv_type_$cv=no" 24670fi 24671 24672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24673fi 24674ac_foo=`eval echo \\$ac_cv_type_$cv` 24675{ echo "$as_me:$LINENO: result: $ac_foo" >&5 24676echo "${ECHO_T}$ac_foo" >&6; } 24677if test "$ac_foo" = yes; then 24678 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 24679if false; then 24680 { echo "$as_me:$LINENO: checking for long long" >&5 24681echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 24682if test "${ac_cv_type_long_long+set}" = set; then 24683 echo $ECHO_N "(cached) $ECHO_C" >&6 24684else 24685 cat >conftest.$ac_ext <<_ACEOF 24686/* confdefs.h. */ 24687_ACEOF 24688cat confdefs.h >>conftest.$ac_ext 24689cat >>conftest.$ac_ext <<_ACEOF 24690/* end confdefs.h. */ 24691$ac_includes_default 24692typedef long long ac__type_new_; 24693int 24694main () 24695{ 24696if ((ac__type_new_ *) 0) 24697 return 0; 24698if (sizeof (ac__type_new_)) 24699 return 0; 24700 ; 24701 return 0; 24702} 24703_ACEOF 24704rm -f conftest.$ac_objext 24705if { (ac_try="$ac_compile" 24706case "(($ac_try" in 24707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24708 *) ac_try_echo=$ac_try;; 24709esac 24710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24711 (eval "$ac_compile") 2>conftest.er1 24712 ac_status=$? 24713 grep -v '^ *+' conftest.er1 >conftest.err 24714 rm -f conftest.er1 24715 cat conftest.err >&5 24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24717 (exit $ac_status); } && { 24718 test -z "$ac_c_werror_flag" || 24719 test ! -s conftest.err 24720 } && test -s conftest.$ac_objext; then 24721 ac_cv_type_long_long=yes 24722else 24723 echo "$as_me: failed program was:" >&5 24724sed 's/^/| /' conftest.$ac_ext >&5 24725 24726 ac_cv_type_long_long=no 24727fi 24728 24729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24730fi 24731{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 24732echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 24733if test $ac_cv_type_long_long = yes; then 24734 24735cat >>confdefs.h <<_ACEOF 24736#define HAVE_LONG_LONG 1 24737_ACEOF 24738 24739 24740fi 24741 24742fi 24743 24744cat >>confdefs.h <<_ACEOF 24745#define $ac_tr_hdr 1 24746_ACEOF 24747 24748fi 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795for ac_header in \ 24796 arpa/inet.h \ 24797 config.h \ 24798 crypt.h \ 24799 dirent.h \ 24800 errno.h \ 24801 err.h \ 24802 fcntl.h \ 24803 fnmatch.h \ 24804 grp.h \ 24805 ifaddrs.h \ 24806 netinet/in.h \ 24807 netinet/in6.h \ 24808 netinet/in_systm.h \ 24809 netinet6/in6.h \ 24810 paths.h \ 24811 poll.h \ 24812 pwd.h \ 24813 rpcsvc/ypclnt.h \ 24814 shadow.h \ 24815 stdint.h \ 24816 sys/bswap.h \ 24817 sys/ioctl.h \ 24818 sys/mman.h \ 24819 sys/param.h \ 24820 sys/resource.h \ 24821 sys/sockio.h \ 24822 sys/stat.h \ 24823 sys/time.h \ 24824 sys/tty.h \ 24825 sys/types.h \ 24826 sys/uio.h \ 24827 sys/utsname.h \ 24828 sys/wait.h \ 24829 syslog.h \ 24830 termios.h \ 24831 unistd.h \ 24832 userconf.h \ 24833 usersec.h \ 24834 util.h \ 24835 24836do 24837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24839 { echo "$as_me:$LINENO: checking for $ac_header" >&5 24840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24842 echo $ECHO_N "(cached) $ECHO_C" >&6 24843fi 24844ac_res=`eval echo '${'$as_ac_Header'}'` 24845 { echo "$as_me:$LINENO: result: $ac_res" >&5 24846echo "${ECHO_T}$ac_res" >&6; } 24847else 24848 # Is the header compilable? 24849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 24850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 24851cat >conftest.$ac_ext <<_ACEOF 24852/* confdefs.h. */ 24853_ACEOF 24854cat confdefs.h >>conftest.$ac_ext 24855cat >>conftest.$ac_ext <<_ACEOF 24856/* end confdefs.h. */ 24857$ac_includes_default 24858#include <$ac_header> 24859_ACEOF 24860rm -f conftest.$ac_objext 24861if { (ac_try="$ac_compile" 24862case "(($ac_try" in 24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24864 *) ac_try_echo=$ac_try;; 24865esac 24866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24867 (eval "$ac_compile") 2>conftest.er1 24868 ac_status=$? 24869 grep -v '^ *+' conftest.er1 >conftest.err 24870 rm -f conftest.er1 24871 cat conftest.err >&5 24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24873 (exit $ac_status); } && { 24874 test -z "$ac_c_werror_flag" || 24875 test ! -s conftest.err 24876 } && test -s conftest.$ac_objext; then 24877 ac_header_compiler=yes 24878else 24879 echo "$as_me: failed program was:" >&5 24880sed 's/^/| /' conftest.$ac_ext >&5 24881 24882 ac_header_compiler=no 24883fi 24884 24885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24886{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24887echo "${ECHO_T}$ac_header_compiler" >&6; } 24888 24889# Is the header present? 24890{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 24891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 24892cat >conftest.$ac_ext <<_ACEOF 24893/* confdefs.h. */ 24894_ACEOF 24895cat confdefs.h >>conftest.$ac_ext 24896cat >>conftest.$ac_ext <<_ACEOF 24897/* end confdefs.h. */ 24898#include <$ac_header> 24899_ACEOF 24900if { (ac_try="$ac_cpp conftest.$ac_ext" 24901case "(($ac_try" in 24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24903 *) ac_try_echo=$ac_try;; 24904esac 24905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 24907 ac_status=$? 24908 grep -v '^ *+' conftest.er1 >conftest.err 24909 rm -f conftest.er1 24910 cat conftest.err >&5 24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24912 (exit $ac_status); } >/dev/null && { 24913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 24914 test ! -s conftest.err 24915 }; then 24916 ac_header_preproc=yes 24917else 24918 echo "$as_me: failed program was:" >&5 24919sed 's/^/| /' conftest.$ac_ext >&5 24920 24921 ac_header_preproc=no 24922fi 24923 24924rm -f conftest.err conftest.$ac_ext 24925{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24926echo "${ECHO_T}$ac_header_preproc" >&6; } 24927 24928# So? What about this header? 24929case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24930 yes:no: ) 24931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24932echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24934echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24935 ac_header_preproc=yes 24936 ;; 24937 no:yes:* ) 24938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24939echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24941echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24943echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24945echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24947echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24949echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24950 ( cat <<\_ASBOX 24951## ----------------------------------- ## 24952## Report this to heimdal-bugs@h5l.org ## 24953## ----------------------------------- ## 24954_ASBOX 24955 ) | sed "s/^/$as_me: WARNING: /" >&2 24956 ;; 24957esac 24958{ echo "$as_me:$LINENO: checking for $ac_header" >&5 24959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 24960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 24961 echo $ECHO_N "(cached) $ECHO_C" >&6 24962else 24963 eval "$as_ac_Header=\$ac_header_preproc" 24964fi 24965ac_res=`eval echo '${'$as_ac_Header'}'` 24966 { echo "$as_me:$LINENO: result: $ac_res" >&5 24967echo "${ECHO_T}$ac_res" >&6; } 24968 24969fi 24970if test `eval echo '${'$as_ac_Header'}'` = yes; then 24971 cat >>confdefs.h <<_ACEOF 24972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24973_ACEOF 24974 24975fi 24976 24977done 24978 24979 24980 24981 24982cv=`echo "uintptr_t" | sed 'y%./+- %__p__%'` 24983{ echo "$as_me:$LINENO: checking for uintptr_t" >&5 24984echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 24985if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 24986 echo $ECHO_N "(cached) $ECHO_C" >&6 24987else 24988 cat >conftest.$ac_ext <<_ACEOF 24989/* confdefs.h. */ 24990_ACEOF 24991cat confdefs.h >>conftest.$ac_ext 24992cat >>conftest.$ac_ext <<_ACEOF 24993/* end confdefs.h. */ 24994 24995#include <sys/types.h> 24996#if STDC_HEADERS 24997#include <stdlib.h> 24998#include <stddef.h> 24999#endif 25000#ifdef HAVE_STDINT_H 25001#include <stdint.h> 25002#endif 25003int 25004main () 25005{ 25006uintptr_t foo; 25007 ; 25008 return 0; 25009} 25010_ACEOF 25011rm -f conftest.$ac_objext 25012if { (ac_try="$ac_compile" 25013case "(($ac_try" in 25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25015 *) ac_try_echo=$ac_try;; 25016esac 25017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25018 (eval "$ac_compile") 2>conftest.er1 25019 ac_status=$? 25020 grep -v '^ *+' conftest.er1 >conftest.err 25021 rm -f conftest.er1 25022 cat conftest.err >&5 25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25024 (exit $ac_status); } && { 25025 test -z "$ac_c_werror_flag" || 25026 test ! -s conftest.err 25027 } && test -s conftest.$ac_objext; then 25028 eval "ac_cv_type_$cv=yes" 25029else 25030 echo "$as_me: failed program was:" >&5 25031sed 's/^/| /' conftest.$ac_ext >&5 25032 25033 eval "ac_cv_type_$cv=no" 25034fi 25035 25036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25037fi 25038ac_foo=`eval echo \\$ac_cv_type_$cv` 25039{ echo "$as_me:$LINENO: result: $ac_foo" >&5 25040echo "${ECHO_T}$ac_foo" >&6; } 25041if test "$ac_foo" = yes; then 25042 ac_tr_hdr=HAVE_`echo uintptr_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 25043if false; then 25044 { echo "$as_me:$LINENO: checking for uintptr_t" >&5 25045echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 25046if test "${ac_cv_type_uintptr_t+set}" = set; then 25047 echo $ECHO_N "(cached) $ECHO_C" >&6 25048else 25049 cat >conftest.$ac_ext <<_ACEOF 25050/* confdefs.h. */ 25051_ACEOF 25052cat confdefs.h >>conftest.$ac_ext 25053cat >>conftest.$ac_ext <<_ACEOF 25054/* end confdefs.h. */ 25055$ac_includes_default 25056typedef uintptr_t ac__type_new_; 25057int 25058main () 25059{ 25060if ((ac__type_new_ *) 0) 25061 return 0; 25062if (sizeof (ac__type_new_)) 25063 return 0; 25064 ; 25065 return 0; 25066} 25067_ACEOF 25068rm -f conftest.$ac_objext 25069if { (ac_try="$ac_compile" 25070case "(($ac_try" in 25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25072 *) ac_try_echo=$ac_try;; 25073esac 25074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25075 (eval "$ac_compile") 2>conftest.er1 25076 ac_status=$? 25077 grep -v '^ *+' conftest.er1 >conftest.err 25078 rm -f conftest.er1 25079 cat conftest.err >&5 25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25081 (exit $ac_status); } && { 25082 test -z "$ac_c_werror_flag" || 25083 test ! -s conftest.err 25084 } && test -s conftest.$ac_objext; then 25085 ac_cv_type_uintptr_t=yes 25086else 25087 echo "$as_me: failed program was:" >&5 25088sed 's/^/| /' conftest.$ac_ext >&5 25089 25090 ac_cv_type_uintptr_t=no 25091fi 25092 25093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25094fi 25095{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 25096echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } 25097if test $ac_cv_type_uintptr_t = yes; then 25098 25099cat >>confdefs.h <<_ACEOF 25100#define HAVE_UINTPTR_T 1 25101_ACEOF 25102 25103 25104fi 25105 25106fi 25107 25108cat >>confdefs.h <<_ACEOF 25109#define $ac_tr_hdr 1 25110_ACEOF 25111 25112fi 25113 25114 25115 25116for ac_header in vis.h 25117do 25118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25119{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25122 echo $ECHO_N "(cached) $ECHO_C" >&6 25123else 25124 cat >conftest.$ac_ext <<_ACEOF 25125/* confdefs.h. */ 25126_ACEOF 25127cat confdefs.h >>conftest.$ac_ext 25128cat >>conftest.$ac_ext <<_ACEOF 25129/* end confdefs.h. */ 25130 25131#include <vis.h> 25132#ifndef VIS_SP 25133#error invis 25134#endif 25135 25136#include <$ac_header> 25137_ACEOF 25138rm -f conftest.$ac_objext 25139if { (ac_try="$ac_compile" 25140case "(($ac_try" in 25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25142 *) ac_try_echo=$ac_try;; 25143esac 25144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25145 (eval "$ac_compile") 2>conftest.er1 25146 ac_status=$? 25147 grep -v '^ *+' conftest.er1 >conftest.err 25148 rm -f conftest.er1 25149 cat conftest.err >&5 25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25151 (exit $ac_status); } && { 25152 test -z "$ac_c_werror_flag" || 25153 test ! -s conftest.err 25154 } && test -s conftest.$ac_objext; then 25155 eval "$as_ac_Header=yes" 25156else 25157 echo "$as_me: failed program was:" >&5 25158sed 's/^/| /' conftest.$ac_ext >&5 25159 25160 eval "$as_ac_Header=no" 25161fi 25162 25163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25164fi 25165ac_res=`eval echo '${'$as_ac_Header'}'` 25166 { echo "$as_me:$LINENO: result: $ac_res" >&5 25167echo "${ECHO_T}$ac_res" >&6; } 25168if test `eval echo '${'$as_ac_Header'}'` = yes; then 25169 cat >>confdefs.h <<_ACEOF 25170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25171_ACEOF 25172 25173fi 25174 25175done 25176 25177 25178 25179for ac_header in netdb.h 25180do 25181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25182{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25185 echo $ECHO_N "(cached) $ECHO_C" >&6 25186else 25187 cat >conftest.$ac_ext <<_ACEOF 25188/* confdefs.h. */ 25189_ACEOF 25190cat confdefs.h >>conftest.$ac_ext 25191cat >>conftest.$ac_ext <<_ACEOF 25192/* end confdefs.h. */ 25193$ac_includes_default 25194#ifdef HAVE_SYS_TYPES_H 25195#include <sys/types.h> 25196#endif 25197 25198 25199#include <$ac_header> 25200_ACEOF 25201rm -f conftest.$ac_objext 25202if { (ac_try="$ac_compile" 25203case "(($ac_try" in 25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25205 *) ac_try_echo=$ac_try;; 25206esac 25207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25208 (eval "$ac_compile") 2>conftest.er1 25209 ac_status=$? 25210 grep -v '^ *+' conftest.er1 >conftest.err 25211 rm -f conftest.er1 25212 cat conftest.err >&5 25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25214 (exit $ac_status); } && { 25215 test -z "$ac_c_werror_flag" || 25216 test ! -s conftest.err 25217 } && test -s conftest.$ac_objext; then 25218 eval "$as_ac_Header=yes" 25219else 25220 echo "$as_me: failed program was:" >&5 25221sed 's/^/| /' conftest.$ac_ext >&5 25222 25223 eval "$as_ac_Header=no" 25224fi 25225 25226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25227fi 25228ac_res=`eval echo '${'$as_ac_Header'}'` 25229 { echo "$as_me:$LINENO: result: $ac_res" >&5 25230echo "${ECHO_T}$ac_res" >&6; } 25231if test `eval echo '${'$as_ac_Header'}'` = yes; then 25232 cat >>confdefs.h <<_ACEOF 25233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25234_ACEOF 25235 25236fi 25237 25238done 25239 25240 25241 25242for ac_header in sys/socket.h 25243do 25244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25245{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25248 echo $ECHO_N "(cached) $ECHO_C" >&6 25249else 25250 cat >conftest.$ac_ext <<_ACEOF 25251/* confdefs.h. */ 25252_ACEOF 25253cat confdefs.h >>conftest.$ac_ext 25254cat >>conftest.$ac_ext <<_ACEOF 25255/* end confdefs.h. */ 25256$ac_includes_default 25257#ifdef HAVE_SYS_TYPES_H 25258#include <sys/types.h> 25259#endif 25260 25261 25262#include <$ac_header> 25263_ACEOF 25264rm -f conftest.$ac_objext 25265if { (ac_try="$ac_compile" 25266case "(($ac_try" in 25267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25268 *) ac_try_echo=$ac_try;; 25269esac 25270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25271 (eval "$ac_compile") 2>conftest.er1 25272 ac_status=$? 25273 grep -v '^ *+' conftest.er1 >conftest.err 25274 rm -f conftest.er1 25275 cat conftest.err >&5 25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25277 (exit $ac_status); } && { 25278 test -z "$ac_c_werror_flag" || 25279 test ! -s conftest.err 25280 } && test -s conftest.$ac_objext; then 25281 eval "$as_ac_Header=yes" 25282else 25283 echo "$as_me: failed program was:" >&5 25284sed 's/^/| /' conftest.$ac_ext >&5 25285 25286 eval "$as_ac_Header=no" 25287fi 25288 25289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25290fi 25291ac_res=`eval echo '${'$as_ac_Header'}'` 25292 { echo "$as_me:$LINENO: result: $ac_res" >&5 25293echo "${ECHO_T}$ac_res" >&6; } 25294if test `eval echo '${'$as_ac_Header'}'` = yes; then 25295 cat >>confdefs.h <<_ACEOF 25296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25297_ACEOF 25298 25299fi 25300 25301done 25302 25303 25304 25305for ac_header in net/if.h 25306do 25307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25308{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25311 echo $ECHO_N "(cached) $ECHO_C" >&6 25312else 25313 cat >conftest.$ac_ext <<_ACEOF 25314/* confdefs.h. */ 25315_ACEOF 25316cat confdefs.h >>conftest.$ac_ext 25317cat >>conftest.$ac_ext <<_ACEOF 25318/* end confdefs.h. */ 25319$ac_includes_default 25320#ifdef HAVE_SYS_TYPES_H 25321#include <sys/types.h> 25322#endif 25323#if HAVE_SYS_SOCKET_H 25324#include <sys/socket.h> 25325#endif 25326 25327#include <$ac_header> 25328_ACEOF 25329rm -f conftest.$ac_objext 25330if { (ac_try="$ac_compile" 25331case "(($ac_try" in 25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25333 *) ac_try_echo=$ac_try;; 25334esac 25335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25336 (eval "$ac_compile") 2>conftest.er1 25337 ac_status=$? 25338 grep -v '^ *+' conftest.er1 >conftest.err 25339 rm -f conftest.er1 25340 cat conftest.err >&5 25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25342 (exit $ac_status); } && { 25343 test -z "$ac_c_werror_flag" || 25344 test ! -s conftest.err 25345 } && test -s conftest.$ac_objext; then 25346 eval "$as_ac_Header=yes" 25347else 25348 echo "$as_me: failed program was:" >&5 25349sed 's/^/| /' conftest.$ac_ext >&5 25350 25351 eval "$as_ac_Header=no" 25352fi 25353 25354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25355fi 25356ac_res=`eval echo '${'$as_ac_Header'}'` 25357 { echo "$as_me:$LINENO: result: $ac_res" >&5 25358echo "${ECHO_T}$ac_res" >&6; } 25359if test `eval echo '${'$as_ac_Header'}'` = yes; then 25360 cat >>confdefs.h <<_ACEOF 25361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25362_ACEOF 25363 25364fi 25365 25366done 25367 25368 25369 25370for ac_header in netinet6/in6_var.h 25371do 25372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25373{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25376 echo $ECHO_N "(cached) $ECHO_C" >&6 25377else 25378 cat >conftest.$ac_ext <<_ACEOF 25379/* confdefs.h. */ 25380_ACEOF 25381cat confdefs.h >>conftest.$ac_ext 25382cat >>conftest.$ac_ext <<_ACEOF 25383/* end confdefs.h. */ 25384$ac_includes_default 25385#ifdef HAVE_SYS_TYPES_H 25386#include <sys/types.h> 25387#endif 25388#if HAVE_SYS_SOCKET_H 25389#include <sys/socket.h> 25390#endif 25391#ifdef HAVE_NETINET6_IN6_H 25392#include <netinet6/in6.h> 25393#endif 25394 25395 25396#include <$ac_header> 25397_ACEOF 25398rm -f conftest.$ac_objext 25399if { (ac_try="$ac_compile" 25400case "(($ac_try" in 25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25402 *) ac_try_echo=$ac_try;; 25403esac 25404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25405 (eval "$ac_compile") 2>conftest.er1 25406 ac_status=$? 25407 grep -v '^ *+' conftest.er1 >conftest.err 25408 rm -f conftest.er1 25409 cat conftest.err >&5 25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25411 (exit $ac_status); } && { 25412 test -z "$ac_c_werror_flag" || 25413 test ! -s conftest.err 25414 } && test -s conftest.$ac_objext; then 25415 eval "$as_ac_Header=yes" 25416else 25417 echo "$as_me: failed program was:" >&5 25418sed 's/^/| /' conftest.$ac_ext >&5 25419 25420 eval "$as_ac_Header=no" 25421fi 25422 25423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25424fi 25425ac_res=`eval echo '${'$as_ac_Header'}'` 25426 { echo "$as_me:$LINENO: result: $ac_res" >&5 25427echo "${ECHO_T}$ac_res" >&6; } 25428if test `eval echo '${'$as_ac_Header'}'` = yes; then 25429 cat >>confdefs.h <<_ACEOF 25430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25431_ACEOF 25432 25433fi 25434 25435done 25436 25437 25438 25439for ac_header in sys/sysctl.h 25440do 25441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25442{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25445 echo $ECHO_N "(cached) $ECHO_C" >&6 25446else 25447 cat >conftest.$ac_ext <<_ACEOF 25448/* confdefs.h. */ 25449_ACEOF 25450cat confdefs.h >>conftest.$ac_ext 25451cat >>conftest.$ac_ext <<_ACEOF 25452/* end confdefs.h. */ 25453$ac_includes_default 25454#ifdef HAVE_SYS_PARAM_H 25455#include <sys/param.h> 25456#endif 25457 25458 25459#include <$ac_header> 25460_ACEOF 25461rm -f conftest.$ac_objext 25462if { (ac_try="$ac_compile" 25463case "(($ac_try" in 25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25465 *) ac_try_echo=$ac_try;; 25466esac 25467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25468 (eval "$ac_compile") 2>conftest.er1 25469 ac_status=$? 25470 grep -v '^ *+' conftest.er1 >conftest.err 25471 rm -f conftest.er1 25472 cat conftest.err >&5 25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25474 (exit $ac_status); } && { 25475 test -z "$ac_c_werror_flag" || 25476 test ! -s conftest.err 25477 } && test -s conftest.$ac_objext; then 25478 eval "$as_ac_Header=yes" 25479else 25480 echo "$as_me: failed program was:" >&5 25481sed 's/^/| /' conftest.$ac_ext >&5 25482 25483 eval "$as_ac_Header=no" 25484fi 25485 25486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25487fi 25488ac_res=`eval echo '${'$as_ac_Header'}'` 25489 { echo "$as_me:$LINENO: result: $ac_res" >&5 25490echo "${ECHO_T}$ac_res" >&6; } 25491if test `eval echo '${'$as_ac_Header'}'` = yes; then 25492 cat >>confdefs.h <<_ACEOF 25493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25494_ACEOF 25495 25496fi 25497 25498done 25499 25500 25501 25502for ac_header in sys/proc.h 25503do 25504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25505{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25508 echo $ECHO_N "(cached) $ECHO_C" >&6 25509else 25510 cat >conftest.$ac_ext <<_ACEOF 25511/* confdefs.h. */ 25512_ACEOF 25513cat confdefs.h >>conftest.$ac_ext 25514cat >>conftest.$ac_ext <<_ACEOF 25515/* end confdefs.h. */ 25516$ac_includes_default 25517#ifdef HAVE_SYS_PARAM_H 25518#include <sys/param.h> 25519#endif 25520 25521 25522#include <$ac_header> 25523_ACEOF 25524rm -f conftest.$ac_objext 25525if { (ac_try="$ac_compile" 25526case "(($ac_try" in 25527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25528 *) ac_try_echo=$ac_try;; 25529esac 25530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25531 (eval "$ac_compile") 2>conftest.er1 25532 ac_status=$? 25533 grep -v '^ *+' conftest.er1 >conftest.err 25534 rm -f conftest.er1 25535 cat conftest.err >&5 25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25537 (exit $ac_status); } && { 25538 test -z "$ac_c_werror_flag" || 25539 test ! -s conftest.err 25540 } && test -s conftest.$ac_objext; then 25541 eval "$as_ac_Header=yes" 25542else 25543 echo "$as_me: failed program was:" >&5 25544sed 's/^/| /' conftest.$ac_ext >&5 25545 25546 eval "$as_ac_Header=no" 25547fi 25548 25549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25550fi 25551ac_res=`eval echo '${'$as_ac_Header'}'` 25552 { echo "$as_me:$LINENO: result: $ac_res" >&5 25553echo "${ECHO_T}$ac_res" >&6; } 25554if test `eval echo '${'$as_ac_Header'}'` = yes; then 25555 cat >>confdefs.h <<_ACEOF 25556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25557_ACEOF 25558 25559fi 25560 25561done 25562 25563 25564 25565 25566 if test "$ac_cv_header_err_h" = yes; then 25567 have_err_h_TRUE= 25568 have_err_h_FALSE='#' 25569else 25570 have_err_h_TRUE='#' 25571 have_err_h_FALSE= 25572fi 25573 25574 if test "$ac_cv_header_ifaddrs_h" = yes; then 25575 have_ifaddrs_h_TRUE= 25576 have_ifaddrs_h_FALSE='#' 25577else 25578 have_ifaddrs_h_TRUE='#' 25579 have_ifaddrs_h_FALSE= 25580fi 25581 25582 if test "$ac_cv_header_vis_h" = yes; then 25583 have_vis_h_TRUE= 25584 have_vis_h_FALSE='#' 25585else 25586 have_vis_h_TRUE='#' 25587 have_vis_h_FALSE= 25588fi 25589 25590 25591 25592 25593 25594 25595 25596{ echo "$as_me:$LINENO: checking for socket" >&5 25597echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 25598if test "${ac_cv_funclib_socket+set}" = set; then 25599 echo $ECHO_N "(cached) $ECHO_C" >&6 25600else 25601 25602if eval "test \"\$ac_cv_func_socket\" != yes" ; then 25603 ac_save_LIBS="$LIBS" 25604 for ac_lib in "" socket; do 25605 case "$ac_lib" in 25606 "") ;; 25607 yes) ac_lib="" ;; 25608 no) continue ;; 25609 -l*) ;; 25610 *) ac_lib="-l$ac_lib" ;; 25611 esac 25612 LIBS=" $ac_lib $ac_save_LIBS" 25613 cat >conftest.$ac_ext <<_ACEOF 25614/* confdefs.h. */ 25615_ACEOF 25616cat confdefs.h >>conftest.$ac_ext 25617cat >>conftest.$ac_ext <<_ACEOF 25618/* end confdefs.h. */ 25619 25620int 25621main () 25622{ 25623socket() 25624 ; 25625 return 0; 25626} 25627_ACEOF 25628rm -f conftest.$ac_objext conftest$ac_exeext 25629if { (ac_try="$ac_link" 25630case "(($ac_try" in 25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25632 *) ac_try_echo=$ac_try;; 25633esac 25634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25635 (eval "$ac_link") 2>conftest.er1 25636 ac_status=$? 25637 grep -v '^ *+' conftest.er1 >conftest.err 25638 rm -f conftest.er1 25639 cat conftest.err >&5 25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25641 (exit $ac_status); } && { 25642 test -z "$ac_c_werror_flag" || 25643 test ! -s conftest.err 25644 } && test -s conftest$ac_exeext && 25645 $as_test_x conftest$ac_exeext; then 25646 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 25647else 25648 echo "$as_me: failed program was:" >&5 25649sed 's/^/| /' conftest.$ac_ext >&5 25650 25651 25652fi 25653 25654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25655 conftest$ac_exeext conftest.$ac_ext 25656 done 25657 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 25658 LIBS="$ac_save_LIBS" 25659fi 25660 25661fi 25662 25663 25664eval "ac_res=\$ac_cv_funclib_socket" 25665 25666if false; then 25667 25668for ac_func in socket 25669do 25670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25671{ echo "$as_me:$LINENO: checking for $ac_func" >&5 25672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 25673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 25674 echo $ECHO_N "(cached) $ECHO_C" >&6 25675else 25676 cat >conftest.$ac_ext <<_ACEOF 25677/* confdefs.h. */ 25678_ACEOF 25679cat confdefs.h >>conftest.$ac_ext 25680cat >>conftest.$ac_ext <<_ACEOF 25681/* end confdefs.h. */ 25682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25683 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25684#define $ac_func innocuous_$ac_func 25685 25686/* System header to define __stub macros and hopefully few prototypes, 25687 which can conflict with char $ac_func (); below. 25688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25689 <limits.h> exists even on freestanding compilers. */ 25690 25691#ifdef __STDC__ 25692# include <limits.h> 25693#else 25694# include <assert.h> 25695#endif 25696 25697#undef $ac_func 25698 25699/* Override any GCC internal prototype to avoid an error. 25700 Use char because int might match the return type of a GCC 25701 builtin and then its argument prototype would still apply. */ 25702#ifdef __cplusplus 25703extern "C" 25704#endif 25705char $ac_func (); 25706/* The GNU C library defines this for functions which it implements 25707 to always fail with ENOSYS. Some functions are actually named 25708 something starting with __ and the normal name is an alias. */ 25709#if defined __stub_$ac_func || defined __stub___$ac_func 25710choke me 25711#endif 25712 25713int 25714main () 25715{ 25716return $ac_func (); 25717 ; 25718 return 0; 25719} 25720_ACEOF 25721rm -f conftest.$ac_objext conftest$ac_exeext 25722if { (ac_try="$ac_link" 25723case "(($ac_try" in 25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25725 *) ac_try_echo=$ac_try;; 25726esac 25727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25728 (eval "$ac_link") 2>conftest.er1 25729 ac_status=$? 25730 grep -v '^ *+' conftest.er1 >conftest.err 25731 rm -f conftest.er1 25732 cat conftest.err >&5 25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25734 (exit $ac_status); } && { 25735 test -z "$ac_c_werror_flag" || 25736 test ! -s conftest.err 25737 } && test -s conftest$ac_exeext && 25738 $as_test_x conftest$ac_exeext; then 25739 eval "$as_ac_var=yes" 25740else 25741 echo "$as_me: failed program was:" >&5 25742sed 's/^/| /' conftest.$ac_ext >&5 25743 25744 eval "$as_ac_var=no" 25745fi 25746 25747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25748 conftest$ac_exeext conftest.$ac_ext 25749fi 25750ac_res=`eval echo '${'$as_ac_var'}'` 25751 { echo "$as_me:$LINENO: result: $ac_res" >&5 25752echo "${ECHO_T}$ac_res" >&6; } 25753if test `eval echo '${'$as_ac_var'}'` = yes; then 25754 cat >>confdefs.h <<_ACEOF 25755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25756_ACEOF 25757 25758fi 25759done 25760 25761fi 25762# socket 25763eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25764eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25765eval "LIB_socket=$ac_res" 25766 25767case "$ac_res" in 25768 yes) 25769 eval "ac_cv_func_socket=yes" 25770 eval "LIB_socket=" 25771 cat >>confdefs.h <<_ACEOF 25772#define $ac_tr_func 1 25773_ACEOF 25774 25775 { echo "$as_me:$LINENO: result: yes" >&5 25776echo "${ECHO_T}yes" >&6; } 25777 ;; 25778 no) 25779 eval "ac_cv_func_socket=no" 25780 eval "LIB_socket=" 25781 { echo "$as_me:$LINENO: result: no" >&5 25782echo "${ECHO_T}no" >&6; } 25783 ;; 25784 *) 25785 eval "ac_cv_func_socket=yes" 25786 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25787 cat >>confdefs.h <<_ACEOF 25788#define $ac_tr_func 1 25789_ACEOF 25790 25791 cat >>confdefs.h <<_ACEOF 25792#define $ac_tr_lib 1 25793_ACEOF 25794 25795 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 25796echo "${ECHO_T}yes, in $ac_res" >&6; } 25797 ;; 25798esac 25799 25800 25801if test -n "$LIB_socket"; then 25802 LIBS="$LIB_socket $LIBS" 25803fi 25804 25805 25806 25807 25808 25809{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 25810echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 25811if test "${ac_cv_funclib_gethostbyname+set}" = set; then 25812 echo $ECHO_N "(cached) $ECHO_C" >&6 25813else 25814 25815if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 25816 ac_save_LIBS="$LIBS" 25817 for ac_lib in "" nsl; do 25818 case "$ac_lib" in 25819 "") ;; 25820 yes) ac_lib="" ;; 25821 no) continue ;; 25822 -l*) ;; 25823 *) ac_lib="-l$ac_lib" ;; 25824 esac 25825 LIBS=" $ac_lib $ac_save_LIBS" 25826 cat >conftest.$ac_ext <<_ACEOF 25827/* confdefs.h. */ 25828_ACEOF 25829cat confdefs.h >>conftest.$ac_ext 25830cat >>conftest.$ac_ext <<_ACEOF 25831/* end confdefs.h. */ 25832 25833int 25834main () 25835{ 25836gethostbyname() 25837 ; 25838 return 0; 25839} 25840_ACEOF 25841rm -f conftest.$ac_objext conftest$ac_exeext 25842if { (ac_try="$ac_link" 25843case "(($ac_try" in 25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25845 *) ac_try_echo=$ac_try;; 25846esac 25847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25848 (eval "$ac_link") 2>conftest.er1 25849 ac_status=$? 25850 grep -v '^ *+' conftest.er1 >conftest.err 25851 rm -f conftest.er1 25852 cat conftest.err >&5 25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25854 (exit $ac_status); } && { 25855 test -z "$ac_c_werror_flag" || 25856 test ! -s conftest.err 25857 } && test -s conftest$ac_exeext && 25858 $as_test_x conftest$ac_exeext; then 25859 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 25860else 25861 echo "$as_me: failed program was:" >&5 25862sed 's/^/| /' conftest.$ac_ext >&5 25863 25864 25865fi 25866 25867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25868 conftest$ac_exeext conftest.$ac_ext 25869 done 25870 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 25871 LIBS="$ac_save_LIBS" 25872fi 25873 25874fi 25875 25876 25877eval "ac_res=\$ac_cv_funclib_gethostbyname" 25878 25879if false; then 25880 25881for ac_func in gethostbyname 25882do 25883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25884{ echo "$as_me:$LINENO: checking for $ac_func" >&5 25885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 25886if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 25887 echo $ECHO_N "(cached) $ECHO_C" >&6 25888else 25889 cat >conftest.$ac_ext <<_ACEOF 25890/* confdefs.h. */ 25891_ACEOF 25892cat confdefs.h >>conftest.$ac_ext 25893cat >>conftest.$ac_ext <<_ACEOF 25894/* end confdefs.h. */ 25895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25896 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25897#define $ac_func innocuous_$ac_func 25898 25899/* System header to define __stub macros and hopefully few prototypes, 25900 which can conflict with char $ac_func (); below. 25901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25902 <limits.h> exists even on freestanding compilers. */ 25903 25904#ifdef __STDC__ 25905# include <limits.h> 25906#else 25907# include <assert.h> 25908#endif 25909 25910#undef $ac_func 25911 25912/* Override any GCC internal prototype to avoid an error. 25913 Use char because int might match the return type of a GCC 25914 builtin and then its argument prototype would still apply. */ 25915#ifdef __cplusplus 25916extern "C" 25917#endif 25918char $ac_func (); 25919/* The GNU C library defines this for functions which it implements 25920 to always fail with ENOSYS. Some functions are actually named 25921 something starting with __ and the normal name is an alias. */ 25922#if defined __stub_$ac_func || defined __stub___$ac_func 25923choke me 25924#endif 25925 25926int 25927main () 25928{ 25929return $ac_func (); 25930 ; 25931 return 0; 25932} 25933_ACEOF 25934rm -f conftest.$ac_objext conftest$ac_exeext 25935if { (ac_try="$ac_link" 25936case "(($ac_try" in 25937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25938 *) ac_try_echo=$ac_try;; 25939esac 25940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25941 (eval "$ac_link") 2>conftest.er1 25942 ac_status=$? 25943 grep -v '^ *+' conftest.er1 >conftest.err 25944 rm -f conftest.er1 25945 cat conftest.err >&5 25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25947 (exit $ac_status); } && { 25948 test -z "$ac_c_werror_flag" || 25949 test ! -s conftest.err 25950 } && test -s conftest$ac_exeext && 25951 $as_test_x conftest$ac_exeext; then 25952 eval "$as_ac_var=yes" 25953else 25954 echo "$as_me: failed program was:" >&5 25955sed 's/^/| /' conftest.$ac_ext >&5 25956 25957 eval "$as_ac_var=no" 25958fi 25959 25960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25961 conftest$ac_exeext conftest.$ac_ext 25962fi 25963ac_res=`eval echo '${'$as_ac_var'}'` 25964 { echo "$as_me:$LINENO: result: $ac_res" >&5 25965echo "${ECHO_T}$ac_res" >&6; } 25966if test `eval echo '${'$as_ac_var'}'` = yes; then 25967 cat >>confdefs.h <<_ACEOF 25968#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25969_ACEOF 25970 25971fi 25972done 25973 25974fi 25975# gethostbyname 25976eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25977eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25978eval "LIB_gethostbyname=$ac_res" 25979 25980case "$ac_res" in 25981 yes) 25982 eval "ac_cv_func_gethostbyname=yes" 25983 eval "LIB_gethostbyname=" 25984 cat >>confdefs.h <<_ACEOF 25985#define $ac_tr_func 1 25986_ACEOF 25987 25988 { echo "$as_me:$LINENO: result: yes" >&5 25989echo "${ECHO_T}yes" >&6; } 25990 ;; 25991 no) 25992 eval "ac_cv_func_gethostbyname=no" 25993 eval "LIB_gethostbyname=" 25994 { echo "$as_me:$LINENO: result: no" >&5 25995echo "${ECHO_T}no" >&6; } 25996 ;; 25997 *) 25998 eval "ac_cv_func_gethostbyname=yes" 25999 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26000 cat >>confdefs.h <<_ACEOF 26001#define $ac_tr_func 1 26002_ACEOF 26003 26004 cat >>confdefs.h <<_ACEOF 26005#define $ac_tr_lib 1 26006_ACEOF 26007 26008 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 26009echo "${ECHO_T}yes, in $ac_res" >&6; } 26010 ;; 26011esac 26012 26013 26014if test -n "$LIB_gethostbyname"; then 26015 LIBS="$LIB_gethostbyname $LIBS" 26016fi 26017 26018 26019 26020 26021 26022{ echo "$as_me:$LINENO: checking for syslog" >&5 26023echo $ECHO_N "checking for syslog... $ECHO_C" >&6; } 26024if test "${ac_cv_funclib_syslog+set}" = set; then 26025 echo $ECHO_N "(cached) $ECHO_C" >&6 26026else 26027 26028if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 26029 ac_save_LIBS="$LIBS" 26030 for ac_lib in "" syslog; do 26031 case "$ac_lib" in 26032 "") ;; 26033 yes) ac_lib="" ;; 26034 no) continue ;; 26035 -l*) ;; 26036 *) ac_lib="-l$ac_lib" ;; 26037 esac 26038 LIBS=" $ac_lib $ac_save_LIBS" 26039 cat >conftest.$ac_ext <<_ACEOF 26040/* confdefs.h. */ 26041_ACEOF 26042cat confdefs.h >>conftest.$ac_ext 26043cat >>conftest.$ac_ext <<_ACEOF 26044/* end confdefs.h. */ 26045 26046int 26047main () 26048{ 26049syslog() 26050 ; 26051 return 0; 26052} 26053_ACEOF 26054rm -f conftest.$ac_objext conftest$ac_exeext 26055if { (ac_try="$ac_link" 26056case "(($ac_try" in 26057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26058 *) ac_try_echo=$ac_try;; 26059esac 26060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26061 (eval "$ac_link") 2>conftest.er1 26062 ac_status=$? 26063 grep -v '^ *+' conftest.er1 >conftest.err 26064 rm -f conftest.er1 26065 cat conftest.err >&5 26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26067 (exit $ac_status); } && { 26068 test -z "$ac_c_werror_flag" || 26069 test ! -s conftest.err 26070 } && test -s conftest$ac_exeext && 26071 $as_test_x conftest$ac_exeext; then 26072 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 26073else 26074 echo "$as_me: failed program was:" >&5 26075sed 's/^/| /' conftest.$ac_ext >&5 26076 26077 26078fi 26079 26080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26081 conftest$ac_exeext conftest.$ac_ext 26082 done 26083 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 26084 LIBS="$ac_save_LIBS" 26085fi 26086 26087fi 26088 26089 26090eval "ac_res=\$ac_cv_funclib_syslog" 26091 26092if false; then 26093 26094for ac_func in syslog 26095do 26096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26097{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26099if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26100 echo $ECHO_N "(cached) $ECHO_C" >&6 26101else 26102 cat >conftest.$ac_ext <<_ACEOF 26103/* confdefs.h. */ 26104_ACEOF 26105cat confdefs.h >>conftest.$ac_ext 26106cat >>conftest.$ac_ext <<_ACEOF 26107/* end confdefs.h. */ 26108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26109 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26110#define $ac_func innocuous_$ac_func 26111 26112/* System header to define __stub macros and hopefully few prototypes, 26113 which can conflict with char $ac_func (); below. 26114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26115 <limits.h> exists even on freestanding compilers. */ 26116 26117#ifdef __STDC__ 26118# include <limits.h> 26119#else 26120# include <assert.h> 26121#endif 26122 26123#undef $ac_func 26124 26125/* Override any GCC internal prototype to avoid an error. 26126 Use char because int might match the return type of a GCC 26127 builtin and then its argument prototype would still apply. */ 26128#ifdef __cplusplus 26129extern "C" 26130#endif 26131char $ac_func (); 26132/* The GNU C library defines this for functions which it implements 26133 to always fail with ENOSYS. Some functions are actually named 26134 something starting with __ and the normal name is an alias. */ 26135#if defined __stub_$ac_func || defined __stub___$ac_func 26136choke me 26137#endif 26138 26139int 26140main () 26141{ 26142return $ac_func (); 26143 ; 26144 return 0; 26145} 26146_ACEOF 26147rm -f conftest.$ac_objext conftest$ac_exeext 26148if { (ac_try="$ac_link" 26149case "(($ac_try" in 26150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26151 *) ac_try_echo=$ac_try;; 26152esac 26153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26154 (eval "$ac_link") 2>conftest.er1 26155 ac_status=$? 26156 grep -v '^ *+' conftest.er1 >conftest.err 26157 rm -f conftest.er1 26158 cat conftest.err >&5 26159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26160 (exit $ac_status); } && { 26161 test -z "$ac_c_werror_flag" || 26162 test ! -s conftest.err 26163 } && test -s conftest$ac_exeext && 26164 $as_test_x conftest$ac_exeext; then 26165 eval "$as_ac_var=yes" 26166else 26167 echo "$as_me: failed program was:" >&5 26168sed 's/^/| /' conftest.$ac_ext >&5 26169 26170 eval "$as_ac_var=no" 26171fi 26172 26173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26174 conftest$ac_exeext conftest.$ac_ext 26175fi 26176ac_res=`eval echo '${'$as_ac_var'}'` 26177 { echo "$as_me:$LINENO: result: $ac_res" >&5 26178echo "${ECHO_T}$ac_res" >&6; } 26179if test `eval echo '${'$as_ac_var'}'` = yes; then 26180 cat >>confdefs.h <<_ACEOF 26181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26182_ACEOF 26183 26184fi 26185done 26186 26187fi 26188# syslog 26189eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26190eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26191eval "LIB_syslog=$ac_res" 26192 26193case "$ac_res" in 26194 yes) 26195 eval "ac_cv_func_syslog=yes" 26196 eval "LIB_syslog=" 26197 cat >>confdefs.h <<_ACEOF 26198#define $ac_tr_func 1 26199_ACEOF 26200 26201 { echo "$as_me:$LINENO: result: yes" >&5 26202echo "${ECHO_T}yes" >&6; } 26203 ;; 26204 no) 26205 eval "ac_cv_func_syslog=no" 26206 eval "LIB_syslog=" 26207 { echo "$as_me:$LINENO: result: no" >&5 26208echo "${ECHO_T}no" >&6; } 26209 ;; 26210 *) 26211 eval "ac_cv_func_syslog=yes" 26212 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26213 cat >>confdefs.h <<_ACEOF 26214#define $ac_tr_func 1 26215_ACEOF 26216 26217 cat >>confdefs.h <<_ACEOF 26218#define $ac_tr_lib 1 26219_ACEOF 26220 26221 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 26222echo "${ECHO_T}yes, in $ac_res" >&6; } 26223 ;; 26224esac 26225 26226 26227if test -n "$LIB_syslog"; then 26228 LIBS="$LIB_syslog $LIBS" 26229fi 26230 26231 26232 26233 26234# Check whether --with-ipv6 was given. 26235if test "${with_ipv6+set}" = set; then 26236 withval=$with_ipv6; 26237if test "$withval" = "no"; then 26238 ac_cv_lib_ipv6=no 26239fi 26240fi 26241 26242save_CFLAGS="${CFLAGS}" 26243{ echo "$as_me:$LINENO: checking for IPv6 stack type" >&5 26244echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6; } 26245if test "${v6type+set}" = set; then 26246 echo $ECHO_N "(cached) $ECHO_C" >&6 26247else 26248 v6type=unknown 26249v6lib=none 26250 26251for i in v6d toshiba kame inria zeta linux; do 26252 case $i in 26253 v6d) 26254 cat >conftest.$ac_ext <<_ACEOF 26255/* confdefs.h. */ 26256_ACEOF 26257cat confdefs.h >>conftest.$ac_ext 26258cat >>conftest.$ac_ext <<_ACEOF 26259/* end confdefs.h. */ 26260 26261#include </usr/local/v6/include/sys/types.h> 26262#ifdef __V6D__ 26263yes 26264#endif 26265_ACEOF 26266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26267 $EGREP "yes" >/dev/null 2>&1; then 26268 v6type=$i; v6lib=v6; 26269 v6libdir=/usr/local/v6/lib; 26270 CFLAGS="-I/usr/local/v6/include $CFLAGS" 26271fi 26272rm -f conftest* 26273 26274 ;; 26275 toshiba) 26276 cat >conftest.$ac_ext <<_ACEOF 26277/* confdefs.h. */ 26278_ACEOF 26279cat confdefs.h >>conftest.$ac_ext 26280cat >>conftest.$ac_ext <<_ACEOF 26281/* end confdefs.h. */ 26282 26283#include <sys/param.h> 26284#ifdef _TOSHIBA_INET6 26285yes 26286#endif 26287_ACEOF 26288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26289 $EGREP "yes" >/dev/null 2>&1; then 26290 v6type=$i; v6lib=inet6; 26291 v6libdir=/usr/local/v6/lib; 26292 CFLAGS="-DINET6 $CFLAGS" 26293fi 26294rm -f conftest* 26295 26296 ;; 26297 kame) 26298 cat >conftest.$ac_ext <<_ACEOF 26299/* confdefs.h. */ 26300_ACEOF 26301cat confdefs.h >>conftest.$ac_ext 26302cat >>conftest.$ac_ext <<_ACEOF 26303/* end confdefs.h. */ 26304 26305#include <netinet/in.h> 26306#ifdef __KAME__ 26307yes 26308#endif 26309_ACEOF 26310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26311 $EGREP "yes" >/dev/null 2>&1; then 26312 v6type=$i; v6lib=inet6; 26313 v6libdir=/usr/local/v6/lib; 26314 CFLAGS="-DINET6 $CFLAGS" 26315fi 26316rm -f conftest* 26317 26318 ;; 26319 inria) 26320 cat >conftest.$ac_ext <<_ACEOF 26321/* confdefs.h. */ 26322_ACEOF 26323cat confdefs.h >>conftest.$ac_ext 26324cat >>conftest.$ac_ext <<_ACEOF 26325/* end confdefs.h. */ 26326 26327#include <netinet/in.h> 26328#ifdef IPV6_INRIA_VERSION 26329yes 26330#endif 26331_ACEOF 26332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26333 $EGREP "yes" >/dev/null 2>&1; then 26334 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 26335fi 26336rm -f conftest* 26337 26338 ;; 26339 zeta) 26340 cat >conftest.$ac_ext <<_ACEOF 26341/* confdefs.h. */ 26342_ACEOF 26343cat confdefs.h >>conftest.$ac_ext 26344cat >>conftest.$ac_ext <<_ACEOF 26345/* end confdefs.h. */ 26346 26347#include <sys/param.h> 26348#ifdef _ZETA_MINAMI_INET6 26349yes 26350#endif 26351_ACEOF 26352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26353 $EGREP "yes" >/dev/null 2>&1; then 26354 v6type=$i; v6lib=inet6; 26355 v6libdir=/usr/local/v6/lib; 26356 CFLAGS="-DINET6 $CFLAGS" 26357fi 26358rm -f conftest* 26359 26360 ;; 26361 linux) 26362 if test -d /usr/inet6; then 26363 v6type=$i 26364 v6lib=inet6 26365 v6libdir=/usr/inet6 26366 CFLAGS="-DINET6 $CFLAGS" 26367 fi 26368 ;; 26369 esac 26370 if test "$v6type" != "unknown"; then 26371 break 26372 fi 26373done 26374 26375if test "$v6lib" != "none"; then 26376 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 26377 if test -d $dir -a -f $dir/lib$v6lib.a; then 26378 LIBS="-L$dir -l$v6lib $LIBS" 26379 break 26380 fi 26381 done 26382fi 26383 26384fi 26385{ echo "$as_me:$LINENO: result: $v6type" >&5 26386echo "${ECHO_T}$v6type" >&6; } 26387 26388{ echo "$as_me:$LINENO: checking for IPv6" >&5 26389echo $ECHO_N "checking for IPv6... $ECHO_C" >&6; } 26390if test "${ac_cv_lib_ipv6+set}" = set; then 26391 echo $ECHO_N "(cached) $ECHO_C" >&6 26392else 26393 26394cat >conftest.$ac_ext <<_ACEOF 26395/* confdefs.h. */ 26396_ACEOF 26397cat confdefs.h >>conftest.$ac_ext 26398cat >>conftest.$ac_ext <<_ACEOF 26399/* end confdefs.h. */ 26400 26401#ifdef HAVE_SYS_TYPES_H 26402#include <sys/types.h> 26403#endif 26404#ifdef HAVE_SYS_SOCKET_H 26405#include <sys/socket.h> 26406#endif 26407#ifdef HAVE_NETINET_IN_H 26408#include <netinet/in.h> 26409#endif 26410#ifdef HAVE_NETINET_IN6_H 26411#include <netinet/in6.h> 26412#endif 26413 26414int 26415main () 26416{ 26417 26418 struct sockaddr_in6 sin6; 26419 int s; 26420 26421 s = socket(AF_INET6, SOCK_DGRAM, 0); 26422 26423 sin6.sin6_family = AF_INET6; 26424 sin6.sin6_port = htons(17); 26425 sin6.sin6_addr = in6addr_any; 26426 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 26427 26428 ; 26429 return 0; 26430} 26431_ACEOF 26432rm -f conftest.$ac_objext conftest$ac_exeext 26433if { (ac_try="$ac_link" 26434case "(($ac_try" in 26435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26436 *) ac_try_echo=$ac_try;; 26437esac 26438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26439 (eval "$ac_link") 2>conftest.er1 26440 ac_status=$? 26441 grep -v '^ *+' conftest.er1 >conftest.err 26442 rm -f conftest.er1 26443 cat conftest.err >&5 26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26445 (exit $ac_status); } && { 26446 test -z "$ac_c_werror_flag" || 26447 test ! -s conftest.err 26448 } && test -s conftest$ac_exeext && 26449 $as_test_x conftest$ac_exeext; then 26450 ac_cv_lib_ipv6=yes 26451else 26452 echo "$as_me: failed program was:" >&5 26453sed 's/^/| /' conftest.$ac_ext >&5 26454 26455 ac_cv_lib_ipv6=no 26456fi 26457 26458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26459 conftest$ac_exeext conftest.$ac_ext 26460fi 26461{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5 26462echo "${ECHO_T}$ac_cv_lib_ipv6" >&6; } 26463if test "$ac_cv_lib_ipv6" = yes; then 26464 26465cat >>confdefs.h <<\_ACEOF 26466#define HAVE_IPV6 1 26467_ACEOF 26468 26469else 26470 CFLAGS="${save_CFLAGS}" 26471fi 26472 26473## test for AIX missing in6addr_loopback 26474if test "$ac_cv_lib_ipv6" = yes; then 26475 { echo "$as_me:$LINENO: checking for in6addr_loopback" >&5 26476echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6; } 26477if test "${ac_cv_var_in6addr_loopback+set}" = set; then 26478 echo $ECHO_N "(cached) $ECHO_C" >&6 26479else 26480 26481 cat >conftest.$ac_ext <<_ACEOF 26482/* confdefs.h. */ 26483_ACEOF 26484cat confdefs.h >>conftest.$ac_ext 26485cat >>conftest.$ac_ext <<_ACEOF 26486/* end confdefs.h. */ 26487 26488#ifdef HAVE_SYS_TYPES_H 26489#include <sys/types.h> 26490#endif 26491#ifdef HAVE_SYS_SOCKET_H 26492#include <sys/socket.h> 26493#endif 26494#ifdef HAVE_NETINET_IN_H 26495#include <netinet/in.h> 26496#endif 26497#ifdef HAVE_NETINET_IN6_H 26498#include <netinet/in6.h> 26499#endif 26500int 26501main () 26502{ 26503 26504struct sockaddr_in6 sin6; 26505sin6.sin6_addr = in6addr_loopback; 26506 26507 ; 26508 return 0; 26509} 26510_ACEOF 26511rm -f conftest.$ac_objext conftest$ac_exeext 26512if { (ac_try="$ac_link" 26513case "(($ac_try" in 26514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26515 *) ac_try_echo=$ac_try;; 26516esac 26517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26518 (eval "$ac_link") 2>conftest.er1 26519 ac_status=$? 26520 grep -v '^ *+' conftest.er1 >conftest.err 26521 rm -f conftest.er1 26522 cat conftest.err >&5 26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26524 (exit $ac_status); } && { 26525 test -z "$ac_c_werror_flag" || 26526 test ! -s conftest.err 26527 } && test -s conftest$ac_exeext && 26528 $as_test_x conftest$ac_exeext; then 26529 ac_cv_var_in6addr_loopback=yes 26530else 26531 echo "$as_me: failed program was:" >&5 26532sed 's/^/| /' conftest.$ac_ext >&5 26533 26534 ac_cv_var_in6addr_loopback=no 26535fi 26536 26537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26538 conftest$ac_exeext conftest.$ac_ext 26539fi 26540{ echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5 26541echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6; } 26542 if test "$ac_cv_var_in6addr_loopback" = yes; then 26543 26544cat >>confdefs.h <<\_ACEOF 26545#define HAVE_IN6ADDR_LOOPBACK 1 26546_ACEOF 26547 26548 fi 26549fi 26550 26551 26552 26553 26554 26555 26556{ echo "$as_me:$LINENO: checking for gethostbyname2" >&5 26557echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6; } 26558if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 26559 echo $ECHO_N "(cached) $ECHO_C" >&6 26560else 26561 26562if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 26563 ac_save_LIBS="$LIBS" 26564 for ac_lib in "" inet6 ip6; do 26565 case "$ac_lib" in 26566 "") ;; 26567 yes) ac_lib="" ;; 26568 no) continue ;; 26569 -l*) ;; 26570 *) ac_lib="-l$ac_lib" ;; 26571 esac 26572 LIBS=" $ac_lib $ac_save_LIBS" 26573 cat >conftest.$ac_ext <<_ACEOF 26574/* confdefs.h. */ 26575_ACEOF 26576cat confdefs.h >>conftest.$ac_ext 26577cat >>conftest.$ac_ext <<_ACEOF 26578/* end confdefs.h. */ 26579 26580int 26581main () 26582{ 26583gethostbyname2() 26584 ; 26585 return 0; 26586} 26587_ACEOF 26588rm -f conftest.$ac_objext conftest$ac_exeext 26589if { (ac_try="$ac_link" 26590case "(($ac_try" in 26591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26592 *) ac_try_echo=$ac_try;; 26593esac 26594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26595 (eval "$ac_link") 2>conftest.er1 26596 ac_status=$? 26597 grep -v '^ *+' conftest.er1 >conftest.err 26598 rm -f conftest.er1 26599 cat conftest.err >&5 26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26601 (exit $ac_status); } && { 26602 test -z "$ac_c_werror_flag" || 26603 test ! -s conftest.err 26604 } && test -s conftest$ac_exeext && 26605 $as_test_x conftest$ac_exeext; then 26606 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 26607else 26608 echo "$as_me: failed program was:" >&5 26609sed 's/^/| /' conftest.$ac_ext >&5 26610 26611 26612fi 26613 26614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26615 conftest$ac_exeext conftest.$ac_ext 26616 done 26617 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 26618 LIBS="$ac_save_LIBS" 26619fi 26620 26621fi 26622 26623 26624eval "ac_res=\$ac_cv_funclib_gethostbyname2" 26625 26626if false; then 26627 26628for ac_func in gethostbyname2 26629do 26630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 26631{ echo "$as_me:$LINENO: checking for $ac_func" >&5 26632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 26633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 26634 echo $ECHO_N "(cached) $ECHO_C" >&6 26635else 26636 cat >conftest.$ac_ext <<_ACEOF 26637/* confdefs.h. */ 26638_ACEOF 26639cat confdefs.h >>conftest.$ac_ext 26640cat >>conftest.$ac_ext <<_ACEOF 26641/* end confdefs.h. */ 26642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 26643 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26644#define $ac_func innocuous_$ac_func 26645 26646/* System header to define __stub macros and hopefully few prototypes, 26647 which can conflict with char $ac_func (); below. 26648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26649 <limits.h> exists even on freestanding compilers. */ 26650 26651#ifdef __STDC__ 26652# include <limits.h> 26653#else 26654# include <assert.h> 26655#endif 26656 26657#undef $ac_func 26658 26659/* Override any GCC internal prototype to avoid an error. 26660 Use char because int might match the return type of a GCC 26661 builtin and then its argument prototype would still apply. */ 26662#ifdef __cplusplus 26663extern "C" 26664#endif 26665char $ac_func (); 26666/* The GNU C library defines this for functions which it implements 26667 to always fail with ENOSYS. Some functions are actually named 26668 something starting with __ and the normal name is an alias. */ 26669#if defined __stub_$ac_func || defined __stub___$ac_func 26670choke me 26671#endif 26672 26673int 26674main () 26675{ 26676return $ac_func (); 26677 ; 26678 return 0; 26679} 26680_ACEOF 26681rm -f conftest.$ac_objext conftest$ac_exeext 26682if { (ac_try="$ac_link" 26683case "(($ac_try" in 26684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26685 *) ac_try_echo=$ac_try;; 26686esac 26687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26688 (eval "$ac_link") 2>conftest.er1 26689 ac_status=$? 26690 grep -v '^ *+' conftest.er1 >conftest.err 26691 rm -f conftest.er1 26692 cat conftest.err >&5 26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26694 (exit $ac_status); } && { 26695 test -z "$ac_c_werror_flag" || 26696 test ! -s conftest.err 26697 } && test -s conftest$ac_exeext && 26698 $as_test_x conftest$ac_exeext; then 26699 eval "$as_ac_var=yes" 26700else 26701 echo "$as_me: failed program was:" >&5 26702sed 's/^/| /' conftest.$ac_ext >&5 26703 26704 eval "$as_ac_var=no" 26705fi 26706 26707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26708 conftest$ac_exeext conftest.$ac_ext 26709fi 26710ac_res=`eval echo '${'$as_ac_var'}'` 26711 { echo "$as_me:$LINENO: result: $ac_res" >&5 26712echo "${ECHO_T}$ac_res" >&6; } 26713if test `eval echo '${'$as_ac_var'}'` = yes; then 26714 cat >>confdefs.h <<_ACEOF 26715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 26716_ACEOF 26717 26718fi 26719done 26720 26721fi 26722# gethostbyname2 26723eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26724eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 26725eval "LIB_gethostbyname2=$ac_res" 26726 26727case "$ac_res" in 26728 yes) 26729 eval "ac_cv_func_gethostbyname2=yes" 26730 eval "LIB_gethostbyname2=" 26731 cat >>confdefs.h <<_ACEOF 26732#define $ac_tr_func 1 26733_ACEOF 26734 26735 { echo "$as_me:$LINENO: result: yes" >&5 26736echo "${ECHO_T}yes" >&6; } 26737 ;; 26738 no) 26739 eval "ac_cv_func_gethostbyname2=no" 26740 eval "LIB_gethostbyname2=" 26741 { echo "$as_me:$LINENO: result: no" >&5 26742echo "${ECHO_T}no" >&6; } 26743 ;; 26744 *) 26745 eval "ac_cv_func_gethostbyname2=yes" 26746 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 26747 cat >>confdefs.h <<_ACEOF 26748#define $ac_tr_func 1 26749_ACEOF 26750 26751 cat >>confdefs.h <<_ACEOF 26752#define $ac_tr_lib 1 26753_ACEOF 26754 26755 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 26756echo "${ECHO_T}yes, in $ac_res" >&6; } 26757 ;; 26758esac 26759 26760 26761if test -n "$LIB_gethostbyname2"; then 26762 LIBS="$LIB_gethostbyname2 $LIBS" 26763fi 26764 26765 26766 26767 26768 26769for ac_header in arpa/nameser.h 26770do 26771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 26772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26773 { echo "$as_me:$LINENO: checking for $ac_header" >&5 26774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26776 echo $ECHO_N "(cached) $ECHO_C" >&6 26777fi 26778ac_res=`eval echo '${'$as_ac_Header'}'` 26779 { echo "$as_me:$LINENO: result: $ac_res" >&5 26780echo "${ECHO_T}$ac_res" >&6; } 26781else 26782 # Is the header compilable? 26783{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 26784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 26785cat >conftest.$ac_ext <<_ACEOF 26786/* confdefs.h. */ 26787_ACEOF 26788cat confdefs.h >>conftest.$ac_ext 26789cat >>conftest.$ac_ext <<_ACEOF 26790/* end confdefs.h. */ 26791$ac_includes_default 26792#include <$ac_header> 26793_ACEOF 26794rm -f conftest.$ac_objext 26795if { (ac_try="$ac_compile" 26796case "(($ac_try" in 26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26798 *) ac_try_echo=$ac_try;; 26799esac 26800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26801 (eval "$ac_compile") 2>conftest.er1 26802 ac_status=$? 26803 grep -v '^ *+' conftest.er1 >conftest.err 26804 rm -f conftest.er1 26805 cat conftest.err >&5 26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26807 (exit $ac_status); } && { 26808 test -z "$ac_c_werror_flag" || 26809 test ! -s conftest.err 26810 } && test -s conftest.$ac_objext; then 26811 ac_header_compiler=yes 26812else 26813 echo "$as_me: failed program was:" >&5 26814sed 's/^/| /' conftest.$ac_ext >&5 26815 26816 ac_header_compiler=no 26817fi 26818 26819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26820{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26821echo "${ECHO_T}$ac_header_compiler" >&6; } 26822 26823# Is the header present? 26824{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 26825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 26826cat >conftest.$ac_ext <<_ACEOF 26827/* confdefs.h. */ 26828_ACEOF 26829cat confdefs.h >>conftest.$ac_ext 26830cat >>conftest.$ac_ext <<_ACEOF 26831/* end confdefs.h. */ 26832#include <$ac_header> 26833_ACEOF 26834if { (ac_try="$ac_cpp conftest.$ac_ext" 26835case "(($ac_try" in 26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26837 *) ac_try_echo=$ac_try;; 26838esac 26839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 26841 ac_status=$? 26842 grep -v '^ *+' conftest.er1 >conftest.err 26843 rm -f conftest.er1 26844 cat conftest.err >&5 26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26846 (exit $ac_status); } >/dev/null && { 26847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 26848 test ! -s conftest.err 26849 }; then 26850 ac_header_preproc=yes 26851else 26852 echo "$as_me: failed program was:" >&5 26853sed 's/^/| /' conftest.$ac_ext >&5 26854 26855 ac_header_preproc=no 26856fi 26857 26858rm -f conftest.err conftest.$ac_ext 26859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26860echo "${ECHO_T}$ac_header_preproc" >&6; } 26861 26862# So? What about this header? 26863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26864 yes:no: ) 26865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 26866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 26867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 26868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 26869 ac_header_preproc=yes 26870 ;; 26871 no:yes:* ) 26872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 26873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 26874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 26875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 26876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 26877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 26878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 26879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 26880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 26881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 26882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 26883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 26884 ( cat <<\_ASBOX 26885## ----------------------------------- ## 26886## Report this to heimdal-bugs@h5l.org ## 26887## ----------------------------------- ## 26888_ASBOX 26889 ) | sed "s/^/$as_me: WARNING: /" >&2 26890 ;; 26891esac 26892{ echo "$as_me:$LINENO: checking for $ac_header" >&5 26893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26895 echo $ECHO_N "(cached) $ECHO_C" >&6 26896else 26897 eval "$as_ac_Header=\$ac_header_preproc" 26898fi 26899ac_res=`eval echo '${'$as_ac_Header'}'` 26900 { echo "$as_me:$LINENO: result: $ac_res" >&5 26901echo "${ECHO_T}$ac_res" >&6; } 26902 26903fi 26904if test `eval echo '${'$as_ac_Header'}'` = yes; then 26905 cat >>confdefs.h <<_ACEOF 26906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26907_ACEOF 26908 26909fi 26910 26911done 26912 26913 26914 26915for ac_header in resolv.h 26916do 26917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 26918{ echo "$as_me:$LINENO: checking for $ac_header" >&5 26919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 26920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 26921 echo $ECHO_N "(cached) $ECHO_C" >&6 26922else 26923 cat >conftest.$ac_ext <<_ACEOF 26924/* confdefs.h. */ 26925_ACEOF 26926cat confdefs.h >>conftest.$ac_ext 26927cat >>conftest.$ac_ext <<_ACEOF 26928/* end confdefs.h. */ 26929$ac_includes_default 26930#ifdef HAVE_SYS_TYPES_H 26931#include <sys/types.h> 26932#endif 26933#ifdef HAVE_NETINET_IN_H 26934#include <netinet/in.h> 26935#endif 26936#ifdef HAVE_ARPA_NAMESER_H 26937#include <arpa/nameser.h> 26938#endif 26939 26940 26941#include <$ac_header> 26942_ACEOF 26943rm -f conftest.$ac_objext 26944if { (ac_try="$ac_compile" 26945case "(($ac_try" in 26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26947 *) ac_try_echo=$ac_try;; 26948esac 26949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26950 (eval "$ac_compile") 2>conftest.er1 26951 ac_status=$? 26952 grep -v '^ *+' conftest.er1 >conftest.err 26953 rm -f conftest.er1 26954 cat conftest.err >&5 26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26956 (exit $ac_status); } && { 26957 test -z "$ac_c_werror_flag" || 26958 test ! -s conftest.err 26959 } && test -s conftest.$ac_objext; then 26960 eval "$as_ac_Header=yes" 26961else 26962 echo "$as_me: failed program was:" >&5 26963sed 's/^/| /' conftest.$ac_ext >&5 26964 26965 eval "$as_ac_Header=no" 26966fi 26967 26968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26969fi 26970ac_res=`eval echo '${'$as_ac_Header'}'` 26971 { echo "$as_me:$LINENO: result: $ac_res" >&5 26972echo "${ECHO_T}$ac_res" >&6; } 26973if test `eval echo '${'$as_ac_Header'}'` = yes; then 26974 cat >>confdefs.h <<_ACEOF 26975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 26976_ACEOF 26977 26978fi 26979 26980done 26981 26982 26983 26984 26985 26986 26987{ echo "$as_me:$LINENO: checking for res_search" >&5 26988echo $ECHO_N "checking for res_search... $ECHO_C" >&6; } 26989if test "${ac_cv_funclib_res_search+set}" = set; then 26990 echo $ECHO_N "(cached) $ECHO_C" >&6 26991else 26992 26993if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 26994 ac_save_LIBS="$LIBS" 26995 for ac_lib in "" resolv; do 26996 case "$ac_lib" in 26997 "") ;; 26998 yes) ac_lib="" ;; 26999 no) continue ;; 27000 -l*) ;; 27001 *) ac_lib="-l$ac_lib" ;; 27002 esac 27003 LIBS=" $ac_lib $ac_save_LIBS" 27004 cat >conftest.$ac_ext <<_ACEOF 27005/* confdefs.h. */ 27006_ACEOF 27007cat confdefs.h >>conftest.$ac_ext 27008cat >>conftest.$ac_ext <<_ACEOF 27009/* end confdefs.h. */ 27010 27011#include <stdio.h> 27012#ifdef HAVE_SYS_TYPES_H 27013#include <sys/types.h> 27014#endif 27015#ifdef HAVE_NETINET_IN_H 27016#include <netinet/in.h> 27017#endif 27018#ifdef HAVE_ARPA_NAMESER_H 27019#include <arpa/nameser.h> 27020#endif 27021#ifdef HAVE_RESOLV_H 27022#include <resolv.h> 27023#endif 27024 27025int 27026main () 27027{ 27028res_search(0,0,0,0,0) 27029 ; 27030 return 0; 27031} 27032_ACEOF 27033rm -f conftest.$ac_objext conftest$ac_exeext 27034if { (ac_try="$ac_link" 27035case "(($ac_try" in 27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27037 *) ac_try_echo=$ac_try;; 27038esac 27039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27040 (eval "$ac_link") 2>conftest.er1 27041 ac_status=$? 27042 grep -v '^ *+' conftest.er1 >conftest.err 27043 rm -f conftest.er1 27044 cat conftest.err >&5 27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27046 (exit $ac_status); } && { 27047 test -z "$ac_c_werror_flag" || 27048 test ! -s conftest.err 27049 } && test -s conftest$ac_exeext && 27050 $as_test_x conftest$ac_exeext; then 27051 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 27052else 27053 echo "$as_me: failed program was:" >&5 27054sed 's/^/| /' conftest.$ac_ext >&5 27055 27056 27057fi 27058 27059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27060 conftest$ac_exeext conftest.$ac_ext 27061 done 27062 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 27063 LIBS="$ac_save_LIBS" 27064fi 27065 27066fi 27067 27068 27069eval "ac_res=\$ac_cv_funclib_res_search" 27070 27071if false; then 27072 27073for ac_func in res_search 27074do 27075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 27076{ echo "$as_me:$LINENO: checking for $ac_func" >&5 27077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 27078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 27079 echo $ECHO_N "(cached) $ECHO_C" >&6 27080else 27081 cat >conftest.$ac_ext <<_ACEOF 27082/* confdefs.h. */ 27083_ACEOF 27084cat confdefs.h >>conftest.$ac_ext 27085cat >>conftest.$ac_ext <<_ACEOF 27086/* end confdefs.h. */ 27087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 27088 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27089#define $ac_func innocuous_$ac_func 27090 27091/* System header to define __stub macros and hopefully few prototypes, 27092 which can conflict with char $ac_func (); below. 27093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27094 <limits.h> exists even on freestanding compilers. */ 27095 27096#ifdef __STDC__ 27097# include <limits.h> 27098#else 27099# include <assert.h> 27100#endif 27101 27102#undef $ac_func 27103 27104/* Override any GCC internal prototype to avoid an error. 27105 Use char because int might match the return type of a GCC 27106 builtin and then its argument prototype would still apply. */ 27107#ifdef __cplusplus 27108extern "C" 27109#endif 27110char $ac_func (); 27111/* The GNU C library defines this for functions which it implements 27112 to always fail with ENOSYS. Some functions are actually named 27113 something starting with __ and the normal name is an alias. */ 27114#if defined __stub_$ac_func || defined __stub___$ac_func 27115choke me 27116#endif 27117 27118int 27119main () 27120{ 27121return $ac_func (); 27122 ; 27123 return 0; 27124} 27125_ACEOF 27126rm -f conftest.$ac_objext conftest$ac_exeext 27127if { (ac_try="$ac_link" 27128case "(($ac_try" in 27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27130 *) ac_try_echo=$ac_try;; 27131esac 27132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27133 (eval "$ac_link") 2>conftest.er1 27134 ac_status=$? 27135 grep -v '^ *+' conftest.er1 >conftest.err 27136 rm -f conftest.er1 27137 cat conftest.err >&5 27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27139 (exit $ac_status); } && { 27140 test -z "$ac_c_werror_flag" || 27141 test ! -s conftest.err 27142 } && test -s conftest$ac_exeext && 27143 $as_test_x conftest$ac_exeext; then 27144 eval "$as_ac_var=yes" 27145else 27146 echo "$as_me: failed program was:" >&5 27147sed 's/^/| /' conftest.$ac_ext >&5 27148 27149 eval "$as_ac_var=no" 27150fi 27151 27152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27153 conftest$ac_exeext conftest.$ac_ext 27154fi 27155ac_res=`eval echo '${'$as_ac_var'}'` 27156 { echo "$as_me:$LINENO: result: $ac_res" >&5 27157echo "${ECHO_T}$ac_res" >&6; } 27158if test `eval echo '${'$as_ac_var'}'` = yes; then 27159 cat >>confdefs.h <<_ACEOF 27160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27161_ACEOF 27162 27163fi 27164done 27165 27166fi 27167# res_search 27168eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27169eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27170eval "LIB_res_search=$ac_res" 27171 27172case "$ac_res" in 27173 yes) 27174 eval "ac_cv_func_res_search=yes" 27175 eval "LIB_res_search=" 27176 cat >>confdefs.h <<_ACEOF 27177#define $ac_tr_func 1 27178_ACEOF 27179 27180 { echo "$as_me:$LINENO: result: yes" >&5 27181echo "${ECHO_T}yes" >&6; } 27182 ;; 27183 no) 27184 eval "ac_cv_func_res_search=no" 27185 eval "LIB_res_search=" 27186 { echo "$as_me:$LINENO: result: no" >&5 27187echo "${ECHO_T}no" >&6; } 27188 ;; 27189 *) 27190 eval "ac_cv_func_res_search=yes" 27191 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 27192 cat >>confdefs.h <<_ACEOF 27193#define $ac_tr_func 1 27194_ACEOF 27195 27196 cat >>confdefs.h <<_ACEOF 27197#define $ac_tr_lib 1 27198_ACEOF 27199 27200 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 27201echo "${ECHO_T}yes, in $ac_res" >&6; } 27202 ;; 27203esac 27204 27205 27206if test -n "$LIB_res_search"; then 27207 LIBS="$LIB_res_search $LIBS" 27208fi 27209 27210 27211 27212 27213 27214 27215{ echo "$as_me:$LINENO: checking for res_nsearch" >&5 27216echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6; } 27217if test "${ac_cv_funclib_res_nsearch+set}" = set; then 27218 echo $ECHO_N "(cached) $ECHO_C" >&6 27219else 27220 27221if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 27222 ac_save_LIBS="$LIBS" 27223 for ac_lib in "" resolv; do 27224 case "$ac_lib" in 27225 "") ;; 27226 yes) ac_lib="" ;; 27227 no) continue ;; 27228 -l*) ;; 27229 *) ac_lib="-l$ac_lib" ;; 27230 esac 27231 LIBS=" $ac_lib $ac_save_LIBS" 27232 cat >conftest.$ac_ext <<_ACEOF 27233/* confdefs.h. */ 27234_ACEOF 27235cat confdefs.h >>conftest.$ac_ext 27236cat >>conftest.$ac_ext <<_ACEOF 27237/* end confdefs.h. */ 27238 27239#include <stdio.h> 27240#ifdef HAVE_SYS_TYPES_H 27241#include <sys/types.h> 27242#endif 27243#ifdef HAVE_NETINET_IN_H 27244#include <netinet/in.h> 27245#endif 27246#ifdef HAVE_ARPA_NAMESER_H 27247#include <arpa/nameser.h> 27248#endif 27249#ifdef HAVE_RESOLV_H 27250#include <resolv.h> 27251#endif 27252 27253int 27254main () 27255{ 27256res_nsearch(0,0,0,0,0,0) 27257 ; 27258 return 0; 27259} 27260_ACEOF 27261rm -f conftest.$ac_objext conftest$ac_exeext 27262if { (ac_try="$ac_link" 27263case "(($ac_try" in 27264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27265 *) ac_try_echo=$ac_try;; 27266esac 27267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27268 (eval "$ac_link") 2>conftest.er1 27269 ac_status=$? 27270 grep -v '^ *+' conftest.er1 >conftest.err 27271 rm -f conftest.er1 27272 cat conftest.err >&5 27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27274 (exit $ac_status); } && { 27275 test -z "$ac_c_werror_flag" || 27276 test ! -s conftest.err 27277 } && test -s conftest$ac_exeext && 27278 $as_test_x conftest$ac_exeext; then 27279 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 27280else 27281 echo "$as_me: failed program was:" >&5 27282sed 's/^/| /' conftest.$ac_ext >&5 27283 27284 27285fi 27286 27287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27288 conftest$ac_exeext conftest.$ac_ext 27289 done 27290 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 27291 LIBS="$ac_save_LIBS" 27292fi 27293 27294fi 27295 27296 27297eval "ac_res=\$ac_cv_funclib_res_nsearch" 27298 27299if false; then 27300 27301for ac_func in res_nsearch 27302do 27303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 27304{ echo "$as_me:$LINENO: checking for $ac_func" >&5 27305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 27306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 27307 echo $ECHO_N "(cached) $ECHO_C" >&6 27308else 27309 cat >conftest.$ac_ext <<_ACEOF 27310/* confdefs.h. */ 27311_ACEOF 27312cat confdefs.h >>conftest.$ac_ext 27313cat >>conftest.$ac_ext <<_ACEOF 27314/* end confdefs.h. */ 27315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 27316 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27317#define $ac_func innocuous_$ac_func 27318 27319/* System header to define __stub macros and hopefully few prototypes, 27320 which can conflict with char $ac_func (); below. 27321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27322 <limits.h> exists even on freestanding compilers. */ 27323 27324#ifdef __STDC__ 27325# include <limits.h> 27326#else 27327# include <assert.h> 27328#endif 27329 27330#undef $ac_func 27331 27332/* Override any GCC internal prototype to avoid an error. 27333 Use char because int might match the return type of a GCC 27334 builtin and then its argument prototype would still apply. */ 27335#ifdef __cplusplus 27336extern "C" 27337#endif 27338char $ac_func (); 27339/* The GNU C library defines this for functions which it implements 27340 to always fail with ENOSYS. Some functions are actually named 27341 something starting with __ and the normal name is an alias. */ 27342#if defined __stub_$ac_func || defined __stub___$ac_func 27343choke me 27344#endif 27345 27346int 27347main () 27348{ 27349return $ac_func (); 27350 ; 27351 return 0; 27352} 27353_ACEOF 27354rm -f conftest.$ac_objext conftest$ac_exeext 27355if { (ac_try="$ac_link" 27356case "(($ac_try" in 27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27358 *) ac_try_echo=$ac_try;; 27359esac 27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27361 (eval "$ac_link") 2>conftest.er1 27362 ac_status=$? 27363 grep -v '^ *+' conftest.er1 >conftest.err 27364 rm -f conftest.er1 27365 cat conftest.err >&5 27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27367 (exit $ac_status); } && { 27368 test -z "$ac_c_werror_flag" || 27369 test ! -s conftest.err 27370 } && test -s conftest$ac_exeext && 27371 $as_test_x conftest$ac_exeext; then 27372 eval "$as_ac_var=yes" 27373else 27374 echo "$as_me: failed program was:" >&5 27375sed 's/^/| /' conftest.$ac_ext >&5 27376 27377 eval "$as_ac_var=no" 27378fi 27379 27380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27381 conftest$ac_exeext conftest.$ac_ext 27382fi 27383ac_res=`eval echo '${'$as_ac_var'}'` 27384 { echo "$as_me:$LINENO: result: $ac_res" >&5 27385echo "${ECHO_T}$ac_res" >&6; } 27386if test `eval echo '${'$as_ac_var'}'` = yes; then 27387 cat >>confdefs.h <<_ACEOF 27388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27389_ACEOF 27390 27391fi 27392done 27393 27394fi 27395# res_nsearch 27396eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27397eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27398eval "LIB_res_nsearch=$ac_res" 27399 27400case "$ac_res" in 27401 yes) 27402 eval "ac_cv_func_res_nsearch=yes" 27403 eval "LIB_res_nsearch=" 27404 cat >>confdefs.h <<_ACEOF 27405#define $ac_tr_func 1 27406_ACEOF 27407 27408 { echo "$as_me:$LINENO: result: yes" >&5 27409echo "${ECHO_T}yes" >&6; } 27410 ;; 27411 no) 27412 eval "ac_cv_func_res_nsearch=no" 27413 eval "LIB_res_nsearch=" 27414 { echo "$as_me:$LINENO: result: no" >&5 27415echo "${ECHO_T}no" >&6; } 27416 ;; 27417 *) 27418 eval "ac_cv_func_res_nsearch=yes" 27419 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 27420 cat >>confdefs.h <<_ACEOF 27421#define $ac_tr_func 1 27422_ACEOF 27423 27424 cat >>confdefs.h <<_ACEOF 27425#define $ac_tr_lib 1 27426_ACEOF 27427 27428 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 27429echo "${ECHO_T}yes, in $ac_res" >&6; } 27430 ;; 27431esac 27432 27433 27434if test -n "$LIB_res_nsearch"; then 27435 LIBS="$LIB_res_nsearch $LIBS" 27436fi 27437 27438 27439 27440 27441 27442 27443{ echo "$as_me:$LINENO: checking for res_ndestroy" >&5 27444echo $ECHO_N "checking for res_ndestroy... $ECHO_C" >&6; } 27445if test "${ac_cv_funclib_res_ndestroy+set}" = set; then 27446 echo $ECHO_N "(cached) $ECHO_C" >&6 27447else 27448 27449if eval "test \"\$ac_cv_func_res_ndestroy\" != yes" ; then 27450 ac_save_LIBS="$LIBS" 27451 for ac_lib in "" resolv; do 27452 case "$ac_lib" in 27453 "") ;; 27454 yes) ac_lib="" ;; 27455 no) continue ;; 27456 -l*) ;; 27457 *) ac_lib="-l$ac_lib" ;; 27458 esac 27459 LIBS=" $ac_lib $ac_save_LIBS" 27460 cat >conftest.$ac_ext <<_ACEOF 27461/* confdefs.h. */ 27462_ACEOF 27463cat confdefs.h >>conftest.$ac_ext 27464cat >>conftest.$ac_ext <<_ACEOF 27465/* end confdefs.h. */ 27466 27467#include <stdio.h> 27468#ifdef HAVE_SYS_TYPES_H 27469#include <sys/types.h> 27470#endif 27471#ifdef HAVE_NETINET_IN_H 27472#include <netinet/in.h> 27473#endif 27474#ifdef HAVE_ARPA_NAMESER_H 27475#include <arpa/nameser.h> 27476#endif 27477#ifdef HAVE_RESOLV_H 27478#include <resolv.h> 27479#endif 27480 27481int 27482main () 27483{ 27484res_ndestroy(0) 27485 ; 27486 return 0; 27487} 27488_ACEOF 27489rm -f conftest.$ac_objext conftest$ac_exeext 27490if { (ac_try="$ac_link" 27491case "(($ac_try" in 27492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27493 *) ac_try_echo=$ac_try;; 27494esac 27495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27496 (eval "$ac_link") 2>conftest.er1 27497 ac_status=$? 27498 grep -v '^ *+' conftest.er1 >conftest.err 27499 rm -f conftest.er1 27500 cat conftest.err >&5 27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27502 (exit $ac_status); } && { 27503 test -z "$ac_c_werror_flag" || 27504 test ! -s conftest.err 27505 } && test -s conftest$ac_exeext && 27506 $as_test_x conftest$ac_exeext; then 27507 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_ndestroy=$ac_lib; else ac_cv_funclib_res_ndestroy=yes; fi";break 27508else 27509 echo "$as_me: failed program was:" >&5 27510sed 's/^/| /' conftest.$ac_ext >&5 27511 27512 27513fi 27514 27515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27516 conftest$ac_exeext conftest.$ac_ext 27517 done 27518 eval "ac_cv_funclib_res_ndestroy=\${ac_cv_funclib_res_ndestroy-no}" 27519 LIBS="$ac_save_LIBS" 27520fi 27521 27522fi 27523 27524 27525eval "ac_res=\$ac_cv_funclib_res_ndestroy" 27526 27527if false; then 27528 27529for ac_func in res_ndestroy 27530do 27531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 27532{ echo "$as_me:$LINENO: checking for $ac_func" >&5 27533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 27534if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 27535 echo $ECHO_N "(cached) $ECHO_C" >&6 27536else 27537 cat >conftest.$ac_ext <<_ACEOF 27538/* confdefs.h. */ 27539_ACEOF 27540cat confdefs.h >>conftest.$ac_ext 27541cat >>conftest.$ac_ext <<_ACEOF 27542/* end confdefs.h. */ 27543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 27544 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27545#define $ac_func innocuous_$ac_func 27546 27547/* System header to define __stub macros and hopefully few prototypes, 27548 which can conflict with char $ac_func (); below. 27549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27550 <limits.h> exists even on freestanding compilers. */ 27551 27552#ifdef __STDC__ 27553# include <limits.h> 27554#else 27555# include <assert.h> 27556#endif 27557 27558#undef $ac_func 27559 27560/* Override any GCC internal prototype to avoid an error. 27561 Use char because int might match the return type of a GCC 27562 builtin and then its argument prototype would still apply. */ 27563#ifdef __cplusplus 27564extern "C" 27565#endif 27566char $ac_func (); 27567/* The GNU C library defines this for functions which it implements 27568 to always fail with ENOSYS. Some functions are actually named 27569 something starting with __ and the normal name is an alias. */ 27570#if defined __stub_$ac_func || defined __stub___$ac_func 27571choke me 27572#endif 27573 27574int 27575main () 27576{ 27577return $ac_func (); 27578 ; 27579 return 0; 27580} 27581_ACEOF 27582rm -f conftest.$ac_objext conftest$ac_exeext 27583if { (ac_try="$ac_link" 27584case "(($ac_try" in 27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27586 *) ac_try_echo=$ac_try;; 27587esac 27588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27589 (eval "$ac_link") 2>conftest.er1 27590 ac_status=$? 27591 grep -v '^ *+' conftest.er1 >conftest.err 27592 rm -f conftest.er1 27593 cat conftest.err >&5 27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27595 (exit $ac_status); } && { 27596 test -z "$ac_c_werror_flag" || 27597 test ! -s conftest.err 27598 } && test -s conftest$ac_exeext && 27599 $as_test_x conftest$ac_exeext; then 27600 eval "$as_ac_var=yes" 27601else 27602 echo "$as_me: failed program was:" >&5 27603sed 's/^/| /' conftest.$ac_ext >&5 27604 27605 eval "$as_ac_var=no" 27606fi 27607 27608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27609 conftest$ac_exeext conftest.$ac_ext 27610fi 27611ac_res=`eval echo '${'$as_ac_var'}'` 27612 { echo "$as_me:$LINENO: result: $ac_res" >&5 27613echo "${ECHO_T}$ac_res" >&6; } 27614if test `eval echo '${'$as_ac_var'}'` = yes; then 27615 cat >>confdefs.h <<_ACEOF 27616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27617_ACEOF 27618 27619fi 27620done 27621 27622fi 27623# res_ndestroy 27624eval "ac_tr_func=HAVE_`echo res_ndestroy | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27625eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27626eval "LIB_res_ndestroy=$ac_res" 27627 27628case "$ac_res" in 27629 yes) 27630 eval "ac_cv_func_res_ndestroy=yes" 27631 eval "LIB_res_ndestroy=" 27632 cat >>confdefs.h <<_ACEOF 27633#define $ac_tr_func 1 27634_ACEOF 27635 27636 { echo "$as_me:$LINENO: result: yes" >&5 27637echo "${ECHO_T}yes" >&6; } 27638 ;; 27639 no) 27640 eval "ac_cv_func_res_ndestroy=no" 27641 eval "LIB_res_ndestroy=" 27642 { echo "$as_me:$LINENO: result: no" >&5 27643echo "${ECHO_T}no" >&6; } 27644 ;; 27645 *) 27646 eval "ac_cv_func_res_ndestroy=yes" 27647 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 27648 cat >>confdefs.h <<_ACEOF 27649#define $ac_tr_func 1 27650_ACEOF 27651 27652 cat >>confdefs.h <<_ACEOF 27653#define $ac_tr_lib 1 27654_ACEOF 27655 27656 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 27657echo "${ECHO_T}yes, in $ac_res" >&6; } 27658 ;; 27659esac 27660 27661 27662if test -n "$LIB_res_ndestroy"; then 27663 LIBS="$LIB_res_ndestroy $LIBS" 27664fi 27665 27666 27667 27668 27669 27670 27671{ echo "$as_me:$LINENO: checking for dn_expand" >&5 27672echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6; } 27673if test "${ac_cv_funclib_dn_expand+set}" = set; then 27674 echo $ECHO_N "(cached) $ECHO_C" >&6 27675else 27676 27677if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 27678 ac_save_LIBS="$LIBS" 27679 for ac_lib in "" resolv; do 27680 case "$ac_lib" in 27681 "") ;; 27682 yes) ac_lib="" ;; 27683 no) continue ;; 27684 -l*) ;; 27685 *) ac_lib="-l$ac_lib" ;; 27686 esac 27687 LIBS=" $ac_lib $ac_save_LIBS" 27688 cat >conftest.$ac_ext <<_ACEOF 27689/* confdefs.h. */ 27690_ACEOF 27691cat confdefs.h >>conftest.$ac_ext 27692cat >>conftest.$ac_ext <<_ACEOF 27693/* end confdefs.h. */ 27694 27695#include <stdio.h> 27696#ifdef HAVE_SYS_TYPES_H 27697#include <sys/types.h> 27698#endif 27699#ifdef HAVE_NETINET_IN_H 27700#include <netinet/in.h> 27701#endif 27702#ifdef HAVE_ARPA_NAMESER_H 27703#include <arpa/nameser.h> 27704#endif 27705#ifdef HAVE_RESOLV_H 27706#include <resolv.h> 27707#endif 27708 27709int 27710main () 27711{ 27712dn_expand(0,0,0,0,0) 27713 ; 27714 return 0; 27715} 27716_ACEOF 27717rm -f conftest.$ac_objext conftest$ac_exeext 27718if { (ac_try="$ac_link" 27719case "(($ac_try" in 27720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27721 *) ac_try_echo=$ac_try;; 27722esac 27723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27724 (eval "$ac_link") 2>conftest.er1 27725 ac_status=$? 27726 grep -v '^ *+' conftest.er1 >conftest.err 27727 rm -f conftest.er1 27728 cat conftest.err >&5 27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27730 (exit $ac_status); } && { 27731 test -z "$ac_c_werror_flag" || 27732 test ! -s conftest.err 27733 } && test -s conftest$ac_exeext && 27734 $as_test_x conftest$ac_exeext; then 27735 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 27736else 27737 echo "$as_me: failed program was:" >&5 27738sed 's/^/| /' conftest.$ac_ext >&5 27739 27740 27741fi 27742 27743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27744 conftest$ac_exeext conftest.$ac_ext 27745 done 27746 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 27747 LIBS="$ac_save_LIBS" 27748fi 27749 27750fi 27751 27752 27753eval "ac_res=\$ac_cv_funclib_dn_expand" 27754 27755if false; then 27756 27757for ac_func in dn_expand 27758do 27759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 27760{ echo "$as_me:$LINENO: checking for $ac_func" >&5 27761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 27762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 27763 echo $ECHO_N "(cached) $ECHO_C" >&6 27764else 27765 cat >conftest.$ac_ext <<_ACEOF 27766/* confdefs.h. */ 27767_ACEOF 27768cat confdefs.h >>conftest.$ac_ext 27769cat >>conftest.$ac_ext <<_ACEOF 27770/* end confdefs.h. */ 27771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 27772 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27773#define $ac_func innocuous_$ac_func 27774 27775/* System header to define __stub macros and hopefully few prototypes, 27776 which can conflict with char $ac_func (); below. 27777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27778 <limits.h> exists even on freestanding compilers. */ 27779 27780#ifdef __STDC__ 27781# include <limits.h> 27782#else 27783# include <assert.h> 27784#endif 27785 27786#undef $ac_func 27787 27788/* Override any GCC internal prototype to avoid an error. 27789 Use char because int might match the return type of a GCC 27790 builtin and then its argument prototype would still apply. */ 27791#ifdef __cplusplus 27792extern "C" 27793#endif 27794char $ac_func (); 27795/* The GNU C library defines this for functions which it implements 27796 to always fail with ENOSYS. Some functions are actually named 27797 something starting with __ and the normal name is an alias. */ 27798#if defined __stub_$ac_func || defined __stub___$ac_func 27799choke me 27800#endif 27801 27802int 27803main () 27804{ 27805return $ac_func (); 27806 ; 27807 return 0; 27808} 27809_ACEOF 27810rm -f conftest.$ac_objext conftest$ac_exeext 27811if { (ac_try="$ac_link" 27812case "(($ac_try" in 27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27814 *) ac_try_echo=$ac_try;; 27815esac 27816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27817 (eval "$ac_link") 2>conftest.er1 27818 ac_status=$? 27819 grep -v '^ *+' conftest.er1 >conftest.err 27820 rm -f conftest.er1 27821 cat conftest.err >&5 27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27823 (exit $ac_status); } && { 27824 test -z "$ac_c_werror_flag" || 27825 test ! -s conftest.err 27826 } && test -s conftest$ac_exeext && 27827 $as_test_x conftest$ac_exeext; then 27828 eval "$as_ac_var=yes" 27829else 27830 echo "$as_me: failed program was:" >&5 27831sed 's/^/| /' conftest.$ac_ext >&5 27832 27833 eval "$as_ac_var=no" 27834fi 27835 27836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27837 conftest$ac_exeext conftest.$ac_ext 27838fi 27839ac_res=`eval echo '${'$as_ac_var'}'` 27840 { echo "$as_me:$LINENO: result: $ac_res" >&5 27841echo "${ECHO_T}$ac_res" >&6; } 27842if test `eval echo '${'$as_ac_var'}'` = yes; then 27843 cat >>confdefs.h <<_ACEOF 27844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 27845_ACEOF 27846 27847fi 27848done 27849 27850fi 27851# dn_expand 27852eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27853eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 27854eval "LIB_dn_expand=$ac_res" 27855 27856case "$ac_res" in 27857 yes) 27858 eval "ac_cv_func_dn_expand=yes" 27859 eval "LIB_dn_expand=" 27860 cat >>confdefs.h <<_ACEOF 27861#define $ac_tr_func 1 27862_ACEOF 27863 27864 { echo "$as_me:$LINENO: result: yes" >&5 27865echo "${ECHO_T}yes" >&6; } 27866 ;; 27867 no) 27868 eval "ac_cv_func_dn_expand=no" 27869 eval "LIB_dn_expand=" 27870 { echo "$as_me:$LINENO: result: no" >&5 27871echo "${ECHO_T}no" >&6; } 27872 ;; 27873 *) 27874 eval "ac_cv_func_dn_expand=yes" 27875 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 27876 cat >>confdefs.h <<_ACEOF 27877#define $ac_tr_func 1 27878_ACEOF 27879 27880 cat >>confdefs.h <<_ACEOF 27881#define $ac_tr_lib 1 27882_ACEOF 27883 27884 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 27885echo "${ECHO_T}yes, in $ac_res" >&6; } 27886 ;; 27887esac 27888 27889 27890if test -n "$LIB_dn_expand"; then 27891 LIBS="$LIB_dn_expand $LIBS" 27892fi 27893 27894 27895 27896{ echo "$as_me:$LINENO: checking for _res" >&5 27897echo $ECHO_N "checking for _res... $ECHO_C" >&6; } 27898if test "${ac_cv_var__res+set}" = set; then 27899 echo $ECHO_N "(cached) $ECHO_C" >&6 27900else 27901 27902 27903 cat >conftest.$ac_ext <<_ACEOF 27904/* confdefs.h. */ 27905_ACEOF 27906cat confdefs.h >>conftest.$ac_ext 27907cat >>conftest.$ac_ext <<_ACEOF 27908/* end confdefs.h. */ 27909#include <stdio.h> 27910#ifdef HAVE_SYS_TYPES_H 27911#include <sys/types.h> 27912#endif 27913#ifdef HAVE_NETINET_IN_H 27914#include <netinet/in.h> 27915#endif 27916#ifdef HAVE_ARPA_NAMESER_H 27917#include <arpa/nameser.h> 27918#endif 27919#ifdef HAVE_RESOLV_H 27920#include <resolv.h> 27921#endif 27922 void * foo(void) { return &_res; } 27923int 27924main () 27925{ 27926foo() 27927 ; 27928 return 0; 27929} 27930_ACEOF 27931rm -f conftest.$ac_objext conftest$ac_exeext 27932if { (ac_try="$ac_link" 27933case "(($ac_try" in 27934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27935 *) ac_try_echo=$ac_try;; 27936esac 27937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27938 (eval "$ac_link") 2>conftest.er1 27939 ac_status=$? 27940 grep -v '^ *+' conftest.er1 >conftest.err 27941 rm -f conftest.er1 27942 cat conftest.err >&5 27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27944 (exit $ac_status); } && { 27945 test -z "$ac_c_werror_flag" || 27946 test ! -s conftest.err 27947 } && test -s conftest$ac_exeext && 27948 $as_test_x conftest$ac_exeext; then 27949 ac_cv_var__res=yes 27950else 27951 echo "$as_me: failed program was:" >&5 27952sed 's/^/| /' conftest.$ac_ext >&5 27953 27954 ac_cv_var__res=no 27955fi 27956 27957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27958 conftest$ac_exeext conftest.$ac_ext 27959if test "$ac_cv_var__res" != yes ; then 27960cat >conftest.$ac_ext <<_ACEOF 27961/* confdefs.h. */ 27962_ACEOF 27963cat confdefs.h >>conftest.$ac_ext 27964cat >>conftest.$ac_ext <<_ACEOF 27965/* end confdefs.h. */ 27966extern int _res; 27967int foo(void) { return _res; } 27968int 27969main () 27970{ 27971foo() 27972 ; 27973 return 0; 27974} 27975_ACEOF 27976rm -f conftest.$ac_objext conftest$ac_exeext 27977if { (ac_try="$ac_link" 27978case "(($ac_try" in 27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27980 *) ac_try_echo=$ac_try;; 27981esac 27982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27983 (eval "$ac_link") 2>conftest.er1 27984 ac_status=$? 27985 grep -v '^ *+' conftest.er1 >conftest.err 27986 rm -f conftest.er1 27987 cat conftest.err >&5 27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27989 (exit $ac_status); } && { 27990 test -z "$ac_c_werror_flag" || 27991 test ! -s conftest.err 27992 } && test -s conftest$ac_exeext && 27993 $as_test_x conftest$ac_exeext; then 27994 ac_cv_var__res=yes 27995else 27996 echo "$as_me: failed program was:" >&5 27997sed 's/^/| /' conftest.$ac_ext >&5 27998 27999 ac_cv_var__res=no 28000fi 28001 28002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28003 conftest$ac_exeext conftest.$ac_ext 28004fi 28005 28006fi 28007 28008ac_foo=`eval echo \\$ac_cv_var__res` 28009{ echo "$as_me:$LINENO: result: $ac_foo" >&5 28010echo "${ECHO_T}$ac_foo" >&6; } 28011if test "$ac_foo" = yes; then 28012 28013cat >>confdefs.h <<_ACEOF 28014#define HAVE__RES 1 28015_ACEOF 28016 28017 { echo "$as_me:$LINENO: checking whether _res is declared" >&5 28018echo $ECHO_N "checking whether _res is declared... $ECHO_C" >&6; } 28019if test "${ac_cv_have_decl__res+set}" = set; then 28020 echo $ECHO_N "(cached) $ECHO_C" >&6 28021else 28022 cat >conftest.$ac_ext <<_ACEOF 28023/* confdefs.h. */ 28024_ACEOF 28025cat confdefs.h >>conftest.$ac_ext 28026cat >>conftest.$ac_ext <<_ACEOF 28027/* end confdefs.h. */ 28028#include <stdio.h> 28029#ifdef HAVE_SYS_TYPES_H 28030#include <sys/types.h> 28031#endif 28032#ifdef HAVE_NETINET_IN_H 28033#include <netinet/in.h> 28034#endif 28035#ifdef HAVE_ARPA_NAMESER_H 28036#include <arpa/nameser.h> 28037#endif 28038#ifdef HAVE_RESOLV_H 28039#include <resolv.h> 28040#endif 28041 28042int 28043main () 28044{ 28045#ifndef _res 28046 (void) _res; 28047#endif 28048 28049 ; 28050 return 0; 28051} 28052_ACEOF 28053rm -f conftest.$ac_objext 28054if { (ac_try="$ac_compile" 28055case "(($ac_try" in 28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28057 *) ac_try_echo=$ac_try;; 28058esac 28059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28060 (eval "$ac_compile") 2>conftest.er1 28061 ac_status=$? 28062 grep -v '^ *+' conftest.er1 >conftest.err 28063 rm -f conftest.er1 28064 cat conftest.err >&5 28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28066 (exit $ac_status); } && { 28067 test -z "$ac_c_werror_flag" || 28068 test ! -s conftest.err 28069 } && test -s conftest.$ac_objext; then 28070 ac_cv_have_decl__res=yes 28071else 28072 echo "$as_me: failed program was:" >&5 28073sed 's/^/| /' conftest.$ac_ext >&5 28074 28075 ac_cv_have_decl__res=no 28076fi 28077 28078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28079fi 28080{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__res" >&5 28081echo "${ECHO_T}$ac_cv_have_decl__res" >&6; } 28082if test $ac_cv_have_decl__res = yes; then 28083 28084cat >>confdefs.h <<_ACEOF 28085#define HAVE_DECL__RES 1 28086_ACEOF 28087 28088 28089else 28090 cat >>confdefs.h <<_ACEOF 28091#define HAVE_DECL__RES 0 28092_ACEOF 28093 28094 28095fi 28096 28097 28098fi 28099 28100 28101 28102 28103 28104{ echo "$as_me:$LINENO: checking for working snprintf" >&5 28105echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; } 28106if test "${ac_cv_func_snprintf_working+set}" = set; then 28107 echo $ECHO_N "(cached) $ECHO_C" >&6 28108else 28109 ac_cv_func_snprintf_working=yes 28110if test "$cross_compiling" = yes; then 28111 : 28112else 28113 cat >conftest.$ac_ext <<_ACEOF 28114/* confdefs.h. */ 28115_ACEOF 28116cat confdefs.h >>conftest.$ac_ext 28117cat >>conftest.$ac_ext <<_ACEOF 28118/* end confdefs.h. */ 28119 28120#include <stdio.h> 28121#include <string.h> 28122int main(int argc, char **argv) 28123{ 28124 char foo[3]; 28125 snprintf(foo, 2, "12"); 28126 return strcmp(foo, "1") || snprintf(NULL, 0, "%d", 12) != 2; 28127} 28128_ACEOF 28129rm -f conftest$ac_exeext 28130if { (ac_try="$ac_link" 28131case "(($ac_try" in 28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28133 *) ac_try_echo=$ac_try;; 28134esac 28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28136 (eval "$ac_link") 2>&5 28137 ac_status=$? 28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28140 { (case "(($ac_try" in 28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28142 *) ac_try_echo=$ac_try;; 28143esac 28144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28145 (eval "$ac_try") 2>&5 28146 ac_status=$? 28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28148 (exit $ac_status); }; }; then 28149 : 28150else 28151 echo "$as_me: program exited with status $ac_status" >&5 28152echo "$as_me: failed program was:" >&5 28153sed 's/^/| /' conftest.$ac_ext >&5 28154 28155( exit $ac_status ) 28156ac_cv_func_snprintf_working=no 28157fi 28158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28159fi 28160 28161 28162fi 28163{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5 28164echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6; } 28165 28166if test "$ac_cv_func_snprintf_working" = yes; then 28167 28168cat >>confdefs.h <<_ACEOF 28169#define HAVE_SNPRINTF 1 28170_ACEOF 28171 28172fi 28173if test "$ac_cv_func_snprintf_working" = yes; then 28174 28175if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 28176{ echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5 28177echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6; } 28178if test "${ac_cv_func_snprintf_noproto+set}" = set; then 28179 echo $ECHO_N "(cached) $ECHO_C" >&6 28180else 28181 cat >conftest.$ac_ext <<_ACEOF 28182/* confdefs.h. */ 28183_ACEOF 28184cat confdefs.h >>conftest.$ac_ext 28185cat >>conftest.$ac_ext <<_ACEOF 28186/* end confdefs.h. */ 28187#include <stdio.h> 28188struct foo { int foo; } xx; 28189extern int snprintf (struct foo*); 28190int 28191main () 28192{ 28193snprintf(&xx) 28194 ; 28195 return 0; 28196} 28197_ACEOF 28198rm -f conftest.$ac_objext 28199if { (ac_try="$ac_compile" 28200case "(($ac_try" in 28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28202 *) ac_try_echo=$ac_try;; 28203esac 28204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28205 (eval "$ac_compile") 2>conftest.er1 28206 ac_status=$? 28207 grep -v '^ *+' conftest.er1 >conftest.err 28208 rm -f conftest.er1 28209 cat conftest.err >&5 28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28211 (exit $ac_status); } && { 28212 test -z "$ac_c_werror_flag" || 28213 test ! -s conftest.err 28214 } && test -s conftest.$ac_objext; then 28215 eval "ac_cv_func_snprintf_noproto=yes" 28216else 28217 echo "$as_me: failed program was:" >&5 28218sed 's/^/| /' conftest.$ac_ext >&5 28219 28220 eval "ac_cv_func_snprintf_noproto=no" 28221fi 28222 28223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28224fi 28225{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5 28226echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6; } 28227if test "$ac_cv_func_snprintf_noproto" = yes; then 28228 28229cat >>confdefs.h <<\_ACEOF 28230#define NEED_SNPRINTF_PROTO 1 28231_ACEOF 28232 28233fi 28234fi 28235 28236fi 28237 28238 28239{ echo "$as_me:$LINENO: checking for working vsnprintf" >&5 28240echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; } 28241if test "${ac_cv_func_vsnprintf_working+set}" = set; then 28242 echo $ECHO_N "(cached) $ECHO_C" >&6 28243else 28244 ac_cv_func_vsnprintf_working=yes 28245if test "$cross_compiling" = yes; then 28246 : 28247else 28248 cat >conftest.$ac_ext <<_ACEOF 28249/* confdefs.h. */ 28250_ACEOF 28251cat confdefs.h >>conftest.$ac_ext 28252cat >>conftest.$ac_ext <<_ACEOF 28253/* end confdefs.h. */ 28254 28255#include <stdio.h> 28256#include <string.h> 28257#include <stdarg.h> 28258 28259int foo(int num, ...) 28260{ 28261 char bar[3]; 28262 va_list arg; 28263 va_start(arg, num); 28264 vsnprintf(bar, 2, "%s", arg); 28265 va_end(arg); 28266 return strcmp(bar, "1"); 28267} 28268 28269int bar(int num, int len, ...) 28270{ 28271 int r; 28272 va_list arg; 28273 va_start(arg, len); 28274 r = vsnprintf(NULL, 0, "%s", arg); 28275 va_end(arg); 28276 return r != len; 28277} 28278 28279int main(int argc, char **argv) 28280{ 28281 return foo(0, "12") || bar(0, 2, "12"); 28282} 28283_ACEOF 28284rm -f conftest$ac_exeext 28285if { (ac_try="$ac_link" 28286case "(($ac_try" in 28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28288 *) ac_try_echo=$ac_try;; 28289esac 28290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28291 (eval "$ac_link") 2>&5 28292 ac_status=$? 28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28295 { (case "(($ac_try" in 28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28297 *) ac_try_echo=$ac_try;; 28298esac 28299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28300 (eval "$ac_try") 2>&5 28301 ac_status=$? 28302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28303 (exit $ac_status); }; }; then 28304 : 28305else 28306 echo "$as_me: program exited with status $ac_status" >&5 28307echo "$as_me: failed program was:" >&5 28308sed 's/^/| /' conftest.$ac_ext >&5 28309 28310( exit $ac_status ) 28311ac_cv_func_vsnprintf_working=no 28312fi 28313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28314fi 28315 28316 28317fi 28318{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5 28319echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6; } 28320 28321if test "$ac_cv_func_vsnprintf_working" = yes; then 28322 28323cat >>confdefs.h <<_ACEOF 28324#define HAVE_VSNPRINTF 1 28325_ACEOF 28326 28327fi 28328if test "$ac_cv_func_vsnprintf_working" = yes; then 28329 28330if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 28331{ echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5 28332echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6; } 28333if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 28334 echo $ECHO_N "(cached) $ECHO_C" >&6 28335else 28336 cat >conftest.$ac_ext <<_ACEOF 28337/* confdefs.h. */ 28338_ACEOF 28339cat confdefs.h >>conftest.$ac_ext 28340cat >>conftest.$ac_ext <<_ACEOF 28341/* end confdefs.h. */ 28342#include <stdio.h> 28343struct foo { int foo; } xx; 28344extern int vsnprintf (struct foo*); 28345int 28346main () 28347{ 28348vsnprintf(&xx) 28349 ; 28350 return 0; 28351} 28352_ACEOF 28353rm -f conftest.$ac_objext 28354if { (ac_try="$ac_compile" 28355case "(($ac_try" in 28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28357 *) ac_try_echo=$ac_try;; 28358esac 28359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28360 (eval "$ac_compile") 2>conftest.er1 28361 ac_status=$? 28362 grep -v '^ *+' conftest.er1 >conftest.err 28363 rm -f conftest.er1 28364 cat conftest.err >&5 28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28366 (exit $ac_status); } && { 28367 test -z "$ac_c_werror_flag" || 28368 test ! -s conftest.err 28369 } && test -s conftest.$ac_objext; then 28370 eval "ac_cv_func_vsnprintf_noproto=yes" 28371else 28372 echo "$as_me: failed program was:" >&5 28373sed 's/^/| /' conftest.$ac_ext >&5 28374 28375 eval "ac_cv_func_vsnprintf_noproto=no" 28376fi 28377 28378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28379fi 28380{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5 28381echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6; } 28382if test "$ac_cv_func_vsnprintf_noproto" = yes; then 28383 28384cat >>confdefs.h <<\_ACEOF 28385#define NEED_VSNPRINTF_PROTO 1 28386_ACEOF 28387 28388fi 28389fi 28390 28391fi 28392 28393 28394 28395{ echo "$as_me:$LINENO: checking for working glob" >&5 28396echo $ECHO_N "checking for working glob... $ECHO_C" >&6; } 28397if test "${ac_cv_func_glob_working+set}" = set; then 28398 echo $ECHO_N "(cached) $ECHO_C" >&6 28399else 28400 ac_cv_func_glob_working=yes 28401cat >conftest.$ac_ext <<_ACEOF 28402/* confdefs.h. */ 28403_ACEOF 28404cat confdefs.h >>conftest.$ac_ext 28405cat >>conftest.$ac_ext <<_ACEOF 28406/* end confdefs.h. */ 28407 28408#include <stdio.h> 28409#include <glob.h> 28410int 28411main () 28412{ 28413 28414glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 28415#ifdef GLOB_MAXPATH 28416GLOB_MAXPATH 28417#else 28418GLOB_LIMIT 28419#endif 28420, 28421NULL, NULL); 28422 28423 ; 28424 return 0; 28425} 28426_ACEOF 28427rm -f conftest.$ac_objext conftest$ac_exeext 28428if { (ac_try="$ac_link" 28429case "(($ac_try" in 28430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28431 *) ac_try_echo=$ac_try;; 28432esac 28433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28434 (eval "$ac_link") 2>conftest.er1 28435 ac_status=$? 28436 grep -v '^ *+' conftest.er1 >conftest.err 28437 rm -f conftest.er1 28438 cat conftest.err >&5 28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28440 (exit $ac_status); } && { 28441 test -z "$ac_c_werror_flag" || 28442 test ! -s conftest.err 28443 } && test -s conftest$ac_exeext && 28444 $as_test_x conftest$ac_exeext; then 28445 : 28446else 28447 echo "$as_me: failed program was:" >&5 28448sed 's/^/| /' conftest.$ac_ext >&5 28449 28450 ac_cv_func_glob_working=no 28451fi 28452 28453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28454 conftest$ac_exeext conftest.$ac_ext 28455fi 28456{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5 28457echo "${ECHO_T}$ac_cv_func_glob_working" >&6; } 28458 28459if test "$ac_cv_func_glob_working" = yes; then 28460 28461cat >>confdefs.h <<\_ACEOF 28462#define HAVE_GLOB 1 28463_ACEOF 28464 28465fi 28466if test "$ac_cv_func_glob_working" = yes; then 28467 28468if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 28469{ echo "$as_me:$LINENO: checking if glob needs a prototype" >&5 28470echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6; } 28471if test "${ac_cv_func_glob_noproto+set}" = set; then 28472 echo $ECHO_N "(cached) $ECHO_C" >&6 28473else 28474 cat >conftest.$ac_ext <<_ACEOF 28475/* confdefs.h. */ 28476_ACEOF 28477cat confdefs.h >>conftest.$ac_ext 28478cat >>conftest.$ac_ext <<_ACEOF 28479/* end confdefs.h. */ 28480#include <stdio.h> 28481#include <glob.h> 28482struct foo { int foo; } xx; 28483extern int glob (struct foo*); 28484int 28485main () 28486{ 28487glob(&xx) 28488 ; 28489 return 0; 28490} 28491_ACEOF 28492rm -f conftest.$ac_objext 28493if { (ac_try="$ac_compile" 28494case "(($ac_try" in 28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28496 *) ac_try_echo=$ac_try;; 28497esac 28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28499 (eval "$ac_compile") 2>conftest.er1 28500 ac_status=$? 28501 grep -v '^ *+' conftest.er1 >conftest.err 28502 rm -f conftest.er1 28503 cat conftest.err >&5 28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28505 (exit $ac_status); } && { 28506 test -z "$ac_c_werror_flag" || 28507 test ! -s conftest.err 28508 } && test -s conftest.$ac_objext; then 28509 eval "ac_cv_func_glob_noproto=yes" 28510else 28511 echo "$as_me: failed program was:" >&5 28512sed 's/^/| /' conftest.$ac_ext >&5 28513 28514 eval "ac_cv_func_glob_noproto=no" 28515fi 28516 28517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28518fi 28519{ echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5 28520echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6; } 28521if test "$ac_cv_func_glob_noproto" = yes; then 28522 28523cat >>confdefs.h <<\_ACEOF 28524#define NEED_GLOB_PROTO 1 28525_ACEOF 28526 28527fi 28528fi 28529 28530fi 28531 28532if test "$ac_cv_func_glob_working" != yes; then 28533 case " $LIBOBJS " in 28534 *" glob.$ac_objext "* ) ;; 28535 *) LIBOBJS="$LIBOBJS glob.$ac_objext" 28536 ;; 28537esac 28538 28539fi 28540 if test "$ac_cv_func_glob_working" = yes; then 28541 have_glob_h_TRUE= 28542 have_glob_h_FALSE='#' 28543else 28544 have_glob_h_TRUE='#' 28545 have_glob_h_FALSE= 28546fi 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577for ac_func in \ 28578 asnprintf \ 28579 asprintf \ 28580 atexit \ 28581 cgetent \ 28582 getconfattr \ 28583 getprogname \ 28584 getrlimit \ 28585 getspnam \ 28586 initstate \ 28587 issetugid \ 28588 on_exit \ 28589 poll \ 28590 random \ 28591 setprogname \ 28592 setstate \ 28593 strsvis \ 28594 strunvis \ 28595 strvis \ 28596 strvisx \ 28597 svis \ 28598 sysconf \ 28599 sysctl \ 28600 uname \ 28601 unvis \ 28602 vasnprintf \ 28603 vasprintf \ 28604 vis \ 28605 28606do 28607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 28608{ echo "$as_me:$LINENO: checking for $ac_func" >&5 28609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 28610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 28611 echo $ECHO_N "(cached) $ECHO_C" >&6 28612else 28613 cat >conftest.$ac_ext <<_ACEOF 28614/* confdefs.h. */ 28615_ACEOF 28616cat confdefs.h >>conftest.$ac_ext 28617cat >>conftest.$ac_ext <<_ACEOF 28618/* end confdefs.h. */ 28619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 28620 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28621#define $ac_func innocuous_$ac_func 28622 28623/* System header to define __stub macros and hopefully few prototypes, 28624 which can conflict with char $ac_func (); below. 28625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28626 <limits.h> exists even on freestanding compilers. */ 28627 28628#ifdef __STDC__ 28629# include <limits.h> 28630#else 28631# include <assert.h> 28632#endif 28633 28634#undef $ac_func 28635 28636/* Override any GCC internal prototype to avoid an error. 28637 Use char because int might match the return type of a GCC 28638 builtin and then its argument prototype would still apply. */ 28639#ifdef __cplusplus 28640extern "C" 28641#endif 28642char $ac_func (); 28643/* The GNU C library defines this for functions which it implements 28644 to always fail with ENOSYS. Some functions are actually named 28645 something starting with __ and the normal name is an alias. */ 28646#if defined __stub_$ac_func || defined __stub___$ac_func 28647choke me 28648#endif 28649 28650int 28651main () 28652{ 28653return $ac_func (); 28654 ; 28655 return 0; 28656} 28657_ACEOF 28658rm -f conftest.$ac_objext conftest$ac_exeext 28659if { (ac_try="$ac_link" 28660case "(($ac_try" in 28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28662 *) ac_try_echo=$ac_try;; 28663esac 28664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28665 (eval "$ac_link") 2>conftest.er1 28666 ac_status=$? 28667 grep -v '^ *+' conftest.er1 >conftest.err 28668 rm -f conftest.er1 28669 cat conftest.err >&5 28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28671 (exit $ac_status); } && { 28672 test -z "$ac_c_werror_flag" || 28673 test ! -s conftest.err 28674 } && test -s conftest$ac_exeext && 28675 $as_test_x conftest$ac_exeext; then 28676 eval "$as_ac_var=yes" 28677else 28678 echo "$as_me: failed program was:" >&5 28679sed 's/^/| /' conftest.$ac_ext >&5 28680 28681 eval "$as_ac_var=no" 28682fi 28683 28684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28685 conftest$ac_exeext conftest.$ac_ext 28686fi 28687ac_res=`eval echo '${'$as_ac_var'}'` 28688 { echo "$as_me:$LINENO: result: $ac_res" >&5 28689echo "${ECHO_T}$ac_res" >&6; } 28690if test `eval echo '${'$as_ac_var'}'` = yes; then 28691 cat >>confdefs.h <<_ACEOF 28692#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 28693_ACEOF 28694 28695fi 28696done 28697 28698 28699if test "$ac_cv_func_cgetent" = no; then 28700 case " $LIBOBJS " in 28701 *" getcap.$ac_objext "* ) ;; 28702 *) LIBOBJS="$LIBOBJS getcap.$ac_objext" 28703 ;; 28704esac 28705 28706fi 28707 if test "$ac_cv_func_cgetent" = yes; then 28708 have_cgetent_TRUE= 28709 have_cgetent_FALSE='#' 28710else 28711 have_cgetent_TRUE='#' 28712 have_cgetent_FALSE= 28713fi 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723{ echo "$as_me:$LINENO: checking for getsockopt" >&5 28724echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6; } 28725if test "${ac_cv_funclib_getsockopt+set}" = set; then 28726 echo $ECHO_N "(cached) $ECHO_C" >&6 28727else 28728 28729if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 28730 ac_save_LIBS="$LIBS" 28731 for ac_lib in "" ; do 28732 case "$ac_lib" in 28733 "") ;; 28734 yes) ac_lib="" ;; 28735 no) continue ;; 28736 -l*) ;; 28737 *) ac_lib="-l$ac_lib" ;; 28738 esac 28739 LIBS=" $ac_lib $ac_save_LIBS" 28740 cat >conftest.$ac_ext <<_ACEOF 28741/* confdefs.h. */ 28742_ACEOF 28743cat confdefs.h >>conftest.$ac_ext 28744cat >>conftest.$ac_ext <<_ACEOF 28745/* end confdefs.h. */ 28746#ifdef HAVE_SYS_TYPES_H 28747#include <sys/types.h> 28748#endif 28749#ifdef HAVE_SYS_SOCKET_H 28750#include <sys/socket.h> 28751#endif 28752int 28753main () 28754{ 28755getsockopt(0,0,0,0,0) 28756 ; 28757 return 0; 28758} 28759_ACEOF 28760rm -f conftest.$ac_objext conftest$ac_exeext 28761if { (ac_try="$ac_link" 28762case "(($ac_try" in 28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28764 *) ac_try_echo=$ac_try;; 28765esac 28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28767 (eval "$ac_link") 2>conftest.er1 28768 ac_status=$? 28769 grep -v '^ *+' conftest.er1 >conftest.err 28770 rm -f conftest.er1 28771 cat conftest.err >&5 28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28773 (exit $ac_status); } && { 28774 test -z "$ac_c_werror_flag" || 28775 test ! -s conftest.err 28776 } && test -s conftest$ac_exeext && 28777 $as_test_x conftest$ac_exeext; then 28778 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 28779else 28780 echo "$as_me: failed program was:" >&5 28781sed 's/^/| /' conftest.$ac_ext >&5 28782 28783 28784fi 28785 28786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28787 conftest$ac_exeext conftest.$ac_ext 28788 done 28789 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 28790 LIBS="$ac_save_LIBS" 28791fi 28792 28793fi 28794 28795 28796eval "ac_res=\$ac_cv_funclib_getsockopt" 28797 28798if false; then 28799 28800for ac_func in getsockopt 28801do 28802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 28803{ echo "$as_me:$LINENO: checking for $ac_func" >&5 28804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 28805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 28806 echo $ECHO_N "(cached) $ECHO_C" >&6 28807else 28808 cat >conftest.$ac_ext <<_ACEOF 28809/* confdefs.h. */ 28810_ACEOF 28811cat confdefs.h >>conftest.$ac_ext 28812cat >>conftest.$ac_ext <<_ACEOF 28813/* end confdefs.h. */ 28814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 28815 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28816#define $ac_func innocuous_$ac_func 28817 28818/* System header to define __stub macros and hopefully few prototypes, 28819 which can conflict with char $ac_func (); below. 28820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28821 <limits.h> exists even on freestanding compilers. */ 28822 28823#ifdef __STDC__ 28824# include <limits.h> 28825#else 28826# include <assert.h> 28827#endif 28828 28829#undef $ac_func 28830 28831/* Override any GCC internal prototype to avoid an error. 28832 Use char because int might match the return type of a GCC 28833 builtin and then its argument prototype would still apply. */ 28834#ifdef __cplusplus 28835extern "C" 28836#endif 28837char $ac_func (); 28838/* The GNU C library defines this for functions which it implements 28839 to always fail with ENOSYS. Some functions are actually named 28840 something starting with __ and the normal name is an alias. */ 28841#if defined __stub_$ac_func || defined __stub___$ac_func 28842choke me 28843#endif 28844 28845int 28846main () 28847{ 28848return $ac_func (); 28849 ; 28850 return 0; 28851} 28852_ACEOF 28853rm -f conftest.$ac_objext conftest$ac_exeext 28854if { (ac_try="$ac_link" 28855case "(($ac_try" in 28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28857 *) ac_try_echo=$ac_try;; 28858esac 28859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28860 (eval "$ac_link") 2>conftest.er1 28861 ac_status=$? 28862 grep -v '^ *+' conftest.er1 >conftest.err 28863 rm -f conftest.er1 28864 cat conftest.err >&5 28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28866 (exit $ac_status); } && { 28867 test -z "$ac_c_werror_flag" || 28868 test ! -s conftest.err 28869 } && test -s conftest$ac_exeext && 28870 $as_test_x conftest$ac_exeext; then 28871 eval "$as_ac_var=yes" 28872else 28873 echo "$as_me: failed program was:" >&5 28874sed 's/^/| /' conftest.$ac_ext >&5 28875 28876 eval "$as_ac_var=no" 28877fi 28878 28879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28880 conftest$ac_exeext conftest.$ac_ext 28881fi 28882ac_res=`eval echo '${'$as_ac_var'}'` 28883 { echo "$as_me:$LINENO: result: $ac_res" >&5 28884echo "${ECHO_T}$ac_res" >&6; } 28885if test `eval echo '${'$as_ac_var'}'` = yes; then 28886 cat >>confdefs.h <<_ACEOF 28887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 28888_ACEOF 28889 28890fi 28891done 28892 28893fi 28894# getsockopt 28895eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28896eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28897eval "LIB_getsockopt=$ac_res" 28898 28899case "$ac_res" in 28900 yes) 28901 eval "ac_cv_func_getsockopt=yes" 28902 eval "LIB_getsockopt=" 28903 cat >>confdefs.h <<_ACEOF 28904#define $ac_tr_func 1 28905_ACEOF 28906 28907 { echo "$as_me:$LINENO: result: yes" >&5 28908echo "${ECHO_T}yes" >&6; } 28909 ;; 28910 no) 28911 eval "ac_cv_func_getsockopt=no" 28912 eval "LIB_getsockopt=" 28913 { echo "$as_me:$LINENO: result: no" >&5 28914echo "${ECHO_T}no" >&6; } 28915 ;; 28916 *) 28917 eval "ac_cv_func_getsockopt=yes" 28918 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 28919 cat >>confdefs.h <<_ACEOF 28920#define $ac_tr_func 1 28921_ACEOF 28922 28923 cat >>confdefs.h <<_ACEOF 28924#define $ac_tr_lib 1 28925_ACEOF 28926 28927 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 28928echo "${ECHO_T}yes, in $ac_res" >&6; } 28929 ;; 28930esac 28931 28932 28933 28934 28935 28936{ echo "$as_me:$LINENO: checking for setsockopt" >&5 28937echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 28938if test "${ac_cv_funclib_setsockopt+set}" = set; then 28939 echo $ECHO_N "(cached) $ECHO_C" >&6 28940else 28941 28942if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 28943 ac_save_LIBS="$LIBS" 28944 for ac_lib in "" ; do 28945 case "$ac_lib" in 28946 "") ;; 28947 yes) ac_lib="" ;; 28948 no) continue ;; 28949 -l*) ;; 28950 *) ac_lib="-l$ac_lib" ;; 28951 esac 28952 LIBS=" $ac_lib $ac_save_LIBS" 28953 cat >conftest.$ac_ext <<_ACEOF 28954/* confdefs.h. */ 28955_ACEOF 28956cat confdefs.h >>conftest.$ac_ext 28957cat >>conftest.$ac_ext <<_ACEOF 28958/* end confdefs.h. */ 28959#ifdef HAVE_SYS_TYPES_H 28960#include <sys/types.h> 28961#endif 28962#ifdef HAVE_SYS_SOCKET_H 28963#include <sys/socket.h> 28964#endif 28965int 28966main () 28967{ 28968setsockopt(0,0,0,0,0) 28969 ; 28970 return 0; 28971} 28972_ACEOF 28973rm -f conftest.$ac_objext conftest$ac_exeext 28974if { (ac_try="$ac_link" 28975case "(($ac_try" in 28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28977 *) ac_try_echo=$ac_try;; 28978esac 28979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28980 (eval "$ac_link") 2>conftest.er1 28981 ac_status=$? 28982 grep -v '^ *+' conftest.er1 >conftest.err 28983 rm -f conftest.er1 28984 cat conftest.err >&5 28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28986 (exit $ac_status); } && { 28987 test -z "$ac_c_werror_flag" || 28988 test ! -s conftest.err 28989 } && test -s conftest$ac_exeext && 28990 $as_test_x conftest$ac_exeext; then 28991 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 28992else 28993 echo "$as_me: failed program was:" >&5 28994sed 's/^/| /' conftest.$ac_ext >&5 28995 28996 28997fi 28998 28999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29000 conftest$ac_exeext conftest.$ac_ext 29001 done 29002 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 29003 LIBS="$ac_save_LIBS" 29004fi 29005 29006fi 29007 29008 29009eval "ac_res=\$ac_cv_funclib_setsockopt" 29010 29011if false; then 29012 29013for ac_func in setsockopt 29014do 29015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29016{ echo "$as_me:$LINENO: checking for $ac_func" >&5 29017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29019 echo $ECHO_N "(cached) $ECHO_C" >&6 29020else 29021 cat >conftest.$ac_ext <<_ACEOF 29022/* confdefs.h. */ 29023_ACEOF 29024cat confdefs.h >>conftest.$ac_ext 29025cat >>conftest.$ac_ext <<_ACEOF 29026/* end confdefs.h. */ 29027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29028 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29029#define $ac_func innocuous_$ac_func 29030 29031/* System header to define __stub macros and hopefully few prototypes, 29032 which can conflict with char $ac_func (); below. 29033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29034 <limits.h> exists even on freestanding compilers. */ 29035 29036#ifdef __STDC__ 29037# include <limits.h> 29038#else 29039# include <assert.h> 29040#endif 29041 29042#undef $ac_func 29043 29044/* Override any GCC internal prototype to avoid an error. 29045 Use char because int might match the return type of a GCC 29046 builtin and then its argument prototype would still apply. */ 29047#ifdef __cplusplus 29048extern "C" 29049#endif 29050char $ac_func (); 29051/* The GNU C library defines this for functions which it implements 29052 to always fail with ENOSYS. Some functions are actually named 29053 something starting with __ and the normal name is an alias. */ 29054#if defined __stub_$ac_func || defined __stub___$ac_func 29055choke me 29056#endif 29057 29058int 29059main () 29060{ 29061return $ac_func (); 29062 ; 29063 return 0; 29064} 29065_ACEOF 29066rm -f conftest.$ac_objext conftest$ac_exeext 29067if { (ac_try="$ac_link" 29068case "(($ac_try" in 29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29070 *) ac_try_echo=$ac_try;; 29071esac 29072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29073 (eval "$ac_link") 2>conftest.er1 29074 ac_status=$? 29075 grep -v '^ *+' conftest.er1 >conftest.err 29076 rm -f conftest.er1 29077 cat conftest.err >&5 29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29079 (exit $ac_status); } && { 29080 test -z "$ac_c_werror_flag" || 29081 test ! -s conftest.err 29082 } && test -s conftest$ac_exeext && 29083 $as_test_x conftest$ac_exeext; then 29084 eval "$as_ac_var=yes" 29085else 29086 echo "$as_me: failed program was:" >&5 29087sed 's/^/| /' conftest.$ac_ext >&5 29088 29089 eval "$as_ac_var=no" 29090fi 29091 29092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29093 conftest$ac_exeext conftest.$ac_ext 29094fi 29095ac_res=`eval echo '${'$as_ac_var'}'` 29096 { echo "$as_me:$LINENO: result: $ac_res" >&5 29097echo "${ECHO_T}$ac_res" >&6; } 29098if test `eval echo '${'$as_ac_var'}'` = yes; then 29099 cat >>confdefs.h <<_ACEOF 29100#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29101_ACEOF 29102 29103fi 29104done 29105 29106fi 29107# setsockopt 29108eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29109eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29110eval "LIB_setsockopt=$ac_res" 29111 29112case "$ac_res" in 29113 yes) 29114 eval "ac_cv_func_setsockopt=yes" 29115 eval "LIB_setsockopt=" 29116 cat >>confdefs.h <<_ACEOF 29117#define $ac_tr_func 1 29118_ACEOF 29119 29120 { echo "$as_me:$LINENO: result: yes" >&5 29121echo "${ECHO_T}yes" >&6; } 29122 ;; 29123 no) 29124 eval "ac_cv_func_setsockopt=no" 29125 eval "LIB_setsockopt=" 29126 { echo "$as_me:$LINENO: result: no" >&5 29127echo "${ECHO_T}no" >&6; } 29128 ;; 29129 *) 29130 eval "ac_cv_func_setsockopt=yes" 29131 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29132 cat >>confdefs.h <<_ACEOF 29133#define $ac_tr_func 1 29134_ACEOF 29135 29136 cat >>confdefs.h <<_ACEOF 29137#define $ac_tr_lib 1 29138_ACEOF 29139 29140 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29141echo "${ECHO_T}yes, in $ac_res" >&6; } 29142 ;; 29143esac 29144 29145 29146 29147 29148 29149 29150 29151{ echo "$as_me:$LINENO: checking for hstrerror" >&5 29152echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; } 29153if test "${ac_cv_funclib_hstrerror+set}" = set; then 29154 echo $ECHO_N "(cached) $ECHO_C" >&6 29155else 29156 29157if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 29158 ac_save_LIBS="$LIBS" 29159 for ac_lib in "" resolv; do 29160 case "$ac_lib" in 29161 "") ;; 29162 yes) ac_lib="" ;; 29163 no) continue ;; 29164 -l*) ;; 29165 *) ac_lib="-l$ac_lib" ;; 29166 esac 29167 LIBS=" $ac_lib $ac_save_LIBS" 29168 cat >conftest.$ac_ext <<_ACEOF 29169/* confdefs.h. */ 29170_ACEOF 29171cat confdefs.h >>conftest.$ac_ext 29172cat >>conftest.$ac_ext <<_ACEOF 29173/* end confdefs.h. */ 29174#ifdef HAVE_NETDB_H 29175#include <netdb.h> 29176#endif 29177int 29178main () 29179{ 29180hstrerror(17) 29181 ; 29182 return 0; 29183} 29184_ACEOF 29185rm -f conftest.$ac_objext conftest$ac_exeext 29186if { (ac_try="$ac_link" 29187case "(($ac_try" in 29188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29189 *) ac_try_echo=$ac_try;; 29190esac 29191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29192 (eval "$ac_link") 2>conftest.er1 29193 ac_status=$? 29194 grep -v '^ *+' conftest.er1 >conftest.err 29195 rm -f conftest.er1 29196 cat conftest.err >&5 29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29198 (exit $ac_status); } && { 29199 test -z "$ac_c_werror_flag" || 29200 test ! -s conftest.err 29201 } && test -s conftest$ac_exeext && 29202 $as_test_x conftest$ac_exeext; then 29203 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 29204else 29205 echo "$as_me: failed program was:" >&5 29206sed 's/^/| /' conftest.$ac_ext >&5 29207 29208 29209fi 29210 29211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29212 conftest$ac_exeext conftest.$ac_ext 29213 done 29214 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 29215 LIBS="$ac_save_LIBS" 29216fi 29217 29218fi 29219 29220 29221eval "ac_res=\$ac_cv_funclib_hstrerror" 29222 29223if false; then 29224 29225for ac_func in hstrerror 29226do 29227as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29228{ echo "$as_me:$LINENO: checking for $ac_func" >&5 29229echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29230if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29231 echo $ECHO_N "(cached) $ECHO_C" >&6 29232else 29233 cat >conftest.$ac_ext <<_ACEOF 29234/* confdefs.h. */ 29235_ACEOF 29236cat confdefs.h >>conftest.$ac_ext 29237cat >>conftest.$ac_ext <<_ACEOF 29238/* end confdefs.h. */ 29239/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29240 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29241#define $ac_func innocuous_$ac_func 29242 29243/* System header to define __stub macros and hopefully few prototypes, 29244 which can conflict with char $ac_func (); below. 29245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29246 <limits.h> exists even on freestanding compilers. */ 29247 29248#ifdef __STDC__ 29249# include <limits.h> 29250#else 29251# include <assert.h> 29252#endif 29253 29254#undef $ac_func 29255 29256/* Override any GCC internal prototype to avoid an error. 29257 Use char because int might match the return type of a GCC 29258 builtin and then its argument prototype would still apply. */ 29259#ifdef __cplusplus 29260extern "C" 29261#endif 29262char $ac_func (); 29263/* The GNU C library defines this for functions which it implements 29264 to always fail with ENOSYS. Some functions are actually named 29265 something starting with __ and the normal name is an alias. */ 29266#if defined __stub_$ac_func || defined __stub___$ac_func 29267choke me 29268#endif 29269 29270int 29271main () 29272{ 29273return $ac_func (); 29274 ; 29275 return 0; 29276} 29277_ACEOF 29278rm -f conftest.$ac_objext conftest$ac_exeext 29279if { (ac_try="$ac_link" 29280case "(($ac_try" in 29281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29282 *) ac_try_echo=$ac_try;; 29283esac 29284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29285 (eval "$ac_link") 2>conftest.er1 29286 ac_status=$? 29287 grep -v '^ *+' conftest.er1 >conftest.err 29288 rm -f conftest.er1 29289 cat conftest.err >&5 29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29291 (exit $ac_status); } && { 29292 test -z "$ac_c_werror_flag" || 29293 test ! -s conftest.err 29294 } && test -s conftest$ac_exeext && 29295 $as_test_x conftest$ac_exeext; then 29296 eval "$as_ac_var=yes" 29297else 29298 echo "$as_me: failed program was:" >&5 29299sed 's/^/| /' conftest.$ac_ext >&5 29300 29301 eval "$as_ac_var=no" 29302fi 29303 29304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29305 conftest$ac_exeext conftest.$ac_ext 29306fi 29307ac_res=`eval echo '${'$as_ac_var'}'` 29308 { echo "$as_me:$LINENO: result: $ac_res" >&5 29309echo "${ECHO_T}$ac_res" >&6; } 29310if test `eval echo '${'$as_ac_var'}'` = yes; then 29311 cat >>confdefs.h <<_ACEOF 29312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29313_ACEOF 29314 29315fi 29316done 29317 29318fi 29319# hstrerror 29320eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29321eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29322eval "LIB_hstrerror=$ac_res" 29323 29324case "$ac_res" in 29325 yes) 29326 eval "ac_cv_func_hstrerror=yes" 29327 eval "LIB_hstrerror=" 29328 cat >>confdefs.h <<_ACEOF 29329#define $ac_tr_func 1 29330_ACEOF 29331 29332 { echo "$as_me:$LINENO: result: yes" >&5 29333echo "${ECHO_T}yes" >&6; } 29334 ;; 29335 no) 29336 eval "ac_cv_func_hstrerror=no" 29337 eval "LIB_hstrerror=" 29338 { echo "$as_me:$LINENO: result: no" >&5 29339echo "${ECHO_T}no" >&6; } 29340 ;; 29341 *) 29342 eval "ac_cv_func_hstrerror=yes" 29343 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29344 cat >>confdefs.h <<_ACEOF 29345#define $ac_tr_func 1 29346_ACEOF 29347 29348 cat >>confdefs.h <<_ACEOF 29349#define $ac_tr_lib 1 29350_ACEOF 29351 29352 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29353echo "${ECHO_T}yes, in $ac_res" >&6; } 29354 ;; 29355esac 29356 29357 29358if test -n "$LIB_hstrerror"; then 29359 LIBS="$LIB_hstrerror $LIBS" 29360fi 29361 29362if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 29363 case " $LIBOBJS " in 29364 *" hstrerror.$ac_objext "* ) ;; 29365 *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 29366 ;; 29367esac 29368 29369fi 29370 29371 29372if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 29373{ echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5 29374echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6; } 29375if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 29376 echo $ECHO_N "(cached) $ECHO_C" >&6 29377else 29378 cat >conftest.$ac_ext <<_ACEOF 29379/* confdefs.h. */ 29380_ACEOF 29381cat confdefs.h >>conftest.$ac_ext 29382cat >>conftest.$ac_ext <<_ACEOF 29383/* end confdefs.h. */ 29384 29385#ifdef HAVE_NETDB_H 29386#include <netdb.h> 29387#endif 29388struct foo { int foo; } xx; 29389extern int hstrerror (struct foo*); 29390int 29391main () 29392{ 29393hstrerror(&xx) 29394 ; 29395 return 0; 29396} 29397_ACEOF 29398rm -f conftest.$ac_objext 29399if { (ac_try="$ac_compile" 29400case "(($ac_try" in 29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29402 *) ac_try_echo=$ac_try;; 29403esac 29404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29405 (eval "$ac_compile") 2>conftest.er1 29406 ac_status=$? 29407 grep -v '^ *+' conftest.er1 >conftest.err 29408 rm -f conftest.er1 29409 cat conftest.err >&5 29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29411 (exit $ac_status); } && { 29412 test -z "$ac_c_werror_flag" || 29413 test ! -s conftest.err 29414 } && test -s conftest.$ac_objext; then 29415 eval "ac_cv_func_hstrerror_noproto=yes" 29416else 29417 echo "$as_me: failed program was:" >&5 29418sed 's/^/| /' conftest.$ac_ext >&5 29419 29420 eval "ac_cv_func_hstrerror_noproto=no" 29421fi 29422 29423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29424fi 29425{ echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5 29426echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6; } 29427if test "$ac_cv_func_hstrerror_noproto" = yes; then 29428 29429cat >>confdefs.h <<\_ACEOF 29430#define NEED_HSTRERROR_PROTO 1 29431_ACEOF 29432 29433fi 29434fi 29435 29436 29437 29438if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 29439{ echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5 29440echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6; } 29441if test "${ac_cv_func_asprintf_noproto+set}" = set; then 29442 echo $ECHO_N "(cached) $ECHO_C" >&6 29443else 29444 cat >conftest.$ac_ext <<_ACEOF 29445/* confdefs.h. */ 29446_ACEOF 29447cat confdefs.h >>conftest.$ac_ext 29448cat >>conftest.$ac_ext <<_ACEOF 29449/* end confdefs.h. */ 29450 29451 #include <stdio.h> 29452 #include <string.h> 29453struct foo { int foo; } xx; 29454extern int asprintf (struct foo*); 29455int 29456main () 29457{ 29458asprintf(&xx) 29459 ; 29460 return 0; 29461} 29462_ACEOF 29463rm -f conftest.$ac_objext 29464if { (ac_try="$ac_compile" 29465case "(($ac_try" in 29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29467 *) ac_try_echo=$ac_try;; 29468esac 29469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29470 (eval "$ac_compile") 2>conftest.er1 29471 ac_status=$? 29472 grep -v '^ *+' conftest.er1 >conftest.err 29473 rm -f conftest.er1 29474 cat conftest.err >&5 29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29476 (exit $ac_status); } && { 29477 test -z "$ac_c_werror_flag" || 29478 test ! -s conftest.err 29479 } && test -s conftest.$ac_objext; then 29480 eval "ac_cv_func_asprintf_noproto=yes" 29481else 29482 echo "$as_me: failed program was:" >&5 29483sed 's/^/| /' conftest.$ac_ext >&5 29484 29485 eval "ac_cv_func_asprintf_noproto=no" 29486fi 29487 29488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29489fi 29490{ echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5 29491echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6; } 29492if test "$ac_cv_func_asprintf_noproto" = yes; then 29493 29494cat >>confdefs.h <<\_ACEOF 29495#define NEED_ASPRINTF_PROTO 1 29496_ACEOF 29497 29498fi 29499fi 29500 29501if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 29502{ echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5 29503echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6; } 29504if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 29505 echo $ECHO_N "(cached) $ECHO_C" >&6 29506else 29507 cat >conftest.$ac_ext <<_ACEOF 29508/* confdefs.h. */ 29509_ACEOF 29510cat confdefs.h >>conftest.$ac_ext 29511cat >>conftest.$ac_ext <<_ACEOF 29512/* end confdefs.h. */ 29513 29514 #include <stdio.h> 29515 #include <string.h> 29516struct foo { int foo; } xx; 29517extern int vasprintf (struct foo*); 29518int 29519main () 29520{ 29521vasprintf(&xx) 29522 ; 29523 return 0; 29524} 29525_ACEOF 29526rm -f conftest.$ac_objext 29527if { (ac_try="$ac_compile" 29528case "(($ac_try" in 29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29530 *) ac_try_echo=$ac_try;; 29531esac 29532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29533 (eval "$ac_compile") 2>conftest.er1 29534 ac_status=$? 29535 grep -v '^ *+' conftest.er1 >conftest.err 29536 rm -f conftest.er1 29537 cat conftest.err >&5 29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29539 (exit $ac_status); } && { 29540 test -z "$ac_c_werror_flag" || 29541 test ! -s conftest.err 29542 } && test -s conftest.$ac_objext; then 29543 eval "ac_cv_func_vasprintf_noproto=yes" 29544else 29545 echo "$as_me: failed program was:" >&5 29546sed 's/^/| /' conftest.$ac_ext >&5 29547 29548 eval "ac_cv_func_vasprintf_noproto=no" 29549fi 29550 29551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29552fi 29553{ echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5 29554echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6; } 29555if test "$ac_cv_func_vasprintf_noproto" = yes; then 29556 29557cat >>confdefs.h <<\_ACEOF 29558#define NEED_VASPRINTF_PROTO 1 29559_ACEOF 29560 29561fi 29562fi 29563 29564if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 29565{ echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5 29566echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6; } 29567if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 29568 echo $ECHO_N "(cached) $ECHO_C" >&6 29569else 29570 cat >conftest.$ac_ext <<_ACEOF 29571/* confdefs.h. */ 29572_ACEOF 29573cat confdefs.h >>conftest.$ac_ext 29574cat >>conftest.$ac_ext <<_ACEOF 29575/* end confdefs.h. */ 29576 29577 #include <stdio.h> 29578 #include <string.h> 29579struct foo { int foo; } xx; 29580extern int asnprintf (struct foo*); 29581int 29582main () 29583{ 29584asnprintf(&xx) 29585 ; 29586 return 0; 29587} 29588_ACEOF 29589rm -f conftest.$ac_objext 29590if { (ac_try="$ac_compile" 29591case "(($ac_try" in 29592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29593 *) ac_try_echo=$ac_try;; 29594esac 29595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29596 (eval "$ac_compile") 2>conftest.er1 29597 ac_status=$? 29598 grep -v '^ *+' conftest.er1 >conftest.err 29599 rm -f conftest.er1 29600 cat conftest.err >&5 29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29602 (exit $ac_status); } && { 29603 test -z "$ac_c_werror_flag" || 29604 test ! -s conftest.err 29605 } && test -s conftest.$ac_objext; then 29606 eval "ac_cv_func_asnprintf_noproto=yes" 29607else 29608 echo "$as_me: failed program was:" >&5 29609sed 's/^/| /' conftest.$ac_ext >&5 29610 29611 eval "ac_cv_func_asnprintf_noproto=no" 29612fi 29613 29614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29615fi 29616{ echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5 29617echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6; } 29618if test "$ac_cv_func_asnprintf_noproto" = yes; then 29619 29620cat >>confdefs.h <<\_ACEOF 29621#define NEED_ASNPRINTF_PROTO 1 29622_ACEOF 29623 29624fi 29625fi 29626 29627if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 29628{ echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5 29629echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6; } 29630if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 29631 echo $ECHO_N "(cached) $ECHO_C" >&6 29632else 29633 cat >conftest.$ac_ext <<_ACEOF 29634/* confdefs.h. */ 29635_ACEOF 29636cat confdefs.h >>conftest.$ac_ext 29637cat >>conftest.$ac_ext <<_ACEOF 29638/* end confdefs.h. */ 29639 29640 #include <stdio.h> 29641 #include <string.h> 29642struct foo { int foo; } xx; 29643extern int vasnprintf (struct foo*); 29644int 29645main () 29646{ 29647vasnprintf(&xx) 29648 ; 29649 return 0; 29650} 29651_ACEOF 29652rm -f conftest.$ac_objext 29653if { (ac_try="$ac_compile" 29654case "(($ac_try" in 29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29656 *) ac_try_echo=$ac_try;; 29657esac 29658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29659 (eval "$ac_compile") 2>conftest.er1 29660 ac_status=$? 29661 grep -v '^ *+' conftest.er1 >conftest.err 29662 rm -f conftest.er1 29663 cat conftest.err >&5 29664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29665 (exit $ac_status); } && { 29666 test -z "$ac_c_werror_flag" || 29667 test ! -s conftest.err 29668 } && test -s conftest.$ac_objext; then 29669 eval "ac_cv_func_vasnprintf_noproto=yes" 29670else 29671 echo "$as_me: failed program was:" >&5 29672sed 's/^/| /' conftest.$ac_ext >&5 29673 29674 eval "ac_cv_func_vasnprintf_noproto=no" 29675fi 29676 29677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29678fi 29679{ echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5 29680echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6; } 29681if test "$ac_cv_func_vasnprintf_noproto" = yes; then 29682 29683cat >>confdefs.h <<\_ACEOF 29684#define NEED_VASNPRINTF_PROTO 1 29685_ACEOF 29686 29687fi 29688fi 29689 29690 29691 29692 29693 29694{ echo "$as_me:$LINENO: checking for bswap16" >&5 29695echo $ECHO_N "checking for bswap16... $ECHO_C" >&6; } 29696if test "${ac_cv_funclib_bswap16+set}" = set; then 29697 echo $ECHO_N "(cached) $ECHO_C" >&6 29698else 29699 29700if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 29701 ac_save_LIBS="$LIBS" 29702 for ac_lib in "" ; do 29703 case "$ac_lib" in 29704 "") ;; 29705 yes) ac_lib="" ;; 29706 no) continue ;; 29707 -l*) ;; 29708 *) ac_lib="-l$ac_lib" ;; 29709 esac 29710 LIBS=" $ac_lib $ac_save_LIBS" 29711 cat >conftest.$ac_ext <<_ACEOF 29712/* confdefs.h. */ 29713_ACEOF 29714cat confdefs.h >>conftest.$ac_ext 29715cat >>conftest.$ac_ext <<_ACEOF 29716/* end confdefs.h. */ 29717#ifdef HAVE_SYS_BSWAP_H 29718#include <sys/bswap.h> 29719#endif 29720int 29721main () 29722{ 29723bswap16(0) 29724 ; 29725 return 0; 29726} 29727_ACEOF 29728rm -f conftest.$ac_objext conftest$ac_exeext 29729if { (ac_try="$ac_link" 29730case "(($ac_try" in 29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29732 *) ac_try_echo=$ac_try;; 29733esac 29734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29735 (eval "$ac_link") 2>conftest.er1 29736 ac_status=$? 29737 grep -v '^ *+' conftest.er1 >conftest.err 29738 rm -f conftest.er1 29739 cat conftest.err >&5 29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29741 (exit $ac_status); } && { 29742 test -z "$ac_c_werror_flag" || 29743 test ! -s conftest.err 29744 } && test -s conftest$ac_exeext && 29745 $as_test_x conftest$ac_exeext; then 29746 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 29747else 29748 echo "$as_me: failed program was:" >&5 29749sed 's/^/| /' conftest.$ac_ext >&5 29750 29751 29752fi 29753 29754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29755 conftest$ac_exeext conftest.$ac_ext 29756 done 29757 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 29758 LIBS="$ac_save_LIBS" 29759fi 29760 29761fi 29762 29763 29764eval "ac_res=\$ac_cv_funclib_bswap16" 29765 29766if false; then 29767 29768for ac_func in bswap16 29769do 29770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29771{ echo "$as_me:$LINENO: checking for $ac_func" >&5 29772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29774 echo $ECHO_N "(cached) $ECHO_C" >&6 29775else 29776 cat >conftest.$ac_ext <<_ACEOF 29777/* confdefs.h. */ 29778_ACEOF 29779cat confdefs.h >>conftest.$ac_ext 29780cat >>conftest.$ac_ext <<_ACEOF 29781/* end confdefs.h. */ 29782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29784#define $ac_func innocuous_$ac_func 29785 29786/* System header to define __stub macros and hopefully few prototypes, 29787 which can conflict with char $ac_func (); below. 29788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29789 <limits.h> exists even on freestanding compilers. */ 29790 29791#ifdef __STDC__ 29792# include <limits.h> 29793#else 29794# include <assert.h> 29795#endif 29796 29797#undef $ac_func 29798 29799/* Override any GCC internal prototype to avoid an error. 29800 Use char because int might match the return type of a GCC 29801 builtin and then its argument prototype would still apply. */ 29802#ifdef __cplusplus 29803extern "C" 29804#endif 29805char $ac_func (); 29806/* The GNU C library defines this for functions which it implements 29807 to always fail with ENOSYS. Some functions are actually named 29808 something starting with __ and the normal name is an alias. */ 29809#if defined __stub_$ac_func || defined __stub___$ac_func 29810choke me 29811#endif 29812 29813int 29814main () 29815{ 29816return $ac_func (); 29817 ; 29818 return 0; 29819} 29820_ACEOF 29821rm -f conftest.$ac_objext conftest$ac_exeext 29822if { (ac_try="$ac_link" 29823case "(($ac_try" in 29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29825 *) ac_try_echo=$ac_try;; 29826esac 29827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29828 (eval "$ac_link") 2>conftest.er1 29829 ac_status=$? 29830 grep -v '^ *+' conftest.er1 >conftest.err 29831 rm -f conftest.er1 29832 cat conftest.err >&5 29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29834 (exit $ac_status); } && { 29835 test -z "$ac_c_werror_flag" || 29836 test ! -s conftest.err 29837 } && test -s conftest$ac_exeext && 29838 $as_test_x conftest$ac_exeext; then 29839 eval "$as_ac_var=yes" 29840else 29841 echo "$as_me: failed program was:" >&5 29842sed 's/^/| /' conftest.$ac_ext >&5 29843 29844 eval "$as_ac_var=no" 29845fi 29846 29847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29848 conftest$ac_exeext conftest.$ac_ext 29849fi 29850ac_res=`eval echo '${'$as_ac_var'}'` 29851 { echo "$as_me:$LINENO: result: $ac_res" >&5 29852echo "${ECHO_T}$ac_res" >&6; } 29853if test `eval echo '${'$as_ac_var'}'` = yes; then 29854 cat >>confdefs.h <<_ACEOF 29855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29856_ACEOF 29857 29858fi 29859done 29860 29861fi 29862# bswap16 29863eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29864eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29865eval "LIB_bswap16=$ac_res" 29866 29867case "$ac_res" in 29868 yes) 29869 eval "ac_cv_func_bswap16=yes" 29870 eval "LIB_bswap16=" 29871 cat >>confdefs.h <<_ACEOF 29872#define $ac_tr_func 1 29873_ACEOF 29874 29875 { echo "$as_me:$LINENO: result: yes" >&5 29876echo "${ECHO_T}yes" >&6; } 29877 ;; 29878 no) 29879 eval "ac_cv_func_bswap16=no" 29880 eval "LIB_bswap16=" 29881 { echo "$as_me:$LINENO: result: no" >&5 29882echo "${ECHO_T}no" >&6; } 29883 ;; 29884 *) 29885 eval "ac_cv_func_bswap16=yes" 29886 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29887 cat >>confdefs.h <<_ACEOF 29888#define $ac_tr_func 1 29889_ACEOF 29890 29891 cat >>confdefs.h <<_ACEOF 29892#define $ac_tr_lib 1 29893_ACEOF 29894 29895 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29896echo "${ECHO_T}yes, in $ac_res" >&6; } 29897 ;; 29898esac 29899 29900 29901 29902 29903 29904 29905{ echo "$as_me:$LINENO: checking for bswap32" >&5 29906echo $ECHO_N "checking for bswap32... $ECHO_C" >&6; } 29907if test "${ac_cv_funclib_bswap32+set}" = set; then 29908 echo $ECHO_N "(cached) $ECHO_C" >&6 29909else 29910 29911if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 29912 ac_save_LIBS="$LIBS" 29913 for ac_lib in "" ; do 29914 case "$ac_lib" in 29915 "") ;; 29916 yes) ac_lib="" ;; 29917 no) continue ;; 29918 -l*) ;; 29919 *) ac_lib="-l$ac_lib" ;; 29920 esac 29921 LIBS=" $ac_lib $ac_save_LIBS" 29922 cat >conftest.$ac_ext <<_ACEOF 29923/* confdefs.h. */ 29924_ACEOF 29925cat confdefs.h >>conftest.$ac_ext 29926cat >>conftest.$ac_ext <<_ACEOF 29927/* end confdefs.h. */ 29928#ifdef HAVE_SYS_BSWAP_H 29929#include <sys/bswap.h> 29930#endif 29931int 29932main () 29933{ 29934bswap32(0) 29935 ; 29936 return 0; 29937} 29938_ACEOF 29939rm -f conftest.$ac_objext conftest$ac_exeext 29940if { (ac_try="$ac_link" 29941case "(($ac_try" in 29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29943 *) ac_try_echo=$ac_try;; 29944esac 29945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29946 (eval "$ac_link") 2>conftest.er1 29947 ac_status=$? 29948 grep -v '^ *+' conftest.er1 >conftest.err 29949 rm -f conftest.er1 29950 cat conftest.err >&5 29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29952 (exit $ac_status); } && { 29953 test -z "$ac_c_werror_flag" || 29954 test ! -s conftest.err 29955 } && test -s conftest$ac_exeext && 29956 $as_test_x conftest$ac_exeext; then 29957 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 29958else 29959 echo "$as_me: failed program was:" >&5 29960sed 's/^/| /' conftest.$ac_ext >&5 29961 29962 29963fi 29964 29965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29966 conftest$ac_exeext conftest.$ac_ext 29967 done 29968 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 29969 LIBS="$ac_save_LIBS" 29970fi 29971 29972fi 29973 29974 29975eval "ac_res=\$ac_cv_funclib_bswap32" 29976 29977if false; then 29978 29979for ac_func in bswap32 29980do 29981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29982{ echo "$as_me:$LINENO: checking for $ac_func" >&5 29983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 29984if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 29985 echo $ECHO_N "(cached) $ECHO_C" >&6 29986else 29987 cat >conftest.$ac_ext <<_ACEOF 29988/* confdefs.h. */ 29989_ACEOF 29990cat confdefs.h >>conftest.$ac_ext 29991cat >>conftest.$ac_ext <<_ACEOF 29992/* end confdefs.h. */ 29993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 29994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29995#define $ac_func innocuous_$ac_func 29996 29997/* System header to define __stub macros and hopefully few prototypes, 29998 which can conflict with char $ac_func (); below. 29999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30000 <limits.h> exists even on freestanding compilers. */ 30001 30002#ifdef __STDC__ 30003# include <limits.h> 30004#else 30005# include <assert.h> 30006#endif 30007 30008#undef $ac_func 30009 30010/* Override any GCC internal prototype to avoid an error. 30011 Use char because int might match the return type of a GCC 30012 builtin and then its argument prototype would still apply. */ 30013#ifdef __cplusplus 30014extern "C" 30015#endif 30016char $ac_func (); 30017/* The GNU C library defines this for functions which it implements 30018 to always fail with ENOSYS. Some functions are actually named 30019 something starting with __ and the normal name is an alias. */ 30020#if defined __stub_$ac_func || defined __stub___$ac_func 30021choke me 30022#endif 30023 30024int 30025main () 30026{ 30027return $ac_func (); 30028 ; 30029 return 0; 30030} 30031_ACEOF 30032rm -f conftest.$ac_objext conftest$ac_exeext 30033if { (ac_try="$ac_link" 30034case "(($ac_try" in 30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30036 *) ac_try_echo=$ac_try;; 30037esac 30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30039 (eval "$ac_link") 2>conftest.er1 30040 ac_status=$? 30041 grep -v '^ *+' conftest.er1 >conftest.err 30042 rm -f conftest.er1 30043 cat conftest.err >&5 30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30045 (exit $ac_status); } && { 30046 test -z "$ac_c_werror_flag" || 30047 test ! -s conftest.err 30048 } && test -s conftest$ac_exeext && 30049 $as_test_x conftest$ac_exeext; then 30050 eval "$as_ac_var=yes" 30051else 30052 echo "$as_me: failed program was:" >&5 30053sed 's/^/| /' conftest.$ac_ext >&5 30054 30055 eval "$as_ac_var=no" 30056fi 30057 30058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30059 conftest$ac_exeext conftest.$ac_ext 30060fi 30061ac_res=`eval echo '${'$as_ac_var'}'` 30062 { echo "$as_me:$LINENO: result: $ac_res" >&5 30063echo "${ECHO_T}$ac_res" >&6; } 30064if test `eval echo '${'$as_ac_var'}'` = yes; then 30065 cat >>confdefs.h <<_ACEOF 30066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30067_ACEOF 30068 30069fi 30070done 30071 30072fi 30073# bswap32 30074eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30075eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30076eval "LIB_bswap32=$ac_res" 30077 30078case "$ac_res" in 30079 yes) 30080 eval "ac_cv_func_bswap32=yes" 30081 eval "LIB_bswap32=" 30082 cat >>confdefs.h <<_ACEOF 30083#define $ac_tr_func 1 30084_ACEOF 30085 30086 { echo "$as_me:$LINENO: result: yes" >&5 30087echo "${ECHO_T}yes" >&6; } 30088 ;; 30089 no) 30090 eval "ac_cv_func_bswap32=no" 30091 eval "LIB_bswap32=" 30092 { echo "$as_me:$LINENO: result: no" >&5 30093echo "${ECHO_T}no" >&6; } 30094 ;; 30095 *) 30096 eval "ac_cv_func_bswap32=yes" 30097 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30098 cat >>confdefs.h <<_ACEOF 30099#define $ac_tr_func 1 30100_ACEOF 30101 30102 cat >>confdefs.h <<_ACEOF 30103#define $ac_tr_lib 1 30104_ACEOF 30105 30106 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30107echo "${ECHO_T}yes, in $ac_res" >&6; } 30108 ;; 30109esac 30110 30111 30112 30113 30114 30115 30116{ echo "$as_me:$LINENO: checking for pidfile" >&5 30117echo $ECHO_N "checking for pidfile... $ECHO_C" >&6; } 30118if test "${ac_cv_funclib_pidfile+set}" = set; then 30119 echo $ECHO_N "(cached) $ECHO_C" >&6 30120else 30121 30122if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 30123 ac_save_LIBS="$LIBS" 30124 for ac_lib in "" util; do 30125 case "$ac_lib" in 30126 "") ;; 30127 yes) ac_lib="" ;; 30128 no) continue ;; 30129 -l*) ;; 30130 *) ac_lib="-l$ac_lib" ;; 30131 esac 30132 LIBS=" $ac_lib $ac_save_LIBS" 30133 cat >conftest.$ac_ext <<_ACEOF 30134/* confdefs.h. */ 30135_ACEOF 30136cat confdefs.h >>conftest.$ac_ext 30137cat >>conftest.$ac_ext <<_ACEOF 30138/* end confdefs.h. */ 30139#ifdef HAVE_UTIL_H 30140#include <util.h> 30141#endif 30142int 30143main () 30144{ 30145pidfile(0) 30146 ; 30147 return 0; 30148} 30149_ACEOF 30150rm -f conftest.$ac_objext conftest$ac_exeext 30151if { (ac_try="$ac_link" 30152case "(($ac_try" in 30153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30154 *) ac_try_echo=$ac_try;; 30155esac 30156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30157 (eval "$ac_link") 2>conftest.er1 30158 ac_status=$? 30159 grep -v '^ *+' conftest.er1 >conftest.err 30160 rm -f conftest.er1 30161 cat conftest.err >&5 30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30163 (exit $ac_status); } && { 30164 test -z "$ac_c_werror_flag" || 30165 test ! -s conftest.err 30166 } && test -s conftest$ac_exeext && 30167 $as_test_x conftest$ac_exeext; then 30168 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 30169else 30170 echo "$as_me: failed program was:" >&5 30171sed 's/^/| /' conftest.$ac_ext >&5 30172 30173 30174fi 30175 30176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30177 conftest$ac_exeext conftest.$ac_ext 30178 done 30179 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 30180 LIBS="$ac_save_LIBS" 30181fi 30182 30183fi 30184 30185 30186eval "ac_res=\$ac_cv_funclib_pidfile" 30187 30188if false; then 30189 30190for ac_func in pidfile 30191do 30192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30193{ echo "$as_me:$LINENO: checking for $ac_func" >&5 30194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 30195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 30196 echo $ECHO_N "(cached) $ECHO_C" >&6 30197else 30198 cat >conftest.$ac_ext <<_ACEOF 30199/* confdefs.h. */ 30200_ACEOF 30201cat confdefs.h >>conftest.$ac_ext 30202cat >>conftest.$ac_ext <<_ACEOF 30203/* end confdefs.h. */ 30204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 30205 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30206#define $ac_func innocuous_$ac_func 30207 30208/* System header to define __stub macros and hopefully few prototypes, 30209 which can conflict with char $ac_func (); below. 30210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30211 <limits.h> exists even on freestanding compilers. */ 30212 30213#ifdef __STDC__ 30214# include <limits.h> 30215#else 30216# include <assert.h> 30217#endif 30218 30219#undef $ac_func 30220 30221/* Override any GCC internal prototype to avoid an error. 30222 Use char because int might match the return type of a GCC 30223 builtin and then its argument prototype would still apply. */ 30224#ifdef __cplusplus 30225extern "C" 30226#endif 30227char $ac_func (); 30228/* The GNU C library defines this for functions which it implements 30229 to always fail with ENOSYS. Some functions are actually named 30230 something starting with __ and the normal name is an alias. */ 30231#if defined __stub_$ac_func || defined __stub___$ac_func 30232choke me 30233#endif 30234 30235int 30236main () 30237{ 30238return $ac_func (); 30239 ; 30240 return 0; 30241} 30242_ACEOF 30243rm -f conftest.$ac_objext conftest$ac_exeext 30244if { (ac_try="$ac_link" 30245case "(($ac_try" in 30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30247 *) ac_try_echo=$ac_try;; 30248esac 30249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30250 (eval "$ac_link") 2>conftest.er1 30251 ac_status=$? 30252 grep -v '^ *+' conftest.er1 >conftest.err 30253 rm -f conftest.er1 30254 cat conftest.err >&5 30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30256 (exit $ac_status); } && { 30257 test -z "$ac_c_werror_flag" || 30258 test ! -s conftest.err 30259 } && test -s conftest$ac_exeext && 30260 $as_test_x conftest$ac_exeext; then 30261 eval "$as_ac_var=yes" 30262else 30263 echo "$as_me: failed program was:" >&5 30264sed 's/^/| /' conftest.$ac_ext >&5 30265 30266 eval "$as_ac_var=no" 30267fi 30268 30269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30270 conftest$ac_exeext conftest.$ac_ext 30271fi 30272ac_res=`eval echo '${'$as_ac_var'}'` 30273 { echo "$as_me:$LINENO: result: $ac_res" >&5 30274echo "${ECHO_T}$ac_res" >&6; } 30275if test `eval echo '${'$as_ac_var'}'` = yes; then 30276 cat >>confdefs.h <<_ACEOF 30277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30278_ACEOF 30279 30280fi 30281done 30282 30283fi 30284# pidfile 30285eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30286eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30287eval "LIB_pidfile=$ac_res" 30288 30289case "$ac_res" in 30290 yes) 30291 eval "ac_cv_func_pidfile=yes" 30292 eval "LIB_pidfile=" 30293 cat >>confdefs.h <<_ACEOF 30294#define $ac_tr_func 1 30295_ACEOF 30296 30297 { echo "$as_me:$LINENO: result: yes" >&5 30298echo "${ECHO_T}yes" >&6; } 30299 ;; 30300 no) 30301 eval "ac_cv_func_pidfile=no" 30302 eval "LIB_pidfile=" 30303 { echo "$as_me:$LINENO: result: no" >&5 30304echo "${ECHO_T}no" >&6; } 30305 ;; 30306 *) 30307 eval "ac_cv_func_pidfile=yes" 30308 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30309 cat >>confdefs.h <<_ACEOF 30310#define $ac_tr_func 1 30311_ACEOF 30312 30313 cat >>confdefs.h <<_ACEOF 30314#define $ac_tr_lib 1 30315_ACEOF 30316 30317 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30318echo "${ECHO_T}yes, in $ac_res" >&6; } 30319 ;; 30320esac 30321 30322 30323 30324 30325 30326 30327 30328{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5 30329echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } 30330if test "${ac_cv_funclib_getaddrinfo+set}" = set; then 30331 echo $ECHO_N "(cached) $ECHO_C" >&6 30332else 30333 30334if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 30335 ac_save_LIBS="$LIBS" 30336 for ac_lib in "" ; do 30337 case "$ac_lib" in 30338 "") ;; 30339 yes) ac_lib="" ;; 30340 no) continue ;; 30341 -l*) ;; 30342 *) ac_lib="-l$ac_lib" ;; 30343 esac 30344 LIBS=" $ac_lib $ac_save_LIBS" 30345 cat >conftest.$ac_ext <<_ACEOF 30346/* confdefs.h. */ 30347_ACEOF 30348cat confdefs.h >>conftest.$ac_ext 30349cat >>conftest.$ac_ext <<_ACEOF 30350/* end confdefs.h. */ 30351#ifdef HAVE_NETDB_H 30352#include <netdb.h> 30353#endif 30354int 30355main () 30356{ 30357getaddrinfo(0,0,0,0) 30358 ; 30359 return 0; 30360} 30361_ACEOF 30362rm -f conftest.$ac_objext conftest$ac_exeext 30363if { (ac_try="$ac_link" 30364case "(($ac_try" in 30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30366 *) ac_try_echo=$ac_try;; 30367esac 30368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30369 (eval "$ac_link") 2>conftest.er1 30370 ac_status=$? 30371 grep -v '^ *+' conftest.er1 >conftest.err 30372 rm -f conftest.er1 30373 cat conftest.err >&5 30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30375 (exit $ac_status); } && { 30376 test -z "$ac_c_werror_flag" || 30377 test ! -s conftest.err 30378 } && test -s conftest$ac_exeext && 30379 $as_test_x conftest$ac_exeext; then 30380 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 30381else 30382 echo "$as_me: failed program was:" >&5 30383sed 's/^/| /' conftest.$ac_ext >&5 30384 30385 30386fi 30387 30388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30389 conftest$ac_exeext conftest.$ac_ext 30390 done 30391 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 30392 LIBS="$ac_save_LIBS" 30393fi 30394 30395fi 30396 30397 30398eval "ac_res=\$ac_cv_funclib_getaddrinfo" 30399 30400if false; then 30401 30402for ac_func in getaddrinfo 30403do 30404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30405{ echo "$as_me:$LINENO: checking for $ac_func" >&5 30406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 30407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 30408 echo $ECHO_N "(cached) $ECHO_C" >&6 30409else 30410 cat >conftest.$ac_ext <<_ACEOF 30411/* confdefs.h. */ 30412_ACEOF 30413cat confdefs.h >>conftest.$ac_ext 30414cat >>conftest.$ac_ext <<_ACEOF 30415/* end confdefs.h. */ 30416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30418#define $ac_func innocuous_$ac_func 30419 30420/* System header to define __stub macros and hopefully few prototypes, 30421 which can conflict with char $ac_func (); below. 30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30423 <limits.h> exists even on freestanding compilers. */ 30424 30425#ifdef __STDC__ 30426# include <limits.h> 30427#else 30428# include <assert.h> 30429#endif 30430 30431#undef $ac_func 30432 30433/* Override any GCC internal prototype to avoid an error. 30434 Use char because int might match the return type of a GCC 30435 builtin and then its argument prototype would still apply. */ 30436#ifdef __cplusplus 30437extern "C" 30438#endif 30439char $ac_func (); 30440/* The GNU C library defines this for functions which it implements 30441 to always fail with ENOSYS. Some functions are actually named 30442 something starting with __ and the normal name is an alias. */ 30443#if defined __stub_$ac_func || defined __stub___$ac_func 30444choke me 30445#endif 30446 30447int 30448main () 30449{ 30450return $ac_func (); 30451 ; 30452 return 0; 30453} 30454_ACEOF 30455rm -f conftest.$ac_objext conftest$ac_exeext 30456if { (ac_try="$ac_link" 30457case "(($ac_try" in 30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30459 *) ac_try_echo=$ac_try;; 30460esac 30461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30462 (eval "$ac_link") 2>conftest.er1 30463 ac_status=$? 30464 grep -v '^ *+' conftest.er1 >conftest.err 30465 rm -f conftest.er1 30466 cat conftest.err >&5 30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30468 (exit $ac_status); } && { 30469 test -z "$ac_c_werror_flag" || 30470 test ! -s conftest.err 30471 } && test -s conftest$ac_exeext && 30472 $as_test_x conftest$ac_exeext; then 30473 eval "$as_ac_var=yes" 30474else 30475 echo "$as_me: failed program was:" >&5 30476sed 's/^/| /' conftest.$ac_ext >&5 30477 30478 eval "$as_ac_var=no" 30479fi 30480 30481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30482 conftest$ac_exeext conftest.$ac_ext 30483fi 30484ac_res=`eval echo '${'$as_ac_var'}'` 30485 { echo "$as_me:$LINENO: result: $ac_res" >&5 30486echo "${ECHO_T}$ac_res" >&6; } 30487if test `eval echo '${'$as_ac_var'}'` = yes; then 30488 cat >>confdefs.h <<_ACEOF 30489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30490_ACEOF 30491 30492fi 30493done 30494 30495fi 30496# getaddrinfo 30497eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30498eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30499eval "LIB_getaddrinfo=$ac_res" 30500 30501case "$ac_res" in 30502 yes) 30503 eval "ac_cv_func_getaddrinfo=yes" 30504 eval "LIB_getaddrinfo=" 30505 cat >>confdefs.h <<_ACEOF 30506#define $ac_tr_func 1 30507_ACEOF 30508 30509 { echo "$as_me:$LINENO: result: yes" >&5 30510echo "${ECHO_T}yes" >&6; } 30511 ;; 30512 no) 30513 eval "ac_cv_func_getaddrinfo=no" 30514 eval "LIB_getaddrinfo=" 30515 { echo "$as_me:$LINENO: result: no" >&5 30516echo "${ECHO_T}no" >&6; } 30517 ;; 30518 *) 30519 eval "ac_cv_func_getaddrinfo=yes" 30520 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30521 cat >>confdefs.h <<_ACEOF 30522#define $ac_tr_func 1 30523_ACEOF 30524 30525 cat >>confdefs.h <<_ACEOF 30526#define $ac_tr_lib 1 30527_ACEOF 30528 30529 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30530echo "${ECHO_T}yes, in $ac_res" >&6; } 30531 ;; 30532esac 30533 30534 30535if test -n "$LIB_getaddrinfo"; then 30536 LIBS="$LIB_getaddrinfo $LIBS" 30537fi 30538 30539if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 30540 case " $LIBOBJS " in 30541 *" getaddrinfo.$ac_objext "* ) ;; 30542 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 30543 ;; 30544esac 30545 30546fi 30547 30548 30549 30550 30551 30552 30553{ echo "$as_me:$LINENO: checking for getnameinfo" >&5 30554echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; } 30555if test "${ac_cv_funclib_getnameinfo+set}" = set; then 30556 echo $ECHO_N "(cached) $ECHO_C" >&6 30557else 30558 30559if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 30560 ac_save_LIBS="$LIBS" 30561 for ac_lib in "" ; do 30562 case "$ac_lib" in 30563 "") ;; 30564 yes) ac_lib="" ;; 30565 no) continue ;; 30566 -l*) ;; 30567 *) ac_lib="-l$ac_lib" ;; 30568 esac 30569 LIBS=" $ac_lib $ac_save_LIBS" 30570 cat >conftest.$ac_ext <<_ACEOF 30571/* confdefs.h. */ 30572_ACEOF 30573cat confdefs.h >>conftest.$ac_ext 30574cat >>conftest.$ac_ext <<_ACEOF 30575/* end confdefs.h. */ 30576#ifdef HAVE_NETDB_H 30577#include <netdb.h> 30578#endif 30579int 30580main () 30581{ 30582getnameinfo(0,0,0,0,0,0,0) 30583 ; 30584 return 0; 30585} 30586_ACEOF 30587rm -f conftest.$ac_objext conftest$ac_exeext 30588if { (ac_try="$ac_link" 30589case "(($ac_try" in 30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30591 *) ac_try_echo=$ac_try;; 30592esac 30593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30594 (eval "$ac_link") 2>conftest.er1 30595 ac_status=$? 30596 grep -v '^ *+' conftest.er1 >conftest.err 30597 rm -f conftest.er1 30598 cat conftest.err >&5 30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30600 (exit $ac_status); } && { 30601 test -z "$ac_c_werror_flag" || 30602 test ! -s conftest.err 30603 } && test -s conftest$ac_exeext && 30604 $as_test_x conftest$ac_exeext; then 30605 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 30606else 30607 echo "$as_me: failed program was:" >&5 30608sed 's/^/| /' conftest.$ac_ext >&5 30609 30610 30611fi 30612 30613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30614 conftest$ac_exeext conftest.$ac_ext 30615 done 30616 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 30617 LIBS="$ac_save_LIBS" 30618fi 30619 30620fi 30621 30622 30623eval "ac_res=\$ac_cv_funclib_getnameinfo" 30624 30625if false; then 30626 30627for ac_func in getnameinfo 30628do 30629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30630{ echo "$as_me:$LINENO: checking for $ac_func" >&5 30631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 30632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 30633 echo $ECHO_N "(cached) $ECHO_C" >&6 30634else 30635 cat >conftest.$ac_ext <<_ACEOF 30636/* confdefs.h. */ 30637_ACEOF 30638cat confdefs.h >>conftest.$ac_ext 30639cat >>conftest.$ac_ext <<_ACEOF 30640/* end confdefs.h. */ 30641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 30642 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30643#define $ac_func innocuous_$ac_func 30644 30645/* System header to define __stub macros and hopefully few prototypes, 30646 which can conflict with char $ac_func (); below. 30647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30648 <limits.h> exists even on freestanding compilers. */ 30649 30650#ifdef __STDC__ 30651# include <limits.h> 30652#else 30653# include <assert.h> 30654#endif 30655 30656#undef $ac_func 30657 30658/* Override any GCC internal prototype to avoid an error. 30659 Use char because int might match the return type of a GCC 30660 builtin and then its argument prototype would still apply. */ 30661#ifdef __cplusplus 30662extern "C" 30663#endif 30664char $ac_func (); 30665/* The GNU C library defines this for functions which it implements 30666 to always fail with ENOSYS. Some functions are actually named 30667 something starting with __ and the normal name is an alias. */ 30668#if defined __stub_$ac_func || defined __stub___$ac_func 30669choke me 30670#endif 30671 30672int 30673main () 30674{ 30675return $ac_func (); 30676 ; 30677 return 0; 30678} 30679_ACEOF 30680rm -f conftest.$ac_objext conftest$ac_exeext 30681if { (ac_try="$ac_link" 30682case "(($ac_try" in 30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30684 *) ac_try_echo=$ac_try;; 30685esac 30686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30687 (eval "$ac_link") 2>conftest.er1 30688 ac_status=$? 30689 grep -v '^ *+' conftest.er1 >conftest.err 30690 rm -f conftest.er1 30691 cat conftest.err >&5 30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30693 (exit $ac_status); } && { 30694 test -z "$ac_c_werror_flag" || 30695 test ! -s conftest.err 30696 } && test -s conftest$ac_exeext && 30697 $as_test_x conftest$ac_exeext; then 30698 eval "$as_ac_var=yes" 30699else 30700 echo "$as_me: failed program was:" >&5 30701sed 's/^/| /' conftest.$ac_ext >&5 30702 30703 eval "$as_ac_var=no" 30704fi 30705 30706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30707 conftest$ac_exeext conftest.$ac_ext 30708fi 30709ac_res=`eval echo '${'$as_ac_var'}'` 30710 { echo "$as_me:$LINENO: result: $ac_res" >&5 30711echo "${ECHO_T}$ac_res" >&6; } 30712if test `eval echo '${'$as_ac_var'}'` = yes; then 30713 cat >>confdefs.h <<_ACEOF 30714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30715_ACEOF 30716 30717fi 30718done 30719 30720fi 30721# getnameinfo 30722eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30723eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30724eval "LIB_getnameinfo=$ac_res" 30725 30726case "$ac_res" in 30727 yes) 30728 eval "ac_cv_func_getnameinfo=yes" 30729 eval "LIB_getnameinfo=" 30730 cat >>confdefs.h <<_ACEOF 30731#define $ac_tr_func 1 30732_ACEOF 30733 30734 { echo "$as_me:$LINENO: result: yes" >&5 30735echo "${ECHO_T}yes" >&6; } 30736 ;; 30737 no) 30738 eval "ac_cv_func_getnameinfo=no" 30739 eval "LIB_getnameinfo=" 30740 { echo "$as_me:$LINENO: result: no" >&5 30741echo "${ECHO_T}no" >&6; } 30742 ;; 30743 *) 30744 eval "ac_cv_func_getnameinfo=yes" 30745 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30746 cat >>confdefs.h <<_ACEOF 30747#define $ac_tr_func 1 30748_ACEOF 30749 30750 cat >>confdefs.h <<_ACEOF 30751#define $ac_tr_lib 1 30752_ACEOF 30753 30754 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30755echo "${ECHO_T}yes, in $ac_res" >&6; } 30756 ;; 30757esac 30758 30759 30760if test -n "$LIB_getnameinfo"; then 30761 LIBS="$LIB_getnameinfo $LIBS" 30762fi 30763 30764if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 30765 case " $LIBOBJS " in 30766 *" getnameinfo.$ac_objext "* ) ;; 30767 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 30768 ;; 30769esac 30770 30771fi 30772 30773 30774 30775 30776 30777 30778{ echo "$as_me:$LINENO: checking for freeaddrinfo" >&5 30779echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6; } 30780if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then 30781 echo $ECHO_N "(cached) $ECHO_C" >&6 30782else 30783 30784if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 30785 ac_save_LIBS="$LIBS" 30786 for ac_lib in "" ; do 30787 case "$ac_lib" in 30788 "") ;; 30789 yes) ac_lib="" ;; 30790 no) continue ;; 30791 -l*) ;; 30792 *) ac_lib="-l$ac_lib" ;; 30793 esac 30794 LIBS=" $ac_lib $ac_save_LIBS" 30795 cat >conftest.$ac_ext <<_ACEOF 30796/* confdefs.h. */ 30797_ACEOF 30798cat confdefs.h >>conftest.$ac_ext 30799cat >>conftest.$ac_ext <<_ACEOF 30800/* end confdefs.h. */ 30801#ifdef HAVE_NETDB_H 30802#include <netdb.h> 30803#endif 30804int 30805main () 30806{ 30807freeaddrinfo(0) 30808 ; 30809 return 0; 30810} 30811_ACEOF 30812rm -f conftest.$ac_objext conftest$ac_exeext 30813if { (ac_try="$ac_link" 30814case "(($ac_try" in 30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30816 *) ac_try_echo=$ac_try;; 30817esac 30818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30819 (eval "$ac_link") 2>conftest.er1 30820 ac_status=$? 30821 grep -v '^ *+' conftest.er1 >conftest.err 30822 rm -f conftest.er1 30823 cat conftest.err >&5 30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30825 (exit $ac_status); } && { 30826 test -z "$ac_c_werror_flag" || 30827 test ! -s conftest.err 30828 } && test -s conftest$ac_exeext && 30829 $as_test_x conftest$ac_exeext; then 30830 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 30831else 30832 echo "$as_me: failed program was:" >&5 30833sed 's/^/| /' conftest.$ac_ext >&5 30834 30835 30836fi 30837 30838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30839 conftest$ac_exeext conftest.$ac_ext 30840 done 30841 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 30842 LIBS="$ac_save_LIBS" 30843fi 30844 30845fi 30846 30847 30848eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 30849 30850if false; then 30851 30852for ac_func in freeaddrinfo 30853do 30854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30855{ echo "$as_me:$LINENO: checking for $ac_func" >&5 30856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 30857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 30858 echo $ECHO_N "(cached) $ECHO_C" >&6 30859else 30860 cat >conftest.$ac_ext <<_ACEOF 30861/* confdefs.h. */ 30862_ACEOF 30863cat confdefs.h >>conftest.$ac_ext 30864cat >>conftest.$ac_ext <<_ACEOF 30865/* end confdefs.h. */ 30866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 30867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30868#define $ac_func innocuous_$ac_func 30869 30870/* System header to define __stub macros and hopefully few prototypes, 30871 which can conflict with char $ac_func (); below. 30872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30873 <limits.h> exists even on freestanding compilers. */ 30874 30875#ifdef __STDC__ 30876# include <limits.h> 30877#else 30878# include <assert.h> 30879#endif 30880 30881#undef $ac_func 30882 30883/* Override any GCC internal prototype to avoid an error. 30884 Use char because int might match the return type of a GCC 30885 builtin and then its argument prototype would still apply. */ 30886#ifdef __cplusplus 30887extern "C" 30888#endif 30889char $ac_func (); 30890/* The GNU C library defines this for functions which it implements 30891 to always fail with ENOSYS. Some functions are actually named 30892 something starting with __ and the normal name is an alias. */ 30893#if defined __stub_$ac_func || defined __stub___$ac_func 30894choke me 30895#endif 30896 30897int 30898main () 30899{ 30900return $ac_func (); 30901 ; 30902 return 0; 30903} 30904_ACEOF 30905rm -f conftest.$ac_objext conftest$ac_exeext 30906if { (ac_try="$ac_link" 30907case "(($ac_try" in 30908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30909 *) ac_try_echo=$ac_try;; 30910esac 30911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30912 (eval "$ac_link") 2>conftest.er1 30913 ac_status=$? 30914 grep -v '^ *+' conftest.er1 >conftest.err 30915 rm -f conftest.er1 30916 cat conftest.err >&5 30917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30918 (exit $ac_status); } && { 30919 test -z "$ac_c_werror_flag" || 30920 test ! -s conftest.err 30921 } && test -s conftest$ac_exeext && 30922 $as_test_x conftest$ac_exeext; then 30923 eval "$as_ac_var=yes" 30924else 30925 echo "$as_me: failed program was:" >&5 30926sed 's/^/| /' conftest.$ac_ext >&5 30927 30928 eval "$as_ac_var=no" 30929fi 30930 30931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30932 conftest$ac_exeext conftest.$ac_ext 30933fi 30934ac_res=`eval echo '${'$as_ac_var'}'` 30935 { echo "$as_me:$LINENO: result: $ac_res" >&5 30936echo "${ECHO_T}$ac_res" >&6; } 30937if test `eval echo '${'$as_ac_var'}'` = yes; then 30938 cat >>confdefs.h <<_ACEOF 30939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30940_ACEOF 30941 30942fi 30943done 30944 30945fi 30946# freeaddrinfo 30947eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30948eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30949eval "LIB_freeaddrinfo=$ac_res" 30950 30951case "$ac_res" in 30952 yes) 30953 eval "ac_cv_func_freeaddrinfo=yes" 30954 eval "LIB_freeaddrinfo=" 30955 cat >>confdefs.h <<_ACEOF 30956#define $ac_tr_func 1 30957_ACEOF 30958 30959 { echo "$as_me:$LINENO: result: yes" >&5 30960echo "${ECHO_T}yes" >&6; } 30961 ;; 30962 no) 30963 eval "ac_cv_func_freeaddrinfo=no" 30964 eval "LIB_freeaddrinfo=" 30965 { echo "$as_me:$LINENO: result: no" >&5 30966echo "${ECHO_T}no" >&6; } 30967 ;; 30968 *) 30969 eval "ac_cv_func_freeaddrinfo=yes" 30970 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30971 cat >>confdefs.h <<_ACEOF 30972#define $ac_tr_func 1 30973_ACEOF 30974 30975 cat >>confdefs.h <<_ACEOF 30976#define $ac_tr_lib 1 30977_ACEOF 30978 30979 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30980echo "${ECHO_T}yes, in $ac_res" >&6; } 30981 ;; 30982esac 30983 30984 30985if test -n "$LIB_freeaddrinfo"; then 30986 LIBS="$LIB_freeaddrinfo $LIBS" 30987fi 30988 30989if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 30990 case " $LIBOBJS " in 30991 *" freeaddrinfo.$ac_objext "* ) ;; 30992 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 30993 ;; 30994esac 30995 30996fi 30997 30998 30999 31000 31001 31002 31003{ echo "$as_me:$LINENO: checking for gai_strerror" >&5 31004echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; } 31005if test "${ac_cv_funclib_gai_strerror+set}" = set; then 31006 echo $ECHO_N "(cached) $ECHO_C" >&6 31007else 31008 31009if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 31010 ac_save_LIBS="$LIBS" 31011 for ac_lib in "" ; do 31012 case "$ac_lib" in 31013 "") ;; 31014 yes) ac_lib="" ;; 31015 no) continue ;; 31016 -l*) ;; 31017 *) ac_lib="-l$ac_lib" ;; 31018 esac 31019 LIBS=" $ac_lib $ac_save_LIBS" 31020 cat >conftest.$ac_ext <<_ACEOF 31021/* confdefs.h. */ 31022_ACEOF 31023cat confdefs.h >>conftest.$ac_ext 31024cat >>conftest.$ac_ext <<_ACEOF 31025/* end confdefs.h. */ 31026#ifdef HAVE_NETDB_H 31027#include <netdb.h> 31028#endif 31029int 31030main () 31031{ 31032gai_strerror(0) 31033 ; 31034 return 0; 31035} 31036_ACEOF 31037rm -f conftest.$ac_objext conftest$ac_exeext 31038if { (ac_try="$ac_link" 31039case "(($ac_try" in 31040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31041 *) ac_try_echo=$ac_try;; 31042esac 31043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31044 (eval "$ac_link") 2>conftest.er1 31045 ac_status=$? 31046 grep -v '^ *+' conftest.er1 >conftest.err 31047 rm -f conftest.er1 31048 cat conftest.err >&5 31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31050 (exit $ac_status); } && { 31051 test -z "$ac_c_werror_flag" || 31052 test ! -s conftest.err 31053 } && test -s conftest$ac_exeext && 31054 $as_test_x conftest$ac_exeext; then 31055 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 31056else 31057 echo "$as_me: failed program was:" >&5 31058sed 's/^/| /' conftest.$ac_ext >&5 31059 31060 31061fi 31062 31063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31064 conftest$ac_exeext conftest.$ac_ext 31065 done 31066 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 31067 LIBS="$ac_save_LIBS" 31068fi 31069 31070fi 31071 31072 31073eval "ac_res=\$ac_cv_funclib_gai_strerror" 31074 31075if false; then 31076 31077for ac_func in gai_strerror 31078do 31079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31080{ echo "$as_me:$LINENO: checking for $ac_func" >&5 31081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 31082if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 31083 echo $ECHO_N "(cached) $ECHO_C" >&6 31084else 31085 cat >conftest.$ac_ext <<_ACEOF 31086/* confdefs.h. */ 31087_ACEOF 31088cat confdefs.h >>conftest.$ac_ext 31089cat >>conftest.$ac_ext <<_ACEOF 31090/* end confdefs.h. */ 31091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 31092 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31093#define $ac_func innocuous_$ac_func 31094 31095/* System header to define __stub macros and hopefully few prototypes, 31096 which can conflict with char $ac_func (); below. 31097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31098 <limits.h> exists even on freestanding compilers. */ 31099 31100#ifdef __STDC__ 31101# include <limits.h> 31102#else 31103# include <assert.h> 31104#endif 31105 31106#undef $ac_func 31107 31108/* Override any GCC internal prototype to avoid an error. 31109 Use char because int might match the return type of a GCC 31110 builtin and then its argument prototype would still apply. */ 31111#ifdef __cplusplus 31112extern "C" 31113#endif 31114char $ac_func (); 31115/* The GNU C library defines this for functions which it implements 31116 to always fail with ENOSYS. Some functions are actually named 31117 something starting with __ and the normal name is an alias. */ 31118#if defined __stub_$ac_func || defined __stub___$ac_func 31119choke me 31120#endif 31121 31122int 31123main () 31124{ 31125return $ac_func (); 31126 ; 31127 return 0; 31128} 31129_ACEOF 31130rm -f conftest.$ac_objext conftest$ac_exeext 31131if { (ac_try="$ac_link" 31132case "(($ac_try" in 31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31134 *) ac_try_echo=$ac_try;; 31135esac 31136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31137 (eval "$ac_link") 2>conftest.er1 31138 ac_status=$? 31139 grep -v '^ *+' conftest.er1 >conftest.err 31140 rm -f conftest.er1 31141 cat conftest.err >&5 31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31143 (exit $ac_status); } && { 31144 test -z "$ac_c_werror_flag" || 31145 test ! -s conftest.err 31146 } && test -s conftest$ac_exeext && 31147 $as_test_x conftest$ac_exeext; then 31148 eval "$as_ac_var=yes" 31149else 31150 echo "$as_me: failed program was:" >&5 31151sed 's/^/| /' conftest.$ac_ext >&5 31152 31153 eval "$as_ac_var=no" 31154fi 31155 31156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31157 conftest$ac_exeext conftest.$ac_ext 31158fi 31159ac_res=`eval echo '${'$as_ac_var'}'` 31160 { echo "$as_me:$LINENO: result: $ac_res" >&5 31161echo "${ECHO_T}$ac_res" >&6; } 31162if test `eval echo '${'$as_ac_var'}'` = yes; then 31163 cat >>confdefs.h <<_ACEOF 31164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31165_ACEOF 31166 31167fi 31168done 31169 31170fi 31171# gai_strerror 31172eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31173eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31174eval "LIB_gai_strerror=$ac_res" 31175 31176case "$ac_res" in 31177 yes) 31178 eval "ac_cv_func_gai_strerror=yes" 31179 eval "LIB_gai_strerror=" 31180 cat >>confdefs.h <<_ACEOF 31181#define $ac_tr_func 1 31182_ACEOF 31183 31184 { echo "$as_me:$LINENO: result: yes" >&5 31185echo "${ECHO_T}yes" >&6; } 31186 ;; 31187 no) 31188 eval "ac_cv_func_gai_strerror=no" 31189 eval "LIB_gai_strerror=" 31190 { echo "$as_me:$LINENO: result: no" >&5 31191echo "${ECHO_T}no" >&6; } 31192 ;; 31193 *) 31194 eval "ac_cv_func_gai_strerror=yes" 31195 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 31196 cat >>confdefs.h <<_ACEOF 31197#define $ac_tr_func 1 31198_ACEOF 31199 31200 cat >>confdefs.h <<_ACEOF 31201#define $ac_tr_lib 1 31202_ACEOF 31203 31204 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 31205echo "${ECHO_T}yes, in $ac_res" >&6; } 31206 ;; 31207esac 31208 31209 31210if test -n "$LIB_gai_strerror"; then 31211 LIBS="$LIB_gai_strerror $LIBS" 31212fi 31213 31214if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 31215 case " $LIBOBJS " in 31216 *" gai_strerror.$ac_objext "* ) ;; 31217 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 31218 ;; 31219esac 31220 31221fi 31222 31223 31224{ echo "$as_me:$LINENO: checking for chown" >&5 31225echo $ECHO_N "checking for chown... $ECHO_C" >&6; } 31226if test "${ac_cv_func_chown+set}" = set; then 31227 echo $ECHO_N "(cached) $ECHO_C" >&6 31228else 31229 cat >conftest.$ac_ext <<_ACEOF 31230/* confdefs.h. */ 31231_ACEOF 31232cat confdefs.h >>conftest.$ac_ext 31233cat >>conftest.$ac_ext <<_ACEOF 31234/* end confdefs.h. */ 31235/* Define chown to an innocuous variant, in case <limits.h> declares chown. 31236 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31237#define chown innocuous_chown 31238 31239/* System header to define __stub macros and hopefully few prototypes, 31240 which can conflict with char chown (); below. 31241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31242 <limits.h> exists even on freestanding compilers. */ 31243 31244#ifdef __STDC__ 31245# include <limits.h> 31246#else 31247# include <assert.h> 31248#endif 31249 31250#undef chown 31251 31252/* Override any GCC internal prototype to avoid an error. 31253 Use char because int might match the return type of a GCC 31254 builtin and then its argument prototype would still apply. */ 31255#ifdef __cplusplus 31256extern "C" 31257#endif 31258char chown (); 31259/* The GNU C library defines this for functions which it implements 31260 to always fail with ENOSYS. Some functions are actually named 31261 something starting with __ and the normal name is an alias. */ 31262#if defined __stub_chown || defined __stub___chown 31263choke me 31264#endif 31265 31266int 31267main () 31268{ 31269return chown (); 31270 ; 31271 return 0; 31272} 31273_ACEOF 31274rm -f conftest.$ac_objext conftest$ac_exeext 31275if { (ac_try="$ac_link" 31276case "(($ac_try" in 31277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31278 *) ac_try_echo=$ac_try;; 31279esac 31280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31281 (eval "$ac_link") 2>conftest.er1 31282 ac_status=$? 31283 grep -v '^ *+' conftest.er1 >conftest.err 31284 rm -f conftest.er1 31285 cat conftest.err >&5 31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31287 (exit $ac_status); } && { 31288 test -z "$ac_c_werror_flag" || 31289 test ! -s conftest.err 31290 } && test -s conftest$ac_exeext && 31291 $as_test_x conftest$ac_exeext; then 31292 ac_cv_func_chown=yes 31293else 31294 echo "$as_me: failed program was:" >&5 31295sed 's/^/| /' conftest.$ac_ext >&5 31296 31297 ac_cv_func_chown=no 31298fi 31299 31300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31301 conftest$ac_exeext conftest.$ac_ext 31302fi 31303{ echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5 31304echo "${ECHO_T}$ac_cv_func_chown" >&6; } 31305if test $ac_cv_func_chown = yes; then 31306 31307cat >>confdefs.h <<_ACEOF 31308#define HAVE_CHOWN 1 31309_ACEOF 31310 31311else 31312 case " $LIBOBJS " in 31313 *" chown.$ac_objext "* ) ;; 31314 *) LIBOBJS="$LIBOBJS chown.$ac_objext" 31315 ;; 31316esac 31317 31318fi 31319{ echo "$as_me:$LINENO: checking for copyhostent" >&5 31320echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6; } 31321if test "${ac_cv_func_copyhostent+set}" = set; then 31322 echo $ECHO_N "(cached) $ECHO_C" >&6 31323else 31324 cat >conftest.$ac_ext <<_ACEOF 31325/* confdefs.h. */ 31326_ACEOF 31327cat confdefs.h >>conftest.$ac_ext 31328cat >>conftest.$ac_ext <<_ACEOF 31329/* end confdefs.h. */ 31330/* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent. 31331 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31332#define copyhostent innocuous_copyhostent 31333 31334/* System header to define __stub macros and hopefully few prototypes, 31335 which can conflict with char copyhostent (); below. 31336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31337 <limits.h> exists even on freestanding compilers. */ 31338 31339#ifdef __STDC__ 31340# include <limits.h> 31341#else 31342# include <assert.h> 31343#endif 31344 31345#undef copyhostent 31346 31347/* Override any GCC internal prototype to avoid an error. 31348 Use char because int might match the return type of a GCC 31349 builtin and then its argument prototype would still apply. */ 31350#ifdef __cplusplus 31351extern "C" 31352#endif 31353char copyhostent (); 31354/* The GNU C library defines this for functions which it implements 31355 to always fail with ENOSYS. Some functions are actually named 31356 something starting with __ and the normal name is an alias. */ 31357#if defined __stub_copyhostent || defined __stub___copyhostent 31358choke me 31359#endif 31360 31361int 31362main () 31363{ 31364return copyhostent (); 31365 ; 31366 return 0; 31367} 31368_ACEOF 31369rm -f conftest.$ac_objext conftest$ac_exeext 31370if { (ac_try="$ac_link" 31371case "(($ac_try" in 31372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31373 *) ac_try_echo=$ac_try;; 31374esac 31375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31376 (eval "$ac_link") 2>conftest.er1 31377 ac_status=$? 31378 grep -v '^ *+' conftest.er1 >conftest.err 31379 rm -f conftest.er1 31380 cat conftest.err >&5 31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31382 (exit $ac_status); } && { 31383 test -z "$ac_c_werror_flag" || 31384 test ! -s conftest.err 31385 } && test -s conftest$ac_exeext && 31386 $as_test_x conftest$ac_exeext; then 31387 ac_cv_func_copyhostent=yes 31388else 31389 echo "$as_me: failed program was:" >&5 31390sed 's/^/| /' conftest.$ac_ext >&5 31391 31392 ac_cv_func_copyhostent=no 31393fi 31394 31395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31396 conftest$ac_exeext conftest.$ac_ext 31397fi 31398{ echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5 31399echo "${ECHO_T}$ac_cv_func_copyhostent" >&6; } 31400if test $ac_cv_func_copyhostent = yes; then 31401 31402cat >>confdefs.h <<_ACEOF 31403#define HAVE_COPYHOSTENT 1 31404_ACEOF 31405 31406else 31407 case " $LIBOBJS " in 31408 *" copyhostent.$ac_objext "* ) ;; 31409 *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 31410 ;; 31411esac 31412 31413fi 31414{ echo "$as_me:$LINENO: checking for closefrom" >&5 31415echo $ECHO_N "checking for closefrom... $ECHO_C" >&6; } 31416if test "${ac_cv_func_closefrom+set}" = set; then 31417 echo $ECHO_N "(cached) $ECHO_C" >&6 31418else 31419 cat >conftest.$ac_ext <<_ACEOF 31420/* confdefs.h. */ 31421_ACEOF 31422cat confdefs.h >>conftest.$ac_ext 31423cat >>conftest.$ac_ext <<_ACEOF 31424/* end confdefs.h. */ 31425/* Define closefrom to an innocuous variant, in case <limits.h> declares closefrom. 31426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31427#define closefrom innocuous_closefrom 31428 31429/* System header to define __stub macros and hopefully few prototypes, 31430 which can conflict with char closefrom (); below. 31431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31432 <limits.h> exists even on freestanding compilers. */ 31433 31434#ifdef __STDC__ 31435# include <limits.h> 31436#else 31437# include <assert.h> 31438#endif 31439 31440#undef closefrom 31441 31442/* Override any GCC internal prototype to avoid an error. 31443 Use char because int might match the return type of a GCC 31444 builtin and then its argument prototype would still apply. */ 31445#ifdef __cplusplus 31446extern "C" 31447#endif 31448char closefrom (); 31449/* The GNU C library defines this for functions which it implements 31450 to always fail with ENOSYS. Some functions are actually named 31451 something starting with __ and the normal name is an alias. */ 31452#if defined __stub_closefrom || defined __stub___closefrom 31453choke me 31454#endif 31455 31456int 31457main () 31458{ 31459return closefrom (); 31460 ; 31461 return 0; 31462} 31463_ACEOF 31464rm -f conftest.$ac_objext conftest$ac_exeext 31465if { (ac_try="$ac_link" 31466case "(($ac_try" in 31467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31468 *) ac_try_echo=$ac_try;; 31469esac 31470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31471 (eval "$ac_link") 2>conftest.er1 31472 ac_status=$? 31473 grep -v '^ *+' conftest.er1 >conftest.err 31474 rm -f conftest.er1 31475 cat conftest.err >&5 31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31477 (exit $ac_status); } && { 31478 test -z "$ac_c_werror_flag" || 31479 test ! -s conftest.err 31480 } && test -s conftest$ac_exeext && 31481 $as_test_x conftest$ac_exeext; then 31482 ac_cv_func_closefrom=yes 31483else 31484 echo "$as_me: failed program was:" >&5 31485sed 's/^/| /' conftest.$ac_ext >&5 31486 31487 ac_cv_func_closefrom=no 31488fi 31489 31490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31491 conftest$ac_exeext conftest.$ac_ext 31492fi 31493{ echo "$as_me:$LINENO: result: $ac_cv_func_closefrom" >&5 31494echo "${ECHO_T}$ac_cv_func_closefrom" >&6; } 31495if test $ac_cv_func_closefrom = yes; then 31496 31497cat >>confdefs.h <<_ACEOF 31498#define HAVE_CLOSEFROM 1 31499_ACEOF 31500 31501else 31502 case " $LIBOBJS " in 31503 *" closefrom.$ac_objext "* ) ;; 31504 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 31505 ;; 31506esac 31507 31508fi 31509{ echo "$as_me:$LINENO: checking for daemon" >&5 31510echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } 31511if test "${ac_cv_func_daemon+set}" = set; then 31512 echo $ECHO_N "(cached) $ECHO_C" >&6 31513else 31514 cat >conftest.$ac_ext <<_ACEOF 31515/* confdefs.h. */ 31516_ACEOF 31517cat confdefs.h >>conftest.$ac_ext 31518cat >>conftest.$ac_ext <<_ACEOF 31519/* end confdefs.h. */ 31520/* Define daemon to an innocuous variant, in case <limits.h> declares daemon. 31521 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31522#define daemon innocuous_daemon 31523 31524/* System header to define __stub macros and hopefully few prototypes, 31525 which can conflict with char daemon (); below. 31526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31527 <limits.h> exists even on freestanding compilers. */ 31528 31529#ifdef __STDC__ 31530# include <limits.h> 31531#else 31532# include <assert.h> 31533#endif 31534 31535#undef daemon 31536 31537/* Override any GCC internal prototype to avoid an error. 31538 Use char because int might match the return type of a GCC 31539 builtin and then its argument prototype would still apply. */ 31540#ifdef __cplusplus 31541extern "C" 31542#endif 31543char daemon (); 31544/* The GNU C library defines this for functions which it implements 31545 to always fail with ENOSYS. Some functions are actually named 31546 something starting with __ and the normal name is an alias. */ 31547#if defined __stub_daemon || defined __stub___daemon 31548choke me 31549#endif 31550 31551int 31552main () 31553{ 31554return daemon (); 31555 ; 31556 return 0; 31557} 31558_ACEOF 31559rm -f conftest.$ac_objext conftest$ac_exeext 31560if { (ac_try="$ac_link" 31561case "(($ac_try" in 31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31563 *) ac_try_echo=$ac_try;; 31564esac 31565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31566 (eval "$ac_link") 2>conftest.er1 31567 ac_status=$? 31568 grep -v '^ *+' conftest.er1 >conftest.err 31569 rm -f conftest.er1 31570 cat conftest.err >&5 31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31572 (exit $ac_status); } && { 31573 test -z "$ac_c_werror_flag" || 31574 test ! -s conftest.err 31575 } && test -s conftest$ac_exeext && 31576 $as_test_x conftest$ac_exeext; then 31577 ac_cv_func_daemon=yes 31578else 31579 echo "$as_me: failed program was:" >&5 31580sed 's/^/| /' conftest.$ac_ext >&5 31581 31582 ac_cv_func_daemon=no 31583fi 31584 31585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31586 conftest$ac_exeext conftest.$ac_ext 31587fi 31588{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 31589echo "${ECHO_T}$ac_cv_func_daemon" >&6; } 31590if test $ac_cv_func_daemon = yes; then 31591 31592cat >>confdefs.h <<_ACEOF 31593#define HAVE_DAEMON 1 31594_ACEOF 31595 31596else 31597 case " $LIBOBJS " in 31598 *" daemon.$ac_objext "* ) ;; 31599 *) LIBOBJS="$LIBOBJS daemon.$ac_objext" 31600 ;; 31601esac 31602 31603fi 31604{ echo "$as_me:$LINENO: checking for ecalloc" >&5 31605echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6; } 31606if test "${ac_cv_func_ecalloc+set}" = set; then 31607 echo $ECHO_N "(cached) $ECHO_C" >&6 31608else 31609 cat >conftest.$ac_ext <<_ACEOF 31610/* confdefs.h. */ 31611_ACEOF 31612cat confdefs.h >>conftest.$ac_ext 31613cat >>conftest.$ac_ext <<_ACEOF 31614/* end confdefs.h. */ 31615/* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc. 31616 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31617#define ecalloc innocuous_ecalloc 31618 31619/* System header to define __stub macros and hopefully few prototypes, 31620 which can conflict with char ecalloc (); below. 31621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31622 <limits.h> exists even on freestanding compilers. */ 31623 31624#ifdef __STDC__ 31625# include <limits.h> 31626#else 31627# include <assert.h> 31628#endif 31629 31630#undef ecalloc 31631 31632/* Override any GCC internal prototype to avoid an error. 31633 Use char because int might match the return type of a GCC 31634 builtin and then its argument prototype would still apply. */ 31635#ifdef __cplusplus 31636extern "C" 31637#endif 31638char ecalloc (); 31639/* The GNU C library defines this for functions which it implements 31640 to always fail with ENOSYS. Some functions are actually named 31641 something starting with __ and the normal name is an alias. */ 31642#if defined __stub_ecalloc || defined __stub___ecalloc 31643choke me 31644#endif 31645 31646int 31647main () 31648{ 31649return ecalloc (); 31650 ; 31651 return 0; 31652} 31653_ACEOF 31654rm -f conftest.$ac_objext conftest$ac_exeext 31655if { (ac_try="$ac_link" 31656case "(($ac_try" in 31657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31658 *) ac_try_echo=$ac_try;; 31659esac 31660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31661 (eval "$ac_link") 2>conftest.er1 31662 ac_status=$? 31663 grep -v '^ *+' conftest.er1 >conftest.err 31664 rm -f conftest.er1 31665 cat conftest.err >&5 31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31667 (exit $ac_status); } && { 31668 test -z "$ac_c_werror_flag" || 31669 test ! -s conftest.err 31670 } && test -s conftest$ac_exeext && 31671 $as_test_x conftest$ac_exeext; then 31672 ac_cv_func_ecalloc=yes 31673else 31674 echo "$as_me: failed program was:" >&5 31675sed 's/^/| /' conftest.$ac_ext >&5 31676 31677 ac_cv_func_ecalloc=no 31678fi 31679 31680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31681 conftest$ac_exeext conftest.$ac_ext 31682fi 31683{ echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5 31684echo "${ECHO_T}$ac_cv_func_ecalloc" >&6; } 31685if test $ac_cv_func_ecalloc = yes; then 31686 31687cat >>confdefs.h <<_ACEOF 31688#define HAVE_ECALLOC 1 31689_ACEOF 31690 31691else 31692 case " $LIBOBJS " in 31693 *" ecalloc.$ac_objext "* ) ;; 31694 *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 31695 ;; 31696esac 31697 31698fi 31699{ echo "$as_me:$LINENO: checking for emalloc" >&5 31700echo $ECHO_N "checking for emalloc... $ECHO_C" >&6; } 31701if test "${ac_cv_func_emalloc+set}" = set; then 31702 echo $ECHO_N "(cached) $ECHO_C" >&6 31703else 31704 cat >conftest.$ac_ext <<_ACEOF 31705/* confdefs.h. */ 31706_ACEOF 31707cat confdefs.h >>conftest.$ac_ext 31708cat >>conftest.$ac_ext <<_ACEOF 31709/* end confdefs.h. */ 31710/* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc. 31711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31712#define emalloc innocuous_emalloc 31713 31714/* System header to define __stub macros and hopefully few prototypes, 31715 which can conflict with char emalloc (); below. 31716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31717 <limits.h> exists even on freestanding compilers. */ 31718 31719#ifdef __STDC__ 31720# include <limits.h> 31721#else 31722# include <assert.h> 31723#endif 31724 31725#undef emalloc 31726 31727/* Override any GCC internal prototype to avoid an error. 31728 Use char because int might match the return type of a GCC 31729 builtin and then its argument prototype would still apply. */ 31730#ifdef __cplusplus 31731extern "C" 31732#endif 31733char emalloc (); 31734/* The GNU C library defines this for functions which it implements 31735 to always fail with ENOSYS. Some functions are actually named 31736 something starting with __ and the normal name is an alias. */ 31737#if defined __stub_emalloc || defined __stub___emalloc 31738choke me 31739#endif 31740 31741int 31742main () 31743{ 31744return emalloc (); 31745 ; 31746 return 0; 31747} 31748_ACEOF 31749rm -f conftest.$ac_objext conftest$ac_exeext 31750if { (ac_try="$ac_link" 31751case "(($ac_try" in 31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31753 *) ac_try_echo=$ac_try;; 31754esac 31755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31756 (eval "$ac_link") 2>conftest.er1 31757 ac_status=$? 31758 grep -v '^ *+' conftest.er1 >conftest.err 31759 rm -f conftest.er1 31760 cat conftest.err >&5 31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31762 (exit $ac_status); } && { 31763 test -z "$ac_c_werror_flag" || 31764 test ! -s conftest.err 31765 } && test -s conftest$ac_exeext && 31766 $as_test_x conftest$ac_exeext; then 31767 ac_cv_func_emalloc=yes 31768else 31769 echo "$as_me: failed program was:" >&5 31770sed 's/^/| /' conftest.$ac_ext >&5 31771 31772 ac_cv_func_emalloc=no 31773fi 31774 31775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31776 conftest$ac_exeext conftest.$ac_ext 31777fi 31778{ echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5 31779echo "${ECHO_T}$ac_cv_func_emalloc" >&6; } 31780if test $ac_cv_func_emalloc = yes; then 31781 31782cat >>confdefs.h <<_ACEOF 31783#define HAVE_EMALLOC 1 31784_ACEOF 31785 31786else 31787 case " $LIBOBJS " in 31788 *" emalloc.$ac_objext "* ) ;; 31789 *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" 31790 ;; 31791esac 31792 31793fi 31794{ echo "$as_me:$LINENO: checking for erealloc" >&5 31795echo $ECHO_N "checking for erealloc... $ECHO_C" >&6; } 31796if test "${ac_cv_func_erealloc+set}" = set; then 31797 echo $ECHO_N "(cached) $ECHO_C" >&6 31798else 31799 cat >conftest.$ac_ext <<_ACEOF 31800/* confdefs.h. */ 31801_ACEOF 31802cat confdefs.h >>conftest.$ac_ext 31803cat >>conftest.$ac_ext <<_ACEOF 31804/* end confdefs.h. */ 31805/* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc. 31806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31807#define erealloc innocuous_erealloc 31808 31809/* System header to define __stub macros and hopefully few prototypes, 31810 which can conflict with char erealloc (); below. 31811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31812 <limits.h> exists even on freestanding compilers. */ 31813 31814#ifdef __STDC__ 31815# include <limits.h> 31816#else 31817# include <assert.h> 31818#endif 31819 31820#undef erealloc 31821 31822/* Override any GCC internal prototype to avoid an error. 31823 Use char because int might match the return type of a GCC 31824 builtin and then its argument prototype would still apply. */ 31825#ifdef __cplusplus 31826extern "C" 31827#endif 31828char erealloc (); 31829/* The GNU C library defines this for functions which it implements 31830 to always fail with ENOSYS. Some functions are actually named 31831 something starting with __ and the normal name is an alias. */ 31832#if defined __stub_erealloc || defined __stub___erealloc 31833choke me 31834#endif 31835 31836int 31837main () 31838{ 31839return erealloc (); 31840 ; 31841 return 0; 31842} 31843_ACEOF 31844rm -f conftest.$ac_objext conftest$ac_exeext 31845if { (ac_try="$ac_link" 31846case "(($ac_try" in 31847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31848 *) ac_try_echo=$ac_try;; 31849esac 31850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31851 (eval "$ac_link") 2>conftest.er1 31852 ac_status=$? 31853 grep -v '^ *+' conftest.er1 >conftest.err 31854 rm -f conftest.er1 31855 cat conftest.err >&5 31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31857 (exit $ac_status); } && { 31858 test -z "$ac_c_werror_flag" || 31859 test ! -s conftest.err 31860 } && test -s conftest$ac_exeext && 31861 $as_test_x conftest$ac_exeext; then 31862 ac_cv_func_erealloc=yes 31863else 31864 echo "$as_me: failed program was:" >&5 31865sed 's/^/| /' conftest.$ac_ext >&5 31866 31867 ac_cv_func_erealloc=no 31868fi 31869 31870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31871 conftest$ac_exeext conftest.$ac_ext 31872fi 31873{ echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5 31874echo "${ECHO_T}$ac_cv_func_erealloc" >&6; } 31875if test $ac_cv_func_erealloc = yes; then 31876 31877cat >>confdefs.h <<_ACEOF 31878#define HAVE_EREALLOC 1 31879_ACEOF 31880 31881else 31882 case " $LIBOBJS " in 31883 *" erealloc.$ac_objext "* ) ;; 31884 *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" 31885 ;; 31886esac 31887 31888fi 31889{ echo "$as_me:$LINENO: checking for estrdup" >&5 31890echo $ECHO_N "checking for estrdup... $ECHO_C" >&6; } 31891if test "${ac_cv_func_estrdup+set}" = set; then 31892 echo $ECHO_N "(cached) $ECHO_C" >&6 31893else 31894 cat >conftest.$ac_ext <<_ACEOF 31895/* confdefs.h. */ 31896_ACEOF 31897cat confdefs.h >>conftest.$ac_ext 31898cat >>conftest.$ac_ext <<_ACEOF 31899/* end confdefs.h. */ 31900/* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup. 31901 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31902#define estrdup innocuous_estrdup 31903 31904/* System header to define __stub macros and hopefully few prototypes, 31905 which can conflict with char estrdup (); below. 31906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31907 <limits.h> exists even on freestanding compilers. */ 31908 31909#ifdef __STDC__ 31910# include <limits.h> 31911#else 31912# include <assert.h> 31913#endif 31914 31915#undef estrdup 31916 31917/* Override any GCC internal prototype to avoid an error. 31918 Use char because int might match the return type of a GCC 31919 builtin and then its argument prototype would still apply. */ 31920#ifdef __cplusplus 31921extern "C" 31922#endif 31923char estrdup (); 31924/* The GNU C library defines this for functions which it implements 31925 to always fail with ENOSYS. Some functions are actually named 31926 something starting with __ and the normal name is an alias. */ 31927#if defined __stub_estrdup || defined __stub___estrdup 31928choke me 31929#endif 31930 31931int 31932main () 31933{ 31934return estrdup (); 31935 ; 31936 return 0; 31937} 31938_ACEOF 31939rm -f conftest.$ac_objext conftest$ac_exeext 31940if { (ac_try="$ac_link" 31941case "(($ac_try" in 31942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31943 *) ac_try_echo=$ac_try;; 31944esac 31945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31946 (eval "$ac_link") 2>conftest.er1 31947 ac_status=$? 31948 grep -v '^ *+' conftest.er1 >conftest.err 31949 rm -f conftest.er1 31950 cat conftest.err >&5 31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31952 (exit $ac_status); } && { 31953 test -z "$ac_c_werror_flag" || 31954 test ! -s conftest.err 31955 } && test -s conftest$ac_exeext && 31956 $as_test_x conftest$ac_exeext; then 31957 ac_cv_func_estrdup=yes 31958else 31959 echo "$as_me: failed program was:" >&5 31960sed 's/^/| /' conftest.$ac_ext >&5 31961 31962 ac_cv_func_estrdup=no 31963fi 31964 31965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31966 conftest$ac_exeext conftest.$ac_ext 31967fi 31968{ echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5 31969echo "${ECHO_T}$ac_cv_func_estrdup" >&6; } 31970if test $ac_cv_func_estrdup = yes; then 31971 31972cat >>confdefs.h <<_ACEOF 31973#define HAVE_ESTRDUP 1 31974_ACEOF 31975 31976else 31977 case " $LIBOBJS " in 31978 *" estrdup.$ac_objext "* ) ;; 31979 *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" 31980 ;; 31981esac 31982 31983fi 31984{ echo "$as_me:$LINENO: checking for err" >&5 31985echo $ECHO_N "checking for err... $ECHO_C" >&6; } 31986if test "${ac_cv_func_err+set}" = set; then 31987 echo $ECHO_N "(cached) $ECHO_C" >&6 31988else 31989 cat >conftest.$ac_ext <<_ACEOF 31990/* confdefs.h. */ 31991_ACEOF 31992cat confdefs.h >>conftest.$ac_ext 31993cat >>conftest.$ac_ext <<_ACEOF 31994/* end confdefs.h. */ 31995/* Define err to an innocuous variant, in case <limits.h> declares err. 31996 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31997#define err innocuous_err 31998 31999/* System header to define __stub macros and hopefully few prototypes, 32000 which can conflict with char err (); below. 32001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32002 <limits.h> exists even on freestanding compilers. */ 32003 32004#ifdef __STDC__ 32005# include <limits.h> 32006#else 32007# include <assert.h> 32008#endif 32009 32010#undef err 32011 32012/* Override any GCC internal prototype to avoid an error. 32013 Use char because int might match the return type of a GCC 32014 builtin and then its argument prototype would still apply. */ 32015#ifdef __cplusplus 32016extern "C" 32017#endif 32018char err (); 32019/* The GNU C library defines this for functions which it implements 32020 to always fail with ENOSYS. Some functions are actually named 32021 something starting with __ and the normal name is an alias. */ 32022#if defined __stub_err || defined __stub___err 32023choke me 32024#endif 32025 32026int 32027main () 32028{ 32029return err (); 32030 ; 32031 return 0; 32032} 32033_ACEOF 32034rm -f conftest.$ac_objext conftest$ac_exeext 32035if { (ac_try="$ac_link" 32036case "(($ac_try" in 32037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32038 *) ac_try_echo=$ac_try;; 32039esac 32040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32041 (eval "$ac_link") 2>conftest.er1 32042 ac_status=$? 32043 grep -v '^ *+' conftest.er1 >conftest.err 32044 rm -f conftest.er1 32045 cat conftest.err >&5 32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32047 (exit $ac_status); } && { 32048 test -z "$ac_c_werror_flag" || 32049 test ! -s conftest.err 32050 } && test -s conftest$ac_exeext && 32051 $as_test_x conftest$ac_exeext; then 32052 ac_cv_func_err=yes 32053else 32054 echo "$as_me: failed program was:" >&5 32055sed 's/^/| /' conftest.$ac_ext >&5 32056 32057 ac_cv_func_err=no 32058fi 32059 32060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32061 conftest$ac_exeext conftest.$ac_ext 32062fi 32063{ echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5 32064echo "${ECHO_T}$ac_cv_func_err" >&6; } 32065if test $ac_cv_func_err = yes; then 32066 32067cat >>confdefs.h <<_ACEOF 32068#define HAVE_ERR 1 32069_ACEOF 32070 32071else 32072 case " $LIBOBJS " in 32073 *" err.$ac_objext "* ) ;; 32074 *) LIBOBJS="$LIBOBJS err.$ac_objext" 32075 ;; 32076esac 32077 32078fi 32079{ echo "$as_me:$LINENO: checking for errx" >&5 32080echo $ECHO_N "checking for errx... $ECHO_C" >&6; } 32081if test "${ac_cv_func_errx+set}" = set; then 32082 echo $ECHO_N "(cached) $ECHO_C" >&6 32083else 32084 cat >conftest.$ac_ext <<_ACEOF 32085/* confdefs.h. */ 32086_ACEOF 32087cat confdefs.h >>conftest.$ac_ext 32088cat >>conftest.$ac_ext <<_ACEOF 32089/* end confdefs.h. */ 32090/* Define errx to an innocuous variant, in case <limits.h> declares errx. 32091 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32092#define errx innocuous_errx 32093 32094/* System header to define __stub macros and hopefully few prototypes, 32095 which can conflict with char errx (); below. 32096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32097 <limits.h> exists even on freestanding compilers. */ 32098 32099#ifdef __STDC__ 32100# include <limits.h> 32101#else 32102# include <assert.h> 32103#endif 32104 32105#undef errx 32106 32107/* Override any GCC internal prototype to avoid an error. 32108 Use char because int might match the return type of a GCC 32109 builtin and then its argument prototype would still apply. */ 32110#ifdef __cplusplus 32111extern "C" 32112#endif 32113char errx (); 32114/* The GNU C library defines this for functions which it implements 32115 to always fail with ENOSYS. Some functions are actually named 32116 something starting with __ and the normal name is an alias. */ 32117#if defined __stub_errx || defined __stub___errx 32118choke me 32119#endif 32120 32121int 32122main () 32123{ 32124return errx (); 32125 ; 32126 return 0; 32127} 32128_ACEOF 32129rm -f conftest.$ac_objext conftest$ac_exeext 32130if { (ac_try="$ac_link" 32131case "(($ac_try" in 32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32133 *) ac_try_echo=$ac_try;; 32134esac 32135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32136 (eval "$ac_link") 2>conftest.er1 32137 ac_status=$? 32138 grep -v '^ *+' conftest.er1 >conftest.err 32139 rm -f conftest.er1 32140 cat conftest.err >&5 32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32142 (exit $ac_status); } && { 32143 test -z "$ac_c_werror_flag" || 32144 test ! -s conftest.err 32145 } && test -s conftest$ac_exeext && 32146 $as_test_x conftest$ac_exeext; then 32147 ac_cv_func_errx=yes 32148else 32149 echo "$as_me: failed program was:" >&5 32150sed 's/^/| /' conftest.$ac_ext >&5 32151 32152 ac_cv_func_errx=no 32153fi 32154 32155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32156 conftest$ac_exeext conftest.$ac_ext 32157fi 32158{ echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5 32159echo "${ECHO_T}$ac_cv_func_errx" >&6; } 32160if test $ac_cv_func_errx = yes; then 32161 32162cat >>confdefs.h <<_ACEOF 32163#define HAVE_ERRX 1 32164_ACEOF 32165 32166else 32167 case " $LIBOBJS " in 32168 *" errx.$ac_objext "* ) ;; 32169 *) LIBOBJS="$LIBOBJS errx.$ac_objext" 32170 ;; 32171esac 32172 32173fi 32174{ echo "$as_me:$LINENO: checking for fchown" >&5 32175echo $ECHO_N "checking for fchown... $ECHO_C" >&6; } 32176if test "${ac_cv_func_fchown+set}" = set; then 32177 echo $ECHO_N "(cached) $ECHO_C" >&6 32178else 32179 cat >conftest.$ac_ext <<_ACEOF 32180/* confdefs.h. */ 32181_ACEOF 32182cat confdefs.h >>conftest.$ac_ext 32183cat >>conftest.$ac_ext <<_ACEOF 32184/* end confdefs.h. */ 32185/* Define fchown to an innocuous variant, in case <limits.h> declares fchown. 32186 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32187#define fchown innocuous_fchown 32188 32189/* System header to define __stub macros and hopefully few prototypes, 32190 which can conflict with char fchown (); below. 32191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32192 <limits.h> exists even on freestanding compilers. */ 32193 32194#ifdef __STDC__ 32195# include <limits.h> 32196#else 32197# include <assert.h> 32198#endif 32199 32200#undef fchown 32201 32202/* Override any GCC internal prototype to avoid an error. 32203 Use char because int might match the return type of a GCC 32204 builtin and then its argument prototype would still apply. */ 32205#ifdef __cplusplus 32206extern "C" 32207#endif 32208char fchown (); 32209/* The GNU C library defines this for functions which it implements 32210 to always fail with ENOSYS. Some functions are actually named 32211 something starting with __ and the normal name is an alias. */ 32212#if defined __stub_fchown || defined __stub___fchown 32213choke me 32214#endif 32215 32216int 32217main () 32218{ 32219return fchown (); 32220 ; 32221 return 0; 32222} 32223_ACEOF 32224rm -f conftest.$ac_objext conftest$ac_exeext 32225if { (ac_try="$ac_link" 32226case "(($ac_try" in 32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32228 *) ac_try_echo=$ac_try;; 32229esac 32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32231 (eval "$ac_link") 2>conftest.er1 32232 ac_status=$? 32233 grep -v '^ *+' conftest.er1 >conftest.err 32234 rm -f conftest.er1 32235 cat conftest.err >&5 32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32237 (exit $ac_status); } && { 32238 test -z "$ac_c_werror_flag" || 32239 test ! -s conftest.err 32240 } && test -s conftest$ac_exeext && 32241 $as_test_x conftest$ac_exeext; then 32242 ac_cv_func_fchown=yes 32243else 32244 echo "$as_me: failed program was:" >&5 32245sed 's/^/| /' conftest.$ac_ext >&5 32246 32247 ac_cv_func_fchown=no 32248fi 32249 32250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32251 conftest$ac_exeext conftest.$ac_ext 32252fi 32253{ echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5 32254echo "${ECHO_T}$ac_cv_func_fchown" >&6; } 32255if test $ac_cv_func_fchown = yes; then 32256 32257cat >>confdefs.h <<_ACEOF 32258#define HAVE_FCHOWN 1 32259_ACEOF 32260 32261else 32262 case " $LIBOBJS " in 32263 *" fchown.$ac_objext "* ) ;; 32264 *) LIBOBJS="$LIBOBJS fchown.$ac_objext" 32265 ;; 32266esac 32267 32268fi 32269{ echo "$as_me:$LINENO: checking for flock" >&5 32270echo $ECHO_N "checking for flock... $ECHO_C" >&6; } 32271if test "${ac_cv_func_flock+set}" = set; then 32272 echo $ECHO_N "(cached) $ECHO_C" >&6 32273else 32274 cat >conftest.$ac_ext <<_ACEOF 32275/* confdefs.h. */ 32276_ACEOF 32277cat confdefs.h >>conftest.$ac_ext 32278cat >>conftest.$ac_ext <<_ACEOF 32279/* end confdefs.h. */ 32280/* Define flock to an innocuous variant, in case <limits.h> declares flock. 32281 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32282#define flock innocuous_flock 32283 32284/* System header to define __stub macros and hopefully few prototypes, 32285 which can conflict with char flock (); below. 32286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32287 <limits.h> exists even on freestanding compilers. */ 32288 32289#ifdef __STDC__ 32290# include <limits.h> 32291#else 32292# include <assert.h> 32293#endif 32294 32295#undef flock 32296 32297/* Override any GCC internal prototype to avoid an error. 32298 Use char because int might match the return type of a GCC 32299 builtin and then its argument prototype would still apply. */ 32300#ifdef __cplusplus 32301extern "C" 32302#endif 32303char flock (); 32304/* The GNU C library defines this for functions which it implements 32305 to always fail with ENOSYS. Some functions are actually named 32306 something starting with __ and the normal name is an alias. */ 32307#if defined __stub_flock || defined __stub___flock 32308choke me 32309#endif 32310 32311int 32312main () 32313{ 32314return flock (); 32315 ; 32316 return 0; 32317} 32318_ACEOF 32319rm -f conftest.$ac_objext conftest$ac_exeext 32320if { (ac_try="$ac_link" 32321case "(($ac_try" in 32322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32323 *) ac_try_echo=$ac_try;; 32324esac 32325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32326 (eval "$ac_link") 2>conftest.er1 32327 ac_status=$? 32328 grep -v '^ *+' conftest.er1 >conftest.err 32329 rm -f conftest.er1 32330 cat conftest.err >&5 32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32332 (exit $ac_status); } && { 32333 test -z "$ac_c_werror_flag" || 32334 test ! -s conftest.err 32335 } && test -s conftest$ac_exeext && 32336 $as_test_x conftest$ac_exeext; then 32337 ac_cv_func_flock=yes 32338else 32339 echo "$as_me: failed program was:" >&5 32340sed 's/^/| /' conftest.$ac_ext >&5 32341 32342 ac_cv_func_flock=no 32343fi 32344 32345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32346 conftest$ac_exeext conftest.$ac_ext 32347fi 32348{ echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5 32349echo "${ECHO_T}$ac_cv_func_flock" >&6; } 32350if test $ac_cv_func_flock = yes; then 32351 32352cat >>confdefs.h <<_ACEOF 32353#define HAVE_FLOCK 1 32354_ACEOF 32355 32356else 32357 case " $LIBOBJS " in 32358 *" flock.$ac_objext "* ) ;; 32359 *) LIBOBJS="$LIBOBJS flock.$ac_objext" 32360 ;; 32361esac 32362 32363fi 32364{ echo "$as_me:$LINENO: checking for fnmatch" >&5 32365echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6; } 32366if test "${ac_cv_func_fnmatch+set}" = set; then 32367 echo $ECHO_N "(cached) $ECHO_C" >&6 32368else 32369 cat >conftest.$ac_ext <<_ACEOF 32370/* confdefs.h. */ 32371_ACEOF 32372cat confdefs.h >>conftest.$ac_ext 32373cat >>conftest.$ac_ext <<_ACEOF 32374/* end confdefs.h. */ 32375/* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch. 32376 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32377#define fnmatch innocuous_fnmatch 32378 32379/* System header to define __stub macros and hopefully few prototypes, 32380 which can conflict with char fnmatch (); below. 32381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32382 <limits.h> exists even on freestanding compilers. */ 32383 32384#ifdef __STDC__ 32385# include <limits.h> 32386#else 32387# include <assert.h> 32388#endif 32389 32390#undef fnmatch 32391 32392/* Override any GCC internal prototype to avoid an error. 32393 Use char because int might match the return type of a GCC 32394 builtin and then its argument prototype would still apply. */ 32395#ifdef __cplusplus 32396extern "C" 32397#endif 32398char fnmatch (); 32399/* The GNU C library defines this for functions which it implements 32400 to always fail with ENOSYS. Some functions are actually named 32401 something starting with __ and the normal name is an alias. */ 32402#if defined __stub_fnmatch || defined __stub___fnmatch 32403choke me 32404#endif 32405 32406int 32407main () 32408{ 32409return fnmatch (); 32410 ; 32411 return 0; 32412} 32413_ACEOF 32414rm -f conftest.$ac_objext conftest$ac_exeext 32415if { (ac_try="$ac_link" 32416case "(($ac_try" in 32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32418 *) ac_try_echo=$ac_try;; 32419esac 32420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32421 (eval "$ac_link") 2>conftest.er1 32422 ac_status=$? 32423 grep -v '^ *+' conftest.er1 >conftest.err 32424 rm -f conftest.er1 32425 cat conftest.err >&5 32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32427 (exit $ac_status); } && { 32428 test -z "$ac_c_werror_flag" || 32429 test ! -s conftest.err 32430 } && test -s conftest$ac_exeext && 32431 $as_test_x conftest$ac_exeext; then 32432 ac_cv_func_fnmatch=yes 32433else 32434 echo "$as_me: failed program was:" >&5 32435sed 's/^/| /' conftest.$ac_ext >&5 32436 32437 ac_cv_func_fnmatch=no 32438fi 32439 32440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32441 conftest$ac_exeext conftest.$ac_ext 32442fi 32443{ echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5 32444echo "${ECHO_T}$ac_cv_func_fnmatch" >&6; } 32445if test $ac_cv_func_fnmatch = yes; then 32446 32447cat >>confdefs.h <<_ACEOF 32448#define HAVE_FNMATCH 1 32449_ACEOF 32450 32451else 32452 case " $LIBOBJS " in 32453 *" fnmatch.$ac_objext "* ) ;; 32454 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 32455 ;; 32456esac 32457 32458fi 32459{ echo "$as_me:$LINENO: checking for freehostent" >&5 32460echo $ECHO_N "checking for freehostent... $ECHO_C" >&6; } 32461if test "${ac_cv_func_freehostent+set}" = set; then 32462 echo $ECHO_N "(cached) $ECHO_C" >&6 32463else 32464 cat >conftest.$ac_ext <<_ACEOF 32465/* confdefs.h. */ 32466_ACEOF 32467cat confdefs.h >>conftest.$ac_ext 32468cat >>conftest.$ac_ext <<_ACEOF 32469/* end confdefs.h. */ 32470/* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent. 32471 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32472#define freehostent innocuous_freehostent 32473 32474/* System header to define __stub macros and hopefully few prototypes, 32475 which can conflict with char freehostent (); below. 32476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32477 <limits.h> exists even on freestanding compilers. */ 32478 32479#ifdef __STDC__ 32480# include <limits.h> 32481#else 32482# include <assert.h> 32483#endif 32484 32485#undef freehostent 32486 32487/* Override any GCC internal prototype to avoid an error. 32488 Use char because int might match the return type of a GCC 32489 builtin and then its argument prototype would still apply. */ 32490#ifdef __cplusplus 32491extern "C" 32492#endif 32493char freehostent (); 32494/* The GNU C library defines this for functions which it implements 32495 to always fail with ENOSYS. Some functions are actually named 32496 something starting with __ and the normal name is an alias. */ 32497#if defined __stub_freehostent || defined __stub___freehostent 32498choke me 32499#endif 32500 32501int 32502main () 32503{ 32504return freehostent (); 32505 ; 32506 return 0; 32507} 32508_ACEOF 32509rm -f conftest.$ac_objext conftest$ac_exeext 32510if { (ac_try="$ac_link" 32511case "(($ac_try" in 32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32513 *) ac_try_echo=$ac_try;; 32514esac 32515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32516 (eval "$ac_link") 2>conftest.er1 32517 ac_status=$? 32518 grep -v '^ *+' conftest.er1 >conftest.err 32519 rm -f conftest.er1 32520 cat conftest.err >&5 32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32522 (exit $ac_status); } && { 32523 test -z "$ac_c_werror_flag" || 32524 test ! -s conftest.err 32525 } && test -s conftest$ac_exeext && 32526 $as_test_x conftest$ac_exeext; then 32527 ac_cv_func_freehostent=yes 32528else 32529 echo "$as_me: failed program was:" >&5 32530sed 's/^/| /' conftest.$ac_ext >&5 32531 32532 ac_cv_func_freehostent=no 32533fi 32534 32535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32536 conftest$ac_exeext conftest.$ac_ext 32537fi 32538{ echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5 32539echo "${ECHO_T}$ac_cv_func_freehostent" >&6; } 32540if test $ac_cv_func_freehostent = yes; then 32541 32542cat >>confdefs.h <<_ACEOF 32543#define HAVE_FREEHOSTENT 1 32544_ACEOF 32545 32546else 32547 case " $LIBOBJS " in 32548 *" freehostent.$ac_objext "* ) ;; 32549 *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" 32550 ;; 32551esac 32552 32553fi 32554{ echo "$as_me:$LINENO: checking for getcwd" >&5 32555echo $ECHO_N "checking for getcwd... $ECHO_C" >&6; } 32556if test "${ac_cv_func_getcwd+set}" = set; then 32557 echo $ECHO_N "(cached) $ECHO_C" >&6 32558else 32559 cat >conftest.$ac_ext <<_ACEOF 32560/* confdefs.h. */ 32561_ACEOF 32562cat confdefs.h >>conftest.$ac_ext 32563cat >>conftest.$ac_ext <<_ACEOF 32564/* end confdefs.h. */ 32565/* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd. 32566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32567#define getcwd innocuous_getcwd 32568 32569/* System header to define __stub macros and hopefully few prototypes, 32570 which can conflict with char getcwd (); below. 32571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32572 <limits.h> exists even on freestanding compilers. */ 32573 32574#ifdef __STDC__ 32575# include <limits.h> 32576#else 32577# include <assert.h> 32578#endif 32579 32580#undef getcwd 32581 32582/* Override any GCC internal prototype to avoid an error. 32583 Use char because int might match the return type of a GCC 32584 builtin and then its argument prototype would still apply. */ 32585#ifdef __cplusplus 32586extern "C" 32587#endif 32588char getcwd (); 32589/* The GNU C library defines this for functions which it implements 32590 to always fail with ENOSYS. Some functions are actually named 32591 something starting with __ and the normal name is an alias. */ 32592#if defined __stub_getcwd || defined __stub___getcwd 32593choke me 32594#endif 32595 32596int 32597main () 32598{ 32599return getcwd (); 32600 ; 32601 return 0; 32602} 32603_ACEOF 32604rm -f conftest.$ac_objext conftest$ac_exeext 32605if { (ac_try="$ac_link" 32606case "(($ac_try" in 32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32608 *) ac_try_echo=$ac_try;; 32609esac 32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32611 (eval "$ac_link") 2>conftest.er1 32612 ac_status=$? 32613 grep -v '^ *+' conftest.er1 >conftest.err 32614 rm -f conftest.er1 32615 cat conftest.err >&5 32616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32617 (exit $ac_status); } && { 32618 test -z "$ac_c_werror_flag" || 32619 test ! -s conftest.err 32620 } && test -s conftest$ac_exeext && 32621 $as_test_x conftest$ac_exeext; then 32622 ac_cv_func_getcwd=yes 32623else 32624 echo "$as_me: failed program was:" >&5 32625sed 's/^/| /' conftest.$ac_ext >&5 32626 32627 ac_cv_func_getcwd=no 32628fi 32629 32630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32631 conftest$ac_exeext conftest.$ac_ext 32632fi 32633{ echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5 32634echo "${ECHO_T}$ac_cv_func_getcwd" >&6; } 32635if test $ac_cv_func_getcwd = yes; then 32636 32637cat >>confdefs.h <<_ACEOF 32638#define HAVE_GETCWD 1 32639_ACEOF 32640 32641else 32642 case " $LIBOBJS " in 32643 *" getcwd.$ac_objext "* ) ;; 32644 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 32645 ;; 32646esac 32647 32648fi 32649{ echo "$as_me:$LINENO: checking for getdtablesize" >&5 32650echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6; } 32651if test "${ac_cv_func_getdtablesize+set}" = set; then 32652 echo $ECHO_N "(cached) $ECHO_C" >&6 32653else 32654 cat >conftest.$ac_ext <<_ACEOF 32655/* confdefs.h. */ 32656_ACEOF 32657cat confdefs.h >>conftest.$ac_ext 32658cat >>conftest.$ac_ext <<_ACEOF 32659/* end confdefs.h. */ 32660/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize. 32661 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32662#define getdtablesize innocuous_getdtablesize 32663 32664/* System header to define __stub macros and hopefully few prototypes, 32665 which can conflict with char getdtablesize (); below. 32666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32667 <limits.h> exists even on freestanding compilers. */ 32668 32669#ifdef __STDC__ 32670# include <limits.h> 32671#else 32672# include <assert.h> 32673#endif 32674 32675#undef getdtablesize 32676 32677/* Override any GCC internal prototype to avoid an error. 32678 Use char because int might match the return type of a GCC 32679 builtin and then its argument prototype would still apply. */ 32680#ifdef __cplusplus 32681extern "C" 32682#endif 32683char getdtablesize (); 32684/* The GNU C library defines this for functions which it implements 32685 to always fail with ENOSYS. Some functions are actually named 32686 something starting with __ and the normal name is an alias. */ 32687#if defined __stub_getdtablesize || defined __stub___getdtablesize 32688choke me 32689#endif 32690 32691int 32692main () 32693{ 32694return getdtablesize (); 32695 ; 32696 return 0; 32697} 32698_ACEOF 32699rm -f conftest.$ac_objext conftest$ac_exeext 32700if { (ac_try="$ac_link" 32701case "(($ac_try" in 32702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32703 *) ac_try_echo=$ac_try;; 32704esac 32705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32706 (eval "$ac_link") 2>conftest.er1 32707 ac_status=$? 32708 grep -v '^ *+' conftest.er1 >conftest.err 32709 rm -f conftest.er1 32710 cat conftest.err >&5 32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32712 (exit $ac_status); } && { 32713 test -z "$ac_c_werror_flag" || 32714 test ! -s conftest.err 32715 } && test -s conftest$ac_exeext && 32716 $as_test_x conftest$ac_exeext; then 32717 ac_cv_func_getdtablesize=yes 32718else 32719 echo "$as_me: failed program was:" >&5 32720sed 's/^/| /' conftest.$ac_ext >&5 32721 32722 ac_cv_func_getdtablesize=no 32723fi 32724 32725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32726 conftest$ac_exeext conftest.$ac_ext 32727fi 32728{ echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5 32729echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6; } 32730if test $ac_cv_func_getdtablesize = yes; then 32731 32732cat >>confdefs.h <<_ACEOF 32733#define HAVE_GETDTABLESIZE 1 32734_ACEOF 32735 32736else 32737 case " $LIBOBJS " in 32738 *" getdtablesize.$ac_objext "* ) ;; 32739 *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 32740 ;; 32741esac 32742 32743fi 32744{ echo "$as_me:$LINENO: checking for getegid" >&5 32745echo $ECHO_N "checking for getegid... $ECHO_C" >&6; } 32746if test "${ac_cv_func_getegid+set}" = set; then 32747 echo $ECHO_N "(cached) $ECHO_C" >&6 32748else 32749 cat >conftest.$ac_ext <<_ACEOF 32750/* confdefs.h. */ 32751_ACEOF 32752cat confdefs.h >>conftest.$ac_ext 32753cat >>conftest.$ac_ext <<_ACEOF 32754/* end confdefs.h. */ 32755/* Define getegid to an innocuous variant, in case <limits.h> declares getegid. 32756 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32757#define getegid innocuous_getegid 32758 32759/* System header to define __stub macros and hopefully few prototypes, 32760 which can conflict with char getegid (); below. 32761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32762 <limits.h> exists even on freestanding compilers. */ 32763 32764#ifdef __STDC__ 32765# include <limits.h> 32766#else 32767# include <assert.h> 32768#endif 32769 32770#undef getegid 32771 32772/* Override any GCC internal prototype to avoid an error. 32773 Use char because int might match the return type of a GCC 32774 builtin and then its argument prototype would still apply. */ 32775#ifdef __cplusplus 32776extern "C" 32777#endif 32778char getegid (); 32779/* The GNU C library defines this for functions which it implements 32780 to always fail with ENOSYS. Some functions are actually named 32781 something starting with __ and the normal name is an alias. */ 32782#if defined __stub_getegid || defined __stub___getegid 32783choke me 32784#endif 32785 32786int 32787main () 32788{ 32789return getegid (); 32790 ; 32791 return 0; 32792} 32793_ACEOF 32794rm -f conftest.$ac_objext conftest$ac_exeext 32795if { (ac_try="$ac_link" 32796case "(($ac_try" in 32797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32798 *) ac_try_echo=$ac_try;; 32799esac 32800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32801 (eval "$ac_link") 2>conftest.er1 32802 ac_status=$? 32803 grep -v '^ *+' conftest.er1 >conftest.err 32804 rm -f conftest.er1 32805 cat conftest.err >&5 32806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32807 (exit $ac_status); } && { 32808 test -z "$ac_c_werror_flag" || 32809 test ! -s conftest.err 32810 } && test -s conftest$ac_exeext && 32811 $as_test_x conftest$ac_exeext; then 32812 ac_cv_func_getegid=yes 32813else 32814 echo "$as_me: failed program was:" >&5 32815sed 's/^/| /' conftest.$ac_ext >&5 32816 32817 ac_cv_func_getegid=no 32818fi 32819 32820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32821 conftest$ac_exeext conftest.$ac_ext 32822fi 32823{ echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5 32824echo "${ECHO_T}$ac_cv_func_getegid" >&6; } 32825if test $ac_cv_func_getegid = yes; then 32826 32827cat >>confdefs.h <<_ACEOF 32828#define HAVE_GETEGID 1 32829_ACEOF 32830 32831else 32832 case " $LIBOBJS " in 32833 *" getegid.$ac_objext "* ) ;; 32834 *) LIBOBJS="$LIBOBJS getegid.$ac_objext" 32835 ;; 32836esac 32837 32838fi 32839{ echo "$as_me:$LINENO: checking for geteuid" >&5 32840echo $ECHO_N "checking for geteuid... $ECHO_C" >&6; } 32841if test "${ac_cv_func_geteuid+set}" = set; then 32842 echo $ECHO_N "(cached) $ECHO_C" >&6 32843else 32844 cat >conftest.$ac_ext <<_ACEOF 32845/* confdefs.h. */ 32846_ACEOF 32847cat confdefs.h >>conftest.$ac_ext 32848cat >>conftest.$ac_ext <<_ACEOF 32849/* end confdefs.h. */ 32850/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid. 32851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32852#define geteuid innocuous_geteuid 32853 32854/* System header to define __stub macros and hopefully few prototypes, 32855 which can conflict with char geteuid (); below. 32856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32857 <limits.h> exists even on freestanding compilers. */ 32858 32859#ifdef __STDC__ 32860# include <limits.h> 32861#else 32862# include <assert.h> 32863#endif 32864 32865#undef geteuid 32866 32867/* Override any GCC internal prototype to avoid an error. 32868 Use char because int might match the return type of a GCC 32869 builtin and then its argument prototype would still apply. */ 32870#ifdef __cplusplus 32871extern "C" 32872#endif 32873char geteuid (); 32874/* The GNU C library defines this for functions which it implements 32875 to always fail with ENOSYS. Some functions are actually named 32876 something starting with __ and the normal name is an alias. */ 32877#if defined __stub_geteuid || defined __stub___geteuid 32878choke me 32879#endif 32880 32881int 32882main () 32883{ 32884return geteuid (); 32885 ; 32886 return 0; 32887} 32888_ACEOF 32889rm -f conftest.$ac_objext conftest$ac_exeext 32890if { (ac_try="$ac_link" 32891case "(($ac_try" in 32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32893 *) ac_try_echo=$ac_try;; 32894esac 32895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32896 (eval "$ac_link") 2>conftest.er1 32897 ac_status=$? 32898 grep -v '^ *+' conftest.er1 >conftest.err 32899 rm -f conftest.er1 32900 cat conftest.err >&5 32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32902 (exit $ac_status); } && { 32903 test -z "$ac_c_werror_flag" || 32904 test ! -s conftest.err 32905 } && test -s conftest$ac_exeext && 32906 $as_test_x conftest$ac_exeext; then 32907 ac_cv_func_geteuid=yes 32908else 32909 echo "$as_me: failed program was:" >&5 32910sed 's/^/| /' conftest.$ac_ext >&5 32911 32912 ac_cv_func_geteuid=no 32913fi 32914 32915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32916 conftest$ac_exeext conftest.$ac_ext 32917fi 32918{ echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5 32919echo "${ECHO_T}$ac_cv_func_geteuid" >&6; } 32920if test $ac_cv_func_geteuid = yes; then 32921 32922cat >>confdefs.h <<_ACEOF 32923#define HAVE_GETEUID 1 32924_ACEOF 32925 32926else 32927 case " $LIBOBJS " in 32928 *" geteuid.$ac_objext "* ) ;; 32929 *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" 32930 ;; 32931esac 32932 32933fi 32934{ echo "$as_me:$LINENO: checking for getgid" >&5 32935echo $ECHO_N "checking for getgid... $ECHO_C" >&6; } 32936if test "${ac_cv_func_getgid+set}" = set; then 32937 echo $ECHO_N "(cached) $ECHO_C" >&6 32938else 32939 cat >conftest.$ac_ext <<_ACEOF 32940/* confdefs.h. */ 32941_ACEOF 32942cat confdefs.h >>conftest.$ac_ext 32943cat >>conftest.$ac_ext <<_ACEOF 32944/* end confdefs.h. */ 32945/* Define getgid to an innocuous variant, in case <limits.h> declares getgid. 32946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32947#define getgid innocuous_getgid 32948 32949/* System header to define __stub macros and hopefully few prototypes, 32950 which can conflict with char getgid (); below. 32951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32952 <limits.h> exists even on freestanding compilers. */ 32953 32954#ifdef __STDC__ 32955# include <limits.h> 32956#else 32957# include <assert.h> 32958#endif 32959 32960#undef getgid 32961 32962/* Override any GCC internal prototype to avoid an error. 32963 Use char because int might match the return type of a GCC 32964 builtin and then its argument prototype would still apply. */ 32965#ifdef __cplusplus 32966extern "C" 32967#endif 32968char getgid (); 32969/* The GNU C library defines this for functions which it implements 32970 to always fail with ENOSYS. Some functions are actually named 32971 something starting with __ and the normal name is an alias. */ 32972#if defined __stub_getgid || defined __stub___getgid 32973choke me 32974#endif 32975 32976int 32977main () 32978{ 32979return getgid (); 32980 ; 32981 return 0; 32982} 32983_ACEOF 32984rm -f conftest.$ac_objext conftest$ac_exeext 32985if { (ac_try="$ac_link" 32986case "(($ac_try" in 32987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32988 *) ac_try_echo=$ac_try;; 32989esac 32990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32991 (eval "$ac_link") 2>conftest.er1 32992 ac_status=$? 32993 grep -v '^ *+' conftest.er1 >conftest.err 32994 rm -f conftest.er1 32995 cat conftest.err >&5 32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32997 (exit $ac_status); } && { 32998 test -z "$ac_c_werror_flag" || 32999 test ! -s conftest.err 33000 } && test -s conftest$ac_exeext && 33001 $as_test_x conftest$ac_exeext; then 33002 ac_cv_func_getgid=yes 33003else 33004 echo "$as_me: failed program was:" >&5 33005sed 's/^/| /' conftest.$ac_ext >&5 33006 33007 ac_cv_func_getgid=no 33008fi 33009 33010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33011 conftest$ac_exeext conftest.$ac_ext 33012fi 33013{ echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5 33014echo "${ECHO_T}$ac_cv_func_getgid" >&6; } 33015if test $ac_cv_func_getgid = yes; then 33016 33017cat >>confdefs.h <<_ACEOF 33018#define HAVE_GETGID 1 33019_ACEOF 33020 33021else 33022 case " $LIBOBJS " in 33023 *" getgid.$ac_objext "* ) ;; 33024 *) LIBOBJS="$LIBOBJS getgid.$ac_objext" 33025 ;; 33026esac 33027 33028fi 33029{ echo "$as_me:$LINENO: checking for gethostname" >&5 33030echo $ECHO_N "checking for gethostname... $ECHO_C" >&6; } 33031if test "${ac_cv_func_gethostname+set}" = set; then 33032 echo $ECHO_N "(cached) $ECHO_C" >&6 33033else 33034 cat >conftest.$ac_ext <<_ACEOF 33035/* confdefs.h. */ 33036_ACEOF 33037cat confdefs.h >>conftest.$ac_ext 33038cat >>conftest.$ac_ext <<_ACEOF 33039/* end confdefs.h. */ 33040/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname. 33041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33042#define gethostname innocuous_gethostname 33043 33044/* System header to define __stub macros and hopefully few prototypes, 33045 which can conflict with char gethostname (); below. 33046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33047 <limits.h> exists even on freestanding compilers. */ 33048 33049#ifdef __STDC__ 33050# include <limits.h> 33051#else 33052# include <assert.h> 33053#endif 33054 33055#undef gethostname 33056 33057/* Override any GCC internal prototype to avoid an error. 33058 Use char because int might match the return type of a GCC 33059 builtin and then its argument prototype would still apply. */ 33060#ifdef __cplusplus 33061extern "C" 33062#endif 33063char gethostname (); 33064/* The GNU C library defines this for functions which it implements 33065 to always fail with ENOSYS. Some functions are actually named 33066 something starting with __ and the normal name is an alias. */ 33067#if defined __stub_gethostname || defined __stub___gethostname 33068choke me 33069#endif 33070 33071int 33072main () 33073{ 33074return gethostname (); 33075 ; 33076 return 0; 33077} 33078_ACEOF 33079rm -f conftest.$ac_objext conftest$ac_exeext 33080if { (ac_try="$ac_link" 33081case "(($ac_try" in 33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33083 *) ac_try_echo=$ac_try;; 33084esac 33085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33086 (eval "$ac_link") 2>conftest.er1 33087 ac_status=$? 33088 grep -v '^ *+' conftest.er1 >conftest.err 33089 rm -f conftest.er1 33090 cat conftest.err >&5 33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33092 (exit $ac_status); } && { 33093 test -z "$ac_c_werror_flag" || 33094 test ! -s conftest.err 33095 } && test -s conftest$ac_exeext && 33096 $as_test_x conftest$ac_exeext; then 33097 ac_cv_func_gethostname=yes 33098else 33099 echo "$as_me: failed program was:" >&5 33100sed 's/^/| /' conftest.$ac_ext >&5 33101 33102 ac_cv_func_gethostname=no 33103fi 33104 33105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33106 conftest$ac_exeext conftest.$ac_ext 33107fi 33108{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5 33109echo "${ECHO_T}$ac_cv_func_gethostname" >&6; } 33110if test $ac_cv_func_gethostname = yes; then 33111 33112cat >>confdefs.h <<_ACEOF 33113#define HAVE_GETHOSTNAME 1 33114_ACEOF 33115 33116else 33117 case " $LIBOBJS " in 33118 *" gethostname.$ac_objext "* ) ;; 33119 *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" 33120 ;; 33121esac 33122 33123fi 33124{ echo "$as_me:$LINENO: checking for getifaddrs" >&5 33125echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6; } 33126if test "${ac_cv_func_getifaddrs+set}" = set; then 33127 echo $ECHO_N "(cached) $ECHO_C" >&6 33128else 33129 cat >conftest.$ac_ext <<_ACEOF 33130/* confdefs.h. */ 33131_ACEOF 33132cat confdefs.h >>conftest.$ac_ext 33133cat >>conftest.$ac_ext <<_ACEOF 33134/* end confdefs.h. */ 33135/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs. 33136 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33137#define getifaddrs innocuous_getifaddrs 33138 33139/* System header to define __stub macros and hopefully few prototypes, 33140 which can conflict with char getifaddrs (); below. 33141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33142 <limits.h> exists even on freestanding compilers. */ 33143 33144#ifdef __STDC__ 33145# include <limits.h> 33146#else 33147# include <assert.h> 33148#endif 33149 33150#undef getifaddrs 33151 33152/* Override any GCC internal prototype to avoid an error. 33153 Use char because int might match the return type of a GCC 33154 builtin and then its argument prototype would still apply. */ 33155#ifdef __cplusplus 33156extern "C" 33157#endif 33158char getifaddrs (); 33159/* The GNU C library defines this for functions which it implements 33160 to always fail with ENOSYS. Some functions are actually named 33161 something starting with __ and the normal name is an alias. */ 33162#if defined __stub_getifaddrs || defined __stub___getifaddrs 33163choke me 33164#endif 33165 33166int 33167main () 33168{ 33169return getifaddrs (); 33170 ; 33171 return 0; 33172} 33173_ACEOF 33174rm -f conftest.$ac_objext conftest$ac_exeext 33175if { (ac_try="$ac_link" 33176case "(($ac_try" in 33177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33178 *) ac_try_echo=$ac_try;; 33179esac 33180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33181 (eval "$ac_link") 2>conftest.er1 33182 ac_status=$? 33183 grep -v '^ *+' conftest.er1 >conftest.err 33184 rm -f conftest.er1 33185 cat conftest.err >&5 33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33187 (exit $ac_status); } && { 33188 test -z "$ac_c_werror_flag" || 33189 test ! -s conftest.err 33190 } && test -s conftest$ac_exeext && 33191 $as_test_x conftest$ac_exeext; then 33192 ac_cv_func_getifaddrs=yes 33193else 33194 echo "$as_me: failed program was:" >&5 33195sed 's/^/| /' conftest.$ac_ext >&5 33196 33197 ac_cv_func_getifaddrs=no 33198fi 33199 33200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33201 conftest$ac_exeext conftest.$ac_ext 33202fi 33203{ echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 33204echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6; } 33205if test $ac_cv_func_getifaddrs = yes; then 33206 33207cat >>confdefs.h <<_ACEOF 33208#define HAVE_GETIFADDRS 1 33209_ACEOF 33210 33211else 33212 case " $LIBOBJS " in 33213 *" getifaddrs.$ac_objext "* ) ;; 33214 *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 33215 ;; 33216esac 33217 33218fi 33219{ echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5 33220echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6; } 33221if test "${ac_cv_func_getipnodebyaddr+set}" = set; then 33222 echo $ECHO_N "(cached) $ECHO_C" >&6 33223else 33224 cat >conftest.$ac_ext <<_ACEOF 33225/* confdefs.h. */ 33226_ACEOF 33227cat confdefs.h >>conftest.$ac_ext 33228cat >>conftest.$ac_ext <<_ACEOF 33229/* end confdefs.h. */ 33230/* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr. 33231 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33232#define getipnodebyaddr innocuous_getipnodebyaddr 33233 33234/* System header to define __stub macros and hopefully few prototypes, 33235 which can conflict with char getipnodebyaddr (); below. 33236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33237 <limits.h> exists even on freestanding compilers. */ 33238 33239#ifdef __STDC__ 33240# include <limits.h> 33241#else 33242# include <assert.h> 33243#endif 33244 33245#undef getipnodebyaddr 33246 33247/* Override any GCC internal prototype to avoid an error. 33248 Use char because int might match the return type of a GCC 33249 builtin and then its argument prototype would still apply. */ 33250#ifdef __cplusplus 33251extern "C" 33252#endif 33253char getipnodebyaddr (); 33254/* The GNU C library defines this for functions which it implements 33255 to always fail with ENOSYS. Some functions are actually named 33256 something starting with __ and the normal name is an alias. */ 33257#if defined __stub_getipnodebyaddr || defined __stub___getipnodebyaddr 33258choke me 33259#endif 33260 33261int 33262main () 33263{ 33264return getipnodebyaddr (); 33265 ; 33266 return 0; 33267} 33268_ACEOF 33269rm -f conftest.$ac_objext conftest$ac_exeext 33270if { (ac_try="$ac_link" 33271case "(($ac_try" in 33272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33273 *) ac_try_echo=$ac_try;; 33274esac 33275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33276 (eval "$ac_link") 2>conftest.er1 33277 ac_status=$? 33278 grep -v '^ *+' conftest.er1 >conftest.err 33279 rm -f conftest.er1 33280 cat conftest.err >&5 33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33282 (exit $ac_status); } && { 33283 test -z "$ac_c_werror_flag" || 33284 test ! -s conftest.err 33285 } && test -s conftest$ac_exeext && 33286 $as_test_x conftest$ac_exeext; then 33287 ac_cv_func_getipnodebyaddr=yes 33288else 33289 echo "$as_me: failed program was:" >&5 33290sed 's/^/| /' conftest.$ac_ext >&5 33291 33292 ac_cv_func_getipnodebyaddr=no 33293fi 33294 33295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33296 conftest$ac_exeext conftest.$ac_ext 33297fi 33298{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5 33299echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6; } 33300if test $ac_cv_func_getipnodebyaddr = yes; then 33301 33302cat >>confdefs.h <<_ACEOF 33303#define HAVE_GETIPNODEBYADDR 1 33304_ACEOF 33305 33306else 33307 case " $LIBOBJS " in 33308 *" getipnodebyaddr.$ac_objext "* ) ;; 33309 *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 33310 ;; 33311esac 33312 33313fi 33314{ echo "$as_me:$LINENO: checking for getipnodebyname" >&5 33315echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; } 33316if test "${ac_cv_func_getipnodebyname+set}" = set; then 33317 echo $ECHO_N "(cached) $ECHO_C" >&6 33318else 33319 cat >conftest.$ac_ext <<_ACEOF 33320/* confdefs.h. */ 33321_ACEOF 33322cat confdefs.h >>conftest.$ac_ext 33323cat >>conftest.$ac_ext <<_ACEOF 33324/* end confdefs.h. */ 33325/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname. 33326 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33327#define getipnodebyname innocuous_getipnodebyname 33328 33329/* System header to define __stub macros and hopefully few prototypes, 33330 which can conflict with char getipnodebyname (); below. 33331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33332 <limits.h> exists even on freestanding compilers. */ 33333 33334#ifdef __STDC__ 33335# include <limits.h> 33336#else 33337# include <assert.h> 33338#endif 33339 33340#undef getipnodebyname 33341 33342/* Override any GCC internal prototype to avoid an error. 33343 Use char because int might match the return type of a GCC 33344 builtin and then its argument prototype would still apply. */ 33345#ifdef __cplusplus 33346extern "C" 33347#endif 33348char getipnodebyname (); 33349/* The GNU C library defines this for functions which it implements 33350 to always fail with ENOSYS. Some functions are actually named 33351 something starting with __ and the normal name is an alias. */ 33352#if defined __stub_getipnodebyname || defined __stub___getipnodebyname 33353choke me 33354#endif 33355 33356int 33357main () 33358{ 33359return getipnodebyname (); 33360 ; 33361 return 0; 33362} 33363_ACEOF 33364rm -f conftest.$ac_objext conftest$ac_exeext 33365if { (ac_try="$ac_link" 33366case "(($ac_try" in 33367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33368 *) ac_try_echo=$ac_try;; 33369esac 33370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33371 (eval "$ac_link") 2>conftest.er1 33372 ac_status=$? 33373 grep -v '^ *+' conftest.er1 >conftest.err 33374 rm -f conftest.er1 33375 cat conftest.err >&5 33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33377 (exit $ac_status); } && { 33378 test -z "$ac_c_werror_flag" || 33379 test ! -s conftest.err 33380 } && test -s conftest$ac_exeext && 33381 $as_test_x conftest$ac_exeext; then 33382 ac_cv_func_getipnodebyname=yes 33383else 33384 echo "$as_me: failed program was:" >&5 33385sed 's/^/| /' conftest.$ac_ext >&5 33386 33387 ac_cv_func_getipnodebyname=no 33388fi 33389 33390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33391 conftest$ac_exeext conftest.$ac_ext 33392fi 33393{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5 33394echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; } 33395if test $ac_cv_func_getipnodebyname = yes; then 33396 33397cat >>confdefs.h <<_ACEOF 33398#define HAVE_GETIPNODEBYNAME 1 33399_ACEOF 33400 33401else 33402 case " $LIBOBJS " in 33403 *" getipnodebyname.$ac_objext "* ) ;; 33404 *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 33405 ;; 33406esac 33407 33408fi 33409{ echo "$as_me:$LINENO: checking for getopt" >&5 33410echo $ECHO_N "checking for getopt... $ECHO_C" >&6; } 33411if test "${ac_cv_func_getopt+set}" = set; then 33412 echo $ECHO_N "(cached) $ECHO_C" >&6 33413else 33414 cat >conftest.$ac_ext <<_ACEOF 33415/* confdefs.h. */ 33416_ACEOF 33417cat confdefs.h >>conftest.$ac_ext 33418cat >>conftest.$ac_ext <<_ACEOF 33419/* end confdefs.h. */ 33420/* Define getopt to an innocuous variant, in case <limits.h> declares getopt. 33421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33422#define getopt innocuous_getopt 33423 33424/* System header to define __stub macros and hopefully few prototypes, 33425 which can conflict with char getopt (); below. 33426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33427 <limits.h> exists even on freestanding compilers. */ 33428 33429#ifdef __STDC__ 33430# include <limits.h> 33431#else 33432# include <assert.h> 33433#endif 33434 33435#undef getopt 33436 33437/* Override any GCC internal prototype to avoid an error. 33438 Use char because int might match the return type of a GCC 33439 builtin and then its argument prototype would still apply. */ 33440#ifdef __cplusplus 33441extern "C" 33442#endif 33443char getopt (); 33444/* The GNU C library defines this for functions which it implements 33445 to always fail with ENOSYS. Some functions are actually named 33446 something starting with __ and the normal name is an alias. */ 33447#if defined __stub_getopt || defined __stub___getopt 33448choke me 33449#endif 33450 33451int 33452main () 33453{ 33454return getopt (); 33455 ; 33456 return 0; 33457} 33458_ACEOF 33459rm -f conftest.$ac_objext conftest$ac_exeext 33460if { (ac_try="$ac_link" 33461case "(($ac_try" in 33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33463 *) ac_try_echo=$ac_try;; 33464esac 33465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33466 (eval "$ac_link") 2>conftest.er1 33467 ac_status=$? 33468 grep -v '^ *+' conftest.er1 >conftest.err 33469 rm -f conftest.er1 33470 cat conftest.err >&5 33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33472 (exit $ac_status); } && { 33473 test -z "$ac_c_werror_flag" || 33474 test ! -s conftest.err 33475 } && test -s conftest$ac_exeext && 33476 $as_test_x conftest$ac_exeext; then 33477 ac_cv_func_getopt=yes 33478else 33479 echo "$as_me: failed program was:" >&5 33480sed 's/^/| /' conftest.$ac_ext >&5 33481 33482 ac_cv_func_getopt=no 33483fi 33484 33485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33486 conftest$ac_exeext conftest.$ac_ext 33487fi 33488{ echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5 33489echo "${ECHO_T}$ac_cv_func_getopt" >&6; } 33490if test $ac_cv_func_getopt = yes; then 33491 33492cat >>confdefs.h <<_ACEOF 33493#define HAVE_GETOPT 1 33494_ACEOF 33495 33496else 33497 case " $LIBOBJS " in 33498 *" getopt.$ac_objext "* ) ;; 33499 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 33500 ;; 33501esac 33502 33503fi 33504{ echo "$as_me:$LINENO: checking for gettimeofday" >&5 33505echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; } 33506if test "${ac_cv_func_gettimeofday+set}" = set; then 33507 echo $ECHO_N "(cached) $ECHO_C" >&6 33508else 33509 cat >conftest.$ac_ext <<_ACEOF 33510/* confdefs.h. */ 33511_ACEOF 33512cat confdefs.h >>conftest.$ac_ext 33513cat >>conftest.$ac_ext <<_ACEOF 33514/* end confdefs.h. */ 33515/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday. 33516 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33517#define gettimeofday innocuous_gettimeofday 33518 33519/* System header to define __stub macros and hopefully few prototypes, 33520 which can conflict with char gettimeofday (); below. 33521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33522 <limits.h> exists even on freestanding compilers. */ 33523 33524#ifdef __STDC__ 33525# include <limits.h> 33526#else 33527# include <assert.h> 33528#endif 33529 33530#undef gettimeofday 33531 33532/* Override any GCC internal prototype to avoid an error. 33533 Use char because int might match the return type of a GCC 33534 builtin and then its argument prototype would still apply. */ 33535#ifdef __cplusplus 33536extern "C" 33537#endif 33538char gettimeofday (); 33539/* The GNU C library defines this for functions which it implements 33540 to always fail with ENOSYS. Some functions are actually named 33541 something starting with __ and the normal name is an alias. */ 33542#if defined __stub_gettimeofday || defined __stub___gettimeofday 33543choke me 33544#endif 33545 33546int 33547main () 33548{ 33549return gettimeofday (); 33550 ; 33551 return 0; 33552} 33553_ACEOF 33554rm -f conftest.$ac_objext conftest$ac_exeext 33555if { (ac_try="$ac_link" 33556case "(($ac_try" in 33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33558 *) ac_try_echo=$ac_try;; 33559esac 33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33561 (eval "$ac_link") 2>conftest.er1 33562 ac_status=$? 33563 grep -v '^ *+' conftest.er1 >conftest.err 33564 rm -f conftest.er1 33565 cat conftest.err >&5 33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33567 (exit $ac_status); } && { 33568 test -z "$ac_c_werror_flag" || 33569 test ! -s conftest.err 33570 } && test -s conftest$ac_exeext && 33571 $as_test_x conftest$ac_exeext; then 33572 ac_cv_func_gettimeofday=yes 33573else 33574 echo "$as_me: failed program was:" >&5 33575sed 's/^/| /' conftest.$ac_ext >&5 33576 33577 ac_cv_func_gettimeofday=no 33578fi 33579 33580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33581 conftest$ac_exeext conftest.$ac_ext 33582fi 33583{ echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 33584echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; } 33585if test $ac_cv_func_gettimeofday = yes; then 33586 33587cat >>confdefs.h <<_ACEOF 33588#define HAVE_GETTIMEOFDAY 1 33589_ACEOF 33590 33591else 33592 case " $LIBOBJS " in 33593 *" gettimeofday.$ac_objext "* ) ;; 33594 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 33595 ;; 33596esac 33597 33598fi 33599{ echo "$as_me:$LINENO: checking for getuid" >&5 33600echo $ECHO_N "checking for getuid... $ECHO_C" >&6; } 33601if test "${ac_cv_func_getuid+set}" = set; then 33602 echo $ECHO_N "(cached) $ECHO_C" >&6 33603else 33604 cat >conftest.$ac_ext <<_ACEOF 33605/* confdefs.h. */ 33606_ACEOF 33607cat confdefs.h >>conftest.$ac_ext 33608cat >>conftest.$ac_ext <<_ACEOF 33609/* end confdefs.h. */ 33610/* Define getuid to an innocuous variant, in case <limits.h> declares getuid. 33611 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33612#define getuid innocuous_getuid 33613 33614/* System header to define __stub macros and hopefully few prototypes, 33615 which can conflict with char getuid (); below. 33616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33617 <limits.h> exists even on freestanding compilers. */ 33618 33619#ifdef __STDC__ 33620# include <limits.h> 33621#else 33622# include <assert.h> 33623#endif 33624 33625#undef getuid 33626 33627/* Override any GCC internal prototype to avoid an error. 33628 Use char because int might match the return type of a GCC 33629 builtin and then its argument prototype would still apply. */ 33630#ifdef __cplusplus 33631extern "C" 33632#endif 33633char getuid (); 33634/* The GNU C library defines this for functions which it implements 33635 to always fail with ENOSYS. Some functions are actually named 33636 something starting with __ and the normal name is an alias. */ 33637#if defined __stub_getuid || defined __stub___getuid 33638choke me 33639#endif 33640 33641int 33642main () 33643{ 33644return getuid (); 33645 ; 33646 return 0; 33647} 33648_ACEOF 33649rm -f conftest.$ac_objext conftest$ac_exeext 33650if { (ac_try="$ac_link" 33651case "(($ac_try" in 33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33653 *) ac_try_echo=$ac_try;; 33654esac 33655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33656 (eval "$ac_link") 2>conftest.er1 33657 ac_status=$? 33658 grep -v '^ *+' conftest.er1 >conftest.err 33659 rm -f conftest.er1 33660 cat conftest.err >&5 33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33662 (exit $ac_status); } && { 33663 test -z "$ac_c_werror_flag" || 33664 test ! -s conftest.err 33665 } && test -s conftest$ac_exeext && 33666 $as_test_x conftest$ac_exeext; then 33667 ac_cv_func_getuid=yes 33668else 33669 echo "$as_me: failed program was:" >&5 33670sed 's/^/| /' conftest.$ac_ext >&5 33671 33672 ac_cv_func_getuid=no 33673fi 33674 33675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33676 conftest$ac_exeext conftest.$ac_ext 33677fi 33678{ echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5 33679echo "${ECHO_T}$ac_cv_func_getuid" >&6; } 33680if test $ac_cv_func_getuid = yes; then 33681 33682cat >>confdefs.h <<_ACEOF 33683#define HAVE_GETUID 1 33684_ACEOF 33685 33686else 33687 case " $LIBOBJS " in 33688 *" getuid.$ac_objext "* ) ;; 33689 *) LIBOBJS="$LIBOBJS getuid.$ac_objext" 33690 ;; 33691esac 33692 33693fi 33694{ echo "$as_me:$LINENO: checking for getusershell" >&5 33695echo $ECHO_N "checking for getusershell... $ECHO_C" >&6; } 33696if test "${ac_cv_func_getusershell+set}" = set; then 33697 echo $ECHO_N "(cached) $ECHO_C" >&6 33698else 33699 cat >conftest.$ac_ext <<_ACEOF 33700/* confdefs.h. */ 33701_ACEOF 33702cat confdefs.h >>conftest.$ac_ext 33703cat >>conftest.$ac_ext <<_ACEOF 33704/* end confdefs.h. */ 33705/* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell. 33706 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33707#define getusershell innocuous_getusershell 33708 33709/* System header to define __stub macros and hopefully few prototypes, 33710 which can conflict with char getusershell (); below. 33711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33712 <limits.h> exists even on freestanding compilers. */ 33713 33714#ifdef __STDC__ 33715# include <limits.h> 33716#else 33717# include <assert.h> 33718#endif 33719 33720#undef getusershell 33721 33722/* Override any GCC internal prototype to avoid an error. 33723 Use char because int might match the return type of a GCC 33724 builtin and then its argument prototype would still apply. */ 33725#ifdef __cplusplus 33726extern "C" 33727#endif 33728char getusershell (); 33729/* The GNU C library defines this for functions which it implements 33730 to always fail with ENOSYS. Some functions are actually named 33731 something starting with __ and the normal name is an alias. */ 33732#if defined __stub_getusershell || defined __stub___getusershell 33733choke me 33734#endif 33735 33736int 33737main () 33738{ 33739return getusershell (); 33740 ; 33741 return 0; 33742} 33743_ACEOF 33744rm -f conftest.$ac_objext conftest$ac_exeext 33745if { (ac_try="$ac_link" 33746case "(($ac_try" in 33747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33748 *) ac_try_echo=$ac_try;; 33749esac 33750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33751 (eval "$ac_link") 2>conftest.er1 33752 ac_status=$? 33753 grep -v '^ *+' conftest.er1 >conftest.err 33754 rm -f conftest.er1 33755 cat conftest.err >&5 33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33757 (exit $ac_status); } && { 33758 test -z "$ac_c_werror_flag" || 33759 test ! -s conftest.err 33760 } && test -s conftest$ac_exeext && 33761 $as_test_x conftest$ac_exeext; then 33762 ac_cv_func_getusershell=yes 33763else 33764 echo "$as_me: failed program was:" >&5 33765sed 's/^/| /' conftest.$ac_ext >&5 33766 33767 ac_cv_func_getusershell=no 33768fi 33769 33770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33771 conftest$ac_exeext conftest.$ac_ext 33772fi 33773{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5 33774echo "${ECHO_T}$ac_cv_func_getusershell" >&6; } 33775if test $ac_cv_func_getusershell = yes; then 33776 33777cat >>confdefs.h <<_ACEOF 33778#define HAVE_GETUSERSHELL 1 33779_ACEOF 33780 33781else 33782 case " $LIBOBJS " in 33783 *" getusershell.$ac_objext "* ) ;; 33784 *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" 33785 ;; 33786esac 33787 33788fi 33789{ echo "$as_me:$LINENO: checking for initgroups" >&5 33790echo $ECHO_N "checking for initgroups... $ECHO_C" >&6; } 33791if test "${ac_cv_func_initgroups+set}" = set; then 33792 echo $ECHO_N "(cached) $ECHO_C" >&6 33793else 33794 cat >conftest.$ac_ext <<_ACEOF 33795/* confdefs.h. */ 33796_ACEOF 33797cat confdefs.h >>conftest.$ac_ext 33798cat >>conftest.$ac_ext <<_ACEOF 33799/* end confdefs.h. */ 33800/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups. 33801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33802#define initgroups innocuous_initgroups 33803 33804/* System header to define __stub macros and hopefully few prototypes, 33805 which can conflict with char initgroups (); below. 33806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33807 <limits.h> exists even on freestanding compilers. */ 33808 33809#ifdef __STDC__ 33810# include <limits.h> 33811#else 33812# include <assert.h> 33813#endif 33814 33815#undef initgroups 33816 33817/* Override any GCC internal prototype to avoid an error. 33818 Use char because int might match the return type of a GCC 33819 builtin and then its argument prototype would still apply. */ 33820#ifdef __cplusplus 33821extern "C" 33822#endif 33823char initgroups (); 33824/* The GNU C library defines this for functions which it implements 33825 to always fail with ENOSYS. Some functions are actually named 33826 something starting with __ and the normal name is an alias. */ 33827#if defined __stub_initgroups || defined __stub___initgroups 33828choke me 33829#endif 33830 33831int 33832main () 33833{ 33834return initgroups (); 33835 ; 33836 return 0; 33837} 33838_ACEOF 33839rm -f conftest.$ac_objext conftest$ac_exeext 33840if { (ac_try="$ac_link" 33841case "(($ac_try" in 33842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33843 *) ac_try_echo=$ac_try;; 33844esac 33845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33846 (eval "$ac_link") 2>conftest.er1 33847 ac_status=$? 33848 grep -v '^ *+' conftest.er1 >conftest.err 33849 rm -f conftest.er1 33850 cat conftest.err >&5 33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33852 (exit $ac_status); } && { 33853 test -z "$ac_c_werror_flag" || 33854 test ! -s conftest.err 33855 } && test -s conftest$ac_exeext && 33856 $as_test_x conftest$ac_exeext; then 33857 ac_cv_func_initgroups=yes 33858else 33859 echo "$as_me: failed program was:" >&5 33860sed 's/^/| /' conftest.$ac_ext >&5 33861 33862 ac_cv_func_initgroups=no 33863fi 33864 33865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33866 conftest$ac_exeext conftest.$ac_ext 33867fi 33868{ echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5 33869echo "${ECHO_T}$ac_cv_func_initgroups" >&6; } 33870if test $ac_cv_func_initgroups = yes; then 33871 33872cat >>confdefs.h <<_ACEOF 33873#define HAVE_INITGROUPS 1 33874_ACEOF 33875 33876else 33877 case " $LIBOBJS " in 33878 *" initgroups.$ac_objext "* ) ;; 33879 *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" 33880 ;; 33881esac 33882 33883fi 33884{ echo "$as_me:$LINENO: checking for innetgr" >&5 33885echo $ECHO_N "checking for innetgr... $ECHO_C" >&6; } 33886if test "${ac_cv_func_innetgr+set}" = set; then 33887 echo $ECHO_N "(cached) $ECHO_C" >&6 33888else 33889 cat >conftest.$ac_ext <<_ACEOF 33890/* confdefs.h. */ 33891_ACEOF 33892cat confdefs.h >>conftest.$ac_ext 33893cat >>conftest.$ac_ext <<_ACEOF 33894/* end confdefs.h. */ 33895/* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr. 33896 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33897#define innetgr innocuous_innetgr 33898 33899/* System header to define __stub macros and hopefully few prototypes, 33900 which can conflict with char innetgr (); below. 33901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33902 <limits.h> exists even on freestanding compilers. */ 33903 33904#ifdef __STDC__ 33905# include <limits.h> 33906#else 33907# include <assert.h> 33908#endif 33909 33910#undef innetgr 33911 33912/* Override any GCC internal prototype to avoid an error. 33913 Use char because int might match the return type of a GCC 33914 builtin and then its argument prototype would still apply. */ 33915#ifdef __cplusplus 33916extern "C" 33917#endif 33918char innetgr (); 33919/* The GNU C library defines this for functions which it implements 33920 to always fail with ENOSYS. Some functions are actually named 33921 something starting with __ and the normal name is an alias. */ 33922#if defined __stub_innetgr || defined __stub___innetgr 33923choke me 33924#endif 33925 33926int 33927main () 33928{ 33929return innetgr (); 33930 ; 33931 return 0; 33932} 33933_ACEOF 33934rm -f conftest.$ac_objext conftest$ac_exeext 33935if { (ac_try="$ac_link" 33936case "(($ac_try" in 33937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33938 *) ac_try_echo=$ac_try;; 33939esac 33940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33941 (eval "$ac_link") 2>conftest.er1 33942 ac_status=$? 33943 grep -v '^ *+' conftest.er1 >conftest.err 33944 rm -f conftest.er1 33945 cat conftest.err >&5 33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33947 (exit $ac_status); } && { 33948 test -z "$ac_c_werror_flag" || 33949 test ! -s conftest.err 33950 } && test -s conftest$ac_exeext && 33951 $as_test_x conftest$ac_exeext; then 33952 ac_cv_func_innetgr=yes 33953else 33954 echo "$as_me: failed program was:" >&5 33955sed 's/^/| /' conftest.$ac_ext >&5 33956 33957 ac_cv_func_innetgr=no 33958fi 33959 33960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33961 conftest$ac_exeext conftest.$ac_ext 33962fi 33963{ echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5 33964echo "${ECHO_T}$ac_cv_func_innetgr" >&6; } 33965if test $ac_cv_func_innetgr = yes; then 33966 33967cat >>confdefs.h <<_ACEOF 33968#define HAVE_INNETGR 1 33969_ACEOF 33970 33971else 33972 case " $LIBOBJS " in 33973 *" innetgr.$ac_objext "* ) ;; 33974 *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" 33975 ;; 33976esac 33977 33978fi 33979{ echo "$as_me:$LINENO: checking for iruserok" >&5 33980echo $ECHO_N "checking for iruserok... $ECHO_C" >&6; } 33981if test "${ac_cv_func_iruserok+set}" = set; then 33982 echo $ECHO_N "(cached) $ECHO_C" >&6 33983else 33984 cat >conftest.$ac_ext <<_ACEOF 33985/* confdefs.h. */ 33986_ACEOF 33987cat confdefs.h >>conftest.$ac_ext 33988cat >>conftest.$ac_ext <<_ACEOF 33989/* end confdefs.h. */ 33990/* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok. 33991 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33992#define iruserok innocuous_iruserok 33993 33994/* System header to define __stub macros and hopefully few prototypes, 33995 which can conflict with char iruserok (); below. 33996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33997 <limits.h> exists even on freestanding compilers. */ 33998 33999#ifdef __STDC__ 34000# include <limits.h> 34001#else 34002# include <assert.h> 34003#endif 34004 34005#undef iruserok 34006 34007/* Override any GCC internal prototype to avoid an error. 34008 Use char because int might match the return type of a GCC 34009 builtin and then its argument prototype would still apply. */ 34010#ifdef __cplusplus 34011extern "C" 34012#endif 34013char iruserok (); 34014/* The GNU C library defines this for functions which it implements 34015 to always fail with ENOSYS. Some functions are actually named 34016 something starting with __ and the normal name is an alias. */ 34017#if defined __stub_iruserok || defined __stub___iruserok 34018choke me 34019#endif 34020 34021int 34022main () 34023{ 34024return iruserok (); 34025 ; 34026 return 0; 34027} 34028_ACEOF 34029rm -f conftest.$ac_objext conftest$ac_exeext 34030if { (ac_try="$ac_link" 34031case "(($ac_try" in 34032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34033 *) ac_try_echo=$ac_try;; 34034esac 34035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34036 (eval "$ac_link") 2>conftest.er1 34037 ac_status=$? 34038 grep -v '^ *+' conftest.er1 >conftest.err 34039 rm -f conftest.er1 34040 cat conftest.err >&5 34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34042 (exit $ac_status); } && { 34043 test -z "$ac_c_werror_flag" || 34044 test ! -s conftest.err 34045 } && test -s conftest$ac_exeext && 34046 $as_test_x conftest$ac_exeext; then 34047 ac_cv_func_iruserok=yes 34048else 34049 echo "$as_me: failed program was:" >&5 34050sed 's/^/| /' conftest.$ac_ext >&5 34051 34052 ac_cv_func_iruserok=no 34053fi 34054 34055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34056 conftest$ac_exeext conftest.$ac_ext 34057fi 34058{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5 34059echo "${ECHO_T}$ac_cv_func_iruserok" >&6; } 34060if test $ac_cv_func_iruserok = yes; then 34061 34062cat >>confdefs.h <<_ACEOF 34063#define HAVE_IRUSEROK 1 34064_ACEOF 34065 34066else 34067 case " $LIBOBJS " in 34068 *" iruserok.$ac_objext "* ) ;; 34069 *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" 34070 ;; 34071esac 34072 34073fi 34074{ echo "$as_me:$LINENO: checking for localtime_r" >&5 34075echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; } 34076if test "${ac_cv_func_localtime_r+set}" = set; then 34077 echo $ECHO_N "(cached) $ECHO_C" >&6 34078else 34079 cat >conftest.$ac_ext <<_ACEOF 34080/* confdefs.h. */ 34081_ACEOF 34082cat confdefs.h >>conftest.$ac_ext 34083cat >>conftest.$ac_ext <<_ACEOF 34084/* end confdefs.h. */ 34085/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. 34086 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34087#define localtime_r innocuous_localtime_r 34088 34089/* System header to define __stub macros and hopefully few prototypes, 34090 which can conflict with char localtime_r (); below. 34091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34092 <limits.h> exists even on freestanding compilers. */ 34093 34094#ifdef __STDC__ 34095# include <limits.h> 34096#else 34097# include <assert.h> 34098#endif 34099 34100#undef localtime_r 34101 34102/* Override any GCC internal prototype to avoid an error. 34103 Use char because int might match the return type of a GCC 34104 builtin and then its argument prototype would still apply. */ 34105#ifdef __cplusplus 34106extern "C" 34107#endif 34108char localtime_r (); 34109/* The GNU C library defines this for functions which it implements 34110 to always fail with ENOSYS. Some functions are actually named 34111 something starting with __ and the normal name is an alias. */ 34112#if defined __stub_localtime_r || defined __stub___localtime_r 34113choke me 34114#endif 34115 34116int 34117main () 34118{ 34119return localtime_r (); 34120 ; 34121 return 0; 34122} 34123_ACEOF 34124rm -f conftest.$ac_objext conftest$ac_exeext 34125if { (ac_try="$ac_link" 34126case "(($ac_try" in 34127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34128 *) ac_try_echo=$ac_try;; 34129esac 34130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34131 (eval "$ac_link") 2>conftest.er1 34132 ac_status=$? 34133 grep -v '^ *+' conftest.er1 >conftest.err 34134 rm -f conftest.er1 34135 cat conftest.err >&5 34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34137 (exit $ac_status); } && { 34138 test -z "$ac_c_werror_flag" || 34139 test ! -s conftest.err 34140 } && test -s conftest$ac_exeext && 34141 $as_test_x conftest$ac_exeext; then 34142 ac_cv_func_localtime_r=yes 34143else 34144 echo "$as_me: failed program was:" >&5 34145sed 's/^/| /' conftest.$ac_ext >&5 34146 34147 ac_cv_func_localtime_r=no 34148fi 34149 34150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34151 conftest$ac_exeext conftest.$ac_ext 34152fi 34153{ echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 34154echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; } 34155if test $ac_cv_func_localtime_r = yes; then 34156 34157cat >>confdefs.h <<_ACEOF 34158#define HAVE_LOCALTIME_R 1 34159_ACEOF 34160 34161else 34162 case " $LIBOBJS " in 34163 *" localtime_r.$ac_objext "* ) ;; 34164 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 34165 ;; 34166esac 34167 34168fi 34169{ echo "$as_me:$LINENO: checking for lstat" >&5 34170echo $ECHO_N "checking for lstat... $ECHO_C" >&6; } 34171if test "${ac_cv_func_lstat+set}" = set; then 34172 echo $ECHO_N "(cached) $ECHO_C" >&6 34173else 34174 cat >conftest.$ac_ext <<_ACEOF 34175/* confdefs.h. */ 34176_ACEOF 34177cat confdefs.h >>conftest.$ac_ext 34178cat >>conftest.$ac_ext <<_ACEOF 34179/* end confdefs.h. */ 34180/* Define lstat to an innocuous variant, in case <limits.h> declares lstat. 34181 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34182#define lstat innocuous_lstat 34183 34184/* System header to define __stub macros and hopefully few prototypes, 34185 which can conflict with char lstat (); below. 34186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34187 <limits.h> exists even on freestanding compilers. */ 34188 34189#ifdef __STDC__ 34190# include <limits.h> 34191#else 34192# include <assert.h> 34193#endif 34194 34195#undef lstat 34196 34197/* Override any GCC internal prototype to avoid an error. 34198 Use char because int might match the return type of a GCC 34199 builtin and then its argument prototype would still apply. */ 34200#ifdef __cplusplus 34201extern "C" 34202#endif 34203char lstat (); 34204/* The GNU C library defines this for functions which it implements 34205 to always fail with ENOSYS. Some functions are actually named 34206 something starting with __ and the normal name is an alias. */ 34207#if defined __stub_lstat || defined __stub___lstat 34208choke me 34209#endif 34210 34211int 34212main () 34213{ 34214return lstat (); 34215 ; 34216 return 0; 34217} 34218_ACEOF 34219rm -f conftest.$ac_objext conftest$ac_exeext 34220if { (ac_try="$ac_link" 34221case "(($ac_try" in 34222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34223 *) ac_try_echo=$ac_try;; 34224esac 34225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34226 (eval "$ac_link") 2>conftest.er1 34227 ac_status=$? 34228 grep -v '^ *+' conftest.er1 >conftest.err 34229 rm -f conftest.er1 34230 cat conftest.err >&5 34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34232 (exit $ac_status); } && { 34233 test -z "$ac_c_werror_flag" || 34234 test ! -s conftest.err 34235 } && test -s conftest$ac_exeext && 34236 $as_test_x conftest$ac_exeext; then 34237 ac_cv_func_lstat=yes 34238else 34239 echo "$as_me: failed program was:" >&5 34240sed 's/^/| /' conftest.$ac_ext >&5 34241 34242 ac_cv_func_lstat=no 34243fi 34244 34245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34246 conftest$ac_exeext conftest.$ac_ext 34247fi 34248{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5 34249echo "${ECHO_T}$ac_cv_func_lstat" >&6; } 34250if test $ac_cv_func_lstat = yes; then 34251 34252cat >>confdefs.h <<_ACEOF 34253#define HAVE_LSTAT 1 34254_ACEOF 34255 34256else 34257 case " $LIBOBJS " in 34258 *" lstat.$ac_objext "* ) ;; 34259 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 34260 ;; 34261esac 34262 34263fi 34264{ echo "$as_me:$LINENO: checking for memmove" >&5 34265echo $ECHO_N "checking for memmove... $ECHO_C" >&6; } 34266if test "${ac_cv_func_memmove+set}" = set; then 34267 echo $ECHO_N "(cached) $ECHO_C" >&6 34268else 34269 cat >conftest.$ac_ext <<_ACEOF 34270/* confdefs.h. */ 34271_ACEOF 34272cat confdefs.h >>conftest.$ac_ext 34273cat >>conftest.$ac_ext <<_ACEOF 34274/* end confdefs.h. */ 34275/* Define memmove to an innocuous variant, in case <limits.h> declares memmove. 34276 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34277#define memmove innocuous_memmove 34278 34279/* System header to define __stub macros and hopefully few prototypes, 34280 which can conflict with char memmove (); below. 34281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34282 <limits.h> exists even on freestanding compilers. */ 34283 34284#ifdef __STDC__ 34285# include <limits.h> 34286#else 34287# include <assert.h> 34288#endif 34289 34290#undef memmove 34291 34292/* Override any GCC internal prototype to avoid an error. 34293 Use char because int might match the return type of a GCC 34294 builtin and then its argument prototype would still apply. */ 34295#ifdef __cplusplus 34296extern "C" 34297#endif 34298char memmove (); 34299/* The GNU C library defines this for functions which it implements 34300 to always fail with ENOSYS. Some functions are actually named 34301 something starting with __ and the normal name is an alias. */ 34302#if defined __stub_memmove || defined __stub___memmove 34303choke me 34304#endif 34305 34306int 34307main () 34308{ 34309return memmove (); 34310 ; 34311 return 0; 34312} 34313_ACEOF 34314rm -f conftest.$ac_objext conftest$ac_exeext 34315if { (ac_try="$ac_link" 34316case "(($ac_try" in 34317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34318 *) ac_try_echo=$ac_try;; 34319esac 34320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34321 (eval "$ac_link") 2>conftest.er1 34322 ac_status=$? 34323 grep -v '^ *+' conftest.er1 >conftest.err 34324 rm -f conftest.er1 34325 cat conftest.err >&5 34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34327 (exit $ac_status); } && { 34328 test -z "$ac_c_werror_flag" || 34329 test ! -s conftest.err 34330 } && test -s conftest$ac_exeext && 34331 $as_test_x conftest$ac_exeext; then 34332 ac_cv_func_memmove=yes 34333else 34334 echo "$as_me: failed program was:" >&5 34335sed 's/^/| /' conftest.$ac_ext >&5 34336 34337 ac_cv_func_memmove=no 34338fi 34339 34340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34341 conftest$ac_exeext conftest.$ac_ext 34342fi 34343{ echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 34344echo "${ECHO_T}$ac_cv_func_memmove" >&6; } 34345if test $ac_cv_func_memmove = yes; then 34346 34347cat >>confdefs.h <<_ACEOF 34348#define HAVE_MEMMOVE 1 34349_ACEOF 34350 34351else 34352 case " $LIBOBJS " in 34353 *" memmove.$ac_objext "* ) ;; 34354 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 34355 ;; 34356esac 34357 34358fi 34359{ echo "$as_me:$LINENO: checking for mkstemp" >&5 34360echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6; } 34361if test "${ac_cv_func_mkstemp+set}" = set; then 34362 echo $ECHO_N "(cached) $ECHO_C" >&6 34363else 34364 cat >conftest.$ac_ext <<_ACEOF 34365/* confdefs.h. */ 34366_ACEOF 34367cat confdefs.h >>conftest.$ac_ext 34368cat >>conftest.$ac_ext <<_ACEOF 34369/* end confdefs.h. */ 34370/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp. 34371 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34372#define mkstemp innocuous_mkstemp 34373 34374/* System header to define __stub macros and hopefully few prototypes, 34375 which can conflict with char mkstemp (); below. 34376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34377 <limits.h> exists even on freestanding compilers. */ 34378 34379#ifdef __STDC__ 34380# include <limits.h> 34381#else 34382# include <assert.h> 34383#endif 34384 34385#undef mkstemp 34386 34387/* Override any GCC internal prototype to avoid an error. 34388 Use char because int might match the return type of a GCC 34389 builtin and then its argument prototype would still apply. */ 34390#ifdef __cplusplus 34391extern "C" 34392#endif 34393char mkstemp (); 34394/* The GNU C library defines this for functions which it implements 34395 to always fail with ENOSYS. Some functions are actually named 34396 something starting with __ and the normal name is an alias. */ 34397#if defined __stub_mkstemp || defined __stub___mkstemp 34398choke me 34399#endif 34400 34401int 34402main () 34403{ 34404return mkstemp (); 34405 ; 34406 return 0; 34407} 34408_ACEOF 34409rm -f conftest.$ac_objext conftest$ac_exeext 34410if { (ac_try="$ac_link" 34411case "(($ac_try" in 34412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34413 *) ac_try_echo=$ac_try;; 34414esac 34415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34416 (eval "$ac_link") 2>conftest.er1 34417 ac_status=$? 34418 grep -v '^ *+' conftest.er1 >conftest.err 34419 rm -f conftest.er1 34420 cat conftest.err >&5 34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34422 (exit $ac_status); } && { 34423 test -z "$ac_c_werror_flag" || 34424 test ! -s conftest.err 34425 } && test -s conftest$ac_exeext && 34426 $as_test_x conftest$ac_exeext; then 34427 ac_cv_func_mkstemp=yes 34428else 34429 echo "$as_me: failed program was:" >&5 34430sed 's/^/| /' conftest.$ac_ext >&5 34431 34432 ac_cv_func_mkstemp=no 34433fi 34434 34435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34436 conftest$ac_exeext conftest.$ac_ext 34437fi 34438{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5 34439echo "${ECHO_T}$ac_cv_func_mkstemp" >&6; } 34440if test $ac_cv_func_mkstemp = yes; then 34441 34442cat >>confdefs.h <<_ACEOF 34443#define HAVE_MKSTEMP 1 34444_ACEOF 34445 34446else 34447 case " $LIBOBJS " in 34448 *" mkstemp.$ac_objext "* ) ;; 34449 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 34450 ;; 34451esac 34452 34453fi 34454{ echo "$as_me:$LINENO: checking for putenv" >&5 34455echo $ECHO_N "checking for putenv... $ECHO_C" >&6; } 34456if test "${ac_cv_func_putenv+set}" = set; then 34457 echo $ECHO_N "(cached) $ECHO_C" >&6 34458else 34459 cat >conftest.$ac_ext <<_ACEOF 34460/* confdefs.h. */ 34461_ACEOF 34462cat confdefs.h >>conftest.$ac_ext 34463cat >>conftest.$ac_ext <<_ACEOF 34464/* end confdefs.h. */ 34465/* Define putenv to an innocuous variant, in case <limits.h> declares putenv. 34466 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34467#define putenv innocuous_putenv 34468 34469/* System header to define __stub macros and hopefully few prototypes, 34470 which can conflict with char putenv (); below. 34471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34472 <limits.h> exists even on freestanding compilers. */ 34473 34474#ifdef __STDC__ 34475# include <limits.h> 34476#else 34477# include <assert.h> 34478#endif 34479 34480#undef putenv 34481 34482/* Override any GCC internal prototype to avoid an error. 34483 Use char because int might match the return type of a GCC 34484 builtin and then its argument prototype would still apply. */ 34485#ifdef __cplusplus 34486extern "C" 34487#endif 34488char putenv (); 34489/* The GNU C library defines this for functions which it implements 34490 to always fail with ENOSYS. Some functions are actually named 34491 something starting with __ and the normal name is an alias. */ 34492#if defined __stub_putenv || defined __stub___putenv 34493choke me 34494#endif 34495 34496int 34497main () 34498{ 34499return putenv (); 34500 ; 34501 return 0; 34502} 34503_ACEOF 34504rm -f conftest.$ac_objext conftest$ac_exeext 34505if { (ac_try="$ac_link" 34506case "(($ac_try" in 34507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34508 *) ac_try_echo=$ac_try;; 34509esac 34510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34511 (eval "$ac_link") 2>conftest.er1 34512 ac_status=$? 34513 grep -v '^ *+' conftest.er1 >conftest.err 34514 rm -f conftest.er1 34515 cat conftest.err >&5 34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34517 (exit $ac_status); } && { 34518 test -z "$ac_c_werror_flag" || 34519 test ! -s conftest.err 34520 } && test -s conftest$ac_exeext && 34521 $as_test_x conftest$ac_exeext; then 34522 ac_cv_func_putenv=yes 34523else 34524 echo "$as_me: failed program was:" >&5 34525sed 's/^/| /' conftest.$ac_ext >&5 34526 34527 ac_cv_func_putenv=no 34528fi 34529 34530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34531 conftest$ac_exeext conftest.$ac_ext 34532fi 34533{ echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5 34534echo "${ECHO_T}$ac_cv_func_putenv" >&6; } 34535if test $ac_cv_func_putenv = yes; then 34536 34537cat >>confdefs.h <<_ACEOF 34538#define HAVE_PUTENV 1 34539_ACEOF 34540 34541else 34542 case " $LIBOBJS " in 34543 *" putenv.$ac_objext "* ) ;; 34544 *) LIBOBJS="$LIBOBJS putenv.$ac_objext" 34545 ;; 34546esac 34547 34548fi 34549{ echo "$as_me:$LINENO: checking for rcmd" >&5 34550echo $ECHO_N "checking for rcmd... $ECHO_C" >&6; } 34551if test "${ac_cv_func_rcmd+set}" = set; then 34552 echo $ECHO_N "(cached) $ECHO_C" >&6 34553else 34554 cat >conftest.$ac_ext <<_ACEOF 34555/* confdefs.h. */ 34556_ACEOF 34557cat confdefs.h >>conftest.$ac_ext 34558cat >>conftest.$ac_ext <<_ACEOF 34559/* end confdefs.h. */ 34560/* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd. 34561 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34562#define rcmd innocuous_rcmd 34563 34564/* System header to define __stub macros and hopefully few prototypes, 34565 which can conflict with char rcmd (); below. 34566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34567 <limits.h> exists even on freestanding compilers. */ 34568 34569#ifdef __STDC__ 34570# include <limits.h> 34571#else 34572# include <assert.h> 34573#endif 34574 34575#undef rcmd 34576 34577/* Override any GCC internal prototype to avoid an error. 34578 Use char because int might match the return type of a GCC 34579 builtin and then its argument prototype would still apply. */ 34580#ifdef __cplusplus 34581extern "C" 34582#endif 34583char rcmd (); 34584/* The GNU C library defines this for functions which it implements 34585 to always fail with ENOSYS. Some functions are actually named 34586 something starting with __ and the normal name is an alias. */ 34587#if defined __stub_rcmd || defined __stub___rcmd 34588choke me 34589#endif 34590 34591int 34592main () 34593{ 34594return rcmd (); 34595 ; 34596 return 0; 34597} 34598_ACEOF 34599rm -f conftest.$ac_objext conftest$ac_exeext 34600if { (ac_try="$ac_link" 34601case "(($ac_try" in 34602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34603 *) ac_try_echo=$ac_try;; 34604esac 34605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34606 (eval "$ac_link") 2>conftest.er1 34607 ac_status=$? 34608 grep -v '^ *+' conftest.er1 >conftest.err 34609 rm -f conftest.er1 34610 cat conftest.err >&5 34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34612 (exit $ac_status); } && { 34613 test -z "$ac_c_werror_flag" || 34614 test ! -s conftest.err 34615 } && test -s conftest$ac_exeext && 34616 $as_test_x conftest$ac_exeext; then 34617 ac_cv_func_rcmd=yes 34618else 34619 echo "$as_me: failed program was:" >&5 34620sed 's/^/| /' conftest.$ac_ext >&5 34621 34622 ac_cv_func_rcmd=no 34623fi 34624 34625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34626 conftest$ac_exeext conftest.$ac_ext 34627fi 34628{ echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5 34629echo "${ECHO_T}$ac_cv_func_rcmd" >&6; } 34630if test $ac_cv_func_rcmd = yes; then 34631 34632cat >>confdefs.h <<_ACEOF 34633#define HAVE_RCMD 1 34634_ACEOF 34635 34636else 34637 case " $LIBOBJS " in 34638 *" rcmd.$ac_objext "* ) ;; 34639 *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" 34640 ;; 34641esac 34642 34643fi 34644{ echo "$as_me:$LINENO: checking for readv" >&5 34645echo $ECHO_N "checking for readv... $ECHO_C" >&6; } 34646if test "${ac_cv_func_readv+set}" = set; then 34647 echo $ECHO_N "(cached) $ECHO_C" >&6 34648else 34649 cat >conftest.$ac_ext <<_ACEOF 34650/* confdefs.h. */ 34651_ACEOF 34652cat confdefs.h >>conftest.$ac_ext 34653cat >>conftest.$ac_ext <<_ACEOF 34654/* end confdefs.h. */ 34655/* Define readv to an innocuous variant, in case <limits.h> declares readv. 34656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34657#define readv innocuous_readv 34658 34659/* System header to define __stub macros and hopefully few prototypes, 34660 which can conflict with char readv (); below. 34661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34662 <limits.h> exists even on freestanding compilers. */ 34663 34664#ifdef __STDC__ 34665# include <limits.h> 34666#else 34667# include <assert.h> 34668#endif 34669 34670#undef readv 34671 34672/* Override any GCC internal prototype to avoid an error. 34673 Use char because int might match the return type of a GCC 34674 builtin and then its argument prototype would still apply. */ 34675#ifdef __cplusplus 34676extern "C" 34677#endif 34678char readv (); 34679/* The GNU C library defines this for functions which it implements 34680 to always fail with ENOSYS. Some functions are actually named 34681 something starting with __ and the normal name is an alias. */ 34682#if defined __stub_readv || defined __stub___readv 34683choke me 34684#endif 34685 34686int 34687main () 34688{ 34689return readv (); 34690 ; 34691 return 0; 34692} 34693_ACEOF 34694rm -f conftest.$ac_objext conftest$ac_exeext 34695if { (ac_try="$ac_link" 34696case "(($ac_try" in 34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34698 *) ac_try_echo=$ac_try;; 34699esac 34700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34701 (eval "$ac_link") 2>conftest.er1 34702 ac_status=$? 34703 grep -v '^ *+' conftest.er1 >conftest.err 34704 rm -f conftest.er1 34705 cat conftest.err >&5 34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34707 (exit $ac_status); } && { 34708 test -z "$ac_c_werror_flag" || 34709 test ! -s conftest.err 34710 } && test -s conftest$ac_exeext && 34711 $as_test_x conftest$ac_exeext; then 34712 ac_cv_func_readv=yes 34713else 34714 echo "$as_me: failed program was:" >&5 34715sed 's/^/| /' conftest.$ac_ext >&5 34716 34717 ac_cv_func_readv=no 34718fi 34719 34720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34721 conftest$ac_exeext conftest.$ac_ext 34722fi 34723{ echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5 34724echo "${ECHO_T}$ac_cv_func_readv" >&6; } 34725if test $ac_cv_func_readv = yes; then 34726 34727cat >>confdefs.h <<_ACEOF 34728#define HAVE_READV 1 34729_ACEOF 34730 34731else 34732 case " $LIBOBJS " in 34733 *" readv.$ac_objext "* ) ;; 34734 *) LIBOBJS="$LIBOBJS readv.$ac_objext" 34735 ;; 34736esac 34737 34738fi 34739{ echo "$as_me:$LINENO: checking for recvmsg" >&5 34740echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; } 34741if test "${ac_cv_func_recvmsg+set}" = set; then 34742 echo $ECHO_N "(cached) $ECHO_C" >&6 34743else 34744 cat >conftest.$ac_ext <<_ACEOF 34745/* confdefs.h. */ 34746_ACEOF 34747cat confdefs.h >>conftest.$ac_ext 34748cat >>conftest.$ac_ext <<_ACEOF 34749/* end confdefs.h. */ 34750/* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg. 34751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34752#define recvmsg innocuous_recvmsg 34753 34754/* System header to define __stub macros and hopefully few prototypes, 34755 which can conflict with char recvmsg (); below. 34756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34757 <limits.h> exists even on freestanding compilers. */ 34758 34759#ifdef __STDC__ 34760# include <limits.h> 34761#else 34762# include <assert.h> 34763#endif 34764 34765#undef recvmsg 34766 34767/* Override any GCC internal prototype to avoid an error. 34768 Use char because int might match the return type of a GCC 34769 builtin and then its argument prototype would still apply. */ 34770#ifdef __cplusplus 34771extern "C" 34772#endif 34773char recvmsg (); 34774/* The GNU C library defines this for functions which it implements 34775 to always fail with ENOSYS. Some functions are actually named 34776 something starting with __ and the normal name is an alias. */ 34777#if defined __stub_recvmsg || defined __stub___recvmsg 34778choke me 34779#endif 34780 34781int 34782main () 34783{ 34784return recvmsg (); 34785 ; 34786 return 0; 34787} 34788_ACEOF 34789rm -f conftest.$ac_objext conftest$ac_exeext 34790if { (ac_try="$ac_link" 34791case "(($ac_try" in 34792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34793 *) ac_try_echo=$ac_try;; 34794esac 34795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34796 (eval "$ac_link") 2>conftest.er1 34797 ac_status=$? 34798 grep -v '^ *+' conftest.er1 >conftest.err 34799 rm -f conftest.er1 34800 cat conftest.err >&5 34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34802 (exit $ac_status); } && { 34803 test -z "$ac_c_werror_flag" || 34804 test ! -s conftest.err 34805 } && test -s conftest$ac_exeext && 34806 $as_test_x conftest$ac_exeext; then 34807 ac_cv_func_recvmsg=yes 34808else 34809 echo "$as_me: failed program was:" >&5 34810sed 's/^/| /' conftest.$ac_ext >&5 34811 34812 ac_cv_func_recvmsg=no 34813fi 34814 34815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34816 conftest$ac_exeext conftest.$ac_ext 34817fi 34818{ echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5 34819echo "${ECHO_T}$ac_cv_func_recvmsg" >&6; } 34820if test $ac_cv_func_recvmsg = yes; then 34821 34822cat >>confdefs.h <<_ACEOF 34823#define HAVE_RECVMSG 1 34824_ACEOF 34825 34826else 34827 case " $LIBOBJS " in 34828 *" recvmsg.$ac_objext "* ) ;; 34829 *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 34830 ;; 34831esac 34832 34833fi 34834{ echo "$as_me:$LINENO: checking for sendmsg" >&5 34835echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6; } 34836if test "${ac_cv_func_sendmsg+set}" = set; then 34837 echo $ECHO_N "(cached) $ECHO_C" >&6 34838else 34839 cat >conftest.$ac_ext <<_ACEOF 34840/* confdefs.h. */ 34841_ACEOF 34842cat confdefs.h >>conftest.$ac_ext 34843cat >>conftest.$ac_ext <<_ACEOF 34844/* end confdefs.h. */ 34845/* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg. 34846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34847#define sendmsg innocuous_sendmsg 34848 34849/* System header to define __stub macros and hopefully few prototypes, 34850 which can conflict with char sendmsg (); below. 34851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34852 <limits.h> exists even on freestanding compilers. */ 34853 34854#ifdef __STDC__ 34855# include <limits.h> 34856#else 34857# include <assert.h> 34858#endif 34859 34860#undef sendmsg 34861 34862/* Override any GCC internal prototype to avoid an error. 34863 Use char because int might match the return type of a GCC 34864 builtin and then its argument prototype would still apply. */ 34865#ifdef __cplusplus 34866extern "C" 34867#endif 34868char sendmsg (); 34869/* The GNU C library defines this for functions which it implements 34870 to always fail with ENOSYS. Some functions are actually named 34871 something starting with __ and the normal name is an alias. */ 34872#if defined __stub_sendmsg || defined __stub___sendmsg 34873choke me 34874#endif 34875 34876int 34877main () 34878{ 34879return sendmsg (); 34880 ; 34881 return 0; 34882} 34883_ACEOF 34884rm -f conftest.$ac_objext conftest$ac_exeext 34885if { (ac_try="$ac_link" 34886case "(($ac_try" in 34887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34888 *) ac_try_echo=$ac_try;; 34889esac 34890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34891 (eval "$ac_link") 2>conftest.er1 34892 ac_status=$? 34893 grep -v '^ *+' conftest.er1 >conftest.err 34894 rm -f conftest.er1 34895 cat conftest.err >&5 34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34897 (exit $ac_status); } && { 34898 test -z "$ac_c_werror_flag" || 34899 test ! -s conftest.err 34900 } && test -s conftest$ac_exeext && 34901 $as_test_x conftest$ac_exeext; then 34902 ac_cv_func_sendmsg=yes 34903else 34904 echo "$as_me: failed program was:" >&5 34905sed 's/^/| /' conftest.$ac_ext >&5 34906 34907 ac_cv_func_sendmsg=no 34908fi 34909 34910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 34911 conftest$ac_exeext conftest.$ac_ext 34912fi 34913{ echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5 34914echo "${ECHO_T}$ac_cv_func_sendmsg" >&6; } 34915if test $ac_cv_func_sendmsg = yes; then 34916 34917cat >>confdefs.h <<_ACEOF 34918#define HAVE_SENDMSG 1 34919_ACEOF 34920 34921else 34922 case " $LIBOBJS " in 34923 *" sendmsg.$ac_objext "* ) ;; 34924 *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 34925 ;; 34926esac 34927 34928fi 34929{ echo "$as_me:$LINENO: checking for setegid" >&5 34930echo $ECHO_N "checking for setegid... $ECHO_C" >&6; } 34931if test "${ac_cv_func_setegid+set}" = set; then 34932 echo $ECHO_N "(cached) $ECHO_C" >&6 34933else 34934 cat >conftest.$ac_ext <<_ACEOF 34935/* confdefs.h. */ 34936_ACEOF 34937cat confdefs.h >>conftest.$ac_ext 34938cat >>conftest.$ac_ext <<_ACEOF 34939/* end confdefs.h. */ 34940/* Define setegid to an innocuous variant, in case <limits.h> declares setegid. 34941 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 34942#define setegid innocuous_setegid 34943 34944/* System header to define __stub macros and hopefully few prototypes, 34945 which can conflict with char setegid (); below. 34946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34947 <limits.h> exists even on freestanding compilers. */ 34948 34949#ifdef __STDC__ 34950# include <limits.h> 34951#else 34952# include <assert.h> 34953#endif 34954 34955#undef setegid 34956 34957/* Override any GCC internal prototype to avoid an error. 34958 Use char because int might match the return type of a GCC 34959 builtin and then its argument prototype would still apply. */ 34960#ifdef __cplusplus 34961extern "C" 34962#endif 34963char setegid (); 34964/* The GNU C library defines this for functions which it implements 34965 to always fail with ENOSYS. Some functions are actually named 34966 something starting with __ and the normal name is an alias. */ 34967#if defined __stub_setegid || defined __stub___setegid 34968choke me 34969#endif 34970 34971int 34972main () 34973{ 34974return setegid (); 34975 ; 34976 return 0; 34977} 34978_ACEOF 34979rm -f conftest.$ac_objext conftest$ac_exeext 34980if { (ac_try="$ac_link" 34981case "(($ac_try" in 34982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34983 *) ac_try_echo=$ac_try;; 34984esac 34985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 34986 (eval "$ac_link") 2>conftest.er1 34987 ac_status=$? 34988 grep -v '^ *+' conftest.er1 >conftest.err 34989 rm -f conftest.er1 34990 cat conftest.err >&5 34991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34992 (exit $ac_status); } && { 34993 test -z "$ac_c_werror_flag" || 34994 test ! -s conftest.err 34995 } && test -s conftest$ac_exeext && 34996 $as_test_x conftest$ac_exeext; then 34997 ac_cv_func_setegid=yes 34998else 34999 echo "$as_me: failed program was:" >&5 35000sed 's/^/| /' conftest.$ac_ext >&5 35001 35002 ac_cv_func_setegid=no 35003fi 35004 35005rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35006 conftest$ac_exeext conftest.$ac_ext 35007fi 35008{ echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5 35009echo "${ECHO_T}$ac_cv_func_setegid" >&6; } 35010if test $ac_cv_func_setegid = yes; then 35011 35012cat >>confdefs.h <<_ACEOF 35013#define HAVE_SETEGID 1 35014_ACEOF 35015 35016else 35017 case " $LIBOBJS " in 35018 *" setegid.$ac_objext "* ) ;; 35019 *) LIBOBJS="$LIBOBJS setegid.$ac_objext" 35020 ;; 35021esac 35022 35023fi 35024{ echo "$as_me:$LINENO: checking for setenv" >&5 35025echo $ECHO_N "checking for setenv... $ECHO_C" >&6; } 35026if test "${ac_cv_func_setenv+set}" = set; then 35027 echo $ECHO_N "(cached) $ECHO_C" >&6 35028else 35029 cat >conftest.$ac_ext <<_ACEOF 35030/* confdefs.h. */ 35031_ACEOF 35032cat confdefs.h >>conftest.$ac_ext 35033cat >>conftest.$ac_ext <<_ACEOF 35034/* end confdefs.h. */ 35035/* Define setenv to an innocuous variant, in case <limits.h> declares setenv. 35036 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35037#define setenv innocuous_setenv 35038 35039/* System header to define __stub macros and hopefully few prototypes, 35040 which can conflict with char setenv (); below. 35041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35042 <limits.h> exists even on freestanding compilers. */ 35043 35044#ifdef __STDC__ 35045# include <limits.h> 35046#else 35047# include <assert.h> 35048#endif 35049 35050#undef setenv 35051 35052/* Override any GCC internal prototype to avoid an error. 35053 Use char because int might match the return type of a GCC 35054 builtin and then its argument prototype would still apply. */ 35055#ifdef __cplusplus 35056extern "C" 35057#endif 35058char setenv (); 35059/* The GNU C library defines this for functions which it implements 35060 to always fail with ENOSYS. Some functions are actually named 35061 something starting with __ and the normal name is an alias. */ 35062#if defined __stub_setenv || defined __stub___setenv 35063choke me 35064#endif 35065 35066int 35067main () 35068{ 35069return setenv (); 35070 ; 35071 return 0; 35072} 35073_ACEOF 35074rm -f conftest.$ac_objext conftest$ac_exeext 35075if { (ac_try="$ac_link" 35076case "(($ac_try" in 35077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35078 *) ac_try_echo=$ac_try;; 35079esac 35080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35081 (eval "$ac_link") 2>conftest.er1 35082 ac_status=$? 35083 grep -v '^ *+' conftest.er1 >conftest.err 35084 rm -f conftest.er1 35085 cat conftest.err >&5 35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35087 (exit $ac_status); } && { 35088 test -z "$ac_c_werror_flag" || 35089 test ! -s conftest.err 35090 } && test -s conftest$ac_exeext && 35091 $as_test_x conftest$ac_exeext; then 35092 ac_cv_func_setenv=yes 35093else 35094 echo "$as_me: failed program was:" >&5 35095sed 's/^/| /' conftest.$ac_ext >&5 35096 35097 ac_cv_func_setenv=no 35098fi 35099 35100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35101 conftest$ac_exeext conftest.$ac_ext 35102fi 35103{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5 35104echo "${ECHO_T}$ac_cv_func_setenv" >&6; } 35105if test $ac_cv_func_setenv = yes; then 35106 35107cat >>confdefs.h <<_ACEOF 35108#define HAVE_SETENV 1 35109_ACEOF 35110 35111else 35112 case " $LIBOBJS " in 35113 *" setenv.$ac_objext "* ) ;; 35114 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 35115 ;; 35116esac 35117 35118fi 35119{ echo "$as_me:$LINENO: checking for seteuid" >&5 35120echo $ECHO_N "checking for seteuid... $ECHO_C" >&6; } 35121if test "${ac_cv_func_seteuid+set}" = set; then 35122 echo $ECHO_N "(cached) $ECHO_C" >&6 35123else 35124 cat >conftest.$ac_ext <<_ACEOF 35125/* confdefs.h. */ 35126_ACEOF 35127cat confdefs.h >>conftest.$ac_ext 35128cat >>conftest.$ac_ext <<_ACEOF 35129/* end confdefs.h. */ 35130/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid. 35131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35132#define seteuid innocuous_seteuid 35133 35134/* System header to define __stub macros and hopefully few prototypes, 35135 which can conflict with char seteuid (); below. 35136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35137 <limits.h> exists even on freestanding compilers. */ 35138 35139#ifdef __STDC__ 35140# include <limits.h> 35141#else 35142# include <assert.h> 35143#endif 35144 35145#undef seteuid 35146 35147/* Override any GCC internal prototype to avoid an error. 35148 Use char because int might match the return type of a GCC 35149 builtin and then its argument prototype would still apply. */ 35150#ifdef __cplusplus 35151extern "C" 35152#endif 35153char seteuid (); 35154/* The GNU C library defines this for functions which it implements 35155 to always fail with ENOSYS. Some functions are actually named 35156 something starting with __ and the normal name is an alias. */ 35157#if defined __stub_seteuid || defined __stub___seteuid 35158choke me 35159#endif 35160 35161int 35162main () 35163{ 35164return seteuid (); 35165 ; 35166 return 0; 35167} 35168_ACEOF 35169rm -f conftest.$ac_objext conftest$ac_exeext 35170if { (ac_try="$ac_link" 35171case "(($ac_try" in 35172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35173 *) ac_try_echo=$ac_try;; 35174esac 35175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35176 (eval "$ac_link") 2>conftest.er1 35177 ac_status=$? 35178 grep -v '^ *+' conftest.er1 >conftest.err 35179 rm -f conftest.er1 35180 cat conftest.err >&5 35181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35182 (exit $ac_status); } && { 35183 test -z "$ac_c_werror_flag" || 35184 test ! -s conftest.err 35185 } && test -s conftest$ac_exeext && 35186 $as_test_x conftest$ac_exeext; then 35187 ac_cv_func_seteuid=yes 35188else 35189 echo "$as_me: failed program was:" >&5 35190sed 's/^/| /' conftest.$ac_ext >&5 35191 35192 ac_cv_func_seteuid=no 35193fi 35194 35195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35196 conftest$ac_exeext conftest.$ac_ext 35197fi 35198{ echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5 35199echo "${ECHO_T}$ac_cv_func_seteuid" >&6; } 35200if test $ac_cv_func_seteuid = yes; then 35201 35202cat >>confdefs.h <<_ACEOF 35203#define HAVE_SETEUID 1 35204_ACEOF 35205 35206else 35207 case " $LIBOBJS " in 35208 *" seteuid.$ac_objext "* ) ;; 35209 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 35210 ;; 35211esac 35212 35213fi 35214{ echo "$as_me:$LINENO: checking for strcasecmp" >&5 35215echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; } 35216if test "${ac_cv_func_strcasecmp+set}" = set; then 35217 echo $ECHO_N "(cached) $ECHO_C" >&6 35218else 35219 cat >conftest.$ac_ext <<_ACEOF 35220/* confdefs.h. */ 35221_ACEOF 35222cat confdefs.h >>conftest.$ac_ext 35223cat >>conftest.$ac_ext <<_ACEOF 35224/* end confdefs.h. */ 35225/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. 35226 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35227#define strcasecmp innocuous_strcasecmp 35228 35229/* System header to define __stub macros and hopefully few prototypes, 35230 which can conflict with char strcasecmp (); below. 35231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35232 <limits.h> exists even on freestanding compilers. */ 35233 35234#ifdef __STDC__ 35235# include <limits.h> 35236#else 35237# include <assert.h> 35238#endif 35239 35240#undef strcasecmp 35241 35242/* Override any GCC internal prototype to avoid an error. 35243 Use char because int might match the return type of a GCC 35244 builtin and then its argument prototype would still apply. */ 35245#ifdef __cplusplus 35246extern "C" 35247#endif 35248char strcasecmp (); 35249/* The GNU C library defines this for functions which it implements 35250 to always fail with ENOSYS. Some functions are actually named 35251 something starting with __ and the normal name is an alias. */ 35252#if defined __stub_strcasecmp || defined __stub___strcasecmp 35253choke me 35254#endif 35255 35256int 35257main () 35258{ 35259return strcasecmp (); 35260 ; 35261 return 0; 35262} 35263_ACEOF 35264rm -f conftest.$ac_objext conftest$ac_exeext 35265if { (ac_try="$ac_link" 35266case "(($ac_try" in 35267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35268 *) ac_try_echo=$ac_try;; 35269esac 35270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35271 (eval "$ac_link") 2>conftest.er1 35272 ac_status=$? 35273 grep -v '^ *+' conftest.er1 >conftest.err 35274 rm -f conftest.er1 35275 cat conftest.err >&5 35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35277 (exit $ac_status); } && { 35278 test -z "$ac_c_werror_flag" || 35279 test ! -s conftest.err 35280 } && test -s conftest$ac_exeext && 35281 $as_test_x conftest$ac_exeext; then 35282 ac_cv_func_strcasecmp=yes 35283else 35284 echo "$as_me: failed program was:" >&5 35285sed 's/^/| /' conftest.$ac_ext >&5 35286 35287 ac_cv_func_strcasecmp=no 35288fi 35289 35290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35291 conftest$ac_exeext conftest.$ac_ext 35292fi 35293{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 35294echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; } 35295if test $ac_cv_func_strcasecmp = yes; then 35296 35297cat >>confdefs.h <<_ACEOF 35298#define HAVE_STRCASECMP 1 35299_ACEOF 35300 35301else 35302 case " $LIBOBJS " in 35303 *" strcasecmp.$ac_objext "* ) ;; 35304 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 35305 ;; 35306esac 35307 35308fi 35309{ echo "$as_me:$LINENO: checking for strdup" >&5 35310echo $ECHO_N "checking for strdup... $ECHO_C" >&6; } 35311if test "${ac_cv_func_strdup+set}" = set; then 35312 echo $ECHO_N "(cached) $ECHO_C" >&6 35313else 35314 cat >conftest.$ac_ext <<_ACEOF 35315/* confdefs.h. */ 35316_ACEOF 35317cat confdefs.h >>conftest.$ac_ext 35318cat >>conftest.$ac_ext <<_ACEOF 35319/* end confdefs.h. */ 35320/* Define strdup to an innocuous variant, in case <limits.h> declares strdup. 35321 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35322#define strdup innocuous_strdup 35323 35324/* System header to define __stub macros and hopefully few prototypes, 35325 which can conflict with char strdup (); below. 35326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35327 <limits.h> exists even on freestanding compilers. */ 35328 35329#ifdef __STDC__ 35330# include <limits.h> 35331#else 35332# include <assert.h> 35333#endif 35334 35335#undef strdup 35336 35337/* Override any GCC internal prototype to avoid an error. 35338 Use char because int might match the return type of a GCC 35339 builtin and then its argument prototype would still apply. */ 35340#ifdef __cplusplus 35341extern "C" 35342#endif 35343char strdup (); 35344/* The GNU C library defines this for functions which it implements 35345 to always fail with ENOSYS. Some functions are actually named 35346 something starting with __ and the normal name is an alias. */ 35347#if defined __stub_strdup || defined __stub___strdup 35348choke me 35349#endif 35350 35351int 35352main () 35353{ 35354return strdup (); 35355 ; 35356 return 0; 35357} 35358_ACEOF 35359rm -f conftest.$ac_objext conftest$ac_exeext 35360if { (ac_try="$ac_link" 35361case "(($ac_try" in 35362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35363 *) ac_try_echo=$ac_try;; 35364esac 35365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35366 (eval "$ac_link") 2>conftest.er1 35367 ac_status=$? 35368 grep -v '^ *+' conftest.er1 >conftest.err 35369 rm -f conftest.er1 35370 cat conftest.err >&5 35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35372 (exit $ac_status); } && { 35373 test -z "$ac_c_werror_flag" || 35374 test ! -s conftest.err 35375 } && test -s conftest$ac_exeext && 35376 $as_test_x conftest$ac_exeext; then 35377 ac_cv_func_strdup=yes 35378else 35379 echo "$as_me: failed program was:" >&5 35380sed 's/^/| /' conftest.$ac_ext >&5 35381 35382 ac_cv_func_strdup=no 35383fi 35384 35385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35386 conftest$ac_exeext conftest.$ac_ext 35387fi 35388{ echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5 35389echo "${ECHO_T}$ac_cv_func_strdup" >&6; } 35390if test $ac_cv_func_strdup = yes; then 35391 35392cat >>confdefs.h <<_ACEOF 35393#define HAVE_STRDUP 1 35394_ACEOF 35395 35396else 35397 case " $LIBOBJS " in 35398 *" strdup.$ac_objext "* ) ;; 35399 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 35400 ;; 35401esac 35402 35403fi 35404{ echo "$as_me:$LINENO: checking for strerror" >&5 35405echo $ECHO_N "checking for strerror... $ECHO_C" >&6; } 35406if test "${ac_cv_func_strerror+set}" = set; then 35407 echo $ECHO_N "(cached) $ECHO_C" >&6 35408else 35409 cat >conftest.$ac_ext <<_ACEOF 35410/* confdefs.h. */ 35411_ACEOF 35412cat confdefs.h >>conftest.$ac_ext 35413cat >>conftest.$ac_ext <<_ACEOF 35414/* end confdefs.h. */ 35415/* Define strerror to an innocuous variant, in case <limits.h> declares strerror. 35416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35417#define strerror innocuous_strerror 35418 35419/* System header to define __stub macros and hopefully few prototypes, 35420 which can conflict with char strerror (); below. 35421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35422 <limits.h> exists even on freestanding compilers. */ 35423 35424#ifdef __STDC__ 35425# include <limits.h> 35426#else 35427# include <assert.h> 35428#endif 35429 35430#undef strerror 35431 35432/* Override any GCC internal prototype to avoid an error. 35433 Use char because int might match the return type of a GCC 35434 builtin and then its argument prototype would still apply. */ 35435#ifdef __cplusplus 35436extern "C" 35437#endif 35438char strerror (); 35439/* The GNU C library defines this for functions which it implements 35440 to always fail with ENOSYS. Some functions are actually named 35441 something starting with __ and the normal name is an alias. */ 35442#if defined __stub_strerror || defined __stub___strerror 35443choke me 35444#endif 35445 35446int 35447main () 35448{ 35449return strerror (); 35450 ; 35451 return 0; 35452} 35453_ACEOF 35454rm -f conftest.$ac_objext conftest$ac_exeext 35455if { (ac_try="$ac_link" 35456case "(($ac_try" in 35457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35458 *) ac_try_echo=$ac_try;; 35459esac 35460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35461 (eval "$ac_link") 2>conftest.er1 35462 ac_status=$? 35463 grep -v '^ *+' conftest.er1 >conftest.err 35464 rm -f conftest.er1 35465 cat conftest.err >&5 35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35467 (exit $ac_status); } && { 35468 test -z "$ac_c_werror_flag" || 35469 test ! -s conftest.err 35470 } && test -s conftest$ac_exeext && 35471 $as_test_x conftest$ac_exeext; then 35472 ac_cv_func_strerror=yes 35473else 35474 echo "$as_me: failed program was:" >&5 35475sed 's/^/| /' conftest.$ac_ext >&5 35476 35477 ac_cv_func_strerror=no 35478fi 35479 35480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35481 conftest$ac_exeext conftest.$ac_ext 35482fi 35483{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 35484echo "${ECHO_T}$ac_cv_func_strerror" >&6; } 35485if test $ac_cv_func_strerror = yes; then 35486 35487cat >>confdefs.h <<_ACEOF 35488#define HAVE_STRERROR 1 35489_ACEOF 35490 35491else 35492 case " $LIBOBJS " in 35493 *" strerror.$ac_objext "* ) ;; 35494 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 35495 ;; 35496esac 35497 35498fi 35499{ echo "$as_me:$LINENO: checking for strftime" >&5 35500echo $ECHO_N "checking for strftime... $ECHO_C" >&6; } 35501if test "${ac_cv_func_strftime+set}" = set; then 35502 echo $ECHO_N "(cached) $ECHO_C" >&6 35503else 35504 cat >conftest.$ac_ext <<_ACEOF 35505/* confdefs.h. */ 35506_ACEOF 35507cat confdefs.h >>conftest.$ac_ext 35508cat >>conftest.$ac_ext <<_ACEOF 35509/* end confdefs.h. */ 35510/* Define strftime to an innocuous variant, in case <limits.h> declares strftime. 35511 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35512#define strftime innocuous_strftime 35513 35514/* System header to define __stub macros and hopefully few prototypes, 35515 which can conflict with char strftime (); below. 35516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35517 <limits.h> exists even on freestanding compilers. */ 35518 35519#ifdef __STDC__ 35520# include <limits.h> 35521#else 35522# include <assert.h> 35523#endif 35524 35525#undef strftime 35526 35527/* Override any GCC internal prototype to avoid an error. 35528 Use char because int might match the return type of a GCC 35529 builtin and then its argument prototype would still apply. */ 35530#ifdef __cplusplus 35531extern "C" 35532#endif 35533char strftime (); 35534/* The GNU C library defines this for functions which it implements 35535 to always fail with ENOSYS. Some functions are actually named 35536 something starting with __ and the normal name is an alias. */ 35537#if defined __stub_strftime || defined __stub___strftime 35538choke me 35539#endif 35540 35541int 35542main () 35543{ 35544return strftime (); 35545 ; 35546 return 0; 35547} 35548_ACEOF 35549rm -f conftest.$ac_objext conftest$ac_exeext 35550if { (ac_try="$ac_link" 35551case "(($ac_try" in 35552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35553 *) ac_try_echo=$ac_try;; 35554esac 35555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35556 (eval "$ac_link") 2>conftest.er1 35557 ac_status=$? 35558 grep -v '^ *+' conftest.er1 >conftest.err 35559 rm -f conftest.er1 35560 cat conftest.err >&5 35561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35562 (exit $ac_status); } && { 35563 test -z "$ac_c_werror_flag" || 35564 test ! -s conftest.err 35565 } && test -s conftest$ac_exeext && 35566 $as_test_x conftest$ac_exeext; then 35567 ac_cv_func_strftime=yes 35568else 35569 echo "$as_me: failed program was:" >&5 35570sed 's/^/| /' conftest.$ac_ext >&5 35571 35572 ac_cv_func_strftime=no 35573fi 35574 35575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35576 conftest$ac_exeext conftest.$ac_ext 35577fi 35578{ echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5 35579echo "${ECHO_T}$ac_cv_func_strftime" >&6; } 35580if test $ac_cv_func_strftime = yes; then 35581 35582cat >>confdefs.h <<_ACEOF 35583#define HAVE_STRFTIME 1 35584_ACEOF 35585 35586else 35587 case " $LIBOBJS " in 35588 *" strftime.$ac_objext "* ) ;; 35589 *) LIBOBJS="$LIBOBJS strftime.$ac_objext" 35590 ;; 35591esac 35592 35593fi 35594{ echo "$as_me:$LINENO: checking for strlcat" >&5 35595echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } 35596if test "${ac_cv_func_strlcat+set}" = set; then 35597 echo $ECHO_N "(cached) $ECHO_C" >&6 35598else 35599 cat >conftest.$ac_ext <<_ACEOF 35600/* confdefs.h. */ 35601_ACEOF 35602cat confdefs.h >>conftest.$ac_ext 35603cat >>conftest.$ac_ext <<_ACEOF 35604/* end confdefs.h. */ 35605/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat. 35606 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35607#define strlcat innocuous_strlcat 35608 35609/* System header to define __stub macros and hopefully few prototypes, 35610 which can conflict with char strlcat (); below. 35611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35612 <limits.h> exists even on freestanding compilers. */ 35613 35614#ifdef __STDC__ 35615# include <limits.h> 35616#else 35617# include <assert.h> 35618#endif 35619 35620#undef strlcat 35621 35622/* Override any GCC internal prototype to avoid an error. 35623 Use char because int might match the return type of a GCC 35624 builtin and then its argument prototype would still apply. */ 35625#ifdef __cplusplus 35626extern "C" 35627#endif 35628char strlcat (); 35629/* The GNU C library defines this for functions which it implements 35630 to always fail with ENOSYS. Some functions are actually named 35631 something starting with __ and the normal name is an alias. */ 35632#if defined __stub_strlcat || defined __stub___strlcat 35633choke me 35634#endif 35635 35636int 35637main () 35638{ 35639return strlcat (); 35640 ; 35641 return 0; 35642} 35643_ACEOF 35644rm -f conftest.$ac_objext conftest$ac_exeext 35645if { (ac_try="$ac_link" 35646case "(($ac_try" in 35647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35648 *) ac_try_echo=$ac_try;; 35649esac 35650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35651 (eval "$ac_link") 2>conftest.er1 35652 ac_status=$? 35653 grep -v '^ *+' conftest.er1 >conftest.err 35654 rm -f conftest.er1 35655 cat conftest.err >&5 35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35657 (exit $ac_status); } && { 35658 test -z "$ac_c_werror_flag" || 35659 test ! -s conftest.err 35660 } && test -s conftest$ac_exeext && 35661 $as_test_x conftest$ac_exeext; then 35662 ac_cv_func_strlcat=yes 35663else 35664 echo "$as_me: failed program was:" >&5 35665sed 's/^/| /' conftest.$ac_ext >&5 35666 35667 ac_cv_func_strlcat=no 35668fi 35669 35670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35671 conftest$ac_exeext conftest.$ac_ext 35672fi 35673{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5 35674echo "${ECHO_T}$ac_cv_func_strlcat" >&6; } 35675if test $ac_cv_func_strlcat = yes; then 35676 35677cat >>confdefs.h <<_ACEOF 35678#define HAVE_STRLCAT 1 35679_ACEOF 35680 35681else 35682 case " $LIBOBJS " in 35683 *" strlcat.$ac_objext "* ) ;; 35684 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 35685 ;; 35686esac 35687 35688fi 35689{ echo "$as_me:$LINENO: checking for strlcpy" >&5 35690echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } 35691if test "${ac_cv_func_strlcpy+set}" = set; then 35692 echo $ECHO_N "(cached) $ECHO_C" >&6 35693else 35694 cat >conftest.$ac_ext <<_ACEOF 35695/* confdefs.h. */ 35696_ACEOF 35697cat confdefs.h >>conftest.$ac_ext 35698cat >>conftest.$ac_ext <<_ACEOF 35699/* end confdefs.h. */ 35700/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy. 35701 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35702#define strlcpy innocuous_strlcpy 35703 35704/* System header to define __stub macros and hopefully few prototypes, 35705 which can conflict with char strlcpy (); below. 35706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35707 <limits.h> exists even on freestanding compilers. */ 35708 35709#ifdef __STDC__ 35710# include <limits.h> 35711#else 35712# include <assert.h> 35713#endif 35714 35715#undef strlcpy 35716 35717/* Override any GCC internal prototype to avoid an error. 35718 Use char because int might match the return type of a GCC 35719 builtin and then its argument prototype would still apply. */ 35720#ifdef __cplusplus 35721extern "C" 35722#endif 35723char strlcpy (); 35724/* The GNU C library defines this for functions which it implements 35725 to always fail with ENOSYS. Some functions are actually named 35726 something starting with __ and the normal name is an alias. */ 35727#if defined __stub_strlcpy || defined __stub___strlcpy 35728choke me 35729#endif 35730 35731int 35732main () 35733{ 35734return strlcpy (); 35735 ; 35736 return 0; 35737} 35738_ACEOF 35739rm -f conftest.$ac_objext conftest$ac_exeext 35740if { (ac_try="$ac_link" 35741case "(($ac_try" in 35742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35743 *) ac_try_echo=$ac_try;; 35744esac 35745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35746 (eval "$ac_link") 2>conftest.er1 35747 ac_status=$? 35748 grep -v '^ *+' conftest.er1 >conftest.err 35749 rm -f conftest.er1 35750 cat conftest.err >&5 35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35752 (exit $ac_status); } && { 35753 test -z "$ac_c_werror_flag" || 35754 test ! -s conftest.err 35755 } && test -s conftest$ac_exeext && 35756 $as_test_x conftest$ac_exeext; then 35757 ac_cv_func_strlcpy=yes 35758else 35759 echo "$as_me: failed program was:" >&5 35760sed 's/^/| /' conftest.$ac_ext >&5 35761 35762 ac_cv_func_strlcpy=no 35763fi 35764 35765rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35766 conftest$ac_exeext conftest.$ac_ext 35767fi 35768{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5 35769echo "${ECHO_T}$ac_cv_func_strlcpy" >&6; } 35770if test $ac_cv_func_strlcpy = yes; then 35771 35772cat >>confdefs.h <<_ACEOF 35773#define HAVE_STRLCPY 1 35774_ACEOF 35775 35776else 35777 case " $LIBOBJS " in 35778 *" strlcpy.$ac_objext "* ) ;; 35779 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 35780 ;; 35781esac 35782 35783fi 35784{ echo "$as_me:$LINENO: checking for strlwr" >&5 35785echo $ECHO_N "checking for strlwr... $ECHO_C" >&6; } 35786if test "${ac_cv_func_strlwr+set}" = set; then 35787 echo $ECHO_N "(cached) $ECHO_C" >&6 35788else 35789 cat >conftest.$ac_ext <<_ACEOF 35790/* confdefs.h. */ 35791_ACEOF 35792cat confdefs.h >>conftest.$ac_ext 35793cat >>conftest.$ac_ext <<_ACEOF 35794/* end confdefs.h. */ 35795/* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr. 35796 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35797#define strlwr innocuous_strlwr 35798 35799/* System header to define __stub macros and hopefully few prototypes, 35800 which can conflict with char strlwr (); below. 35801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35802 <limits.h> exists even on freestanding compilers. */ 35803 35804#ifdef __STDC__ 35805# include <limits.h> 35806#else 35807# include <assert.h> 35808#endif 35809 35810#undef strlwr 35811 35812/* Override any GCC internal prototype to avoid an error. 35813 Use char because int might match the return type of a GCC 35814 builtin and then its argument prototype would still apply. */ 35815#ifdef __cplusplus 35816extern "C" 35817#endif 35818char strlwr (); 35819/* The GNU C library defines this for functions which it implements 35820 to always fail with ENOSYS. Some functions are actually named 35821 something starting with __ and the normal name is an alias. */ 35822#if defined __stub_strlwr || defined __stub___strlwr 35823choke me 35824#endif 35825 35826int 35827main () 35828{ 35829return strlwr (); 35830 ; 35831 return 0; 35832} 35833_ACEOF 35834rm -f conftest.$ac_objext conftest$ac_exeext 35835if { (ac_try="$ac_link" 35836case "(($ac_try" in 35837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35838 *) ac_try_echo=$ac_try;; 35839esac 35840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35841 (eval "$ac_link") 2>conftest.er1 35842 ac_status=$? 35843 grep -v '^ *+' conftest.er1 >conftest.err 35844 rm -f conftest.er1 35845 cat conftest.err >&5 35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35847 (exit $ac_status); } && { 35848 test -z "$ac_c_werror_flag" || 35849 test ! -s conftest.err 35850 } && test -s conftest$ac_exeext && 35851 $as_test_x conftest$ac_exeext; then 35852 ac_cv_func_strlwr=yes 35853else 35854 echo "$as_me: failed program was:" >&5 35855sed 's/^/| /' conftest.$ac_ext >&5 35856 35857 ac_cv_func_strlwr=no 35858fi 35859 35860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35861 conftest$ac_exeext conftest.$ac_ext 35862fi 35863{ echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5 35864echo "${ECHO_T}$ac_cv_func_strlwr" >&6; } 35865if test $ac_cv_func_strlwr = yes; then 35866 35867cat >>confdefs.h <<_ACEOF 35868#define HAVE_STRLWR 1 35869_ACEOF 35870 35871else 35872 case " $LIBOBJS " in 35873 *" strlwr.$ac_objext "* ) ;; 35874 *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" 35875 ;; 35876esac 35877 35878fi 35879{ echo "$as_me:$LINENO: checking for strncasecmp" >&5 35880echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6; } 35881if test "${ac_cv_func_strncasecmp+set}" = set; then 35882 echo $ECHO_N "(cached) $ECHO_C" >&6 35883else 35884 cat >conftest.$ac_ext <<_ACEOF 35885/* confdefs.h. */ 35886_ACEOF 35887cat confdefs.h >>conftest.$ac_ext 35888cat >>conftest.$ac_ext <<_ACEOF 35889/* end confdefs.h. */ 35890/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp. 35891 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35892#define strncasecmp innocuous_strncasecmp 35893 35894/* System header to define __stub macros and hopefully few prototypes, 35895 which can conflict with char strncasecmp (); below. 35896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35897 <limits.h> exists even on freestanding compilers. */ 35898 35899#ifdef __STDC__ 35900# include <limits.h> 35901#else 35902# include <assert.h> 35903#endif 35904 35905#undef strncasecmp 35906 35907/* Override any GCC internal prototype to avoid an error. 35908 Use char because int might match the return type of a GCC 35909 builtin and then its argument prototype would still apply. */ 35910#ifdef __cplusplus 35911extern "C" 35912#endif 35913char strncasecmp (); 35914/* The GNU C library defines this for functions which it implements 35915 to always fail with ENOSYS. Some functions are actually named 35916 something starting with __ and the normal name is an alias. */ 35917#if defined __stub_strncasecmp || defined __stub___strncasecmp 35918choke me 35919#endif 35920 35921int 35922main () 35923{ 35924return strncasecmp (); 35925 ; 35926 return 0; 35927} 35928_ACEOF 35929rm -f conftest.$ac_objext conftest$ac_exeext 35930if { (ac_try="$ac_link" 35931case "(($ac_try" in 35932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35933 *) ac_try_echo=$ac_try;; 35934esac 35935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 35936 (eval "$ac_link") 2>conftest.er1 35937 ac_status=$? 35938 grep -v '^ *+' conftest.er1 >conftest.err 35939 rm -f conftest.er1 35940 cat conftest.err >&5 35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35942 (exit $ac_status); } && { 35943 test -z "$ac_c_werror_flag" || 35944 test ! -s conftest.err 35945 } && test -s conftest$ac_exeext && 35946 $as_test_x conftest$ac_exeext; then 35947 ac_cv_func_strncasecmp=yes 35948else 35949 echo "$as_me: failed program was:" >&5 35950sed 's/^/| /' conftest.$ac_ext >&5 35951 35952 ac_cv_func_strncasecmp=no 35953fi 35954 35955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 35956 conftest$ac_exeext conftest.$ac_ext 35957fi 35958{ echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5 35959echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6; } 35960if test $ac_cv_func_strncasecmp = yes; then 35961 35962cat >>confdefs.h <<_ACEOF 35963#define HAVE_STRNCASECMP 1 35964_ACEOF 35965 35966else 35967 case " $LIBOBJS " in 35968 *" strncasecmp.$ac_objext "* ) ;; 35969 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 35970 ;; 35971esac 35972 35973fi 35974{ echo "$as_me:$LINENO: checking for strndup" >&5 35975echo $ECHO_N "checking for strndup... $ECHO_C" >&6; } 35976if test "${ac_cv_func_strndup+set}" = set; then 35977 echo $ECHO_N "(cached) $ECHO_C" >&6 35978else 35979 cat >conftest.$ac_ext <<_ACEOF 35980/* confdefs.h. */ 35981_ACEOF 35982cat confdefs.h >>conftest.$ac_ext 35983cat >>conftest.$ac_ext <<_ACEOF 35984/* end confdefs.h. */ 35985/* Define strndup to an innocuous variant, in case <limits.h> declares strndup. 35986 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 35987#define strndup innocuous_strndup 35988 35989/* System header to define __stub macros and hopefully few prototypes, 35990 which can conflict with char strndup (); below. 35991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35992 <limits.h> exists even on freestanding compilers. */ 35993 35994#ifdef __STDC__ 35995# include <limits.h> 35996#else 35997# include <assert.h> 35998#endif 35999 36000#undef strndup 36001 36002/* Override any GCC internal prototype to avoid an error. 36003 Use char because int might match the return type of a GCC 36004 builtin and then its argument prototype would still apply. */ 36005#ifdef __cplusplus 36006extern "C" 36007#endif 36008char strndup (); 36009/* The GNU C library defines this for functions which it implements 36010 to always fail with ENOSYS. Some functions are actually named 36011 something starting with __ and the normal name is an alias. */ 36012#if defined __stub_strndup || defined __stub___strndup 36013choke me 36014#endif 36015 36016int 36017main () 36018{ 36019return strndup (); 36020 ; 36021 return 0; 36022} 36023_ACEOF 36024rm -f conftest.$ac_objext conftest$ac_exeext 36025if { (ac_try="$ac_link" 36026case "(($ac_try" in 36027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36028 *) ac_try_echo=$ac_try;; 36029esac 36030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36031 (eval "$ac_link") 2>conftest.er1 36032 ac_status=$? 36033 grep -v '^ *+' conftest.er1 >conftest.err 36034 rm -f conftest.er1 36035 cat conftest.err >&5 36036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36037 (exit $ac_status); } && { 36038 test -z "$ac_c_werror_flag" || 36039 test ! -s conftest.err 36040 } && test -s conftest$ac_exeext && 36041 $as_test_x conftest$ac_exeext; then 36042 ac_cv_func_strndup=yes 36043else 36044 echo "$as_me: failed program was:" >&5 36045sed 's/^/| /' conftest.$ac_ext >&5 36046 36047 ac_cv_func_strndup=no 36048fi 36049 36050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36051 conftest$ac_exeext conftest.$ac_ext 36052fi 36053{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 36054echo "${ECHO_T}$ac_cv_func_strndup" >&6; } 36055if test $ac_cv_func_strndup = yes; then 36056 36057cat >>confdefs.h <<_ACEOF 36058#define HAVE_STRNDUP 1 36059_ACEOF 36060 36061else 36062 case " $LIBOBJS " in 36063 *" strndup.$ac_objext "* ) ;; 36064 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 36065 ;; 36066esac 36067 36068fi 36069{ echo "$as_me:$LINENO: checking for strnlen" >&5 36070echo $ECHO_N "checking for strnlen... $ECHO_C" >&6; } 36071if test "${ac_cv_func_strnlen+set}" = set; then 36072 echo $ECHO_N "(cached) $ECHO_C" >&6 36073else 36074 cat >conftest.$ac_ext <<_ACEOF 36075/* confdefs.h. */ 36076_ACEOF 36077cat confdefs.h >>conftest.$ac_ext 36078cat >>conftest.$ac_ext <<_ACEOF 36079/* end confdefs.h. */ 36080/* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen. 36081 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36082#define strnlen innocuous_strnlen 36083 36084/* System header to define __stub macros and hopefully few prototypes, 36085 which can conflict with char strnlen (); below. 36086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36087 <limits.h> exists even on freestanding compilers. */ 36088 36089#ifdef __STDC__ 36090# include <limits.h> 36091#else 36092# include <assert.h> 36093#endif 36094 36095#undef strnlen 36096 36097/* Override any GCC internal prototype to avoid an error. 36098 Use char because int might match the return type of a GCC 36099 builtin and then its argument prototype would still apply. */ 36100#ifdef __cplusplus 36101extern "C" 36102#endif 36103char strnlen (); 36104/* The GNU C library defines this for functions which it implements 36105 to always fail with ENOSYS. Some functions are actually named 36106 something starting with __ and the normal name is an alias. */ 36107#if defined __stub_strnlen || defined __stub___strnlen 36108choke me 36109#endif 36110 36111int 36112main () 36113{ 36114return strnlen (); 36115 ; 36116 return 0; 36117} 36118_ACEOF 36119rm -f conftest.$ac_objext conftest$ac_exeext 36120if { (ac_try="$ac_link" 36121case "(($ac_try" in 36122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36123 *) ac_try_echo=$ac_try;; 36124esac 36125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36126 (eval "$ac_link") 2>conftest.er1 36127 ac_status=$? 36128 grep -v '^ *+' conftest.er1 >conftest.err 36129 rm -f conftest.er1 36130 cat conftest.err >&5 36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36132 (exit $ac_status); } && { 36133 test -z "$ac_c_werror_flag" || 36134 test ! -s conftest.err 36135 } && test -s conftest$ac_exeext && 36136 $as_test_x conftest$ac_exeext; then 36137 ac_cv_func_strnlen=yes 36138else 36139 echo "$as_me: failed program was:" >&5 36140sed 's/^/| /' conftest.$ac_ext >&5 36141 36142 ac_cv_func_strnlen=no 36143fi 36144 36145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36146 conftest$ac_exeext conftest.$ac_ext 36147fi 36148{ echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5 36149echo "${ECHO_T}$ac_cv_func_strnlen" >&6; } 36150if test $ac_cv_func_strnlen = yes; then 36151 36152cat >>confdefs.h <<_ACEOF 36153#define HAVE_STRNLEN 1 36154_ACEOF 36155 36156else 36157 case " $LIBOBJS " in 36158 *" strnlen.$ac_objext "* ) ;; 36159 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 36160 ;; 36161esac 36162 36163fi 36164{ echo "$as_me:$LINENO: checking for strptime" >&5 36165echo $ECHO_N "checking for strptime... $ECHO_C" >&6; } 36166if test "${ac_cv_func_strptime+set}" = set; then 36167 echo $ECHO_N "(cached) $ECHO_C" >&6 36168else 36169 cat >conftest.$ac_ext <<_ACEOF 36170/* confdefs.h. */ 36171_ACEOF 36172cat confdefs.h >>conftest.$ac_ext 36173cat >>conftest.$ac_ext <<_ACEOF 36174/* end confdefs.h. */ 36175/* Define strptime to an innocuous variant, in case <limits.h> declares strptime. 36176 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36177#define strptime innocuous_strptime 36178 36179/* System header to define __stub macros and hopefully few prototypes, 36180 which can conflict with char strptime (); below. 36181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36182 <limits.h> exists even on freestanding compilers. */ 36183 36184#ifdef __STDC__ 36185# include <limits.h> 36186#else 36187# include <assert.h> 36188#endif 36189 36190#undef strptime 36191 36192/* Override any GCC internal prototype to avoid an error. 36193 Use char because int might match the return type of a GCC 36194 builtin and then its argument prototype would still apply. */ 36195#ifdef __cplusplus 36196extern "C" 36197#endif 36198char strptime (); 36199/* The GNU C library defines this for functions which it implements 36200 to always fail with ENOSYS. Some functions are actually named 36201 something starting with __ and the normal name is an alias. */ 36202#if defined __stub_strptime || defined __stub___strptime 36203choke me 36204#endif 36205 36206int 36207main () 36208{ 36209return strptime (); 36210 ; 36211 return 0; 36212} 36213_ACEOF 36214rm -f conftest.$ac_objext conftest$ac_exeext 36215if { (ac_try="$ac_link" 36216case "(($ac_try" in 36217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36218 *) ac_try_echo=$ac_try;; 36219esac 36220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36221 (eval "$ac_link") 2>conftest.er1 36222 ac_status=$? 36223 grep -v '^ *+' conftest.er1 >conftest.err 36224 rm -f conftest.er1 36225 cat conftest.err >&5 36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36227 (exit $ac_status); } && { 36228 test -z "$ac_c_werror_flag" || 36229 test ! -s conftest.err 36230 } && test -s conftest$ac_exeext && 36231 $as_test_x conftest$ac_exeext; then 36232 ac_cv_func_strptime=yes 36233else 36234 echo "$as_me: failed program was:" >&5 36235sed 's/^/| /' conftest.$ac_ext >&5 36236 36237 ac_cv_func_strptime=no 36238fi 36239 36240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36241 conftest$ac_exeext conftest.$ac_ext 36242fi 36243{ echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5 36244echo "${ECHO_T}$ac_cv_func_strptime" >&6; } 36245if test $ac_cv_func_strptime = yes; then 36246 36247cat >>confdefs.h <<_ACEOF 36248#define HAVE_STRPTIME 1 36249_ACEOF 36250 36251else 36252 case " $LIBOBJS " in 36253 *" strptime.$ac_objext "* ) ;; 36254 *) LIBOBJS="$LIBOBJS strptime.$ac_objext" 36255 ;; 36256esac 36257 36258fi 36259{ echo "$as_me:$LINENO: checking for strsep" >&5 36260echo $ECHO_N "checking for strsep... $ECHO_C" >&6; } 36261if test "${ac_cv_func_strsep+set}" = set; then 36262 echo $ECHO_N "(cached) $ECHO_C" >&6 36263else 36264 cat >conftest.$ac_ext <<_ACEOF 36265/* confdefs.h. */ 36266_ACEOF 36267cat confdefs.h >>conftest.$ac_ext 36268cat >>conftest.$ac_ext <<_ACEOF 36269/* end confdefs.h. */ 36270/* Define strsep to an innocuous variant, in case <limits.h> declares strsep. 36271 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36272#define strsep innocuous_strsep 36273 36274/* System header to define __stub macros and hopefully few prototypes, 36275 which can conflict with char strsep (); below. 36276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36277 <limits.h> exists even on freestanding compilers. */ 36278 36279#ifdef __STDC__ 36280# include <limits.h> 36281#else 36282# include <assert.h> 36283#endif 36284 36285#undef strsep 36286 36287/* Override any GCC internal prototype to avoid an error. 36288 Use char because int might match the return type of a GCC 36289 builtin and then its argument prototype would still apply. */ 36290#ifdef __cplusplus 36291extern "C" 36292#endif 36293char strsep (); 36294/* The GNU C library defines this for functions which it implements 36295 to always fail with ENOSYS. Some functions are actually named 36296 something starting with __ and the normal name is an alias. */ 36297#if defined __stub_strsep || defined __stub___strsep 36298choke me 36299#endif 36300 36301int 36302main () 36303{ 36304return strsep (); 36305 ; 36306 return 0; 36307} 36308_ACEOF 36309rm -f conftest.$ac_objext conftest$ac_exeext 36310if { (ac_try="$ac_link" 36311case "(($ac_try" in 36312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36313 *) ac_try_echo=$ac_try;; 36314esac 36315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36316 (eval "$ac_link") 2>conftest.er1 36317 ac_status=$? 36318 grep -v '^ *+' conftest.er1 >conftest.err 36319 rm -f conftest.er1 36320 cat conftest.err >&5 36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36322 (exit $ac_status); } && { 36323 test -z "$ac_c_werror_flag" || 36324 test ! -s conftest.err 36325 } && test -s conftest$ac_exeext && 36326 $as_test_x conftest$ac_exeext; then 36327 ac_cv_func_strsep=yes 36328else 36329 echo "$as_me: failed program was:" >&5 36330sed 's/^/| /' conftest.$ac_ext >&5 36331 36332 ac_cv_func_strsep=no 36333fi 36334 36335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36336 conftest$ac_exeext conftest.$ac_ext 36337fi 36338{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 36339echo "${ECHO_T}$ac_cv_func_strsep" >&6; } 36340if test $ac_cv_func_strsep = yes; then 36341 36342cat >>confdefs.h <<_ACEOF 36343#define HAVE_STRSEP 1 36344_ACEOF 36345 36346else 36347 case " $LIBOBJS " in 36348 *" strsep.$ac_objext "* ) ;; 36349 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 36350 ;; 36351esac 36352 36353fi 36354{ echo "$as_me:$LINENO: checking for strsep_copy" >&5 36355echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6; } 36356if test "${ac_cv_func_strsep_copy+set}" = set; then 36357 echo $ECHO_N "(cached) $ECHO_C" >&6 36358else 36359 cat >conftest.$ac_ext <<_ACEOF 36360/* confdefs.h. */ 36361_ACEOF 36362cat confdefs.h >>conftest.$ac_ext 36363cat >>conftest.$ac_ext <<_ACEOF 36364/* end confdefs.h. */ 36365/* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy. 36366 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36367#define strsep_copy innocuous_strsep_copy 36368 36369/* System header to define __stub macros and hopefully few prototypes, 36370 which can conflict with char strsep_copy (); below. 36371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36372 <limits.h> exists even on freestanding compilers. */ 36373 36374#ifdef __STDC__ 36375# include <limits.h> 36376#else 36377# include <assert.h> 36378#endif 36379 36380#undef strsep_copy 36381 36382/* Override any GCC internal prototype to avoid an error. 36383 Use char because int might match the return type of a GCC 36384 builtin and then its argument prototype would still apply. */ 36385#ifdef __cplusplus 36386extern "C" 36387#endif 36388char strsep_copy (); 36389/* The GNU C library defines this for functions which it implements 36390 to always fail with ENOSYS. Some functions are actually named 36391 something starting with __ and the normal name is an alias. */ 36392#if defined __stub_strsep_copy || defined __stub___strsep_copy 36393choke me 36394#endif 36395 36396int 36397main () 36398{ 36399return strsep_copy (); 36400 ; 36401 return 0; 36402} 36403_ACEOF 36404rm -f conftest.$ac_objext conftest$ac_exeext 36405if { (ac_try="$ac_link" 36406case "(($ac_try" in 36407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36408 *) ac_try_echo=$ac_try;; 36409esac 36410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36411 (eval "$ac_link") 2>conftest.er1 36412 ac_status=$? 36413 grep -v '^ *+' conftest.er1 >conftest.err 36414 rm -f conftest.er1 36415 cat conftest.err >&5 36416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36417 (exit $ac_status); } && { 36418 test -z "$ac_c_werror_flag" || 36419 test ! -s conftest.err 36420 } && test -s conftest$ac_exeext && 36421 $as_test_x conftest$ac_exeext; then 36422 ac_cv_func_strsep_copy=yes 36423else 36424 echo "$as_me: failed program was:" >&5 36425sed 's/^/| /' conftest.$ac_ext >&5 36426 36427 ac_cv_func_strsep_copy=no 36428fi 36429 36430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36431 conftest$ac_exeext conftest.$ac_ext 36432fi 36433{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5 36434echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6; } 36435if test $ac_cv_func_strsep_copy = yes; then 36436 36437cat >>confdefs.h <<_ACEOF 36438#define HAVE_STRSEP_COPY 1 36439_ACEOF 36440 36441else 36442 case " $LIBOBJS " in 36443 *" strsep_copy.$ac_objext "* ) ;; 36444 *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 36445 ;; 36446esac 36447 36448fi 36449{ echo "$as_me:$LINENO: checking for strtok_r" >&5 36450echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6; } 36451if test "${ac_cv_func_strtok_r+set}" = set; then 36452 echo $ECHO_N "(cached) $ECHO_C" >&6 36453else 36454 cat >conftest.$ac_ext <<_ACEOF 36455/* confdefs.h. */ 36456_ACEOF 36457cat confdefs.h >>conftest.$ac_ext 36458cat >>conftest.$ac_ext <<_ACEOF 36459/* end confdefs.h. */ 36460/* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r. 36461 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36462#define strtok_r innocuous_strtok_r 36463 36464/* System header to define __stub macros and hopefully few prototypes, 36465 which can conflict with char strtok_r (); below. 36466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36467 <limits.h> exists even on freestanding compilers. */ 36468 36469#ifdef __STDC__ 36470# include <limits.h> 36471#else 36472# include <assert.h> 36473#endif 36474 36475#undef strtok_r 36476 36477/* Override any GCC internal prototype to avoid an error. 36478 Use char because int might match the return type of a GCC 36479 builtin and then its argument prototype would still apply. */ 36480#ifdef __cplusplus 36481extern "C" 36482#endif 36483char strtok_r (); 36484/* The GNU C library defines this for functions which it implements 36485 to always fail with ENOSYS. Some functions are actually named 36486 something starting with __ and the normal name is an alias. */ 36487#if defined __stub_strtok_r || defined __stub___strtok_r 36488choke me 36489#endif 36490 36491int 36492main () 36493{ 36494return strtok_r (); 36495 ; 36496 return 0; 36497} 36498_ACEOF 36499rm -f conftest.$ac_objext conftest$ac_exeext 36500if { (ac_try="$ac_link" 36501case "(($ac_try" in 36502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36503 *) ac_try_echo=$ac_try;; 36504esac 36505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36506 (eval "$ac_link") 2>conftest.er1 36507 ac_status=$? 36508 grep -v '^ *+' conftest.er1 >conftest.err 36509 rm -f conftest.er1 36510 cat conftest.err >&5 36511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36512 (exit $ac_status); } && { 36513 test -z "$ac_c_werror_flag" || 36514 test ! -s conftest.err 36515 } && test -s conftest$ac_exeext && 36516 $as_test_x conftest$ac_exeext; then 36517 ac_cv_func_strtok_r=yes 36518else 36519 echo "$as_me: failed program was:" >&5 36520sed 's/^/| /' conftest.$ac_ext >&5 36521 36522 ac_cv_func_strtok_r=no 36523fi 36524 36525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36526 conftest$ac_exeext conftest.$ac_ext 36527fi 36528{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5 36529echo "${ECHO_T}$ac_cv_func_strtok_r" >&6; } 36530if test $ac_cv_func_strtok_r = yes; then 36531 36532cat >>confdefs.h <<_ACEOF 36533#define HAVE_STRTOK_R 1 36534_ACEOF 36535 36536else 36537 case " $LIBOBJS " in 36538 *" strtok_r.$ac_objext "* ) ;; 36539 *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 36540 ;; 36541esac 36542 36543fi 36544{ echo "$as_me:$LINENO: checking for strupr" >&5 36545echo $ECHO_N "checking for strupr... $ECHO_C" >&6; } 36546if test "${ac_cv_func_strupr+set}" = set; then 36547 echo $ECHO_N "(cached) $ECHO_C" >&6 36548else 36549 cat >conftest.$ac_ext <<_ACEOF 36550/* confdefs.h. */ 36551_ACEOF 36552cat confdefs.h >>conftest.$ac_ext 36553cat >>conftest.$ac_ext <<_ACEOF 36554/* end confdefs.h. */ 36555/* Define strupr to an innocuous variant, in case <limits.h> declares strupr. 36556 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36557#define strupr innocuous_strupr 36558 36559/* System header to define __stub macros and hopefully few prototypes, 36560 which can conflict with char strupr (); below. 36561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36562 <limits.h> exists even on freestanding compilers. */ 36563 36564#ifdef __STDC__ 36565# include <limits.h> 36566#else 36567# include <assert.h> 36568#endif 36569 36570#undef strupr 36571 36572/* Override any GCC internal prototype to avoid an error. 36573 Use char because int might match the return type of a GCC 36574 builtin and then its argument prototype would still apply. */ 36575#ifdef __cplusplus 36576extern "C" 36577#endif 36578char strupr (); 36579/* The GNU C library defines this for functions which it implements 36580 to always fail with ENOSYS. Some functions are actually named 36581 something starting with __ and the normal name is an alias. */ 36582#if defined __stub_strupr || defined __stub___strupr 36583choke me 36584#endif 36585 36586int 36587main () 36588{ 36589return strupr (); 36590 ; 36591 return 0; 36592} 36593_ACEOF 36594rm -f conftest.$ac_objext conftest$ac_exeext 36595if { (ac_try="$ac_link" 36596case "(($ac_try" in 36597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36598 *) ac_try_echo=$ac_try;; 36599esac 36600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36601 (eval "$ac_link") 2>conftest.er1 36602 ac_status=$? 36603 grep -v '^ *+' conftest.er1 >conftest.err 36604 rm -f conftest.er1 36605 cat conftest.err >&5 36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36607 (exit $ac_status); } && { 36608 test -z "$ac_c_werror_flag" || 36609 test ! -s conftest.err 36610 } && test -s conftest$ac_exeext && 36611 $as_test_x conftest$ac_exeext; then 36612 ac_cv_func_strupr=yes 36613else 36614 echo "$as_me: failed program was:" >&5 36615sed 's/^/| /' conftest.$ac_ext >&5 36616 36617 ac_cv_func_strupr=no 36618fi 36619 36620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36621 conftest$ac_exeext conftest.$ac_ext 36622fi 36623{ echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5 36624echo "${ECHO_T}$ac_cv_func_strupr" >&6; } 36625if test $ac_cv_func_strupr = yes; then 36626 36627cat >>confdefs.h <<_ACEOF 36628#define HAVE_STRUPR 1 36629_ACEOF 36630 36631else 36632 case " $LIBOBJS " in 36633 *" strupr.$ac_objext "* ) ;; 36634 *) LIBOBJS="$LIBOBJS strupr.$ac_objext" 36635 ;; 36636esac 36637 36638fi 36639{ echo "$as_me:$LINENO: checking for swab" >&5 36640echo $ECHO_N "checking for swab... $ECHO_C" >&6; } 36641if test "${ac_cv_func_swab+set}" = set; then 36642 echo $ECHO_N "(cached) $ECHO_C" >&6 36643else 36644 cat >conftest.$ac_ext <<_ACEOF 36645/* confdefs.h. */ 36646_ACEOF 36647cat confdefs.h >>conftest.$ac_ext 36648cat >>conftest.$ac_ext <<_ACEOF 36649/* end confdefs.h. */ 36650/* Define swab to an innocuous variant, in case <limits.h> declares swab. 36651 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36652#define swab innocuous_swab 36653 36654/* System header to define __stub macros and hopefully few prototypes, 36655 which can conflict with char swab (); below. 36656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36657 <limits.h> exists even on freestanding compilers. */ 36658 36659#ifdef __STDC__ 36660# include <limits.h> 36661#else 36662# include <assert.h> 36663#endif 36664 36665#undef swab 36666 36667/* Override any GCC internal prototype to avoid an error. 36668 Use char because int might match the return type of a GCC 36669 builtin and then its argument prototype would still apply. */ 36670#ifdef __cplusplus 36671extern "C" 36672#endif 36673char swab (); 36674/* The GNU C library defines this for functions which it implements 36675 to always fail with ENOSYS. Some functions are actually named 36676 something starting with __ and the normal name is an alias. */ 36677#if defined __stub_swab || defined __stub___swab 36678choke me 36679#endif 36680 36681int 36682main () 36683{ 36684return swab (); 36685 ; 36686 return 0; 36687} 36688_ACEOF 36689rm -f conftest.$ac_objext conftest$ac_exeext 36690if { (ac_try="$ac_link" 36691case "(($ac_try" in 36692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36693 *) ac_try_echo=$ac_try;; 36694esac 36695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36696 (eval "$ac_link") 2>conftest.er1 36697 ac_status=$? 36698 grep -v '^ *+' conftest.er1 >conftest.err 36699 rm -f conftest.er1 36700 cat conftest.err >&5 36701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36702 (exit $ac_status); } && { 36703 test -z "$ac_c_werror_flag" || 36704 test ! -s conftest.err 36705 } && test -s conftest$ac_exeext && 36706 $as_test_x conftest$ac_exeext; then 36707 ac_cv_func_swab=yes 36708else 36709 echo "$as_me: failed program was:" >&5 36710sed 's/^/| /' conftest.$ac_ext >&5 36711 36712 ac_cv_func_swab=no 36713fi 36714 36715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36716 conftest$ac_exeext conftest.$ac_ext 36717fi 36718{ echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5 36719echo "${ECHO_T}$ac_cv_func_swab" >&6; } 36720if test $ac_cv_func_swab = yes; then 36721 36722cat >>confdefs.h <<_ACEOF 36723#define HAVE_SWAB 1 36724_ACEOF 36725 36726else 36727 case " $LIBOBJS " in 36728 *" swab.$ac_objext "* ) ;; 36729 *) LIBOBJS="$LIBOBJS swab.$ac_objext" 36730 ;; 36731esac 36732 36733fi 36734{ echo "$as_me:$LINENO: checking for timegm" >&5 36735echo $ECHO_N "checking for timegm... $ECHO_C" >&6; } 36736if test "${ac_cv_func_timegm+set}" = set; then 36737 echo $ECHO_N "(cached) $ECHO_C" >&6 36738else 36739 cat >conftest.$ac_ext <<_ACEOF 36740/* confdefs.h. */ 36741_ACEOF 36742cat confdefs.h >>conftest.$ac_ext 36743cat >>conftest.$ac_ext <<_ACEOF 36744/* end confdefs.h. */ 36745/* Define timegm to an innocuous variant, in case <limits.h> declares timegm. 36746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36747#define timegm innocuous_timegm 36748 36749/* System header to define __stub macros and hopefully few prototypes, 36750 which can conflict with char timegm (); below. 36751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36752 <limits.h> exists even on freestanding compilers. */ 36753 36754#ifdef __STDC__ 36755# include <limits.h> 36756#else 36757# include <assert.h> 36758#endif 36759 36760#undef timegm 36761 36762/* Override any GCC internal prototype to avoid an error. 36763 Use char because int might match the return type of a GCC 36764 builtin and then its argument prototype would still apply. */ 36765#ifdef __cplusplus 36766extern "C" 36767#endif 36768char timegm (); 36769/* The GNU C library defines this for functions which it implements 36770 to always fail with ENOSYS. Some functions are actually named 36771 something starting with __ and the normal name is an alias. */ 36772#if defined __stub_timegm || defined __stub___timegm 36773choke me 36774#endif 36775 36776int 36777main () 36778{ 36779return timegm (); 36780 ; 36781 return 0; 36782} 36783_ACEOF 36784rm -f conftest.$ac_objext conftest$ac_exeext 36785if { (ac_try="$ac_link" 36786case "(($ac_try" in 36787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36788 *) ac_try_echo=$ac_try;; 36789esac 36790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36791 (eval "$ac_link") 2>conftest.er1 36792 ac_status=$? 36793 grep -v '^ *+' conftest.er1 >conftest.err 36794 rm -f conftest.er1 36795 cat conftest.err >&5 36796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36797 (exit $ac_status); } && { 36798 test -z "$ac_c_werror_flag" || 36799 test ! -s conftest.err 36800 } && test -s conftest$ac_exeext && 36801 $as_test_x conftest$ac_exeext; then 36802 ac_cv_func_timegm=yes 36803else 36804 echo "$as_me: failed program was:" >&5 36805sed 's/^/| /' conftest.$ac_ext >&5 36806 36807 ac_cv_func_timegm=no 36808fi 36809 36810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36811 conftest$ac_exeext conftest.$ac_ext 36812fi 36813{ echo "$as_me:$LINENO: result: $ac_cv_func_timegm" >&5 36814echo "${ECHO_T}$ac_cv_func_timegm" >&6; } 36815if test $ac_cv_func_timegm = yes; then 36816 36817cat >>confdefs.h <<_ACEOF 36818#define HAVE_TIMEGM 1 36819_ACEOF 36820 36821else 36822 case " $LIBOBJS " in 36823 *" timegm.$ac_objext "* ) ;; 36824 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 36825 ;; 36826esac 36827 36828fi 36829{ echo "$as_me:$LINENO: checking for unsetenv" >&5 36830echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6; } 36831if test "${ac_cv_func_unsetenv+set}" = set; then 36832 echo $ECHO_N "(cached) $ECHO_C" >&6 36833else 36834 cat >conftest.$ac_ext <<_ACEOF 36835/* confdefs.h. */ 36836_ACEOF 36837cat confdefs.h >>conftest.$ac_ext 36838cat >>conftest.$ac_ext <<_ACEOF 36839/* end confdefs.h. */ 36840/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv. 36841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36842#define unsetenv innocuous_unsetenv 36843 36844/* System header to define __stub macros and hopefully few prototypes, 36845 which can conflict with char unsetenv (); below. 36846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36847 <limits.h> exists even on freestanding compilers. */ 36848 36849#ifdef __STDC__ 36850# include <limits.h> 36851#else 36852# include <assert.h> 36853#endif 36854 36855#undef unsetenv 36856 36857/* Override any GCC internal prototype to avoid an error. 36858 Use char because int might match the return type of a GCC 36859 builtin and then its argument prototype would still apply. */ 36860#ifdef __cplusplus 36861extern "C" 36862#endif 36863char unsetenv (); 36864/* The GNU C library defines this for functions which it implements 36865 to always fail with ENOSYS. Some functions are actually named 36866 something starting with __ and the normal name is an alias. */ 36867#if defined __stub_unsetenv || defined __stub___unsetenv 36868choke me 36869#endif 36870 36871int 36872main () 36873{ 36874return unsetenv (); 36875 ; 36876 return 0; 36877} 36878_ACEOF 36879rm -f conftest.$ac_objext conftest$ac_exeext 36880if { (ac_try="$ac_link" 36881case "(($ac_try" in 36882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36883 *) ac_try_echo=$ac_try;; 36884esac 36885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36886 (eval "$ac_link") 2>conftest.er1 36887 ac_status=$? 36888 grep -v '^ *+' conftest.er1 >conftest.err 36889 rm -f conftest.er1 36890 cat conftest.err >&5 36891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36892 (exit $ac_status); } && { 36893 test -z "$ac_c_werror_flag" || 36894 test ! -s conftest.err 36895 } && test -s conftest$ac_exeext && 36896 $as_test_x conftest$ac_exeext; then 36897 ac_cv_func_unsetenv=yes 36898else 36899 echo "$as_me: failed program was:" >&5 36900sed 's/^/| /' conftest.$ac_ext >&5 36901 36902 ac_cv_func_unsetenv=no 36903fi 36904 36905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 36906 conftest$ac_exeext conftest.$ac_ext 36907fi 36908{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5 36909echo "${ECHO_T}$ac_cv_func_unsetenv" >&6; } 36910if test $ac_cv_func_unsetenv = yes; then 36911 36912cat >>confdefs.h <<_ACEOF 36913#define HAVE_UNSETENV 1 36914_ACEOF 36915 36916else 36917 case " $LIBOBJS " in 36918 *" unsetenv.$ac_objext "* ) ;; 36919 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 36920 ;; 36921esac 36922 36923fi 36924{ echo "$as_me:$LINENO: checking for verr" >&5 36925echo $ECHO_N "checking for verr... $ECHO_C" >&6; } 36926if test "${ac_cv_func_verr+set}" = set; then 36927 echo $ECHO_N "(cached) $ECHO_C" >&6 36928else 36929 cat >conftest.$ac_ext <<_ACEOF 36930/* confdefs.h. */ 36931_ACEOF 36932cat confdefs.h >>conftest.$ac_ext 36933cat >>conftest.$ac_ext <<_ACEOF 36934/* end confdefs.h. */ 36935/* Define verr to an innocuous variant, in case <limits.h> declares verr. 36936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 36937#define verr innocuous_verr 36938 36939/* System header to define __stub macros and hopefully few prototypes, 36940 which can conflict with char verr (); below. 36941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36942 <limits.h> exists even on freestanding compilers. */ 36943 36944#ifdef __STDC__ 36945# include <limits.h> 36946#else 36947# include <assert.h> 36948#endif 36949 36950#undef verr 36951 36952/* Override any GCC internal prototype to avoid an error. 36953 Use char because int might match the return type of a GCC 36954 builtin and then its argument prototype would still apply. */ 36955#ifdef __cplusplus 36956extern "C" 36957#endif 36958char verr (); 36959/* The GNU C library defines this for functions which it implements 36960 to always fail with ENOSYS. Some functions are actually named 36961 something starting with __ and the normal name is an alias. */ 36962#if defined __stub_verr || defined __stub___verr 36963choke me 36964#endif 36965 36966int 36967main () 36968{ 36969return verr (); 36970 ; 36971 return 0; 36972} 36973_ACEOF 36974rm -f conftest.$ac_objext conftest$ac_exeext 36975if { (ac_try="$ac_link" 36976case "(($ac_try" in 36977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36978 *) ac_try_echo=$ac_try;; 36979esac 36980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 36981 (eval "$ac_link") 2>conftest.er1 36982 ac_status=$? 36983 grep -v '^ *+' conftest.er1 >conftest.err 36984 rm -f conftest.er1 36985 cat conftest.err >&5 36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36987 (exit $ac_status); } && { 36988 test -z "$ac_c_werror_flag" || 36989 test ! -s conftest.err 36990 } && test -s conftest$ac_exeext && 36991 $as_test_x conftest$ac_exeext; then 36992 ac_cv_func_verr=yes 36993else 36994 echo "$as_me: failed program was:" >&5 36995sed 's/^/| /' conftest.$ac_ext >&5 36996 36997 ac_cv_func_verr=no 36998fi 36999 37000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37001 conftest$ac_exeext conftest.$ac_ext 37002fi 37003{ echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5 37004echo "${ECHO_T}$ac_cv_func_verr" >&6; } 37005if test $ac_cv_func_verr = yes; then 37006 37007cat >>confdefs.h <<_ACEOF 37008#define HAVE_VERR 1 37009_ACEOF 37010 37011else 37012 case " $LIBOBJS " in 37013 *" verr.$ac_objext "* ) ;; 37014 *) LIBOBJS="$LIBOBJS verr.$ac_objext" 37015 ;; 37016esac 37017 37018fi 37019{ echo "$as_me:$LINENO: checking for verrx" >&5 37020echo $ECHO_N "checking for verrx... $ECHO_C" >&6; } 37021if test "${ac_cv_func_verrx+set}" = set; then 37022 echo $ECHO_N "(cached) $ECHO_C" >&6 37023else 37024 cat >conftest.$ac_ext <<_ACEOF 37025/* confdefs.h. */ 37026_ACEOF 37027cat confdefs.h >>conftest.$ac_ext 37028cat >>conftest.$ac_ext <<_ACEOF 37029/* end confdefs.h. */ 37030/* Define verrx to an innocuous variant, in case <limits.h> declares verrx. 37031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37032#define verrx innocuous_verrx 37033 37034/* System header to define __stub macros and hopefully few prototypes, 37035 which can conflict with char verrx (); below. 37036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37037 <limits.h> exists even on freestanding compilers. */ 37038 37039#ifdef __STDC__ 37040# include <limits.h> 37041#else 37042# include <assert.h> 37043#endif 37044 37045#undef verrx 37046 37047/* Override any GCC internal prototype to avoid an error. 37048 Use char because int might match the return type of a GCC 37049 builtin and then its argument prototype would still apply. */ 37050#ifdef __cplusplus 37051extern "C" 37052#endif 37053char verrx (); 37054/* The GNU C library defines this for functions which it implements 37055 to always fail with ENOSYS. Some functions are actually named 37056 something starting with __ and the normal name is an alias. */ 37057#if defined __stub_verrx || defined __stub___verrx 37058choke me 37059#endif 37060 37061int 37062main () 37063{ 37064return verrx (); 37065 ; 37066 return 0; 37067} 37068_ACEOF 37069rm -f conftest.$ac_objext conftest$ac_exeext 37070if { (ac_try="$ac_link" 37071case "(($ac_try" in 37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37073 *) ac_try_echo=$ac_try;; 37074esac 37075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37076 (eval "$ac_link") 2>conftest.er1 37077 ac_status=$? 37078 grep -v '^ *+' conftest.er1 >conftest.err 37079 rm -f conftest.er1 37080 cat conftest.err >&5 37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37082 (exit $ac_status); } && { 37083 test -z "$ac_c_werror_flag" || 37084 test ! -s conftest.err 37085 } && test -s conftest$ac_exeext && 37086 $as_test_x conftest$ac_exeext; then 37087 ac_cv_func_verrx=yes 37088else 37089 echo "$as_me: failed program was:" >&5 37090sed 's/^/| /' conftest.$ac_ext >&5 37091 37092 ac_cv_func_verrx=no 37093fi 37094 37095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37096 conftest$ac_exeext conftest.$ac_ext 37097fi 37098{ echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5 37099echo "${ECHO_T}$ac_cv_func_verrx" >&6; } 37100if test $ac_cv_func_verrx = yes; then 37101 37102cat >>confdefs.h <<_ACEOF 37103#define HAVE_VERRX 1 37104_ACEOF 37105 37106else 37107 case " $LIBOBJS " in 37108 *" verrx.$ac_objext "* ) ;; 37109 *) LIBOBJS="$LIBOBJS verrx.$ac_objext" 37110 ;; 37111esac 37112 37113fi 37114{ echo "$as_me:$LINENO: checking for vsyslog" >&5 37115echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6; } 37116if test "${ac_cv_func_vsyslog+set}" = set; then 37117 echo $ECHO_N "(cached) $ECHO_C" >&6 37118else 37119 cat >conftest.$ac_ext <<_ACEOF 37120/* confdefs.h. */ 37121_ACEOF 37122cat confdefs.h >>conftest.$ac_ext 37123cat >>conftest.$ac_ext <<_ACEOF 37124/* end confdefs.h. */ 37125/* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog. 37126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37127#define vsyslog innocuous_vsyslog 37128 37129/* System header to define __stub macros and hopefully few prototypes, 37130 which can conflict with char vsyslog (); below. 37131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37132 <limits.h> exists even on freestanding compilers. */ 37133 37134#ifdef __STDC__ 37135# include <limits.h> 37136#else 37137# include <assert.h> 37138#endif 37139 37140#undef vsyslog 37141 37142/* Override any GCC internal prototype to avoid an error. 37143 Use char because int might match the return type of a GCC 37144 builtin and then its argument prototype would still apply. */ 37145#ifdef __cplusplus 37146extern "C" 37147#endif 37148char vsyslog (); 37149/* The GNU C library defines this for functions which it implements 37150 to always fail with ENOSYS. Some functions are actually named 37151 something starting with __ and the normal name is an alias. */ 37152#if defined __stub_vsyslog || defined __stub___vsyslog 37153choke me 37154#endif 37155 37156int 37157main () 37158{ 37159return vsyslog (); 37160 ; 37161 return 0; 37162} 37163_ACEOF 37164rm -f conftest.$ac_objext conftest$ac_exeext 37165if { (ac_try="$ac_link" 37166case "(($ac_try" in 37167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37168 *) ac_try_echo=$ac_try;; 37169esac 37170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37171 (eval "$ac_link") 2>conftest.er1 37172 ac_status=$? 37173 grep -v '^ *+' conftest.er1 >conftest.err 37174 rm -f conftest.er1 37175 cat conftest.err >&5 37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37177 (exit $ac_status); } && { 37178 test -z "$ac_c_werror_flag" || 37179 test ! -s conftest.err 37180 } && test -s conftest$ac_exeext && 37181 $as_test_x conftest$ac_exeext; then 37182 ac_cv_func_vsyslog=yes 37183else 37184 echo "$as_me: failed program was:" >&5 37185sed 's/^/| /' conftest.$ac_ext >&5 37186 37187 ac_cv_func_vsyslog=no 37188fi 37189 37190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37191 conftest$ac_exeext conftest.$ac_ext 37192fi 37193{ echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5 37194echo "${ECHO_T}$ac_cv_func_vsyslog" >&6; } 37195if test $ac_cv_func_vsyslog = yes; then 37196 37197cat >>confdefs.h <<_ACEOF 37198#define HAVE_VSYSLOG 1 37199_ACEOF 37200 37201else 37202 case " $LIBOBJS " in 37203 *" vsyslog.$ac_objext "* ) ;; 37204 *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 37205 ;; 37206esac 37207 37208fi 37209{ echo "$as_me:$LINENO: checking for vwarn" >&5 37210echo $ECHO_N "checking for vwarn... $ECHO_C" >&6; } 37211if test "${ac_cv_func_vwarn+set}" = set; then 37212 echo $ECHO_N "(cached) $ECHO_C" >&6 37213else 37214 cat >conftest.$ac_ext <<_ACEOF 37215/* confdefs.h. */ 37216_ACEOF 37217cat confdefs.h >>conftest.$ac_ext 37218cat >>conftest.$ac_ext <<_ACEOF 37219/* end confdefs.h. */ 37220/* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn. 37221 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37222#define vwarn innocuous_vwarn 37223 37224/* System header to define __stub macros and hopefully few prototypes, 37225 which can conflict with char vwarn (); below. 37226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37227 <limits.h> exists even on freestanding compilers. */ 37228 37229#ifdef __STDC__ 37230# include <limits.h> 37231#else 37232# include <assert.h> 37233#endif 37234 37235#undef vwarn 37236 37237/* Override any GCC internal prototype to avoid an error. 37238 Use char because int might match the return type of a GCC 37239 builtin and then its argument prototype would still apply. */ 37240#ifdef __cplusplus 37241extern "C" 37242#endif 37243char vwarn (); 37244/* The GNU C library defines this for functions which it implements 37245 to always fail with ENOSYS. Some functions are actually named 37246 something starting with __ and the normal name is an alias. */ 37247#if defined __stub_vwarn || defined __stub___vwarn 37248choke me 37249#endif 37250 37251int 37252main () 37253{ 37254return vwarn (); 37255 ; 37256 return 0; 37257} 37258_ACEOF 37259rm -f conftest.$ac_objext conftest$ac_exeext 37260if { (ac_try="$ac_link" 37261case "(($ac_try" in 37262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37263 *) ac_try_echo=$ac_try;; 37264esac 37265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37266 (eval "$ac_link") 2>conftest.er1 37267 ac_status=$? 37268 grep -v '^ *+' conftest.er1 >conftest.err 37269 rm -f conftest.er1 37270 cat conftest.err >&5 37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37272 (exit $ac_status); } && { 37273 test -z "$ac_c_werror_flag" || 37274 test ! -s conftest.err 37275 } && test -s conftest$ac_exeext && 37276 $as_test_x conftest$ac_exeext; then 37277 ac_cv_func_vwarn=yes 37278else 37279 echo "$as_me: failed program was:" >&5 37280sed 's/^/| /' conftest.$ac_ext >&5 37281 37282 ac_cv_func_vwarn=no 37283fi 37284 37285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37286 conftest$ac_exeext conftest.$ac_ext 37287fi 37288{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5 37289echo "${ECHO_T}$ac_cv_func_vwarn" >&6; } 37290if test $ac_cv_func_vwarn = yes; then 37291 37292cat >>confdefs.h <<_ACEOF 37293#define HAVE_VWARN 1 37294_ACEOF 37295 37296else 37297 case " $LIBOBJS " in 37298 *" vwarn.$ac_objext "* ) ;; 37299 *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" 37300 ;; 37301esac 37302 37303fi 37304{ echo "$as_me:$LINENO: checking for vwarnx" >&5 37305echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6; } 37306if test "${ac_cv_func_vwarnx+set}" = set; then 37307 echo $ECHO_N "(cached) $ECHO_C" >&6 37308else 37309 cat >conftest.$ac_ext <<_ACEOF 37310/* confdefs.h. */ 37311_ACEOF 37312cat confdefs.h >>conftest.$ac_ext 37313cat >>conftest.$ac_ext <<_ACEOF 37314/* end confdefs.h. */ 37315/* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx. 37316 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37317#define vwarnx innocuous_vwarnx 37318 37319/* System header to define __stub macros and hopefully few prototypes, 37320 which can conflict with char vwarnx (); below. 37321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37322 <limits.h> exists even on freestanding compilers. */ 37323 37324#ifdef __STDC__ 37325# include <limits.h> 37326#else 37327# include <assert.h> 37328#endif 37329 37330#undef vwarnx 37331 37332/* Override any GCC internal prototype to avoid an error. 37333 Use char because int might match the return type of a GCC 37334 builtin and then its argument prototype would still apply. */ 37335#ifdef __cplusplus 37336extern "C" 37337#endif 37338char vwarnx (); 37339/* The GNU C library defines this for functions which it implements 37340 to always fail with ENOSYS. Some functions are actually named 37341 something starting with __ and the normal name is an alias. */ 37342#if defined __stub_vwarnx || defined __stub___vwarnx 37343choke me 37344#endif 37345 37346int 37347main () 37348{ 37349return vwarnx (); 37350 ; 37351 return 0; 37352} 37353_ACEOF 37354rm -f conftest.$ac_objext conftest$ac_exeext 37355if { (ac_try="$ac_link" 37356case "(($ac_try" in 37357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37358 *) ac_try_echo=$ac_try;; 37359esac 37360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37361 (eval "$ac_link") 2>conftest.er1 37362 ac_status=$? 37363 grep -v '^ *+' conftest.er1 >conftest.err 37364 rm -f conftest.er1 37365 cat conftest.err >&5 37366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37367 (exit $ac_status); } && { 37368 test -z "$ac_c_werror_flag" || 37369 test ! -s conftest.err 37370 } && test -s conftest$ac_exeext && 37371 $as_test_x conftest$ac_exeext; then 37372 ac_cv_func_vwarnx=yes 37373else 37374 echo "$as_me: failed program was:" >&5 37375sed 's/^/| /' conftest.$ac_ext >&5 37376 37377 ac_cv_func_vwarnx=no 37378fi 37379 37380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37381 conftest$ac_exeext conftest.$ac_ext 37382fi 37383{ echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5 37384echo "${ECHO_T}$ac_cv_func_vwarnx" >&6; } 37385if test $ac_cv_func_vwarnx = yes; then 37386 37387cat >>confdefs.h <<_ACEOF 37388#define HAVE_VWARNX 1 37389_ACEOF 37390 37391else 37392 case " $LIBOBJS " in 37393 *" vwarnx.$ac_objext "* ) ;; 37394 *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 37395 ;; 37396esac 37397 37398fi 37399{ echo "$as_me:$LINENO: checking for warn" >&5 37400echo $ECHO_N "checking for warn... $ECHO_C" >&6; } 37401if test "${ac_cv_func_warn+set}" = set; then 37402 echo $ECHO_N "(cached) $ECHO_C" >&6 37403else 37404 cat >conftest.$ac_ext <<_ACEOF 37405/* confdefs.h. */ 37406_ACEOF 37407cat confdefs.h >>conftest.$ac_ext 37408cat >>conftest.$ac_ext <<_ACEOF 37409/* end confdefs.h. */ 37410/* Define warn to an innocuous variant, in case <limits.h> declares warn. 37411 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37412#define warn innocuous_warn 37413 37414/* System header to define __stub macros and hopefully few prototypes, 37415 which can conflict with char warn (); below. 37416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37417 <limits.h> exists even on freestanding compilers. */ 37418 37419#ifdef __STDC__ 37420# include <limits.h> 37421#else 37422# include <assert.h> 37423#endif 37424 37425#undef warn 37426 37427/* Override any GCC internal prototype to avoid an error. 37428 Use char because int might match the return type of a GCC 37429 builtin and then its argument prototype would still apply. */ 37430#ifdef __cplusplus 37431extern "C" 37432#endif 37433char warn (); 37434/* The GNU C library defines this for functions which it implements 37435 to always fail with ENOSYS. Some functions are actually named 37436 something starting with __ and the normal name is an alias. */ 37437#if defined __stub_warn || defined __stub___warn 37438choke me 37439#endif 37440 37441int 37442main () 37443{ 37444return warn (); 37445 ; 37446 return 0; 37447} 37448_ACEOF 37449rm -f conftest.$ac_objext conftest$ac_exeext 37450if { (ac_try="$ac_link" 37451case "(($ac_try" in 37452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37453 *) ac_try_echo=$ac_try;; 37454esac 37455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37456 (eval "$ac_link") 2>conftest.er1 37457 ac_status=$? 37458 grep -v '^ *+' conftest.er1 >conftest.err 37459 rm -f conftest.er1 37460 cat conftest.err >&5 37461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37462 (exit $ac_status); } && { 37463 test -z "$ac_c_werror_flag" || 37464 test ! -s conftest.err 37465 } && test -s conftest$ac_exeext && 37466 $as_test_x conftest$ac_exeext; then 37467 ac_cv_func_warn=yes 37468else 37469 echo "$as_me: failed program was:" >&5 37470sed 's/^/| /' conftest.$ac_ext >&5 37471 37472 ac_cv_func_warn=no 37473fi 37474 37475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37476 conftest$ac_exeext conftest.$ac_ext 37477fi 37478{ echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5 37479echo "${ECHO_T}$ac_cv_func_warn" >&6; } 37480if test $ac_cv_func_warn = yes; then 37481 37482cat >>confdefs.h <<_ACEOF 37483#define HAVE_WARN 1 37484_ACEOF 37485 37486else 37487 case " $LIBOBJS " in 37488 *" warn.$ac_objext "* ) ;; 37489 *) LIBOBJS="$LIBOBJS warn.$ac_objext" 37490 ;; 37491esac 37492 37493fi 37494{ echo "$as_me:$LINENO: checking for warnx" >&5 37495echo $ECHO_N "checking for warnx... $ECHO_C" >&6; } 37496if test "${ac_cv_func_warnx+set}" = set; then 37497 echo $ECHO_N "(cached) $ECHO_C" >&6 37498else 37499 cat >conftest.$ac_ext <<_ACEOF 37500/* confdefs.h. */ 37501_ACEOF 37502cat confdefs.h >>conftest.$ac_ext 37503cat >>conftest.$ac_ext <<_ACEOF 37504/* end confdefs.h. */ 37505/* Define warnx to an innocuous variant, in case <limits.h> declares warnx. 37506 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37507#define warnx innocuous_warnx 37508 37509/* System header to define __stub macros and hopefully few prototypes, 37510 which can conflict with char warnx (); below. 37511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37512 <limits.h> exists even on freestanding compilers. */ 37513 37514#ifdef __STDC__ 37515# include <limits.h> 37516#else 37517# include <assert.h> 37518#endif 37519 37520#undef warnx 37521 37522/* Override any GCC internal prototype to avoid an error. 37523 Use char because int might match the return type of a GCC 37524 builtin and then its argument prototype would still apply. */ 37525#ifdef __cplusplus 37526extern "C" 37527#endif 37528char warnx (); 37529/* The GNU C library defines this for functions which it implements 37530 to always fail with ENOSYS. Some functions are actually named 37531 something starting with __ and the normal name is an alias. */ 37532#if defined __stub_warnx || defined __stub___warnx 37533choke me 37534#endif 37535 37536int 37537main () 37538{ 37539return warnx (); 37540 ; 37541 return 0; 37542} 37543_ACEOF 37544rm -f conftest.$ac_objext conftest$ac_exeext 37545if { (ac_try="$ac_link" 37546case "(($ac_try" in 37547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37548 *) ac_try_echo=$ac_try;; 37549esac 37550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37551 (eval "$ac_link") 2>conftest.er1 37552 ac_status=$? 37553 grep -v '^ *+' conftest.er1 >conftest.err 37554 rm -f conftest.er1 37555 cat conftest.err >&5 37556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37557 (exit $ac_status); } && { 37558 test -z "$ac_c_werror_flag" || 37559 test ! -s conftest.err 37560 } && test -s conftest$ac_exeext && 37561 $as_test_x conftest$ac_exeext; then 37562 ac_cv_func_warnx=yes 37563else 37564 echo "$as_me: failed program was:" >&5 37565sed 's/^/| /' conftest.$ac_ext >&5 37566 37567 ac_cv_func_warnx=no 37568fi 37569 37570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37571 conftest$ac_exeext conftest.$ac_ext 37572fi 37573{ echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5 37574echo "${ECHO_T}$ac_cv_func_warnx" >&6; } 37575if test $ac_cv_func_warnx = yes; then 37576 37577cat >>confdefs.h <<_ACEOF 37578#define HAVE_WARNX 1 37579_ACEOF 37580 37581else 37582 case " $LIBOBJS " in 37583 *" warnx.$ac_objext "* ) ;; 37584 *) LIBOBJS="$LIBOBJS warnx.$ac_objext" 37585 ;; 37586esac 37587 37588fi 37589{ echo "$as_me:$LINENO: checking for writev" >&5 37590echo $ECHO_N "checking for writev... $ECHO_C" >&6; } 37591if test "${ac_cv_func_writev+set}" = set; then 37592 echo $ECHO_N "(cached) $ECHO_C" >&6 37593else 37594 cat >conftest.$ac_ext <<_ACEOF 37595/* confdefs.h. */ 37596_ACEOF 37597cat confdefs.h >>conftest.$ac_ext 37598cat >>conftest.$ac_ext <<_ACEOF 37599/* end confdefs.h. */ 37600/* Define writev to an innocuous variant, in case <limits.h> declares writev. 37601 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 37602#define writev innocuous_writev 37603 37604/* System header to define __stub macros and hopefully few prototypes, 37605 which can conflict with char writev (); below. 37606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 37607 <limits.h> exists even on freestanding compilers. */ 37608 37609#ifdef __STDC__ 37610# include <limits.h> 37611#else 37612# include <assert.h> 37613#endif 37614 37615#undef writev 37616 37617/* Override any GCC internal prototype to avoid an error. 37618 Use char because int might match the return type of a GCC 37619 builtin and then its argument prototype would still apply. */ 37620#ifdef __cplusplus 37621extern "C" 37622#endif 37623char writev (); 37624/* The GNU C library defines this for functions which it implements 37625 to always fail with ENOSYS. Some functions are actually named 37626 something starting with __ and the normal name is an alias. */ 37627#if defined __stub_writev || defined __stub___writev 37628choke me 37629#endif 37630 37631int 37632main () 37633{ 37634return writev (); 37635 ; 37636 return 0; 37637} 37638_ACEOF 37639rm -f conftest.$ac_objext conftest$ac_exeext 37640if { (ac_try="$ac_link" 37641case "(($ac_try" in 37642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37643 *) ac_try_echo=$ac_try;; 37644esac 37645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37646 (eval "$ac_link") 2>conftest.er1 37647 ac_status=$? 37648 grep -v '^ *+' conftest.er1 >conftest.err 37649 rm -f conftest.er1 37650 cat conftest.err >&5 37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37652 (exit $ac_status); } && { 37653 test -z "$ac_c_werror_flag" || 37654 test ! -s conftest.err 37655 } && test -s conftest$ac_exeext && 37656 $as_test_x conftest$ac_exeext; then 37657 ac_cv_func_writev=yes 37658else 37659 echo "$as_me: failed program was:" >&5 37660sed 's/^/| /' conftest.$ac_ext >&5 37661 37662 ac_cv_func_writev=no 37663fi 37664 37665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 37666 conftest$ac_exeext conftest.$ac_ext 37667fi 37668{ echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5 37669echo "${ECHO_T}$ac_cv_func_writev" >&6; } 37670if test $ac_cv_func_writev = yes; then 37671 37672cat >>confdefs.h <<_ACEOF 37673#define HAVE_WRITEV 1 37674_ACEOF 37675 37676else 37677 case " $LIBOBJS " in 37678 *" writev.$ac_objext "* ) ;; 37679 *) LIBOBJS="$LIBOBJS writev.$ac_objext" 37680 ;; 37681esac 37682 37683fi 37684 37685 37686 if test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes; then 37687 have_fnmatch_h_TRUE= 37688 have_fnmatch_h_FALSE='#' 37689else 37690 have_fnmatch_h_TRUE='#' 37691 have_fnmatch_h_FALSE= 37692fi 37693 37694 37695 37696if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 37697{ echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5 37698echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6; } 37699if test "${ac_cv_func_strndup_noproto+set}" = set; then 37700 echo $ECHO_N "(cached) $ECHO_C" >&6 37701else 37702 cat >conftest.$ac_ext <<_ACEOF 37703/* confdefs.h. */ 37704_ACEOF 37705cat confdefs.h >>conftest.$ac_ext 37706cat >>conftest.$ac_ext <<_ACEOF 37707/* end confdefs.h. */ 37708#include <string.h> 37709struct foo { int foo; } xx; 37710extern int strndup (struct foo*); 37711int 37712main () 37713{ 37714strndup(&xx) 37715 ; 37716 return 0; 37717} 37718_ACEOF 37719rm -f conftest.$ac_objext 37720if { (ac_try="$ac_compile" 37721case "(($ac_try" in 37722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37723 *) ac_try_echo=$ac_try;; 37724esac 37725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37726 (eval "$ac_compile") 2>conftest.er1 37727 ac_status=$? 37728 grep -v '^ *+' conftest.er1 >conftest.err 37729 rm -f conftest.er1 37730 cat conftest.err >&5 37731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37732 (exit $ac_status); } && { 37733 test -z "$ac_c_werror_flag" || 37734 test ! -s conftest.err 37735 } && test -s conftest.$ac_objext; then 37736 eval "ac_cv_func_strndup_noproto=yes" 37737else 37738 echo "$as_me: failed program was:" >&5 37739sed 's/^/| /' conftest.$ac_ext >&5 37740 37741 eval "ac_cv_func_strndup_noproto=no" 37742fi 37743 37744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37745fi 37746{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5 37747echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6; } 37748if test "$ac_cv_func_strndup_noproto" = yes; then 37749 37750cat >>confdefs.h <<\_ACEOF 37751#define NEED_STRNDUP_PROTO 1 37752_ACEOF 37753 37754fi 37755fi 37756 37757if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 37758{ echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5 37759echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6; } 37760if test "${ac_cv_func_strsep_noproto+set}" = set; then 37761 echo $ECHO_N "(cached) $ECHO_C" >&6 37762else 37763 cat >conftest.$ac_ext <<_ACEOF 37764/* confdefs.h. */ 37765_ACEOF 37766cat confdefs.h >>conftest.$ac_ext 37767cat >>conftest.$ac_ext <<_ACEOF 37768/* end confdefs.h. */ 37769#include <string.h> 37770struct foo { int foo; } xx; 37771extern int strsep (struct foo*); 37772int 37773main () 37774{ 37775strsep(&xx) 37776 ; 37777 return 0; 37778} 37779_ACEOF 37780rm -f conftest.$ac_objext 37781if { (ac_try="$ac_compile" 37782case "(($ac_try" in 37783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37784 *) ac_try_echo=$ac_try;; 37785esac 37786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37787 (eval "$ac_compile") 2>conftest.er1 37788 ac_status=$? 37789 grep -v '^ *+' conftest.er1 >conftest.err 37790 rm -f conftest.er1 37791 cat conftest.err >&5 37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37793 (exit $ac_status); } && { 37794 test -z "$ac_c_werror_flag" || 37795 test ! -s conftest.err 37796 } && test -s conftest.$ac_objext; then 37797 eval "ac_cv_func_strsep_noproto=yes" 37798else 37799 echo "$as_me: failed program was:" >&5 37800sed 's/^/| /' conftest.$ac_ext >&5 37801 37802 eval "ac_cv_func_strsep_noproto=no" 37803fi 37804 37805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37806fi 37807{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5 37808echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6; } 37809if test "$ac_cv_func_strsep_noproto" = yes; then 37810 37811cat >>confdefs.h <<\_ACEOF 37812#define NEED_STRSEP_PROTO 1 37813_ACEOF 37814 37815fi 37816fi 37817 37818if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 37819{ echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5 37820echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6; } 37821if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 37822 echo $ECHO_N "(cached) $ECHO_C" >&6 37823else 37824 cat >conftest.$ac_ext <<_ACEOF 37825/* confdefs.h. */ 37826_ACEOF 37827cat confdefs.h >>conftest.$ac_ext 37828cat >>conftest.$ac_ext <<_ACEOF 37829/* end confdefs.h. */ 37830#include <string.h> 37831struct foo { int foo; } xx; 37832extern int strtok_r (struct foo*); 37833int 37834main () 37835{ 37836strtok_r(&xx) 37837 ; 37838 return 0; 37839} 37840_ACEOF 37841rm -f conftest.$ac_objext 37842if { (ac_try="$ac_compile" 37843case "(($ac_try" in 37844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37845 *) ac_try_echo=$ac_try;; 37846esac 37847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37848 (eval "$ac_compile") 2>conftest.er1 37849 ac_status=$? 37850 grep -v '^ *+' conftest.er1 >conftest.err 37851 rm -f conftest.er1 37852 cat conftest.err >&5 37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37854 (exit $ac_status); } && { 37855 test -z "$ac_c_werror_flag" || 37856 test ! -s conftest.err 37857 } && test -s conftest.$ac_objext; then 37858 eval "ac_cv_func_strtok_r_noproto=yes" 37859else 37860 echo "$as_me: failed program was:" >&5 37861sed 's/^/| /' conftest.$ac_ext >&5 37862 37863 eval "ac_cv_func_strtok_r_noproto=no" 37864fi 37865 37866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37867fi 37868{ echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5 37869echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6; } 37870if test "$ac_cv_func_strtok_r_noproto" = yes; then 37871 37872cat >>confdefs.h <<\_ACEOF 37873#define NEED_STRTOK_R_PROTO 1 37874_ACEOF 37875 37876fi 37877fi 37878 37879 37880 37881if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 37882{ echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5 37883echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6; } 37884if test "${ac_cv_func_strsvis_noproto+set}" = set; then 37885 echo $ECHO_N "(cached) $ECHO_C" >&6 37886else 37887 cat >conftest.$ac_ext <<_ACEOF 37888/* confdefs.h. */ 37889_ACEOF 37890cat confdefs.h >>conftest.$ac_ext 37891cat >>conftest.$ac_ext <<_ACEOF 37892/* end confdefs.h. */ 37893#ifdef HAVE_VIS_H 37894#include <vis.h> 37895#endif 37896struct foo { int foo; } xx; 37897extern int strsvis (struct foo*); 37898int 37899main () 37900{ 37901strsvis(&xx) 37902 ; 37903 return 0; 37904} 37905_ACEOF 37906rm -f conftest.$ac_objext 37907if { (ac_try="$ac_compile" 37908case "(($ac_try" in 37909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37910 *) ac_try_echo=$ac_try;; 37911esac 37912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37913 (eval "$ac_compile") 2>conftest.er1 37914 ac_status=$? 37915 grep -v '^ *+' conftest.er1 >conftest.err 37916 rm -f conftest.er1 37917 cat conftest.err >&5 37918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37919 (exit $ac_status); } && { 37920 test -z "$ac_c_werror_flag" || 37921 test ! -s conftest.err 37922 } && test -s conftest.$ac_objext; then 37923 eval "ac_cv_func_strsvis_noproto=yes" 37924else 37925 echo "$as_me: failed program was:" >&5 37926sed 's/^/| /' conftest.$ac_ext >&5 37927 37928 eval "ac_cv_func_strsvis_noproto=no" 37929fi 37930 37931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37932fi 37933{ echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5 37934echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6; } 37935if test "$ac_cv_func_strsvis_noproto" = yes; then 37936 37937cat >>confdefs.h <<\_ACEOF 37938#define NEED_STRSVIS_PROTO 1 37939_ACEOF 37940 37941fi 37942fi 37943 37944if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 37945{ echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5 37946echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6; } 37947if test "${ac_cv_func_strunvis_noproto+set}" = set; then 37948 echo $ECHO_N "(cached) $ECHO_C" >&6 37949else 37950 cat >conftest.$ac_ext <<_ACEOF 37951/* confdefs.h. */ 37952_ACEOF 37953cat confdefs.h >>conftest.$ac_ext 37954cat >>conftest.$ac_ext <<_ACEOF 37955/* end confdefs.h. */ 37956#ifdef HAVE_VIS_H 37957#include <vis.h> 37958#endif 37959struct foo { int foo; } xx; 37960extern int strunvis (struct foo*); 37961int 37962main () 37963{ 37964strunvis(&xx) 37965 ; 37966 return 0; 37967} 37968_ACEOF 37969rm -f conftest.$ac_objext 37970if { (ac_try="$ac_compile" 37971case "(($ac_try" in 37972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 37973 *) ac_try_echo=$ac_try;; 37974esac 37975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 37976 (eval "$ac_compile") 2>conftest.er1 37977 ac_status=$? 37978 grep -v '^ *+' conftest.er1 >conftest.err 37979 rm -f conftest.er1 37980 cat conftest.err >&5 37981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 37982 (exit $ac_status); } && { 37983 test -z "$ac_c_werror_flag" || 37984 test ! -s conftest.err 37985 } && test -s conftest.$ac_objext; then 37986 eval "ac_cv_func_strunvis_noproto=yes" 37987else 37988 echo "$as_me: failed program was:" >&5 37989sed 's/^/| /' conftest.$ac_ext >&5 37990 37991 eval "ac_cv_func_strunvis_noproto=no" 37992fi 37993 37994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37995fi 37996{ echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5 37997echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6; } 37998if test "$ac_cv_func_strunvis_noproto" = yes; then 37999 38000cat >>confdefs.h <<\_ACEOF 38001#define NEED_STRUNVIS_PROTO 1 38002_ACEOF 38003 38004fi 38005fi 38006 38007if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 38008{ echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5 38009echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6; } 38010if test "${ac_cv_func_strvis_noproto+set}" = set; then 38011 echo $ECHO_N "(cached) $ECHO_C" >&6 38012else 38013 cat >conftest.$ac_ext <<_ACEOF 38014/* confdefs.h. */ 38015_ACEOF 38016cat confdefs.h >>conftest.$ac_ext 38017cat >>conftest.$ac_ext <<_ACEOF 38018/* end confdefs.h. */ 38019#ifdef HAVE_VIS_H 38020#include <vis.h> 38021#endif 38022struct foo { int foo; } xx; 38023extern int strvis (struct foo*); 38024int 38025main () 38026{ 38027strvis(&xx) 38028 ; 38029 return 0; 38030} 38031_ACEOF 38032rm -f conftest.$ac_objext 38033if { (ac_try="$ac_compile" 38034case "(($ac_try" in 38035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38036 *) ac_try_echo=$ac_try;; 38037esac 38038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38039 (eval "$ac_compile") 2>conftest.er1 38040 ac_status=$? 38041 grep -v '^ *+' conftest.er1 >conftest.err 38042 rm -f conftest.er1 38043 cat conftest.err >&5 38044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38045 (exit $ac_status); } && { 38046 test -z "$ac_c_werror_flag" || 38047 test ! -s conftest.err 38048 } && test -s conftest.$ac_objext; then 38049 eval "ac_cv_func_strvis_noproto=yes" 38050else 38051 echo "$as_me: failed program was:" >&5 38052sed 's/^/| /' conftest.$ac_ext >&5 38053 38054 eval "ac_cv_func_strvis_noproto=no" 38055fi 38056 38057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38058fi 38059{ echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5 38060echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6; } 38061if test "$ac_cv_func_strvis_noproto" = yes; then 38062 38063cat >>confdefs.h <<\_ACEOF 38064#define NEED_STRVIS_PROTO 1 38065_ACEOF 38066 38067fi 38068fi 38069 38070if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 38071{ echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5 38072echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6; } 38073if test "${ac_cv_func_strvisx_noproto+set}" = set; then 38074 echo $ECHO_N "(cached) $ECHO_C" >&6 38075else 38076 cat >conftest.$ac_ext <<_ACEOF 38077/* confdefs.h. */ 38078_ACEOF 38079cat confdefs.h >>conftest.$ac_ext 38080cat >>conftest.$ac_ext <<_ACEOF 38081/* end confdefs.h. */ 38082#ifdef HAVE_VIS_H 38083#include <vis.h> 38084#endif 38085struct foo { int foo; } xx; 38086extern int strvisx (struct foo*); 38087int 38088main () 38089{ 38090strvisx(&xx) 38091 ; 38092 return 0; 38093} 38094_ACEOF 38095rm -f conftest.$ac_objext 38096if { (ac_try="$ac_compile" 38097case "(($ac_try" in 38098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38099 *) ac_try_echo=$ac_try;; 38100esac 38101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38102 (eval "$ac_compile") 2>conftest.er1 38103 ac_status=$? 38104 grep -v '^ *+' conftest.er1 >conftest.err 38105 rm -f conftest.er1 38106 cat conftest.err >&5 38107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38108 (exit $ac_status); } && { 38109 test -z "$ac_c_werror_flag" || 38110 test ! -s conftest.err 38111 } && test -s conftest.$ac_objext; then 38112 eval "ac_cv_func_strvisx_noproto=yes" 38113else 38114 echo "$as_me: failed program was:" >&5 38115sed 's/^/| /' conftest.$ac_ext >&5 38116 38117 eval "ac_cv_func_strvisx_noproto=no" 38118fi 38119 38120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38121fi 38122{ echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5 38123echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6; } 38124if test "$ac_cv_func_strvisx_noproto" = yes; then 38125 38126cat >>confdefs.h <<\_ACEOF 38127#define NEED_STRVISX_PROTO 1 38128_ACEOF 38129 38130fi 38131fi 38132 38133if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 38134{ echo "$as_me:$LINENO: checking if svis needs a prototype" >&5 38135echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6; } 38136if test "${ac_cv_func_svis_noproto+set}" = set; then 38137 echo $ECHO_N "(cached) $ECHO_C" >&6 38138else 38139 cat >conftest.$ac_ext <<_ACEOF 38140/* confdefs.h. */ 38141_ACEOF 38142cat confdefs.h >>conftest.$ac_ext 38143cat >>conftest.$ac_ext <<_ACEOF 38144/* end confdefs.h. */ 38145#ifdef HAVE_VIS_H 38146#include <vis.h> 38147#endif 38148struct foo { int foo; } xx; 38149extern int svis (struct foo*); 38150int 38151main () 38152{ 38153svis(&xx) 38154 ; 38155 return 0; 38156} 38157_ACEOF 38158rm -f conftest.$ac_objext 38159if { (ac_try="$ac_compile" 38160case "(($ac_try" in 38161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38162 *) ac_try_echo=$ac_try;; 38163esac 38164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38165 (eval "$ac_compile") 2>conftest.er1 38166 ac_status=$? 38167 grep -v '^ *+' conftest.er1 >conftest.err 38168 rm -f conftest.er1 38169 cat conftest.err >&5 38170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38171 (exit $ac_status); } && { 38172 test -z "$ac_c_werror_flag" || 38173 test ! -s conftest.err 38174 } && test -s conftest.$ac_objext; then 38175 eval "ac_cv_func_svis_noproto=yes" 38176else 38177 echo "$as_me: failed program was:" >&5 38178sed 's/^/| /' conftest.$ac_ext >&5 38179 38180 eval "ac_cv_func_svis_noproto=no" 38181fi 38182 38183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38184fi 38185{ echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5 38186echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6; } 38187if test "$ac_cv_func_svis_noproto" = yes; then 38188 38189cat >>confdefs.h <<\_ACEOF 38190#define NEED_SVIS_PROTO 1 38191_ACEOF 38192 38193fi 38194fi 38195 38196if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 38197{ echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5 38198echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6; } 38199if test "${ac_cv_func_unvis_noproto+set}" = set; then 38200 echo $ECHO_N "(cached) $ECHO_C" >&6 38201else 38202 cat >conftest.$ac_ext <<_ACEOF 38203/* confdefs.h. */ 38204_ACEOF 38205cat confdefs.h >>conftest.$ac_ext 38206cat >>conftest.$ac_ext <<_ACEOF 38207/* end confdefs.h. */ 38208#ifdef HAVE_VIS_H 38209#include <vis.h> 38210#endif 38211struct foo { int foo; } xx; 38212extern int unvis (struct foo*); 38213int 38214main () 38215{ 38216unvis(&xx) 38217 ; 38218 return 0; 38219} 38220_ACEOF 38221rm -f conftest.$ac_objext 38222if { (ac_try="$ac_compile" 38223case "(($ac_try" in 38224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38225 *) ac_try_echo=$ac_try;; 38226esac 38227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38228 (eval "$ac_compile") 2>conftest.er1 38229 ac_status=$? 38230 grep -v '^ *+' conftest.er1 >conftest.err 38231 rm -f conftest.er1 38232 cat conftest.err >&5 38233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38234 (exit $ac_status); } && { 38235 test -z "$ac_c_werror_flag" || 38236 test ! -s conftest.err 38237 } && test -s conftest.$ac_objext; then 38238 eval "ac_cv_func_unvis_noproto=yes" 38239else 38240 echo "$as_me: failed program was:" >&5 38241sed 's/^/| /' conftest.$ac_ext >&5 38242 38243 eval "ac_cv_func_unvis_noproto=no" 38244fi 38245 38246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38247fi 38248{ echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5 38249echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6; } 38250if test "$ac_cv_func_unvis_noproto" = yes; then 38251 38252cat >>confdefs.h <<\_ACEOF 38253#define NEED_UNVIS_PROTO 1 38254_ACEOF 38255 38256fi 38257fi 38258 38259if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 38260{ echo "$as_me:$LINENO: checking if vis needs a prototype" >&5 38261echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6; } 38262if test "${ac_cv_func_vis_noproto+set}" = set; then 38263 echo $ECHO_N "(cached) $ECHO_C" >&6 38264else 38265 cat >conftest.$ac_ext <<_ACEOF 38266/* confdefs.h. */ 38267_ACEOF 38268cat confdefs.h >>conftest.$ac_ext 38269cat >>conftest.$ac_ext <<_ACEOF 38270/* end confdefs.h. */ 38271#ifdef HAVE_VIS_H 38272#include <vis.h> 38273#endif 38274struct foo { int foo; } xx; 38275extern int vis (struct foo*); 38276int 38277main () 38278{ 38279vis(&xx) 38280 ; 38281 return 0; 38282} 38283_ACEOF 38284rm -f conftest.$ac_objext 38285if { (ac_try="$ac_compile" 38286case "(($ac_try" in 38287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38288 *) ac_try_echo=$ac_try;; 38289esac 38290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38291 (eval "$ac_compile") 2>conftest.er1 38292 ac_status=$? 38293 grep -v '^ *+' conftest.er1 >conftest.err 38294 rm -f conftest.er1 38295 cat conftest.err >&5 38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38297 (exit $ac_status); } && { 38298 test -z "$ac_c_werror_flag" || 38299 test ! -s conftest.err 38300 } && test -s conftest.$ac_objext; then 38301 eval "ac_cv_func_vis_noproto=yes" 38302else 38303 echo "$as_me: failed program was:" >&5 38304sed 's/^/| /' conftest.$ac_ext >&5 38305 38306 eval "ac_cv_func_vis_noproto=no" 38307fi 38308 38309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38310fi 38311{ echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5 38312echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6; } 38313if test "$ac_cv_func_vis_noproto" = yes; then 38314 38315cat >>confdefs.h <<\_ACEOF 38316#define NEED_VIS_PROTO 1 38317_ACEOF 38318 38319fi 38320fi 38321 38322 38323{ echo "$as_me:$LINENO: checking for inet_aton" >&5 38324echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 38325if test "${ac_cv_func_inet_aton+set}" = set; then 38326 echo $ECHO_N "(cached) $ECHO_C" >&6 38327else 38328 cat >conftest.$ac_ext <<_ACEOF 38329/* confdefs.h. */ 38330_ACEOF 38331cat confdefs.h >>conftest.$ac_ext 38332cat >>conftest.$ac_ext <<_ACEOF 38333/* end confdefs.h. */ 38334#ifdef HAVE_SYS_TYPES_H 38335#include <sys/types.h> 38336#endif 38337#ifdef HAVE_SYS_SOCKET_H 38338#include <sys/socket.h> 38339#endif 38340#ifdef HAVE_NETINET_IN_H 38341#include <netinet/in.h> 38342#endif 38343#ifdef HAVE_ARPA_INET_H 38344#include <arpa/inet.h> 38345#endif 38346int 38347main () 38348{ 38349 38350/* The GNU C library defines this for functions which it implements 38351 to always fail with ENOSYS. Some functions are actually named 38352 something starting with __ and the normal name is an alias. */ 38353#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 38354choke me 38355#else 38356inet_aton(0,0); 38357#endif 38358 38359 ; 38360 return 0; 38361} 38362_ACEOF 38363rm -f conftest.$ac_objext conftest$ac_exeext 38364if { (ac_try="$ac_link" 38365case "(($ac_try" in 38366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38367 *) ac_try_echo=$ac_try;; 38368esac 38369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38370 (eval "$ac_link") 2>conftest.er1 38371 ac_status=$? 38372 grep -v '^ *+' conftest.er1 >conftest.err 38373 rm -f conftest.er1 38374 cat conftest.err >&5 38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38376 (exit $ac_status); } && { 38377 test -z "$ac_c_werror_flag" || 38378 test ! -s conftest.err 38379 } && test -s conftest$ac_exeext && 38380 $as_test_x conftest$ac_exeext; then 38381 eval "ac_cv_func_inet_aton=yes" 38382else 38383 echo "$as_me: failed program was:" >&5 38384sed 's/^/| /' conftest.$ac_ext >&5 38385 38386 eval "ac_cv_func_inet_aton=no" 38387fi 38388 38389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 38390 conftest$ac_exeext conftest.$ac_ext 38391fi 38392 38393if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 38394 38395cat >>confdefs.h <<_ACEOF 38396#define HAVE_INET_ATON 1 38397_ACEOF 38398 38399 { echo "$as_me:$LINENO: result: yes" >&5 38400echo "${ECHO_T}yes" >&6; } 38401else 38402 { echo "$as_me:$LINENO: result: no" >&5 38403echo "${ECHO_T}no" >&6; } 38404 case " $LIBOBJS " in 38405 *" inet_aton.$ac_objext "* ) ;; 38406 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 38407 ;; 38408esac 38409 38410fi 38411 38412{ echo "$as_me:$LINENO: checking for inet_ntop" >&5 38413echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } 38414if test "${ac_cv_func_inet_ntop+set}" = set; then 38415 echo $ECHO_N "(cached) $ECHO_C" >&6 38416else 38417 cat >conftest.$ac_ext <<_ACEOF 38418/* confdefs.h. */ 38419_ACEOF 38420cat confdefs.h >>conftest.$ac_ext 38421cat >>conftest.$ac_ext <<_ACEOF 38422/* end confdefs.h. */ 38423#ifdef HAVE_SYS_TYPES_H 38424#include <sys/types.h> 38425#endif 38426#ifdef HAVE_SYS_SOCKET_H 38427#include <sys/socket.h> 38428#endif 38429#ifdef HAVE_NETINET_IN_H 38430#include <netinet/in.h> 38431#endif 38432#ifdef HAVE_ARPA_INET_H 38433#include <arpa/inet.h> 38434#endif 38435int 38436main () 38437{ 38438 38439/* The GNU C library defines this for functions which it implements 38440 to always fail with ENOSYS. Some functions are actually named 38441 something starting with __ and the normal name is an alias. */ 38442#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 38443choke me 38444#else 38445inet_ntop(0, 0, 0, 0); 38446#endif 38447 38448 ; 38449 return 0; 38450} 38451_ACEOF 38452rm -f conftest.$ac_objext conftest$ac_exeext 38453if { (ac_try="$ac_link" 38454case "(($ac_try" in 38455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38456 *) ac_try_echo=$ac_try;; 38457esac 38458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38459 (eval "$ac_link") 2>conftest.er1 38460 ac_status=$? 38461 grep -v '^ *+' conftest.er1 >conftest.err 38462 rm -f conftest.er1 38463 cat conftest.err >&5 38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38465 (exit $ac_status); } && { 38466 test -z "$ac_c_werror_flag" || 38467 test ! -s conftest.err 38468 } && test -s conftest$ac_exeext && 38469 $as_test_x conftest$ac_exeext; then 38470 eval "ac_cv_func_inet_ntop=yes" 38471else 38472 echo "$as_me: failed program was:" >&5 38473sed 's/^/| /' conftest.$ac_ext >&5 38474 38475 eval "ac_cv_func_inet_ntop=no" 38476fi 38477 38478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 38479 conftest$ac_exeext conftest.$ac_ext 38480fi 38481 38482if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 38483 38484cat >>confdefs.h <<_ACEOF 38485#define HAVE_INET_NTOP 1 38486_ACEOF 38487 38488 { echo "$as_me:$LINENO: result: yes" >&5 38489echo "${ECHO_T}yes" >&6; } 38490else 38491 { echo "$as_me:$LINENO: result: no" >&5 38492echo "${ECHO_T}no" >&6; } 38493 case " $LIBOBJS " in 38494 *" inet_ntop.$ac_objext "* ) ;; 38495 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 38496 ;; 38497esac 38498 38499fi 38500 38501{ echo "$as_me:$LINENO: checking for inet_pton" >&5 38502echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } 38503if test "${ac_cv_func_inet_pton+set}" = set; then 38504 echo $ECHO_N "(cached) $ECHO_C" >&6 38505else 38506 cat >conftest.$ac_ext <<_ACEOF 38507/* confdefs.h. */ 38508_ACEOF 38509cat confdefs.h >>conftest.$ac_ext 38510cat >>conftest.$ac_ext <<_ACEOF 38511/* end confdefs.h. */ 38512#ifdef HAVE_SYS_TYPES_H 38513#include <sys/types.h> 38514#endif 38515#ifdef HAVE_SYS_SOCKET_H 38516#include <sys/socket.h> 38517#endif 38518#ifdef HAVE_NETINET_IN_H 38519#include <netinet/in.h> 38520#endif 38521#ifdef HAVE_ARPA_INET_H 38522#include <arpa/inet.h> 38523#endif 38524int 38525main () 38526{ 38527 38528/* The GNU C library defines this for functions which it implements 38529 to always fail with ENOSYS. Some functions are actually named 38530 something starting with __ and the normal name is an alias. */ 38531#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 38532choke me 38533#else 38534inet_pton(0,0,0); 38535#endif 38536 38537 ; 38538 return 0; 38539} 38540_ACEOF 38541rm -f conftest.$ac_objext conftest$ac_exeext 38542if { (ac_try="$ac_link" 38543case "(($ac_try" in 38544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38545 *) ac_try_echo=$ac_try;; 38546esac 38547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38548 (eval "$ac_link") 2>conftest.er1 38549 ac_status=$? 38550 grep -v '^ *+' conftest.er1 >conftest.err 38551 rm -f conftest.er1 38552 cat conftest.err >&5 38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38554 (exit $ac_status); } && { 38555 test -z "$ac_c_werror_flag" || 38556 test ! -s conftest.err 38557 } && test -s conftest$ac_exeext && 38558 $as_test_x conftest$ac_exeext; then 38559 eval "ac_cv_func_inet_pton=yes" 38560else 38561 echo "$as_me: failed program was:" >&5 38562sed 's/^/| /' conftest.$ac_ext >&5 38563 38564 eval "ac_cv_func_inet_pton=no" 38565fi 38566 38567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 38568 conftest$ac_exeext conftest.$ac_ext 38569fi 38570 38571if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 38572 38573cat >>confdefs.h <<_ACEOF 38574#define HAVE_INET_PTON 1 38575_ACEOF 38576 38577 { echo "$as_me:$LINENO: result: yes" >&5 38578echo "${ECHO_T}yes" >&6; } 38579else 38580 { echo "$as_me:$LINENO: result: no" >&5 38581echo "${ECHO_T}no" >&6; } 38582 case " $LIBOBJS " in 38583 *" inet_pton.$ac_objext "* ) ;; 38584 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 38585 ;; 38586esac 38587 38588fi 38589 38590 38591 38592{ echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 38593echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; } 38594if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 38595 echo $ECHO_N "(cached) $ECHO_C" >&6 38596else 38597 38598cat >conftest.$ac_ext <<_ACEOF 38599/* confdefs.h. */ 38600_ACEOF 38601cat confdefs.h >>conftest.$ac_ext 38602cat >>conftest.$ac_ext <<_ACEOF 38603/* end confdefs.h. */ 38604#include <sys/types.h> 38605#include <sys/socket.h> 38606int 38607main () 38608{ 38609struct sockaddr x; memset(&x, 0, sizeof(x)); x.sa_len 38610 ; 38611 return 0; 38612} 38613_ACEOF 38614rm -f conftest.$ac_objext 38615if { (ac_try="$ac_compile" 38616case "(($ac_try" in 38617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38618 *) ac_try_echo=$ac_try;; 38619esac 38620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38621 (eval "$ac_compile") 2>conftest.er1 38622 ac_status=$? 38623 grep -v '^ *+' conftest.er1 >conftest.err 38624 rm -f conftest.er1 38625 cat conftest.err >&5 38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38627 (exit $ac_status); } && { 38628 test -z "$ac_c_werror_flag" || 38629 test ! -s conftest.err 38630 } && test -s conftest.$ac_objext; then 38631 ac_cv_type_struct_sockaddr_sa_len=yes 38632else 38633 echo "$as_me: failed program was:" >&5 38634sed 's/^/| /' conftest.$ac_ext >&5 38635 38636 ac_cv_type_struct_sockaddr_sa_len=no 38637fi 38638 38639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38640 38641fi 38642{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 38643echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6; } 38644if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 38645 38646 38647cat >>confdefs.h <<\_ACEOF 38648#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 38649_ACEOF 38650 38651 38652fi 38653 38654 38655 38656if test "$ac_cv_func_getaddrinfo" = "yes"; then 38657 38658{ echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5 38659echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6; } 38660if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then 38661 echo $ECHO_N "(cached) $ECHO_C" >&6 38662else 38663 if test "$cross_compiling" = yes; then 38664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 38665See \`config.log' for more details." >&5 38666echo "$as_me: error: cannot run test program while cross compiling 38667See \`config.log' for more details." >&2;} 38668 { (exit 1); exit 1; }; } 38669else 38670 cat >conftest.$ac_ext <<_ACEOF 38671/* confdefs.h. */ 38672_ACEOF 38673cat confdefs.h >>conftest.$ac_ext 38674cat >>conftest.$ac_ext <<_ACEOF 38675/* end confdefs.h. */ 38676#include <stdio.h> 38677#include <sys/types.h> 38678#include <sys/socket.h> 38679#include <netdb.h> 38680 38681int 38682main(int argc, char **argv) 38683{ 38684 struct addrinfo hints, *ai; 38685 memset(&hints, 0, sizeof(hints)); 38686 hints.ai_flags = AI_PASSIVE; 38687 hints.ai_socktype = SOCK_STREAM; 38688 hints.ai_family = PF_UNSPEC; 38689 if(getaddrinfo(NULL, "17", &hints, &ai) != 0) 38690 return 1; 38691 if(getaddrinfo(NULL, "0", &hints, &ai) != 0) 38692 return 1; 38693 return 0; 38694} 38695 38696_ACEOF 38697rm -f conftest$ac_exeext 38698if { (ac_try="$ac_link" 38699case "(($ac_try" in 38700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38701 *) ac_try_echo=$ac_try;; 38702esac 38703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38704 (eval "$ac_link") 2>&5 38705 ac_status=$? 38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 38708 { (case "(($ac_try" in 38709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38710 *) ac_try_echo=$ac_try;; 38711esac 38712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38713 (eval "$ac_try") 2>&5 38714 ac_status=$? 38715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38716 (exit $ac_status); }; }; then 38717 ac_cv_func_getaddrinfo_numserv=yes 38718else 38719 echo "$as_me: program exited with status $ac_status" >&5 38720echo "$as_me: failed program was:" >&5 38721sed 's/^/| /' conftest.$ac_ext >&5 38722 38723( exit $ac_status ) 38724ac_cv_func_getaddrinfo_numserv=no 38725fi 38726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 38727fi 38728 38729 38730fi 38731{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5 38732echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6; } 38733 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 38734 case " $LIBOBJS " in 38735 *" getaddrinfo.$ac_objext "* ) ;; 38736 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 38737 ;; 38738esac 38739 38740 case " $LIBOBJS " in 38741 *" freeaddrinfo.$ac_objext "* ) ;; 38742 *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 38743 ;; 38744esac 38745 38746 fi 38747fi 38748 38749 38750if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 38751{ echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5 38752echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6; } 38753if test "${ac_cv_func_setenv_noproto+set}" = set; then 38754 echo $ECHO_N "(cached) $ECHO_C" >&6 38755else 38756 cat >conftest.$ac_ext <<_ACEOF 38757/* confdefs.h. */ 38758_ACEOF 38759cat confdefs.h >>conftest.$ac_ext 38760cat >>conftest.$ac_ext <<_ACEOF 38761/* end confdefs.h. */ 38762#include <stdlib.h> 38763struct foo { int foo; } xx; 38764extern int setenv (struct foo*); 38765int 38766main () 38767{ 38768setenv(&xx) 38769 ; 38770 return 0; 38771} 38772_ACEOF 38773rm -f conftest.$ac_objext 38774if { (ac_try="$ac_compile" 38775case "(($ac_try" in 38776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38777 *) ac_try_echo=$ac_try;; 38778esac 38779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38780 (eval "$ac_compile") 2>conftest.er1 38781 ac_status=$? 38782 grep -v '^ *+' conftest.er1 >conftest.err 38783 rm -f conftest.er1 38784 cat conftest.err >&5 38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38786 (exit $ac_status); } && { 38787 test -z "$ac_c_werror_flag" || 38788 test ! -s conftest.err 38789 } && test -s conftest.$ac_objext; then 38790 eval "ac_cv_func_setenv_noproto=yes" 38791else 38792 echo "$as_me: failed program was:" >&5 38793sed 's/^/| /' conftest.$ac_ext >&5 38794 38795 eval "ac_cv_func_setenv_noproto=no" 38796fi 38797 38798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38799fi 38800{ echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5 38801echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6; } 38802if test "$ac_cv_func_setenv_noproto" = yes; then 38803 38804cat >>confdefs.h <<\_ACEOF 38805#define NEED_SETENV_PROTO 1 38806_ACEOF 38807 38808fi 38809fi 38810 38811 38812if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 38813{ echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5 38814echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6; } 38815if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 38816 echo $ECHO_N "(cached) $ECHO_C" >&6 38817else 38818 cat >conftest.$ac_ext <<_ACEOF 38819/* confdefs.h. */ 38820_ACEOF 38821cat confdefs.h >>conftest.$ac_ext 38822cat >>conftest.$ac_ext <<_ACEOF 38823/* end confdefs.h. */ 38824#include <stdlib.h> 38825struct foo { int foo; } xx; 38826extern int unsetenv (struct foo*); 38827int 38828main () 38829{ 38830unsetenv(&xx) 38831 ; 38832 return 0; 38833} 38834_ACEOF 38835rm -f conftest.$ac_objext 38836if { (ac_try="$ac_compile" 38837case "(($ac_try" in 38838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38839 *) ac_try_echo=$ac_try;; 38840esac 38841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38842 (eval "$ac_compile") 2>conftest.er1 38843 ac_status=$? 38844 grep -v '^ *+' conftest.er1 >conftest.err 38845 rm -f conftest.er1 38846 cat conftest.err >&5 38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38848 (exit $ac_status); } && { 38849 test -z "$ac_c_werror_flag" || 38850 test ! -s conftest.err 38851 } && test -s conftest.$ac_objext; then 38852 eval "ac_cv_func_unsetenv_noproto=yes" 38853else 38854 echo "$as_me: failed program was:" >&5 38855sed 's/^/| /' conftest.$ac_ext >&5 38856 38857 eval "ac_cv_func_unsetenv_noproto=no" 38858fi 38859 38860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38861fi 38862{ echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5 38863echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6; } 38864if test "$ac_cv_func_unsetenv_noproto" = yes; then 38865 38866cat >>confdefs.h <<\_ACEOF 38867#define NEED_UNSETENV_PROTO 1 38868_ACEOF 38869 38870fi 38871fi 38872 38873 38874if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 38875{ echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5 38876echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6; } 38877if test "${ac_cv_func_gethostname_noproto+set}" = set; then 38878 echo $ECHO_N "(cached) $ECHO_C" >&6 38879else 38880 cat >conftest.$ac_ext <<_ACEOF 38881/* confdefs.h. */ 38882_ACEOF 38883cat confdefs.h >>conftest.$ac_ext 38884cat >>conftest.$ac_ext <<_ACEOF 38885/* end confdefs.h. */ 38886#include <unistd.h> 38887struct foo { int foo; } xx; 38888extern int gethostname (struct foo*); 38889int 38890main () 38891{ 38892gethostname(&xx) 38893 ; 38894 return 0; 38895} 38896_ACEOF 38897rm -f conftest.$ac_objext 38898if { (ac_try="$ac_compile" 38899case "(($ac_try" in 38900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38901 *) ac_try_echo=$ac_try;; 38902esac 38903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38904 (eval "$ac_compile") 2>conftest.er1 38905 ac_status=$? 38906 grep -v '^ *+' conftest.er1 >conftest.err 38907 rm -f conftest.er1 38908 cat conftest.err >&5 38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38910 (exit $ac_status); } && { 38911 test -z "$ac_c_werror_flag" || 38912 test ! -s conftest.err 38913 } && test -s conftest.$ac_objext; then 38914 eval "ac_cv_func_gethostname_noproto=yes" 38915else 38916 echo "$as_me: failed program was:" >&5 38917sed 's/^/| /' conftest.$ac_ext >&5 38918 38919 eval "ac_cv_func_gethostname_noproto=no" 38920fi 38921 38922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38923fi 38924{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5 38925echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6; } 38926if test "$ac_cv_func_gethostname_noproto" = yes; then 38927 38928cat >>confdefs.h <<\_ACEOF 38929#define NEED_GETHOSTNAME_PROTO 1 38930_ACEOF 38931 38932fi 38933fi 38934 38935 38936if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 38937{ echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5 38938echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6; } 38939if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 38940 echo $ECHO_N "(cached) $ECHO_C" >&6 38941else 38942 cat >conftest.$ac_ext <<_ACEOF 38943/* confdefs.h. */ 38944_ACEOF 38945cat confdefs.h >>conftest.$ac_ext 38946cat >>conftest.$ac_ext <<_ACEOF 38947/* end confdefs.h. */ 38948#include <unistd.h> 38949struct foo { int foo; } xx; 38950extern int mkstemp (struct foo*); 38951int 38952main () 38953{ 38954mkstemp(&xx) 38955 ; 38956 return 0; 38957} 38958_ACEOF 38959rm -f conftest.$ac_objext 38960if { (ac_try="$ac_compile" 38961case "(($ac_try" in 38962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 38963 *) ac_try_echo=$ac_try;; 38964esac 38965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 38966 (eval "$ac_compile") 2>conftest.er1 38967 ac_status=$? 38968 grep -v '^ *+' conftest.er1 >conftest.err 38969 rm -f conftest.er1 38970 cat conftest.err >&5 38971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 38972 (exit $ac_status); } && { 38973 test -z "$ac_c_werror_flag" || 38974 test ! -s conftest.err 38975 } && test -s conftest.$ac_objext; then 38976 eval "ac_cv_func_mkstemp_noproto=yes" 38977else 38978 echo "$as_me: failed program was:" >&5 38979sed 's/^/| /' conftest.$ac_ext >&5 38980 38981 eval "ac_cv_func_mkstemp_noproto=no" 38982fi 38983 38984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38985fi 38986{ echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5 38987echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6; } 38988if test "$ac_cv_func_mkstemp_noproto" = yes; then 38989 38990cat >>confdefs.h <<\_ACEOF 38991#define NEED_MKSTEMP_PROTO 1 38992_ACEOF 38993 38994fi 38995fi 38996 38997 38998if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 38999{ echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5 39000echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6; } 39001if test "${ac_cv_func_getusershell_noproto+set}" = set; then 39002 echo $ECHO_N "(cached) $ECHO_C" >&6 39003else 39004 cat >conftest.$ac_ext <<_ACEOF 39005/* confdefs.h. */ 39006_ACEOF 39007cat confdefs.h >>conftest.$ac_ext 39008cat >>conftest.$ac_ext <<_ACEOF 39009/* end confdefs.h. */ 39010#include <unistd.h> 39011struct foo { int foo; } xx; 39012extern int getusershell (struct foo*); 39013int 39014main () 39015{ 39016getusershell(&xx) 39017 ; 39018 return 0; 39019} 39020_ACEOF 39021rm -f conftest.$ac_objext 39022if { (ac_try="$ac_compile" 39023case "(($ac_try" in 39024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39025 *) ac_try_echo=$ac_try;; 39026esac 39027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39028 (eval "$ac_compile") 2>conftest.er1 39029 ac_status=$? 39030 grep -v '^ *+' conftest.er1 >conftest.err 39031 rm -f conftest.er1 39032 cat conftest.err >&5 39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39034 (exit $ac_status); } && { 39035 test -z "$ac_c_werror_flag" || 39036 test ! -s conftest.err 39037 } && test -s conftest.$ac_objext; then 39038 eval "ac_cv_func_getusershell_noproto=yes" 39039else 39040 echo "$as_me: failed program was:" >&5 39041sed 's/^/| /' conftest.$ac_ext >&5 39042 39043 eval "ac_cv_func_getusershell_noproto=no" 39044fi 39045 39046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39047fi 39048{ echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5 39049echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6; } 39050if test "$ac_cv_func_getusershell_noproto" = yes; then 39051 39052cat >>confdefs.h <<\_ACEOF 39053#define NEED_GETUSERSHELL_PROTO 1 39054_ACEOF 39055 39056fi 39057fi 39058 39059 39060if test "$ac_cv_func_daemon+set" != set -o "$ac_cv_func_daemon" = yes; then 39061{ echo "$as_me:$LINENO: checking if daemon needs a prototype" >&5 39062echo $ECHO_N "checking if daemon needs a prototype... $ECHO_C" >&6; } 39063if test "${ac_cv_func_daemon_noproto+set}" = set; then 39064 echo $ECHO_N "(cached) $ECHO_C" >&6 39065else 39066 cat >conftest.$ac_ext <<_ACEOF 39067/* confdefs.h. */ 39068_ACEOF 39069cat confdefs.h >>conftest.$ac_ext 39070cat >>conftest.$ac_ext <<_ACEOF 39071/* end confdefs.h. */ 39072#include <unistd.h> 39073struct foo { int foo; } xx; 39074extern int daemon (struct foo*); 39075int 39076main () 39077{ 39078daemon(&xx) 39079 ; 39080 return 0; 39081} 39082_ACEOF 39083rm -f conftest.$ac_objext 39084if { (ac_try="$ac_compile" 39085case "(($ac_try" in 39086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39087 *) ac_try_echo=$ac_try;; 39088esac 39089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39090 (eval "$ac_compile") 2>conftest.er1 39091 ac_status=$? 39092 grep -v '^ *+' conftest.er1 >conftest.err 39093 rm -f conftest.er1 39094 cat conftest.err >&5 39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39096 (exit $ac_status); } && { 39097 test -z "$ac_c_werror_flag" || 39098 test ! -s conftest.err 39099 } && test -s conftest.$ac_objext; then 39100 eval "ac_cv_func_daemon_noproto=yes" 39101else 39102 echo "$as_me: failed program was:" >&5 39103sed 's/^/| /' conftest.$ac_ext >&5 39104 39105 eval "ac_cv_func_daemon_noproto=no" 39106fi 39107 39108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39109fi 39110{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon_noproto" >&5 39111echo "${ECHO_T}$ac_cv_func_daemon_noproto" >&6; } 39112if test "$ac_cv_func_daemon_noproto" = yes; then 39113 39114cat >>confdefs.h <<\_ACEOF 39115#define NEED_DAEMON_PROTO 1 39116_ACEOF 39117 39118fi 39119fi 39120 39121 39122if test "$ac_cv_func_iruserok+set" != set -o "$ac_cv_func_iruserok" = yes; then 39123{ echo "$as_me:$LINENO: checking if iruserok needs a prototype" >&5 39124echo $ECHO_N "checking if iruserok needs a prototype... $ECHO_C" >&6; } 39125if test "${ac_cv_func_iruserok_noproto+set}" = set; then 39126 echo $ECHO_N "(cached) $ECHO_C" >&6 39127else 39128 cat >conftest.$ac_ext <<_ACEOF 39129/* confdefs.h. */ 39130_ACEOF 39131cat confdefs.h >>conftest.$ac_ext 39132cat >>conftest.$ac_ext <<_ACEOF 39133/* end confdefs.h. */ 39134 39135#ifdef HAVE_SYS_TYPES_H 39136#include <sys/types.h> 39137#endif 39138#ifdef HAVE_SYS_SOCKET_H 39139#include <sys/socket.h> 39140#endif 39141#ifdef HAVE_NETINET_IN_H 39142#include <netinet/in.h> 39143#endif 39144#ifdef HAVE_ARPA_INET_H 39145#include <arpa/inet.h> 39146#endif 39147#ifdef HAVE_NETDB_H 39148#include <netdb.h> 39149#endif 39150#ifdef HAVE_UNISTD_H 39151#include <unistd.h> 39152#endif 39153struct foo { int foo; } xx; 39154extern int iruserok (struct foo*); 39155int 39156main () 39157{ 39158iruserok(&xx) 39159 ; 39160 return 0; 39161} 39162_ACEOF 39163rm -f conftest.$ac_objext 39164if { (ac_try="$ac_compile" 39165case "(($ac_try" in 39166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39167 *) ac_try_echo=$ac_try;; 39168esac 39169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39170 (eval "$ac_compile") 2>conftest.er1 39171 ac_status=$? 39172 grep -v '^ *+' conftest.er1 >conftest.err 39173 rm -f conftest.er1 39174 cat conftest.err >&5 39175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39176 (exit $ac_status); } && { 39177 test -z "$ac_c_werror_flag" || 39178 test ! -s conftest.err 39179 } && test -s conftest.$ac_objext; then 39180 eval "ac_cv_func_iruserok_noproto=yes" 39181else 39182 echo "$as_me: failed program was:" >&5 39183sed 's/^/| /' conftest.$ac_ext >&5 39184 39185 eval "ac_cv_func_iruserok_noproto=no" 39186fi 39187 39188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39189fi 39190{ echo "$as_me:$LINENO: result: $ac_cv_func_iruserok_noproto" >&5 39191echo "${ECHO_T}$ac_cv_func_iruserok_noproto" >&6; } 39192if test "$ac_cv_func_iruserok_noproto" = yes; then 39193 39194cat >>confdefs.h <<\_ACEOF 39195#define NEED_IRUSEROK_PROTO 1 39196_ACEOF 39197 39198fi 39199fi 39200 39201 39202 39203if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 39204{ echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5 39205echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6; } 39206if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 39207 echo $ECHO_N "(cached) $ECHO_C" >&6 39208else 39209 cat >conftest.$ac_ext <<_ACEOF 39210/* confdefs.h. */ 39211_ACEOF 39212cat confdefs.h >>conftest.$ac_ext 39213cat >>conftest.$ac_ext <<_ACEOF 39214/* end confdefs.h. */ 39215 39216#ifdef HAVE_SYS_TYPES_H 39217#include <sys/types.h> 39218#endif 39219#ifdef HAVE_SYS_SOCKET_H 39220#include <sys/socket.h> 39221#endif 39222#ifdef HAVE_NETINET_IN_H 39223#include <netinet/in.h> 39224#endif 39225#ifdef HAVE_ARPA_INET_H 39226#include <arpa/inet.h> 39227#endif 39228struct foo { int foo; } xx; 39229extern int inet_aton (struct foo*); 39230int 39231main () 39232{ 39233inet_aton(&xx) 39234 ; 39235 return 0; 39236} 39237_ACEOF 39238rm -f conftest.$ac_objext 39239if { (ac_try="$ac_compile" 39240case "(($ac_try" in 39241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39242 *) ac_try_echo=$ac_try;; 39243esac 39244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39245 (eval "$ac_compile") 2>conftest.er1 39246 ac_status=$? 39247 grep -v '^ *+' conftest.er1 >conftest.err 39248 rm -f conftest.er1 39249 cat conftest.err >&5 39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39251 (exit $ac_status); } && { 39252 test -z "$ac_c_werror_flag" || 39253 test ! -s conftest.err 39254 } && test -s conftest.$ac_objext; then 39255 eval "ac_cv_func_inet_aton_noproto=yes" 39256else 39257 echo "$as_me: failed program was:" >&5 39258sed 's/^/| /' conftest.$ac_ext >&5 39259 39260 eval "ac_cv_func_inet_aton_noproto=no" 39261fi 39262 39263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39264fi 39265{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5 39266echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6; } 39267if test "$ac_cv_func_inet_aton_noproto" = yes; then 39268 39269cat >>confdefs.h <<\_ACEOF 39270#define NEED_INET_ATON_PROTO 1 39271_ACEOF 39272 39273fi 39274fi 39275 39276 39277 39278 39279 39280{ echo "$as_me:$LINENO: checking for crypt" >&5 39281echo $ECHO_N "checking for crypt... $ECHO_C" >&6; } 39282if test "${ac_cv_funclib_crypt+set}" = set; then 39283 echo $ECHO_N "(cached) $ECHO_C" >&6 39284else 39285 39286if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 39287 ac_save_LIBS="$LIBS" 39288 for ac_lib in "" crypt; do 39289 case "$ac_lib" in 39290 "") ;; 39291 yes) ac_lib="" ;; 39292 no) continue ;; 39293 -l*) ;; 39294 *) ac_lib="-l$ac_lib" ;; 39295 esac 39296 LIBS=" $ac_lib $ac_save_LIBS" 39297 cat >conftest.$ac_ext <<_ACEOF 39298/* confdefs.h. */ 39299_ACEOF 39300cat confdefs.h >>conftest.$ac_ext 39301cat >>conftest.$ac_ext <<_ACEOF 39302/* end confdefs.h. */ 39303 39304int 39305main () 39306{ 39307crypt() 39308 ; 39309 return 0; 39310} 39311_ACEOF 39312rm -f conftest.$ac_objext conftest$ac_exeext 39313if { (ac_try="$ac_link" 39314case "(($ac_try" in 39315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39316 *) ac_try_echo=$ac_try;; 39317esac 39318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39319 (eval "$ac_link") 2>conftest.er1 39320 ac_status=$? 39321 grep -v '^ *+' conftest.er1 >conftest.err 39322 rm -f conftest.er1 39323 cat conftest.err >&5 39324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39325 (exit $ac_status); } && { 39326 test -z "$ac_c_werror_flag" || 39327 test ! -s conftest.err 39328 } && test -s conftest$ac_exeext && 39329 $as_test_x conftest$ac_exeext; then 39330 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 39331else 39332 echo "$as_me: failed program was:" >&5 39333sed 's/^/| /' conftest.$ac_ext >&5 39334 39335 39336fi 39337 39338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 39339 conftest$ac_exeext conftest.$ac_ext 39340 done 39341 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 39342 LIBS="$ac_save_LIBS" 39343fi 39344 39345fi 39346 39347 39348eval "ac_res=\$ac_cv_funclib_crypt" 39349 39350if false; then 39351 39352for ac_func in crypt 39353do 39354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 39355{ echo "$as_me:$LINENO: checking for $ac_func" >&5 39356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 39357if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 39358 echo $ECHO_N "(cached) $ECHO_C" >&6 39359else 39360 cat >conftest.$ac_ext <<_ACEOF 39361/* confdefs.h. */ 39362_ACEOF 39363cat confdefs.h >>conftest.$ac_ext 39364cat >>conftest.$ac_ext <<_ACEOF 39365/* end confdefs.h. */ 39366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 39367 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 39368#define $ac_func innocuous_$ac_func 39369 39370/* System header to define __stub macros and hopefully few prototypes, 39371 which can conflict with char $ac_func (); below. 39372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 39373 <limits.h> exists even on freestanding compilers. */ 39374 39375#ifdef __STDC__ 39376# include <limits.h> 39377#else 39378# include <assert.h> 39379#endif 39380 39381#undef $ac_func 39382 39383/* Override any GCC internal prototype to avoid an error. 39384 Use char because int might match the return type of a GCC 39385 builtin and then its argument prototype would still apply. */ 39386#ifdef __cplusplus 39387extern "C" 39388#endif 39389char $ac_func (); 39390/* The GNU C library defines this for functions which it implements 39391 to always fail with ENOSYS. Some functions are actually named 39392 something starting with __ and the normal name is an alias. */ 39393#if defined __stub_$ac_func || defined __stub___$ac_func 39394choke me 39395#endif 39396 39397int 39398main () 39399{ 39400return $ac_func (); 39401 ; 39402 return 0; 39403} 39404_ACEOF 39405rm -f conftest.$ac_objext conftest$ac_exeext 39406if { (ac_try="$ac_link" 39407case "(($ac_try" in 39408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39409 *) ac_try_echo=$ac_try;; 39410esac 39411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39412 (eval "$ac_link") 2>conftest.er1 39413 ac_status=$? 39414 grep -v '^ *+' conftest.er1 >conftest.err 39415 rm -f conftest.er1 39416 cat conftest.err >&5 39417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39418 (exit $ac_status); } && { 39419 test -z "$ac_c_werror_flag" || 39420 test ! -s conftest.err 39421 } && test -s conftest$ac_exeext && 39422 $as_test_x conftest$ac_exeext; then 39423 eval "$as_ac_var=yes" 39424else 39425 echo "$as_me: failed program was:" >&5 39426sed 's/^/| /' conftest.$ac_ext >&5 39427 39428 eval "$as_ac_var=no" 39429fi 39430 39431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 39432 conftest$ac_exeext conftest.$ac_ext 39433fi 39434ac_res=`eval echo '${'$as_ac_var'}'` 39435 { echo "$as_me:$LINENO: result: $ac_res" >&5 39436echo "${ECHO_T}$ac_res" >&6; } 39437if test `eval echo '${'$as_ac_var'}'` = yes; then 39438 cat >>confdefs.h <<_ACEOF 39439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 39440_ACEOF 39441 39442fi 39443done 39444 39445fi 39446# crypt 39447eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 39448eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 39449eval "LIB_crypt=$ac_res" 39450 39451case "$ac_res" in 39452 yes) 39453 eval "ac_cv_func_crypt=yes" 39454 eval "LIB_crypt=" 39455 cat >>confdefs.h <<_ACEOF 39456#define $ac_tr_func 1 39457_ACEOF 39458 39459 { echo "$as_me:$LINENO: result: yes" >&5 39460echo "${ECHO_T}yes" >&6; } 39461 ;; 39462 no) 39463 eval "ac_cv_func_crypt=no" 39464 eval "LIB_crypt=" 39465 { echo "$as_me:$LINENO: result: no" >&5 39466echo "${ECHO_T}no" >&6; } 39467 ;; 39468 *) 39469 eval "ac_cv_func_crypt=yes" 39470 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 39471 cat >>confdefs.h <<_ACEOF 39472#define $ac_tr_func 1 39473_ACEOF 39474 39475 cat >>confdefs.h <<_ACEOF 39476#define $ac_tr_lib 1 39477_ACEOF 39478 39479 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 39480echo "${ECHO_T}yes, in $ac_res" >&6; } 39481 ;; 39482esac 39483 39484 39485 39486 39487 39488 39489{ echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5 39490echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6; } 39491if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 39492 echo $ECHO_N "(cached) $ECHO_C" >&6 39493else 39494 cat >conftest.$ac_ext <<_ACEOF 39495/* confdefs.h. */ 39496_ACEOF 39497cat confdefs.h >>conftest.$ac_ext 39498cat >>conftest.$ac_ext <<_ACEOF 39499/* end confdefs.h. */ 39500 39501#ifdef HAVE_SYS_TYPES_H 39502#include <sys/types.h> 39503#endif 39504#ifdef HAVE_SYS_SOCKET_H 39505#include <sys/socket.h> 39506#endif 39507#ifdef HAVE_NETINET_IN_H 39508#include <netinet/in.h> 39509#endif 39510#ifdef HAVE_ARPA_INET_H 39511#include <arpa/inet.h> 39512#endif 39513#ifdef HAVE_NETDB_H 39514#include <netdb.h> 39515#endif 39516 39517int 39518main () 39519{ 39520struct hostent *gethostbyname(const char *) 39521 ; 39522 return 0; 39523} 39524_ACEOF 39525rm -f conftest.$ac_objext 39526if { (ac_try="$ac_compile" 39527case "(($ac_try" in 39528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39529 *) ac_try_echo=$ac_try;; 39530esac 39531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39532 (eval "$ac_compile") 2>conftest.er1 39533 ac_status=$? 39534 grep -v '^ *+' conftest.er1 >conftest.err 39535 rm -f conftest.er1 39536 cat conftest.err >&5 39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39538 (exit $ac_status); } && { 39539 test -z "$ac_c_werror_flag" || 39540 test ! -s conftest.err 39541 } && test -s conftest.$ac_objext; then 39542 eval "ac_cv_func_gethostbyname_proto_compat=yes" 39543else 39544 echo "$as_me: failed program was:" >&5 39545sed 's/^/| /' conftest.$ac_ext >&5 39546 39547 eval "ac_cv_func_gethostbyname_proto_compat=no" 39548fi 39549 39550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39551fi 39552{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5 39553echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6; } 39554 39555if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 39556 39557cat >>confdefs.h <<\_ACEOF 39558#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 39559_ACEOF 39560 39561fi 39562 39563 39564 39565 39566{ echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5 39567echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6; } 39568if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 39569 echo $ECHO_N "(cached) $ECHO_C" >&6 39570else 39571 cat >conftest.$ac_ext <<_ACEOF 39572/* confdefs.h. */ 39573_ACEOF 39574cat confdefs.h >>conftest.$ac_ext 39575cat >>conftest.$ac_ext <<_ACEOF 39576/* end confdefs.h. */ 39577 39578#ifdef HAVE_SYS_TYPES_H 39579#include <sys/types.h> 39580#endif 39581#ifdef HAVE_SYS_SOCKET_H 39582#include <sys/socket.h> 39583#endif 39584#ifdef HAVE_NETINET_IN_H 39585#include <netinet/in.h> 39586#endif 39587#ifdef HAVE_ARPA_INET_H 39588#include <arpa/inet.h> 39589#endif 39590#ifdef HAVE_NETDB_H 39591#include <netdb.h> 39592#endif 39593 39594int 39595main () 39596{ 39597struct hostent *gethostbyaddr(const void *, size_t, int) 39598 ; 39599 return 0; 39600} 39601_ACEOF 39602rm -f conftest.$ac_objext 39603if { (ac_try="$ac_compile" 39604case "(($ac_try" in 39605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39606 *) ac_try_echo=$ac_try;; 39607esac 39608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39609 (eval "$ac_compile") 2>conftest.er1 39610 ac_status=$? 39611 grep -v '^ *+' conftest.er1 >conftest.err 39612 rm -f conftest.er1 39613 cat conftest.err >&5 39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39615 (exit $ac_status); } && { 39616 test -z "$ac_c_werror_flag" || 39617 test ! -s conftest.err 39618 } && test -s conftest.$ac_objext; then 39619 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 39620else 39621 echo "$as_me: failed program was:" >&5 39622sed 's/^/| /' conftest.$ac_ext >&5 39623 39624 eval "ac_cv_func_gethostbyaddr_proto_compat=no" 39625fi 39626 39627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39628fi 39629{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 39630echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6; } 39631 39632if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 39633 39634cat >>confdefs.h <<\_ACEOF 39635#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 39636_ACEOF 39637 39638fi 39639 39640 39641 39642 39643{ echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5 39644echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6; } 39645if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 39646 echo $ECHO_N "(cached) $ECHO_C" >&6 39647else 39648 cat >conftest.$ac_ext <<_ACEOF 39649/* confdefs.h. */ 39650_ACEOF 39651cat confdefs.h >>conftest.$ac_ext 39652cat >>conftest.$ac_ext <<_ACEOF 39653/* end confdefs.h. */ 39654 39655#ifdef HAVE_SYS_TYPES_H 39656#include <sys/types.h> 39657#endif 39658#ifdef HAVE_SYS_SOCKET_H 39659#include <sys/socket.h> 39660#endif 39661#ifdef HAVE_NETINET_IN_H 39662#include <netinet/in.h> 39663#endif 39664#ifdef HAVE_ARPA_INET_H 39665#include <arpa/inet.h> 39666#endif 39667#ifdef HAVE_NETDB_H 39668#include <netdb.h> 39669#endif 39670 39671int 39672main () 39673{ 39674struct servent *getservbyname(const char *, const char *) 39675 ; 39676 return 0; 39677} 39678_ACEOF 39679rm -f conftest.$ac_objext 39680if { (ac_try="$ac_compile" 39681case "(($ac_try" in 39682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39683 *) ac_try_echo=$ac_try;; 39684esac 39685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39686 (eval "$ac_compile") 2>conftest.er1 39687 ac_status=$? 39688 grep -v '^ *+' conftest.er1 >conftest.err 39689 rm -f conftest.er1 39690 cat conftest.err >&5 39691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39692 (exit $ac_status); } && { 39693 test -z "$ac_c_werror_flag" || 39694 test ! -s conftest.err 39695 } && test -s conftest.$ac_objext; then 39696 eval "ac_cv_func_getservbyname_proto_compat=yes" 39697else 39698 echo "$as_me: failed program was:" >&5 39699sed 's/^/| /' conftest.$ac_ext >&5 39700 39701 eval "ac_cv_func_getservbyname_proto_compat=no" 39702fi 39703 39704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39705fi 39706{ echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5 39707echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6; } 39708 39709if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 39710 39711cat >>confdefs.h <<\_ACEOF 39712#define GETSERVBYNAME_PROTO_COMPATIBLE 1 39713_ACEOF 39714 39715fi 39716 39717 39718 39719 39720{ echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5 39721echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6; } 39722if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 39723 echo $ECHO_N "(cached) $ECHO_C" >&6 39724else 39725 cat >conftest.$ac_ext <<_ACEOF 39726/* confdefs.h. */ 39727_ACEOF 39728cat confdefs.h >>conftest.$ac_ext 39729cat >>conftest.$ac_ext <<_ACEOF 39730/* end confdefs.h. */ 39731 39732#ifdef HAVE_SYS_TYPES_H 39733#include <sys/types.h> 39734#endif 39735#ifdef HAVE_SYS_SOCKET_H 39736#include <sys/socket.h> 39737#endif 39738 39739int 39740main () 39741{ 39742int getsockname(int, struct sockaddr*, socklen_t*) 39743 ; 39744 return 0; 39745} 39746_ACEOF 39747rm -f conftest.$ac_objext 39748if { (ac_try="$ac_compile" 39749case "(($ac_try" in 39750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39751 *) ac_try_echo=$ac_try;; 39752esac 39753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39754 (eval "$ac_compile") 2>conftest.er1 39755 ac_status=$? 39756 grep -v '^ *+' conftest.er1 >conftest.err 39757 rm -f conftest.er1 39758 cat conftest.err >&5 39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39760 (exit $ac_status); } && { 39761 test -z "$ac_c_werror_flag" || 39762 test ! -s conftest.err 39763 } && test -s conftest.$ac_objext; then 39764 eval "ac_cv_func_getsockname_proto_compat=yes" 39765else 39766 echo "$as_me: failed program was:" >&5 39767sed 's/^/| /' conftest.$ac_ext >&5 39768 39769 eval "ac_cv_func_getsockname_proto_compat=no" 39770fi 39771 39772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39773fi 39774{ echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5 39775echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6; } 39776 39777if test "$ac_cv_func_getsockname_proto_compat" = yes; then 39778 39779cat >>confdefs.h <<\_ACEOF 39780#define GETSOCKNAME_PROTO_COMPATIBLE 1 39781_ACEOF 39782 39783fi 39784 39785 39786 39787 39788{ echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5 39789echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6; } 39790if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 39791 echo $ECHO_N "(cached) $ECHO_C" >&6 39792else 39793 cat >conftest.$ac_ext <<_ACEOF 39794/* confdefs.h. */ 39795_ACEOF 39796cat confdefs.h >>conftest.$ac_ext 39797cat >>conftest.$ac_ext <<_ACEOF 39798/* end confdefs.h. */ 39799 39800#ifdef HAVE_SYSLOG_H 39801#include <syslog.h> 39802#endif 39803 39804int 39805main () 39806{ 39807void openlog(const char *, int, int) 39808 ; 39809 return 0; 39810} 39811_ACEOF 39812rm -f conftest.$ac_objext 39813if { (ac_try="$ac_compile" 39814case "(($ac_try" in 39815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39816 *) ac_try_echo=$ac_try;; 39817esac 39818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39819 (eval "$ac_compile") 2>conftest.er1 39820 ac_status=$? 39821 grep -v '^ *+' conftest.er1 >conftest.err 39822 rm -f conftest.er1 39823 cat conftest.err >&5 39824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39825 (exit $ac_status); } && { 39826 test -z "$ac_c_werror_flag" || 39827 test ! -s conftest.err 39828 } && test -s conftest.$ac_objext; then 39829 eval "ac_cv_func_openlog_proto_compat=yes" 39830else 39831 echo "$as_me: failed program was:" >&5 39832sed 's/^/| /' conftest.$ac_ext >&5 39833 39834 eval "ac_cv_func_openlog_proto_compat=no" 39835fi 39836 39837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39838fi 39839{ echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5 39840echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6; } 39841 39842if test "$ac_cv_func_openlog_proto_compat" = yes; then 39843 39844cat >>confdefs.h <<\_ACEOF 39845#define OPENLOG_PROTO_COMPATIBLE 1 39846_ACEOF 39847 39848fi 39849 39850 39851 39852 39853if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 39854{ echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5 39855echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6; } 39856if test "${ac_cv_func_crypt_noproto+set}" = set; then 39857 echo $ECHO_N "(cached) $ECHO_C" >&6 39858else 39859 cat >conftest.$ac_ext <<_ACEOF 39860/* confdefs.h. */ 39861_ACEOF 39862cat confdefs.h >>conftest.$ac_ext 39863cat >>conftest.$ac_ext <<_ACEOF 39864/* end confdefs.h. */ 39865 39866#ifdef HAVE_CRYPT_H 39867#include <crypt.h> 39868#endif 39869#ifdef HAVE_UNISTD_H 39870#include <unistd.h> 39871#endif 39872 39873struct foo { int foo; } xx; 39874extern int crypt (struct foo*); 39875int 39876main () 39877{ 39878crypt(&xx) 39879 ; 39880 return 0; 39881} 39882_ACEOF 39883rm -f conftest.$ac_objext 39884if { (ac_try="$ac_compile" 39885case "(($ac_try" in 39886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39887 *) ac_try_echo=$ac_try;; 39888esac 39889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39890 (eval "$ac_compile") 2>conftest.er1 39891 ac_status=$? 39892 grep -v '^ *+' conftest.er1 >conftest.err 39893 rm -f conftest.er1 39894 cat conftest.err >&5 39895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39896 (exit $ac_status); } && { 39897 test -z "$ac_c_werror_flag" || 39898 test ! -s conftest.err 39899 } && test -s conftest.$ac_objext; then 39900 eval "ac_cv_func_crypt_noproto=yes" 39901else 39902 echo "$as_me: failed program was:" >&5 39903sed 's/^/| /' conftest.$ac_ext >&5 39904 39905 eval "ac_cv_func_crypt_noproto=no" 39906fi 39907 39908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39909fi 39910{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5 39911echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6; } 39912if test "$ac_cv_func_crypt_noproto" = yes; then 39913 39914cat >>confdefs.h <<\_ACEOF 39915#define NEED_CRYPT_PROTO 1 39916_ACEOF 39917 39918fi 39919fi 39920 39921 39922 39923 39924{ echo "$as_me:$LINENO: checking for h_errno" >&5 39925echo $ECHO_N "checking for h_errno... $ECHO_C" >&6; } 39926if test "${ac_cv_var_h_errno+set}" = set; then 39927 echo $ECHO_N "(cached) $ECHO_C" >&6 39928else 39929 39930 39931 cat >conftest.$ac_ext <<_ACEOF 39932/* confdefs.h. */ 39933_ACEOF 39934cat confdefs.h >>conftest.$ac_ext 39935cat >>conftest.$ac_ext <<_ACEOF 39936/* end confdefs.h. */ 39937#ifdef HAVE_SYS_TYPES_H 39938#include <sys/types.h> 39939#endif 39940#ifdef HAVE_NETDB_H 39941#include <netdb.h> 39942#endif 39943 void * foo(void) { return &h_errno; } 39944int 39945main () 39946{ 39947foo() 39948 ; 39949 return 0; 39950} 39951_ACEOF 39952rm -f conftest.$ac_objext conftest$ac_exeext 39953if { (ac_try="$ac_link" 39954case "(($ac_try" in 39955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 39956 *) ac_try_echo=$ac_try;; 39957esac 39958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 39959 (eval "$ac_link") 2>conftest.er1 39960 ac_status=$? 39961 grep -v '^ *+' conftest.er1 >conftest.err 39962 rm -f conftest.er1 39963 cat conftest.err >&5 39964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 39965 (exit $ac_status); } && { 39966 test -z "$ac_c_werror_flag" || 39967 test ! -s conftest.err 39968 } && test -s conftest$ac_exeext && 39969 $as_test_x conftest$ac_exeext; then 39970 ac_cv_var_h_errno=yes 39971else 39972 echo "$as_me: failed program was:" >&5 39973sed 's/^/| /' conftest.$ac_ext >&5 39974 39975 ac_cv_var_h_errno=no 39976fi 39977 39978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 39979 conftest$ac_exeext conftest.$ac_ext 39980if test "$ac_cv_var_h_errno" != yes ; then 39981cat >conftest.$ac_ext <<_ACEOF 39982/* confdefs.h. */ 39983_ACEOF 39984cat confdefs.h >>conftest.$ac_ext 39985cat >>conftest.$ac_ext <<_ACEOF 39986/* end confdefs.h. */ 39987extern int h_errno; 39988int foo(void) { return h_errno; } 39989int 39990main () 39991{ 39992foo() 39993 ; 39994 return 0; 39995} 39996_ACEOF 39997rm -f conftest.$ac_objext conftest$ac_exeext 39998if { (ac_try="$ac_link" 39999case "(($ac_try" in 40000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40001 *) ac_try_echo=$ac_try;; 40002esac 40003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40004 (eval "$ac_link") 2>conftest.er1 40005 ac_status=$? 40006 grep -v '^ *+' conftest.er1 >conftest.err 40007 rm -f conftest.er1 40008 cat conftest.err >&5 40009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40010 (exit $ac_status); } && { 40011 test -z "$ac_c_werror_flag" || 40012 test ! -s conftest.err 40013 } && test -s conftest$ac_exeext && 40014 $as_test_x conftest$ac_exeext; then 40015 ac_cv_var_h_errno=yes 40016else 40017 echo "$as_me: failed program was:" >&5 40018sed 's/^/| /' conftest.$ac_ext >&5 40019 40020 ac_cv_var_h_errno=no 40021fi 40022 40023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40024 conftest$ac_exeext conftest.$ac_ext 40025fi 40026 40027fi 40028 40029ac_foo=`eval echo \\$ac_cv_var_h_errno` 40030{ echo "$as_me:$LINENO: result: $ac_foo" >&5 40031echo "${ECHO_T}$ac_foo" >&6; } 40032if test "$ac_foo" = yes; then 40033 40034cat >>confdefs.h <<_ACEOF 40035#define HAVE_H_ERRNO 1 40036_ACEOF 40037 40038 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 40039echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; } 40040if test "${ac_cv_have_decl_h_errno+set}" = set; then 40041 echo $ECHO_N "(cached) $ECHO_C" >&6 40042else 40043 cat >conftest.$ac_ext <<_ACEOF 40044/* confdefs.h. */ 40045_ACEOF 40046cat confdefs.h >>conftest.$ac_ext 40047cat >>conftest.$ac_ext <<_ACEOF 40048/* end confdefs.h. */ 40049#ifdef HAVE_SYS_TYPES_H 40050#include <sys/types.h> 40051#endif 40052#ifdef HAVE_NETDB_H 40053#include <netdb.h> 40054#endif 40055 40056int 40057main () 40058{ 40059#ifndef h_errno 40060 (void) h_errno; 40061#endif 40062 40063 ; 40064 return 0; 40065} 40066_ACEOF 40067rm -f conftest.$ac_objext 40068if { (ac_try="$ac_compile" 40069case "(($ac_try" in 40070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40071 *) ac_try_echo=$ac_try;; 40072esac 40073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40074 (eval "$ac_compile") 2>conftest.er1 40075 ac_status=$? 40076 grep -v '^ *+' conftest.er1 >conftest.err 40077 rm -f conftest.er1 40078 cat conftest.err >&5 40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40080 (exit $ac_status); } && { 40081 test -z "$ac_c_werror_flag" || 40082 test ! -s conftest.err 40083 } && test -s conftest.$ac_objext; then 40084 ac_cv_have_decl_h_errno=yes 40085else 40086 echo "$as_me: failed program was:" >&5 40087sed 's/^/| /' conftest.$ac_ext >&5 40088 40089 ac_cv_have_decl_h_errno=no 40090fi 40091 40092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40093fi 40094{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 40095echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; } 40096if test $ac_cv_have_decl_h_errno = yes; then 40097 40098cat >>confdefs.h <<_ACEOF 40099#define HAVE_DECL_H_ERRNO 1 40100_ACEOF 40101 40102 40103else 40104 cat >>confdefs.h <<_ACEOF 40105#define HAVE_DECL_H_ERRNO 0 40106_ACEOF 40107 40108 40109fi 40110 40111 40112fi 40113 40114 40115 40116{ echo "$as_me:$LINENO: checking for h_errlist" >&5 40117echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6; } 40118if test "${ac_cv_var_h_errlist+set}" = set; then 40119 echo $ECHO_N "(cached) $ECHO_C" >&6 40120else 40121 40122 40123 cat >conftest.$ac_ext <<_ACEOF 40124/* confdefs.h. */ 40125_ACEOF 40126cat confdefs.h >>conftest.$ac_ext 40127cat >>conftest.$ac_ext <<_ACEOF 40128/* end confdefs.h. */ 40129#ifdef HAVE_NETDB_H 40130#include <netdb.h> 40131#endif 40132 void * foo(void) { return &h_errlist; } 40133int 40134main () 40135{ 40136foo() 40137 ; 40138 return 0; 40139} 40140_ACEOF 40141rm -f conftest.$ac_objext conftest$ac_exeext 40142if { (ac_try="$ac_link" 40143case "(($ac_try" in 40144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40145 *) ac_try_echo=$ac_try;; 40146esac 40147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40148 (eval "$ac_link") 2>conftest.er1 40149 ac_status=$? 40150 grep -v '^ *+' conftest.er1 >conftest.err 40151 rm -f conftest.er1 40152 cat conftest.err >&5 40153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40154 (exit $ac_status); } && { 40155 test -z "$ac_c_werror_flag" || 40156 test ! -s conftest.err 40157 } && test -s conftest$ac_exeext && 40158 $as_test_x conftest$ac_exeext; then 40159 ac_cv_var_h_errlist=yes 40160else 40161 echo "$as_me: failed program was:" >&5 40162sed 's/^/| /' conftest.$ac_ext >&5 40163 40164 ac_cv_var_h_errlist=no 40165fi 40166 40167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40168 conftest$ac_exeext conftest.$ac_ext 40169if test "$ac_cv_var_h_errlist" != yes ; then 40170cat >conftest.$ac_ext <<_ACEOF 40171/* confdefs.h. */ 40172_ACEOF 40173cat confdefs.h >>conftest.$ac_ext 40174cat >>conftest.$ac_ext <<_ACEOF 40175/* end confdefs.h. */ 40176extern int h_errlist; 40177int foo(void) { return h_errlist; } 40178int 40179main () 40180{ 40181foo() 40182 ; 40183 return 0; 40184} 40185_ACEOF 40186rm -f conftest.$ac_objext conftest$ac_exeext 40187if { (ac_try="$ac_link" 40188case "(($ac_try" in 40189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40190 *) ac_try_echo=$ac_try;; 40191esac 40192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40193 (eval "$ac_link") 2>conftest.er1 40194 ac_status=$? 40195 grep -v '^ *+' conftest.er1 >conftest.err 40196 rm -f conftest.er1 40197 cat conftest.err >&5 40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40199 (exit $ac_status); } && { 40200 test -z "$ac_c_werror_flag" || 40201 test ! -s conftest.err 40202 } && test -s conftest$ac_exeext && 40203 $as_test_x conftest$ac_exeext; then 40204 ac_cv_var_h_errlist=yes 40205else 40206 echo "$as_me: failed program was:" >&5 40207sed 's/^/| /' conftest.$ac_ext >&5 40208 40209 ac_cv_var_h_errlist=no 40210fi 40211 40212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40213 conftest$ac_exeext conftest.$ac_ext 40214fi 40215 40216fi 40217 40218ac_foo=`eval echo \\$ac_cv_var_h_errlist` 40219{ echo "$as_me:$LINENO: result: $ac_foo" >&5 40220echo "${ECHO_T}$ac_foo" >&6; } 40221if test "$ac_foo" = yes; then 40222 40223cat >>confdefs.h <<_ACEOF 40224#define HAVE_H_ERRLIST 1 40225_ACEOF 40226 40227 { echo "$as_me:$LINENO: checking whether h_errlist is declared" >&5 40228echo $ECHO_N "checking whether h_errlist is declared... $ECHO_C" >&6; } 40229if test "${ac_cv_have_decl_h_errlist+set}" = set; then 40230 echo $ECHO_N "(cached) $ECHO_C" >&6 40231else 40232 cat >conftest.$ac_ext <<_ACEOF 40233/* confdefs.h. */ 40234_ACEOF 40235cat confdefs.h >>conftest.$ac_ext 40236cat >>conftest.$ac_ext <<_ACEOF 40237/* end confdefs.h. */ 40238#ifdef HAVE_NETDB_H 40239#include <netdb.h> 40240#endif 40241 40242int 40243main () 40244{ 40245#ifndef h_errlist 40246 (void) h_errlist; 40247#endif 40248 40249 ; 40250 return 0; 40251} 40252_ACEOF 40253rm -f conftest.$ac_objext 40254if { (ac_try="$ac_compile" 40255case "(($ac_try" in 40256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40257 *) ac_try_echo=$ac_try;; 40258esac 40259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40260 (eval "$ac_compile") 2>conftest.er1 40261 ac_status=$? 40262 grep -v '^ *+' conftest.er1 >conftest.err 40263 rm -f conftest.er1 40264 cat conftest.err >&5 40265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40266 (exit $ac_status); } && { 40267 test -z "$ac_c_werror_flag" || 40268 test ! -s conftest.err 40269 } && test -s conftest.$ac_objext; then 40270 ac_cv_have_decl_h_errlist=yes 40271else 40272 echo "$as_me: failed program was:" >&5 40273sed 's/^/| /' conftest.$ac_ext >&5 40274 40275 ac_cv_have_decl_h_errlist=no 40276fi 40277 40278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40279fi 40280{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errlist" >&5 40281echo "${ECHO_T}$ac_cv_have_decl_h_errlist" >&6; } 40282if test $ac_cv_have_decl_h_errlist = yes; then 40283 40284cat >>confdefs.h <<_ACEOF 40285#define HAVE_DECL_H_ERRLIST 1 40286_ACEOF 40287 40288 40289else 40290 cat >>confdefs.h <<_ACEOF 40291#define HAVE_DECL_H_ERRLIST 0 40292_ACEOF 40293 40294 40295fi 40296 40297 40298fi 40299 40300 40301 40302{ echo "$as_me:$LINENO: checking for h_nerr" >&5 40303echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6; } 40304if test "${ac_cv_var_h_nerr+set}" = set; then 40305 echo $ECHO_N "(cached) $ECHO_C" >&6 40306else 40307 40308 40309 cat >conftest.$ac_ext <<_ACEOF 40310/* confdefs.h. */ 40311_ACEOF 40312cat confdefs.h >>conftest.$ac_ext 40313cat >>conftest.$ac_ext <<_ACEOF 40314/* end confdefs.h. */ 40315#ifdef HAVE_NETDB_H 40316#include <netdb.h> 40317#endif 40318 void * foo(void) { return &h_nerr; } 40319int 40320main () 40321{ 40322foo() 40323 ; 40324 return 0; 40325} 40326_ACEOF 40327rm -f conftest.$ac_objext conftest$ac_exeext 40328if { (ac_try="$ac_link" 40329case "(($ac_try" in 40330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40331 *) ac_try_echo=$ac_try;; 40332esac 40333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40334 (eval "$ac_link") 2>conftest.er1 40335 ac_status=$? 40336 grep -v '^ *+' conftest.er1 >conftest.err 40337 rm -f conftest.er1 40338 cat conftest.err >&5 40339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40340 (exit $ac_status); } && { 40341 test -z "$ac_c_werror_flag" || 40342 test ! -s conftest.err 40343 } && test -s conftest$ac_exeext && 40344 $as_test_x conftest$ac_exeext; then 40345 ac_cv_var_h_nerr=yes 40346else 40347 echo "$as_me: failed program was:" >&5 40348sed 's/^/| /' conftest.$ac_ext >&5 40349 40350 ac_cv_var_h_nerr=no 40351fi 40352 40353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40354 conftest$ac_exeext conftest.$ac_ext 40355if test "$ac_cv_var_h_nerr" != yes ; then 40356cat >conftest.$ac_ext <<_ACEOF 40357/* confdefs.h. */ 40358_ACEOF 40359cat confdefs.h >>conftest.$ac_ext 40360cat >>conftest.$ac_ext <<_ACEOF 40361/* end confdefs.h. */ 40362extern int h_nerr; 40363int foo(void) { return h_nerr; } 40364int 40365main () 40366{ 40367foo() 40368 ; 40369 return 0; 40370} 40371_ACEOF 40372rm -f conftest.$ac_objext conftest$ac_exeext 40373if { (ac_try="$ac_link" 40374case "(($ac_try" in 40375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40376 *) ac_try_echo=$ac_try;; 40377esac 40378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40379 (eval "$ac_link") 2>conftest.er1 40380 ac_status=$? 40381 grep -v '^ *+' conftest.er1 >conftest.err 40382 rm -f conftest.er1 40383 cat conftest.err >&5 40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40385 (exit $ac_status); } && { 40386 test -z "$ac_c_werror_flag" || 40387 test ! -s conftest.err 40388 } && test -s conftest$ac_exeext && 40389 $as_test_x conftest$ac_exeext; then 40390 ac_cv_var_h_nerr=yes 40391else 40392 echo "$as_me: failed program was:" >&5 40393sed 's/^/| /' conftest.$ac_ext >&5 40394 40395 ac_cv_var_h_nerr=no 40396fi 40397 40398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40399 conftest$ac_exeext conftest.$ac_ext 40400fi 40401 40402fi 40403 40404ac_foo=`eval echo \\$ac_cv_var_h_nerr` 40405{ echo "$as_me:$LINENO: result: $ac_foo" >&5 40406echo "${ECHO_T}$ac_foo" >&6; } 40407if test "$ac_foo" = yes; then 40408 40409cat >>confdefs.h <<_ACEOF 40410#define HAVE_H_NERR 1 40411_ACEOF 40412 40413 { echo "$as_me:$LINENO: checking whether h_nerr is declared" >&5 40414echo $ECHO_N "checking whether h_nerr is declared... $ECHO_C" >&6; } 40415if test "${ac_cv_have_decl_h_nerr+set}" = set; then 40416 echo $ECHO_N "(cached) $ECHO_C" >&6 40417else 40418 cat >conftest.$ac_ext <<_ACEOF 40419/* confdefs.h. */ 40420_ACEOF 40421cat confdefs.h >>conftest.$ac_ext 40422cat >>conftest.$ac_ext <<_ACEOF 40423/* end confdefs.h. */ 40424#ifdef HAVE_NETDB_H 40425#include <netdb.h> 40426#endif 40427 40428int 40429main () 40430{ 40431#ifndef h_nerr 40432 (void) h_nerr; 40433#endif 40434 40435 ; 40436 return 0; 40437} 40438_ACEOF 40439rm -f conftest.$ac_objext 40440if { (ac_try="$ac_compile" 40441case "(($ac_try" in 40442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40443 *) ac_try_echo=$ac_try;; 40444esac 40445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40446 (eval "$ac_compile") 2>conftest.er1 40447 ac_status=$? 40448 grep -v '^ *+' conftest.er1 >conftest.err 40449 rm -f conftest.er1 40450 cat conftest.err >&5 40451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40452 (exit $ac_status); } && { 40453 test -z "$ac_c_werror_flag" || 40454 test ! -s conftest.err 40455 } && test -s conftest.$ac_objext; then 40456 ac_cv_have_decl_h_nerr=yes 40457else 40458 echo "$as_me: failed program was:" >&5 40459sed 's/^/| /' conftest.$ac_ext >&5 40460 40461 ac_cv_have_decl_h_nerr=no 40462fi 40463 40464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40465fi 40466{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_nerr" >&5 40467echo "${ECHO_T}$ac_cv_have_decl_h_nerr" >&6; } 40468if test $ac_cv_have_decl_h_nerr = yes; then 40469 40470cat >>confdefs.h <<_ACEOF 40471#define HAVE_DECL_H_NERR 1 40472_ACEOF 40473 40474 40475else 40476 cat >>confdefs.h <<_ACEOF 40477#define HAVE_DECL_H_NERR 0 40478_ACEOF 40479 40480 40481fi 40482 40483 40484fi 40485 40486 40487 40488{ echo "$as_me:$LINENO: checking for __progname" >&5 40489echo $ECHO_N "checking for __progname... $ECHO_C" >&6; } 40490if test "${ac_cv_var___progname+set}" = set; then 40491 echo $ECHO_N "(cached) $ECHO_C" >&6 40492else 40493 40494 40495 cat >conftest.$ac_ext <<_ACEOF 40496/* confdefs.h. */ 40497_ACEOF 40498cat confdefs.h >>conftest.$ac_ext 40499cat >>conftest.$ac_ext <<_ACEOF 40500/* end confdefs.h. */ 40501#ifdef HAVE_ERR_H 40502#include <err.h> 40503#endif 40504 void * foo(void) { return &__progname; } 40505int 40506main () 40507{ 40508foo() 40509 ; 40510 return 0; 40511} 40512_ACEOF 40513rm -f conftest.$ac_objext conftest$ac_exeext 40514if { (ac_try="$ac_link" 40515case "(($ac_try" in 40516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40517 *) ac_try_echo=$ac_try;; 40518esac 40519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40520 (eval "$ac_link") 2>conftest.er1 40521 ac_status=$? 40522 grep -v '^ *+' conftest.er1 >conftest.err 40523 rm -f conftest.er1 40524 cat conftest.err >&5 40525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40526 (exit $ac_status); } && { 40527 test -z "$ac_c_werror_flag" || 40528 test ! -s conftest.err 40529 } && test -s conftest$ac_exeext && 40530 $as_test_x conftest$ac_exeext; then 40531 ac_cv_var___progname=yes 40532else 40533 echo "$as_me: failed program was:" >&5 40534sed 's/^/| /' conftest.$ac_ext >&5 40535 40536 ac_cv_var___progname=no 40537fi 40538 40539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40540 conftest$ac_exeext conftest.$ac_ext 40541if test "$ac_cv_var___progname" != yes ; then 40542cat >conftest.$ac_ext <<_ACEOF 40543/* confdefs.h. */ 40544_ACEOF 40545cat confdefs.h >>conftest.$ac_ext 40546cat >>conftest.$ac_ext <<_ACEOF 40547/* end confdefs.h. */ 40548extern int __progname; 40549int foo(void) { return __progname; } 40550int 40551main () 40552{ 40553foo() 40554 ; 40555 return 0; 40556} 40557_ACEOF 40558rm -f conftest.$ac_objext conftest$ac_exeext 40559if { (ac_try="$ac_link" 40560case "(($ac_try" in 40561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40562 *) ac_try_echo=$ac_try;; 40563esac 40564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40565 (eval "$ac_link") 2>conftest.er1 40566 ac_status=$? 40567 grep -v '^ *+' conftest.er1 >conftest.err 40568 rm -f conftest.er1 40569 cat conftest.err >&5 40570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40571 (exit $ac_status); } && { 40572 test -z "$ac_c_werror_flag" || 40573 test ! -s conftest.err 40574 } && test -s conftest$ac_exeext && 40575 $as_test_x conftest$ac_exeext; then 40576 ac_cv_var___progname=yes 40577else 40578 echo "$as_me: failed program was:" >&5 40579sed 's/^/| /' conftest.$ac_ext >&5 40580 40581 ac_cv_var___progname=no 40582fi 40583 40584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 40585 conftest$ac_exeext conftest.$ac_ext 40586fi 40587 40588fi 40589 40590ac_foo=`eval echo \\$ac_cv_var___progname` 40591{ echo "$as_me:$LINENO: result: $ac_foo" >&5 40592echo "${ECHO_T}$ac_foo" >&6; } 40593if test "$ac_foo" = yes; then 40594 40595cat >>confdefs.h <<_ACEOF 40596#define HAVE___PROGNAME 1 40597_ACEOF 40598 40599 { echo "$as_me:$LINENO: checking whether __progname is declared" >&5 40600echo $ECHO_N "checking whether __progname is declared... $ECHO_C" >&6; } 40601if test "${ac_cv_have_decl___progname+set}" = set; then 40602 echo $ECHO_N "(cached) $ECHO_C" >&6 40603else 40604 cat >conftest.$ac_ext <<_ACEOF 40605/* confdefs.h. */ 40606_ACEOF 40607cat confdefs.h >>conftest.$ac_ext 40608cat >>conftest.$ac_ext <<_ACEOF 40609/* end confdefs.h. */ 40610#ifdef HAVE_ERR_H 40611#include <err.h> 40612#endif 40613 40614int 40615main () 40616{ 40617#ifndef __progname 40618 (void) __progname; 40619#endif 40620 40621 ; 40622 return 0; 40623} 40624_ACEOF 40625rm -f conftest.$ac_objext 40626if { (ac_try="$ac_compile" 40627case "(($ac_try" in 40628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40629 *) ac_try_echo=$ac_try;; 40630esac 40631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40632 (eval "$ac_compile") 2>conftest.er1 40633 ac_status=$? 40634 grep -v '^ *+' conftest.er1 >conftest.err 40635 rm -f conftest.er1 40636 cat conftest.err >&5 40637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40638 (exit $ac_status); } && { 40639 test -z "$ac_c_werror_flag" || 40640 test ! -s conftest.err 40641 } && test -s conftest.$ac_objext; then 40642 ac_cv_have_decl___progname=yes 40643else 40644 echo "$as_me: failed program was:" >&5 40645sed 's/^/| /' conftest.$ac_ext >&5 40646 40647 ac_cv_have_decl___progname=no 40648fi 40649 40650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40651fi 40652{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___progname" >&5 40653echo "${ECHO_T}$ac_cv_have_decl___progname" >&6; } 40654if test $ac_cv_have_decl___progname = yes; then 40655 40656cat >>confdefs.h <<_ACEOF 40657#define HAVE_DECL___PROGNAME 1 40658_ACEOF 40659 40660 40661else 40662 cat >>confdefs.h <<_ACEOF 40663#define HAVE_DECL___PROGNAME 0 40664_ACEOF 40665 40666 40667fi 40668 40669 40670fi 40671 40672 40673{ echo "$as_me:$LINENO: checking whether optarg is declared" >&5 40674echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6; } 40675if test "${ac_cv_have_decl_optarg+set}" = set; then 40676 echo $ECHO_N "(cached) $ECHO_C" >&6 40677else 40678 cat >conftest.$ac_ext <<_ACEOF 40679/* confdefs.h. */ 40680_ACEOF 40681cat confdefs.h >>conftest.$ac_ext 40682cat >>conftest.$ac_ext <<_ACEOF 40683/* end confdefs.h. */ 40684$ac_includes_default 40685int 40686main () 40687{ 40688#ifndef optarg 40689 (void) optarg; 40690#endif 40691 40692 ; 40693 return 0; 40694} 40695_ACEOF 40696rm -f conftest.$ac_objext 40697if { (ac_try="$ac_compile" 40698case "(($ac_try" in 40699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40700 *) ac_try_echo=$ac_try;; 40701esac 40702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40703 (eval "$ac_compile") 2>conftest.er1 40704 ac_status=$? 40705 grep -v '^ *+' conftest.er1 >conftest.err 40706 rm -f conftest.er1 40707 cat conftest.err >&5 40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40709 (exit $ac_status); } && { 40710 test -z "$ac_c_werror_flag" || 40711 test ! -s conftest.err 40712 } && test -s conftest.$ac_objext; then 40713 ac_cv_have_decl_optarg=yes 40714else 40715 echo "$as_me: failed program was:" >&5 40716sed 's/^/| /' conftest.$ac_ext >&5 40717 40718 ac_cv_have_decl_optarg=no 40719fi 40720 40721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40722fi 40723{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5 40724echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6; } 40725if test $ac_cv_have_decl_optarg = yes; then 40726 40727cat >>confdefs.h <<_ACEOF 40728#define HAVE_DECL_OPTARG 1 40729_ACEOF 40730 40731 40732else 40733 cat >>confdefs.h <<_ACEOF 40734#define HAVE_DECL_OPTARG 0 40735_ACEOF 40736 40737 40738#include <stdlib.h> 40739#ifdef HAVE_UNISTD_H 40740#include <unistd.h> 40741#endif 40742fi 40743{ echo "$as_me:$LINENO: checking whether optind is declared" >&5 40744echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6; } 40745if test "${ac_cv_have_decl_optind+set}" = set; then 40746 echo $ECHO_N "(cached) $ECHO_C" >&6 40747else 40748 cat >conftest.$ac_ext <<_ACEOF 40749/* confdefs.h. */ 40750_ACEOF 40751cat confdefs.h >>conftest.$ac_ext 40752cat >>conftest.$ac_ext <<_ACEOF 40753/* end confdefs.h. */ 40754$ac_includes_default 40755int 40756main () 40757{ 40758#ifndef optind 40759 (void) optind; 40760#endif 40761 40762 ; 40763 return 0; 40764} 40765_ACEOF 40766rm -f conftest.$ac_objext 40767if { (ac_try="$ac_compile" 40768case "(($ac_try" in 40769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40770 *) ac_try_echo=$ac_try;; 40771esac 40772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40773 (eval "$ac_compile") 2>conftest.er1 40774 ac_status=$? 40775 grep -v '^ *+' conftest.er1 >conftest.err 40776 rm -f conftest.er1 40777 cat conftest.err >&5 40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40779 (exit $ac_status); } && { 40780 test -z "$ac_c_werror_flag" || 40781 test ! -s conftest.err 40782 } && test -s conftest.$ac_objext; then 40783 ac_cv_have_decl_optind=yes 40784else 40785 echo "$as_me: failed program was:" >&5 40786sed 's/^/| /' conftest.$ac_ext >&5 40787 40788 ac_cv_have_decl_optind=no 40789fi 40790 40791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40792fi 40793{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optind" >&5 40794echo "${ECHO_T}$ac_cv_have_decl_optind" >&6; } 40795if test $ac_cv_have_decl_optind = yes; then 40796 40797cat >>confdefs.h <<_ACEOF 40798#define HAVE_DECL_OPTIND 1 40799_ACEOF 40800 40801 40802else 40803 cat >>confdefs.h <<_ACEOF 40804#define HAVE_DECL_OPTIND 0 40805_ACEOF 40806 40807 40808#include <stdlib.h> 40809#ifdef HAVE_UNISTD_H 40810#include <unistd.h> 40811#endif 40812fi 40813{ echo "$as_me:$LINENO: checking whether opterr is declared" >&5 40814echo $ECHO_N "checking whether opterr is declared... $ECHO_C" >&6; } 40815if test "${ac_cv_have_decl_opterr+set}" = set; then 40816 echo $ECHO_N "(cached) $ECHO_C" >&6 40817else 40818 cat >conftest.$ac_ext <<_ACEOF 40819/* confdefs.h. */ 40820_ACEOF 40821cat confdefs.h >>conftest.$ac_ext 40822cat >>conftest.$ac_ext <<_ACEOF 40823/* end confdefs.h. */ 40824$ac_includes_default 40825int 40826main () 40827{ 40828#ifndef opterr 40829 (void) opterr; 40830#endif 40831 40832 ; 40833 return 0; 40834} 40835_ACEOF 40836rm -f conftest.$ac_objext 40837if { (ac_try="$ac_compile" 40838case "(($ac_try" in 40839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40840 *) ac_try_echo=$ac_try;; 40841esac 40842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40843 (eval "$ac_compile") 2>conftest.er1 40844 ac_status=$? 40845 grep -v '^ *+' conftest.er1 >conftest.err 40846 rm -f conftest.er1 40847 cat conftest.err >&5 40848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40849 (exit $ac_status); } && { 40850 test -z "$ac_c_werror_flag" || 40851 test ! -s conftest.err 40852 } && test -s conftest.$ac_objext; then 40853 ac_cv_have_decl_opterr=yes 40854else 40855 echo "$as_me: failed program was:" >&5 40856sed 's/^/| /' conftest.$ac_ext >&5 40857 40858 ac_cv_have_decl_opterr=no 40859fi 40860 40861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40862fi 40863{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_opterr" >&5 40864echo "${ECHO_T}$ac_cv_have_decl_opterr" >&6; } 40865if test $ac_cv_have_decl_opterr = yes; then 40866 40867cat >>confdefs.h <<_ACEOF 40868#define HAVE_DECL_OPTERR 1 40869_ACEOF 40870 40871 40872else 40873 cat >>confdefs.h <<_ACEOF 40874#define HAVE_DECL_OPTERR 0 40875_ACEOF 40876 40877 40878#include <stdlib.h> 40879#ifdef HAVE_UNISTD_H 40880#include <unistd.h> 40881#endif 40882fi 40883{ echo "$as_me:$LINENO: checking whether optopt is declared" >&5 40884echo $ECHO_N "checking whether optopt is declared... $ECHO_C" >&6; } 40885if test "${ac_cv_have_decl_optopt+set}" = set; then 40886 echo $ECHO_N "(cached) $ECHO_C" >&6 40887else 40888 cat >conftest.$ac_ext <<_ACEOF 40889/* confdefs.h. */ 40890_ACEOF 40891cat confdefs.h >>conftest.$ac_ext 40892cat >>conftest.$ac_ext <<_ACEOF 40893/* end confdefs.h. */ 40894$ac_includes_default 40895int 40896main () 40897{ 40898#ifndef optopt 40899 (void) optopt; 40900#endif 40901 40902 ; 40903 return 0; 40904} 40905_ACEOF 40906rm -f conftest.$ac_objext 40907if { (ac_try="$ac_compile" 40908case "(($ac_try" in 40909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40910 *) ac_try_echo=$ac_try;; 40911esac 40912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40913 (eval "$ac_compile") 2>conftest.er1 40914 ac_status=$? 40915 grep -v '^ *+' conftest.er1 >conftest.err 40916 rm -f conftest.er1 40917 cat conftest.err >&5 40918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40919 (exit $ac_status); } && { 40920 test -z "$ac_c_werror_flag" || 40921 test ! -s conftest.err 40922 } && test -s conftest.$ac_objext; then 40923 ac_cv_have_decl_optopt=yes 40924else 40925 echo "$as_me: failed program was:" >&5 40926sed 's/^/| /' conftest.$ac_ext >&5 40927 40928 ac_cv_have_decl_optopt=no 40929fi 40930 40931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40932fi 40933{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optopt" >&5 40934echo "${ECHO_T}$ac_cv_have_decl_optopt" >&6; } 40935if test $ac_cv_have_decl_optopt = yes; then 40936 40937cat >>confdefs.h <<_ACEOF 40938#define HAVE_DECL_OPTOPT 1 40939_ACEOF 40940 40941 40942else 40943 cat >>confdefs.h <<_ACEOF 40944#define HAVE_DECL_OPTOPT 0 40945_ACEOF 40946 40947 40948#include <stdlib.h> 40949#ifdef HAVE_UNISTD_H 40950#include <unistd.h> 40951#endif 40952fi 40953{ echo "$as_me:$LINENO: checking whether environ is declared" >&5 40954echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6; } 40955if test "${ac_cv_have_decl_environ+set}" = set; then 40956 echo $ECHO_N "(cached) $ECHO_C" >&6 40957else 40958 cat >conftest.$ac_ext <<_ACEOF 40959/* confdefs.h. */ 40960_ACEOF 40961cat confdefs.h >>conftest.$ac_ext 40962cat >>conftest.$ac_ext <<_ACEOF 40963/* end confdefs.h. */ 40964$ac_includes_default 40965int 40966main () 40967{ 40968#ifndef environ 40969 (void) environ; 40970#endif 40971 40972 ; 40973 return 0; 40974} 40975_ACEOF 40976rm -f conftest.$ac_objext 40977if { (ac_try="$ac_compile" 40978case "(($ac_try" in 40979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 40980 *) ac_try_echo=$ac_try;; 40981esac 40982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 40983 (eval "$ac_compile") 2>conftest.er1 40984 ac_status=$? 40985 grep -v '^ *+' conftest.er1 >conftest.err 40986 rm -f conftest.er1 40987 cat conftest.err >&5 40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40989 (exit $ac_status); } && { 40990 test -z "$ac_c_werror_flag" || 40991 test ! -s conftest.err 40992 } && test -s conftest.$ac_objext; then 40993 ac_cv_have_decl_environ=yes 40994else 40995 echo "$as_me: failed program was:" >&5 40996sed 's/^/| /' conftest.$ac_ext >&5 40997 40998 ac_cv_have_decl_environ=no 40999fi 41000 41001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41002fi 41003{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 41004echo "${ECHO_T}$ac_cv_have_decl_environ" >&6; } 41005if test $ac_cv_have_decl_environ = yes; then 41006 41007cat >>confdefs.h <<_ACEOF 41008#define HAVE_DECL_ENVIRON 1 41009_ACEOF 41010 41011 41012else 41013 cat >>confdefs.h <<_ACEOF 41014#define HAVE_DECL_ENVIRON 0 41015_ACEOF 41016 41017 41018#include <stdlib.h> 41019#ifdef HAVE_UNISTD_H 41020#include <unistd.h> 41021#endif 41022fi 41023 41024 41025 41026 41027 41028 41029{ echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 41030echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; } 41031if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 41032 echo $ECHO_N "(cached) $ECHO_C" >&6 41033else 41034 41035cat >conftest.$ac_ext <<_ACEOF 41036/* confdefs.h. */ 41037_ACEOF 41038cat confdefs.h >>conftest.$ac_ext 41039cat >>conftest.$ac_ext <<_ACEOF 41040/* end confdefs.h. */ 41041#include <time.h> 41042int 41043main () 41044{ 41045struct tm x; memset(&x, 0, sizeof(x)); x.tm_gmtoff 41046 ; 41047 return 0; 41048} 41049_ACEOF 41050rm -f conftest.$ac_objext 41051if { (ac_try="$ac_compile" 41052case "(($ac_try" in 41053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41054 *) ac_try_echo=$ac_try;; 41055esac 41056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41057 (eval "$ac_compile") 2>conftest.er1 41058 ac_status=$? 41059 grep -v '^ *+' conftest.er1 >conftest.err 41060 rm -f conftest.er1 41061 cat conftest.err >&5 41062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41063 (exit $ac_status); } && { 41064 test -z "$ac_c_werror_flag" || 41065 test ! -s conftest.err 41066 } && test -s conftest.$ac_objext; then 41067 ac_cv_type_struct_tm_tm_gmtoff=yes 41068else 41069 echo "$as_me: failed program was:" >&5 41070sed 's/^/| /' conftest.$ac_ext >&5 41071 41072 ac_cv_type_struct_tm_tm_gmtoff=no 41073fi 41074 41075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41076 41077fi 41078{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 41079echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6; } 41080if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 41081 41082 41083cat >>confdefs.h <<\_ACEOF 41084#define HAVE_STRUCT_TM_TM_GMTOFF 1 41085_ACEOF 41086 41087 41088fi 41089 41090 41091 41092 41093{ echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5 41094echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; } 41095if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 41096 echo $ECHO_N "(cached) $ECHO_C" >&6 41097else 41098 41099cat >conftest.$ac_ext <<_ACEOF 41100/* confdefs.h. */ 41101_ACEOF 41102cat confdefs.h >>conftest.$ac_ext 41103cat >>conftest.$ac_ext <<_ACEOF 41104/* end confdefs.h. */ 41105#include <time.h> 41106int 41107main () 41108{ 41109struct tm x; memset(&x, 0, sizeof(x)); x.tm_zone 41110 ; 41111 return 0; 41112} 41113_ACEOF 41114rm -f conftest.$ac_objext 41115if { (ac_try="$ac_compile" 41116case "(($ac_try" in 41117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41118 *) ac_try_echo=$ac_try;; 41119esac 41120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41121 (eval "$ac_compile") 2>conftest.er1 41122 ac_status=$? 41123 grep -v '^ *+' conftest.er1 >conftest.err 41124 rm -f conftest.er1 41125 cat conftest.err >&5 41126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41127 (exit $ac_status); } && { 41128 test -z "$ac_c_werror_flag" || 41129 test ! -s conftest.err 41130 } && test -s conftest.$ac_objext; then 41131 ac_cv_type_struct_tm_tm_zone=yes 41132else 41133 echo "$as_me: failed program was:" >&5 41134sed 's/^/| /' conftest.$ac_ext >&5 41135 41136 ac_cv_type_struct_tm_tm_zone=no 41137fi 41138 41139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41140 41141fi 41142{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5 41143echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6; } 41144if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 41145 41146 41147cat >>confdefs.h <<\_ACEOF 41148#define HAVE_STRUCT_TM_TM_ZONE 1 41149_ACEOF 41150 41151 41152fi 41153 41154 41155 41156 41157 41158{ echo "$as_me:$LINENO: checking for timezone" >&5 41159echo $ECHO_N "checking for timezone... $ECHO_C" >&6; } 41160if test "${ac_cv_var_timezone+set}" = set; then 41161 echo $ECHO_N "(cached) $ECHO_C" >&6 41162else 41163 41164 41165 cat >conftest.$ac_ext <<_ACEOF 41166/* confdefs.h. */ 41167_ACEOF 41168cat confdefs.h >>conftest.$ac_ext 41169cat >>conftest.$ac_ext <<_ACEOF 41170/* end confdefs.h. */ 41171#include <time.h> 41172 void * foo(void) { return &timezone; } 41173int 41174main () 41175{ 41176foo() 41177 ; 41178 return 0; 41179} 41180_ACEOF 41181rm -f conftest.$ac_objext conftest$ac_exeext 41182if { (ac_try="$ac_link" 41183case "(($ac_try" in 41184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41185 *) ac_try_echo=$ac_try;; 41186esac 41187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41188 (eval "$ac_link") 2>conftest.er1 41189 ac_status=$? 41190 grep -v '^ *+' conftest.er1 >conftest.err 41191 rm -f conftest.er1 41192 cat conftest.err >&5 41193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41194 (exit $ac_status); } && { 41195 test -z "$ac_c_werror_flag" || 41196 test ! -s conftest.err 41197 } && test -s conftest$ac_exeext && 41198 $as_test_x conftest$ac_exeext; then 41199 ac_cv_var_timezone=yes 41200else 41201 echo "$as_me: failed program was:" >&5 41202sed 's/^/| /' conftest.$ac_ext >&5 41203 41204 ac_cv_var_timezone=no 41205fi 41206 41207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 41208 conftest$ac_exeext conftest.$ac_ext 41209if test "$ac_cv_var_timezone" != yes ; then 41210cat >conftest.$ac_ext <<_ACEOF 41211/* confdefs.h. */ 41212_ACEOF 41213cat confdefs.h >>conftest.$ac_ext 41214cat >>conftest.$ac_ext <<_ACEOF 41215/* end confdefs.h. */ 41216extern int timezone; 41217int foo(void) { return timezone; } 41218int 41219main () 41220{ 41221foo() 41222 ; 41223 return 0; 41224} 41225_ACEOF 41226rm -f conftest.$ac_objext conftest$ac_exeext 41227if { (ac_try="$ac_link" 41228case "(($ac_try" in 41229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41230 *) ac_try_echo=$ac_try;; 41231esac 41232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41233 (eval "$ac_link") 2>conftest.er1 41234 ac_status=$? 41235 grep -v '^ *+' conftest.er1 >conftest.err 41236 rm -f conftest.er1 41237 cat conftest.err >&5 41238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41239 (exit $ac_status); } && { 41240 test -z "$ac_c_werror_flag" || 41241 test ! -s conftest.err 41242 } && test -s conftest$ac_exeext && 41243 $as_test_x conftest$ac_exeext; then 41244 ac_cv_var_timezone=yes 41245else 41246 echo "$as_me: failed program was:" >&5 41247sed 's/^/| /' conftest.$ac_ext >&5 41248 41249 ac_cv_var_timezone=no 41250fi 41251 41252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 41253 conftest$ac_exeext conftest.$ac_ext 41254fi 41255 41256fi 41257 41258ac_foo=`eval echo \\$ac_cv_var_timezone` 41259{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41260echo "${ECHO_T}$ac_foo" >&6; } 41261if test "$ac_foo" = yes; then 41262 41263cat >>confdefs.h <<_ACEOF 41264#define HAVE_TIMEZONE 1 41265_ACEOF 41266 41267 { echo "$as_me:$LINENO: checking whether timezone is declared" >&5 41268echo $ECHO_N "checking whether timezone is declared... $ECHO_C" >&6; } 41269if test "${ac_cv_have_decl_timezone+set}" = set; then 41270 echo $ECHO_N "(cached) $ECHO_C" >&6 41271else 41272 cat >conftest.$ac_ext <<_ACEOF 41273/* confdefs.h. */ 41274_ACEOF 41275cat confdefs.h >>conftest.$ac_ext 41276cat >>conftest.$ac_ext <<_ACEOF 41277/* end confdefs.h. */ 41278#include <time.h> 41279 41280int 41281main () 41282{ 41283#ifndef timezone 41284 (void) timezone; 41285#endif 41286 41287 ; 41288 return 0; 41289} 41290_ACEOF 41291rm -f conftest.$ac_objext 41292if { (ac_try="$ac_compile" 41293case "(($ac_try" in 41294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41295 *) ac_try_echo=$ac_try;; 41296esac 41297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41298 (eval "$ac_compile") 2>conftest.er1 41299 ac_status=$? 41300 grep -v '^ *+' conftest.er1 >conftest.err 41301 rm -f conftest.er1 41302 cat conftest.err >&5 41303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41304 (exit $ac_status); } && { 41305 test -z "$ac_c_werror_flag" || 41306 test ! -s conftest.err 41307 } && test -s conftest.$ac_objext; then 41308 ac_cv_have_decl_timezone=yes 41309else 41310 echo "$as_me: failed program was:" >&5 41311sed 's/^/| /' conftest.$ac_ext >&5 41312 41313 ac_cv_have_decl_timezone=no 41314fi 41315 41316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41317fi 41318{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_timezone" >&5 41319echo "${ECHO_T}$ac_cv_have_decl_timezone" >&6; } 41320if test $ac_cv_have_decl_timezone = yes; then 41321 41322cat >>confdefs.h <<_ACEOF 41323#define HAVE_DECL_TIMEZONE 1 41324_ACEOF 41325 41326 41327else 41328 cat >>confdefs.h <<_ACEOF 41329#define HAVE_DECL_TIMEZONE 0 41330_ACEOF 41331 41332 41333fi 41334 41335 41336fi 41337 41338 41339{ echo "$as_me:$LINENO: checking for altzone" >&5 41340echo $ECHO_N "checking for altzone... $ECHO_C" >&6; } 41341if test "${ac_cv_var_altzone+set}" = set; then 41342 echo $ECHO_N "(cached) $ECHO_C" >&6 41343else 41344 41345 41346 cat >conftest.$ac_ext <<_ACEOF 41347/* confdefs.h. */ 41348_ACEOF 41349cat confdefs.h >>conftest.$ac_ext 41350cat >>conftest.$ac_ext <<_ACEOF 41351/* end confdefs.h. */ 41352#include <time.h> 41353 void * foo(void) { return &altzone; } 41354int 41355main () 41356{ 41357foo() 41358 ; 41359 return 0; 41360} 41361_ACEOF 41362rm -f conftest.$ac_objext conftest$ac_exeext 41363if { (ac_try="$ac_link" 41364case "(($ac_try" in 41365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41366 *) ac_try_echo=$ac_try;; 41367esac 41368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41369 (eval "$ac_link") 2>conftest.er1 41370 ac_status=$? 41371 grep -v '^ *+' conftest.er1 >conftest.err 41372 rm -f conftest.er1 41373 cat conftest.err >&5 41374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41375 (exit $ac_status); } && { 41376 test -z "$ac_c_werror_flag" || 41377 test ! -s conftest.err 41378 } && test -s conftest$ac_exeext && 41379 $as_test_x conftest$ac_exeext; then 41380 ac_cv_var_altzone=yes 41381else 41382 echo "$as_me: failed program was:" >&5 41383sed 's/^/| /' conftest.$ac_ext >&5 41384 41385 ac_cv_var_altzone=no 41386fi 41387 41388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 41389 conftest$ac_exeext conftest.$ac_ext 41390if test "$ac_cv_var_altzone" != yes ; then 41391cat >conftest.$ac_ext <<_ACEOF 41392/* confdefs.h. */ 41393_ACEOF 41394cat confdefs.h >>conftest.$ac_ext 41395cat >>conftest.$ac_ext <<_ACEOF 41396/* end confdefs.h. */ 41397extern int altzone; 41398int foo(void) { return altzone; } 41399int 41400main () 41401{ 41402foo() 41403 ; 41404 return 0; 41405} 41406_ACEOF 41407rm -f conftest.$ac_objext conftest$ac_exeext 41408if { (ac_try="$ac_link" 41409case "(($ac_try" in 41410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41411 *) ac_try_echo=$ac_try;; 41412esac 41413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41414 (eval "$ac_link") 2>conftest.er1 41415 ac_status=$? 41416 grep -v '^ *+' conftest.er1 >conftest.err 41417 rm -f conftest.er1 41418 cat conftest.err >&5 41419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41420 (exit $ac_status); } && { 41421 test -z "$ac_c_werror_flag" || 41422 test ! -s conftest.err 41423 } && test -s conftest$ac_exeext && 41424 $as_test_x conftest$ac_exeext; then 41425 ac_cv_var_altzone=yes 41426else 41427 echo "$as_me: failed program was:" >&5 41428sed 's/^/| /' conftest.$ac_ext >&5 41429 41430 ac_cv_var_altzone=no 41431fi 41432 41433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 41434 conftest$ac_exeext conftest.$ac_ext 41435fi 41436 41437fi 41438 41439ac_foo=`eval echo \\$ac_cv_var_altzone` 41440{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41441echo "${ECHO_T}$ac_foo" >&6; } 41442if test "$ac_foo" = yes; then 41443 41444cat >>confdefs.h <<_ACEOF 41445#define HAVE_ALTZONE 1 41446_ACEOF 41447 41448 { echo "$as_me:$LINENO: checking whether altzone is declared" >&5 41449echo $ECHO_N "checking whether altzone is declared... $ECHO_C" >&6; } 41450if test "${ac_cv_have_decl_altzone+set}" = set; then 41451 echo $ECHO_N "(cached) $ECHO_C" >&6 41452else 41453 cat >conftest.$ac_ext <<_ACEOF 41454/* confdefs.h. */ 41455_ACEOF 41456cat confdefs.h >>conftest.$ac_ext 41457cat >>conftest.$ac_ext <<_ACEOF 41458/* end confdefs.h. */ 41459#include <time.h> 41460 41461int 41462main () 41463{ 41464#ifndef altzone 41465 (void) altzone; 41466#endif 41467 41468 ; 41469 return 0; 41470} 41471_ACEOF 41472rm -f conftest.$ac_objext 41473if { (ac_try="$ac_compile" 41474case "(($ac_try" in 41475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41476 *) ac_try_echo=$ac_try;; 41477esac 41478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41479 (eval "$ac_compile") 2>conftest.er1 41480 ac_status=$? 41481 grep -v '^ *+' conftest.er1 >conftest.err 41482 rm -f conftest.er1 41483 cat conftest.err >&5 41484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41485 (exit $ac_status); } && { 41486 test -z "$ac_c_werror_flag" || 41487 test ! -s conftest.err 41488 } && test -s conftest.$ac_objext; then 41489 ac_cv_have_decl_altzone=yes 41490else 41491 echo "$as_me: failed program was:" >&5 41492sed 's/^/| /' conftest.$ac_ext >&5 41493 41494 ac_cv_have_decl_altzone=no 41495fi 41496 41497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41498fi 41499{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_altzone" >&5 41500echo "${ECHO_T}$ac_cv_have_decl_altzone" >&6; } 41501if test $ac_cv_have_decl_altzone = yes; then 41502 41503cat >>confdefs.h <<_ACEOF 41504#define HAVE_DECL_ALTZONE 1 41505_ACEOF 41506 41507 41508else 41509 cat >>confdefs.h <<_ACEOF 41510#define HAVE_DECL_ALTZONE 0 41511_ACEOF 41512 41513 41514fi 41515 41516 41517fi 41518 41519 41520 41521 41522cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 41523{ echo "$as_me:$LINENO: checking for sa_family_t" >&5 41524echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } 41525if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 41526 echo $ECHO_N "(cached) $ECHO_C" >&6 41527else 41528 cat >conftest.$ac_ext <<_ACEOF 41529/* confdefs.h. */ 41530_ACEOF 41531cat confdefs.h >>conftest.$ac_ext 41532cat >>conftest.$ac_ext <<_ACEOF 41533/* end confdefs.h. */ 41534 41535#include <sys/types.h> 41536#if STDC_HEADERS 41537#include <stdlib.h> 41538#include <stddef.h> 41539#endif 41540 41541#include <sys/types.h> 41542#include <sys/socket.h> 41543int 41544main () 41545{ 41546sa_family_t foo; 41547 ; 41548 return 0; 41549} 41550_ACEOF 41551rm -f conftest.$ac_objext 41552if { (ac_try="$ac_compile" 41553case "(($ac_try" in 41554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41555 *) ac_try_echo=$ac_try;; 41556esac 41557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41558 (eval "$ac_compile") 2>conftest.er1 41559 ac_status=$? 41560 grep -v '^ *+' conftest.er1 >conftest.err 41561 rm -f conftest.er1 41562 cat conftest.err >&5 41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41564 (exit $ac_status); } && { 41565 test -z "$ac_c_werror_flag" || 41566 test ! -s conftest.err 41567 } && test -s conftest.$ac_objext; then 41568 eval "ac_cv_type_$cv=yes" 41569else 41570 echo "$as_me: failed program was:" >&5 41571sed 's/^/| /' conftest.$ac_ext >&5 41572 41573 eval "ac_cv_type_$cv=no" 41574fi 41575 41576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41577fi 41578ac_foo=`eval echo \\$ac_cv_type_$cv` 41579{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41580echo "${ECHO_T}$ac_foo" >&6; } 41581if test "$ac_foo" = yes; then 41582 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 41583if false; then 41584 { echo "$as_me:$LINENO: checking for sa_family_t" >&5 41585echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } 41586if test "${ac_cv_type_sa_family_t+set}" = set; then 41587 echo $ECHO_N "(cached) $ECHO_C" >&6 41588else 41589 cat >conftest.$ac_ext <<_ACEOF 41590/* confdefs.h. */ 41591_ACEOF 41592cat confdefs.h >>conftest.$ac_ext 41593cat >>conftest.$ac_ext <<_ACEOF 41594/* end confdefs.h. */ 41595$ac_includes_default 41596typedef sa_family_t ac__type_new_; 41597int 41598main () 41599{ 41600if ((ac__type_new_ *) 0) 41601 return 0; 41602if (sizeof (ac__type_new_)) 41603 return 0; 41604 ; 41605 return 0; 41606} 41607_ACEOF 41608rm -f conftest.$ac_objext 41609if { (ac_try="$ac_compile" 41610case "(($ac_try" in 41611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41612 *) ac_try_echo=$ac_try;; 41613esac 41614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41615 (eval "$ac_compile") 2>conftest.er1 41616 ac_status=$? 41617 grep -v '^ *+' conftest.er1 >conftest.err 41618 rm -f conftest.er1 41619 cat conftest.err >&5 41620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41621 (exit $ac_status); } && { 41622 test -z "$ac_c_werror_flag" || 41623 test ! -s conftest.err 41624 } && test -s conftest.$ac_objext; then 41625 ac_cv_type_sa_family_t=yes 41626else 41627 echo "$as_me: failed program was:" >&5 41628sed 's/^/| /' conftest.$ac_ext >&5 41629 41630 ac_cv_type_sa_family_t=no 41631fi 41632 41633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41634fi 41635{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 41636echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } 41637if test $ac_cv_type_sa_family_t = yes; then 41638 41639cat >>confdefs.h <<_ACEOF 41640#define HAVE_SA_FAMILY_T 1 41641_ACEOF 41642 41643 41644fi 41645 41646fi 41647 41648cat >>confdefs.h <<_ACEOF 41649#define $ac_tr_hdr 1 41650_ACEOF 41651 41652fi 41653 41654 41655 41656cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 41657{ echo "$as_me:$LINENO: checking for socklen_t" >&5 41658echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 41659if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 41660 echo $ECHO_N "(cached) $ECHO_C" >&6 41661else 41662 cat >conftest.$ac_ext <<_ACEOF 41663/* confdefs.h. */ 41664_ACEOF 41665cat confdefs.h >>conftest.$ac_ext 41666cat >>conftest.$ac_ext <<_ACEOF 41667/* end confdefs.h. */ 41668 41669#include <sys/types.h> 41670#if STDC_HEADERS 41671#include <stdlib.h> 41672#include <stddef.h> 41673#endif 41674 41675#include <sys/types.h> 41676#include <sys/socket.h> 41677int 41678main () 41679{ 41680socklen_t foo; 41681 ; 41682 return 0; 41683} 41684_ACEOF 41685rm -f conftest.$ac_objext 41686if { (ac_try="$ac_compile" 41687case "(($ac_try" in 41688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41689 *) ac_try_echo=$ac_try;; 41690esac 41691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41692 (eval "$ac_compile") 2>conftest.er1 41693 ac_status=$? 41694 grep -v '^ *+' conftest.er1 >conftest.err 41695 rm -f conftest.er1 41696 cat conftest.err >&5 41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41698 (exit $ac_status); } && { 41699 test -z "$ac_c_werror_flag" || 41700 test ! -s conftest.err 41701 } && test -s conftest.$ac_objext; then 41702 eval "ac_cv_type_$cv=yes" 41703else 41704 echo "$as_me: failed program was:" >&5 41705sed 's/^/| /' conftest.$ac_ext >&5 41706 41707 eval "ac_cv_type_$cv=no" 41708fi 41709 41710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41711fi 41712ac_foo=`eval echo \\$ac_cv_type_$cv` 41713{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41714echo "${ECHO_T}$ac_foo" >&6; } 41715if test "$ac_foo" = yes; then 41716 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 41717if false; then 41718 { echo "$as_me:$LINENO: checking for socklen_t" >&5 41719echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } 41720if test "${ac_cv_type_socklen_t+set}" = set; then 41721 echo $ECHO_N "(cached) $ECHO_C" >&6 41722else 41723 cat >conftest.$ac_ext <<_ACEOF 41724/* confdefs.h. */ 41725_ACEOF 41726cat confdefs.h >>conftest.$ac_ext 41727cat >>conftest.$ac_ext <<_ACEOF 41728/* end confdefs.h. */ 41729$ac_includes_default 41730typedef socklen_t ac__type_new_; 41731int 41732main () 41733{ 41734if ((ac__type_new_ *) 0) 41735 return 0; 41736if (sizeof (ac__type_new_)) 41737 return 0; 41738 ; 41739 return 0; 41740} 41741_ACEOF 41742rm -f conftest.$ac_objext 41743if { (ac_try="$ac_compile" 41744case "(($ac_try" in 41745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41746 *) ac_try_echo=$ac_try;; 41747esac 41748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41749 (eval "$ac_compile") 2>conftest.er1 41750 ac_status=$? 41751 grep -v '^ *+' conftest.er1 >conftest.err 41752 rm -f conftest.er1 41753 cat conftest.err >&5 41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41755 (exit $ac_status); } && { 41756 test -z "$ac_c_werror_flag" || 41757 test ! -s conftest.err 41758 } && test -s conftest.$ac_objext; then 41759 ac_cv_type_socklen_t=yes 41760else 41761 echo "$as_me: failed program was:" >&5 41762sed 's/^/| /' conftest.$ac_ext >&5 41763 41764 ac_cv_type_socklen_t=no 41765fi 41766 41767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41768fi 41769{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 41770echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } 41771if test $ac_cv_type_socklen_t = yes; then 41772 41773cat >>confdefs.h <<_ACEOF 41774#define HAVE_SOCKLEN_T 1 41775_ACEOF 41776 41777 41778fi 41779 41780fi 41781 41782cat >>confdefs.h <<_ACEOF 41783#define $ac_tr_hdr 1 41784_ACEOF 41785 41786fi 41787 41788 41789 41790cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 41791{ echo "$as_me:$LINENO: checking for struct sockaddr" >&5 41792echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; } 41793if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 41794 echo $ECHO_N "(cached) $ECHO_C" >&6 41795else 41796 cat >conftest.$ac_ext <<_ACEOF 41797/* confdefs.h. */ 41798_ACEOF 41799cat confdefs.h >>conftest.$ac_ext 41800cat >>conftest.$ac_ext <<_ACEOF 41801/* end confdefs.h. */ 41802 41803#include <sys/types.h> 41804#if STDC_HEADERS 41805#include <stdlib.h> 41806#include <stddef.h> 41807#endif 41808 41809#include <sys/types.h> 41810#include <sys/socket.h> 41811int 41812main () 41813{ 41814struct sockaddr foo; 41815 ; 41816 return 0; 41817} 41818_ACEOF 41819rm -f conftest.$ac_objext 41820if { (ac_try="$ac_compile" 41821case "(($ac_try" in 41822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41823 *) ac_try_echo=$ac_try;; 41824esac 41825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41826 (eval "$ac_compile") 2>conftest.er1 41827 ac_status=$? 41828 grep -v '^ *+' conftest.er1 >conftest.err 41829 rm -f conftest.er1 41830 cat conftest.err >&5 41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41832 (exit $ac_status); } && { 41833 test -z "$ac_c_werror_flag" || 41834 test ! -s conftest.err 41835 } && test -s conftest.$ac_objext; then 41836 eval "ac_cv_type_$cv=yes" 41837else 41838 echo "$as_me: failed program was:" >&5 41839sed 's/^/| /' conftest.$ac_ext >&5 41840 41841 eval "ac_cv_type_$cv=no" 41842fi 41843 41844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41845fi 41846ac_foo=`eval echo \\$ac_cv_type_$cv` 41847{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41848echo "${ECHO_T}$ac_foo" >&6; } 41849if test "$ac_foo" = yes; then 41850 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 41851if false; then 41852 { echo "$as_me:$LINENO: checking for struct sockaddr" >&5 41853echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6; } 41854if test "${ac_cv_type_struct_sockaddr+set}" = set; then 41855 echo $ECHO_N "(cached) $ECHO_C" >&6 41856else 41857 cat >conftest.$ac_ext <<_ACEOF 41858/* confdefs.h. */ 41859_ACEOF 41860cat confdefs.h >>conftest.$ac_ext 41861cat >>conftest.$ac_ext <<_ACEOF 41862/* end confdefs.h. */ 41863$ac_includes_default 41864typedef struct sockaddr ac__type_new_; 41865int 41866main () 41867{ 41868if ((ac__type_new_ *) 0) 41869 return 0; 41870if (sizeof (ac__type_new_)) 41871 return 0; 41872 ; 41873 return 0; 41874} 41875_ACEOF 41876rm -f conftest.$ac_objext 41877if { (ac_try="$ac_compile" 41878case "(($ac_try" in 41879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41880 *) ac_try_echo=$ac_try;; 41881esac 41882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41883 (eval "$ac_compile") 2>conftest.er1 41884 ac_status=$? 41885 grep -v '^ *+' conftest.er1 >conftest.err 41886 rm -f conftest.er1 41887 cat conftest.err >&5 41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41889 (exit $ac_status); } && { 41890 test -z "$ac_c_werror_flag" || 41891 test ! -s conftest.err 41892 } && test -s conftest.$ac_objext; then 41893 ac_cv_type_struct_sockaddr=yes 41894else 41895 echo "$as_me: failed program was:" >&5 41896sed 's/^/| /' conftest.$ac_ext >&5 41897 41898 ac_cv_type_struct_sockaddr=no 41899fi 41900 41901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41902fi 41903{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5 41904echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6; } 41905if test $ac_cv_type_struct_sockaddr = yes; then 41906 41907cat >>confdefs.h <<_ACEOF 41908#define HAVE_STRUCT_SOCKADDR 1 41909_ACEOF 41910 41911 41912fi 41913 41914fi 41915 41916cat >>confdefs.h <<_ACEOF 41917#define $ac_tr_hdr 1 41918_ACEOF 41919 41920fi 41921 41922 41923 41924cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 41925{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 41926echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } 41927if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 41928 echo $ECHO_N "(cached) $ECHO_C" >&6 41929else 41930 cat >conftest.$ac_ext <<_ACEOF 41931/* confdefs.h. */ 41932_ACEOF 41933cat confdefs.h >>conftest.$ac_ext 41934cat >>conftest.$ac_ext <<_ACEOF 41935/* end confdefs.h. */ 41936 41937#include <sys/types.h> 41938#if STDC_HEADERS 41939#include <stdlib.h> 41940#include <stddef.h> 41941#endif 41942 41943#include <sys/types.h> 41944#include <sys/socket.h> 41945int 41946main () 41947{ 41948struct sockaddr_storage foo; 41949 ; 41950 return 0; 41951} 41952_ACEOF 41953rm -f conftest.$ac_objext 41954if { (ac_try="$ac_compile" 41955case "(($ac_try" in 41956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 41957 *) ac_try_echo=$ac_try;; 41958esac 41959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 41960 (eval "$ac_compile") 2>conftest.er1 41961 ac_status=$? 41962 grep -v '^ *+' conftest.er1 >conftest.err 41963 rm -f conftest.er1 41964 cat conftest.err >&5 41965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 41966 (exit $ac_status); } && { 41967 test -z "$ac_c_werror_flag" || 41968 test ! -s conftest.err 41969 } && test -s conftest.$ac_objext; then 41970 eval "ac_cv_type_$cv=yes" 41971else 41972 echo "$as_me: failed program was:" >&5 41973sed 's/^/| /' conftest.$ac_ext >&5 41974 41975 eval "ac_cv_type_$cv=no" 41976fi 41977 41978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41979fi 41980ac_foo=`eval echo \\$ac_cv_type_$cv` 41981{ echo "$as_me:$LINENO: result: $ac_foo" >&5 41982echo "${ECHO_T}$ac_foo" >&6; } 41983if test "$ac_foo" = yes; then 41984 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 41985if false; then 41986 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 41987echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } 41988if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 41989 echo $ECHO_N "(cached) $ECHO_C" >&6 41990else 41991 cat >conftest.$ac_ext <<_ACEOF 41992/* confdefs.h. */ 41993_ACEOF 41994cat confdefs.h >>conftest.$ac_ext 41995cat >>conftest.$ac_ext <<_ACEOF 41996/* end confdefs.h. */ 41997$ac_includes_default 41998typedef struct sockaddr_storage ac__type_new_; 41999int 42000main () 42001{ 42002if ((ac__type_new_ *) 0) 42003 return 0; 42004if (sizeof (ac__type_new_)) 42005 return 0; 42006 ; 42007 return 0; 42008} 42009_ACEOF 42010rm -f conftest.$ac_objext 42011if { (ac_try="$ac_compile" 42012case "(($ac_try" in 42013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42014 *) ac_try_echo=$ac_try;; 42015esac 42016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42017 (eval "$ac_compile") 2>conftest.er1 42018 ac_status=$? 42019 grep -v '^ *+' conftest.er1 >conftest.err 42020 rm -f conftest.er1 42021 cat conftest.err >&5 42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42023 (exit $ac_status); } && { 42024 test -z "$ac_c_werror_flag" || 42025 test ! -s conftest.err 42026 } && test -s conftest.$ac_objext; then 42027 ac_cv_type_struct_sockaddr_storage=yes 42028else 42029 echo "$as_me: failed program was:" >&5 42030sed 's/^/| /' conftest.$ac_ext >&5 42031 42032 ac_cv_type_struct_sockaddr_storage=no 42033fi 42034 42035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42036fi 42037{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 42038echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } 42039if test $ac_cv_type_struct_sockaddr_storage = yes; then 42040 42041cat >>confdefs.h <<_ACEOF 42042#define HAVE_STRUCT_SOCKADDR_STORAGE 1 42043_ACEOF 42044 42045 42046fi 42047 42048fi 42049 42050cat >>confdefs.h <<_ACEOF 42051#define $ac_tr_hdr 1 42052_ACEOF 42053 42054fi 42055 42056 42057 42058cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 42059{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 42060echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 42061if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 42062 echo $ECHO_N "(cached) $ECHO_C" >&6 42063else 42064 cat >conftest.$ac_ext <<_ACEOF 42065/* confdefs.h. */ 42066_ACEOF 42067cat confdefs.h >>conftest.$ac_ext 42068cat >>conftest.$ac_ext <<_ACEOF 42069/* end confdefs.h. */ 42070 42071#include <sys/types.h> 42072#if STDC_HEADERS 42073#include <stdlib.h> 42074#include <stddef.h> 42075#endif 42076 42077#include <sys/types.h> 42078#include <netdb.h> 42079int 42080main () 42081{ 42082struct addrinfo foo; 42083 ; 42084 return 0; 42085} 42086_ACEOF 42087rm -f conftest.$ac_objext 42088if { (ac_try="$ac_compile" 42089case "(($ac_try" in 42090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42091 *) ac_try_echo=$ac_try;; 42092esac 42093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42094 (eval "$ac_compile") 2>conftest.er1 42095 ac_status=$? 42096 grep -v '^ *+' conftest.er1 >conftest.err 42097 rm -f conftest.er1 42098 cat conftest.err >&5 42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42100 (exit $ac_status); } && { 42101 test -z "$ac_c_werror_flag" || 42102 test ! -s conftest.err 42103 } && test -s conftest.$ac_objext; then 42104 eval "ac_cv_type_$cv=yes" 42105else 42106 echo "$as_me: failed program was:" >&5 42107sed 's/^/| /' conftest.$ac_ext >&5 42108 42109 eval "ac_cv_type_$cv=no" 42110fi 42111 42112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42113fi 42114ac_foo=`eval echo \\$ac_cv_type_$cv` 42115{ echo "$as_me:$LINENO: result: $ac_foo" >&5 42116echo "${ECHO_T}$ac_foo" >&6; } 42117if test "$ac_foo" = yes; then 42118 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 42119if false; then 42120 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5 42121echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 42122if test "${ac_cv_type_struct_addrinfo+set}" = set; then 42123 echo $ECHO_N "(cached) $ECHO_C" >&6 42124else 42125 cat >conftest.$ac_ext <<_ACEOF 42126/* confdefs.h. */ 42127_ACEOF 42128cat confdefs.h >>conftest.$ac_ext 42129cat >>conftest.$ac_ext <<_ACEOF 42130/* end confdefs.h. */ 42131$ac_includes_default 42132typedef struct addrinfo ac__type_new_; 42133int 42134main () 42135{ 42136if ((ac__type_new_ *) 0) 42137 return 0; 42138if (sizeof (ac__type_new_)) 42139 return 0; 42140 ; 42141 return 0; 42142} 42143_ACEOF 42144rm -f conftest.$ac_objext 42145if { (ac_try="$ac_compile" 42146case "(($ac_try" in 42147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42148 *) ac_try_echo=$ac_try;; 42149esac 42150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42151 (eval "$ac_compile") 2>conftest.er1 42152 ac_status=$? 42153 grep -v '^ *+' conftest.er1 >conftest.err 42154 rm -f conftest.er1 42155 cat conftest.err >&5 42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42157 (exit $ac_status); } && { 42158 test -z "$ac_c_werror_flag" || 42159 test ! -s conftest.err 42160 } && test -s conftest.$ac_objext; then 42161 ac_cv_type_struct_addrinfo=yes 42162else 42163 echo "$as_me: failed program was:" >&5 42164sed 's/^/| /' conftest.$ac_ext >&5 42165 42166 ac_cv_type_struct_addrinfo=no 42167fi 42168 42169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42170fi 42171{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 42172echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; } 42173if test $ac_cv_type_struct_addrinfo = yes; then 42174 42175cat >>confdefs.h <<_ACEOF 42176#define HAVE_STRUCT_ADDRINFO 1 42177_ACEOF 42178 42179 42180fi 42181 42182fi 42183 42184cat >>confdefs.h <<_ACEOF 42185#define $ac_tr_hdr 1 42186_ACEOF 42187 42188fi 42189 42190 42191 42192cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 42193{ echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 42194echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; } 42195if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 42196 echo $ECHO_N "(cached) $ECHO_C" >&6 42197else 42198 cat >conftest.$ac_ext <<_ACEOF 42199/* confdefs.h. */ 42200_ACEOF 42201cat confdefs.h >>conftest.$ac_ext 42202cat >>conftest.$ac_ext <<_ACEOF 42203/* end confdefs.h. */ 42204 42205#include <sys/types.h> 42206#if STDC_HEADERS 42207#include <stdlib.h> 42208#include <stddef.h> 42209#endif 42210#include <ifaddrs.h> 42211int 42212main () 42213{ 42214struct ifaddrs foo; 42215 ; 42216 return 0; 42217} 42218_ACEOF 42219rm -f conftest.$ac_objext 42220if { (ac_try="$ac_compile" 42221case "(($ac_try" in 42222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42223 *) ac_try_echo=$ac_try;; 42224esac 42225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42226 (eval "$ac_compile") 2>conftest.er1 42227 ac_status=$? 42228 grep -v '^ *+' conftest.er1 >conftest.err 42229 rm -f conftest.er1 42230 cat conftest.err >&5 42231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42232 (exit $ac_status); } && { 42233 test -z "$ac_c_werror_flag" || 42234 test ! -s conftest.err 42235 } && test -s conftest.$ac_objext; then 42236 eval "ac_cv_type_$cv=yes" 42237else 42238 echo "$as_me: failed program was:" >&5 42239sed 's/^/| /' conftest.$ac_ext >&5 42240 42241 eval "ac_cv_type_$cv=no" 42242fi 42243 42244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42245fi 42246ac_foo=`eval echo \\$ac_cv_type_$cv` 42247{ echo "$as_me:$LINENO: result: $ac_foo" >&5 42248echo "${ECHO_T}$ac_foo" >&6; } 42249if test "$ac_foo" = yes; then 42250 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 42251if false; then 42252 { echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 42253echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6; } 42254if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 42255 echo $ECHO_N "(cached) $ECHO_C" >&6 42256else 42257 cat >conftest.$ac_ext <<_ACEOF 42258/* confdefs.h. */ 42259_ACEOF 42260cat confdefs.h >>conftest.$ac_ext 42261cat >>conftest.$ac_ext <<_ACEOF 42262/* end confdefs.h. */ 42263$ac_includes_default 42264typedef struct ifaddrs ac__type_new_; 42265int 42266main () 42267{ 42268if ((ac__type_new_ *) 0) 42269 return 0; 42270if (sizeof (ac__type_new_)) 42271 return 0; 42272 ; 42273 return 0; 42274} 42275_ACEOF 42276rm -f conftest.$ac_objext 42277if { (ac_try="$ac_compile" 42278case "(($ac_try" in 42279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42280 *) ac_try_echo=$ac_try;; 42281esac 42282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42283 (eval "$ac_compile") 2>conftest.er1 42284 ac_status=$? 42285 grep -v '^ *+' conftest.er1 >conftest.err 42286 rm -f conftest.er1 42287 cat conftest.err >&5 42288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42289 (exit $ac_status); } && { 42290 test -z "$ac_c_werror_flag" || 42291 test ! -s conftest.err 42292 } && test -s conftest.$ac_objext; then 42293 ac_cv_type_struct_ifaddrs=yes 42294else 42295 echo "$as_me: failed program was:" >&5 42296sed 's/^/| /' conftest.$ac_ext >&5 42297 42298 ac_cv_type_struct_ifaddrs=no 42299fi 42300 42301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42302fi 42303{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5 42304echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6; } 42305if test $ac_cv_type_struct_ifaddrs = yes; then 42306 42307cat >>confdefs.h <<_ACEOF 42308#define HAVE_STRUCT_IFADDRS 1 42309_ACEOF 42310 42311 42312fi 42313 42314fi 42315 42316cat >>confdefs.h <<_ACEOF 42317#define $ac_tr_hdr 1 42318_ACEOF 42319 42320fi 42321 42322 42323 42324cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 42325{ echo "$as_me:$LINENO: checking for struct iovec" >&5 42326echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; } 42327if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 42328 echo $ECHO_N "(cached) $ECHO_C" >&6 42329else 42330 cat >conftest.$ac_ext <<_ACEOF 42331/* confdefs.h. */ 42332_ACEOF 42333cat confdefs.h >>conftest.$ac_ext 42334cat >>conftest.$ac_ext <<_ACEOF 42335/* end confdefs.h. */ 42336 42337#include <sys/types.h> 42338#if STDC_HEADERS 42339#include <stdlib.h> 42340#include <stddef.h> 42341#endif 42342 42343#include <sys/types.h> 42344#include <sys/uio.h> 42345 42346int 42347main () 42348{ 42349struct iovec foo; 42350 ; 42351 return 0; 42352} 42353_ACEOF 42354rm -f conftest.$ac_objext 42355if { (ac_try="$ac_compile" 42356case "(($ac_try" in 42357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42358 *) ac_try_echo=$ac_try;; 42359esac 42360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42361 (eval "$ac_compile") 2>conftest.er1 42362 ac_status=$? 42363 grep -v '^ *+' conftest.er1 >conftest.err 42364 rm -f conftest.er1 42365 cat conftest.err >&5 42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42367 (exit $ac_status); } && { 42368 test -z "$ac_c_werror_flag" || 42369 test ! -s conftest.err 42370 } && test -s conftest.$ac_objext; then 42371 eval "ac_cv_type_$cv=yes" 42372else 42373 echo "$as_me: failed program was:" >&5 42374sed 's/^/| /' conftest.$ac_ext >&5 42375 42376 eval "ac_cv_type_$cv=no" 42377fi 42378 42379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42380fi 42381ac_foo=`eval echo \\$ac_cv_type_$cv` 42382{ echo "$as_me:$LINENO: result: $ac_foo" >&5 42383echo "${ECHO_T}$ac_foo" >&6; } 42384if test "$ac_foo" = yes; then 42385 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 42386if false; then 42387 { echo "$as_me:$LINENO: checking for struct iovec" >&5 42388echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6; } 42389if test "${ac_cv_type_struct_iovec+set}" = set; then 42390 echo $ECHO_N "(cached) $ECHO_C" >&6 42391else 42392 cat >conftest.$ac_ext <<_ACEOF 42393/* confdefs.h. */ 42394_ACEOF 42395cat confdefs.h >>conftest.$ac_ext 42396cat >>conftest.$ac_ext <<_ACEOF 42397/* end confdefs.h. */ 42398$ac_includes_default 42399typedef struct iovec ac__type_new_; 42400int 42401main () 42402{ 42403if ((ac__type_new_ *) 0) 42404 return 0; 42405if (sizeof (ac__type_new_)) 42406 return 0; 42407 ; 42408 return 0; 42409} 42410_ACEOF 42411rm -f conftest.$ac_objext 42412if { (ac_try="$ac_compile" 42413case "(($ac_try" in 42414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42415 *) ac_try_echo=$ac_try;; 42416esac 42417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42418 (eval "$ac_compile") 2>conftest.er1 42419 ac_status=$? 42420 grep -v '^ *+' conftest.er1 >conftest.err 42421 rm -f conftest.er1 42422 cat conftest.err >&5 42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42424 (exit $ac_status); } && { 42425 test -z "$ac_c_werror_flag" || 42426 test ! -s conftest.err 42427 } && test -s conftest.$ac_objext; then 42428 ac_cv_type_struct_iovec=yes 42429else 42430 echo "$as_me: failed program was:" >&5 42431sed 's/^/| /' conftest.$ac_ext >&5 42432 42433 ac_cv_type_struct_iovec=no 42434fi 42435 42436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42437fi 42438{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5 42439echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6; } 42440if test $ac_cv_type_struct_iovec = yes; then 42441 42442cat >>confdefs.h <<_ACEOF 42443#define HAVE_STRUCT_IOVEC 1 42444_ACEOF 42445 42446 42447fi 42448 42449fi 42450 42451cat >>confdefs.h <<_ACEOF 42452#define $ac_tr_hdr 1 42453_ACEOF 42454 42455fi 42456 42457 42458 42459cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 42460{ echo "$as_me:$LINENO: checking for struct msghdr" >&5 42461echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; } 42462if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 42463 echo $ECHO_N "(cached) $ECHO_C" >&6 42464else 42465 cat >conftest.$ac_ext <<_ACEOF 42466/* confdefs.h. */ 42467_ACEOF 42468cat confdefs.h >>conftest.$ac_ext 42469cat >>conftest.$ac_ext <<_ACEOF 42470/* end confdefs.h. */ 42471 42472#include <sys/types.h> 42473#if STDC_HEADERS 42474#include <stdlib.h> 42475#include <stddef.h> 42476#endif 42477 42478#include <sys/types.h> 42479#include <sys/socket.h> 42480 42481int 42482main () 42483{ 42484struct msghdr foo; 42485 ; 42486 return 0; 42487} 42488_ACEOF 42489rm -f conftest.$ac_objext 42490if { (ac_try="$ac_compile" 42491case "(($ac_try" in 42492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42493 *) ac_try_echo=$ac_try;; 42494esac 42495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42496 (eval "$ac_compile") 2>conftest.er1 42497 ac_status=$? 42498 grep -v '^ *+' conftest.er1 >conftest.err 42499 rm -f conftest.er1 42500 cat conftest.err >&5 42501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42502 (exit $ac_status); } && { 42503 test -z "$ac_c_werror_flag" || 42504 test ! -s conftest.err 42505 } && test -s conftest.$ac_objext; then 42506 eval "ac_cv_type_$cv=yes" 42507else 42508 echo "$as_me: failed program was:" >&5 42509sed 's/^/| /' conftest.$ac_ext >&5 42510 42511 eval "ac_cv_type_$cv=no" 42512fi 42513 42514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42515fi 42516ac_foo=`eval echo \\$ac_cv_type_$cv` 42517{ echo "$as_me:$LINENO: result: $ac_foo" >&5 42518echo "${ECHO_T}$ac_foo" >&6; } 42519if test "$ac_foo" = yes; then 42520 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 42521if false; then 42522 { echo "$as_me:$LINENO: checking for struct msghdr" >&5 42523echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6; } 42524if test "${ac_cv_type_struct_msghdr+set}" = set; then 42525 echo $ECHO_N "(cached) $ECHO_C" >&6 42526else 42527 cat >conftest.$ac_ext <<_ACEOF 42528/* confdefs.h. */ 42529_ACEOF 42530cat confdefs.h >>conftest.$ac_ext 42531cat >>conftest.$ac_ext <<_ACEOF 42532/* end confdefs.h. */ 42533$ac_includes_default 42534typedef struct msghdr ac__type_new_; 42535int 42536main () 42537{ 42538if ((ac__type_new_ *) 0) 42539 return 0; 42540if (sizeof (ac__type_new_)) 42541 return 0; 42542 ; 42543 return 0; 42544} 42545_ACEOF 42546rm -f conftest.$ac_objext 42547if { (ac_try="$ac_compile" 42548case "(($ac_try" in 42549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42550 *) ac_try_echo=$ac_try;; 42551esac 42552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42553 (eval "$ac_compile") 2>conftest.er1 42554 ac_status=$? 42555 grep -v '^ *+' conftest.er1 >conftest.err 42556 rm -f conftest.er1 42557 cat conftest.err >&5 42558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42559 (exit $ac_status); } && { 42560 test -z "$ac_c_werror_flag" || 42561 test ! -s conftest.err 42562 } && test -s conftest.$ac_objext; then 42563 ac_cv_type_struct_msghdr=yes 42564else 42565 echo "$as_me: failed program was:" >&5 42566sed 's/^/| /' conftest.$ac_ext >&5 42567 42568 ac_cv_type_struct_msghdr=no 42569fi 42570 42571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42572fi 42573{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5 42574echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6; } 42575if test $ac_cv_type_struct_msghdr = yes; then 42576 42577cat >>confdefs.h <<_ACEOF 42578#define HAVE_STRUCT_MSGHDR 1 42579_ACEOF 42580 42581 42582fi 42583 42584fi 42585 42586cat >>confdefs.h <<_ACEOF 42587#define $ac_tr_hdr 1 42588_ACEOF 42589 42590fi 42591 42592 42593 42594 42595{ echo "$as_me:$LINENO: checking for struct winsize" >&5 42596echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6; } 42597if test "${ac_cv_struct_winsize+set}" = set; then 42598 echo $ECHO_N "(cached) $ECHO_C" >&6 42599else 42600 42601ac_cv_struct_winsize=no 42602for i in sys/termios.h sys/ioctl.h; do 42603cat >conftest.$ac_ext <<_ACEOF 42604/* confdefs.h. */ 42605_ACEOF 42606cat confdefs.h >>conftest.$ac_ext 42607cat >>conftest.$ac_ext <<_ACEOF 42608/* end confdefs.h. */ 42609#include <$i> 42610 42611_ACEOF 42612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42613 $EGREP "struct[ ]*winsize" >/dev/null 2>&1; then 42614 ac_cv_struct_winsize=yes; break 42615fi 42616rm -f conftest* 42617done 42618 42619fi 42620 42621if test "$ac_cv_struct_winsize" = "yes"; then 42622 42623cat >>confdefs.h <<\_ACEOF 42624#define HAVE_STRUCT_WINSIZE 1 42625_ACEOF 42626 42627fi 42628{ echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5 42629echo "${ECHO_T}$ac_cv_struct_winsize" >&6; } 42630cat >conftest.$ac_ext <<_ACEOF 42631/* confdefs.h. */ 42632_ACEOF 42633cat confdefs.h >>conftest.$ac_ext 42634cat >>conftest.$ac_ext <<_ACEOF 42635/* end confdefs.h. */ 42636#include <termios.h> 42637 42638_ACEOF 42639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42640 $EGREP "ws_xpixel" >/dev/null 2>&1; then 42641 42642cat >>confdefs.h <<\_ACEOF 42643#define HAVE_WS_XPIXEL 1 42644_ACEOF 42645 42646fi 42647rm -f conftest* 42648 42649cat >conftest.$ac_ext <<_ACEOF 42650/* confdefs.h. */ 42651_ACEOF 42652cat confdefs.h >>conftest.$ac_ext 42653cat >>conftest.$ac_ext <<_ACEOF 42654/* end confdefs.h. */ 42655#include <termios.h> 42656 42657_ACEOF 42658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42659 $EGREP "ws_ypixel" >/dev/null 2>&1; then 42660 42661cat >>confdefs.h <<\_ACEOF 42662#define HAVE_WS_YPIXEL 1 42663_ACEOF 42664 42665fi 42666rm -f conftest* 42667 42668 42669 42670 42671 42672{ echo "$as_me:$LINENO: checking for struct spwd" >&5 42673echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6; } 42674if test "${ac_cv_struct_spwd+set}" = set; then 42675 echo $ECHO_N "(cached) $ECHO_C" >&6 42676else 42677 42678cat >conftest.$ac_ext <<_ACEOF 42679/* confdefs.h. */ 42680_ACEOF 42681cat confdefs.h >>conftest.$ac_ext 42682cat >>conftest.$ac_ext <<_ACEOF 42683/* end confdefs.h. */ 42684 42685#include <pwd.h> 42686#ifdef HAVE_SHADOW_H 42687#include <shadow.h> 42688#endif 42689int 42690main () 42691{ 42692struct spwd foo; 42693 ; 42694 return 0; 42695} 42696_ACEOF 42697rm -f conftest.$ac_objext 42698if { (ac_try="$ac_compile" 42699case "(($ac_try" in 42700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 42701 *) ac_try_echo=$ac_try;; 42702esac 42703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 42704 (eval "$ac_compile") 2>conftest.er1 42705 ac_status=$? 42706 grep -v '^ *+' conftest.er1 >conftest.err 42707 rm -f conftest.er1 42708 cat conftest.err >&5 42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 42710 (exit $ac_status); } && { 42711 test -z "$ac_c_werror_flag" || 42712 test ! -s conftest.err 42713 } && test -s conftest.$ac_objext; then 42714 ac_cv_struct_spwd=yes 42715else 42716 echo "$as_me: failed program was:" >&5 42717sed 's/^/| /' conftest.$ac_ext >&5 42718 42719 ac_cv_struct_spwd=no 42720fi 42721 42722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42723 42724fi 42725 42726{ echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5 42727echo "${ECHO_T}$ac_cv_struct_spwd" >&6; } 42728 42729if test "$ac_cv_struct_spwd" = "yes"; then 42730 42731cat >>confdefs.h <<\_ACEOF 42732#define HAVE_STRUCT_SPWD 1 42733_ACEOF 42734 42735fi 42736 42737 42738# 42739# Check if we want samba's socket wrapper 42740# 42741 42742 42743 42744# Check whether --enable-socket-wrapper was given. 42745if test "${enable_socket_wrapper+set}" = set; then 42746 enableval=$enable_socket_wrapper; 42747fi 42748 42749 42750 if test "x$enable_socket_wrapper" = xyes; then 42751 have_socket_wrapper_TRUE= 42752 have_socket_wrapper_FALSE='#' 42753else 42754 have_socket_wrapper_TRUE='#' 42755 have_socket_wrapper_FALSE= 42756fi 42757 42758if test "x$enable_socket_wrapper" = xyes ; then 42759 42760cat >>confdefs.h <<\_ACEOF 42761#define SOCKET_WRAPPER_REPLACE 1 42762_ACEOF 42763 42764fi 42765 42766 42767 42768 42769LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 42770 42771 42772LIBADD_roken="$LIB_roken" 42773LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 42774 42775 42776# Check whether --enable-otp was given. 42777if test "${enable_otp+set}" = set; then 42778 enableval=$enable_otp; 42779fi 42780 42781if test "$enable_otp" = yes -a "$db_type" = unknown; then 42782 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5 42783echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;} 42784 { (exit 1); exit 1; }; } 42785fi 42786if test "$enable_otp" != no; then 42787 if test "$db_type" != unknown; then 42788 enable_otp=yes 42789 else 42790 enable_otp=no 42791 fi 42792fi 42793if test "$enable_otp" = yes; then 42794 42795cat >>confdefs.h <<\_ACEOF 42796#define OTP 1 42797_ACEOF 42798 42799 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 42800 42801fi 42802{ echo "$as_me:$LINENO: checking whether to enable OTP library" >&5 42803echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6; } 42804{ echo "$as_me:$LINENO: result: $enable_otp" >&5 42805echo "${ECHO_T}$enable_otp" >&6; } 42806 if test "$enable_otp" = yes; then 42807 OTP_TRUE= 42808 OTP_FALSE='#' 42809else 42810 OTP_TRUE='#' 42811 OTP_FALSE= 42812fi 42813 42814 42815 42816# Check whether --enable-osfc2 was given. 42817if test "${enable_osfc2+set}" = set; then 42818 enableval=$enable_osfc2; 42819fi 42820 42821LIB_security= 42822if test "$enable_osfc2" = yes; then 42823 42824cat >>confdefs.h <<\_ACEOF 42825#define HAVE_OSFC2 1 42826_ACEOF 42827 42828 LIB_security=-lsecurity 42829fi 42830 42831 42832 42833# Check whether --enable-mmap was given. 42834if test "${enable_mmap+set}" = set; then 42835 enableval=$enable_mmap; 42836fi 42837 42838if test "$enable_mmap" = "no"; then 42839 42840cat >>confdefs.h <<\_ACEOF 42841#define NO_MMAP 1 42842_ACEOF 42843 42844fi 42845 42846# Check whether --enable-afs-string-to-key was given. 42847if test "${enable_afs_string_to_key+set}" = set; then 42848 enableval=$enable_afs_string_to_key; 42849else 42850 enable_afs_string_to_key=yes 42851fi 42852 42853 42854if test "$enable_afs_string_to_key" = "yes"; then 42855 42856cat >>confdefs.h <<\_ACEOF 42857#define ENABLE_AFS_STRING_TO_KEY 1 42858_ACEOF 42859 42860fi 42861 42862 42863# Extract the first word of "nroff", so it can be a program name with args. 42864set dummy nroff; ac_word=$2 42865{ echo "$as_me:$LINENO: checking for $ac_word" >&5 42866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 42867if test "${ac_cv_path_NROFF+set}" = set; then 42868 echo $ECHO_N "(cached) $ECHO_C" >&6 42869else 42870 case $NROFF in 42871 [\\/]* | ?:[\\/]*) 42872 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 42873 ;; 42874 *) 42875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42876for as_dir in $PATH 42877do 42878 IFS=$as_save_IFS 42879 test -z "$as_dir" && as_dir=. 42880 for ac_exec_ext in '' $ac_executable_extensions; do 42881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 42882 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 42883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 42884 break 2 42885 fi 42886done 42887done 42888IFS=$as_save_IFS 42889 42890 ;; 42891esac 42892fi 42893NROFF=$ac_cv_path_NROFF 42894if test -n "$NROFF"; then 42895 { echo "$as_me:$LINENO: result: $NROFF" >&5 42896echo "${ECHO_T}$NROFF" >&6; } 42897else 42898 { echo "$as_me:$LINENO: result: no" >&5 42899echo "${ECHO_T}no" >&6; } 42900fi 42901 42902 42903# Extract the first word of "groff", so it can be a program name with args. 42904set dummy groff; ac_word=$2 42905{ echo "$as_me:$LINENO: checking for $ac_word" >&5 42906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 42907if test "${ac_cv_path_GROFF+set}" = set; then 42908 echo $ECHO_N "(cached) $ECHO_C" >&6 42909else 42910 case $GROFF in 42911 [\\/]* | ?:[\\/]*) 42912 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 42913 ;; 42914 *) 42915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42916for as_dir in $PATH 42917do 42918 IFS=$as_save_IFS 42919 test -z "$as_dir" && as_dir=. 42920 for ac_exec_ext in '' $ac_executable_extensions; do 42921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 42922 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 42923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 42924 break 2 42925 fi 42926done 42927done 42928IFS=$as_save_IFS 42929 42930 ;; 42931esac 42932fi 42933GROFF=$ac_cv_path_GROFF 42934if test -n "$GROFF"; then 42935 { echo "$as_me:$LINENO: result: $GROFF" >&5 42936echo "${ECHO_T}$GROFF" >&6; } 42937else 42938 { echo "$as_me:$LINENO: result: no" >&5 42939echo "${ECHO_T}no" >&6; } 42940fi 42941 42942 42943{ echo "$as_me:$LINENO: checking how to format man pages" >&5 42944echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6; } 42945if test "${ac_cv_sys_man_format+set}" = set; then 42946 echo $ECHO_N "(cached) $ECHO_C" >&6 42947else 42948 cat > conftest.1 << END 42949.Dd January 1, 1970 42950.Dt CONFTEST 1 42951.Sh NAME 42952.Nm conftest 42953.Nd 42954foobar 42955END 42956 42957if test "$NROFF" ; then 42958 for i in "-mdoc" "-mandoc"; do 42959 if "$NROFF" $i conftest.1 2> /dev/null | \ 42960 grep Jan > /dev/null 2>&1 ; then 42961 ac_cv_sys_man_format="$NROFF $i" 42962 break 42963 fi 42964 done 42965fi 42966if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 42967 for i in "-mdoc" "-mandoc"; do 42968 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 42969 grep Jan > /dev/null 2>&1 ; then 42970 ac_cv_sys_man_format="$GROFF -Tascii $i" 42971 break 42972 fi 42973 done 42974fi 42975if test "$ac_cv_sys_man_format"; then 42976 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 42977fi 42978 42979fi 42980{ echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5 42981echo "${ECHO_T}$ac_cv_sys_man_format" >&6; } 42982if test "$ac_cv_sys_man_format"; then 42983 CATMAN="$ac_cv_sys_man_format" 42984 42985fi 42986 if test "$CATMAN"; then 42987 CATMAN_TRUE= 42988 CATMAN_FALSE='#' 42989else 42990 CATMAN_TRUE='#' 42991 CATMAN_FALSE= 42992fi 42993 42994{ echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5 42995echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6; } 42996if test "${ac_cv_sys_catman_ext+set}" = set; then 42997 echo $ECHO_N "(cached) $ECHO_C" >&6 42998else 42999 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 43000 ac_cv_sys_catman_ext=0 43001else 43002 ac_cv_sys_catman_ext=number 43003fi 43004 43005fi 43006{ echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5 43007echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6; } 43008if test "$ac_cv_sys_catman_ext" = number; then 43009 CATMANEXT='$$section' 43010else 43011 CATMANEXT=0 43012fi 43013 43014 43015 43016 43017 43018# Check whether --with-readline was given. 43019if test "${with_readline+set}" = set; then 43020 withval=$with_readline; 43021fi 43022 43023 43024# Check whether --with-readline-lib was given. 43025if test "${with_readline_lib+set}" = set; then 43026 withval=$with_readline_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 43027 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5 43028echo "$as_me: error: No argument for --with-readline-lib" >&2;} 43029 { (exit 1); exit 1; }; } 43030elif test "X$with_readline" = "X"; then 43031 with_readline=yes 43032fi 43033fi 43034 43035 43036# Check whether --with-readline-include was given. 43037if test "${with_readline_include+set}" = set; then 43038 withval=$with_readline_include; if test "$withval" = "yes" -o "$withval" = "no"; then 43039 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5 43040echo "$as_me: error: No argument for --with-readline-include" >&2;} 43041 { (exit 1); exit 1; }; } 43042elif test "X$with_readline" = "X"; then 43043 with_readline=yes 43044fi 43045fi 43046 43047 43048# Check whether --with-readline-config was given. 43049if test "${with_readline_config+set}" = set; then 43050 withval=$with_readline_config; 43051fi 43052 43053 43054 43055 43056{ echo "$as_me:$LINENO: checking for readline" >&5 43057echo $ECHO_N "checking for readline... $ECHO_C" >&6; } 43058 43059case "$with_readline" in 43060yes|"") d='' ;; 43061no) d= ;; 43062*) d="$with_readline" ;; 43063esac 43064 43065header_dirs= 43066lib_dirs= 43067for i in $d; do 43068 if test "$with_readline_include" = ""; then 43069 if test -d "$i/include/readline"; then 43070 header_dirs="$header_dirs $i/include/readline" 43071 fi 43072 if test -d "$i/include"; then 43073 header_dirs="$header_dirs $i/include" 43074 fi 43075 fi 43076 if test "$with_readline_lib" = ""; then 43077 if test -d "$i/lib$abilibdirext"; then 43078 lib_dirs="$lib_dirs $i/lib$abilibdirext" 43079 fi 43080 fi 43081done 43082 43083if test "$with_readline_include"; then 43084 header_dirs="$with_readline_include $header_dirs" 43085fi 43086if test "$with_readline_lib"; then 43087 lib_dirs="$with_readline_lib $lib_dirs" 43088fi 43089 43090if test "$with_readline_config" = ""; then 43091 with_readline_config='' 43092fi 43093 43094readline_cflags= 43095readline_libs= 43096 43097case "$with_readline_config" in 43098yes|no|""|"") 43099 if test -f $with_readline/bin/ ; then 43100 with_readline_config=$with_readline/bin/ 43101 fi 43102 ;; 43103esac 43104 43105case "$with_readline_config" in 43106yes|no|"") 43107 ;; 43108*) 43109 readline_cflags="`$with_readline_config --cflags 2>&1`" 43110 readline_libs="`$with_readline_config --libs 2>&1`" 43111 ;; 43112esac 43113 43114found=no 43115if test "$with_readline" != no; then 43116 save_CFLAGS="$CFLAGS" 43117 save_LIBS="$LIBS" 43118 if test "$readline_cflags" -a "$readline_libs"; then 43119 CFLAGS="$readline_cflags $save_CFLAGS" 43120 LIBS="$readline_libs $save_LIBS" 43121 cat >conftest.$ac_ext <<_ACEOF 43122/* confdefs.h. */ 43123_ACEOF 43124cat confdefs.h >>conftest.$ac_ext 43125cat >>conftest.$ac_ext <<_ACEOF 43126/* end confdefs.h. */ 43127#include <stdio.h> 43128 #include <readline.h> 43129int 43130main () 43131{ 43132 43133 ; 43134 return 0; 43135} 43136_ACEOF 43137rm -f conftest.$ac_objext conftest$ac_exeext 43138if { (ac_try="$ac_link" 43139case "(($ac_try" in 43140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43141 *) ac_try_echo=$ac_try;; 43142esac 43143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43144 (eval "$ac_link") 2>conftest.er1 43145 ac_status=$? 43146 grep -v '^ *+' conftest.er1 >conftest.err 43147 rm -f conftest.er1 43148 cat conftest.err >&5 43149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43150 (exit $ac_status); } && { 43151 test -z "$ac_c_werror_flag" || 43152 test ! -s conftest.err 43153 } && test -s conftest$ac_exeext && 43154 $as_test_x conftest$ac_exeext; then 43155 43156 INCLUDE_readline="$readline_cflags" 43157 LIB_readline="$readline_libs" 43158 { echo "$as_me:$LINENO: result: from $with_readline_config" >&5 43159echo "${ECHO_T}from $with_readline_config" >&6; } 43160 found=yes 43161else 43162 echo "$as_me: failed program was:" >&5 43163sed 's/^/| /' conftest.$ac_ext >&5 43164 43165 43166fi 43167 43168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43169 conftest$ac_exeext conftest.$ac_ext 43170 fi 43171 if test "$found" = no; then 43172 ires= lres= 43173 for i in $header_dirs; do 43174 CFLAGS="-I$i $save_CFLAGS" 43175 cat >conftest.$ac_ext <<_ACEOF 43176/* confdefs.h. */ 43177_ACEOF 43178cat confdefs.h >>conftest.$ac_ext 43179cat >>conftest.$ac_ext <<_ACEOF 43180/* end confdefs.h. */ 43181#include <stdio.h> 43182 #include <readline.h> 43183int 43184main () 43185{ 43186 43187 ; 43188 return 0; 43189} 43190_ACEOF 43191rm -f conftest.$ac_objext 43192if { (ac_try="$ac_compile" 43193case "(($ac_try" in 43194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43195 *) ac_try_echo=$ac_try;; 43196esac 43197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43198 (eval "$ac_compile") 2>conftest.er1 43199 ac_status=$? 43200 grep -v '^ *+' conftest.er1 >conftest.err 43201 rm -f conftest.er1 43202 cat conftest.err >&5 43203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43204 (exit $ac_status); } && { 43205 test -z "$ac_c_werror_flag" || 43206 test ! -s conftest.err 43207 } && test -s conftest.$ac_objext; then 43208 ires=$i;break 43209else 43210 echo "$as_me: failed program was:" >&5 43211sed 's/^/| /' conftest.$ac_ext >&5 43212 43213 43214fi 43215 43216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43217 done 43218 for i in $lib_dirs; do 43219 LIBS="-L$i -lreadline $save_LIBS" 43220 cat >conftest.$ac_ext <<_ACEOF 43221/* confdefs.h. */ 43222_ACEOF 43223cat confdefs.h >>conftest.$ac_ext 43224cat >>conftest.$ac_ext <<_ACEOF 43225/* end confdefs.h. */ 43226#include <stdio.h> 43227 #include <readline.h> 43228int 43229main () 43230{ 43231 43232 ; 43233 return 0; 43234} 43235_ACEOF 43236rm -f conftest.$ac_objext conftest$ac_exeext 43237if { (ac_try="$ac_link" 43238case "(($ac_try" in 43239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43240 *) ac_try_echo=$ac_try;; 43241esac 43242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43243 (eval "$ac_link") 2>conftest.er1 43244 ac_status=$? 43245 grep -v '^ *+' conftest.er1 >conftest.err 43246 rm -f conftest.er1 43247 cat conftest.err >&5 43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43249 (exit $ac_status); } && { 43250 test -z "$ac_c_werror_flag" || 43251 test ! -s conftest.err 43252 } && test -s conftest$ac_exeext && 43253 $as_test_x conftest$ac_exeext; then 43254 lres=$i;break 43255else 43256 echo "$as_me: failed program was:" >&5 43257sed 's/^/| /' conftest.$ac_ext >&5 43258 43259 43260fi 43261 43262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43263 conftest$ac_exeext conftest.$ac_ext 43264 done 43265 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 43266 INCLUDE_readline="-I$ires" 43267 LIB_readline="-L$lres -lreadline " 43268 found=yes 43269 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 43270echo "${ECHO_T}headers $ires, libraries $lres" >&6; } 43271 fi 43272 fi 43273 CFLAGS="$save_CFLAGS" 43274 LIBS="$save_LIBS" 43275fi 43276 43277if test "$found" = yes; then 43278 43279cat >>confdefs.h <<_ACEOF 43280#define READLINE 1 43281_ACEOF 43282 43283 with_readline=yes 43284else 43285 with_readline=no 43286 INCLUDE_readline= 43287 LIB_readline= 43288 { echo "$as_me:$LINENO: result: no" >&5 43289echo "${ECHO_T}no" >&6; } 43290fi 43291 43292 43293 43294 43295 43296 43297 43298# Check whether --with-hesiod was given. 43299if test "${with_hesiod+set}" = set; then 43300 withval=$with_hesiod; 43301fi 43302 43303 43304# Check whether --with-hesiod-lib was given. 43305if test "${with_hesiod_lib+set}" = set; then 43306 withval=$with_hesiod_lib; if test "$withval" = "yes" -o "$withval" = "no"; then 43307 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5 43308echo "$as_me: error: No argument for --with-hesiod-lib" >&2;} 43309 { (exit 1); exit 1; }; } 43310elif test "X$with_hesiod" = "X"; then 43311 with_hesiod=yes 43312fi 43313fi 43314 43315 43316# Check whether --with-hesiod-include was given. 43317if test "${with_hesiod_include+set}" = set; then 43318 withval=$with_hesiod_include; if test "$withval" = "yes" -o "$withval" = "no"; then 43319 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5 43320echo "$as_me: error: No argument for --with-hesiod-include" >&2;} 43321 { (exit 1); exit 1; }; } 43322elif test "X$with_hesiod" = "X"; then 43323 with_hesiod=yes 43324fi 43325fi 43326 43327 43328# Check whether --with-hesiod-config was given. 43329if test "${with_hesiod_config+set}" = set; then 43330 withval=$with_hesiod_config; 43331fi 43332 43333 43334 43335 43336{ echo "$as_me:$LINENO: checking for hesiod" >&5 43337echo $ECHO_N "checking for hesiod... $ECHO_C" >&6; } 43338 43339case "$with_hesiod" in 43340yes|"") d='' ;; 43341no) d= ;; 43342*) d="$with_hesiod" ;; 43343esac 43344 43345header_dirs= 43346lib_dirs= 43347for i in $d; do 43348 if test "$with_hesiod_include" = ""; then 43349 if test -d "$i/include/hesiod"; then 43350 header_dirs="$header_dirs $i/include/hesiod" 43351 fi 43352 if test -d "$i/include"; then 43353 header_dirs="$header_dirs $i/include" 43354 fi 43355 fi 43356 if test "$with_hesiod_lib" = ""; then 43357 if test -d "$i/lib$abilibdirext"; then 43358 lib_dirs="$lib_dirs $i/lib$abilibdirext" 43359 fi 43360 fi 43361done 43362 43363if test "$with_hesiod_include"; then 43364 header_dirs="$with_hesiod_include $header_dirs" 43365fi 43366if test "$with_hesiod_lib"; then 43367 lib_dirs="$with_hesiod_lib $lib_dirs" 43368fi 43369 43370if test "$with_hesiod_config" = ""; then 43371 with_hesiod_config='' 43372fi 43373 43374hesiod_cflags= 43375hesiod_libs= 43376 43377case "$with_hesiod_config" in 43378yes|no|""|"") 43379 if test -f $with_hesiod/bin/ ; then 43380 with_hesiod_config=$with_hesiod/bin/ 43381 fi 43382 ;; 43383esac 43384 43385case "$with_hesiod_config" in 43386yes|no|"") 43387 ;; 43388*) 43389 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`" 43390 hesiod_libs="`$with_hesiod_config --libs 2>&1`" 43391 ;; 43392esac 43393 43394found=no 43395if test "$with_hesiod" != no; then 43396 save_CFLAGS="$CFLAGS" 43397 save_LIBS="$LIBS" 43398 if test "$hesiod_cflags" -a "$hesiod_libs"; then 43399 CFLAGS="$hesiod_cflags $save_CFLAGS" 43400 LIBS="$hesiod_libs $save_LIBS" 43401 cat >conftest.$ac_ext <<_ACEOF 43402/* confdefs.h. */ 43403_ACEOF 43404cat confdefs.h >>conftest.$ac_ext 43405cat >>conftest.$ac_ext <<_ACEOF 43406/* end confdefs.h. */ 43407#include <hesiod.h> 43408int 43409main () 43410{ 43411 43412 ; 43413 return 0; 43414} 43415_ACEOF 43416rm -f conftest.$ac_objext conftest$ac_exeext 43417if { (ac_try="$ac_link" 43418case "(($ac_try" in 43419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43420 *) ac_try_echo=$ac_try;; 43421esac 43422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43423 (eval "$ac_link") 2>conftest.er1 43424 ac_status=$? 43425 grep -v '^ *+' conftest.er1 >conftest.err 43426 rm -f conftest.er1 43427 cat conftest.err >&5 43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43429 (exit $ac_status); } && { 43430 test -z "$ac_c_werror_flag" || 43431 test ! -s conftest.err 43432 } && test -s conftest$ac_exeext && 43433 $as_test_x conftest$ac_exeext; then 43434 43435 INCLUDE_hesiod="$hesiod_cflags" 43436 LIB_hesiod="$hesiod_libs" 43437 { echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5 43438echo "${ECHO_T}from $with_hesiod_config" >&6; } 43439 found=yes 43440else 43441 echo "$as_me: failed program was:" >&5 43442sed 's/^/| /' conftest.$ac_ext >&5 43443 43444 43445fi 43446 43447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43448 conftest$ac_exeext conftest.$ac_ext 43449 fi 43450 if test "$found" = no; then 43451 ires= lres= 43452 for i in $header_dirs; do 43453 CFLAGS="-I$i $save_CFLAGS" 43454 cat >conftest.$ac_ext <<_ACEOF 43455/* confdefs.h. */ 43456_ACEOF 43457cat confdefs.h >>conftest.$ac_ext 43458cat >>conftest.$ac_ext <<_ACEOF 43459/* end confdefs.h. */ 43460#include <hesiod.h> 43461int 43462main () 43463{ 43464 43465 ; 43466 return 0; 43467} 43468_ACEOF 43469rm -f conftest.$ac_objext 43470if { (ac_try="$ac_compile" 43471case "(($ac_try" in 43472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43473 *) ac_try_echo=$ac_try;; 43474esac 43475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43476 (eval "$ac_compile") 2>conftest.er1 43477 ac_status=$? 43478 grep -v '^ *+' conftest.er1 >conftest.err 43479 rm -f conftest.er1 43480 cat conftest.err >&5 43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43482 (exit $ac_status); } && { 43483 test -z "$ac_c_werror_flag" || 43484 test ! -s conftest.err 43485 } && test -s conftest.$ac_objext; then 43486 ires=$i;break 43487else 43488 echo "$as_me: failed program was:" >&5 43489sed 's/^/| /' conftest.$ac_ext >&5 43490 43491 43492fi 43493 43494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43495 done 43496 for i in $lib_dirs; do 43497 LIBS="-L$i -lhesiod $save_LIBS" 43498 cat >conftest.$ac_ext <<_ACEOF 43499/* confdefs.h. */ 43500_ACEOF 43501cat confdefs.h >>conftest.$ac_ext 43502cat >>conftest.$ac_ext <<_ACEOF 43503/* end confdefs.h. */ 43504#include <hesiod.h> 43505int 43506main () 43507{ 43508 43509 ; 43510 return 0; 43511} 43512_ACEOF 43513rm -f conftest.$ac_objext conftest$ac_exeext 43514if { (ac_try="$ac_link" 43515case "(($ac_try" in 43516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43517 *) ac_try_echo=$ac_try;; 43518esac 43519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43520 (eval "$ac_link") 2>conftest.er1 43521 ac_status=$? 43522 grep -v '^ *+' conftest.er1 >conftest.err 43523 rm -f conftest.er1 43524 cat conftest.err >&5 43525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43526 (exit $ac_status); } && { 43527 test -z "$ac_c_werror_flag" || 43528 test ! -s conftest.err 43529 } && test -s conftest$ac_exeext && 43530 $as_test_x conftest$ac_exeext; then 43531 lres=$i;break 43532else 43533 echo "$as_me: failed program was:" >&5 43534sed 's/^/| /' conftest.$ac_ext >&5 43535 43536 43537fi 43538 43539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43540 conftest$ac_exeext conftest.$ac_ext 43541 done 43542 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 43543 INCLUDE_hesiod="-I$ires" 43544 LIB_hesiod="-L$lres -lhesiod " 43545 found=yes 43546 { echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 43547echo "${ECHO_T}headers $ires, libraries $lres" >&6; } 43548 fi 43549 fi 43550 CFLAGS="$save_CFLAGS" 43551 LIBS="$save_LIBS" 43552fi 43553 43554if test "$found" = yes; then 43555 43556cat >>confdefs.h <<_ACEOF 43557#define HESIOD 1 43558_ACEOF 43559 43560 with_hesiod=yes 43561else 43562 with_hesiod=no 43563 INCLUDE_hesiod= 43564 LIB_hesiod= 43565 { echo "$as_me:$LINENO: result: no" >&5 43566echo "${ECHO_T}no" >&6; } 43567fi 43568 43569 43570 43571 43572 43573 43574# Check whether --enable-bigendian was given. 43575if test "${enable_bigendian+set}" = set; then 43576 enableval=$enable_bigendian; krb_cv_c_bigendian=yes 43577fi 43578 43579# Check whether --enable-littleendian was given. 43580if test "${enable_littleendian+set}" = set; then 43581 enableval=$enable_littleendian; krb_cv_c_bigendian=no 43582fi 43583 43584{ echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5 43585echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6; } 43586if test "${krb_cv_c_bigendian_compile+set}" = set; then 43587 echo $ECHO_N "(cached) $ECHO_C" >&6 43588else 43589 cat >conftest.$ac_ext <<_ACEOF 43590/* confdefs.h. */ 43591_ACEOF 43592cat confdefs.h >>conftest.$ac_ext 43593cat >>conftest.$ac_ext <<_ACEOF 43594/* end confdefs.h. */ 43595 43596#include <sys/types.h> 43597#include <sys/param.h> 43598#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 43599 bogus endian macros 43600#endif 43601_ACEOF 43602rm -f conftest.$ac_objext 43603if { (ac_try="$ac_compile" 43604case "(($ac_try" in 43605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43606 *) ac_try_echo=$ac_try;; 43607esac 43608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43609 (eval "$ac_compile") 2>conftest.er1 43610 ac_status=$? 43611 grep -v '^ *+' conftest.er1 >conftest.err 43612 rm -f conftest.er1 43613 cat conftest.err >&5 43614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43615 (exit $ac_status); } && { 43616 test -z "$ac_c_werror_flag" || 43617 test ! -s conftest.err 43618 } && test -s conftest.$ac_objext; then 43619 krb_cv_c_bigendian_compile=yes 43620else 43621 echo "$as_me: failed program was:" >&5 43622sed 's/^/| /' conftest.$ac_ext >&5 43623 43624 krb_cv_c_bigendian_compile=no 43625fi 43626 43627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43628fi 43629{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5 43630echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6; } 43631{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 43632echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 43633if test "${krb_cv_c_bigendian+set}" = set; then 43634 echo $ECHO_N "(cached) $ECHO_C" >&6 43635else 43636 43637 if test "$krb_cv_c_bigendian_compile" = "yes"; then 43638 cat >conftest.$ac_ext <<_ACEOF 43639/* confdefs.h. */ 43640_ACEOF 43641cat confdefs.h >>conftest.$ac_ext 43642cat >>conftest.$ac_ext <<_ACEOF 43643/* end confdefs.h. */ 43644 43645#include <sys/types.h> 43646#include <sys/param.h> 43647#if BYTE_ORDER != BIG_ENDIAN 43648 not big endian 43649#endif 43650_ACEOF 43651rm -f conftest.$ac_objext 43652if { (ac_try="$ac_compile" 43653case "(($ac_try" in 43654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43655 *) ac_try_echo=$ac_try;; 43656esac 43657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43658 (eval "$ac_compile") 2>conftest.er1 43659 ac_status=$? 43660 grep -v '^ *+' conftest.er1 >conftest.err 43661 rm -f conftest.er1 43662 cat conftest.err >&5 43663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43664 (exit $ac_status); } && { 43665 test -z "$ac_c_werror_flag" || 43666 test ! -s conftest.err 43667 } && test -s conftest.$ac_objext; then 43668 krb_cv_c_bigendian=yes 43669else 43670 echo "$as_me: failed program was:" >&5 43671sed 's/^/| /' conftest.$ac_ext >&5 43672 43673 krb_cv_c_bigendian=no 43674fi 43675 43676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43677 else 43678 if test "$cross_compiling" = yes; then 43679 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5 43680echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;} 43681 { (exit 1); exit 1; }; } 43682else 43683 cat >conftest.$ac_ext <<_ACEOF 43684/* confdefs.h. */ 43685_ACEOF 43686cat confdefs.h >>conftest.$ac_ext 43687cat >>conftest.$ac_ext <<_ACEOF 43688/* end confdefs.h. */ 43689main (int argc, char **argv) { 43690 /* Are we little or big endian? From Harbison&Steele. */ 43691 union 43692 { 43693 long l; 43694 char c[sizeof (long)]; 43695 } u; 43696 u.l = 1; 43697 exit (u.c[sizeof (long) - 1] == 1); 43698 } 43699_ACEOF 43700rm -f conftest$ac_exeext 43701if { (ac_try="$ac_link" 43702case "(($ac_try" in 43703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43704 *) ac_try_echo=$ac_try;; 43705esac 43706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43707 (eval "$ac_link") 2>&5 43708 ac_status=$? 43709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 43711 { (case "(($ac_try" in 43712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43713 *) ac_try_echo=$ac_try;; 43714esac 43715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43716 (eval "$ac_try") 2>&5 43717 ac_status=$? 43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43719 (exit $ac_status); }; }; then 43720 krb_cv_c_bigendian=no 43721else 43722 echo "$as_me: program exited with status $ac_status" >&5 43723echo "$as_me: failed program was:" >&5 43724sed 's/^/| /' conftest.$ac_ext >&5 43725 43726( exit $ac_status ) 43727krb_cv_c_bigendian=yes 43728fi 43729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 43730fi 43731 43732 43733 fi 43734 43735fi 43736{ echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5 43737echo "${ECHO_T}$krb_cv_c_bigendian" >&6; } 43738if test "$krb_cv_c_bigendian" = "yes"; then 43739 43740cat >>confdefs.h <<\_ACEOF 43741#define WORDS_BIGENDIAN 1 43742_ACEOF 43743fi 43744if test "$krb_cv_c_bigendian_compile" = "yes"; then 43745 43746cat >>confdefs.h <<\_ACEOF 43747#define ENDIANESS_IN_SYS_PARAM_H 1 43748_ACEOF 43749fi 43750 43751 43752 43753{ echo "$as_me:$LINENO: checking for inline" >&5 43754echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 43755if test "${ac_cv_c_inline+set}" = set; then 43756 echo $ECHO_N "(cached) $ECHO_C" >&6 43757else 43758 ac_cv_c_inline=no 43759for ac_kw in inline __inline__ __inline; do 43760 cat >conftest.$ac_ext <<_ACEOF 43761/* confdefs.h. */ 43762_ACEOF 43763cat confdefs.h >>conftest.$ac_ext 43764cat >>conftest.$ac_ext <<_ACEOF 43765/* end confdefs.h. */ 43766#ifndef __cplusplus 43767typedef int foo_t; 43768static $ac_kw foo_t static_foo () {return 0; } 43769$ac_kw foo_t foo () {return 0; } 43770#endif 43771 43772_ACEOF 43773rm -f conftest.$ac_objext 43774if { (ac_try="$ac_compile" 43775case "(($ac_try" in 43776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43777 *) ac_try_echo=$ac_try;; 43778esac 43779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43780 (eval "$ac_compile") 2>conftest.er1 43781 ac_status=$? 43782 grep -v '^ *+' conftest.er1 >conftest.err 43783 rm -f conftest.er1 43784 cat conftest.err >&5 43785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43786 (exit $ac_status); } && { 43787 test -z "$ac_c_werror_flag" || 43788 test ! -s conftest.err 43789 } && test -s conftest.$ac_objext; then 43790 ac_cv_c_inline=$ac_kw 43791else 43792 echo "$as_me: failed program was:" >&5 43793sed 's/^/| /' conftest.$ac_ext >&5 43794 43795 43796fi 43797 43798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43799 test "$ac_cv_c_inline" != no && break 43800done 43801 43802fi 43803{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 43804echo "${ECHO_T}$ac_cv_c_inline" >&6; } 43805 43806 43807case $ac_cv_c_inline in 43808 inline | yes) ;; 43809 *) 43810 case $ac_cv_c_inline in 43811 no) ac_val=;; 43812 *) ac_val=$ac_cv_c_inline;; 43813 esac 43814 cat >>confdefs.h <<_ACEOF 43815#ifndef __cplusplus 43816#define inline $ac_val 43817#endif 43818_ACEOF 43819 ;; 43820esac 43821 43822 43823 43824 43825 43826 43827{ echo "$as_me:$LINENO: checking for dlopen" >&5 43828echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 43829if test "${ac_cv_funclib_dlopen+set}" = set; then 43830 echo $ECHO_N "(cached) $ECHO_C" >&6 43831else 43832 43833if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 43834 ac_save_LIBS="$LIBS" 43835 for ac_lib in "" dl; do 43836 case "$ac_lib" in 43837 "") ;; 43838 yes) ac_lib="" ;; 43839 no) continue ;; 43840 -l*) ;; 43841 *) ac_lib="-l$ac_lib" ;; 43842 esac 43843 LIBS=" $ac_lib $ac_save_LIBS" 43844 cat >conftest.$ac_ext <<_ACEOF 43845/* confdefs.h. */ 43846_ACEOF 43847cat confdefs.h >>conftest.$ac_ext 43848cat >>conftest.$ac_ext <<_ACEOF 43849/* end confdefs.h. */ 43850 43851#ifdef HAVE_DLFCN_H 43852#include <dlfcn.h> 43853#endif 43854int 43855main () 43856{ 43857dlopen(0,0) 43858 ; 43859 return 0; 43860} 43861_ACEOF 43862rm -f conftest.$ac_objext conftest$ac_exeext 43863if { (ac_try="$ac_link" 43864case "(($ac_try" in 43865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43866 *) ac_try_echo=$ac_try;; 43867esac 43868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43869 (eval "$ac_link") 2>conftest.er1 43870 ac_status=$? 43871 grep -v '^ *+' conftest.er1 >conftest.err 43872 rm -f conftest.er1 43873 cat conftest.err >&5 43874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43875 (exit $ac_status); } && { 43876 test -z "$ac_c_werror_flag" || 43877 test ! -s conftest.err 43878 } && test -s conftest$ac_exeext && 43879 $as_test_x conftest$ac_exeext; then 43880 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 43881else 43882 echo "$as_me: failed program was:" >&5 43883sed 's/^/| /' conftest.$ac_ext >&5 43884 43885 43886fi 43887 43888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43889 conftest$ac_exeext conftest.$ac_ext 43890 done 43891 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 43892 LIBS="$ac_save_LIBS" 43893fi 43894 43895fi 43896 43897 43898eval "ac_res=\$ac_cv_funclib_dlopen" 43899 43900if false; then 43901 43902for ac_func in dlopen 43903do 43904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 43905{ echo "$as_me:$LINENO: checking for $ac_func" >&5 43906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 43907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 43908 echo $ECHO_N "(cached) $ECHO_C" >&6 43909else 43910 cat >conftest.$ac_ext <<_ACEOF 43911/* confdefs.h. */ 43912_ACEOF 43913cat confdefs.h >>conftest.$ac_ext 43914cat >>conftest.$ac_ext <<_ACEOF 43915/* end confdefs.h. */ 43916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 43917 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 43918#define $ac_func innocuous_$ac_func 43919 43920/* System header to define __stub macros and hopefully few prototypes, 43921 which can conflict with char $ac_func (); below. 43922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 43923 <limits.h> exists even on freestanding compilers. */ 43924 43925#ifdef __STDC__ 43926# include <limits.h> 43927#else 43928# include <assert.h> 43929#endif 43930 43931#undef $ac_func 43932 43933/* Override any GCC internal prototype to avoid an error. 43934 Use char because int might match the return type of a GCC 43935 builtin and then its argument prototype would still apply. */ 43936#ifdef __cplusplus 43937extern "C" 43938#endif 43939char $ac_func (); 43940/* The GNU C library defines this for functions which it implements 43941 to always fail with ENOSYS. Some functions are actually named 43942 something starting with __ and the normal name is an alias. */ 43943#if defined __stub_$ac_func || defined __stub___$ac_func 43944choke me 43945#endif 43946 43947int 43948main () 43949{ 43950return $ac_func (); 43951 ; 43952 return 0; 43953} 43954_ACEOF 43955rm -f conftest.$ac_objext conftest$ac_exeext 43956if { (ac_try="$ac_link" 43957case "(($ac_try" in 43958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 43959 *) ac_try_echo=$ac_try;; 43960esac 43961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 43962 (eval "$ac_link") 2>conftest.er1 43963 ac_status=$? 43964 grep -v '^ *+' conftest.er1 >conftest.err 43965 rm -f conftest.er1 43966 cat conftest.err >&5 43967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 43968 (exit $ac_status); } && { 43969 test -z "$ac_c_werror_flag" || 43970 test ! -s conftest.err 43971 } && test -s conftest$ac_exeext && 43972 $as_test_x conftest$ac_exeext; then 43973 eval "$as_ac_var=yes" 43974else 43975 echo "$as_me: failed program was:" >&5 43976sed 's/^/| /' conftest.$ac_ext >&5 43977 43978 eval "$as_ac_var=no" 43979fi 43980 43981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 43982 conftest$ac_exeext conftest.$ac_ext 43983fi 43984ac_res=`eval echo '${'$as_ac_var'}'` 43985 { echo "$as_me:$LINENO: result: $ac_res" >&5 43986echo "${ECHO_T}$ac_res" >&6; } 43987if test `eval echo '${'$as_ac_var'}'` = yes; then 43988 cat >>confdefs.h <<_ACEOF 43989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 43990_ACEOF 43991 43992fi 43993done 43994 43995fi 43996# dlopen 43997eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 43998eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 43999eval "LIB_dlopen=$ac_res" 44000 44001case "$ac_res" in 44002 yes) 44003 eval "ac_cv_func_dlopen=yes" 44004 eval "LIB_dlopen=" 44005 cat >>confdefs.h <<_ACEOF 44006#define $ac_tr_func 1 44007_ACEOF 44008 44009 { echo "$as_me:$LINENO: result: yes" >&5 44010echo "${ECHO_T}yes" >&6; } 44011 ;; 44012 no) 44013 eval "ac_cv_func_dlopen=no" 44014 eval "LIB_dlopen=" 44015 { echo "$as_me:$LINENO: result: no" >&5 44016echo "${ECHO_T}no" >&6; } 44017 ;; 44018 *) 44019 eval "ac_cv_func_dlopen=yes" 44020 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 44021 cat >>confdefs.h <<_ACEOF 44022#define $ac_tr_func 1 44023_ACEOF 44024 44025 cat >>confdefs.h <<_ACEOF 44026#define $ac_tr_lib 1 44027_ACEOF 44028 44029 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 44030echo "${ECHO_T}yes, in $ac_res" >&6; } 44031 ;; 44032esac 44033 44034 44035 if test "$ac_cv_funclib_dlopen" != no; then 44036 HAVE_DLOPEN_TRUE= 44037 HAVE_DLOPEN_FALSE='#' 44038else 44039 HAVE_DLOPEN_TRUE='#' 44040 HAVE_DLOPEN_FALSE= 44041fi 44042 44043 44044 44045 44046aix=no 44047case "$host" in 44048*-*-aix3*) 44049 aix=3 44050 ;; 44051*-*-aix4*|*-*-aix5*) 44052 aix=4 44053 ;; 44054esac 44055 44056 if test "$aix" != no; then 44057 AIX_TRUE= 44058 AIX_FALSE='#' 44059else 44060 AIX_TRUE='#' 44061 AIX_FALSE= 44062fi 44063 if test "$aix" = 4; then 44064 AIX4_TRUE= 44065 AIX4_FALSE='#' 44066else 44067 AIX4_TRUE='#' 44068 AIX4_FALSE= 44069fi 44070 44071 44072 44073# Check whether --enable-dynamic-afs was given. 44074if test "${enable_dynamic_afs+set}" = set; then 44075 enableval=$enable_dynamic_afs; 44076fi 44077 44078 44079if test "$aix" != no; then 44080 if test "$enable_dynamic_afs" != no; then 44081 44082 if test "$ac_cv_func_dlopen" = no; then 44083 44084 44085 44086{ echo "$as_me:$LINENO: checking for loadquery" >&5 44087echo $ECHO_N "checking for loadquery... $ECHO_C" >&6; } 44088if test "${ac_cv_funclib_loadquery+set}" = set; then 44089 echo $ECHO_N "(cached) $ECHO_C" >&6 44090else 44091 44092if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 44093 ac_save_LIBS="$LIBS" 44094 for ac_lib in "" ld; do 44095 case "$ac_lib" in 44096 "") ;; 44097 yes) ac_lib="" ;; 44098 no) continue ;; 44099 -l*) ;; 44100 *) ac_lib="-l$ac_lib" ;; 44101 esac 44102 LIBS=" $ac_lib $ac_save_LIBS" 44103 cat >conftest.$ac_ext <<_ACEOF 44104/* confdefs.h. */ 44105_ACEOF 44106cat confdefs.h >>conftest.$ac_ext 44107cat >>conftest.$ac_ext <<_ACEOF 44108/* end confdefs.h. */ 44109 44110int 44111main () 44112{ 44113loadquery() 44114 ; 44115 return 0; 44116} 44117_ACEOF 44118rm -f conftest.$ac_objext conftest$ac_exeext 44119if { (ac_try="$ac_link" 44120case "(($ac_try" in 44121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44122 *) ac_try_echo=$ac_try;; 44123esac 44124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44125 (eval "$ac_link") 2>conftest.er1 44126 ac_status=$? 44127 grep -v '^ *+' conftest.er1 >conftest.err 44128 rm -f conftest.er1 44129 cat conftest.err >&5 44130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44131 (exit $ac_status); } && { 44132 test -z "$ac_c_werror_flag" || 44133 test ! -s conftest.err 44134 } && test -s conftest$ac_exeext && 44135 $as_test_x conftest$ac_exeext; then 44136 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 44137else 44138 echo "$as_me: failed program was:" >&5 44139sed 's/^/| /' conftest.$ac_ext >&5 44140 44141 44142fi 44143 44144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44145 conftest$ac_exeext conftest.$ac_ext 44146 done 44147 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 44148 LIBS="$ac_save_LIBS" 44149fi 44150 44151fi 44152 44153 44154eval "ac_res=\$ac_cv_funclib_loadquery" 44155 44156if false; then 44157 44158for ac_func in loadquery 44159do 44160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 44161{ echo "$as_me:$LINENO: checking for $ac_func" >&5 44162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 44163if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 44164 echo $ECHO_N "(cached) $ECHO_C" >&6 44165else 44166 cat >conftest.$ac_ext <<_ACEOF 44167/* confdefs.h. */ 44168_ACEOF 44169cat confdefs.h >>conftest.$ac_ext 44170cat >>conftest.$ac_ext <<_ACEOF 44171/* end confdefs.h. */ 44172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 44173 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44174#define $ac_func innocuous_$ac_func 44175 44176/* System header to define __stub macros and hopefully few prototypes, 44177 which can conflict with char $ac_func (); below. 44178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44179 <limits.h> exists even on freestanding compilers. */ 44180 44181#ifdef __STDC__ 44182# include <limits.h> 44183#else 44184# include <assert.h> 44185#endif 44186 44187#undef $ac_func 44188 44189/* Override any GCC internal prototype to avoid an error. 44190 Use char because int might match the return type of a GCC 44191 builtin and then its argument prototype would still apply. */ 44192#ifdef __cplusplus 44193extern "C" 44194#endif 44195char $ac_func (); 44196/* The GNU C library defines this for functions which it implements 44197 to always fail with ENOSYS. Some functions are actually named 44198 something starting with __ and the normal name is an alias. */ 44199#if defined __stub_$ac_func || defined __stub___$ac_func 44200choke me 44201#endif 44202 44203int 44204main () 44205{ 44206return $ac_func (); 44207 ; 44208 return 0; 44209} 44210_ACEOF 44211rm -f conftest.$ac_objext conftest$ac_exeext 44212if { (ac_try="$ac_link" 44213case "(($ac_try" in 44214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44215 *) ac_try_echo=$ac_try;; 44216esac 44217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44218 (eval "$ac_link") 2>conftest.er1 44219 ac_status=$? 44220 grep -v '^ *+' conftest.er1 >conftest.err 44221 rm -f conftest.er1 44222 cat conftest.err >&5 44223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44224 (exit $ac_status); } && { 44225 test -z "$ac_c_werror_flag" || 44226 test ! -s conftest.err 44227 } && test -s conftest$ac_exeext && 44228 $as_test_x conftest$ac_exeext; then 44229 eval "$as_ac_var=yes" 44230else 44231 echo "$as_me: failed program was:" >&5 44232sed 's/^/| /' conftest.$ac_ext >&5 44233 44234 eval "$as_ac_var=no" 44235fi 44236 44237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44238 conftest$ac_exeext conftest.$ac_ext 44239fi 44240ac_res=`eval echo '${'$as_ac_var'}'` 44241 { echo "$as_me:$LINENO: result: $ac_res" >&5 44242echo "${ECHO_T}$ac_res" >&6; } 44243if test `eval echo '${'$as_ac_var'}'` = yes; then 44244 cat >>confdefs.h <<_ACEOF 44245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 44246_ACEOF 44247 44248fi 44249done 44250 44251fi 44252# loadquery 44253eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 44254eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 44255eval "LIB_loadquery=$ac_res" 44256 44257case "$ac_res" in 44258 yes) 44259 eval "ac_cv_func_loadquery=yes" 44260 eval "LIB_loadquery=" 44261 cat >>confdefs.h <<_ACEOF 44262#define $ac_tr_func 1 44263_ACEOF 44264 44265 { echo "$as_me:$LINENO: result: yes" >&5 44266echo "${ECHO_T}yes" >&6; } 44267 ;; 44268 no) 44269 eval "ac_cv_func_loadquery=no" 44270 eval "LIB_loadquery=" 44271 { echo "$as_me:$LINENO: result: no" >&5 44272echo "${ECHO_T}no" >&6; } 44273 ;; 44274 *) 44275 eval "ac_cv_func_loadquery=yes" 44276 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 44277 cat >>confdefs.h <<_ACEOF 44278#define $ac_tr_func 1 44279_ACEOF 44280 44281 cat >>confdefs.h <<_ACEOF 44282#define $ac_tr_lib 1 44283_ACEOF 44284 44285 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 44286echo "${ECHO_T}yes, in $ac_res" >&6; } 44287 ;; 44288esac 44289 44290 44291 fi 44292 if test "$ac_cv_func_dlopen" != no; then 44293 AIX_EXTRA_KAFS='$(LIB_dlopen)' 44294 elif test "$ac_cv_func_loadquery" != no; then 44295 AIX_EXTRA_KAFS='$(LIB_loadquery)' 44296 else 44297 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5 44298echo "$as_me: not using dynloaded AFS library" >&6;} 44299 AIX_EXTRA_KAFS= 44300 enable_dynamic_afs=no 44301 fi 44302 else 44303 AIX_EXTRA_KAFS= 44304 fi 44305fi 44306 44307 if test "$enable_dynamic_afs" != no; then 44308 AIX_DYNAMIC_AFS_TRUE= 44309 AIX_DYNAMIC_AFS_FALSE='#' 44310else 44311 AIX_DYNAMIC_AFS_TRUE='#' 44312 AIX_DYNAMIC_AFS_FALSE= 44313fi 44314 44315 44316 44317 44318 44319 44320irix=no 44321case "$host" in 44322*-*-irix4*) 44323 44324cat >>confdefs.h <<\_ACEOF 44325#define IRIX4 1 44326_ACEOF 44327 44328 irix=yes 44329 ;; 44330*-*-irix*) 44331 irix=yes 44332 ;; 44333esac 44334 if test "$irix" != no; then 44335 IRIX_TRUE= 44336 IRIX_FALSE='#' 44337else 44338 IRIX_TRUE='#' 44339 IRIX_FALSE= 44340fi 44341 44342 44343 44344 44345 44346sunos=no 44347case "$host" in 44348*-*-sunos4*) 44349 sunos=40 44350 ;; 44351*-*-solaris2.7) 44352 sunos=57 44353 ;; 44354*-*-solaris2.[89] | *-*-solaris2.10) 44355 sunos=58 44356 ;; 44357*-*-solaris2*) 44358 sunos=50 44359 ;; 44360esac 44361if test "$sunos" != no; then 44362 44363cat >>confdefs.h <<_ACEOF 44364#define SunOS $sunos 44365_ACEOF 44366 44367fi 44368 44369 44370{ echo "$as_me:$LINENO: checking for X" >&5 44371echo $ECHO_N "checking for X... $ECHO_C" >&6; } 44372 44373 44374# Check whether --with-x was given. 44375if test "${with_x+set}" = set; then 44376 withval=$with_x; 44377fi 44378 44379# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 44380if test "x$with_x" = xno; then 44381 # The user explicitly disabled X. 44382 have_x=disabled 44383else 44384 case $x_includes,$x_libraries in #( 44385 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 44386echo "$as_me: error: Cannot use X directory names containing '" >&2;} 44387 { (exit 1); exit 1; }; };; #( 44388 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 44389 echo $ECHO_N "(cached) $ECHO_C" >&6 44390else 44391 # One or both of the vars are not set, and there is no cached value. 44392ac_x_includes=no ac_x_libraries=no 44393rm -f -r conftest.dir 44394if mkdir conftest.dir; then 44395 cd conftest.dir 44396 cat >Imakefile <<'_ACEOF' 44397incroot: 44398 @echo incroot='${INCROOT}' 44399usrlibdir: 44400 @echo usrlibdir='${USRLIBDIR}' 44401libdir: 44402 @echo libdir='${LIBDIR}' 44403_ACEOF 44404 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 44405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 44406 for ac_var in incroot usrlibdir libdir; do 44407 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 44408 done 44409 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 44410 for ac_extension in a so sl; do 44411 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 44412 test -f "$ac_im_libdir/libX11.$ac_extension"; then 44413 ac_im_usrlibdir=$ac_im_libdir; break 44414 fi 44415 done 44416 # Screen out bogus values from the imake configuration. They are 44417 # bogus both because they are the default anyway, and because 44418 # using them would break gcc on systems where it needs fixed includes. 44419 case $ac_im_incroot in 44420 /usr/include) ac_x_includes= ;; 44421 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 44422 esac 44423 case $ac_im_usrlibdir in 44424 /usr/lib | /lib) ;; 44425 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 44426 esac 44427 fi 44428 cd .. 44429 rm -f -r conftest.dir 44430fi 44431 44432# Standard set of common directories for X headers. 44433# Check X11 before X11Rn because it is often a symlink to the current release. 44434ac_x_header_dirs=' 44435/usr/X11/include 44436/usr/X11R6/include 44437/usr/X11R5/include 44438/usr/X11R4/include 44439 44440/usr/include/X11 44441/usr/include/X11R6 44442/usr/include/X11R5 44443/usr/include/X11R4 44444 44445/usr/local/X11/include 44446/usr/local/X11R6/include 44447/usr/local/X11R5/include 44448/usr/local/X11R4/include 44449 44450/usr/local/include/X11 44451/usr/local/include/X11R6 44452/usr/local/include/X11R5 44453/usr/local/include/X11R4 44454 44455/usr/X386/include 44456/usr/x386/include 44457/usr/XFree86/include/X11 44458 44459/usr/include 44460/usr/local/include 44461/usr/unsupported/include 44462/usr/athena/include 44463/usr/local/x11r5/include 44464/usr/lpp/Xamples/include 44465 44466/usr/openwin/include 44467/usr/openwin/share/include' 44468 44469if test "$ac_x_includes" = no; then 44470 # Guess where to find include files, by looking for Xlib.h. 44471 # First, try using that file with no special directory specified. 44472 cat >conftest.$ac_ext <<_ACEOF 44473/* confdefs.h. */ 44474_ACEOF 44475cat confdefs.h >>conftest.$ac_ext 44476cat >>conftest.$ac_ext <<_ACEOF 44477/* end confdefs.h. */ 44478#include <X11/Xlib.h> 44479_ACEOF 44480if { (ac_try="$ac_cpp conftest.$ac_ext" 44481case "(($ac_try" in 44482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44483 *) ac_try_echo=$ac_try;; 44484esac 44485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 44487 ac_status=$? 44488 grep -v '^ *+' conftest.er1 >conftest.err 44489 rm -f conftest.er1 44490 cat conftest.err >&5 44491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44492 (exit $ac_status); } >/dev/null && { 44493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 44494 test ! -s conftest.err 44495 }; then 44496 # We can compile using X headers with no special include directory. 44497ac_x_includes= 44498else 44499 echo "$as_me: failed program was:" >&5 44500sed 's/^/| /' conftest.$ac_ext >&5 44501 44502 for ac_dir in $ac_x_header_dirs; do 44503 if test -r "$ac_dir/X11/Xlib.h"; then 44504 ac_x_includes=$ac_dir 44505 break 44506 fi 44507done 44508fi 44509 44510rm -f conftest.err conftest.$ac_ext 44511fi # $ac_x_includes = no 44512 44513if test "$ac_x_libraries" = no; then 44514 # Check for the libraries. 44515 # See if we find them without any special options. 44516 # Don't add to $LIBS permanently. 44517 ac_save_LIBS=$LIBS 44518 LIBS="-lX11 $LIBS" 44519 cat >conftest.$ac_ext <<_ACEOF 44520/* confdefs.h. */ 44521_ACEOF 44522cat confdefs.h >>conftest.$ac_ext 44523cat >>conftest.$ac_ext <<_ACEOF 44524/* end confdefs.h. */ 44525#include <X11/Xlib.h> 44526int 44527main () 44528{ 44529XrmInitialize () 44530 ; 44531 return 0; 44532} 44533_ACEOF 44534rm -f conftest.$ac_objext conftest$ac_exeext 44535if { (ac_try="$ac_link" 44536case "(($ac_try" in 44537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44538 *) ac_try_echo=$ac_try;; 44539esac 44540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44541 (eval "$ac_link") 2>conftest.er1 44542 ac_status=$? 44543 grep -v '^ *+' conftest.er1 >conftest.err 44544 rm -f conftest.er1 44545 cat conftest.err >&5 44546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44547 (exit $ac_status); } && { 44548 test -z "$ac_c_werror_flag" || 44549 test ! -s conftest.err 44550 } && test -s conftest$ac_exeext && 44551 $as_test_x conftest$ac_exeext; then 44552 LIBS=$ac_save_LIBS 44553# We can link X programs with no special library path. 44554ac_x_libraries= 44555else 44556 echo "$as_me: failed program was:" >&5 44557sed 's/^/| /' conftest.$ac_ext >&5 44558 44559 LIBS=$ac_save_LIBS 44560for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 44561do 44562 # Don't even attempt the hair of trying to link an X program! 44563 for ac_extension in a so sl; do 44564 if test -r "$ac_dir/libX11.$ac_extension"; then 44565 ac_x_libraries=$ac_dir 44566 break 2 44567 fi 44568 done 44569done 44570fi 44571 44572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44573 conftest$ac_exeext conftest.$ac_ext 44574fi # $ac_x_libraries = no 44575 44576case $ac_x_includes,$ac_x_libraries in #( 44577 no,* | *,no | *\'*) 44578 # Didn't find X, or a directory has "'" in its name. 44579 ac_cv_have_x="have_x=no";; #( 44580 *) 44581 # Record where we found X for the cache. 44582 ac_cv_have_x="have_x=yes\ 44583 ac_x_includes='$ac_x_includes'\ 44584 ac_x_libraries='$ac_x_libraries'" 44585esac 44586fi 44587;; #( 44588 *) have_x=yes;; 44589 esac 44590 eval "$ac_cv_have_x" 44591fi # $with_x != no 44592 44593if test "$have_x" != yes; then 44594 { echo "$as_me:$LINENO: result: $have_x" >&5 44595echo "${ECHO_T}$have_x" >&6; } 44596 no_x=yes 44597else 44598 # If each of the values was on the command line, it overrides each guess. 44599 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 44600 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 44601 # Update the cache value to reflect the command line values. 44602 ac_cv_have_x="have_x=yes\ 44603 ac_x_includes='$x_includes'\ 44604 ac_x_libraries='$x_libraries'" 44605 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 44606echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 44607fi 44608 44609 44610if test "$no_x" = yes; then 44611 # Not all programs may use this symbol, but it does not hurt to define it. 44612 44613cat >>confdefs.h <<\_ACEOF 44614#define X_DISPLAY_MISSING 1 44615_ACEOF 44616 44617 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 44618else 44619 if test -n "$x_includes"; then 44620 X_CFLAGS="$X_CFLAGS -I$x_includes" 44621 fi 44622 44623 # It would also be nice to do this for all -L options, not just this one. 44624 if test -n "$x_libraries"; then 44625 X_LIBS="$X_LIBS -L$x_libraries" 44626 # For Solaris; some versions of Sun CC require a space after -R and 44627 # others require no space. Words are not sufficient . . . . 44628 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 44629echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 44630 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 44631 ac_xsave_c_werror_flag=$ac_c_werror_flag 44632 ac_c_werror_flag=yes 44633 cat >conftest.$ac_ext <<_ACEOF 44634/* confdefs.h. */ 44635_ACEOF 44636cat confdefs.h >>conftest.$ac_ext 44637cat >>conftest.$ac_ext <<_ACEOF 44638/* end confdefs.h. */ 44639 44640int 44641main () 44642{ 44643 44644 ; 44645 return 0; 44646} 44647_ACEOF 44648rm -f conftest.$ac_objext conftest$ac_exeext 44649if { (ac_try="$ac_link" 44650case "(($ac_try" in 44651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44652 *) ac_try_echo=$ac_try;; 44653esac 44654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44655 (eval "$ac_link") 2>conftest.er1 44656 ac_status=$? 44657 grep -v '^ *+' conftest.er1 >conftest.err 44658 rm -f conftest.er1 44659 cat conftest.err >&5 44660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44661 (exit $ac_status); } && { 44662 test -z "$ac_c_werror_flag" || 44663 test ! -s conftest.err 44664 } && test -s conftest$ac_exeext && 44665 $as_test_x conftest$ac_exeext; then 44666 { echo "$as_me:$LINENO: result: no" >&5 44667echo "${ECHO_T}no" >&6; } 44668 X_LIBS="$X_LIBS -R$x_libraries" 44669else 44670 echo "$as_me: failed program was:" >&5 44671sed 's/^/| /' conftest.$ac_ext >&5 44672 44673 LIBS="$ac_xsave_LIBS -R $x_libraries" 44674 cat >conftest.$ac_ext <<_ACEOF 44675/* confdefs.h. */ 44676_ACEOF 44677cat confdefs.h >>conftest.$ac_ext 44678cat >>conftest.$ac_ext <<_ACEOF 44679/* end confdefs.h. */ 44680 44681int 44682main () 44683{ 44684 44685 ; 44686 return 0; 44687} 44688_ACEOF 44689rm -f conftest.$ac_objext conftest$ac_exeext 44690if { (ac_try="$ac_link" 44691case "(($ac_try" in 44692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44693 *) ac_try_echo=$ac_try;; 44694esac 44695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44696 (eval "$ac_link") 2>conftest.er1 44697 ac_status=$? 44698 grep -v '^ *+' conftest.er1 >conftest.err 44699 rm -f conftest.er1 44700 cat conftest.err >&5 44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44702 (exit $ac_status); } && { 44703 test -z "$ac_c_werror_flag" || 44704 test ! -s conftest.err 44705 } && test -s conftest$ac_exeext && 44706 $as_test_x conftest$ac_exeext; then 44707 { echo "$as_me:$LINENO: result: yes" >&5 44708echo "${ECHO_T}yes" >&6; } 44709 X_LIBS="$X_LIBS -R $x_libraries" 44710else 44711 echo "$as_me: failed program was:" >&5 44712sed 's/^/| /' conftest.$ac_ext >&5 44713 44714 { echo "$as_me:$LINENO: result: neither works" >&5 44715echo "${ECHO_T}neither works" >&6; } 44716fi 44717 44718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44719 conftest$ac_exeext conftest.$ac_ext 44720fi 44721 44722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44723 conftest$ac_exeext conftest.$ac_ext 44724 ac_c_werror_flag=$ac_xsave_c_werror_flag 44725 LIBS=$ac_xsave_LIBS 44726 fi 44727 44728 # Check for system-dependent libraries X programs must link with. 44729 # Do this before checking for the system-independent R6 libraries 44730 # (-lICE), since we may need -lsocket or whatever for X linking. 44731 44732 if test "$ISC" = yes; then 44733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 44734 else 44735 # Martyn Johnson says this is needed for Ultrix, if the X 44736 # libraries were built with DECnet support. And Karl Berry says 44737 # the Alpha needs dnet_stub (dnet does not exist). 44738 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 44739 cat >conftest.$ac_ext <<_ACEOF 44740/* confdefs.h. */ 44741_ACEOF 44742cat confdefs.h >>conftest.$ac_ext 44743cat >>conftest.$ac_ext <<_ACEOF 44744/* end confdefs.h. */ 44745 44746/* Override any GCC internal prototype to avoid an error. 44747 Use char because int might match the return type of a GCC 44748 builtin and then its argument prototype would still apply. */ 44749#ifdef __cplusplus 44750extern "C" 44751#endif 44752char XOpenDisplay (); 44753int 44754main () 44755{ 44756return XOpenDisplay (); 44757 ; 44758 return 0; 44759} 44760_ACEOF 44761rm -f conftest.$ac_objext conftest$ac_exeext 44762if { (ac_try="$ac_link" 44763case "(($ac_try" in 44764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44765 *) ac_try_echo=$ac_try;; 44766esac 44767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44768 (eval "$ac_link") 2>conftest.er1 44769 ac_status=$? 44770 grep -v '^ *+' conftest.er1 >conftest.err 44771 rm -f conftest.er1 44772 cat conftest.err >&5 44773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44774 (exit $ac_status); } && { 44775 test -z "$ac_c_werror_flag" || 44776 test ! -s conftest.err 44777 } && test -s conftest$ac_exeext && 44778 $as_test_x conftest$ac_exeext; then 44779 : 44780else 44781 echo "$as_me: failed program was:" >&5 44782sed 's/^/| /' conftest.$ac_ext >&5 44783 44784 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 44785echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 44786if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 44787 echo $ECHO_N "(cached) $ECHO_C" >&6 44788else 44789 ac_check_lib_save_LIBS=$LIBS 44790LIBS="-ldnet $LIBS" 44791cat >conftest.$ac_ext <<_ACEOF 44792/* confdefs.h. */ 44793_ACEOF 44794cat confdefs.h >>conftest.$ac_ext 44795cat >>conftest.$ac_ext <<_ACEOF 44796/* end confdefs.h. */ 44797 44798/* Override any GCC internal prototype to avoid an error. 44799 Use char because int might match the return type of a GCC 44800 builtin and then its argument prototype would still apply. */ 44801#ifdef __cplusplus 44802extern "C" 44803#endif 44804char dnet_ntoa (); 44805int 44806main () 44807{ 44808return dnet_ntoa (); 44809 ; 44810 return 0; 44811} 44812_ACEOF 44813rm -f conftest.$ac_objext conftest$ac_exeext 44814if { (ac_try="$ac_link" 44815case "(($ac_try" in 44816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44817 *) ac_try_echo=$ac_try;; 44818esac 44819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44820 (eval "$ac_link") 2>conftest.er1 44821 ac_status=$? 44822 grep -v '^ *+' conftest.er1 >conftest.err 44823 rm -f conftest.er1 44824 cat conftest.err >&5 44825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44826 (exit $ac_status); } && { 44827 test -z "$ac_c_werror_flag" || 44828 test ! -s conftest.err 44829 } && test -s conftest$ac_exeext && 44830 $as_test_x conftest$ac_exeext; then 44831 ac_cv_lib_dnet_dnet_ntoa=yes 44832else 44833 echo "$as_me: failed program was:" >&5 44834sed 's/^/| /' conftest.$ac_ext >&5 44835 44836 ac_cv_lib_dnet_dnet_ntoa=no 44837fi 44838 44839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44840 conftest$ac_exeext conftest.$ac_ext 44841LIBS=$ac_check_lib_save_LIBS 44842fi 44843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 44844echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 44845if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 44846 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 44847fi 44848 44849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 44850 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 44851echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 44852if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 44853 echo $ECHO_N "(cached) $ECHO_C" >&6 44854else 44855 ac_check_lib_save_LIBS=$LIBS 44856LIBS="-ldnet_stub $LIBS" 44857cat >conftest.$ac_ext <<_ACEOF 44858/* confdefs.h. */ 44859_ACEOF 44860cat confdefs.h >>conftest.$ac_ext 44861cat >>conftest.$ac_ext <<_ACEOF 44862/* end confdefs.h. */ 44863 44864/* Override any GCC internal prototype to avoid an error. 44865 Use char because int might match the return type of a GCC 44866 builtin and then its argument prototype would still apply. */ 44867#ifdef __cplusplus 44868extern "C" 44869#endif 44870char dnet_ntoa (); 44871int 44872main () 44873{ 44874return dnet_ntoa (); 44875 ; 44876 return 0; 44877} 44878_ACEOF 44879rm -f conftest.$ac_objext conftest$ac_exeext 44880if { (ac_try="$ac_link" 44881case "(($ac_try" in 44882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44883 *) ac_try_echo=$ac_try;; 44884esac 44885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44886 (eval "$ac_link") 2>conftest.er1 44887 ac_status=$? 44888 grep -v '^ *+' conftest.er1 >conftest.err 44889 rm -f conftest.er1 44890 cat conftest.err >&5 44891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44892 (exit $ac_status); } && { 44893 test -z "$ac_c_werror_flag" || 44894 test ! -s conftest.err 44895 } && test -s conftest$ac_exeext && 44896 $as_test_x conftest$ac_exeext; then 44897 ac_cv_lib_dnet_stub_dnet_ntoa=yes 44898else 44899 echo "$as_me: failed program was:" >&5 44900sed 's/^/| /' conftest.$ac_ext >&5 44901 44902 ac_cv_lib_dnet_stub_dnet_ntoa=no 44903fi 44904 44905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44906 conftest$ac_exeext conftest.$ac_ext 44907LIBS=$ac_check_lib_save_LIBS 44908fi 44909{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 44910echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 44911if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 44912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 44913fi 44914 44915 fi 44916fi 44917 44918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 44919 conftest$ac_exeext conftest.$ac_ext 44920 LIBS="$ac_xsave_LIBS" 44921 44922 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 44923 # to get the SysV transport functions. 44924 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 44925 # needs -lnsl. 44926 # The nsl library prevents programs from opening the X display 44927 # on Irix 5.2, according to T.E. Dickey. 44928 # The functions gethostbyname, getservbyname, and inet_addr are 44929 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 44930 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 44931echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 44932if test "${ac_cv_func_gethostbyname+set}" = set; then 44933 echo $ECHO_N "(cached) $ECHO_C" >&6 44934else 44935 cat >conftest.$ac_ext <<_ACEOF 44936/* confdefs.h. */ 44937_ACEOF 44938cat confdefs.h >>conftest.$ac_ext 44939cat >>conftest.$ac_ext <<_ACEOF 44940/* end confdefs.h. */ 44941/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 44942 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 44943#define gethostbyname innocuous_gethostbyname 44944 44945/* System header to define __stub macros and hopefully few prototypes, 44946 which can conflict with char gethostbyname (); below. 44947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 44948 <limits.h> exists even on freestanding compilers. */ 44949 44950#ifdef __STDC__ 44951# include <limits.h> 44952#else 44953# include <assert.h> 44954#endif 44955 44956#undef gethostbyname 44957 44958/* Override any GCC internal prototype to avoid an error. 44959 Use char because int might match the return type of a GCC 44960 builtin and then its argument prototype would still apply. */ 44961#ifdef __cplusplus 44962extern "C" 44963#endif 44964char gethostbyname (); 44965/* The GNU C library defines this for functions which it implements 44966 to always fail with ENOSYS. Some functions are actually named 44967 something starting with __ and the normal name is an alias. */ 44968#if defined __stub_gethostbyname || defined __stub___gethostbyname 44969choke me 44970#endif 44971 44972int 44973main () 44974{ 44975return gethostbyname (); 44976 ; 44977 return 0; 44978} 44979_ACEOF 44980rm -f conftest.$ac_objext conftest$ac_exeext 44981if { (ac_try="$ac_link" 44982case "(($ac_try" in 44983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 44984 *) ac_try_echo=$ac_try;; 44985esac 44986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 44987 (eval "$ac_link") 2>conftest.er1 44988 ac_status=$? 44989 grep -v '^ *+' conftest.er1 >conftest.err 44990 rm -f conftest.er1 44991 cat conftest.err >&5 44992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 44993 (exit $ac_status); } && { 44994 test -z "$ac_c_werror_flag" || 44995 test ! -s conftest.err 44996 } && test -s conftest$ac_exeext && 44997 $as_test_x conftest$ac_exeext; then 44998 ac_cv_func_gethostbyname=yes 44999else 45000 echo "$as_me: failed program was:" >&5 45001sed 's/^/| /' conftest.$ac_ext >&5 45002 45003 ac_cv_func_gethostbyname=no 45004fi 45005 45006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45007 conftest$ac_exeext conftest.$ac_ext 45008fi 45009{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 45010echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 45011 45012 if test $ac_cv_func_gethostbyname = no; then 45013 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 45014echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 45015if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 45016 echo $ECHO_N "(cached) $ECHO_C" >&6 45017else 45018 ac_check_lib_save_LIBS=$LIBS 45019LIBS="-lnsl $LIBS" 45020cat >conftest.$ac_ext <<_ACEOF 45021/* confdefs.h. */ 45022_ACEOF 45023cat confdefs.h >>conftest.$ac_ext 45024cat >>conftest.$ac_ext <<_ACEOF 45025/* end confdefs.h. */ 45026 45027/* Override any GCC internal prototype to avoid an error. 45028 Use char because int might match the return type of a GCC 45029 builtin and then its argument prototype would still apply. */ 45030#ifdef __cplusplus 45031extern "C" 45032#endif 45033char gethostbyname (); 45034int 45035main () 45036{ 45037return gethostbyname (); 45038 ; 45039 return 0; 45040} 45041_ACEOF 45042rm -f conftest.$ac_objext conftest$ac_exeext 45043if { (ac_try="$ac_link" 45044case "(($ac_try" in 45045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45046 *) ac_try_echo=$ac_try;; 45047esac 45048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45049 (eval "$ac_link") 2>conftest.er1 45050 ac_status=$? 45051 grep -v '^ *+' conftest.er1 >conftest.err 45052 rm -f conftest.er1 45053 cat conftest.err >&5 45054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45055 (exit $ac_status); } && { 45056 test -z "$ac_c_werror_flag" || 45057 test ! -s conftest.err 45058 } && test -s conftest$ac_exeext && 45059 $as_test_x conftest$ac_exeext; then 45060 ac_cv_lib_nsl_gethostbyname=yes 45061else 45062 echo "$as_me: failed program was:" >&5 45063sed 's/^/| /' conftest.$ac_ext >&5 45064 45065 ac_cv_lib_nsl_gethostbyname=no 45066fi 45067 45068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45069 conftest$ac_exeext conftest.$ac_ext 45070LIBS=$ac_check_lib_save_LIBS 45071fi 45072{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 45073echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 45074if test $ac_cv_lib_nsl_gethostbyname = yes; then 45075 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 45076fi 45077 45078 if test $ac_cv_lib_nsl_gethostbyname = no; then 45079 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 45080echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 45081if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 45082 echo $ECHO_N "(cached) $ECHO_C" >&6 45083else 45084 ac_check_lib_save_LIBS=$LIBS 45085LIBS="-lbsd $LIBS" 45086cat >conftest.$ac_ext <<_ACEOF 45087/* confdefs.h. */ 45088_ACEOF 45089cat confdefs.h >>conftest.$ac_ext 45090cat >>conftest.$ac_ext <<_ACEOF 45091/* end confdefs.h. */ 45092 45093/* Override any GCC internal prototype to avoid an error. 45094 Use char because int might match the return type of a GCC 45095 builtin and then its argument prototype would still apply. */ 45096#ifdef __cplusplus 45097extern "C" 45098#endif 45099char gethostbyname (); 45100int 45101main () 45102{ 45103return gethostbyname (); 45104 ; 45105 return 0; 45106} 45107_ACEOF 45108rm -f conftest.$ac_objext conftest$ac_exeext 45109if { (ac_try="$ac_link" 45110case "(($ac_try" in 45111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45112 *) ac_try_echo=$ac_try;; 45113esac 45114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45115 (eval "$ac_link") 2>conftest.er1 45116 ac_status=$? 45117 grep -v '^ *+' conftest.er1 >conftest.err 45118 rm -f conftest.er1 45119 cat conftest.err >&5 45120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45121 (exit $ac_status); } && { 45122 test -z "$ac_c_werror_flag" || 45123 test ! -s conftest.err 45124 } && test -s conftest$ac_exeext && 45125 $as_test_x conftest$ac_exeext; then 45126 ac_cv_lib_bsd_gethostbyname=yes 45127else 45128 echo "$as_me: failed program was:" >&5 45129sed 's/^/| /' conftest.$ac_ext >&5 45130 45131 ac_cv_lib_bsd_gethostbyname=no 45132fi 45133 45134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45135 conftest$ac_exeext conftest.$ac_ext 45136LIBS=$ac_check_lib_save_LIBS 45137fi 45138{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 45139echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 45140if test $ac_cv_lib_bsd_gethostbyname = yes; then 45141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 45142fi 45143 45144 fi 45145 fi 45146 45147 # lieder@skyler.mavd.honeywell.com says without -lsocket, 45148 # socket/setsockopt and other routines are undefined under SCO ODT 45149 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 45150 # on later versions), says Simon Leinen: it contains gethostby* 45151 # variants that don't use the name server (or something). -lsocket 45152 # must be given before -lnsl if both are needed. We assume that 45153 # if connect needs -lnsl, so does gethostbyname. 45154 { echo "$as_me:$LINENO: checking for connect" >&5 45155echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 45156if test "${ac_cv_func_connect+set}" = set; then 45157 echo $ECHO_N "(cached) $ECHO_C" >&6 45158else 45159 cat >conftest.$ac_ext <<_ACEOF 45160/* confdefs.h. */ 45161_ACEOF 45162cat confdefs.h >>conftest.$ac_ext 45163cat >>conftest.$ac_ext <<_ACEOF 45164/* end confdefs.h. */ 45165/* Define connect to an innocuous variant, in case <limits.h> declares connect. 45166 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45167#define connect innocuous_connect 45168 45169/* System header to define __stub macros and hopefully few prototypes, 45170 which can conflict with char connect (); below. 45171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45172 <limits.h> exists even on freestanding compilers. */ 45173 45174#ifdef __STDC__ 45175# include <limits.h> 45176#else 45177# include <assert.h> 45178#endif 45179 45180#undef connect 45181 45182/* Override any GCC internal prototype to avoid an error. 45183 Use char because int might match the return type of a GCC 45184 builtin and then its argument prototype would still apply. */ 45185#ifdef __cplusplus 45186extern "C" 45187#endif 45188char connect (); 45189/* The GNU C library defines this for functions which it implements 45190 to always fail with ENOSYS. Some functions are actually named 45191 something starting with __ and the normal name is an alias. */ 45192#if defined __stub_connect || defined __stub___connect 45193choke me 45194#endif 45195 45196int 45197main () 45198{ 45199return connect (); 45200 ; 45201 return 0; 45202} 45203_ACEOF 45204rm -f conftest.$ac_objext conftest$ac_exeext 45205if { (ac_try="$ac_link" 45206case "(($ac_try" in 45207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45208 *) ac_try_echo=$ac_try;; 45209esac 45210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45211 (eval "$ac_link") 2>conftest.er1 45212 ac_status=$? 45213 grep -v '^ *+' conftest.er1 >conftest.err 45214 rm -f conftest.er1 45215 cat conftest.err >&5 45216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45217 (exit $ac_status); } && { 45218 test -z "$ac_c_werror_flag" || 45219 test ! -s conftest.err 45220 } && test -s conftest$ac_exeext && 45221 $as_test_x conftest$ac_exeext; then 45222 ac_cv_func_connect=yes 45223else 45224 echo "$as_me: failed program was:" >&5 45225sed 's/^/| /' conftest.$ac_ext >&5 45226 45227 ac_cv_func_connect=no 45228fi 45229 45230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45231 conftest$ac_exeext conftest.$ac_ext 45232fi 45233{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 45234echo "${ECHO_T}$ac_cv_func_connect" >&6; } 45235 45236 if test $ac_cv_func_connect = no; then 45237 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 45238echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 45239if test "${ac_cv_lib_socket_connect+set}" = set; then 45240 echo $ECHO_N "(cached) $ECHO_C" >&6 45241else 45242 ac_check_lib_save_LIBS=$LIBS 45243LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 45244cat >conftest.$ac_ext <<_ACEOF 45245/* confdefs.h. */ 45246_ACEOF 45247cat confdefs.h >>conftest.$ac_ext 45248cat >>conftest.$ac_ext <<_ACEOF 45249/* end confdefs.h. */ 45250 45251/* Override any GCC internal prototype to avoid an error. 45252 Use char because int might match the return type of a GCC 45253 builtin and then its argument prototype would still apply. */ 45254#ifdef __cplusplus 45255extern "C" 45256#endif 45257char connect (); 45258int 45259main () 45260{ 45261return connect (); 45262 ; 45263 return 0; 45264} 45265_ACEOF 45266rm -f conftest.$ac_objext conftest$ac_exeext 45267if { (ac_try="$ac_link" 45268case "(($ac_try" in 45269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45270 *) ac_try_echo=$ac_try;; 45271esac 45272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45273 (eval "$ac_link") 2>conftest.er1 45274 ac_status=$? 45275 grep -v '^ *+' conftest.er1 >conftest.err 45276 rm -f conftest.er1 45277 cat conftest.err >&5 45278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45279 (exit $ac_status); } && { 45280 test -z "$ac_c_werror_flag" || 45281 test ! -s conftest.err 45282 } && test -s conftest$ac_exeext && 45283 $as_test_x conftest$ac_exeext; then 45284 ac_cv_lib_socket_connect=yes 45285else 45286 echo "$as_me: failed program was:" >&5 45287sed 's/^/| /' conftest.$ac_ext >&5 45288 45289 ac_cv_lib_socket_connect=no 45290fi 45291 45292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45293 conftest$ac_exeext conftest.$ac_ext 45294LIBS=$ac_check_lib_save_LIBS 45295fi 45296{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 45297echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 45298if test $ac_cv_lib_socket_connect = yes; then 45299 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 45300fi 45301 45302 fi 45303 45304 # Guillermo Gomez says -lposix is necessary on A/UX. 45305 { echo "$as_me:$LINENO: checking for remove" >&5 45306echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 45307if test "${ac_cv_func_remove+set}" = set; then 45308 echo $ECHO_N "(cached) $ECHO_C" >&6 45309else 45310 cat >conftest.$ac_ext <<_ACEOF 45311/* confdefs.h. */ 45312_ACEOF 45313cat confdefs.h >>conftest.$ac_ext 45314cat >>conftest.$ac_ext <<_ACEOF 45315/* end confdefs.h. */ 45316/* Define remove to an innocuous variant, in case <limits.h> declares remove. 45317 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45318#define remove innocuous_remove 45319 45320/* System header to define __stub macros and hopefully few prototypes, 45321 which can conflict with char remove (); below. 45322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45323 <limits.h> exists even on freestanding compilers. */ 45324 45325#ifdef __STDC__ 45326# include <limits.h> 45327#else 45328# include <assert.h> 45329#endif 45330 45331#undef remove 45332 45333/* Override any GCC internal prototype to avoid an error. 45334 Use char because int might match the return type of a GCC 45335 builtin and then its argument prototype would still apply. */ 45336#ifdef __cplusplus 45337extern "C" 45338#endif 45339char remove (); 45340/* The GNU C library defines this for functions which it implements 45341 to always fail with ENOSYS. Some functions are actually named 45342 something starting with __ and the normal name is an alias. */ 45343#if defined __stub_remove || defined __stub___remove 45344choke me 45345#endif 45346 45347int 45348main () 45349{ 45350return remove (); 45351 ; 45352 return 0; 45353} 45354_ACEOF 45355rm -f conftest.$ac_objext conftest$ac_exeext 45356if { (ac_try="$ac_link" 45357case "(($ac_try" in 45358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45359 *) ac_try_echo=$ac_try;; 45360esac 45361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45362 (eval "$ac_link") 2>conftest.er1 45363 ac_status=$? 45364 grep -v '^ *+' conftest.er1 >conftest.err 45365 rm -f conftest.er1 45366 cat conftest.err >&5 45367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45368 (exit $ac_status); } && { 45369 test -z "$ac_c_werror_flag" || 45370 test ! -s conftest.err 45371 } && test -s conftest$ac_exeext && 45372 $as_test_x conftest$ac_exeext; then 45373 ac_cv_func_remove=yes 45374else 45375 echo "$as_me: failed program was:" >&5 45376sed 's/^/| /' conftest.$ac_ext >&5 45377 45378 ac_cv_func_remove=no 45379fi 45380 45381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45382 conftest$ac_exeext conftest.$ac_ext 45383fi 45384{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 45385echo "${ECHO_T}$ac_cv_func_remove" >&6; } 45386 45387 if test $ac_cv_func_remove = no; then 45388 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 45389echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 45390if test "${ac_cv_lib_posix_remove+set}" = set; then 45391 echo $ECHO_N "(cached) $ECHO_C" >&6 45392else 45393 ac_check_lib_save_LIBS=$LIBS 45394LIBS="-lposix $LIBS" 45395cat >conftest.$ac_ext <<_ACEOF 45396/* confdefs.h. */ 45397_ACEOF 45398cat confdefs.h >>conftest.$ac_ext 45399cat >>conftest.$ac_ext <<_ACEOF 45400/* end confdefs.h. */ 45401 45402/* Override any GCC internal prototype to avoid an error. 45403 Use char because int might match the return type of a GCC 45404 builtin and then its argument prototype would still apply. */ 45405#ifdef __cplusplus 45406extern "C" 45407#endif 45408char remove (); 45409int 45410main () 45411{ 45412return remove (); 45413 ; 45414 return 0; 45415} 45416_ACEOF 45417rm -f conftest.$ac_objext conftest$ac_exeext 45418if { (ac_try="$ac_link" 45419case "(($ac_try" in 45420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45421 *) ac_try_echo=$ac_try;; 45422esac 45423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45424 (eval "$ac_link") 2>conftest.er1 45425 ac_status=$? 45426 grep -v '^ *+' conftest.er1 >conftest.err 45427 rm -f conftest.er1 45428 cat conftest.err >&5 45429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45430 (exit $ac_status); } && { 45431 test -z "$ac_c_werror_flag" || 45432 test ! -s conftest.err 45433 } && test -s conftest$ac_exeext && 45434 $as_test_x conftest$ac_exeext; then 45435 ac_cv_lib_posix_remove=yes 45436else 45437 echo "$as_me: failed program was:" >&5 45438sed 's/^/| /' conftest.$ac_ext >&5 45439 45440 ac_cv_lib_posix_remove=no 45441fi 45442 45443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45444 conftest$ac_exeext conftest.$ac_ext 45445LIBS=$ac_check_lib_save_LIBS 45446fi 45447{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 45448echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 45449if test $ac_cv_lib_posix_remove = yes; then 45450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 45451fi 45452 45453 fi 45454 45455 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 45456 { echo "$as_me:$LINENO: checking for shmat" >&5 45457echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 45458if test "${ac_cv_func_shmat+set}" = set; then 45459 echo $ECHO_N "(cached) $ECHO_C" >&6 45460else 45461 cat >conftest.$ac_ext <<_ACEOF 45462/* confdefs.h. */ 45463_ACEOF 45464cat confdefs.h >>conftest.$ac_ext 45465cat >>conftest.$ac_ext <<_ACEOF 45466/* end confdefs.h. */ 45467/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 45468 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45469#define shmat innocuous_shmat 45470 45471/* System header to define __stub macros and hopefully few prototypes, 45472 which can conflict with char shmat (); below. 45473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45474 <limits.h> exists even on freestanding compilers. */ 45475 45476#ifdef __STDC__ 45477# include <limits.h> 45478#else 45479# include <assert.h> 45480#endif 45481 45482#undef shmat 45483 45484/* Override any GCC internal prototype to avoid an error. 45485 Use char because int might match the return type of a GCC 45486 builtin and then its argument prototype would still apply. */ 45487#ifdef __cplusplus 45488extern "C" 45489#endif 45490char shmat (); 45491/* The GNU C library defines this for functions which it implements 45492 to always fail with ENOSYS. Some functions are actually named 45493 something starting with __ and the normal name is an alias. */ 45494#if defined __stub_shmat || defined __stub___shmat 45495choke me 45496#endif 45497 45498int 45499main () 45500{ 45501return shmat (); 45502 ; 45503 return 0; 45504} 45505_ACEOF 45506rm -f conftest.$ac_objext conftest$ac_exeext 45507if { (ac_try="$ac_link" 45508case "(($ac_try" in 45509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45510 *) ac_try_echo=$ac_try;; 45511esac 45512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45513 (eval "$ac_link") 2>conftest.er1 45514 ac_status=$? 45515 grep -v '^ *+' conftest.er1 >conftest.err 45516 rm -f conftest.er1 45517 cat conftest.err >&5 45518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45519 (exit $ac_status); } && { 45520 test -z "$ac_c_werror_flag" || 45521 test ! -s conftest.err 45522 } && test -s conftest$ac_exeext && 45523 $as_test_x conftest$ac_exeext; then 45524 ac_cv_func_shmat=yes 45525else 45526 echo "$as_me: failed program was:" >&5 45527sed 's/^/| /' conftest.$ac_ext >&5 45528 45529 ac_cv_func_shmat=no 45530fi 45531 45532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45533 conftest$ac_exeext conftest.$ac_ext 45534fi 45535{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 45536echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 45537 45538 if test $ac_cv_func_shmat = no; then 45539 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 45540echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 45541if test "${ac_cv_lib_ipc_shmat+set}" = set; then 45542 echo $ECHO_N "(cached) $ECHO_C" >&6 45543else 45544 ac_check_lib_save_LIBS=$LIBS 45545LIBS="-lipc $LIBS" 45546cat >conftest.$ac_ext <<_ACEOF 45547/* confdefs.h. */ 45548_ACEOF 45549cat confdefs.h >>conftest.$ac_ext 45550cat >>conftest.$ac_ext <<_ACEOF 45551/* end confdefs.h. */ 45552 45553/* Override any GCC internal prototype to avoid an error. 45554 Use char because int might match the return type of a GCC 45555 builtin and then its argument prototype would still apply. */ 45556#ifdef __cplusplus 45557extern "C" 45558#endif 45559char shmat (); 45560int 45561main () 45562{ 45563return shmat (); 45564 ; 45565 return 0; 45566} 45567_ACEOF 45568rm -f conftest.$ac_objext conftest$ac_exeext 45569if { (ac_try="$ac_link" 45570case "(($ac_try" in 45571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45572 *) ac_try_echo=$ac_try;; 45573esac 45574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45575 (eval "$ac_link") 2>conftest.er1 45576 ac_status=$? 45577 grep -v '^ *+' conftest.er1 >conftest.err 45578 rm -f conftest.er1 45579 cat conftest.err >&5 45580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45581 (exit $ac_status); } && { 45582 test -z "$ac_c_werror_flag" || 45583 test ! -s conftest.err 45584 } && test -s conftest$ac_exeext && 45585 $as_test_x conftest$ac_exeext; then 45586 ac_cv_lib_ipc_shmat=yes 45587else 45588 echo "$as_me: failed program was:" >&5 45589sed 's/^/| /' conftest.$ac_ext >&5 45590 45591 ac_cv_lib_ipc_shmat=no 45592fi 45593 45594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45595 conftest$ac_exeext conftest.$ac_ext 45596LIBS=$ac_check_lib_save_LIBS 45597fi 45598{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 45599echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 45600if test $ac_cv_lib_ipc_shmat = yes; then 45601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 45602fi 45603 45604 fi 45605 fi 45606 45607 # Check for libraries that X11R6 Xt/Xaw programs need. 45608 ac_save_LDFLAGS=$LDFLAGS 45609 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 45610 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 45611 # check for ICE first), but we must link in the order -lSM -lICE or 45612 # we get undefined symbols. So assume we have SM if we have ICE. 45613 # These have to be linked with before -lX11, unlike the other 45614 # libraries we check for below, so use a different variable. 45615 # John Interrante, Karl Berry 45616 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 45617echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 45618if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 45619 echo $ECHO_N "(cached) $ECHO_C" >&6 45620else 45621 ac_check_lib_save_LIBS=$LIBS 45622LIBS="-lICE $X_EXTRA_LIBS $LIBS" 45623cat >conftest.$ac_ext <<_ACEOF 45624/* confdefs.h. */ 45625_ACEOF 45626cat confdefs.h >>conftest.$ac_ext 45627cat >>conftest.$ac_ext <<_ACEOF 45628/* end confdefs.h. */ 45629 45630/* Override any GCC internal prototype to avoid an error. 45631 Use char because int might match the return type of a GCC 45632 builtin and then its argument prototype would still apply. */ 45633#ifdef __cplusplus 45634extern "C" 45635#endif 45636char IceConnectionNumber (); 45637int 45638main () 45639{ 45640return IceConnectionNumber (); 45641 ; 45642 return 0; 45643} 45644_ACEOF 45645rm -f conftest.$ac_objext conftest$ac_exeext 45646if { (ac_try="$ac_link" 45647case "(($ac_try" in 45648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45649 *) ac_try_echo=$ac_try;; 45650esac 45651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45652 (eval "$ac_link") 2>conftest.er1 45653 ac_status=$? 45654 grep -v '^ *+' conftest.er1 >conftest.err 45655 rm -f conftest.er1 45656 cat conftest.err >&5 45657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45658 (exit $ac_status); } && { 45659 test -z "$ac_c_werror_flag" || 45660 test ! -s conftest.err 45661 } && test -s conftest$ac_exeext && 45662 $as_test_x conftest$ac_exeext; then 45663 ac_cv_lib_ICE_IceConnectionNumber=yes 45664else 45665 echo "$as_me: failed program was:" >&5 45666sed 's/^/| /' conftest.$ac_ext >&5 45667 45668 ac_cv_lib_ICE_IceConnectionNumber=no 45669fi 45670 45671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45672 conftest$ac_exeext conftest.$ac_ext 45673LIBS=$ac_check_lib_save_LIBS 45674fi 45675{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 45676echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 45677if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 45678 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 45679fi 45680 45681 LDFLAGS=$ac_save_LDFLAGS 45682 45683fi 45684 45685 45686# try to figure out if we need any additional ld flags, like -R 45687# and yes, the autoconf X test is utterly broken 45688if test "$no_x" != yes; then 45689 { echo "$as_me:$LINENO: checking for special X linker flags" >&5 45690echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6; } 45691if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 45692 echo $ECHO_N "(cached) $ECHO_C" >&6 45693else 45694 45695 ac_save_libs="$LIBS" 45696 ac_save_cflags="$CFLAGS" 45697 CFLAGS="$CFLAGS $X_CFLAGS" 45698 krb_cv_sys_x_libs_rpath="" 45699 krb_cv_sys_x_libs="" 45700 for rflag in "" "-R" "-R " "-rpath "; do 45701 if test "$rflag" = ""; then 45702 foo="$X_LIBS" 45703 else 45704 foo="" 45705 for flag in $X_LIBS; do 45706 case $flag in 45707 -L*) 45708 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 45709 ;; 45710 *) 45711 foo="$foo $flag" 45712 ;; 45713 esac 45714 done 45715 fi 45716 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 45717 if test "$cross_compiling" = yes; then 45718 krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break 45719else 45720 cat >conftest.$ac_ext <<_ACEOF 45721 45722 #include <X11/Xlib.h> 45723 foo(void) 45724 { 45725 XOpenDisplay(NULL); 45726 } 45727 main(int argc, char **argv) 45728 { 45729 return 0; 45730 } 45731 45732_ACEOF 45733rm -f conftest$ac_exeext 45734if { (ac_try="$ac_link" 45735case "(($ac_try" in 45736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45737 *) ac_try_echo=$ac_try;; 45738esac 45739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45740 (eval "$ac_link") 2>&5 45741 ac_status=$? 45742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 45744 { (case "(($ac_try" in 45745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45746 *) ac_try_echo=$ac_try;; 45747esac 45748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45749 (eval "$ac_try") 2>&5 45750 ac_status=$? 45751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45752 (exit $ac_status); }; }; then 45753 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 45754else 45755 echo "$as_me: program exited with status $ac_status" >&5 45756echo "$as_me: failed program was:" >&5 45757sed 's/^/| /' conftest.$ac_ext >&5 45758 45759( exit $ac_status ) 45760: 45761fi 45762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 45763fi 45764 45765 45766 done 45767 LIBS="$ac_save_libs" 45768 CFLAGS="$ac_save_cflags" 45769 45770fi 45771{ echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5 45772echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6; } 45773 X_LIBS="$krb_cv_sys_x_libs" 45774fi 45775 45776 45777 if test "$no_x" != yes; then 45778 HAVE_X_TRUE= 45779 HAVE_X_FALSE='#' 45780else 45781 HAVE_X_TRUE='#' 45782 HAVE_X_FALSE= 45783fi 45784 45785 45786 45787save_CFLAGS="$CFLAGS" 45788CFLAGS="$X_CFLAGS $CFLAGS" 45789save_LIBS="$LIBS" 45790LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 45791save_LDFLAGS="$LDFLAGS" 45792LDFLAGS="$LDFLAGS $X_LIBS" 45793 45794## check for XauWriteAuth first, so we detect the case where 45795## XauReadAuth is in -lX11, but XauWriteAuth is only in -lXau this 45796## could be done by checking for XauReadAuth in -lXau first, but this 45797## breaks in IRIX 6.5 45798 45799 45800 45801 45802{ echo "$as_me:$LINENO: checking for XauWriteAuth" >&5 45803echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6; } 45804if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 45805 echo $ECHO_N "(cached) $ECHO_C" >&6 45806else 45807 45808if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 45809 ac_save_LIBS="$LIBS" 45810 for ac_lib in "" X11 Xau; do 45811 case "$ac_lib" in 45812 "") ;; 45813 yes) ac_lib="" ;; 45814 no) continue ;; 45815 -l*) ;; 45816 *) ac_lib="-l$ac_lib" ;; 45817 esac 45818 LIBS=" $ac_lib $ac_save_LIBS" 45819 cat >conftest.$ac_ext <<_ACEOF 45820/* confdefs.h. */ 45821_ACEOF 45822cat confdefs.h >>conftest.$ac_ext 45823cat >>conftest.$ac_ext <<_ACEOF 45824/* end confdefs.h. */ 45825#include <X11/Xauth.h> 45826int 45827main () 45828{ 45829XauWriteAuth(0,0) 45830 ; 45831 return 0; 45832} 45833_ACEOF 45834rm -f conftest.$ac_objext conftest$ac_exeext 45835if { (ac_try="$ac_link" 45836case "(($ac_try" in 45837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45838 *) ac_try_echo=$ac_try;; 45839esac 45840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45841 (eval "$ac_link") 2>conftest.er1 45842 ac_status=$? 45843 grep -v '^ *+' conftest.er1 >conftest.err 45844 rm -f conftest.er1 45845 cat conftest.err >&5 45846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45847 (exit $ac_status); } && { 45848 test -z "$ac_c_werror_flag" || 45849 test ! -s conftest.err 45850 } && test -s conftest$ac_exeext && 45851 $as_test_x conftest$ac_exeext; then 45852 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 45853else 45854 echo "$as_me: failed program was:" >&5 45855sed 's/^/| /' conftest.$ac_ext >&5 45856 45857 45858fi 45859 45860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45861 conftest$ac_exeext conftest.$ac_ext 45862 done 45863 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 45864 LIBS="$ac_save_LIBS" 45865fi 45866 45867fi 45868 45869 45870eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 45871 45872if false; then 45873 45874for ac_func in XauWriteAuth 45875do 45876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 45877{ echo "$as_me:$LINENO: checking for $ac_func" >&5 45878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 45879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 45880 echo $ECHO_N "(cached) $ECHO_C" >&6 45881else 45882 cat >conftest.$ac_ext <<_ACEOF 45883/* confdefs.h. */ 45884_ACEOF 45885cat confdefs.h >>conftest.$ac_ext 45886cat >>conftest.$ac_ext <<_ACEOF 45887/* end confdefs.h. */ 45888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 45889 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 45890#define $ac_func innocuous_$ac_func 45891 45892/* System header to define __stub macros and hopefully few prototypes, 45893 which can conflict with char $ac_func (); below. 45894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 45895 <limits.h> exists even on freestanding compilers. */ 45896 45897#ifdef __STDC__ 45898# include <limits.h> 45899#else 45900# include <assert.h> 45901#endif 45902 45903#undef $ac_func 45904 45905/* Override any GCC internal prototype to avoid an error. 45906 Use char because int might match the return type of a GCC 45907 builtin and then its argument prototype would still apply. */ 45908#ifdef __cplusplus 45909extern "C" 45910#endif 45911char $ac_func (); 45912/* The GNU C library defines this for functions which it implements 45913 to always fail with ENOSYS. Some functions are actually named 45914 something starting with __ and the normal name is an alias. */ 45915#if defined __stub_$ac_func || defined __stub___$ac_func 45916choke me 45917#endif 45918 45919int 45920main () 45921{ 45922return $ac_func (); 45923 ; 45924 return 0; 45925} 45926_ACEOF 45927rm -f conftest.$ac_objext conftest$ac_exeext 45928if { (ac_try="$ac_link" 45929case "(($ac_try" in 45930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 45931 *) ac_try_echo=$ac_try;; 45932esac 45933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 45934 (eval "$ac_link") 2>conftest.er1 45935 ac_status=$? 45936 grep -v '^ *+' conftest.er1 >conftest.err 45937 rm -f conftest.er1 45938 cat conftest.err >&5 45939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 45940 (exit $ac_status); } && { 45941 test -z "$ac_c_werror_flag" || 45942 test ! -s conftest.err 45943 } && test -s conftest$ac_exeext && 45944 $as_test_x conftest$ac_exeext; then 45945 eval "$as_ac_var=yes" 45946else 45947 echo "$as_me: failed program was:" >&5 45948sed 's/^/| /' conftest.$ac_ext >&5 45949 45950 eval "$as_ac_var=no" 45951fi 45952 45953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 45954 conftest$ac_exeext conftest.$ac_ext 45955fi 45956ac_res=`eval echo '${'$as_ac_var'}'` 45957 { echo "$as_me:$LINENO: result: $ac_res" >&5 45958echo "${ECHO_T}$ac_res" >&6; } 45959if test `eval echo '${'$as_ac_var'}'` = yes; then 45960 cat >>confdefs.h <<_ACEOF 45961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 45962_ACEOF 45963 45964fi 45965done 45966 45967fi 45968# XauWriteAuth 45969eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 45970eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 45971eval "LIB_XauWriteAuth=$ac_res" 45972 45973case "$ac_res" in 45974 yes) 45975 eval "ac_cv_func_XauWriteAuth=yes" 45976 eval "LIB_XauWriteAuth=" 45977 cat >>confdefs.h <<_ACEOF 45978#define $ac_tr_func 1 45979_ACEOF 45980 45981 { echo "$as_me:$LINENO: result: yes" >&5 45982echo "${ECHO_T}yes" >&6; } 45983 ;; 45984 no) 45985 eval "ac_cv_func_XauWriteAuth=no" 45986 eval "LIB_XauWriteAuth=" 45987 { echo "$as_me:$LINENO: result: no" >&5 45988echo "${ECHO_T}no" >&6; } 45989 ;; 45990 *) 45991 eval "ac_cv_func_XauWriteAuth=yes" 45992 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 45993 cat >>confdefs.h <<_ACEOF 45994#define $ac_tr_func 1 45995_ACEOF 45996 45997 cat >>confdefs.h <<_ACEOF 45998#define $ac_tr_lib 1 45999_ACEOF 46000 46001 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 46002echo "${ECHO_T}yes, in $ac_res" >&6; } 46003 ;; 46004esac 46005 46006 46007ac_xxx="$LIBS" 46008LIBS="$LIB_XauWriteAuth $LIBS" 46009 46010 46011 46012{ echo "$as_me:$LINENO: checking for XauReadAuth" >&5 46013echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6; } 46014if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 46015 echo $ECHO_N "(cached) $ECHO_C" >&6 46016else 46017 46018if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 46019 ac_save_LIBS="$LIBS" 46020 for ac_lib in "" X11 Xau; do 46021 case "$ac_lib" in 46022 "") ;; 46023 yes) ac_lib="" ;; 46024 no) continue ;; 46025 -l*) ;; 46026 *) ac_lib="-l$ac_lib" ;; 46027 esac 46028 LIBS=" $ac_lib $ac_save_LIBS" 46029 cat >conftest.$ac_ext <<_ACEOF 46030/* confdefs.h. */ 46031_ACEOF 46032cat confdefs.h >>conftest.$ac_ext 46033cat >>conftest.$ac_ext <<_ACEOF 46034/* end confdefs.h. */ 46035#include <X11/Xauth.h> 46036int 46037main () 46038{ 46039XauReadAuth(0) 46040 ; 46041 return 0; 46042} 46043_ACEOF 46044rm -f conftest.$ac_objext conftest$ac_exeext 46045if { (ac_try="$ac_link" 46046case "(($ac_try" in 46047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46048 *) ac_try_echo=$ac_try;; 46049esac 46050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46051 (eval "$ac_link") 2>conftest.er1 46052 ac_status=$? 46053 grep -v '^ *+' conftest.er1 >conftest.err 46054 rm -f conftest.er1 46055 cat conftest.err >&5 46056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46057 (exit $ac_status); } && { 46058 test -z "$ac_c_werror_flag" || 46059 test ! -s conftest.err 46060 } && test -s conftest$ac_exeext && 46061 $as_test_x conftest$ac_exeext; then 46062 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 46063else 46064 echo "$as_me: failed program was:" >&5 46065sed 's/^/| /' conftest.$ac_ext >&5 46066 46067 46068fi 46069 46070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 46071 conftest$ac_exeext conftest.$ac_ext 46072 done 46073 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 46074 LIBS="$ac_save_LIBS" 46075fi 46076 46077fi 46078 46079 46080eval "ac_res=\$ac_cv_funclib_XauReadAuth" 46081 46082if false; then 46083 46084for ac_func in XauReadAuth 46085do 46086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46087{ echo "$as_me:$LINENO: checking for $ac_func" >&5 46088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 46089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 46090 echo $ECHO_N "(cached) $ECHO_C" >&6 46091else 46092 cat >conftest.$ac_ext <<_ACEOF 46093/* confdefs.h. */ 46094_ACEOF 46095cat confdefs.h >>conftest.$ac_ext 46096cat >>conftest.$ac_ext <<_ACEOF 46097/* end confdefs.h. */ 46098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46099 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46100#define $ac_func innocuous_$ac_func 46101 46102/* System header to define __stub macros and hopefully few prototypes, 46103 which can conflict with char $ac_func (); below. 46104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46105 <limits.h> exists even on freestanding compilers. */ 46106 46107#ifdef __STDC__ 46108# include <limits.h> 46109#else 46110# include <assert.h> 46111#endif 46112 46113#undef $ac_func 46114 46115/* Override any GCC internal prototype to avoid an error. 46116 Use char because int might match the return type of a GCC 46117 builtin and then its argument prototype would still apply. */ 46118#ifdef __cplusplus 46119extern "C" 46120#endif 46121char $ac_func (); 46122/* The GNU C library defines this for functions which it implements 46123 to always fail with ENOSYS. Some functions are actually named 46124 something starting with __ and the normal name is an alias. */ 46125#if defined __stub_$ac_func || defined __stub___$ac_func 46126choke me 46127#endif 46128 46129int 46130main () 46131{ 46132return $ac_func (); 46133 ; 46134 return 0; 46135} 46136_ACEOF 46137rm -f conftest.$ac_objext conftest$ac_exeext 46138if { (ac_try="$ac_link" 46139case "(($ac_try" in 46140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46141 *) ac_try_echo=$ac_try;; 46142esac 46143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46144 (eval "$ac_link") 2>conftest.er1 46145 ac_status=$? 46146 grep -v '^ *+' conftest.er1 >conftest.err 46147 rm -f conftest.er1 46148 cat conftest.err >&5 46149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46150 (exit $ac_status); } && { 46151 test -z "$ac_c_werror_flag" || 46152 test ! -s conftest.err 46153 } && test -s conftest$ac_exeext && 46154 $as_test_x conftest$ac_exeext; then 46155 eval "$as_ac_var=yes" 46156else 46157 echo "$as_me: failed program was:" >&5 46158sed 's/^/| /' conftest.$ac_ext >&5 46159 46160 eval "$as_ac_var=no" 46161fi 46162 46163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 46164 conftest$ac_exeext conftest.$ac_ext 46165fi 46166ac_res=`eval echo '${'$as_ac_var'}'` 46167 { echo "$as_me:$LINENO: result: $ac_res" >&5 46168echo "${ECHO_T}$ac_res" >&6; } 46169if test `eval echo '${'$as_ac_var'}'` = yes; then 46170 cat >>confdefs.h <<_ACEOF 46171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46172_ACEOF 46173 46174fi 46175done 46176 46177fi 46178# XauReadAuth 46179eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 46180eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 46181eval "LIB_XauReadAuth=$ac_res" 46182 46183case "$ac_res" in 46184 yes) 46185 eval "ac_cv_func_XauReadAuth=yes" 46186 eval "LIB_XauReadAuth=" 46187 cat >>confdefs.h <<_ACEOF 46188#define $ac_tr_func 1 46189_ACEOF 46190 46191 { echo "$as_me:$LINENO: result: yes" >&5 46192echo "${ECHO_T}yes" >&6; } 46193 ;; 46194 no) 46195 eval "ac_cv_func_XauReadAuth=no" 46196 eval "LIB_XauReadAuth=" 46197 { echo "$as_me:$LINENO: result: no" >&5 46198echo "${ECHO_T}no" >&6; } 46199 ;; 46200 *) 46201 eval "ac_cv_func_XauReadAuth=yes" 46202 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 46203 cat >>confdefs.h <<_ACEOF 46204#define $ac_tr_func 1 46205_ACEOF 46206 46207 cat >>confdefs.h <<_ACEOF 46208#define $ac_tr_lib 1 46209_ACEOF 46210 46211 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 46212echo "${ECHO_T}yes, in $ac_res" >&6; } 46213 ;; 46214esac 46215 46216 46217LIBS="$LIB_XauReadAauth $LIBS" 46218 46219 46220 46221{ echo "$as_me:$LINENO: checking for XauFileName" >&5 46222echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6; } 46223if test "${ac_cv_funclib_XauFileName+set}" = set; then 46224 echo $ECHO_N "(cached) $ECHO_C" >&6 46225else 46226 46227if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 46228 ac_save_LIBS="$LIBS" 46229 for ac_lib in "" X11 Xau; do 46230 case "$ac_lib" in 46231 "") ;; 46232 yes) ac_lib="" ;; 46233 no) continue ;; 46234 -l*) ;; 46235 *) ac_lib="-l$ac_lib" ;; 46236 esac 46237 LIBS=" $ac_lib $ac_save_LIBS" 46238 cat >conftest.$ac_ext <<_ACEOF 46239/* confdefs.h. */ 46240_ACEOF 46241cat confdefs.h >>conftest.$ac_ext 46242cat >>conftest.$ac_ext <<_ACEOF 46243/* end confdefs.h. */ 46244#include <X11/Xauth.h> 46245int 46246main () 46247{ 46248XauFileName() 46249 ; 46250 return 0; 46251} 46252_ACEOF 46253rm -f conftest.$ac_objext conftest$ac_exeext 46254if { (ac_try="$ac_link" 46255case "(($ac_try" in 46256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46257 *) ac_try_echo=$ac_try;; 46258esac 46259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46260 (eval "$ac_link") 2>conftest.er1 46261 ac_status=$? 46262 grep -v '^ *+' conftest.er1 >conftest.err 46263 rm -f conftest.er1 46264 cat conftest.err >&5 46265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46266 (exit $ac_status); } && { 46267 test -z "$ac_c_werror_flag" || 46268 test ! -s conftest.err 46269 } && test -s conftest$ac_exeext && 46270 $as_test_x conftest$ac_exeext; then 46271 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 46272else 46273 echo "$as_me: failed program was:" >&5 46274sed 's/^/| /' conftest.$ac_ext >&5 46275 46276 46277fi 46278 46279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 46280 conftest$ac_exeext conftest.$ac_ext 46281 done 46282 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 46283 LIBS="$ac_save_LIBS" 46284fi 46285 46286fi 46287 46288 46289eval "ac_res=\$ac_cv_funclib_XauFileName" 46290 46291if false; then 46292 46293for ac_func in XauFileName 46294do 46295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 46296{ echo "$as_me:$LINENO: checking for $ac_func" >&5 46297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 46298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 46299 echo $ECHO_N "(cached) $ECHO_C" >&6 46300else 46301 cat >conftest.$ac_ext <<_ACEOF 46302/* confdefs.h. */ 46303_ACEOF 46304cat confdefs.h >>conftest.$ac_ext 46305cat >>conftest.$ac_ext <<_ACEOF 46306/* end confdefs.h. */ 46307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 46308 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 46309#define $ac_func innocuous_$ac_func 46310 46311/* System header to define __stub macros and hopefully few prototypes, 46312 which can conflict with char $ac_func (); below. 46313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 46314 <limits.h> exists even on freestanding compilers. */ 46315 46316#ifdef __STDC__ 46317# include <limits.h> 46318#else 46319# include <assert.h> 46320#endif 46321 46322#undef $ac_func 46323 46324/* Override any GCC internal prototype to avoid an error. 46325 Use char because int might match the return type of a GCC 46326 builtin and then its argument prototype would still apply. */ 46327#ifdef __cplusplus 46328extern "C" 46329#endif 46330char $ac_func (); 46331/* The GNU C library defines this for functions which it implements 46332 to always fail with ENOSYS. Some functions are actually named 46333 something starting with __ and the normal name is an alias. */ 46334#if defined __stub_$ac_func || defined __stub___$ac_func 46335choke me 46336#endif 46337 46338int 46339main () 46340{ 46341return $ac_func (); 46342 ; 46343 return 0; 46344} 46345_ACEOF 46346rm -f conftest.$ac_objext conftest$ac_exeext 46347if { (ac_try="$ac_link" 46348case "(($ac_try" in 46349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46350 *) ac_try_echo=$ac_try;; 46351esac 46352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46353 (eval "$ac_link") 2>conftest.er1 46354 ac_status=$? 46355 grep -v '^ *+' conftest.er1 >conftest.err 46356 rm -f conftest.er1 46357 cat conftest.err >&5 46358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46359 (exit $ac_status); } && { 46360 test -z "$ac_c_werror_flag" || 46361 test ! -s conftest.err 46362 } && test -s conftest$ac_exeext && 46363 $as_test_x conftest$ac_exeext; then 46364 eval "$as_ac_var=yes" 46365else 46366 echo "$as_me: failed program was:" >&5 46367sed 's/^/| /' conftest.$ac_ext >&5 46368 46369 eval "$as_ac_var=no" 46370fi 46371 46372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 46373 conftest$ac_exeext conftest.$ac_ext 46374fi 46375ac_res=`eval echo '${'$as_ac_var'}'` 46376 { echo "$as_me:$LINENO: result: $ac_res" >&5 46377echo "${ECHO_T}$ac_res" >&6; } 46378if test `eval echo '${'$as_ac_var'}'` = yes; then 46379 cat >>confdefs.h <<_ACEOF 46380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 46381_ACEOF 46382 46383fi 46384done 46385 46386fi 46387# XauFileName 46388eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 46389eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 46390eval "LIB_XauFileName=$ac_res" 46391 46392case "$ac_res" in 46393 yes) 46394 eval "ac_cv_func_XauFileName=yes" 46395 eval "LIB_XauFileName=" 46396 cat >>confdefs.h <<_ACEOF 46397#define $ac_tr_func 1 46398_ACEOF 46399 46400 { echo "$as_me:$LINENO: result: yes" >&5 46401echo "${ECHO_T}yes" >&6; } 46402 ;; 46403 no) 46404 eval "ac_cv_func_XauFileName=no" 46405 eval "LIB_XauFileName=" 46406 { echo "$as_me:$LINENO: result: no" >&5 46407echo "${ECHO_T}no" >&6; } 46408 ;; 46409 *) 46410 eval "ac_cv_func_XauFileName=yes" 46411 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 46412 cat >>confdefs.h <<_ACEOF 46413#define $ac_tr_func 1 46414_ACEOF 46415 46416 cat >>confdefs.h <<_ACEOF 46417#define $ac_tr_lib 1 46418_ACEOF 46419 46420 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 46421echo "${ECHO_T}yes, in $ac_res" >&6; } 46422 ;; 46423esac 46424 46425 46426LIBS="$ac_xxx" 46427 46428## set LIB_XauReadAuth to union of these tests, since this is what the 46429## Makefiles are using 46430case "$ac_cv_funclib_XauWriteAuth" in 46431yes) ;; 46432no) ;; 46433*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 46434 if test "$ac_cv_funclib_XauFileName" = yes; then 46435 LIB_XauReadAuth="$LIB_XauWriteAuth" 46436 else 46437 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 46438 fi 46439 else 46440 if test "$ac_cv_funclib_XauFileName" = yes; then 46441 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 46442 else 46443 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 46444 fi 46445 fi 46446 ;; 46447esac 46448 46449if test "$AUTOMAKE" != ""; then 46450 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 46451 NEED_WRITEAUTH_TRUE= 46452 NEED_WRITEAUTH_FALSE='#' 46453else 46454 NEED_WRITEAUTH_TRUE='#' 46455 NEED_WRITEAUTH_FALSE= 46456fi 46457 46458else 46459 46460 46461 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 46462 NEED_WRITEAUTH_TRUE= 46463 NEED_WRITEAUTH_FALSE='#' 46464 else 46465 NEED_WRITEAUTH_TRUE='#' 46466 NEED_WRITEAUTH_FALSE= 46467 fi 46468fi 46469CFLAGS=$save_CFLAGS 46470LIBS=$save_LIBS 46471LDFLAGS=$save_LDFLAGS 46472 46473 46474 46475{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 46476echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 46477if test "${ac_cv_c_const+set}" = set; then 46478 echo $ECHO_N "(cached) $ECHO_C" >&6 46479else 46480 cat >conftest.$ac_ext <<_ACEOF 46481/* confdefs.h. */ 46482_ACEOF 46483cat confdefs.h >>conftest.$ac_ext 46484cat >>conftest.$ac_ext <<_ACEOF 46485/* end confdefs.h. */ 46486 46487int 46488main () 46489{ 46490/* FIXME: Include the comments suggested by Paul. */ 46491#ifndef __cplusplus 46492 /* Ultrix mips cc rejects this. */ 46493 typedef int charset[2]; 46494 const charset cs; 46495 /* SunOS 4.1.1 cc rejects this. */ 46496 char const *const *pcpcc; 46497 char **ppc; 46498 /* NEC SVR4.0.2 mips cc rejects this. */ 46499 struct point {int x, y;}; 46500 static struct point const zero = {0,0}; 46501 /* AIX XL C 1.02.0.0 rejects this. 46502 It does not let you subtract one const X* pointer from another in 46503 an arm of an if-expression whose if-part is not a constant 46504 expression */ 46505 const char *g = "string"; 46506 pcpcc = &g + (g ? g-g : 0); 46507 /* HPUX 7.0 cc rejects these. */ 46508 ++pcpcc; 46509 ppc = (char**) pcpcc; 46510 pcpcc = (char const *const *) ppc; 46511 { /* SCO 3.2v4 cc rejects this. */ 46512 char *t; 46513 char const *s = 0 ? (char *) 0 : (char const *) 0; 46514 46515 *t++ = 0; 46516 if (s) return 0; 46517 } 46518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 46519 int x[] = {25, 17}; 46520 const int *foo = &x[0]; 46521 ++foo; 46522 } 46523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 46524 typedef const int *iptr; 46525 iptr p = 0; 46526 ++p; 46527 } 46528 { /* AIX XL C 1.02.0.0 rejects this saying 46529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 46530 struct s { int j; const int *ap[3]; }; 46531 struct s *b; b->j = 5; 46532 } 46533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 46534 const int foo = 10; 46535 if (!foo) return 0; 46536 } 46537 return !cs[0] && !zero.x; 46538#endif 46539 46540 ; 46541 return 0; 46542} 46543_ACEOF 46544rm -f conftest.$ac_objext 46545if { (ac_try="$ac_compile" 46546case "(($ac_try" in 46547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46548 *) ac_try_echo=$ac_try;; 46549esac 46550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46551 (eval "$ac_compile") 2>conftest.er1 46552 ac_status=$? 46553 grep -v '^ *+' conftest.er1 >conftest.err 46554 rm -f conftest.er1 46555 cat conftest.err >&5 46556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46557 (exit $ac_status); } && { 46558 test -z "$ac_c_werror_flag" || 46559 test ! -s conftest.err 46560 } && test -s conftest.$ac_objext; then 46561 ac_cv_c_const=yes 46562else 46563 echo "$as_me: failed program was:" >&5 46564sed 's/^/| /' conftest.$ac_ext >&5 46565 46566 ac_cv_c_const=no 46567fi 46568 46569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46570fi 46571{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 46572echo "${ECHO_T}$ac_cv_c_const" >&6; } 46573if test $ac_cv_c_const = no; then 46574 46575cat >>confdefs.h <<\_ACEOF 46576#define const 46577_ACEOF 46578 46579fi 46580 46581{ echo "$as_me:$LINENO: checking for off_t" >&5 46582echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 46583if test "${ac_cv_type_off_t+set}" = set; then 46584 echo $ECHO_N "(cached) $ECHO_C" >&6 46585else 46586 cat >conftest.$ac_ext <<_ACEOF 46587/* confdefs.h. */ 46588_ACEOF 46589cat confdefs.h >>conftest.$ac_ext 46590cat >>conftest.$ac_ext <<_ACEOF 46591/* end confdefs.h. */ 46592$ac_includes_default 46593typedef off_t ac__type_new_; 46594int 46595main () 46596{ 46597if ((ac__type_new_ *) 0) 46598 return 0; 46599if (sizeof (ac__type_new_)) 46600 return 0; 46601 ; 46602 return 0; 46603} 46604_ACEOF 46605rm -f conftest.$ac_objext 46606if { (ac_try="$ac_compile" 46607case "(($ac_try" in 46608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46609 *) ac_try_echo=$ac_try;; 46610esac 46611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46612 (eval "$ac_compile") 2>conftest.er1 46613 ac_status=$? 46614 grep -v '^ *+' conftest.er1 >conftest.err 46615 rm -f conftest.er1 46616 cat conftest.err >&5 46617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46618 (exit $ac_status); } && { 46619 test -z "$ac_c_werror_flag" || 46620 test ! -s conftest.err 46621 } && test -s conftest.$ac_objext; then 46622 ac_cv_type_off_t=yes 46623else 46624 echo "$as_me: failed program was:" >&5 46625sed 's/^/| /' conftest.$ac_ext >&5 46626 46627 ac_cv_type_off_t=no 46628fi 46629 46630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46631fi 46632{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 46633echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 46634if test $ac_cv_type_off_t = yes; then 46635 : 46636else 46637 46638cat >>confdefs.h <<_ACEOF 46639#define off_t long int 46640_ACEOF 46641 46642fi 46643 46644{ echo "$as_me:$LINENO: checking for mode_t" >&5 46645echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 46646if test "${ac_cv_type_mode_t+set}" = set; then 46647 echo $ECHO_N "(cached) $ECHO_C" >&6 46648else 46649 cat >conftest.$ac_ext <<_ACEOF 46650/* confdefs.h. */ 46651_ACEOF 46652cat confdefs.h >>conftest.$ac_ext 46653cat >>conftest.$ac_ext <<_ACEOF 46654/* end confdefs.h. */ 46655#include <sys/types.h> 46656#if STDC_HEADERS 46657#include <stdlib.h> 46658#include <stddef.h> 46659#endif 46660 46661_ACEOF 46662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46663 $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 46664 ac_cv_type_mode_t=yes 46665else 46666 ac_cv_type_mode_t=no 46667fi 46668rm -f conftest* 46669 46670fi 46671{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 46672echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } 46673if test $ac_cv_type_mode_t = no; then 46674 46675cat >>confdefs.h <<\_ACEOF 46676#define mode_t unsigned short 46677_ACEOF 46678 46679fi 46680 46681{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 46682echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; } 46683if test "${ac_cv_type_sig_atomic_t+set}" = set; then 46684 echo $ECHO_N "(cached) $ECHO_C" >&6 46685else 46686 cat >conftest.$ac_ext <<_ACEOF 46687/* confdefs.h. */ 46688_ACEOF 46689cat confdefs.h >>conftest.$ac_ext 46690cat >>conftest.$ac_ext <<_ACEOF 46691/* end confdefs.h. */ 46692#include <sys/types.h> 46693#if STDC_HEADERS 46694#include <stdlib.h> 46695#include <stddef.h> 46696#endif 46697#include <signal.h> 46698_ACEOF 46699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46700 $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 46701 ac_cv_type_sig_atomic_t=yes 46702else 46703 ac_cv_type_sig_atomic_t=no 46704fi 46705rm -f conftest* 46706 46707fi 46708{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 46709echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; } 46710if test $ac_cv_type_sig_atomic_t = no; then 46711 46712cat >>confdefs.h <<\_ACEOF 46713#define sig_atomic_t int 46714_ACEOF 46715 46716fi 46717 46718 46719 46720cv=`echo "long long" | sed 'y%./+- %__p__%'` 46721{ echo "$as_me:$LINENO: checking for long long" >&5 46722echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 46723if { as_var=ac_cv_type_$cv; eval "test \"\${$as_var+set}\" = set"; }; then 46724 echo $ECHO_N "(cached) $ECHO_C" >&6 46725else 46726 cat >conftest.$ac_ext <<_ACEOF 46727/* confdefs.h. */ 46728_ACEOF 46729cat confdefs.h >>conftest.$ac_ext 46730cat >>conftest.$ac_ext <<_ACEOF 46731/* end confdefs.h. */ 46732 46733#include <sys/types.h> 46734#if STDC_HEADERS 46735#include <stdlib.h> 46736#include <stddef.h> 46737#endif 46738 46739int 46740main () 46741{ 46742long long foo; 46743 ; 46744 return 0; 46745} 46746_ACEOF 46747rm -f conftest.$ac_objext 46748if { (ac_try="$ac_compile" 46749case "(($ac_try" in 46750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46751 *) ac_try_echo=$ac_try;; 46752esac 46753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46754 (eval "$ac_compile") 2>conftest.er1 46755 ac_status=$? 46756 grep -v '^ *+' conftest.er1 >conftest.err 46757 rm -f conftest.er1 46758 cat conftest.err >&5 46759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46760 (exit $ac_status); } && { 46761 test -z "$ac_c_werror_flag" || 46762 test ! -s conftest.err 46763 } && test -s conftest.$ac_objext; then 46764 eval "ac_cv_type_$cv=yes" 46765else 46766 echo "$as_me: failed program was:" >&5 46767sed 's/^/| /' conftest.$ac_ext >&5 46768 46769 eval "ac_cv_type_$cv=no" 46770fi 46771 46772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46773fi 46774ac_foo=`eval echo \\$ac_cv_type_$cv` 46775{ echo "$as_me:$LINENO: result: $ac_foo" >&5 46776echo "${ECHO_T}$ac_foo" >&6; } 46777if test "$ac_foo" = yes; then 46778 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 46779if false; then 46780 { echo "$as_me:$LINENO: checking for long long" >&5 46781echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 46782if test "${ac_cv_type_long_long+set}" = set; then 46783 echo $ECHO_N "(cached) $ECHO_C" >&6 46784else 46785 cat >conftest.$ac_ext <<_ACEOF 46786/* confdefs.h. */ 46787_ACEOF 46788cat confdefs.h >>conftest.$ac_ext 46789cat >>conftest.$ac_ext <<_ACEOF 46790/* end confdefs.h. */ 46791$ac_includes_default 46792typedef long long ac__type_new_; 46793int 46794main () 46795{ 46796if ((ac__type_new_ *) 0) 46797 return 0; 46798if (sizeof (ac__type_new_)) 46799 return 0; 46800 ; 46801 return 0; 46802} 46803_ACEOF 46804rm -f conftest.$ac_objext 46805if { (ac_try="$ac_compile" 46806case "(($ac_try" in 46807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46808 *) ac_try_echo=$ac_try;; 46809esac 46810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46811 (eval "$ac_compile") 2>conftest.er1 46812 ac_status=$? 46813 grep -v '^ *+' conftest.er1 >conftest.err 46814 rm -f conftest.er1 46815 cat conftest.err >&5 46816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46817 (exit $ac_status); } && { 46818 test -z "$ac_c_werror_flag" || 46819 test ! -s conftest.err 46820 } && test -s conftest.$ac_objext; then 46821 ac_cv_type_long_long=yes 46822else 46823 echo "$as_me: failed program was:" >&5 46824sed 's/^/| /' conftest.$ac_ext >&5 46825 46826 ac_cv_type_long_long=no 46827fi 46828 46829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46830fi 46831{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 46832echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 46833if test $ac_cv_type_long_long = yes; then 46834 46835cat >>confdefs.h <<_ACEOF 46836#define HAVE_LONG_LONG 1 46837_ACEOF 46838 46839 46840fi 46841 46842fi 46843 46844cat >>confdefs.h <<_ACEOF 46845#define $ac_tr_hdr 1 46846_ACEOF 46847 46848fi 46849 46850{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 46851echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 46852if test "${ac_cv_header_time+set}" = set; then 46853 echo $ECHO_N "(cached) $ECHO_C" >&6 46854else 46855 cat >conftest.$ac_ext <<_ACEOF 46856/* confdefs.h. */ 46857_ACEOF 46858cat confdefs.h >>conftest.$ac_ext 46859cat >>conftest.$ac_ext <<_ACEOF 46860/* end confdefs.h. */ 46861#include <sys/types.h> 46862#include <sys/time.h> 46863#include <time.h> 46864 46865int 46866main () 46867{ 46868if ((struct tm *) 0) 46869return 0; 46870 ; 46871 return 0; 46872} 46873_ACEOF 46874rm -f conftest.$ac_objext 46875if { (ac_try="$ac_compile" 46876case "(($ac_try" in 46877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46878 *) ac_try_echo=$ac_try;; 46879esac 46880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46881 (eval "$ac_compile") 2>conftest.er1 46882 ac_status=$? 46883 grep -v '^ *+' conftest.er1 >conftest.err 46884 rm -f conftest.er1 46885 cat conftest.err >&5 46886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46887 (exit $ac_status); } && { 46888 test -z "$ac_c_werror_flag" || 46889 test ! -s conftest.err 46890 } && test -s conftest.$ac_objext; then 46891 ac_cv_header_time=yes 46892else 46893 echo "$as_me: failed program was:" >&5 46894sed 's/^/| /' conftest.$ac_ext >&5 46895 46896 ac_cv_header_time=no 46897fi 46898 46899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46900fi 46901{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 46902echo "${ECHO_T}$ac_cv_header_time" >&6; } 46903if test $ac_cv_header_time = yes; then 46904 46905cat >>confdefs.h <<\_ACEOF 46906#define TIME_WITH_SYS_TIME 1 46907_ACEOF 46908 46909fi 46910 46911{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 46912echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 46913if test "${ac_cv_struct_tm+set}" = set; then 46914 echo $ECHO_N "(cached) $ECHO_C" >&6 46915else 46916 cat >conftest.$ac_ext <<_ACEOF 46917/* confdefs.h. */ 46918_ACEOF 46919cat confdefs.h >>conftest.$ac_ext 46920cat >>conftest.$ac_ext <<_ACEOF 46921/* end confdefs.h. */ 46922#include <sys/types.h> 46923#include <time.h> 46924 46925int 46926main () 46927{ 46928struct tm tm; 46929 int *p = &tm.tm_sec; 46930 return !p; 46931 ; 46932 return 0; 46933} 46934_ACEOF 46935rm -f conftest.$ac_objext 46936if { (ac_try="$ac_compile" 46937case "(($ac_try" in 46938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 46939 *) ac_try_echo=$ac_try;; 46940esac 46941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 46942 (eval "$ac_compile") 2>conftest.er1 46943 ac_status=$? 46944 grep -v '^ *+' conftest.er1 >conftest.err 46945 rm -f conftest.er1 46946 cat conftest.err >&5 46947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 46948 (exit $ac_status); } && { 46949 test -z "$ac_c_werror_flag" || 46950 test ! -s conftest.err 46951 } && test -s conftest.$ac_objext; then 46952 ac_cv_struct_tm=time.h 46953else 46954 echo "$as_me: failed program was:" >&5 46955sed 's/^/| /' conftest.$ac_ext >&5 46956 46957 ac_cv_struct_tm=sys/time.h 46958fi 46959 46960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46961fi 46962{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 46963echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 46964if test $ac_cv_struct_tm = sys/time.h; then 46965 46966cat >>confdefs.h <<\_ACEOF 46967#define TM_IN_SYS_TIME 1 46968_ACEOF 46969 46970fi 46971 46972 46973{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 46974echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 46975if test "${ac_cv_header_stdc+set}" = set; then 46976 echo $ECHO_N "(cached) $ECHO_C" >&6 46977else 46978 cat >conftest.$ac_ext <<_ACEOF 46979/* confdefs.h. */ 46980_ACEOF 46981cat confdefs.h >>conftest.$ac_ext 46982cat >>conftest.$ac_ext <<_ACEOF 46983/* end confdefs.h. */ 46984#include <stdlib.h> 46985#include <stdarg.h> 46986#include <string.h> 46987#include <float.h> 46988 46989int 46990main () 46991{ 46992 46993 ; 46994 return 0; 46995} 46996_ACEOF 46997rm -f conftest.$ac_objext 46998if { (ac_try="$ac_compile" 46999case "(($ac_try" in 47000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47001 *) ac_try_echo=$ac_try;; 47002esac 47003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47004 (eval "$ac_compile") 2>conftest.er1 47005 ac_status=$? 47006 grep -v '^ *+' conftest.er1 >conftest.err 47007 rm -f conftest.er1 47008 cat conftest.err >&5 47009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47010 (exit $ac_status); } && { 47011 test -z "$ac_c_werror_flag" || 47012 test ! -s conftest.err 47013 } && test -s conftest.$ac_objext; then 47014 ac_cv_header_stdc=yes 47015else 47016 echo "$as_me: failed program was:" >&5 47017sed 's/^/| /' conftest.$ac_ext >&5 47018 47019 ac_cv_header_stdc=no 47020fi 47021 47022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47023 47024if test $ac_cv_header_stdc = yes; then 47025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 47026 cat >conftest.$ac_ext <<_ACEOF 47027/* confdefs.h. */ 47028_ACEOF 47029cat confdefs.h >>conftest.$ac_ext 47030cat >>conftest.$ac_ext <<_ACEOF 47031/* end confdefs.h. */ 47032#include <string.h> 47033 47034_ACEOF 47035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 47036 $EGREP "memchr" >/dev/null 2>&1; then 47037 : 47038else 47039 ac_cv_header_stdc=no 47040fi 47041rm -f conftest* 47042 47043fi 47044 47045if test $ac_cv_header_stdc = yes; then 47046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 47047 cat >conftest.$ac_ext <<_ACEOF 47048/* confdefs.h. */ 47049_ACEOF 47050cat confdefs.h >>conftest.$ac_ext 47051cat >>conftest.$ac_ext <<_ACEOF 47052/* end confdefs.h. */ 47053#include <stdlib.h> 47054 47055_ACEOF 47056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 47057 $EGREP "free" >/dev/null 2>&1; then 47058 : 47059else 47060 ac_cv_header_stdc=no 47061fi 47062rm -f conftest* 47063 47064fi 47065 47066if test $ac_cv_header_stdc = yes; then 47067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 47068 if test "$cross_compiling" = yes; then 47069 : 47070else 47071 cat >conftest.$ac_ext <<_ACEOF 47072/* confdefs.h. */ 47073_ACEOF 47074cat confdefs.h >>conftest.$ac_ext 47075cat >>conftest.$ac_ext <<_ACEOF 47076/* end confdefs.h. */ 47077#include <ctype.h> 47078#include <stdlib.h> 47079#if ((' ' & 0x0FF) == 0x020) 47080# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 47081# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 47082#else 47083# define ISLOWER(c) \ 47084 (('a' <= (c) && (c) <= 'i') \ 47085 || ('j' <= (c) && (c) <= 'r') \ 47086 || ('s' <= (c) && (c) <= 'z')) 47087# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 47088#endif 47089 47090#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 47091int 47092main () 47093{ 47094 int i; 47095 for (i = 0; i < 256; i++) 47096 if (XOR (islower (i), ISLOWER (i)) 47097 || toupper (i) != TOUPPER (i)) 47098 return 2; 47099 return 0; 47100} 47101_ACEOF 47102rm -f conftest$ac_exeext 47103if { (ac_try="$ac_link" 47104case "(($ac_try" in 47105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47106 *) ac_try_echo=$ac_try;; 47107esac 47108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47109 (eval "$ac_link") 2>&5 47110 ac_status=$? 47111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 47113 { (case "(($ac_try" in 47114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47115 *) ac_try_echo=$ac_try;; 47116esac 47117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47118 (eval "$ac_try") 2>&5 47119 ac_status=$? 47120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47121 (exit $ac_status); }; }; then 47122 : 47123else 47124 echo "$as_me: program exited with status $ac_status" >&5 47125echo "$as_me: failed program was:" >&5 47126sed 's/^/| /' conftest.$ac_ext >&5 47127 47128( exit $ac_status ) 47129ac_cv_header_stdc=no 47130fi 47131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 47132fi 47133 47134 47135fi 47136fi 47137{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 47138echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 47139if test $ac_cv_header_stdc = yes; then 47140 47141cat >>confdefs.h <<\_ACEOF 47142#define STDC_HEADERS 1 47143_ACEOF 47144 47145fi 47146 47147 47148 47149 47150 47151 47152 47153 47154 47155 47156 47157 47158 47159 47160 47161 47162 47163 47164 47165 47166 47167 47168 47169 47170 47171 47172 47173 47174 47175 47176 47177 47178 47179 47180 47181 47182 47183 47184 47185 47186 47187 47188 47189 47190 47191 47192 47193 47194 47195 47196 47197 47198 47199 47200for ac_header in \ 47201 arpa/ftp.h \ 47202 arpa/telnet.h \ 47203 bind/bitypes.h \ 47204 bsdsetjmp.h \ 47205 curses.h \ 47206 dlfcn.h \ 47207 fnmatch.h \ 47208 inttypes.h \ 47209 io.h \ 47210 libutil.h \ 47211 limits.h \ 47212 maillock.h \ 47213 netgroup.h \ 47214 netinet/in6_machtypes.h \ 47215 netinfo/ni.h \ 47216 pthread.h \ 47217 pty.h \ 47218 sac.h \ 47219 sgtty.h \ 47220 siad.h \ 47221 signal.h \ 47222 strings.h \ 47223 stropts.h \ 47224 sys/bitypes.h \ 47225 sys/category.h \ 47226 sys/file.h \ 47227 sys/filio.h \ 47228 sys/ioccom.h \ 47229 sys/mman.h \ 47230 sys/param.h \ 47231 sys/pty.h \ 47232 sys/ptyio.h \ 47233 sys/select.h \ 47234 sys/socket.h \ 47235 sys/str_tty.h \ 47236 sys/stream.h \ 47237 sys/stropts.h \ 47238 sys/syscall.h \ 47239 sys/termio.h \ 47240 sys/timeb.h \ 47241 sys/times.h \ 47242 sys/types.h \ 47243 sys/un.h \ 47244 termcap.h \ 47245 termio.h \ 47246 termios.h \ 47247 time.h \ 47248 tmpdir.h \ 47249 udb.h \ 47250 util.h \ 47251 utmp.h \ 47252 utmpx.h \ 47253 47254do 47255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47257 { echo "$as_me:$LINENO: checking for $ac_header" >&5 47258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47260 echo $ECHO_N "(cached) $ECHO_C" >&6 47261fi 47262ac_res=`eval echo '${'$as_ac_Header'}'` 47263 { echo "$as_me:$LINENO: result: $ac_res" >&5 47264echo "${ECHO_T}$ac_res" >&6; } 47265else 47266 # Is the header compilable? 47267{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 47268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 47269cat >conftest.$ac_ext <<_ACEOF 47270/* confdefs.h. */ 47271_ACEOF 47272cat confdefs.h >>conftest.$ac_ext 47273cat >>conftest.$ac_ext <<_ACEOF 47274/* end confdefs.h. */ 47275$ac_includes_default 47276#include <$ac_header> 47277_ACEOF 47278rm -f conftest.$ac_objext 47279if { (ac_try="$ac_compile" 47280case "(($ac_try" in 47281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47282 *) ac_try_echo=$ac_try;; 47283esac 47284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47285 (eval "$ac_compile") 2>conftest.er1 47286 ac_status=$? 47287 grep -v '^ *+' conftest.er1 >conftest.err 47288 rm -f conftest.er1 47289 cat conftest.err >&5 47290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47291 (exit $ac_status); } && { 47292 test -z "$ac_c_werror_flag" || 47293 test ! -s conftest.err 47294 } && test -s conftest.$ac_objext; then 47295 ac_header_compiler=yes 47296else 47297 echo "$as_me: failed program was:" >&5 47298sed 's/^/| /' conftest.$ac_ext >&5 47299 47300 ac_header_compiler=no 47301fi 47302 47303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 47305echo "${ECHO_T}$ac_header_compiler" >&6; } 47306 47307# Is the header present? 47308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 47309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 47310cat >conftest.$ac_ext <<_ACEOF 47311/* confdefs.h. */ 47312_ACEOF 47313cat confdefs.h >>conftest.$ac_ext 47314cat >>conftest.$ac_ext <<_ACEOF 47315/* end confdefs.h. */ 47316#include <$ac_header> 47317_ACEOF 47318if { (ac_try="$ac_cpp conftest.$ac_ext" 47319case "(($ac_try" in 47320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47321 *) ac_try_echo=$ac_try;; 47322esac 47323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 47325 ac_status=$? 47326 grep -v '^ *+' conftest.er1 >conftest.err 47327 rm -f conftest.er1 47328 cat conftest.err >&5 47329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47330 (exit $ac_status); } >/dev/null && { 47331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 47332 test ! -s conftest.err 47333 }; then 47334 ac_header_preproc=yes 47335else 47336 echo "$as_me: failed program was:" >&5 47337sed 's/^/| /' conftest.$ac_ext >&5 47338 47339 ac_header_preproc=no 47340fi 47341 47342rm -f conftest.err conftest.$ac_ext 47343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 47344echo "${ECHO_T}$ac_header_preproc" >&6; } 47345 47346# So? What about this header? 47347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 47348 yes:no: ) 47349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 47350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 47351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 47352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 47353 ac_header_preproc=yes 47354 ;; 47355 no:yes:* ) 47356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 47357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 47358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 47359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 47360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 47361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 47362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 47363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 47364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 47365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 47366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 47367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 47368 ( cat <<\_ASBOX 47369## ----------------------------------- ## 47370## Report this to heimdal-bugs@h5l.org ## 47371## ----------------------------------- ## 47372_ASBOX 47373 ) | sed "s/^/$as_me: WARNING: /" >&2 47374 ;; 47375esac 47376{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47379 echo $ECHO_N "(cached) $ECHO_C" >&6 47380else 47381 eval "$as_ac_Header=\$ac_header_preproc" 47382fi 47383ac_res=`eval echo '${'$as_ac_Header'}'` 47384 { echo "$as_me:$LINENO: result: $ac_res" >&5 47385echo "${ECHO_T}$ac_res" >&6; } 47386 47387fi 47388if test `eval echo '${'$as_ac_Header'}'` = yes; then 47389 cat >>confdefs.h <<_ACEOF 47390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47391_ACEOF 47392 47393fi 47394 47395done 47396 47397 47398 47399for ac_header in term.h 47400do 47401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47402{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47405 echo $ECHO_N "(cached) $ECHO_C" >&6 47406else 47407 cat >conftest.$ac_ext <<_ACEOF 47408/* confdefs.h. */ 47409_ACEOF 47410cat confdefs.h >>conftest.$ac_ext 47411cat >>conftest.$ac_ext <<_ACEOF 47412/* end confdefs.h. */ 47413#include <$ac_header> 47414_ACEOF 47415if { (ac_try="$ac_cpp conftest.$ac_ext" 47416case "(($ac_try" in 47417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47418 *) ac_try_echo=$ac_try;; 47419esac 47420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 47422 ac_status=$? 47423 grep -v '^ *+' conftest.er1 >conftest.err 47424 rm -f conftest.er1 47425 cat conftest.err >&5 47426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47427 (exit $ac_status); } >/dev/null && { 47428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 47429 test ! -s conftest.err 47430 }; then 47431 eval "$as_ac_Header=yes" 47432else 47433 echo "$as_me: failed program was:" >&5 47434sed 's/^/| /' conftest.$ac_ext >&5 47435 47436 eval "$as_ac_Header=no" 47437fi 47438 47439rm -f conftest.err conftest.$ac_ext 47440fi 47441ac_res=`eval echo '${'$as_ac_Header'}'` 47442 { echo "$as_me:$LINENO: result: $ac_res" >&5 47443echo "${ECHO_T}$ac_res" >&6; } 47444if test `eval echo '${'$as_ac_Header'}'` = yes; then 47445 cat >>confdefs.h <<_ACEOF 47446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47447_ACEOF 47448 47449fi 47450 47451done 47452 47453 47454 47455for ac_header in net/if.h 47456do 47457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47458{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47461 echo $ECHO_N "(cached) $ECHO_C" >&6 47462else 47463 cat >conftest.$ac_ext <<_ACEOF 47464/* confdefs.h. */ 47465_ACEOF 47466cat confdefs.h >>conftest.$ac_ext 47467cat >>conftest.$ac_ext <<_ACEOF 47468/* end confdefs.h. */ 47469$ac_includes_default 47470#if HAVE_SYS_SOCKET_H 47471#include <sys/socket.h> 47472#endif 47473 47474#include <$ac_header> 47475_ACEOF 47476rm -f conftest.$ac_objext 47477if { (ac_try="$ac_compile" 47478case "(($ac_try" in 47479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47480 *) ac_try_echo=$ac_try;; 47481esac 47482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47483 (eval "$ac_compile") 2>conftest.er1 47484 ac_status=$? 47485 grep -v '^ *+' conftest.er1 >conftest.err 47486 rm -f conftest.er1 47487 cat conftest.err >&5 47488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47489 (exit $ac_status); } && { 47490 test -z "$ac_c_werror_flag" || 47491 test ! -s conftest.err 47492 } && test -s conftest.$ac_objext; then 47493 eval "$as_ac_Header=yes" 47494else 47495 echo "$as_me: failed program was:" >&5 47496sed 's/^/| /' conftest.$ac_ext >&5 47497 47498 eval "$as_ac_Header=no" 47499fi 47500 47501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47502fi 47503ac_res=`eval echo '${'$as_ac_Header'}'` 47504 { echo "$as_me:$LINENO: result: $ac_res" >&5 47505echo "${ECHO_T}$ac_res" >&6; } 47506if test `eval echo '${'$as_ac_Header'}'` = yes; then 47507 cat >>confdefs.h <<_ACEOF 47508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47509_ACEOF 47510 47511fi 47512 47513done 47514 47515 47516 47517for ac_header in sys/ptyvar.h 47518do 47519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47520{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47523 echo $ECHO_N "(cached) $ECHO_C" >&6 47524else 47525 cat >conftest.$ac_ext <<_ACEOF 47526/* confdefs.h. */ 47527_ACEOF 47528cat confdefs.h >>conftest.$ac_ext 47529cat >>conftest.$ac_ext <<_ACEOF 47530/* end confdefs.h. */ 47531$ac_includes_default 47532#if HAVE_SYS_TTY_H 47533#include <sys/tty.h> 47534#endif 47535 47536#include <$ac_header> 47537_ACEOF 47538rm -f conftest.$ac_objext 47539if { (ac_try="$ac_compile" 47540case "(($ac_try" in 47541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47542 *) ac_try_echo=$ac_try;; 47543esac 47544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47545 (eval "$ac_compile") 2>conftest.er1 47546 ac_status=$? 47547 grep -v '^ *+' conftest.er1 >conftest.err 47548 rm -f conftest.er1 47549 cat conftest.err >&5 47550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47551 (exit $ac_status); } && { 47552 test -z "$ac_c_werror_flag" || 47553 test ! -s conftest.err 47554 } && test -s conftest.$ac_objext; then 47555 eval "$as_ac_Header=yes" 47556else 47557 echo "$as_me: failed program was:" >&5 47558sed 's/^/| /' conftest.$ac_ext >&5 47559 47560 eval "$as_ac_Header=no" 47561fi 47562 47563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47564fi 47565ac_res=`eval echo '${'$as_ac_Header'}'` 47566 { echo "$as_me:$LINENO: result: $ac_res" >&5 47567echo "${ECHO_T}$ac_res" >&6; } 47568if test `eval echo '${'$as_ac_Header'}'` = yes; then 47569 cat >>confdefs.h <<_ACEOF 47570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47571_ACEOF 47572 47573fi 47574 47575done 47576 47577 47578 47579for ac_header in sys/strtty.h 47580do 47581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47582{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47585 echo $ECHO_N "(cached) $ECHO_C" >&6 47586else 47587 cat >conftest.$ac_ext <<_ACEOF 47588/* confdefs.h. */ 47589_ACEOF 47590cat confdefs.h >>conftest.$ac_ext 47591cat >>conftest.$ac_ext <<_ACEOF 47592/* end confdefs.h. */ 47593$ac_includes_default 47594#if HAVE_TERMIOS_H 47595#include <termios.h> 47596#endif 47597#if HAVE_SYS_STREAM_H 47598#include <sys/stream.h> 47599#endif 47600 47601#include <$ac_header> 47602_ACEOF 47603rm -f conftest.$ac_objext 47604if { (ac_try="$ac_compile" 47605case "(($ac_try" in 47606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47607 *) ac_try_echo=$ac_try;; 47608esac 47609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47610 (eval "$ac_compile") 2>conftest.er1 47611 ac_status=$? 47612 grep -v '^ *+' conftest.er1 >conftest.err 47613 rm -f conftest.er1 47614 cat conftest.err >&5 47615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47616 (exit $ac_status); } && { 47617 test -z "$ac_c_werror_flag" || 47618 test ! -s conftest.err 47619 } && test -s conftest.$ac_objext; then 47620 eval "$as_ac_Header=yes" 47621else 47622 echo "$as_me: failed program was:" >&5 47623sed 's/^/| /' conftest.$ac_ext >&5 47624 47625 eval "$as_ac_Header=no" 47626fi 47627 47628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47629fi 47630ac_res=`eval echo '${'$as_ac_Header'}'` 47631 { echo "$as_me:$LINENO: result: $ac_res" >&5 47632echo "${ECHO_T}$ac_res" >&6; } 47633if test `eval echo '${'$as_ac_Header'}'` = yes; then 47634 cat >>confdefs.h <<_ACEOF 47635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47636_ACEOF 47637 47638fi 47639 47640done 47641 47642 47643 47644for ac_header in sys/ucred.h 47645do 47646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47647{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47650 echo $ECHO_N "(cached) $ECHO_C" >&6 47651else 47652 cat >conftest.$ac_ext <<_ACEOF 47653/* confdefs.h. */ 47654_ACEOF 47655cat confdefs.h >>conftest.$ac_ext 47656cat >>conftest.$ac_ext <<_ACEOF 47657/* end confdefs.h. */ 47658$ac_includes_default 47659#if HAVE_SYS_TYPES_H 47660#include <sys/types.h> 47661#endif 47662#if HAVE_SYS_PARAM_H 47663#include <sys/param.h> 47664#endif 47665 47666#include <$ac_header> 47667_ACEOF 47668rm -f conftest.$ac_objext 47669if { (ac_try="$ac_compile" 47670case "(($ac_try" in 47671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47672 *) ac_try_echo=$ac_try;; 47673esac 47674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47675 (eval "$ac_compile") 2>conftest.er1 47676 ac_status=$? 47677 grep -v '^ *+' conftest.er1 >conftest.err 47678 rm -f conftest.er1 47679 cat conftest.err >&5 47680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47681 (exit $ac_status); } && { 47682 test -z "$ac_c_werror_flag" || 47683 test ! -s conftest.err 47684 } && test -s conftest.$ac_objext; then 47685 eval "$as_ac_Header=yes" 47686else 47687 echo "$as_me: failed program was:" >&5 47688sed 's/^/| /' conftest.$ac_ext >&5 47689 47690 eval "$as_ac_Header=no" 47691fi 47692 47693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47694fi 47695ac_res=`eval echo '${'$as_ac_Header'}'` 47696 { echo "$as_me:$LINENO: result: $ac_res" >&5 47697echo "${ECHO_T}$ac_res" >&6; } 47698if test `eval echo '${'$as_ac_Header'}'` = yes; then 47699 cat >>confdefs.h <<_ACEOF 47700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47701_ACEOF 47702 47703fi 47704 47705done 47706 47707 47708 47709for ac_header in security/pam_modules.h 47710do 47711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 47712{ echo "$as_me:$LINENO: checking for $ac_header" >&5 47713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 47714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 47715 echo $ECHO_N "(cached) $ECHO_C" >&6 47716else 47717 cat >conftest.$ac_ext <<_ACEOF 47718/* confdefs.h. */ 47719_ACEOF 47720cat confdefs.h >>conftest.$ac_ext 47721cat >>conftest.$ac_ext <<_ACEOF 47722/* end confdefs.h. */ 47723$ac_includes_default 47724#include <security/pam_appl.h> 47725 47726 47727#include <$ac_header> 47728_ACEOF 47729rm -f conftest.$ac_objext 47730if { (ac_try="$ac_compile" 47731case "(($ac_try" in 47732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47733 *) ac_try_echo=$ac_try;; 47734esac 47735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47736 (eval "$ac_compile") 2>conftest.er1 47737 ac_status=$? 47738 grep -v '^ *+' conftest.er1 >conftest.err 47739 rm -f conftest.er1 47740 cat conftest.err >&5 47741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47742 (exit $ac_status); } && { 47743 test -z "$ac_c_werror_flag" || 47744 test ! -s conftest.err 47745 } && test -s conftest.$ac_objext; then 47746 eval "$as_ac_Header=yes" 47747else 47748 echo "$as_me: failed program was:" >&5 47749sed 's/^/| /' conftest.$ac_ext >&5 47750 47751 eval "$as_ac_Header=no" 47752fi 47753 47754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47755fi 47756ac_res=`eval echo '${'$as_ac_Header'}'` 47757 { echo "$as_me:$LINENO: result: $ac_res" >&5 47758echo "${ECHO_T}$ac_res" >&6; } 47759if test `eval echo '${'$as_ac_Header'}'` = yes; then 47760 cat >>confdefs.h <<_ACEOF 47761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 47762_ACEOF 47763 47764fi 47765 47766done 47767 47768 47769# Check whether --enable-netinfo was given. 47770if test "${enable_netinfo+set}" = set; then 47771 enableval=$enable_netinfo; 47772fi 47773 47774 47775if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 47776 47777cat >>confdefs.h <<\_ACEOF 47778#define HAVE_NETINFO 1 47779_ACEOF 47780 47781fi 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 47792{ echo "$as_me:$LINENO: checking for logwtmp" >&5 47793echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6; } 47794if test "${ac_cv_funclib_logwtmp+set}" = set; then 47795 echo $ECHO_N "(cached) $ECHO_C" >&6 47796else 47797 47798if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 47799 ac_save_LIBS="$LIBS" 47800 for ac_lib in "" util; do 47801 case "$ac_lib" in 47802 "") ;; 47803 yes) ac_lib="" ;; 47804 no) continue ;; 47805 -l*) ;; 47806 *) ac_lib="-l$ac_lib" ;; 47807 esac 47808 LIBS=" $ac_lib $ac_save_LIBS" 47809 cat >conftest.$ac_ext <<_ACEOF 47810/* confdefs.h. */ 47811_ACEOF 47812cat confdefs.h >>conftest.$ac_ext 47813cat >>conftest.$ac_ext <<_ACEOF 47814/* end confdefs.h. */ 47815 47816#ifdef HAVE_UTIL_H 47817#include <util.h> 47818#endif 47819 47820int 47821main () 47822{ 47823logwtmp(0,0,0) 47824 ; 47825 return 0; 47826} 47827_ACEOF 47828rm -f conftest.$ac_objext conftest$ac_exeext 47829if { (ac_try="$ac_link" 47830case "(($ac_try" in 47831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47832 *) ac_try_echo=$ac_try;; 47833esac 47834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47835 (eval "$ac_link") 2>conftest.er1 47836 ac_status=$? 47837 grep -v '^ *+' conftest.er1 >conftest.err 47838 rm -f conftest.er1 47839 cat conftest.err >&5 47840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47841 (exit $ac_status); } && { 47842 test -z "$ac_c_werror_flag" || 47843 test ! -s conftest.err 47844 } && test -s conftest$ac_exeext && 47845 $as_test_x conftest$ac_exeext; then 47846 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 47847else 47848 echo "$as_me: failed program was:" >&5 47849sed 's/^/| /' conftest.$ac_ext >&5 47850 47851 47852fi 47853 47854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 47855 conftest$ac_exeext conftest.$ac_ext 47856 done 47857 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 47858 LIBS="$ac_save_LIBS" 47859fi 47860 47861fi 47862 47863 47864eval "ac_res=\$ac_cv_funclib_logwtmp" 47865 47866if false; then 47867 47868for ac_func in logwtmp 47869do 47870as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 47871{ echo "$as_me:$LINENO: checking for $ac_func" >&5 47872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 47873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 47874 echo $ECHO_N "(cached) $ECHO_C" >&6 47875else 47876 cat >conftest.$ac_ext <<_ACEOF 47877/* confdefs.h. */ 47878_ACEOF 47879cat confdefs.h >>conftest.$ac_ext 47880cat >>conftest.$ac_ext <<_ACEOF 47881/* end confdefs.h. */ 47882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 47883 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 47884#define $ac_func innocuous_$ac_func 47885 47886/* System header to define __stub macros and hopefully few prototypes, 47887 which can conflict with char $ac_func (); below. 47888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 47889 <limits.h> exists even on freestanding compilers. */ 47890 47891#ifdef __STDC__ 47892# include <limits.h> 47893#else 47894# include <assert.h> 47895#endif 47896 47897#undef $ac_func 47898 47899/* Override any GCC internal prototype to avoid an error. 47900 Use char because int might match the return type of a GCC 47901 builtin and then its argument prototype would still apply. */ 47902#ifdef __cplusplus 47903extern "C" 47904#endif 47905char $ac_func (); 47906/* The GNU C library defines this for functions which it implements 47907 to always fail with ENOSYS. Some functions are actually named 47908 something starting with __ and the normal name is an alias. */ 47909#if defined __stub_$ac_func || defined __stub___$ac_func 47910choke me 47911#endif 47912 47913int 47914main () 47915{ 47916return $ac_func (); 47917 ; 47918 return 0; 47919} 47920_ACEOF 47921rm -f conftest.$ac_objext conftest$ac_exeext 47922if { (ac_try="$ac_link" 47923case "(($ac_try" in 47924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 47925 *) ac_try_echo=$ac_try;; 47926esac 47927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 47928 (eval "$ac_link") 2>conftest.er1 47929 ac_status=$? 47930 grep -v '^ *+' conftest.er1 >conftest.err 47931 rm -f conftest.er1 47932 cat conftest.err >&5 47933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 47934 (exit $ac_status); } && { 47935 test -z "$ac_c_werror_flag" || 47936 test ! -s conftest.err 47937 } && test -s conftest$ac_exeext && 47938 $as_test_x conftest$ac_exeext; then 47939 eval "$as_ac_var=yes" 47940else 47941 echo "$as_me: failed program was:" >&5 47942sed 's/^/| /' conftest.$ac_ext >&5 47943 47944 eval "$as_ac_var=no" 47945fi 47946 47947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 47948 conftest$ac_exeext conftest.$ac_ext 47949fi 47950ac_res=`eval echo '${'$as_ac_var'}'` 47951 { echo "$as_me:$LINENO: result: $ac_res" >&5 47952echo "${ECHO_T}$ac_res" >&6; } 47953if test `eval echo '${'$as_ac_var'}'` = yes; then 47954 cat >>confdefs.h <<_ACEOF 47955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 47956_ACEOF 47957 47958fi 47959done 47960 47961fi 47962# logwtmp 47963eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 47964eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 47965eval "LIB_logwtmp=$ac_res" 47966 47967case "$ac_res" in 47968 yes) 47969 eval "ac_cv_func_logwtmp=yes" 47970 eval "LIB_logwtmp=" 47971 cat >>confdefs.h <<_ACEOF 47972#define $ac_tr_func 1 47973_ACEOF 47974 47975 { echo "$as_me:$LINENO: result: yes" >&5 47976echo "${ECHO_T}yes" >&6; } 47977 ;; 47978 no) 47979 eval "ac_cv_func_logwtmp=no" 47980 eval "LIB_logwtmp=" 47981 { echo "$as_me:$LINENO: result: no" >&5 47982echo "${ECHO_T}no" >&6; } 47983 ;; 47984 *) 47985 eval "ac_cv_func_logwtmp=yes" 47986 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 47987 cat >>confdefs.h <<_ACEOF 47988#define $ac_tr_func 1 47989_ACEOF 47990 47991 cat >>confdefs.h <<_ACEOF 47992#define $ac_tr_lib 1 47993_ACEOF 47994 47995 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 47996echo "${ECHO_T}yes, in $ac_res" >&6; } 47997 ;; 47998esac 47999 48000 48001 48002 48003 48004{ echo "$as_me:$LINENO: checking for logout" >&5 48005echo $ECHO_N "checking for logout... $ECHO_C" >&6; } 48006if test "${ac_cv_funclib_logout+set}" = set; then 48007 echo $ECHO_N "(cached) $ECHO_C" >&6 48008else 48009 48010if eval "test \"\$ac_cv_func_logout\" != yes" ; then 48011 ac_save_LIBS="$LIBS" 48012 for ac_lib in "" util; do 48013 case "$ac_lib" in 48014 "") ;; 48015 yes) ac_lib="" ;; 48016 no) continue ;; 48017 -l*) ;; 48018 *) ac_lib="-l$ac_lib" ;; 48019 esac 48020 LIBS=" $ac_lib $ac_save_LIBS" 48021 cat >conftest.$ac_ext <<_ACEOF 48022/* confdefs.h. */ 48023_ACEOF 48024cat confdefs.h >>conftest.$ac_ext 48025cat >>conftest.$ac_ext <<_ACEOF 48026/* end confdefs.h. */ 48027 48028#ifdef HAVE_UTIL_H 48029#include <util.h> 48030#endif 48031 48032int 48033main () 48034{ 48035logout(0) 48036 ; 48037 return 0; 48038} 48039_ACEOF 48040rm -f conftest.$ac_objext conftest$ac_exeext 48041if { (ac_try="$ac_link" 48042case "(($ac_try" in 48043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48044 *) ac_try_echo=$ac_try;; 48045esac 48046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48047 (eval "$ac_link") 2>conftest.er1 48048 ac_status=$? 48049 grep -v '^ *+' conftest.er1 >conftest.err 48050 rm -f conftest.er1 48051 cat conftest.err >&5 48052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48053 (exit $ac_status); } && { 48054 test -z "$ac_c_werror_flag" || 48055 test ! -s conftest.err 48056 } && test -s conftest$ac_exeext && 48057 $as_test_x conftest$ac_exeext; then 48058 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 48059else 48060 echo "$as_me: failed program was:" >&5 48061sed 's/^/| /' conftest.$ac_ext >&5 48062 48063 48064fi 48065 48066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48067 conftest$ac_exeext conftest.$ac_ext 48068 done 48069 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 48070 LIBS="$ac_save_LIBS" 48071fi 48072 48073fi 48074 48075 48076eval "ac_res=\$ac_cv_funclib_logout" 48077 48078if false; then 48079 48080for ac_func in logout 48081do 48082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 48083{ echo "$as_me:$LINENO: checking for $ac_func" >&5 48084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 48085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 48086 echo $ECHO_N "(cached) $ECHO_C" >&6 48087else 48088 cat >conftest.$ac_ext <<_ACEOF 48089/* confdefs.h. */ 48090_ACEOF 48091cat confdefs.h >>conftest.$ac_ext 48092cat >>conftest.$ac_ext <<_ACEOF 48093/* end confdefs.h. */ 48094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 48095 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 48096#define $ac_func innocuous_$ac_func 48097 48098/* System header to define __stub macros and hopefully few prototypes, 48099 which can conflict with char $ac_func (); below. 48100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48101 <limits.h> exists even on freestanding compilers. */ 48102 48103#ifdef __STDC__ 48104# include <limits.h> 48105#else 48106# include <assert.h> 48107#endif 48108 48109#undef $ac_func 48110 48111/* Override any GCC internal prototype to avoid an error. 48112 Use char because int might match the return type of a GCC 48113 builtin and then its argument prototype would still apply. */ 48114#ifdef __cplusplus 48115extern "C" 48116#endif 48117char $ac_func (); 48118/* The GNU C library defines this for functions which it implements 48119 to always fail with ENOSYS. Some functions are actually named 48120 something starting with __ and the normal name is an alias. */ 48121#if defined __stub_$ac_func || defined __stub___$ac_func 48122choke me 48123#endif 48124 48125int 48126main () 48127{ 48128return $ac_func (); 48129 ; 48130 return 0; 48131} 48132_ACEOF 48133rm -f conftest.$ac_objext conftest$ac_exeext 48134if { (ac_try="$ac_link" 48135case "(($ac_try" in 48136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48137 *) ac_try_echo=$ac_try;; 48138esac 48139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48140 (eval "$ac_link") 2>conftest.er1 48141 ac_status=$? 48142 grep -v '^ *+' conftest.er1 >conftest.err 48143 rm -f conftest.er1 48144 cat conftest.err >&5 48145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48146 (exit $ac_status); } && { 48147 test -z "$ac_c_werror_flag" || 48148 test ! -s conftest.err 48149 } && test -s conftest$ac_exeext && 48150 $as_test_x conftest$ac_exeext; then 48151 eval "$as_ac_var=yes" 48152else 48153 echo "$as_me: failed program was:" >&5 48154sed 's/^/| /' conftest.$ac_ext >&5 48155 48156 eval "$as_ac_var=no" 48157fi 48158 48159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48160 conftest$ac_exeext conftest.$ac_ext 48161fi 48162ac_res=`eval echo '${'$as_ac_var'}'` 48163 { echo "$as_me:$LINENO: result: $ac_res" >&5 48164echo "${ECHO_T}$ac_res" >&6; } 48165if test `eval echo '${'$as_ac_var'}'` = yes; then 48166 cat >>confdefs.h <<_ACEOF 48167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 48168_ACEOF 48169 48170fi 48171done 48172 48173fi 48174# logout 48175eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48176eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48177eval "LIB_logout=$ac_res" 48178 48179case "$ac_res" in 48180 yes) 48181 eval "ac_cv_func_logout=yes" 48182 eval "LIB_logout=" 48183 cat >>confdefs.h <<_ACEOF 48184#define $ac_tr_func 1 48185_ACEOF 48186 48187 { echo "$as_me:$LINENO: result: yes" >&5 48188echo "${ECHO_T}yes" >&6; } 48189 ;; 48190 no) 48191 eval "ac_cv_func_logout=no" 48192 eval "LIB_logout=" 48193 { echo "$as_me:$LINENO: result: no" >&5 48194echo "${ECHO_T}no" >&6; } 48195 ;; 48196 *) 48197 eval "ac_cv_func_logout=yes" 48198 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 48199 cat >>confdefs.h <<_ACEOF 48200#define $ac_tr_func 1 48201_ACEOF 48202 48203 cat >>confdefs.h <<_ACEOF 48204#define $ac_tr_lib 1 48205_ACEOF 48206 48207 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 48208echo "${ECHO_T}yes, in $ac_res" >&6; } 48209 ;; 48210esac 48211 48212 48213 48214 48215 48216{ echo "$as_me:$LINENO: checking for openpty" >&5 48217echo $ECHO_N "checking for openpty... $ECHO_C" >&6; } 48218if test "${ac_cv_funclib_openpty+set}" = set; then 48219 echo $ECHO_N "(cached) $ECHO_C" >&6 48220else 48221 48222if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 48223 ac_save_LIBS="$LIBS" 48224 for ac_lib in "" util; do 48225 case "$ac_lib" in 48226 "") ;; 48227 yes) ac_lib="" ;; 48228 no) continue ;; 48229 -l*) ;; 48230 *) ac_lib="-l$ac_lib" ;; 48231 esac 48232 LIBS=" $ac_lib $ac_save_LIBS" 48233 cat >conftest.$ac_ext <<_ACEOF 48234/* confdefs.h. */ 48235_ACEOF 48236cat confdefs.h >>conftest.$ac_ext 48237cat >>conftest.$ac_ext <<_ACEOF 48238/* end confdefs.h. */ 48239 48240#ifdef HAVE_UTIL_H 48241#include <util.h> 48242#endif 48243 48244int 48245main () 48246{ 48247openpty(0,0,0,0,0) 48248 ; 48249 return 0; 48250} 48251_ACEOF 48252rm -f conftest.$ac_objext conftest$ac_exeext 48253if { (ac_try="$ac_link" 48254case "(($ac_try" in 48255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48256 *) ac_try_echo=$ac_try;; 48257esac 48258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48259 (eval "$ac_link") 2>conftest.er1 48260 ac_status=$? 48261 grep -v '^ *+' conftest.er1 >conftest.err 48262 rm -f conftest.er1 48263 cat conftest.err >&5 48264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48265 (exit $ac_status); } && { 48266 test -z "$ac_c_werror_flag" || 48267 test ! -s conftest.err 48268 } && test -s conftest$ac_exeext && 48269 $as_test_x conftest$ac_exeext; then 48270 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 48271else 48272 echo "$as_me: failed program was:" >&5 48273sed 's/^/| /' conftest.$ac_ext >&5 48274 48275 48276fi 48277 48278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48279 conftest$ac_exeext conftest.$ac_ext 48280 done 48281 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 48282 LIBS="$ac_save_LIBS" 48283fi 48284 48285fi 48286 48287 48288eval "ac_res=\$ac_cv_funclib_openpty" 48289 48290if false; then 48291 48292for ac_func in openpty 48293do 48294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 48295{ echo "$as_me:$LINENO: checking for $ac_func" >&5 48296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 48297if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 48298 echo $ECHO_N "(cached) $ECHO_C" >&6 48299else 48300 cat >conftest.$ac_ext <<_ACEOF 48301/* confdefs.h. */ 48302_ACEOF 48303cat confdefs.h >>conftest.$ac_ext 48304cat >>conftest.$ac_ext <<_ACEOF 48305/* end confdefs.h. */ 48306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 48307 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 48308#define $ac_func innocuous_$ac_func 48309 48310/* System header to define __stub macros and hopefully few prototypes, 48311 which can conflict with char $ac_func (); below. 48312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48313 <limits.h> exists even on freestanding compilers. */ 48314 48315#ifdef __STDC__ 48316# include <limits.h> 48317#else 48318# include <assert.h> 48319#endif 48320 48321#undef $ac_func 48322 48323/* Override any GCC internal prototype to avoid an error. 48324 Use char because int might match the return type of a GCC 48325 builtin and then its argument prototype would still apply. */ 48326#ifdef __cplusplus 48327extern "C" 48328#endif 48329char $ac_func (); 48330/* The GNU C library defines this for functions which it implements 48331 to always fail with ENOSYS. Some functions are actually named 48332 something starting with __ and the normal name is an alias. */ 48333#if defined __stub_$ac_func || defined __stub___$ac_func 48334choke me 48335#endif 48336 48337int 48338main () 48339{ 48340return $ac_func (); 48341 ; 48342 return 0; 48343} 48344_ACEOF 48345rm -f conftest.$ac_objext conftest$ac_exeext 48346if { (ac_try="$ac_link" 48347case "(($ac_try" in 48348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48349 *) ac_try_echo=$ac_try;; 48350esac 48351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48352 (eval "$ac_link") 2>conftest.er1 48353 ac_status=$? 48354 grep -v '^ *+' conftest.er1 >conftest.err 48355 rm -f conftest.er1 48356 cat conftest.err >&5 48357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48358 (exit $ac_status); } && { 48359 test -z "$ac_c_werror_flag" || 48360 test ! -s conftest.err 48361 } && test -s conftest$ac_exeext && 48362 $as_test_x conftest$ac_exeext; then 48363 eval "$as_ac_var=yes" 48364else 48365 echo "$as_me: failed program was:" >&5 48366sed 's/^/| /' conftest.$ac_ext >&5 48367 48368 eval "$as_ac_var=no" 48369fi 48370 48371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48372 conftest$ac_exeext conftest.$ac_ext 48373fi 48374ac_res=`eval echo '${'$as_ac_var'}'` 48375 { echo "$as_me:$LINENO: result: $ac_res" >&5 48376echo "${ECHO_T}$ac_res" >&6; } 48377if test `eval echo '${'$as_ac_var'}'` = yes; then 48378 cat >>confdefs.h <<_ACEOF 48379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 48380_ACEOF 48381 48382fi 48383done 48384 48385fi 48386# openpty 48387eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48388eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48389eval "LIB_openpty=$ac_res" 48390 48391case "$ac_res" in 48392 yes) 48393 eval "ac_cv_func_openpty=yes" 48394 eval "LIB_openpty=" 48395 cat >>confdefs.h <<_ACEOF 48396#define $ac_tr_func 1 48397_ACEOF 48398 48399 { echo "$as_me:$LINENO: result: yes" >&5 48400echo "${ECHO_T}yes" >&6; } 48401 ;; 48402 no) 48403 eval "ac_cv_func_openpty=no" 48404 eval "LIB_openpty=" 48405 { echo "$as_me:$LINENO: result: no" >&5 48406echo "${ECHO_T}no" >&6; } 48407 ;; 48408 *) 48409 eval "ac_cv_func_openpty=yes" 48410 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 48411 cat >>confdefs.h <<_ACEOF 48412#define $ac_tr_func 1 48413_ACEOF 48414 48415 cat >>confdefs.h <<_ACEOF 48416#define $ac_tr_lib 1 48417_ACEOF 48418 48419 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 48420echo "${ECHO_T}yes, in $ac_res" >&6; } 48421 ;; 48422esac 48423 48424 48425 48426 48427 48428 48429{ echo "$as_me:$LINENO: checking for tgetent" >&5 48430echo $ECHO_N "checking for tgetent... $ECHO_C" >&6; } 48431if test "${ac_cv_funclib_tgetent+set}" = set; then 48432 echo $ECHO_N "(cached) $ECHO_C" >&6 48433else 48434 48435if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 48436 ac_save_LIBS="$LIBS" 48437 for ac_lib in "" termcap ncurses curses; do 48438 case "$ac_lib" in 48439 "") ;; 48440 yes) ac_lib="" ;; 48441 no) continue ;; 48442 -l*) ;; 48443 *) ac_lib="-l$ac_lib" ;; 48444 esac 48445 LIBS=" $ac_lib $ac_save_LIBS" 48446 cat >conftest.$ac_ext <<_ACEOF 48447/* confdefs.h. */ 48448_ACEOF 48449cat confdefs.h >>conftest.$ac_ext 48450cat >>conftest.$ac_ext <<_ACEOF 48451/* end confdefs.h. */ 48452 48453#ifdef HAVE_TERMCAP_H 48454#include <termcap.h> 48455#endif 48456#ifdef HAVE_CURSES_H 48457#include <curses.h> 48458#endif 48459 48460int 48461main () 48462{ 48463tgetent(0,0) 48464 ; 48465 return 0; 48466} 48467_ACEOF 48468rm -f conftest.$ac_objext conftest$ac_exeext 48469if { (ac_try="$ac_link" 48470case "(($ac_try" in 48471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48472 *) ac_try_echo=$ac_try;; 48473esac 48474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48475 (eval "$ac_link") 2>conftest.er1 48476 ac_status=$? 48477 grep -v '^ *+' conftest.er1 >conftest.err 48478 rm -f conftest.er1 48479 cat conftest.err >&5 48480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48481 (exit $ac_status); } && { 48482 test -z "$ac_c_werror_flag" || 48483 test ! -s conftest.err 48484 } && test -s conftest$ac_exeext && 48485 $as_test_x conftest$ac_exeext; then 48486 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 48487else 48488 echo "$as_me: failed program was:" >&5 48489sed 's/^/| /' conftest.$ac_ext >&5 48490 48491 48492fi 48493 48494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48495 conftest$ac_exeext conftest.$ac_ext 48496 done 48497 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 48498 LIBS="$ac_save_LIBS" 48499fi 48500 48501fi 48502 48503 48504eval "ac_res=\$ac_cv_funclib_tgetent" 48505 48506if false; then 48507 48508for ac_func in tgetent 48509do 48510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 48511{ echo "$as_me:$LINENO: checking for $ac_func" >&5 48512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 48513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 48514 echo $ECHO_N "(cached) $ECHO_C" >&6 48515else 48516 cat >conftest.$ac_ext <<_ACEOF 48517/* confdefs.h. */ 48518_ACEOF 48519cat confdefs.h >>conftest.$ac_ext 48520cat >>conftest.$ac_ext <<_ACEOF 48521/* end confdefs.h. */ 48522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 48523 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 48524#define $ac_func innocuous_$ac_func 48525 48526/* System header to define __stub macros and hopefully few prototypes, 48527 which can conflict with char $ac_func (); below. 48528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48529 <limits.h> exists even on freestanding compilers. */ 48530 48531#ifdef __STDC__ 48532# include <limits.h> 48533#else 48534# include <assert.h> 48535#endif 48536 48537#undef $ac_func 48538 48539/* Override any GCC internal prototype to avoid an error. 48540 Use char because int might match the return type of a GCC 48541 builtin and then its argument prototype would still apply. */ 48542#ifdef __cplusplus 48543extern "C" 48544#endif 48545char $ac_func (); 48546/* The GNU C library defines this for functions which it implements 48547 to always fail with ENOSYS. Some functions are actually named 48548 something starting with __ and the normal name is an alias. */ 48549#if defined __stub_$ac_func || defined __stub___$ac_func 48550choke me 48551#endif 48552 48553int 48554main () 48555{ 48556return $ac_func (); 48557 ; 48558 return 0; 48559} 48560_ACEOF 48561rm -f conftest.$ac_objext conftest$ac_exeext 48562if { (ac_try="$ac_link" 48563case "(($ac_try" in 48564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48565 *) ac_try_echo=$ac_try;; 48566esac 48567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48568 (eval "$ac_link") 2>conftest.er1 48569 ac_status=$? 48570 grep -v '^ *+' conftest.er1 >conftest.err 48571 rm -f conftest.er1 48572 cat conftest.err >&5 48573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48574 (exit $ac_status); } && { 48575 test -z "$ac_c_werror_flag" || 48576 test ! -s conftest.err 48577 } && test -s conftest$ac_exeext && 48578 $as_test_x conftest$ac_exeext; then 48579 eval "$as_ac_var=yes" 48580else 48581 echo "$as_me: failed program was:" >&5 48582sed 's/^/| /' conftest.$ac_ext >&5 48583 48584 eval "$as_ac_var=no" 48585fi 48586 48587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48588 conftest$ac_exeext conftest.$ac_ext 48589fi 48590ac_res=`eval echo '${'$as_ac_var'}'` 48591 { echo "$as_me:$LINENO: result: $ac_res" >&5 48592echo "${ECHO_T}$ac_res" >&6; } 48593if test `eval echo '${'$as_ac_var'}'` = yes; then 48594 cat >>confdefs.h <<_ACEOF 48595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 48596_ACEOF 48597 48598fi 48599done 48600 48601fi 48602# tgetent 48603eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48604eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 48605eval "LIB_tgetent=$ac_res" 48606 48607case "$ac_res" in 48608 yes) 48609 eval "ac_cv_func_tgetent=yes" 48610 eval "LIB_tgetent=" 48611 cat >>confdefs.h <<_ACEOF 48612#define $ac_tr_func 1 48613_ACEOF 48614 48615 { echo "$as_me:$LINENO: result: yes" >&5 48616echo "${ECHO_T}yes" >&6; } 48617 ;; 48618 no) 48619 eval "ac_cv_func_tgetent=no" 48620 eval "LIB_tgetent=" 48621 { echo "$as_me:$LINENO: result: no" >&5 48622echo "${ECHO_T}no" >&6; } 48623 ;; 48624 *) 48625 eval "ac_cv_func_tgetent=yes" 48626 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 48627 cat >>confdefs.h <<_ACEOF 48628#define $ac_tr_func 1 48629_ACEOF 48630 48631 cat >>confdefs.h <<_ACEOF 48632#define $ac_tr_lib 1 48633_ACEOF 48634 48635 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 48636echo "${ECHO_T}yes, in $ac_res" >&6; } 48637 ;; 48638esac 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673for ac_func in \ 48674 _getpty \ 48675 _scrsize \ 48676 arc4random \ 48677 fcntl \ 48678 getpeereid \ 48679 getpeerucred \ 48680 grantpt \ 48681 mktime \ 48682 ptsname \ 48683 rand \ 48684 revoke \ 48685 select \ 48686 setitimer \ 48687 setpcred \ 48688 setpgid \ 48689 setproctitle \ 48690 setregid \ 48691 setresgid \ 48692 setresuid \ 48693 setreuid \ 48694 setsid \ 48695 setutent \ 48696 sigaction \ 48697 strstr \ 48698 ttyname \ 48699 ttyslot \ 48700 umask \ 48701 unlockpt \ 48702 vhangup \ 48703 yp_get_default_domain \ 48704 48705do 48706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 48707{ echo "$as_me:$LINENO: checking for $ac_func" >&5 48708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 48709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 48710 echo $ECHO_N "(cached) $ECHO_C" >&6 48711else 48712 cat >conftest.$ac_ext <<_ACEOF 48713/* confdefs.h. */ 48714_ACEOF 48715cat confdefs.h >>conftest.$ac_ext 48716cat >>conftest.$ac_ext <<_ACEOF 48717/* end confdefs.h. */ 48718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 48719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 48720#define $ac_func innocuous_$ac_func 48721 48722/* System header to define __stub macros and hopefully few prototypes, 48723 which can conflict with char $ac_func (); below. 48724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48725 <limits.h> exists even on freestanding compilers. */ 48726 48727#ifdef __STDC__ 48728# include <limits.h> 48729#else 48730# include <assert.h> 48731#endif 48732 48733#undef $ac_func 48734 48735/* Override any GCC internal prototype to avoid an error. 48736 Use char because int might match the return type of a GCC 48737 builtin and then its argument prototype would still apply. */ 48738#ifdef __cplusplus 48739extern "C" 48740#endif 48741char $ac_func (); 48742/* The GNU C library defines this for functions which it implements 48743 to always fail with ENOSYS. Some functions are actually named 48744 something starting with __ and the normal name is an alias. */ 48745#if defined __stub_$ac_func || defined __stub___$ac_func 48746choke me 48747#endif 48748 48749int 48750main () 48751{ 48752return $ac_func (); 48753 ; 48754 return 0; 48755} 48756_ACEOF 48757rm -f conftest.$ac_objext conftest$ac_exeext 48758if { (ac_try="$ac_link" 48759case "(($ac_try" in 48760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48761 *) ac_try_echo=$ac_try;; 48762esac 48763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48764 (eval "$ac_link") 2>conftest.er1 48765 ac_status=$? 48766 grep -v '^ *+' conftest.er1 >conftest.err 48767 rm -f conftest.er1 48768 cat conftest.err >&5 48769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48770 (exit $ac_status); } && { 48771 test -z "$ac_c_werror_flag" || 48772 test ! -s conftest.err 48773 } && test -s conftest$ac_exeext && 48774 $as_test_x conftest$ac_exeext; then 48775 eval "$as_ac_var=yes" 48776else 48777 echo "$as_me: failed program was:" >&5 48778sed 's/^/| /' conftest.$ac_ext >&5 48779 48780 eval "$as_ac_var=no" 48781fi 48782 48783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 48784 conftest$ac_exeext conftest.$ac_ext 48785fi 48786ac_res=`eval echo '${'$as_ac_var'}'` 48787 { echo "$as_me:$LINENO: result: $ac_res" >&5 48788echo "${ECHO_T}$ac_res" >&6; } 48789if test `eval echo '${'$as_ac_var'}'` = yes; then 48790 cat >>confdefs.h <<_ACEOF 48791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 48792_ACEOF 48793 48794fi 48795done 48796 48797 48798 48799 48800for ac_header in stdlib.h unistd.h 48801do 48802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 48803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 48804 { echo "$as_me:$LINENO: checking for $ac_header" >&5 48805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 48806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 48807 echo $ECHO_N "(cached) $ECHO_C" >&6 48808fi 48809ac_res=`eval echo '${'$as_ac_Header'}'` 48810 { echo "$as_me:$LINENO: result: $ac_res" >&5 48811echo "${ECHO_T}$ac_res" >&6; } 48812else 48813 # Is the header compilable? 48814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 48815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 48816cat >conftest.$ac_ext <<_ACEOF 48817/* confdefs.h. */ 48818_ACEOF 48819cat confdefs.h >>conftest.$ac_ext 48820cat >>conftest.$ac_ext <<_ACEOF 48821/* end confdefs.h. */ 48822$ac_includes_default 48823#include <$ac_header> 48824_ACEOF 48825rm -f conftest.$ac_objext 48826if { (ac_try="$ac_compile" 48827case "(($ac_try" in 48828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48829 *) ac_try_echo=$ac_try;; 48830esac 48831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48832 (eval "$ac_compile") 2>conftest.er1 48833 ac_status=$? 48834 grep -v '^ *+' conftest.er1 >conftest.err 48835 rm -f conftest.er1 48836 cat conftest.err >&5 48837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48838 (exit $ac_status); } && { 48839 test -z "$ac_c_werror_flag" || 48840 test ! -s conftest.err 48841 } && test -s conftest.$ac_objext; then 48842 ac_header_compiler=yes 48843else 48844 echo "$as_me: failed program was:" >&5 48845sed 's/^/| /' conftest.$ac_ext >&5 48846 48847 ac_header_compiler=no 48848fi 48849 48850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 48852echo "${ECHO_T}$ac_header_compiler" >&6; } 48853 48854# Is the header present? 48855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 48856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 48857cat >conftest.$ac_ext <<_ACEOF 48858/* confdefs.h. */ 48859_ACEOF 48860cat confdefs.h >>conftest.$ac_ext 48861cat >>conftest.$ac_ext <<_ACEOF 48862/* end confdefs.h. */ 48863#include <$ac_header> 48864_ACEOF 48865if { (ac_try="$ac_cpp conftest.$ac_ext" 48866case "(($ac_try" in 48867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 48868 *) ac_try_echo=$ac_try;; 48869esac 48870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 48871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 48872 ac_status=$? 48873 grep -v '^ *+' conftest.er1 >conftest.err 48874 rm -f conftest.er1 48875 cat conftest.err >&5 48876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48877 (exit $ac_status); } >/dev/null && { 48878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 48879 test ! -s conftest.err 48880 }; then 48881 ac_header_preproc=yes 48882else 48883 echo "$as_me: failed program was:" >&5 48884sed 's/^/| /' conftest.$ac_ext >&5 48885 48886 ac_header_preproc=no 48887fi 48888 48889rm -f conftest.err conftest.$ac_ext 48890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 48891echo "${ECHO_T}$ac_header_preproc" >&6; } 48892 48893# So? What about this header? 48894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 48895 yes:no: ) 48896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 48897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 48898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 48899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 48900 ac_header_preproc=yes 48901 ;; 48902 no:yes:* ) 48903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 48904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 48905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 48906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 48907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 48908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 48909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 48910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 48911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 48912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 48913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 48914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 48915 ( cat <<\_ASBOX 48916## ----------------------------------- ## 48917## Report this to heimdal-bugs@h5l.org ## 48918## ----------------------------------- ## 48919_ASBOX 48920 ) | sed "s/^/$as_me: WARNING: /" >&2 48921 ;; 48922esac 48923{ echo "$as_me:$LINENO: checking for $ac_header" >&5 48924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 48925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 48926 echo $ECHO_N "(cached) $ECHO_C" >&6 48927else 48928 eval "$as_ac_Header=\$ac_header_preproc" 48929fi 48930ac_res=`eval echo '${'$as_ac_Header'}'` 48931 { echo "$as_me:$LINENO: result: $ac_res" >&5 48932echo "${ECHO_T}$ac_res" >&6; } 48933 48934fi 48935if test `eval echo '${'$as_ac_Header'}'` = yes; then 48936 cat >>confdefs.h <<_ACEOF 48937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 48938_ACEOF 48939 48940fi 48941 48942done 48943 48944 48945for ac_func in getpagesize 48946do 48947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 48948{ echo "$as_me:$LINENO: checking for $ac_func" >&5 48949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 48950if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 48951 echo $ECHO_N "(cached) $ECHO_C" >&6 48952else 48953 cat >conftest.$ac_ext <<_ACEOF 48954/* confdefs.h. */ 48955_ACEOF 48956cat confdefs.h >>conftest.$ac_ext 48957cat >>conftest.$ac_ext <<_ACEOF 48958/* end confdefs.h. */ 48959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 48960 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 48961#define $ac_func innocuous_$ac_func 48962 48963/* System header to define __stub macros and hopefully few prototypes, 48964 which can conflict with char $ac_func (); below. 48965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 48966 <limits.h> exists even on freestanding compilers. */ 48967 48968#ifdef __STDC__ 48969# include <limits.h> 48970#else 48971# include <assert.h> 48972#endif 48973 48974#undef $ac_func 48975 48976/* Override any GCC internal prototype to avoid an error. 48977 Use char because int might match the return type of a GCC 48978 builtin and then its argument prototype would still apply. */ 48979#ifdef __cplusplus 48980extern "C" 48981#endif 48982char $ac_func (); 48983/* The GNU C library defines this for functions which it implements 48984 to always fail with ENOSYS. Some functions are actually named 48985 something starting with __ and the normal name is an alias. */ 48986#if defined __stub_$ac_func || defined __stub___$ac_func 48987choke me 48988#endif 48989 48990int 48991main () 48992{ 48993return $ac_func (); 48994 ; 48995 return 0; 48996} 48997_ACEOF 48998rm -f conftest.$ac_objext conftest$ac_exeext 48999if { (ac_try="$ac_link" 49000case "(($ac_try" in 49001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49002 *) ac_try_echo=$ac_try;; 49003esac 49004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49005 (eval "$ac_link") 2>conftest.er1 49006 ac_status=$? 49007 grep -v '^ *+' conftest.er1 >conftest.err 49008 rm -f conftest.er1 49009 cat conftest.err >&5 49010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49011 (exit $ac_status); } && { 49012 test -z "$ac_c_werror_flag" || 49013 test ! -s conftest.err 49014 } && test -s conftest$ac_exeext && 49015 $as_test_x conftest$ac_exeext; then 49016 eval "$as_ac_var=yes" 49017else 49018 echo "$as_me: failed program was:" >&5 49019sed 's/^/| /' conftest.$ac_ext >&5 49020 49021 eval "$as_ac_var=no" 49022fi 49023 49024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49025 conftest$ac_exeext conftest.$ac_ext 49026fi 49027ac_res=`eval echo '${'$as_ac_var'}'` 49028 { echo "$as_me:$LINENO: result: $ac_res" >&5 49029echo "${ECHO_T}$ac_res" >&6; } 49030if test `eval echo '${'$as_ac_var'}'` = yes; then 49031 cat >>confdefs.h <<_ACEOF 49032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 49033_ACEOF 49034 49035fi 49036done 49037 49038{ echo "$as_me:$LINENO: checking for working mmap" >&5 49039echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 49040if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 49041 echo $ECHO_N "(cached) $ECHO_C" >&6 49042else 49043 if test "$cross_compiling" = yes; then 49044 ac_cv_func_mmap_fixed_mapped=no 49045else 49046 cat >conftest.$ac_ext <<_ACEOF 49047/* confdefs.h. */ 49048_ACEOF 49049cat confdefs.h >>conftest.$ac_ext 49050cat >>conftest.$ac_ext <<_ACEOF 49051/* end confdefs.h. */ 49052$ac_includes_default 49053/* malloc might have been renamed as rpl_malloc. */ 49054#undef malloc 49055 49056/* Thanks to Mike Haertel and Jim Avera for this test. 49057 Here is a matrix of mmap possibilities: 49058 mmap private not fixed 49059 mmap private fixed at somewhere currently unmapped 49060 mmap private fixed at somewhere already mapped 49061 mmap shared not fixed 49062 mmap shared fixed at somewhere currently unmapped 49063 mmap shared fixed at somewhere already mapped 49064 For private mappings, we should verify that changes cannot be read() 49065 back from the file, nor mmap's back from the file at a different 49066 address. (There have been systems where private was not correctly 49067 implemented like the infamous i386 svr4.0, and systems where the 49068 VM page cache was not coherent with the file system buffer cache 49069 like early versions of FreeBSD and possibly contemporary NetBSD.) 49070 For shared mappings, we should conversely verify that changes get 49071 propagated back to all the places they're supposed to be. 49072 49073 Grep wants private fixed already mapped. 49074 The main things grep needs to know about mmap are: 49075 * does it exist and is it safe to write into the mmap'd area 49076 * how to use it (BSD variants) */ 49077 49078#include <fcntl.h> 49079#include <sys/mman.h> 49080 49081#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 49082char *malloc (); 49083#endif 49084 49085/* This mess was copied from the GNU getpagesize.h. */ 49086#ifndef HAVE_GETPAGESIZE 49087/* Assume that all systems that can run configure have sys/param.h. */ 49088# ifndef HAVE_SYS_PARAM_H 49089# define HAVE_SYS_PARAM_H 1 49090# endif 49091 49092# ifdef _SC_PAGESIZE 49093# define getpagesize() sysconf(_SC_PAGESIZE) 49094# else /* no _SC_PAGESIZE */ 49095# ifdef HAVE_SYS_PARAM_H 49096# include <sys/param.h> 49097# ifdef EXEC_PAGESIZE 49098# define getpagesize() EXEC_PAGESIZE 49099# else /* no EXEC_PAGESIZE */ 49100# ifdef NBPG 49101# define getpagesize() NBPG * CLSIZE 49102# ifndef CLSIZE 49103# define CLSIZE 1 49104# endif /* no CLSIZE */ 49105# else /* no NBPG */ 49106# ifdef NBPC 49107# define getpagesize() NBPC 49108# else /* no NBPC */ 49109# ifdef PAGESIZE 49110# define getpagesize() PAGESIZE 49111# endif /* PAGESIZE */ 49112# endif /* no NBPC */ 49113# endif /* no NBPG */ 49114# endif /* no EXEC_PAGESIZE */ 49115# else /* no HAVE_SYS_PARAM_H */ 49116# define getpagesize() 8192 /* punt totally */ 49117# endif /* no HAVE_SYS_PARAM_H */ 49118# endif /* no _SC_PAGESIZE */ 49119 49120#endif /* no HAVE_GETPAGESIZE */ 49121 49122int 49123main () 49124{ 49125 char *data, *data2, *data3; 49126 int i, pagesize; 49127 int fd; 49128 49129 pagesize = getpagesize (); 49130 49131 /* First, make a file with some known garbage in it. */ 49132 data = (char *) malloc (pagesize); 49133 if (!data) 49134 return 1; 49135 for (i = 0; i < pagesize; ++i) 49136 *(data + i) = rand (); 49137 umask (0); 49138 fd = creat ("conftest.mmap", 0600); 49139 if (fd < 0) 49140 return 1; 49141 if (write (fd, data, pagesize) != pagesize) 49142 return 1; 49143 close (fd); 49144 49145 /* Next, try to mmap the file at a fixed address which already has 49146 something else allocated at it. If we can, also make sure that 49147 we see the same garbage. */ 49148 fd = open ("conftest.mmap", O_RDWR); 49149 if (fd < 0) 49150 return 1; 49151 data2 = (char *) malloc (2 * pagesize); 49152 if (!data2) 49153 return 1; 49154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 49155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 49156 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 49157 return 1; 49158 for (i = 0; i < pagesize; ++i) 49159 if (*(data + i) != *(data2 + i)) 49160 return 1; 49161 49162 /* Finally, make sure that changes to the mapped area do not 49163 percolate back to the file as seen by read(). (This is a bug on 49164 some variants of i386 svr4.0.) */ 49165 for (i = 0; i < pagesize; ++i) 49166 *(data2 + i) = *(data2 + i) + 1; 49167 data3 = (char *) malloc (pagesize); 49168 if (!data3) 49169 return 1; 49170 if (read (fd, data3, pagesize) != pagesize) 49171 return 1; 49172 for (i = 0; i < pagesize; ++i) 49173 if (*(data + i) != *(data3 + i)) 49174 return 1; 49175 close (fd); 49176 return 0; 49177} 49178_ACEOF 49179rm -f conftest$ac_exeext 49180if { (ac_try="$ac_link" 49181case "(($ac_try" in 49182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49183 *) ac_try_echo=$ac_try;; 49184esac 49185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49186 (eval "$ac_link") 2>&5 49187 ac_status=$? 49188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 49190 { (case "(($ac_try" in 49191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49192 *) ac_try_echo=$ac_try;; 49193esac 49194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49195 (eval "$ac_try") 2>&5 49196 ac_status=$? 49197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49198 (exit $ac_status); }; }; then 49199 ac_cv_func_mmap_fixed_mapped=yes 49200else 49201 echo "$as_me: program exited with status $ac_status" >&5 49202echo "$as_me: failed program was:" >&5 49203sed 's/^/| /' conftest.$ac_ext >&5 49204 49205( exit $ac_status ) 49206ac_cv_func_mmap_fixed_mapped=no 49207fi 49208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 49209fi 49210 49211 49212fi 49213{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 49214echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 49215if test $ac_cv_func_mmap_fixed_mapped = yes; then 49216 49217cat >>confdefs.h <<\_ACEOF 49218#define HAVE_MMAP 1 49219_ACEOF 49220 49221fi 49222rm -f conftest.mmap 49223 49224 49225 49226 49227 49228 49229for ac_header in capability.h sys/capability.h 49230do 49231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 49232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 49233 { echo "$as_me:$LINENO: checking for $ac_header" >&5 49234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 49235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 49236 echo $ECHO_N "(cached) $ECHO_C" >&6 49237fi 49238ac_res=`eval echo '${'$as_ac_Header'}'` 49239 { echo "$as_me:$LINENO: result: $ac_res" >&5 49240echo "${ECHO_T}$ac_res" >&6; } 49241else 49242 # Is the header compilable? 49243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 49244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 49245cat >conftest.$ac_ext <<_ACEOF 49246/* confdefs.h. */ 49247_ACEOF 49248cat confdefs.h >>conftest.$ac_ext 49249cat >>conftest.$ac_ext <<_ACEOF 49250/* end confdefs.h. */ 49251$ac_includes_default 49252#include <$ac_header> 49253_ACEOF 49254rm -f conftest.$ac_objext 49255if { (ac_try="$ac_compile" 49256case "(($ac_try" in 49257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49258 *) ac_try_echo=$ac_try;; 49259esac 49260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49261 (eval "$ac_compile") 2>conftest.er1 49262 ac_status=$? 49263 grep -v '^ *+' conftest.er1 >conftest.err 49264 rm -f conftest.er1 49265 cat conftest.err >&5 49266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49267 (exit $ac_status); } && { 49268 test -z "$ac_c_werror_flag" || 49269 test ! -s conftest.err 49270 } && test -s conftest.$ac_objext; then 49271 ac_header_compiler=yes 49272else 49273 echo "$as_me: failed program was:" >&5 49274sed 's/^/| /' conftest.$ac_ext >&5 49275 49276 ac_header_compiler=no 49277fi 49278 49279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 49281echo "${ECHO_T}$ac_header_compiler" >&6; } 49282 49283# Is the header present? 49284{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 49285echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 49286cat >conftest.$ac_ext <<_ACEOF 49287/* confdefs.h. */ 49288_ACEOF 49289cat confdefs.h >>conftest.$ac_ext 49290cat >>conftest.$ac_ext <<_ACEOF 49291/* end confdefs.h. */ 49292#include <$ac_header> 49293_ACEOF 49294if { (ac_try="$ac_cpp conftest.$ac_ext" 49295case "(($ac_try" in 49296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49297 *) ac_try_echo=$ac_try;; 49298esac 49299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 49301 ac_status=$? 49302 grep -v '^ *+' conftest.er1 >conftest.err 49303 rm -f conftest.er1 49304 cat conftest.err >&5 49305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49306 (exit $ac_status); } >/dev/null && { 49307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 49308 test ! -s conftest.err 49309 }; then 49310 ac_header_preproc=yes 49311else 49312 echo "$as_me: failed program was:" >&5 49313sed 's/^/| /' conftest.$ac_ext >&5 49314 49315 ac_header_preproc=no 49316fi 49317 49318rm -f conftest.err conftest.$ac_ext 49319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 49320echo "${ECHO_T}$ac_header_preproc" >&6; } 49321 49322# So? What about this header? 49323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 49324 yes:no: ) 49325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 49326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 49327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 49328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 49329 ac_header_preproc=yes 49330 ;; 49331 no:yes:* ) 49332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 49333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 49334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 49335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 49336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 49337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 49338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 49339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 49340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 49341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 49342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 49343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 49344 ( cat <<\_ASBOX 49345## ----------------------------------- ## 49346## Report this to heimdal-bugs@h5l.org ## 49347## ----------------------------------- ## 49348_ASBOX 49349 ) | sed "s/^/$as_me: WARNING: /" >&2 49350 ;; 49351esac 49352{ echo "$as_me:$LINENO: checking for $ac_header" >&5 49353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 49354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 49355 echo $ECHO_N "(cached) $ECHO_C" >&6 49356else 49357 eval "$as_ac_Header=\$ac_header_preproc" 49358fi 49359ac_res=`eval echo '${'$as_ac_Header'}'` 49360 { echo "$as_me:$LINENO: result: $ac_res" >&5 49361echo "${ECHO_T}$ac_res" >&6; } 49362 49363fi 49364if test `eval echo '${'$as_ac_Header'}'` = yes; then 49365 cat >>confdefs.h <<_ACEOF 49366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 49367_ACEOF 49368 49369fi 49370 49371done 49372 49373 49374 49375 49376for ac_func in sgi_getcapabilitybyname cap_set_proc 49377do 49378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 49379{ echo "$as_me:$LINENO: checking for $ac_func" >&5 49380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 49381if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 49382 echo $ECHO_N "(cached) $ECHO_C" >&6 49383else 49384 cat >conftest.$ac_ext <<_ACEOF 49385/* confdefs.h. */ 49386_ACEOF 49387cat confdefs.h >>conftest.$ac_ext 49388cat >>conftest.$ac_ext <<_ACEOF 49389/* end confdefs.h. */ 49390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 49391 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 49392#define $ac_func innocuous_$ac_func 49393 49394/* System header to define __stub macros and hopefully few prototypes, 49395 which can conflict with char $ac_func (); below. 49396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 49397 <limits.h> exists even on freestanding compilers. */ 49398 49399#ifdef __STDC__ 49400# include <limits.h> 49401#else 49402# include <assert.h> 49403#endif 49404 49405#undef $ac_func 49406 49407/* Override any GCC internal prototype to avoid an error. 49408 Use char because int might match the return type of a GCC 49409 builtin and then its argument prototype would still apply. */ 49410#ifdef __cplusplus 49411extern "C" 49412#endif 49413char $ac_func (); 49414/* The GNU C library defines this for functions which it implements 49415 to always fail with ENOSYS. Some functions are actually named 49416 something starting with __ and the normal name is an alias. */ 49417#if defined __stub_$ac_func || defined __stub___$ac_func 49418choke me 49419#endif 49420 49421int 49422main () 49423{ 49424return $ac_func (); 49425 ; 49426 return 0; 49427} 49428_ACEOF 49429rm -f conftest.$ac_objext conftest$ac_exeext 49430if { (ac_try="$ac_link" 49431case "(($ac_try" in 49432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49433 *) ac_try_echo=$ac_try;; 49434esac 49435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49436 (eval "$ac_link") 2>conftest.er1 49437 ac_status=$? 49438 grep -v '^ *+' conftest.er1 >conftest.err 49439 rm -f conftest.er1 49440 cat conftest.err >&5 49441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49442 (exit $ac_status); } && { 49443 test -z "$ac_c_werror_flag" || 49444 test ! -s conftest.err 49445 } && test -s conftest$ac_exeext && 49446 $as_test_x conftest$ac_exeext; then 49447 eval "$as_ac_var=yes" 49448else 49449 echo "$as_me: failed program was:" >&5 49450sed 's/^/| /' conftest.$ac_ext >&5 49451 49452 eval "$as_ac_var=no" 49453fi 49454 49455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49456 conftest$ac_exeext conftest.$ac_ext 49457fi 49458ac_res=`eval echo '${'$as_ac_var'}'` 49459 { echo "$as_me:$LINENO: result: $ac_res" >&5 49460echo "${ECHO_T}$ac_res" >&6; } 49461if test `eval echo '${'$as_ac_var'}'` = yes; then 49462 cat >>confdefs.h <<_ACEOF 49463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 49464_ACEOF 49465 49466fi 49467done 49468 49469 49470 49471 49472 49473 49474 49475{ echo "$as_me:$LINENO: checking for getpwnam_r" >&5 49476echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; } 49477if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 49478 echo $ECHO_N "(cached) $ECHO_C" >&6 49479else 49480 49481if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 49482 ac_save_LIBS="$LIBS" 49483 for ac_lib in "" c_r; do 49484 case "$ac_lib" in 49485 "") ;; 49486 yes) ac_lib="" ;; 49487 no) continue ;; 49488 -l*) ;; 49489 *) ac_lib="-l$ac_lib" ;; 49490 esac 49491 LIBS=" $ac_lib $ac_save_LIBS" 49492 cat >conftest.$ac_ext <<_ACEOF 49493/* confdefs.h. */ 49494_ACEOF 49495cat confdefs.h >>conftest.$ac_ext 49496cat >>conftest.$ac_ext <<_ACEOF 49497/* end confdefs.h. */ 49498 49499int 49500main () 49501{ 49502getpwnam_r() 49503 ; 49504 return 0; 49505} 49506_ACEOF 49507rm -f conftest.$ac_objext conftest$ac_exeext 49508if { (ac_try="$ac_link" 49509case "(($ac_try" in 49510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49511 *) ac_try_echo=$ac_try;; 49512esac 49513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49514 (eval "$ac_link") 2>conftest.er1 49515 ac_status=$? 49516 grep -v '^ *+' conftest.er1 >conftest.err 49517 rm -f conftest.er1 49518 cat conftest.err >&5 49519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49520 (exit $ac_status); } && { 49521 test -z "$ac_c_werror_flag" || 49522 test ! -s conftest.err 49523 } && test -s conftest$ac_exeext && 49524 $as_test_x conftest$ac_exeext; then 49525 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 49526else 49527 echo "$as_me: failed program was:" >&5 49528sed 's/^/| /' conftest.$ac_ext >&5 49529 49530 49531fi 49532 49533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49534 conftest$ac_exeext conftest.$ac_ext 49535 done 49536 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 49537 LIBS="$ac_save_LIBS" 49538fi 49539 49540fi 49541 49542 49543eval "ac_res=\$ac_cv_funclib_getpwnam_r" 49544 49545if false; then 49546 49547for ac_func in getpwnam_r 49548do 49549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 49550{ echo "$as_me:$LINENO: checking for $ac_func" >&5 49551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 49552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 49553 echo $ECHO_N "(cached) $ECHO_C" >&6 49554else 49555 cat >conftest.$ac_ext <<_ACEOF 49556/* confdefs.h. */ 49557_ACEOF 49558cat confdefs.h >>conftest.$ac_ext 49559cat >>conftest.$ac_ext <<_ACEOF 49560/* end confdefs.h. */ 49561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 49562 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 49563#define $ac_func innocuous_$ac_func 49564 49565/* System header to define __stub macros and hopefully few prototypes, 49566 which can conflict with char $ac_func (); below. 49567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 49568 <limits.h> exists even on freestanding compilers. */ 49569 49570#ifdef __STDC__ 49571# include <limits.h> 49572#else 49573# include <assert.h> 49574#endif 49575 49576#undef $ac_func 49577 49578/* Override any GCC internal prototype to avoid an error. 49579 Use char because int might match the return type of a GCC 49580 builtin and then its argument prototype would still apply. */ 49581#ifdef __cplusplus 49582extern "C" 49583#endif 49584char $ac_func (); 49585/* The GNU C library defines this for functions which it implements 49586 to always fail with ENOSYS. Some functions are actually named 49587 something starting with __ and the normal name is an alias. */ 49588#if defined __stub_$ac_func || defined __stub___$ac_func 49589choke me 49590#endif 49591 49592int 49593main () 49594{ 49595return $ac_func (); 49596 ; 49597 return 0; 49598} 49599_ACEOF 49600rm -f conftest.$ac_objext conftest$ac_exeext 49601if { (ac_try="$ac_link" 49602case "(($ac_try" in 49603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49604 *) ac_try_echo=$ac_try;; 49605esac 49606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49607 (eval "$ac_link") 2>conftest.er1 49608 ac_status=$? 49609 grep -v '^ *+' conftest.er1 >conftest.err 49610 rm -f conftest.er1 49611 cat conftest.err >&5 49612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49613 (exit $ac_status); } && { 49614 test -z "$ac_c_werror_flag" || 49615 test ! -s conftest.err 49616 } && test -s conftest$ac_exeext && 49617 $as_test_x conftest$ac_exeext; then 49618 eval "$as_ac_var=yes" 49619else 49620 echo "$as_me: failed program was:" >&5 49621sed 's/^/| /' conftest.$ac_ext >&5 49622 49623 eval "$as_ac_var=no" 49624fi 49625 49626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49627 conftest$ac_exeext conftest.$ac_ext 49628fi 49629ac_res=`eval echo '${'$as_ac_var'}'` 49630 { echo "$as_me:$LINENO: result: $ac_res" >&5 49631echo "${ECHO_T}$ac_res" >&6; } 49632if test `eval echo '${'$as_ac_var'}'` = yes; then 49633 cat >>confdefs.h <<_ACEOF 49634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 49635_ACEOF 49636 49637fi 49638done 49639 49640fi 49641# getpwnam_r 49642eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 49643eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 49644eval "LIB_getpwnam_r=$ac_res" 49645 49646case "$ac_res" in 49647 yes) 49648 eval "ac_cv_func_getpwnam_r=yes" 49649 eval "LIB_getpwnam_r=" 49650 cat >>confdefs.h <<_ACEOF 49651#define $ac_tr_func 1 49652_ACEOF 49653 49654 { echo "$as_me:$LINENO: result: yes" >&5 49655echo "${ECHO_T}yes" >&6; } 49656 ;; 49657 no) 49658 eval "ac_cv_func_getpwnam_r=no" 49659 eval "LIB_getpwnam_r=" 49660 { echo "$as_me:$LINENO: result: no" >&5 49661echo "${ECHO_T}no" >&6; } 49662 ;; 49663 *) 49664 eval "ac_cv_func_getpwnam_r=yes" 49665 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 49666 cat >>confdefs.h <<_ACEOF 49667#define $ac_tr_func 1 49668_ACEOF 49669 49670 cat >>confdefs.h <<_ACEOF 49671#define $ac_tr_lib 1 49672_ACEOF 49673 49674 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 49675echo "${ECHO_T}yes, in $ac_res" >&6; } 49676 ;; 49677esac 49678 49679 49680if test "$ac_cv_func_getpwnam_r" = yes; then 49681 { echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5 49682echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6; } 49683if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 49684 echo $ECHO_N "(cached) $ECHO_C" >&6 49685else 49686 ac_libs="$LIBS" 49687 LIBS="$LIBS $LIB_getpwnam_r" 49688 if test "$cross_compiling" = yes; then 49689 : 49690else 49691 cat >conftest.$ac_ext <<_ACEOF 49692/* confdefs.h. */ 49693_ACEOF 49694cat confdefs.h >>conftest.$ac_ext 49695cat >>conftest.$ac_ext <<_ACEOF 49696/* end confdefs.h. */ 49697 49698#define _POSIX_PTHREAD_SEMANTICS 49699#include <pwd.h> 49700int main(int argc, char **argv) 49701{ 49702 struct passwd pw, *pwd; 49703 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 49704} 49705 49706_ACEOF 49707rm -f conftest$ac_exeext 49708if { (ac_try="$ac_link" 49709case "(($ac_try" in 49710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49711 *) ac_try_echo=$ac_try;; 49712esac 49713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49714 (eval "$ac_link") 2>&5 49715 ac_status=$? 49716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 49718 { (case "(($ac_try" in 49719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49720 *) ac_try_echo=$ac_try;; 49721esac 49722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49723 (eval "$ac_try") 2>&5 49724 ac_status=$? 49725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49726 (exit $ac_status); }; }; then 49727 ac_cv_func_getpwnam_r_posix=yes 49728else 49729 echo "$as_me: program exited with status $ac_status" >&5 49730echo "$as_me: failed program was:" >&5 49731sed 's/^/| /' conftest.$ac_ext >&5 49732 49733( exit $ac_status ) 49734ac_cv_func_getpwnam_r_posix=no 49735fi 49736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 49737fi 49738 49739 49740LIBS="$ac_libs" 49741fi 49742{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5 49743echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6; } 49744if test "$ac_cv_func_getpwnam_r_posix" = yes; then 49745 49746cat >>confdefs.h <<\_ACEOF 49747#define POSIX_GETPWNAM_R 1 49748_ACEOF 49749 49750fi 49751fi 49752 49753 49754if test "$enable_pthread_support" != no; then 49755 saved_LIBS="$LIBS" 49756 LIBS="$LIBS $PTHREADS_LIBS" 49757 49758 49759 49760{ echo "$as_me:$LINENO: checking for door_create" >&5 49761echo $ECHO_N "checking for door_create... $ECHO_C" >&6; } 49762if test "${ac_cv_funclib_door_create+set}" = set; then 49763 echo $ECHO_N "(cached) $ECHO_C" >&6 49764else 49765 49766if eval "test \"\$ac_cv_func_door_create\" != yes" ; then 49767 ac_save_LIBS="$LIBS" 49768 for ac_lib in "" door; do 49769 case "$ac_lib" in 49770 "") ;; 49771 yes) ac_lib="" ;; 49772 no) continue ;; 49773 -l*) ;; 49774 *) ac_lib="-l$ac_lib" ;; 49775 esac 49776 LIBS=" $ac_lib $ac_save_LIBS" 49777 cat >conftest.$ac_ext <<_ACEOF 49778/* confdefs.h. */ 49779_ACEOF 49780cat confdefs.h >>conftest.$ac_ext 49781cat >>conftest.$ac_ext <<_ACEOF 49782/* end confdefs.h. */ 49783 49784int 49785main () 49786{ 49787door_create() 49788 ; 49789 return 0; 49790} 49791_ACEOF 49792rm -f conftest.$ac_objext conftest$ac_exeext 49793if { (ac_try="$ac_link" 49794case "(($ac_try" in 49795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49796 *) ac_try_echo=$ac_try;; 49797esac 49798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49799 (eval "$ac_link") 2>conftest.er1 49800 ac_status=$? 49801 grep -v '^ *+' conftest.er1 >conftest.err 49802 rm -f conftest.er1 49803 cat conftest.err >&5 49804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49805 (exit $ac_status); } && { 49806 test -z "$ac_c_werror_flag" || 49807 test ! -s conftest.err 49808 } && test -s conftest$ac_exeext && 49809 $as_test_x conftest$ac_exeext; then 49810 eval "if test -n \"$ac_lib\";then ac_cv_funclib_door_create=$ac_lib; else ac_cv_funclib_door_create=yes; fi";break 49811else 49812 echo "$as_me: failed program was:" >&5 49813sed 's/^/| /' conftest.$ac_ext >&5 49814 49815 49816fi 49817 49818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49819 conftest$ac_exeext conftest.$ac_ext 49820 done 49821 eval "ac_cv_funclib_door_create=\${ac_cv_funclib_door_create-no}" 49822 LIBS="$ac_save_LIBS" 49823fi 49824 49825fi 49826 49827 49828eval "ac_res=\$ac_cv_funclib_door_create" 49829 49830if false; then 49831 49832for ac_func in door_create 49833do 49834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 49835{ echo "$as_me:$LINENO: checking for $ac_func" >&5 49836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 49837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 49838 echo $ECHO_N "(cached) $ECHO_C" >&6 49839else 49840 cat >conftest.$ac_ext <<_ACEOF 49841/* confdefs.h. */ 49842_ACEOF 49843cat confdefs.h >>conftest.$ac_ext 49844cat >>conftest.$ac_ext <<_ACEOF 49845/* end confdefs.h. */ 49846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 49847 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 49848#define $ac_func innocuous_$ac_func 49849 49850/* System header to define __stub macros and hopefully few prototypes, 49851 which can conflict with char $ac_func (); below. 49852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 49853 <limits.h> exists even on freestanding compilers. */ 49854 49855#ifdef __STDC__ 49856# include <limits.h> 49857#else 49858# include <assert.h> 49859#endif 49860 49861#undef $ac_func 49862 49863/* Override any GCC internal prototype to avoid an error. 49864 Use char because int might match the return type of a GCC 49865 builtin and then its argument prototype would still apply. */ 49866#ifdef __cplusplus 49867extern "C" 49868#endif 49869char $ac_func (); 49870/* The GNU C library defines this for functions which it implements 49871 to always fail with ENOSYS. Some functions are actually named 49872 something starting with __ and the normal name is an alias. */ 49873#if defined __stub_$ac_func || defined __stub___$ac_func 49874choke me 49875#endif 49876 49877int 49878main () 49879{ 49880return $ac_func (); 49881 ; 49882 return 0; 49883} 49884_ACEOF 49885rm -f conftest.$ac_objext conftest$ac_exeext 49886if { (ac_try="$ac_link" 49887case "(($ac_try" in 49888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 49889 *) ac_try_echo=$ac_try;; 49890esac 49891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 49892 (eval "$ac_link") 2>conftest.er1 49893 ac_status=$? 49894 grep -v '^ *+' conftest.er1 >conftest.err 49895 rm -f conftest.er1 49896 cat conftest.err >&5 49897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 49898 (exit $ac_status); } && { 49899 test -z "$ac_c_werror_flag" || 49900 test ! -s conftest.err 49901 } && test -s conftest$ac_exeext && 49902 $as_test_x conftest$ac_exeext; then 49903 eval "$as_ac_var=yes" 49904else 49905 echo "$as_me: failed program was:" >&5 49906sed 's/^/| /' conftest.$ac_ext >&5 49907 49908 eval "$as_ac_var=no" 49909fi 49910 49911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 49912 conftest$ac_exeext conftest.$ac_ext 49913fi 49914ac_res=`eval echo '${'$as_ac_var'}'` 49915 { echo "$as_me:$LINENO: result: $ac_res" >&5 49916echo "${ECHO_T}$ac_res" >&6; } 49917if test `eval echo '${'$as_ac_var'}'` = yes; then 49918 cat >>confdefs.h <<_ACEOF 49919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 49920_ACEOF 49921 49922fi 49923done 49924 49925fi 49926# door_create 49927eval "ac_tr_func=HAVE_`echo door_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 49928eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 49929eval "LIB_door_create=$ac_res" 49930 49931case "$ac_res" in 49932 yes) 49933 eval "ac_cv_func_door_create=yes" 49934 eval "LIB_door_create=" 49935 cat >>confdefs.h <<_ACEOF 49936#define $ac_tr_func 1 49937_ACEOF 49938 49939 { echo "$as_me:$LINENO: result: yes" >&5 49940echo "${ECHO_T}yes" >&6; } 49941 ;; 49942 no) 49943 eval "ac_cv_func_door_create=no" 49944 eval "LIB_door_create=" 49945 { echo "$as_me:$LINENO: result: no" >&5 49946echo "${ECHO_T}no" >&6; } 49947 ;; 49948 *) 49949 eval "ac_cv_func_door_create=yes" 49950 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 49951 cat >>confdefs.h <<_ACEOF 49952#define $ac_tr_func 1 49953_ACEOF 49954 49955 cat >>confdefs.h <<_ACEOF 49956#define $ac_tr_lib 1 49957_ACEOF 49958 49959 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 49960echo "${ECHO_T}yes, in $ac_res" >&6; } 49961 ;; 49962esac 49963 49964 49965 LIBS="$saved_LIBS" 49966fi 49967 49968# Check whether --enable-kcm was given. 49969if test "${enable_kcm+set}" = set; then 49970 enableval=$enable_kcm; 49971else 49972 enable_kcm=yes 49973fi 49974 49975 49976if test "$enable_kcm" = yes ; then 49977 if test "$ac_cv_header_sys_un_h" != yes -a "$ac_cv_funclib_door_create" != yes ; then 49978 enable_kcm=no 49979 fi 49980fi 49981if test "$enable_kcm" = yes; then 49982 49983cat >>confdefs.h <<\_ACEOF 49984#define HAVE_KCM 1 49985_ACEOF 49986 49987fi 49988 if test "$enable_kcm" = yes; then 49989 KCM_TRUE= 49990 KCM_FALSE='#' 49991else 49992 KCM_TRUE='#' 49993 KCM_FALSE= 49994fi 49995 49996 49997 49998 49999 50000 50001for ac_func in getudbnam setlim 50002do 50003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 50004{ echo "$as_me:$LINENO: checking for $ac_func" >&5 50005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 50006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 50007 echo $ECHO_N "(cached) $ECHO_C" >&6 50008else 50009 cat >conftest.$ac_ext <<_ACEOF 50010/* confdefs.h. */ 50011_ACEOF 50012cat confdefs.h >>conftest.$ac_ext 50013cat >>conftest.$ac_ext <<_ACEOF 50014/* end confdefs.h. */ 50015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 50016 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 50017#define $ac_func innocuous_$ac_func 50018 50019/* System header to define __stub macros and hopefully few prototypes, 50020 which can conflict with char $ac_func (); below. 50021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 50022 <limits.h> exists even on freestanding compilers. */ 50023 50024#ifdef __STDC__ 50025# include <limits.h> 50026#else 50027# include <assert.h> 50028#endif 50029 50030#undef $ac_func 50031 50032/* Override any GCC internal prototype to avoid an error. 50033 Use char because int might match the return type of a GCC 50034 builtin and then its argument prototype would still apply. */ 50035#ifdef __cplusplus 50036extern "C" 50037#endif 50038char $ac_func (); 50039/* The GNU C library defines this for functions which it implements 50040 to always fail with ENOSYS. Some functions are actually named 50041 something starting with __ and the normal name is an alias. */ 50042#if defined __stub_$ac_func || defined __stub___$ac_func 50043choke me 50044#endif 50045 50046int 50047main () 50048{ 50049return $ac_func (); 50050 ; 50051 return 0; 50052} 50053_ACEOF 50054rm -f conftest.$ac_objext conftest$ac_exeext 50055if { (ac_try="$ac_link" 50056case "(($ac_try" in 50057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50058 *) ac_try_echo=$ac_try;; 50059esac 50060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50061 (eval "$ac_link") 2>conftest.er1 50062 ac_status=$? 50063 grep -v '^ *+' conftest.er1 >conftest.err 50064 rm -f conftest.er1 50065 cat conftest.err >&5 50066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50067 (exit $ac_status); } && { 50068 test -z "$ac_c_werror_flag" || 50069 test ! -s conftest.err 50070 } && test -s conftest$ac_exeext && 50071 $as_test_x conftest$ac_exeext; then 50072 eval "$as_ac_var=yes" 50073else 50074 echo "$as_me: failed program was:" >&5 50075sed 's/^/| /' conftest.$ac_ext >&5 50076 50077 eval "$as_ac_var=no" 50078fi 50079 50080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 50081 conftest$ac_exeext conftest.$ac_ext 50082fi 50083ac_res=`eval echo '${'$as_ac_var'}'` 50084 { echo "$as_me:$LINENO: result: $ac_res" >&5 50085echo "${ECHO_T}$ac_res" >&6; } 50086if test `eval echo '${'$as_ac_var'}'` = yes; then 50087 cat >>confdefs.h <<_ACEOF 50088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 50089_ACEOF 50090 50091fi 50092done 50093 50094 50095 50096 50097 50098 50099{ echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5 50100echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6; } 50101if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 50102 echo $ECHO_N "(cached) $ECHO_C" >&6 50103else 50104 50105cat >conftest.$ac_ext <<_ACEOF 50106/* confdefs.h. */ 50107_ACEOF 50108cat confdefs.h >>conftest.$ac_ext 50109cat >>conftest.$ac_ext <<_ACEOF 50110/* end confdefs.h. */ 50111#include <utmp.h> 50112int 50113main () 50114{ 50115struct utmp x; memset(&x, 0, sizeof(x)); x.ut_addr 50116 ; 50117 return 0; 50118} 50119_ACEOF 50120rm -f conftest.$ac_objext 50121if { (ac_try="$ac_compile" 50122case "(($ac_try" in 50123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50124 *) ac_try_echo=$ac_try;; 50125esac 50126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50127 (eval "$ac_compile") 2>conftest.er1 50128 ac_status=$? 50129 grep -v '^ *+' conftest.er1 >conftest.err 50130 rm -f conftest.er1 50131 cat conftest.err >&5 50132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50133 (exit $ac_status); } && { 50134 test -z "$ac_c_werror_flag" || 50135 test ! -s conftest.err 50136 } && test -s conftest.$ac_objext; then 50137 ac_cv_type_struct_utmp_ut_addr=yes 50138else 50139 echo "$as_me: failed program was:" >&5 50140sed 's/^/| /' conftest.$ac_ext >&5 50141 50142 ac_cv_type_struct_utmp_ut_addr=no 50143fi 50144 50145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50146 50147fi 50148{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5 50149echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6; } 50150if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 50151 50152 50153cat >>confdefs.h <<\_ACEOF 50154#define HAVE_STRUCT_UTMP_UT_ADDR 1 50155_ACEOF 50156 50157 50158fi 50159 50160 50161 50162 50163{ echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5 50164echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6; } 50165if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 50166 echo $ECHO_N "(cached) $ECHO_C" >&6 50167else 50168 50169cat >conftest.$ac_ext <<_ACEOF 50170/* confdefs.h. */ 50171_ACEOF 50172cat confdefs.h >>conftest.$ac_ext 50173cat >>conftest.$ac_ext <<_ACEOF 50174/* end confdefs.h. */ 50175#include <utmp.h> 50176int 50177main () 50178{ 50179struct utmp x; memset(&x, 0, sizeof(x)); x.ut_host 50180 ; 50181 return 0; 50182} 50183_ACEOF 50184rm -f conftest.$ac_objext 50185if { (ac_try="$ac_compile" 50186case "(($ac_try" in 50187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50188 *) ac_try_echo=$ac_try;; 50189esac 50190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50191 (eval "$ac_compile") 2>conftest.er1 50192 ac_status=$? 50193 grep -v '^ *+' conftest.er1 >conftest.err 50194 rm -f conftest.er1 50195 cat conftest.err >&5 50196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50197 (exit $ac_status); } && { 50198 test -z "$ac_c_werror_flag" || 50199 test ! -s conftest.err 50200 } && test -s conftest.$ac_objext; then 50201 ac_cv_type_struct_utmp_ut_host=yes 50202else 50203 echo "$as_me: failed program was:" >&5 50204sed 's/^/| /' conftest.$ac_ext >&5 50205 50206 ac_cv_type_struct_utmp_ut_host=no 50207fi 50208 50209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50210 50211fi 50212{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5 50213echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6; } 50214if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 50215 50216 50217cat >>confdefs.h <<\_ACEOF 50218#define HAVE_STRUCT_UTMP_UT_HOST 1 50219_ACEOF 50220 50221 50222fi 50223 50224 50225 50226 50227{ echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5 50228echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6; } 50229if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 50230 echo $ECHO_N "(cached) $ECHO_C" >&6 50231else 50232 50233cat >conftest.$ac_ext <<_ACEOF 50234/* confdefs.h. */ 50235_ACEOF 50236cat confdefs.h >>conftest.$ac_ext 50237cat >>conftest.$ac_ext <<_ACEOF 50238/* end confdefs.h. */ 50239#include <utmp.h> 50240int 50241main () 50242{ 50243struct utmp x; memset(&x, 0, sizeof(x)); x.ut_id 50244 ; 50245 return 0; 50246} 50247_ACEOF 50248rm -f conftest.$ac_objext 50249if { (ac_try="$ac_compile" 50250case "(($ac_try" in 50251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50252 *) ac_try_echo=$ac_try;; 50253esac 50254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50255 (eval "$ac_compile") 2>conftest.er1 50256 ac_status=$? 50257 grep -v '^ *+' conftest.er1 >conftest.err 50258 rm -f conftest.er1 50259 cat conftest.err >&5 50260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50261 (exit $ac_status); } && { 50262 test -z "$ac_c_werror_flag" || 50263 test ! -s conftest.err 50264 } && test -s conftest.$ac_objext; then 50265 ac_cv_type_struct_utmp_ut_id=yes 50266else 50267 echo "$as_me: failed program was:" >&5 50268sed 's/^/| /' conftest.$ac_ext >&5 50269 50270 ac_cv_type_struct_utmp_ut_id=no 50271fi 50272 50273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50274 50275fi 50276{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5 50277echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6; } 50278if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 50279 50280 50281cat >>confdefs.h <<\_ACEOF 50282#define HAVE_STRUCT_UTMP_UT_ID 1 50283_ACEOF 50284 50285 50286fi 50287 50288 50289 50290 50291{ echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5 50292echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6; } 50293if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 50294 echo $ECHO_N "(cached) $ECHO_C" >&6 50295else 50296 50297cat >conftest.$ac_ext <<_ACEOF 50298/* confdefs.h. */ 50299_ACEOF 50300cat confdefs.h >>conftest.$ac_ext 50301cat >>conftest.$ac_ext <<_ACEOF 50302/* end confdefs.h. */ 50303#include <utmp.h> 50304int 50305main () 50306{ 50307struct utmp x; memset(&x, 0, sizeof(x)); x.ut_pid 50308 ; 50309 return 0; 50310} 50311_ACEOF 50312rm -f conftest.$ac_objext 50313if { (ac_try="$ac_compile" 50314case "(($ac_try" in 50315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50316 *) ac_try_echo=$ac_try;; 50317esac 50318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50319 (eval "$ac_compile") 2>conftest.er1 50320 ac_status=$? 50321 grep -v '^ *+' conftest.er1 >conftest.err 50322 rm -f conftest.er1 50323 cat conftest.err >&5 50324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50325 (exit $ac_status); } && { 50326 test -z "$ac_c_werror_flag" || 50327 test ! -s conftest.err 50328 } && test -s conftest.$ac_objext; then 50329 ac_cv_type_struct_utmp_ut_pid=yes 50330else 50331 echo "$as_me: failed program was:" >&5 50332sed 's/^/| /' conftest.$ac_ext >&5 50333 50334 ac_cv_type_struct_utmp_ut_pid=no 50335fi 50336 50337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50338 50339fi 50340{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5 50341echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6; } 50342if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 50343 50344 50345cat >>confdefs.h <<\_ACEOF 50346#define HAVE_STRUCT_UTMP_UT_PID 1 50347_ACEOF 50348 50349 50350fi 50351 50352 50353 50354 50355{ echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5 50356echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6; } 50357if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 50358 echo $ECHO_N "(cached) $ECHO_C" >&6 50359else 50360 50361cat >conftest.$ac_ext <<_ACEOF 50362/* confdefs.h. */ 50363_ACEOF 50364cat confdefs.h >>conftest.$ac_ext 50365cat >>conftest.$ac_ext <<_ACEOF 50366/* end confdefs.h. */ 50367#include <utmp.h> 50368int 50369main () 50370{ 50371struct utmp x; memset(&x, 0, sizeof(x)); x.ut_type 50372 ; 50373 return 0; 50374} 50375_ACEOF 50376rm -f conftest.$ac_objext 50377if { (ac_try="$ac_compile" 50378case "(($ac_try" in 50379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50380 *) ac_try_echo=$ac_try;; 50381esac 50382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50383 (eval "$ac_compile") 2>conftest.er1 50384 ac_status=$? 50385 grep -v '^ *+' conftest.er1 >conftest.err 50386 rm -f conftest.er1 50387 cat conftest.err >&5 50388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50389 (exit $ac_status); } && { 50390 test -z "$ac_c_werror_flag" || 50391 test ! -s conftest.err 50392 } && test -s conftest.$ac_objext; then 50393 ac_cv_type_struct_utmp_ut_type=yes 50394else 50395 echo "$as_me: failed program was:" >&5 50396sed 's/^/| /' conftest.$ac_ext >&5 50397 50398 ac_cv_type_struct_utmp_ut_type=no 50399fi 50400 50401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50402 50403fi 50404{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5 50405echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6; } 50406if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 50407 50408 50409cat >>confdefs.h <<\_ACEOF 50410#define HAVE_STRUCT_UTMP_UT_TYPE 1 50411_ACEOF 50412 50413 50414fi 50415 50416 50417 50418 50419{ echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5 50420echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6; } 50421if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 50422 echo $ECHO_N "(cached) $ECHO_C" >&6 50423else 50424 50425cat >conftest.$ac_ext <<_ACEOF 50426/* confdefs.h. */ 50427_ACEOF 50428cat confdefs.h >>conftest.$ac_ext 50429cat >>conftest.$ac_ext <<_ACEOF 50430/* end confdefs.h. */ 50431#include <utmp.h> 50432int 50433main () 50434{ 50435struct utmp x; memset(&x, 0, sizeof(x)); x.ut_user 50436 ; 50437 return 0; 50438} 50439_ACEOF 50440rm -f conftest.$ac_objext 50441if { (ac_try="$ac_compile" 50442case "(($ac_try" in 50443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50444 *) ac_try_echo=$ac_try;; 50445esac 50446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50447 (eval "$ac_compile") 2>conftest.er1 50448 ac_status=$? 50449 grep -v '^ *+' conftest.er1 >conftest.err 50450 rm -f conftest.er1 50451 cat conftest.err >&5 50452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50453 (exit $ac_status); } && { 50454 test -z "$ac_c_werror_flag" || 50455 test ! -s conftest.err 50456 } && test -s conftest.$ac_objext; then 50457 ac_cv_type_struct_utmp_ut_user=yes 50458else 50459 echo "$as_me: failed program was:" >&5 50460sed 's/^/| /' conftest.$ac_ext >&5 50461 50462 ac_cv_type_struct_utmp_ut_user=no 50463fi 50464 50465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50466 50467fi 50468{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5 50469echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6; } 50470if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 50471 50472 50473cat >>confdefs.h <<\_ACEOF 50474#define HAVE_STRUCT_UTMP_UT_USER 1 50475_ACEOF 50476 50477 50478fi 50479 50480 50481 50482 50483{ echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5 50484echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6; } 50485if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 50486 echo $ECHO_N "(cached) $ECHO_C" >&6 50487else 50488 50489cat >conftest.$ac_ext <<_ACEOF 50490/* confdefs.h. */ 50491_ACEOF 50492cat confdefs.h >>conftest.$ac_ext 50493cat >>conftest.$ac_ext <<_ACEOF 50494/* end confdefs.h. */ 50495#include <utmpx.h> 50496int 50497main () 50498{ 50499struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_exit 50500 ; 50501 return 0; 50502} 50503_ACEOF 50504rm -f conftest.$ac_objext 50505if { (ac_try="$ac_compile" 50506case "(($ac_try" in 50507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50508 *) ac_try_echo=$ac_try;; 50509esac 50510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50511 (eval "$ac_compile") 2>conftest.er1 50512 ac_status=$? 50513 grep -v '^ *+' conftest.er1 >conftest.err 50514 rm -f conftest.er1 50515 cat conftest.err >&5 50516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50517 (exit $ac_status); } && { 50518 test -z "$ac_c_werror_flag" || 50519 test ! -s conftest.err 50520 } && test -s conftest.$ac_objext; then 50521 ac_cv_type_struct_utmpx_ut_exit=yes 50522else 50523 echo "$as_me: failed program was:" >&5 50524sed 's/^/| /' conftest.$ac_ext >&5 50525 50526 ac_cv_type_struct_utmpx_ut_exit=no 50527fi 50528 50529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50530 50531fi 50532{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 50533echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6; } 50534if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 50535 50536 50537cat >>confdefs.h <<\_ACEOF 50538#define HAVE_STRUCT_UTMPX_UT_EXIT 1 50539_ACEOF 50540 50541 50542fi 50543 50544 50545 50546 50547{ echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5 50548echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6; } 50549if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 50550 echo $ECHO_N "(cached) $ECHO_C" >&6 50551else 50552 50553cat >conftest.$ac_ext <<_ACEOF 50554/* confdefs.h. */ 50555_ACEOF 50556cat confdefs.h >>conftest.$ac_ext 50557cat >>conftest.$ac_ext <<_ACEOF 50558/* end confdefs.h. */ 50559#include <utmpx.h> 50560int 50561main () 50562{ 50563struct utmpx x; memset(&x, 0, sizeof(x)); x.ut_syslen 50564 ; 50565 return 0; 50566} 50567_ACEOF 50568rm -f conftest.$ac_objext 50569if { (ac_try="$ac_compile" 50570case "(($ac_try" in 50571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50572 *) ac_try_echo=$ac_try;; 50573esac 50574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50575 (eval "$ac_compile") 2>conftest.er1 50576 ac_status=$? 50577 grep -v '^ *+' conftest.er1 >conftest.err 50578 rm -f conftest.er1 50579 cat conftest.err >&5 50580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50581 (exit $ac_status); } && { 50582 test -z "$ac_c_werror_flag" || 50583 test ! -s conftest.err 50584 } && test -s conftest.$ac_objext; then 50585 ac_cv_type_struct_utmpx_ut_syslen=yes 50586else 50587 echo "$as_me: failed program was:" >&5 50588sed 's/^/| /' conftest.$ac_ext >&5 50589 50590 ac_cv_type_struct_utmpx_ut_syslen=no 50591fi 50592 50593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50594 50595fi 50596{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 50597echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6; } 50598if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 50599 50600 50601cat >>confdefs.h <<\_ACEOF 50602#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 50603_ACEOF 50604 50605 50606fi 50607 50608 50609 50610{ echo "$as_me:$LINENO: checking for int8_t" >&5 50611echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; } 50612if test "${ac_cv_type_int8_t+set}" = set; then 50613 echo $ECHO_N "(cached) $ECHO_C" >&6 50614else 50615 cat >conftest.$ac_ext <<_ACEOF 50616/* confdefs.h. */ 50617_ACEOF 50618cat confdefs.h >>conftest.$ac_ext 50619cat >>conftest.$ac_ext <<_ACEOF 50620/* end confdefs.h. */ 50621 50622#ifdef HAVE_INTTYPES_H 50623#include <inttypes.h> 50624#endif 50625#ifdef HAVE_SYS_TYPES_H 50626#include <sys/types.h> 50627#endif 50628#ifdef HAVE_SYS_BITYPES_H 50629#include <sys/bitypes.h> 50630#endif 50631#ifdef HAVE_BIND_BITYPES_H 50632#include <bind/bitypes.h> 50633#endif 50634#ifdef HAVE_NETINET_IN6_MACHTYPES_H 50635#include <netinet/in6_machtypes.h> 50636#endif 50637 50638 50639typedef int8_t ac__type_new_; 50640int 50641main () 50642{ 50643if ((ac__type_new_ *) 0) 50644 return 0; 50645if (sizeof (ac__type_new_)) 50646 return 0; 50647 ; 50648 return 0; 50649} 50650_ACEOF 50651rm -f conftest.$ac_objext 50652if { (ac_try="$ac_compile" 50653case "(($ac_try" in 50654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50655 *) ac_try_echo=$ac_try;; 50656esac 50657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50658 (eval "$ac_compile") 2>conftest.er1 50659 ac_status=$? 50660 grep -v '^ *+' conftest.er1 >conftest.err 50661 rm -f conftest.er1 50662 cat conftest.err >&5 50663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50664 (exit $ac_status); } && { 50665 test -z "$ac_c_werror_flag" || 50666 test ! -s conftest.err 50667 } && test -s conftest.$ac_objext; then 50668 ac_cv_type_int8_t=yes 50669else 50670 echo "$as_me: failed program was:" >&5 50671sed 's/^/| /' conftest.$ac_ext >&5 50672 50673 ac_cv_type_int8_t=no 50674fi 50675 50676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50677fi 50678{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 50679echo "${ECHO_T}$ac_cv_type_int8_t" >&6; } 50680if test $ac_cv_type_int8_t = yes; then 50681 50682cat >>confdefs.h <<_ACEOF 50683#define HAVE_INT8_T 1 50684_ACEOF 50685 50686 50687fi 50688{ echo "$as_me:$LINENO: checking for int16_t" >&5 50689echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } 50690if test "${ac_cv_type_int16_t+set}" = set; then 50691 echo $ECHO_N "(cached) $ECHO_C" >&6 50692else 50693 cat >conftest.$ac_ext <<_ACEOF 50694/* confdefs.h. */ 50695_ACEOF 50696cat confdefs.h >>conftest.$ac_ext 50697cat >>conftest.$ac_ext <<_ACEOF 50698/* end confdefs.h. */ 50699 50700#ifdef HAVE_INTTYPES_H 50701#include <inttypes.h> 50702#endif 50703#ifdef HAVE_SYS_TYPES_H 50704#include <sys/types.h> 50705#endif 50706#ifdef HAVE_SYS_BITYPES_H 50707#include <sys/bitypes.h> 50708#endif 50709#ifdef HAVE_BIND_BITYPES_H 50710#include <bind/bitypes.h> 50711#endif 50712#ifdef HAVE_NETINET_IN6_MACHTYPES_H 50713#include <netinet/in6_machtypes.h> 50714#endif 50715 50716 50717typedef int16_t ac__type_new_; 50718int 50719main () 50720{ 50721if ((ac__type_new_ *) 0) 50722 return 0; 50723if (sizeof (ac__type_new_)) 50724 return 0; 50725 ; 50726 return 0; 50727} 50728_ACEOF 50729rm -f conftest.$ac_objext 50730if { (ac_try="$ac_compile" 50731case "(($ac_try" in 50732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50733 *) ac_try_echo=$ac_try;; 50734esac 50735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50736 (eval "$ac_compile") 2>conftest.er1 50737 ac_status=$? 50738 grep -v '^ *+' conftest.er1 >conftest.err 50739 rm -f conftest.er1 50740 cat conftest.err >&5 50741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50742 (exit $ac_status); } && { 50743 test -z "$ac_c_werror_flag" || 50744 test ! -s conftest.err 50745 } && test -s conftest.$ac_objext; then 50746 ac_cv_type_int16_t=yes 50747else 50748 echo "$as_me: failed program was:" >&5 50749sed 's/^/| /' conftest.$ac_ext >&5 50750 50751 ac_cv_type_int16_t=no 50752fi 50753 50754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50755fi 50756{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 50757echo "${ECHO_T}$ac_cv_type_int16_t" >&6; } 50758if test $ac_cv_type_int16_t = yes; then 50759 50760cat >>confdefs.h <<_ACEOF 50761#define HAVE_INT16_T 1 50762_ACEOF 50763 50764 50765fi 50766{ echo "$as_me:$LINENO: checking for int32_t" >&5 50767echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } 50768if test "${ac_cv_type_int32_t+set}" = set; then 50769 echo $ECHO_N "(cached) $ECHO_C" >&6 50770else 50771 cat >conftest.$ac_ext <<_ACEOF 50772/* confdefs.h. */ 50773_ACEOF 50774cat confdefs.h >>conftest.$ac_ext 50775cat >>conftest.$ac_ext <<_ACEOF 50776/* end confdefs.h. */ 50777 50778#ifdef HAVE_INTTYPES_H 50779#include <inttypes.h> 50780#endif 50781#ifdef HAVE_SYS_TYPES_H 50782#include <sys/types.h> 50783#endif 50784#ifdef HAVE_SYS_BITYPES_H 50785#include <sys/bitypes.h> 50786#endif 50787#ifdef HAVE_BIND_BITYPES_H 50788#include <bind/bitypes.h> 50789#endif 50790#ifdef HAVE_NETINET_IN6_MACHTYPES_H 50791#include <netinet/in6_machtypes.h> 50792#endif 50793 50794 50795typedef int32_t ac__type_new_; 50796int 50797main () 50798{ 50799if ((ac__type_new_ *) 0) 50800 return 0; 50801if (sizeof (ac__type_new_)) 50802 return 0; 50803 ; 50804 return 0; 50805} 50806_ACEOF 50807rm -f conftest.$ac_objext 50808if { (ac_try="$ac_compile" 50809case "(($ac_try" in 50810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50811 *) ac_try_echo=$ac_try;; 50812esac 50813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50814 (eval "$ac_compile") 2>conftest.er1 50815 ac_status=$? 50816 grep -v '^ *+' conftest.er1 >conftest.err 50817 rm -f conftest.er1 50818 cat conftest.err >&5 50819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50820 (exit $ac_status); } && { 50821 test -z "$ac_c_werror_flag" || 50822 test ! -s conftest.err 50823 } && test -s conftest.$ac_objext; then 50824 ac_cv_type_int32_t=yes 50825else 50826 echo "$as_me: failed program was:" >&5 50827sed 's/^/| /' conftest.$ac_ext >&5 50828 50829 ac_cv_type_int32_t=no 50830fi 50831 50832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50833fi 50834{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 50835echo "${ECHO_T}$ac_cv_type_int32_t" >&6; } 50836if test $ac_cv_type_int32_t = yes; then 50837 50838cat >>confdefs.h <<_ACEOF 50839#define HAVE_INT32_T 1 50840_ACEOF 50841 50842 50843fi 50844{ echo "$as_me:$LINENO: checking for int64_t" >&5 50845echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 50846if test "${ac_cv_type_int64_t+set}" = set; then 50847 echo $ECHO_N "(cached) $ECHO_C" >&6 50848else 50849 cat >conftest.$ac_ext <<_ACEOF 50850/* confdefs.h. */ 50851_ACEOF 50852cat confdefs.h >>conftest.$ac_ext 50853cat >>conftest.$ac_ext <<_ACEOF 50854/* end confdefs.h. */ 50855 50856#ifdef HAVE_INTTYPES_H 50857#include <inttypes.h> 50858#endif 50859#ifdef HAVE_SYS_TYPES_H 50860#include <sys/types.h> 50861#endif 50862#ifdef HAVE_SYS_BITYPES_H 50863#include <sys/bitypes.h> 50864#endif 50865#ifdef HAVE_BIND_BITYPES_H 50866#include <bind/bitypes.h> 50867#endif 50868#ifdef HAVE_NETINET_IN6_MACHTYPES_H 50869#include <netinet/in6_machtypes.h> 50870#endif 50871 50872 50873typedef int64_t ac__type_new_; 50874int 50875main () 50876{ 50877if ((ac__type_new_ *) 0) 50878 return 0; 50879if (sizeof (ac__type_new_)) 50880 return 0; 50881 ; 50882 return 0; 50883} 50884_ACEOF 50885rm -f conftest.$ac_objext 50886if { (ac_try="$ac_compile" 50887case "(($ac_try" in 50888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50889 *) ac_try_echo=$ac_try;; 50890esac 50891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50892 (eval "$ac_compile") 2>conftest.er1 50893 ac_status=$? 50894 grep -v '^ *+' conftest.er1 >conftest.err 50895 rm -f conftest.er1 50896 cat conftest.err >&5 50897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50898 (exit $ac_status); } && { 50899 test -z "$ac_c_werror_flag" || 50900 test ! -s conftest.err 50901 } && test -s conftest.$ac_objext; then 50902 ac_cv_type_int64_t=yes 50903else 50904 echo "$as_me: failed program was:" >&5 50905sed 's/^/| /' conftest.$ac_ext >&5 50906 50907 ac_cv_type_int64_t=no 50908fi 50909 50910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50911fi 50912{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 50913echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 50914if test $ac_cv_type_int64_t = yes; then 50915 50916cat >>confdefs.h <<_ACEOF 50917#define HAVE_INT64_T 1 50918_ACEOF 50919 50920 50921fi 50922{ echo "$as_me:$LINENO: checking for u_int8_t" >&5 50923echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; } 50924if test "${ac_cv_type_u_int8_t+set}" = set; then 50925 echo $ECHO_N "(cached) $ECHO_C" >&6 50926else 50927 cat >conftest.$ac_ext <<_ACEOF 50928/* confdefs.h. */ 50929_ACEOF 50930cat confdefs.h >>conftest.$ac_ext 50931cat >>conftest.$ac_ext <<_ACEOF 50932/* end confdefs.h. */ 50933 50934#ifdef HAVE_INTTYPES_H 50935#include <inttypes.h> 50936#endif 50937#ifdef HAVE_SYS_TYPES_H 50938#include <sys/types.h> 50939#endif 50940#ifdef HAVE_SYS_BITYPES_H 50941#include <sys/bitypes.h> 50942#endif 50943#ifdef HAVE_BIND_BITYPES_H 50944#include <bind/bitypes.h> 50945#endif 50946#ifdef HAVE_NETINET_IN6_MACHTYPES_H 50947#include <netinet/in6_machtypes.h> 50948#endif 50949 50950 50951typedef u_int8_t ac__type_new_; 50952int 50953main () 50954{ 50955if ((ac__type_new_ *) 0) 50956 return 0; 50957if (sizeof (ac__type_new_)) 50958 return 0; 50959 ; 50960 return 0; 50961} 50962_ACEOF 50963rm -f conftest.$ac_objext 50964if { (ac_try="$ac_compile" 50965case "(($ac_try" in 50966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50967 *) ac_try_echo=$ac_try;; 50968esac 50969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 50970 (eval "$ac_compile") 2>conftest.er1 50971 ac_status=$? 50972 grep -v '^ *+' conftest.er1 >conftest.err 50973 rm -f conftest.er1 50974 cat conftest.err >&5 50975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 50976 (exit $ac_status); } && { 50977 test -z "$ac_c_werror_flag" || 50978 test ! -s conftest.err 50979 } && test -s conftest.$ac_objext; then 50980 ac_cv_type_u_int8_t=yes 50981else 50982 echo "$as_me: failed program was:" >&5 50983sed 's/^/| /' conftest.$ac_ext >&5 50984 50985 ac_cv_type_u_int8_t=no 50986fi 50987 50988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50989fi 50990{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 50991echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; } 50992if test $ac_cv_type_u_int8_t = yes; then 50993 50994cat >>confdefs.h <<_ACEOF 50995#define HAVE_U_INT8_T 1 50996_ACEOF 50997 50998 50999fi 51000{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 51001echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } 51002if test "${ac_cv_type_u_int16_t+set}" = set; then 51003 echo $ECHO_N "(cached) $ECHO_C" >&6 51004else 51005 cat >conftest.$ac_ext <<_ACEOF 51006/* confdefs.h. */ 51007_ACEOF 51008cat confdefs.h >>conftest.$ac_ext 51009cat >>conftest.$ac_ext <<_ACEOF 51010/* end confdefs.h. */ 51011 51012#ifdef HAVE_INTTYPES_H 51013#include <inttypes.h> 51014#endif 51015#ifdef HAVE_SYS_TYPES_H 51016#include <sys/types.h> 51017#endif 51018#ifdef HAVE_SYS_BITYPES_H 51019#include <sys/bitypes.h> 51020#endif 51021#ifdef HAVE_BIND_BITYPES_H 51022#include <bind/bitypes.h> 51023#endif 51024#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51025#include <netinet/in6_machtypes.h> 51026#endif 51027 51028 51029typedef u_int16_t ac__type_new_; 51030int 51031main () 51032{ 51033if ((ac__type_new_ *) 0) 51034 return 0; 51035if (sizeof (ac__type_new_)) 51036 return 0; 51037 ; 51038 return 0; 51039} 51040_ACEOF 51041rm -f conftest.$ac_objext 51042if { (ac_try="$ac_compile" 51043case "(($ac_try" in 51044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51045 *) ac_try_echo=$ac_try;; 51046esac 51047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51048 (eval "$ac_compile") 2>conftest.er1 51049 ac_status=$? 51050 grep -v '^ *+' conftest.er1 >conftest.err 51051 rm -f conftest.er1 51052 cat conftest.err >&5 51053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51054 (exit $ac_status); } && { 51055 test -z "$ac_c_werror_flag" || 51056 test ! -s conftest.err 51057 } && test -s conftest.$ac_objext; then 51058 ac_cv_type_u_int16_t=yes 51059else 51060 echo "$as_me: failed program was:" >&5 51061sed 's/^/| /' conftest.$ac_ext >&5 51062 51063 ac_cv_type_u_int16_t=no 51064fi 51065 51066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51067fi 51068{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 51069echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } 51070if test $ac_cv_type_u_int16_t = yes; then 51071 51072cat >>confdefs.h <<_ACEOF 51073#define HAVE_U_INT16_T 1 51074_ACEOF 51075 51076 51077fi 51078{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 51079echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 51080if test "${ac_cv_type_u_int32_t+set}" = set; then 51081 echo $ECHO_N "(cached) $ECHO_C" >&6 51082else 51083 cat >conftest.$ac_ext <<_ACEOF 51084/* confdefs.h. */ 51085_ACEOF 51086cat confdefs.h >>conftest.$ac_ext 51087cat >>conftest.$ac_ext <<_ACEOF 51088/* end confdefs.h. */ 51089 51090#ifdef HAVE_INTTYPES_H 51091#include <inttypes.h> 51092#endif 51093#ifdef HAVE_SYS_TYPES_H 51094#include <sys/types.h> 51095#endif 51096#ifdef HAVE_SYS_BITYPES_H 51097#include <sys/bitypes.h> 51098#endif 51099#ifdef HAVE_BIND_BITYPES_H 51100#include <bind/bitypes.h> 51101#endif 51102#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51103#include <netinet/in6_machtypes.h> 51104#endif 51105 51106 51107typedef u_int32_t ac__type_new_; 51108int 51109main () 51110{ 51111if ((ac__type_new_ *) 0) 51112 return 0; 51113if (sizeof (ac__type_new_)) 51114 return 0; 51115 ; 51116 return 0; 51117} 51118_ACEOF 51119rm -f conftest.$ac_objext 51120if { (ac_try="$ac_compile" 51121case "(($ac_try" in 51122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51123 *) ac_try_echo=$ac_try;; 51124esac 51125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51126 (eval "$ac_compile") 2>conftest.er1 51127 ac_status=$? 51128 grep -v '^ *+' conftest.er1 >conftest.err 51129 rm -f conftest.er1 51130 cat conftest.err >&5 51131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51132 (exit $ac_status); } && { 51133 test -z "$ac_c_werror_flag" || 51134 test ! -s conftest.err 51135 } && test -s conftest.$ac_objext; then 51136 ac_cv_type_u_int32_t=yes 51137else 51138 echo "$as_me: failed program was:" >&5 51139sed 's/^/| /' conftest.$ac_ext >&5 51140 51141 ac_cv_type_u_int32_t=no 51142fi 51143 51144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51145fi 51146{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 51147echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 51148if test $ac_cv_type_u_int32_t = yes; then 51149 51150cat >>confdefs.h <<_ACEOF 51151#define HAVE_U_INT32_T 1 51152_ACEOF 51153 51154 51155fi 51156{ echo "$as_me:$LINENO: checking for u_int64_t" >&5 51157echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 51158if test "${ac_cv_type_u_int64_t+set}" = set; then 51159 echo $ECHO_N "(cached) $ECHO_C" >&6 51160else 51161 cat >conftest.$ac_ext <<_ACEOF 51162/* confdefs.h. */ 51163_ACEOF 51164cat confdefs.h >>conftest.$ac_ext 51165cat >>conftest.$ac_ext <<_ACEOF 51166/* end confdefs.h. */ 51167 51168#ifdef HAVE_INTTYPES_H 51169#include <inttypes.h> 51170#endif 51171#ifdef HAVE_SYS_TYPES_H 51172#include <sys/types.h> 51173#endif 51174#ifdef HAVE_SYS_BITYPES_H 51175#include <sys/bitypes.h> 51176#endif 51177#ifdef HAVE_BIND_BITYPES_H 51178#include <bind/bitypes.h> 51179#endif 51180#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51181#include <netinet/in6_machtypes.h> 51182#endif 51183 51184 51185typedef u_int64_t ac__type_new_; 51186int 51187main () 51188{ 51189if ((ac__type_new_ *) 0) 51190 return 0; 51191if (sizeof (ac__type_new_)) 51192 return 0; 51193 ; 51194 return 0; 51195} 51196_ACEOF 51197rm -f conftest.$ac_objext 51198if { (ac_try="$ac_compile" 51199case "(($ac_try" in 51200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51201 *) ac_try_echo=$ac_try;; 51202esac 51203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51204 (eval "$ac_compile") 2>conftest.er1 51205 ac_status=$? 51206 grep -v '^ *+' conftest.er1 >conftest.err 51207 rm -f conftest.er1 51208 cat conftest.err >&5 51209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51210 (exit $ac_status); } && { 51211 test -z "$ac_c_werror_flag" || 51212 test ! -s conftest.err 51213 } && test -s conftest.$ac_objext; then 51214 ac_cv_type_u_int64_t=yes 51215else 51216 echo "$as_me: failed program was:" >&5 51217sed 's/^/| /' conftest.$ac_ext >&5 51218 51219 ac_cv_type_u_int64_t=no 51220fi 51221 51222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51223fi 51224{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 51225echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 51226if test $ac_cv_type_u_int64_t = yes; then 51227 51228cat >>confdefs.h <<_ACEOF 51229#define HAVE_U_INT64_T 1 51230_ACEOF 51231 51232 51233fi 51234{ echo "$as_me:$LINENO: checking for uint8_t" >&5 51235echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } 51236if test "${ac_cv_type_uint8_t+set}" = set; then 51237 echo $ECHO_N "(cached) $ECHO_C" >&6 51238else 51239 cat >conftest.$ac_ext <<_ACEOF 51240/* confdefs.h. */ 51241_ACEOF 51242cat confdefs.h >>conftest.$ac_ext 51243cat >>conftest.$ac_ext <<_ACEOF 51244/* end confdefs.h. */ 51245 51246#ifdef HAVE_INTTYPES_H 51247#include <inttypes.h> 51248#endif 51249#ifdef HAVE_SYS_TYPES_H 51250#include <sys/types.h> 51251#endif 51252#ifdef HAVE_SYS_BITYPES_H 51253#include <sys/bitypes.h> 51254#endif 51255#ifdef HAVE_BIND_BITYPES_H 51256#include <bind/bitypes.h> 51257#endif 51258#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51259#include <netinet/in6_machtypes.h> 51260#endif 51261 51262 51263typedef uint8_t ac__type_new_; 51264int 51265main () 51266{ 51267if ((ac__type_new_ *) 0) 51268 return 0; 51269if (sizeof (ac__type_new_)) 51270 return 0; 51271 ; 51272 return 0; 51273} 51274_ACEOF 51275rm -f conftest.$ac_objext 51276if { (ac_try="$ac_compile" 51277case "(($ac_try" in 51278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51279 *) ac_try_echo=$ac_try;; 51280esac 51281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51282 (eval "$ac_compile") 2>conftest.er1 51283 ac_status=$? 51284 grep -v '^ *+' conftest.er1 >conftest.err 51285 rm -f conftest.er1 51286 cat conftest.err >&5 51287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51288 (exit $ac_status); } && { 51289 test -z "$ac_c_werror_flag" || 51290 test ! -s conftest.err 51291 } && test -s conftest.$ac_objext; then 51292 ac_cv_type_uint8_t=yes 51293else 51294 echo "$as_me: failed program was:" >&5 51295sed 's/^/| /' conftest.$ac_ext >&5 51296 51297 ac_cv_type_uint8_t=no 51298fi 51299 51300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51301fi 51302{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 51303echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; } 51304if test $ac_cv_type_uint8_t = yes; then 51305 51306cat >>confdefs.h <<_ACEOF 51307#define HAVE_UINT8_T 1 51308_ACEOF 51309 51310 51311fi 51312{ echo "$as_me:$LINENO: checking for uint16_t" >&5 51313echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } 51314if test "${ac_cv_type_uint16_t+set}" = set; then 51315 echo $ECHO_N "(cached) $ECHO_C" >&6 51316else 51317 cat >conftest.$ac_ext <<_ACEOF 51318/* confdefs.h. */ 51319_ACEOF 51320cat confdefs.h >>conftest.$ac_ext 51321cat >>conftest.$ac_ext <<_ACEOF 51322/* end confdefs.h. */ 51323 51324#ifdef HAVE_INTTYPES_H 51325#include <inttypes.h> 51326#endif 51327#ifdef HAVE_SYS_TYPES_H 51328#include <sys/types.h> 51329#endif 51330#ifdef HAVE_SYS_BITYPES_H 51331#include <sys/bitypes.h> 51332#endif 51333#ifdef HAVE_BIND_BITYPES_H 51334#include <bind/bitypes.h> 51335#endif 51336#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51337#include <netinet/in6_machtypes.h> 51338#endif 51339 51340 51341typedef uint16_t ac__type_new_; 51342int 51343main () 51344{ 51345if ((ac__type_new_ *) 0) 51346 return 0; 51347if (sizeof (ac__type_new_)) 51348 return 0; 51349 ; 51350 return 0; 51351} 51352_ACEOF 51353rm -f conftest.$ac_objext 51354if { (ac_try="$ac_compile" 51355case "(($ac_try" in 51356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51357 *) ac_try_echo=$ac_try;; 51358esac 51359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51360 (eval "$ac_compile") 2>conftest.er1 51361 ac_status=$? 51362 grep -v '^ *+' conftest.er1 >conftest.err 51363 rm -f conftest.er1 51364 cat conftest.err >&5 51365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51366 (exit $ac_status); } && { 51367 test -z "$ac_c_werror_flag" || 51368 test ! -s conftest.err 51369 } && test -s conftest.$ac_objext; then 51370 ac_cv_type_uint16_t=yes 51371else 51372 echo "$as_me: failed program was:" >&5 51373sed 's/^/| /' conftest.$ac_ext >&5 51374 51375 ac_cv_type_uint16_t=no 51376fi 51377 51378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51379fi 51380{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 51381echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } 51382if test $ac_cv_type_uint16_t = yes; then 51383 51384cat >>confdefs.h <<_ACEOF 51385#define HAVE_UINT16_T 1 51386_ACEOF 51387 51388 51389fi 51390{ echo "$as_me:$LINENO: checking for uint32_t" >&5 51391echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 51392if test "${ac_cv_type_uint32_t+set}" = set; then 51393 echo $ECHO_N "(cached) $ECHO_C" >&6 51394else 51395 cat >conftest.$ac_ext <<_ACEOF 51396/* confdefs.h. */ 51397_ACEOF 51398cat confdefs.h >>conftest.$ac_ext 51399cat >>conftest.$ac_ext <<_ACEOF 51400/* end confdefs.h. */ 51401 51402#ifdef HAVE_INTTYPES_H 51403#include <inttypes.h> 51404#endif 51405#ifdef HAVE_SYS_TYPES_H 51406#include <sys/types.h> 51407#endif 51408#ifdef HAVE_SYS_BITYPES_H 51409#include <sys/bitypes.h> 51410#endif 51411#ifdef HAVE_BIND_BITYPES_H 51412#include <bind/bitypes.h> 51413#endif 51414#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51415#include <netinet/in6_machtypes.h> 51416#endif 51417 51418 51419typedef uint32_t ac__type_new_; 51420int 51421main () 51422{ 51423if ((ac__type_new_ *) 0) 51424 return 0; 51425if (sizeof (ac__type_new_)) 51426 return 0; 51427 ; 51428 return 0; 51429} 51430_ACEOF 51431rm -f conftest.$ac_objext 51432if { (ac_try="$ac_compile" 51433case "(($ac_try" in 51434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51435 *) ac_try_echo=$ac_try;; 51436esac 51437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51438 (eval "$ac_compile") 2>conftest.er1 51439 ac_status=$? 51440 grep -v '^ *+' conftest.er1 >conftest.err 51441 rm -f conftest.er1 51442 cat conftest.err >&5 51443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51444 (exit $ac_status); } && { 51445 test -z "$ac_c_werror_flag" || 51446 test ! -s conftest.err 51447 } && test -s conftest.$ac_objext; then 51448 ac_cv_type_uint32_t=yes 51449else 51450 echo "$as_me: failed program was:" >&5 51451sed 's/^/| /' conftest.$ac_ext >&5 51452 51453 ac_cv_type_uint32_t=no 51454fi 51455 51456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51457fi 51458{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 51459echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 51460if test $ac_cv_type_uint32_t = yes; then 51461 51462cat >>confdefs.h <<_ACEOF 51463#define HAVE_UINT32_T 1 51464_ACEOF 51465 51466 51467fi 51468{ echo "$as_me:$LINENO: checking for uint64_t" >&5 51469echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 51470if test "${ac_cv_type_uint64_t+set}" = set; then 51471 echo $ECHO_N "(cached) $ECHO_C" >&6 51472else 51473 cat >conftest.$ac_ext <<_ACEOF 51474/* confdefs.h. */ 51475_ACEOF 51476cat confdefs.h >>conftest.$ac_ext 51477cat >>conftest.$ac_ext <<_ACEOF 51478/* end confdefs.h. */ 51479 51480#ifdef HAVE_INTTYPES_H 51481#include <inttypes.h> 51482#endif 51483#ifdef HAVE_SYS_TYPES_H 51484#include <sys/types.h> 51485#endif 51486#ifdef HAVE_SYS_BITYPES_H 51487#include <sys/bitypes.h> 51488#endif 51489#ifdef HAVE_BIND_BITYPES_H 51490#include <bind/bitypes.h> 51491#endif 51492#ifdef HAVE_NETINET_IN6_MACHTYPES_H 51493#include <netinet/in6_machtypes.h> 51494#endif 51495 51496 51497typedef uint64_t ac__type_new_; 51498int 51499main () 51500{ 51501if ((ac__type_new_ *) 0) 51502 return 0; 51503if (sizeof (ac__type_new_)) 51504 return 0; 51505 ; 51506 return 0; 51507} 51508_ACEOF 51509rm -f conftest.$ac_objext 51510if { (ac_try="$ac_compile" 51511case "(($ac_try" in 51512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51513 *) ac_try_echo=$ac_try;; 51514esac 51515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51516 (eval "$ac_compile") 2>conftest.er1 51517 ac_status=$? 51518 grep -v '^ *+' conftest.er1 >conftest.err 51519 rm -f conftest.er1 51520 cat conftest.err >&5 51521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51522 (exit $ac_status); } && { 51523 test -z "$ac_c_werror_flag" || 51524 test ! -s conftest.err 51525 } && test -s conftest.$ac_objext; then 51526 ac_cv_type_uint64_t=yes 51527else 51528 echo "$as_me: failed program was:" >&5 51529sed 's/^/| /' conftest.$ac_ext >&5 51530 51531 ac_cv_type_uint64_t=no 51532fi 51533 51534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51535fi 51536{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 51537echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 51538if test $ac_cv_type_uint64_t = yes; then 51539 51540cat >>confdefs.h <<_ACEOF 51541#define HAVE_UINT64_T 1 51542_ACEOF 51543 51544 51545fi 51546 51547 51548 51549 51550{ echo "$as_me:$LINENO: checking for framework security" >&5 51551echo $ECHO_N "checking for framework security... $ECHO_C" >&6; } 51552if test "${rk_cv_framework_security+set}" = set; then 51553 echo $ECHO_N "(cached) $ECHO_C" >&6 51554else 51555 51556if test "$rk_cv_framework_security" != yes; then 51557 ac_save_LIBS="$LIBS" 51558 LIBS="$ac_save_LIBS -framework Security -framework CoreFoundation" 51559 cat >conftest.$ac_ext <<_ACEOF 51560/* confdefs.h. */ 51561_ACEOF 51562cat confdefs.h >>conftest.$ac_ext 51563cat >>conftest.$ac_ext <<_ACEOF 51564/* end confdefs.h. */ 51565#include <Security/Security.h> 51566 51567int 51568main () 51569{ 51570SecKeychainSearchRef searchRef; 51571SecKeychainSearchCreateFromAttributes(NULL,kSecCertificateItemClass,NULL, &searchRef); 51572CFRelease(&searchRef); 51573 51574 ; 51575 return 0; 51576} 51577_ACEOF 51578rm -f conftest.$ac_objext conftest$ac_exeext 51579if { (ac_try="$ac_link" 51580case "(($ac_try" in 51581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51582 *) ac_try_echo=$ac_try;; 51583esac 51584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51585 (eval "$ac_link") 2>conftest.er1 51586 ac_status=$? 51587 grep -v '^ *+' conftest.er1 >conftest.err 51588 rm -f conftest.er1 51589 cat conftest.err >&5 51590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51591 (exit $ac_status); } && { 51592 test -z "$ac_c_werror_flag" || 51593 test ! -s conftest.err 51594 } && test -s conftest$ac_exeext && 51595 $as_test_x conftest$ac_exeext; then 51596 rk_cv_framework_security=yes 51597else 51598 echo "$as_me: failed program was:" >&5 51599sed 's/^/| /' conftest.$ac_ext >&5 51600 51601 51602fi 51603 51604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 51605 conftest$ac_exeext conftest.$ac_ext 51606 LIBS="$ac_save_LIBS" 51607fi 51608 51609fi 51610 51611 51612if test "$rk_cv_framework_security" = yes; then 51613 51614cat >>confdefs.h <<\_ACEOF 51615#define HAVE_FRAMEWORK_SECURITY 1 51616_ACEOF 51617 51618 { echo "$as_me:$LINENO: result: yes" >&5 51619echo "${ECHO_T}yes" >&6; } 51620else 51621 { echo "$as_me:$LINENO: result: no" >&5 51622echo "${ECHO_T}no" >&6; } 51623fi 51624 if test "$rk_cv_framework_security" = yes; then 51625 FRAMEWORK_SECURITY_TRUE= 51626 FRAMEWORK_SECURITY_FALSE='#' 51627else 51628 FRAMEWORK_SECURITY_TRUE='#' 51629 FRAMEWORK_SECURITY_FALSE= 51630fi 51631 51632 51633if test "$rk_cv_framework_security" = yes; then 51634 51635if test "$ac_cv_func_SecKeyGetCSPHandle+set" != set -o "$ac_cv_func_SecKeyGetCSPHandle" = yes; then 51636{ echo "$as_me:$LINENO: checking if SecKeyGetCSPHandle needs a prototype" >&5 51637echo $ECHO_N "checking if SecKeyGetCSPHandle needs a prototype... $ECHO_C" >&6; } 51638if test "${ac_cv_func_SecKeyGetCSPHandle_noproto+set}" = set; then 51639 echo $ECHO_N "(cached) $ECHO_C" >&6 51640else 51641 cat >conftest.$ac_ext <<_ACEOF 51642/* confdefs.h. */ 51643_ACEOF 51644cat confdefs.h >>conftest.$ac_ext 51645cat >>conftest.$ac_ext <<_ACEOF 51646/* end confdefs.h. */ 51647#include <Security/Security.h> 51648struct foo { int foo; } xx; 51649extern int SecKeyGetCSPHandle (struct foo*); 51650int 51651main () 51652{ 51653SecKeyGetCSPHandle(&xx) 51654 ; 51655 return 0; 51656} 51657_ACEOF 51658rm -f conftest.$ac_objext 51659if { (ac_try="$ac_compile" 51660case "(($ac_try" in 51661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51662 *) ac_try_echo=$ac_try;; 51663esac 51664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51665 (eval "$ac_compile") 2>conftest.er1 51666 ac_status=$? 51667 grep -v '^ *+' conftest.er1 >conftest.err 51668 rm -f conftest.er1 51669 cat conftest.err >&5 51670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51671 (exit $ac_status); } && { 51672 test -z "$ac_c_werror_flag" || 51673 test ! -s conftest.err 51674 } && test -s conftest.$ac_objext; then 51675 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=yes" 51676else 51677 echo "$as_me: failed program was:" >&5 51678sed 's/^/| /' conftest.$ac_ext >&5 51679 51680 eval "ac_cv_func_SecKeyGetCSPHandle_noproto=no" 51681fi 51682 51683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51684fi 51685{ echo "$as_me:$LINENO: result: $ac_cv_func_SecKeyGetCSPHandle_noproto" >&5 51686echo "${ECHO_T}$ac_cv_func_SecKeyGetCSPHandle_noproto" >&6; } 51687if test "$ac_cv_func_SecKeyGetCSPHandle_noproto" = yes; then 51688 51689cat >>confdefs.h <<\_ACEOF 51690#define NEED_SECKEYGETCSPHANDLE_PROTO 1 51691_ACEOF 51692 51693fi 51694fi 51695 51696fi 51697 51698 51699 51700 51701 51702 51703 51704{ echo "$as_me:$LINENO: checking for el_init" >&5 51705echo $ECHO_N "checking for el_init... $ECHO_C" >&6; } 51706if test "${ac_cv_funclib_el_init+set}" = set; then 51707 echo $ECHO_N "(cached) $ECHO_C" >&6 51708else 51709 51710if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 51711 ac_save_LIBS="$LIBS" 51712 for ac_lib in "" edit; do 51713 case "$ac_lib" in 51714 "") ;; 51715 yes) ac_lib="" ;; 51716 no) continue ;; 51717 -l*) ;; 51718 *) ac_lib="-l$ac_lib" ;; 51719 esac 51720 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 51721 cat >conftest.$ac_ext <<_ACEOF 51722/* confdefs.h. */ 51723_ACEOF 51724cat confdefs.h >>conftest.$ac_ext 51725cat >>conftest.$ac_ext <<_ACEOF 51726/* end confdefs.h. */ 51727 51728int 51729main () 51730{ 51731el_init() 51732 ; 51733 return 0; 51734} 51735_ACEOF 51736rm -f conftest.$ac_objext conftest$ac_exeext 51737if { (ac_try="$ac_link" 51738case "(($ac_try" in 51739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51740 *) ac_try_echo=$ac_try;; 51741esac 51742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51743 (eval "$ac_link") 2>conftest.er1 51744 ac_status=$? 51745 grep -v '^ *+' conftest.er1 >conftest.err 51746 rm -f conftest.er1 51747 cat conftest.err >&5 51748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51749 (exit $ac_status); } && { 51750 test -z "$ac_c_werror_flag" || 51751 test ! -s conftest.err 51752 } && test -s conftest$ac_exeext && 51753 $as_test_x conftest$ac_exeext; then 51754 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 51755else 51756 echo "$as_me: failed program was:" >&5 51757sed 's/^/| /' conftest.$ac_ext >&5 51758 51759 51760fi 51761 51762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 51763 conftest$ac_exeext conftest.$ac_ext 51764 done 51765 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 51766 LIBS="$ac_save_LIBS" 51767fi 51768 51769fi 51770 51771 51772eval "ac_res=\$ac_cv_funclib_el_init" 51773 51774if false; then 51775 51776for ac_func in el_init 51777do 51778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 51779{ echo "$as_me:$LINENO: checking for $ac_func" >&5 51780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 51781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 51782 echo $ECHO_N "(cached) $ECHO_C" >&6 51783else 51784 cat >conftest.$ac_ext <<_ACEOF 51785/* confdefs.h. */ 51786_ACEOF 51787cat confdefs.h >>conftest.$ac_ext 51788cat >>conftest.$ac_ext <<_ACEOF 51789/* end confdefs.h. */ 51790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 51791 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 51792#define $ac_func innocuous_$ac_func 51793 51794/* System header to define __stub macros and hopefully few prototypes, 51795 which can conflict with char $ac_func (); below. 51796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 51797 <limits.h> exists even on freestanding compilers. */ 51798 51799#ifdef __STDC__ 51800# include <limits.h> 51801#else 51802# include <assert.h> 51803#endif 51804 51805#undef $ac_func 51806 51807/* Override any GCC internal prototype to avoid an error. 51808 Use char because int might match the return type of a GCC 51809 builtin and then its argument prototype would still apply. */ 51810#ifdef __cplusplus 51811extern "C" 51812#endif 51813char $ac_func (); 51814/* The GNU C library defines this for functions which it implements 51815 to always fail with ENOSYS. Some functions are actually named 51816 something starting with __ and the normal name is an alias. */ 51817#if defined __stub_$ac_func || defined __stub___$ac_func 51818choke me 51819#endif 51820 51821int 51822main () 51823{ 51824return $ac_func (); 51825 ; 51826 return 0; 51827} 51828_ACEOF 51829rm -f conftest.$ac_objext conftest$ac_exeext 51830if { (ac_try="$ac_link" 51831case "(($ac_try" in 51832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51833 *) ac_try_echo=$ac_try;; 51834esac 51835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51836 (eval "$ac_link") 2>conftest.er1 51837 ac_status=$? 51838 grep -v '^ *+' conftest.er1 >conftest.err 51839 rm -f conftest.er1 51840 cat conftest.err >&5 51841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51842 (exit $ac_status); } && { 51843 test -z "$ac_c_werror_flag" || 51844 test ! -s conftest.err 51845 } && test -s conftest$ac_exeext && 51846 $as_test_x conftest$ac_exeext; then 51847 eval "$as_ac_var=yes" 51848else 51849 echo "$as_me: failed program was:" >&5 51850sed 's/^/| /' conftest.$ac_ext >&5 51851 51852 eval "$as_ac_var=no" 51853fi 51854 51855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 51856 conftest$ac_exeext conftest.$ac_ext 51857fi 51858ac_res=`eval echo '${'$as_ac_var'}'` 51859 { echo "$as_me:$LINENO: result: $ac_res" >&5 51860echo "${ECHO_T}$ac_res" >&6; } 51861if test `eval echo '${'$as_ac_var'}'` = yes; then 51862 cat >>confdefs.h <<_ACEOF 51863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 51864_ACEOF 51865 51866fi 51867done 51868 51869fi 51870# el_init 51871eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 51872eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 51873eval "LIB_el_init=$ac_res" 51874 51875case "$ac_res" in 51876 yes) 51877 eval "ac_cv_func_el_init=yes" 51878 eval "LIB_el_init=" 51879 cat >>confdefs.h <<_ACEOF 51880#define $ac_tr_func 1 51881_ACEOF 51882 51883 { echo "$as_me:$LINENO: result: yes" >&5 51884echo "${ECHO_T}yes" >&6; } 51885 ;; 51886 no) 51887 eval "ac_cv_func_el_init=no" 51888 eval "LIB_el_init=" 51889 { echo "$as_me:$LINENO: result: no" >&5 51890echo "${ECHO_T}no" >&6; } 51891 ;; 51892 *) 51893 eval "ac_cv_func_el_init=yes" 51894 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 51895 cat >>confdefs.h <<_ACEOF 51896#define $ac_tr_func 1 51897_ACEOF 51898 51899 cat >>confdefs.h <<_ACEOF 51900#define $ac_tr_lib 1 51901_ACEOF 51902 51903 { echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 51904echo "${ECHO_T}yes, in $ac_res" >&6; } 51905 ;; 51906esac 51907 51908 51909if test "$ac_cv_func_el_init" = yes ; then 51910 { echo "$as_me:$LINENO: checking for four argument el_init" >&5 51911echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6; } 51912if test "${ac_cv_func_el_init_four+set}" = set; then 51913 echo $ECHO_N "(cached) $ECHO_C" >&6 51914else 51915 51916 cat >conftest.$ac_ext <<_ACEOF 51917/* confdefs.h. */ 51918_ACEOF 51919cat confdefs.h >>conftest.$ac_ext 51920cat >>conftest.$ac_ext <<_ACEOF 51921/* end confdefs.h. */ 51922#include <stdio.h> 51923 #include <histedit.h> 51924int 51925main () 51926{ 51927el_init("", NULL, NULL, NULL); 51928 ; 51929 return 0; 51930} 51931_ACEOF 51932rm -f conftest.$ac_objext 51933if { (ac_try="$ac_compile" 51934case "(($ac_try" in 51935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 51936 *) ac_try_echo=$ac_try;; 51937esac 51938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 51939 (eval "$ac_compile") 2>conftest.er1 51940 ac_status=$? 51941 grep -v '^ *+' conftest.er1 >conftest.err 51942 rm -f conftest.er1 51943 cat conftest.err >&5 51944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 51945 (exit $ac_status); } && { 51946 test -z "$ac_c_werror_flag" || 51947 test ! -s conftest.err 51948 } && test -s conftest.$ac_objext; then 51949 ac_cv_func_el_init_four=yes 51950else 51951 echo "$as_me: failed program was:" >&5 51952sed 's/^/| /' conftest.$ac_ext >&5 51953 51954 ac_cv_func_el_init_four=no 51955fi 51956 51957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51958fi 51959{ echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5 51960echo "${ECHO_T}$ac_cv_func_el_init_four" >&6; } 51961 if test "$ac_cv_func_el_init_four" = yes; then 51962 51963cat >>confdefs.h <<\_ACEOF 51964#define HAVE_FOUR_VALUED_EL_INIT 1 51965_ACEOF 51966 51967 fi 51968fi 51969 51970 51971ac_foo=no 51972if test "$with_readline" = yes; then 51973 : 51974elif test "$ac_cv_func_readline" = yes; then 51975 : 51976elif test "$ac_cv_func_el_init" = yes; then 51977 ac_foo=yes 51978 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)" 51979else 51980 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)" 51981fi 51982 if test "$ac_foo" = yes; then 51983 el_compat_TRUE= 51984 el_compat_FALSE='#' 51985else 51986 el_compat_TRUE='#' 51987 el_compat_FALSE= 51988fi 51989 51990 51991cat >>confdefs.h <<\_ACEOF 51992#define HAVE_READLINE 1 51993_ACEOF 51994 51995 51996 51997 51998 51999cat >>confdefs.h <<\_ACEOF 52000#define AUTHENTICATION 1 52001_ACEOF 52002 52003cat >>confdefs.h <<\_ACEOF 52004#define ENCRYPTION 1 52005_ACEOF 52006 52007cat >>confdefs.h <<\_ACEOF 52008#define DES_ENCRYPTION 1 52009_ACEOF 52010 52011cat >>confdefs.h <<\_ACEOF 52012#define DIAGNOSTICS 1 52013_ACEOF 52014 52015cat >>confdefs.h <<\_ACEOF 52016#define OLD_ENVIRON 1 52017_ACEOF 52018if false; then 52019 52020cat >>confdefs.h <<\_ACEOF 52021#define ENV_HACK 1 52022_ACEOF 52023 52024fi 52025 52026# Simple test for streamspty, based on the existance of getmsg(), alas 52027# this breaks on SunOS4 which have streams but BSD-like ptys 52028# 52029# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 52030 52031case "$host" in 52032*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 52033 ;; 52034*) 52035 { echo "$as_me:$LINENO: checking for getmsg" >&5 52036echo $ECHO_N "checking for getmsg... $ECHO_C" >&6; } 52037if test "${ac_cv_func_getmsg+set}" = set; then 52038 echo $ECHO_N "(cached) $ECHO_C" >&6 52039else 52040 cat >conftest.$ac_ext <<_ACEOF 52041/* confdefs.h. */ 52042_ACEOF 52043cat confdefs.h >>conftest.$ac_ext 52044cat >>conftest.$ac_ext <<_ACEOF 52045/* end confdefs.h. */ 52046/* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg. 52047 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 52048#define getmsg innocuous_getmsg 52049 52050/* System header to define __stub macros and hopefully few prototypes, 52051 which can conflict with char getmsg (); below. 52052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 52053 <limits.h> exists even on freestanding compilers. */ 52054 52055#ifdef __STDC__ 52056# include <limits.h> 52057#else 52058# include <assert.h> 52059#endif 52060 52061#undef getmsg 52062 52063/* Override any GCC internal prototype to avoid an error. 52064 Use char because int might match the return type of a GCC 52065 builtin and then its argument prototype would still apply. */ 52066#ifdef __cplusplus 52067extern "C" 52068#endif 52069char getmsg (); 52070/* The GNU C library defines this for functions which it implements 52071 to always fail with ENOSYS. Some functions are actually named 52072 something starting with __ and the normal name is an alias. */ 52073#if defined __stub_getmsg || defined __stub___getmsg 52074choke me 52075#endif 52076 52077int 52078main () 52079{ 52080return getmsg (); 52081 ; 52082 return 0; 52083} 52084_ACEOF 52085rm -f conftest.$ac_objext conftest$ac_exeext 52086if { (ac_try="$ac_link" 52087case "(($ac_try" in 52088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52089 *) ac_try_echo=$ac_try;; 52090esac 52091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52092 (eval "$ac_link") 2>conftest.er1 52093 ac_status=$? 52094 grep -v '^ *+' conftest.er1 >conftest.err 52095 rm -f conftest.er1 52096 cat conftest.err >&5 52097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52098 (exit $ac_status); } && { 52099 test -z "$ac_c_werror_flag" || 52100 test ! -s conftest.err 52101 } && test -s conftest$ac_exeext && 52102 $as_test_x conftest$ac_exeext; then 52103 ac_cv_func_getmsg=yes 52104else 52105 echo "$as_me: failed program was:" >&5 52106sed 's/^/| /' conftest.$ac_ext >&5 52107 52108 ac_cv_func_getmsg=no 52109fi 52110 52111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 52112 conftest$ac_exeext conftest.$ac_ext 52113fi 52114{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5 52115echo "${ECHO_T}$ac_cv_func_getmsg" >&6; } 52116 52117 if test "$ac_cv_func_getmsg" = "yes"; then 52118 { echo "$as_me:$LINENO: checking if getmsg works" >&5 52119echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6; } 52120if test "${ac_cv_func_getmsg_works+set}" = set; then 52121 echo $ECHO_N "(cached) $ECHO_C" >&6 52122else 52123 if test "$cross_compiling" = yes; then 52124 ac_cv_func_getmsg_works=no 52125else 52126 cat >conftest.$ac_ext <<_ACEOF 52127/* confdefs.h. */ 52128_ACEOF 52129cat confdefs.h >>conftest.$ac_ext 52130cat >>conftest.$ac_ext <<_ACEOF 52131/* end confdefs.h. */ 52132 52133 #include <stdio.h> 52134 #include <errno.h> 52135 52136 int main(int argc, char **argv) 52137 { 52138 int ret; 52139 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 52140 if(ret < 0 && errno == ENOSYS) 52141 return 1; 52142 return 0; 52143 } 52144 52145_ACEOF 52146rm -f conftest$ac_exeext 52147if { (ac_try="$ac_link" 52148case "(($ac_try" in 52149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52150 *) ac_try_echo=$ac_try;; 52151esac 52152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52153 (eval "$ac_link") 2>&5 52154 ac_status=$? 52155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 52157 { (case "(($ac_try" in 52158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52159 *) ac_try_echo=$ac_try;; 52160esac 52161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52162 (eval "$ac_try") 2>&5 52163 ac_status=$? 52164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52165 (exit $ac_status); }; }; then 52166 ac_cv_func_getmsg_works=yes 52167else 52168 echo "$as_me: program exited with status $ac_status" >&5 52169echo "$as_me: failed program was:" >&5 52170sed 's/^/| /' conftest.$ac_ext >&5 52171 52172( exit $ac_status ) 52173ac_cv_func_getmsg_works=no 52174fi 52175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 52176fi 52177 52178 52179fi 52180{ echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5 52181echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6; } 52182 if test "$ac_cv_func_getmsg_works" = "yes"; then 52183 52184cat >>confdefs.h <<\_ACEOF 52185#define HAVE_GETMSG 1 52186_ACEOF 52187 52188 52189cat >>confdefs.h <<\_ACEOF 52190#define STREAMSPTY 1 52191_ACEOF 52192 52193 fi 52194 fi 52195 ;; 52196esac 52197 52198 52199 52200 52201 52202 52203 52204# Extract the first word of "compile_et", so it can be a program name with args. 52205set dummy compile_et; ac_word=$2 52206{ echo "$as_me:$LINENO: checking for $ac_word" >&5 52207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 52208if test "${ac_cv_prog_COMPILE_ET+set}" = set; then 52209 echo $ECHO_N "(cached) $ECHO_C" >&6 52210else 52211 if test -n "$COMPILE_ET"; then 52212 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 52213else 52214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52215for as_dir in $PATH 52216do 52217 IFS=$as_save_IFS 52218 test -z "$as_dir" && as_dir=. 52219 for ac_exec_ext in '' $ac_executable_extensions; do 52220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 52221 ac_cv_prog_COMPILE_ET="compile_et" 52222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 52223 break 2 52224 fi 52225done 52226done 52227IFS=$as_save_IFS 52228 52229fi 52230fi 52231COMPILE_ET=$ac_cv_prog_COMPILE_ET 52232if test -n "$COMPILE_ET"; then 52233 { echo "$as_me:$LINENO: result: $COMPILE_ET" >&5 52234echo "${ECHO_T}$COMPILE_ET" >&6; } 52235else 52236 { echo "$as_me:$LINENO: result: no" >&5 52237echo "${ECHO_T}no" >&6; } 52238fi 52239 52240 52241 52242krb_cv_compile_et="no" 52243krb_cv_com_err_need_r="" 52244krb_cv_compile_et_cross=no 52245if test "${COMPILE_ET}" = "compile_et"; then 52246 52247{ echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5 52248echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6; } 52249cat > conftest_et.et <<'EOF' 52250error_table test conf 52251prefix CONFTEST 52252index 1 52253error_code CODE1, "CODE1" 52254index 128 52255error_code CODE2, "CODE2" 52256end 52257EOF 52258if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 52259 save_CPPFLAGS="${CPPFLAGS}" 52260 if test -d "/usr/include/et"; then 52261 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 52262 fi 52263 if test "$cross_compiling" = yes; then 52264 krb_cv_compile_et="yes" krb_cv_compile_et_cross=yes 52265else 52266 cat >conftest.$ac_ext <<_ACEOF 52267 52268#include <com_err.h> 52269#include <string.h> 52270#include "conftest_et.h" 52271int main(int argc, char **argv){ 52272#ifndef ERROR_TABLE_BASE_conf 52273#error compile_et does not handle error_table N M 52274#endif 52275return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 52276 52277_ACEOF 52278rm -f conftest$ac_exeext 52279if { (ac_try="$ac_link" 52280case "(($ac_try" in 52281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52282 *) ac_try_echo=$ac_try;; 52283esac 52284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52285 (eval "$ac_link") 2>&5 52286 ac_status=$? 52287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 52289 { (case "(($ac_try" in 52290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52291 *) ac_try_echo=$ac_try;; 52292esac 52293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52294 (eval "$ac_try") 2>&5 52295 ac_status=$? 52296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52297 (exit $ac_status); }; }; then 52298 krb_cv_compile_et="yes" 52299else 52300 echo "$as_me: program exited with status $ac_status" >&5 52301echo "$as_me: failed program was:" >&5 52302sed 's/^/| /' conftest.$ac_ext >&5 52303 52304( exit $ac_status ) 52305CPPFLAGS="${save_CPPFLAGS}" 52306fi 52307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 52308fi 52309 52310 52311fi 52312{ echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5 52313echo "${ECHO_T}${krb_cv_compile_et}" >&6; } 52314if test "${krb_cv_compile_et}" = "yes" -a "${krb_cv_compile_et_cross}" = no; then 52315 { echo "$as_me:$LINENO: checking for if com_err generates a initialize_conf_error_table_r" >&5 52316echo $ECHO_N "checking for if com_err generates a initialize_conf_error_table_r... $ECHO_C" >&6; } 52317 cat >conftest.$ac_ext <<_ACEOF 52318/* confdefs.h. */ 52319_ACEOF 52320cat confdefs.h >>conftest.$ac_ext 52321cat >>conftest.$ac_ext <<_ACEOF 52322/* end confdefs.h. */ 52323#include "conftest_et.h" 52324_ACEOF 52325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 52326 $EGREP "initialize_conf_error_table_r.*struct et_list" >/dev/null 2>&1; then 52327 krb_cv_com_err_need_r="ok" 52328fi 52329rm -f conftest* 52330 52331 if test X"$krb_cv_com_err_need_r" = X ; then 52332 { echo "$as_me:$LINENO: result: no" >&5 52333echo "${ECHO_T}no" >&6; } 52334 krb_cv_compile_et=no 52335 else 52336 { echo "$as_me:$LINENO: result: yes" >&5 52337echo "${ECHO_T}yes" >&6; } 52338 fi 52339fi 52340rm -fr conftest* 52341fi 52342 52343if test "${krb_cv_compile_et_cross}" = yes ; then 52344 krb_cv_com_err="cross" 52345elif test "${krb_cv_compile_et}" = "yes"; then 52346 krb_cv_save_LIBS="${LIBS}" 52347 LIBS="${LIBS} -lcom_err" 52348 { echo "$as_me:$LINENO: checking for com_err" >&5 52349echo $ECHO_N "checking for com_err... $ECHO_C" >&6; } 52350 cat >conftest.$ac_ext <<_ACEOF 52351/* confdefs.h. */ 52352_ACEOF 52353cat confdefs.h >>conftest.$ac_ext 52354cat >>conftest.$ac_ext <<_ACEOF 52355/* end confdefs.h. */ 52356#include <com_err.h> 52357int 52358main () 52359{ 52360 52361 const char *p; 52362 p = error_message(0); 52363 initialize_error_table_r(0,0,0,0); 52364 52365 ; 52366 return 0; 52367} 52368_ACEOF 52369rm -f conftest.$ac_objext conftest$ac_exeext 52370if { (ac_try="$ac_link" 52371case "(($ac_try" in 52372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 52373 *) ac_try_echo=$ac_try;; 52374esac 52375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 52376 (eval "$ac_link") 2>conftest.er1 52377 ac_status=$? 52378 grep -v '^ *+' conftest.er1 >conftest.err 52379 rm -f conftest.er1 52380 cat conftest.err >&5 52381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52382 (exit $ac_status); } && { 52383 test -z "$ac_c_werror_flag" || 52384 test ! -s conftest.err 52385 } && test -s conftest$ac_exeext && 52386 $as_test_x conftest$ac_exeext; then 52387 krb_cv_com_err="yes" 52388else 52389 echo "$as_me: failed program was:" >&5 52390sed 's/^/| /' conftest.$ac_ext >&5 52391 52392 krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 52393fi 52394 52395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 52396 conftest$ac_exeext conftest.$ac_ext 52397 { echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5 52398echo "${ECHO_T}${krb_cv_com_err}" >&6; } 52399 LIBS="${krb_cv_save_LIBS}" 52400else 52401 krb_cv_com_err="no" 52402fi 52403 52404if test "${krb_cv_com_err}" = "yes"; then 52405 DIR_com_err="" 52406 LIB_com_err="-lcom_err" 52407 LIB_com_err_a="" 52408 LIB_com_err_so="" 52409 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5 52410echo "$as_me: Using the already-installed com_err" >&6;} 52411 localcomerr=no 52412elif test "${krb_cv_com_err}" = "cross"; then 52413 DIR_com_err="com_err" 52414 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 52415 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 52416 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 52417 { echo "$as_me:$LINENO: Using our own com_err with toolchain compile_et" >&5 52418echo "$as_me: Using our own com_err with toolchain compile_et" >&6;} 52419 localcomerr=yes 52420else 52421 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 52422 DIR_com_err="com_err" 52423 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 52424 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 52425 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 52426 { echo "$as_me:$LINENO: Using our own com_err" >&5 52427echo "$as_me: Using our own com_err" >&6;} 52428 localcomerr=yes 52429fi 52430 if test "$localcomerr" = yes; then 52431 COM_ERR_TRUE= 52432 COM_ERR_FALSE='#' 52433else 52434 COM_ERR_TRUE='#' 52435 COM_ERR_FALSE= 52436fi 52437 52438 52439 52440 52441 52442 52443 52444 52445{ echo "$as_me:$LINENO: checking which authentication modules should be built" >&5 52446echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6; } 52447 52448z='sia afskauthlib' 52449LIB_AUTH_SUBDIRS= 52450for i in $z; do 52451case $i in 52452sia) 52453if test "$ac_cv_header_siad_h" = yes; then 52454 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 52455fi 52456;; 52457pam) 52458case "${host}" in 52459*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 52460*) ac_cv_want_pam_krb4=yes ;; 52461esac 52462 52463if test "$ac_cv_want_pam_krb4" = yes -a \ 52464 "$ac_cv_header_security_pam_modules_h" = yes -a \ 52465 "$enable_shared" = yes; then 52466 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 52467fi 52468;; 52469afskauthlib) 52470case "${host}" in 52471*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 52472esac 52473;; 52474esac 52475done 52476if test "$LIB_AUTH_SUBDIRS"; then 52477 { echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5 52478echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6; } 52479else 52480 { echo "$as_me:$LINENO: result: none" >&5 52481echo "${ECHO_T}none" >&6; } 52482fi 52483 52484 52485 52486 52487# This is done by AC_OUTPUT but we need the result here. 52488test "x$prefix" = xNONE && prefix=$ac_default_prefix 52489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52490 52491 52492 x="${bindir}" 52493 eval y="$x" 52494 while test "x$y" != "x$x"; do 52495 x="$y" 52496 eval y="$x" 52497 done 52498 52499cat >>confdefs.h <<_ACEOF 52500#define BINDIR "$x" 52501_ACEOF 52502 52503 x="${libdir}" 52504 eval y="$x" 52505 while test "x$y" != "x$x"; do 52506 x="$y" 52507 eval y="$x" 52508 done 52509 52510cat >>confdefs.h <<_ACEOF 52511#define LIBDIR "$x" 52512_ACEOF 52513 52514 x="${libexecdir}" 52515 eval y="$x" 52516 while test "x$y" != "x$x"; do 52517 x="$y" 52518 eval y="$x" 52519 done 52520 52521cat >>confdefs.h <<_ACEOF 52522#define LIBEXECDIR "$x" 52523_ACEOF 52524 52525 x="${localstatedir}" 52526 eval y="$x" 52527 while test "x$y" != "x$x"; do 52528 x="$y" 52529 eval y="$x" 52530 done 52531 52532cat >>confdefs.h <<_ACEOF 52533#define LOCALSTATEDIR "$x" 52534_ACEOF 52535 52536 x="${sbindir}" 52537 eval y="$x" 52538 while test "x$y" != "x$x"; do 52539 x="$y" 52540 eval y="$x" 52541 done 52542 52543cat >>confdefs.h <<_ACEOF 52544#define SBINDIR "$x" 52545_ACEOF 52546 52547 x="${sysconfdir}" 52548 eval y="$x" 52549 while test "x$y" != "x$x"; do 52550 x="$y" 52551 eval y="$x" 52552 done 52553 52554cat >>confdefs.h <<_ACEOF 52555#define SYSCONFDIR "$x" 52556_ACEOF 52557 52558 52559 52560 52561 52562# Check whether --enable-developer was given. 52563if test "${enable_developer+set}" = set; then 52564 enableval=$enable_developer; 52565fi 52566 52567if test "X$enable_developer" = Xyes; then 52568 dwflags="-Werror" 52569fi 52570 52571WFLAGS_NOUNUSED="" 52572WFLAGS_NOIMPLICITINT="" 52573if test -z "$WFLAGS" -a "$GCC" = "yes"; then 52574 # -Wno-implicit-int for broken X11 headers 52575 # leave these out for now: 52576 # -Wcast-align doesn't work well on alpha osf/1 52577 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 52578 # -Wmissing-declarations -Wnested-externs 52579 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs $dwflags" 52580 WFLAGS_NOUNUSED="-Wno-unused" 52581 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 52582fi 52583 52584 52585 52586 52587 52588 52589ac_config_files="$ac_config_files Makefile etc/Makefile include/Makefile include/gssapi/Makefile include/hcrypto/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/hcrypto/Makefile lib/editline/Makefile lib/hx509/Makefile lib/gssapi/Makefile lib/ntlm/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kcm/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/gssmask/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile tests/Makefile tests/can/Makefile tests/db/Makefile tests/kdc/Makefile tests/ldap/Makefile tests/gss/Makefile tests/java/Makefile tests/plugin/Makefile packages/Makefile packages/mac/Makefile packages/debian/Makefile doc/Makefile tools/Makefile" 52590 52591 52592cat >confcache <<\_ACEOF 52593# This file is a shell script that caches the results of configure 52594# tests run on this system so they can be shared between configure 52595# scripts and configure runs, see configure's option --config-cache. 52596# It is not useful on other systems. If it contains results you don't 52597# want to keep, you may remove or edit it. 52598# 52599# config.status only pays attention to the cache file if you give it 52600# the --recheck option to rerun configure. 52601# 52602# `ac_cv_env_foo' variables (set or unset) will be overridden when 52603# loading this file, other *unset* `ac_cv_foo' will be assigned the 52604# following values. 52605 52606_ACEOF 52607 52608# The following way of writing the cache mishandles newlines in values, 52609# but we know of no workaround that is simple, portable, and efficient. 52610# So, we kill variables containing newlines. 52611# Ultrix sh set writes to stderr and can't be redirected directly, 52612# and sets the high bit in the cache file unless we assign to the vars. 52613( 52614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 52615 eval ac_val=\$$ac_var 52616 case $ac_val in #( 52617 *${as_nl}*) 52618 case $ac_var in #( 52619 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 52620echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 52621 esac 52622 case $ac_var in #( 52623 _ | IFS | as_nl) ;; #( 52624 *) $as_unset $ac_var ;; 52625 esac ;; 52626 esac 52627 done 52628 52629 (set) 2>&1 | 52630 case $as_nl`(ac_space=' '; set) 2>&1` in #( 52631 *${as_nl}ac_space=\ *) 52632 # `set' does not quote correctly, so add quotes (double-quote 52633 # substitution turns \\\\ into \\, and sed turns \\ into \). 52634 sed -n \ 52635 "s/'/'\\\\''/g; 52636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 52637 ;; #( 52638 *) 52639 # `set' quotes correctly as required by POSIX, so do not add quotes. 52640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 52641 ;; 52642 esac | 52643 sort 52644) | 52645 sed ' 52646 /^ac_cv_env_/b end 52647 t clear 52648 :clear 52649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 52650 t end 52651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 52652 :end' >>confcache 52653if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 52654 if test -w "$cache_file"; then 52655 test "x$cache_file" != "x/dev/null" && 52656 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 52657echo "$as_me: updating cache $cache_file" >&6;} 52658 cat confcache >$cache_file 52659 else 52660 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 52661echo "$as_me: not updating unwritable cache $cache_file" >&6;} 52662 fi 52663fi 52664rm -f confcache 52665 52666test "x$prefix" = xNONE && prefix=$ac_default_prefix 52667# Let make expand exec_prefix. 52668test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52669 52670DEFS=-DHAVE_CONFIG_H 52671 52672ac_libobjs= 52673ac_ltlibobjs= 52674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52675 # 1. Remove the extension, and $U if already installed. 52676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52677 ac_i=`echo "$ac_i" | sed "$ac_script"` 52678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52679 # will be set to the directory where LIBOBJS objects are built. 52680 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52681 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 52682done 52683LIBOBJS=$ac_libobjs 52684 52685LTLIBOBJS=$ac_ltlibobjs 52686 52687 52688if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 52689 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 52690Usually this means the macro was only invoked conditionally." >&5 52691echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 52692Usually this means the macro was only invoked conditionally." >&2;} 52693 { (exit 1); exit 1; }; } 52694fi 52695if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 52696 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined. 52697Usually this means the macro was only invoked conditionally." >&5 52698echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined. 52699Usually this means the macro was only invoked conditionally." >&2;} 52700 { (exit 1); exit 1; }; } 52701fi 52702if test -z "${versionscript_TRUE}" && test -z "${versionscript_FALSE}"; then 52703 { { echo "$as_me:$LINENO: error: conditional \"versionscript\" was never defined. 52704Usually this means the macro was only invoked conditionally." >&5 52705echo "$as_me: error: conditional \"versionscript\" was never defined. 52706Usually this means the macro was only invoked conditionally." >&2;} 52707 { (exit 1); exit 1; }; } 52708fi 52709if test -z "${OPENLDAP_MODULE_TRUE}" && test -z "${OPENLDAP_MODULE_FALSE}"; then 52710 { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP_MODULE\" was never defined. 52711Usually this means the macro was only invoked conditionally." >&5 52712echo "$as_me: error: conditional \"OPENLDAP_MODULE\" was never defined. 52713Usually this means the macro was only invoked conditionally." >&2;} 52714 { (exit 1); exit 1; }; } 52715fi 52716if test -z "${PKINIT_TRUE}" && test -z "${PKINIT_FALSE}"; then 52717 { { echo "$as_me:$LINENO: error: conditional \"PKINIT\" was never defined. 52718Usually this means the macro was only invoked conditionally." >&5 52719echo "$as_me: error: conditional \"PKINIT\" was never defined. 52720Usually this means the macro was only invoked conditionally." >&2;} 52721 { (exit 1); exit 1; }; } 52722fi 52723if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then 52724 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined. 52725Usually this means the macro was only invoked conditionally." >&5 52726echo "$as_me: error: conditional \"KRB4\" was never defined. 52727Usually this means the macro was only invoked conditionally." >&2;} 52728 { (exit 1); exit 1; }; } 52729fi 52730if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 52731 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined. 52732Usually this means the macro was only invoked conditionally." >&5 52733echo "$as_me: error: conditional \"KRB5\" was never defined. 52734Usually this means the macro was only invoked conditionally." >&2;} 52735 { (exit 1); exit 1; }; } 52736fi 52737if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 52738 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined. 52739Usually this means the macro was only invoked conditionally." >&5 52740echo "$as_me: error: conditional \"do_roken_rename\" was never defined. 52741Usually this means the macro was only invoked conditionally." >&2;} 52742 { (exit 1); exit 1; }; } 52743fi 52744if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 52745 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined. 52746Usually this means the macro was only invoked conditionally." >&5 52747echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined. 52748Usually this means the macro was only invoked conditionally." >&2;} 52749 { (exit 1); exit 1; }; } 52750fi 52751if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 52752 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined. 52753Usually this means the macro was only invoked conditionally." >&5 52754echo "$as_me: error: conditional \"DCE\" was never defined. 52755Usually this means the macro was only invoked conditionally." >&2;} 52756 { (exit 1); exit 1; }; } 52757fi 52758if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 52759 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined. 52760Usually this means the macro was only invoked conditionally." >&5 52761echo "$as_me: error: conditional \"HAVE_DB1\" was never defined. 52762Usually this means the macro was only invoked conditionally." >&2;} 52763 { (exit 1); exit 1; }; } 52764fi 52765if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 52766 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined. 52767Usually this means the macro was only invoked conditionally." >&5 52768echo "$as_me: error: conditional \"HAVE_DB3\" was never defined. 52769Usually this means the macro was only invoked conditionally." >&2;} 52770 { (exit 1); exit 1; }; } 52771fi 52772if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 52773 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined. 52774Usually this means the macro was only invoked conditionally." >&5 52775echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined. 52776Usually this means the macro was only invoked conditionally." >&2;} 52777 { (exit 1); exit 1; }; } 52778fi 52779if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 52780 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined. 52781Usually this means the macro was only invoked conditionally." >&5 52782echo "$as_me: error: conditional \"have_err_h\" was never defined. 52783Usually this means the macro was only invoked conditionally." >&2;} 52784 { (exit 1); exit 1; }; } 52785fi 52786if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 52787 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined. 52788Usually this means the macro was only invoked conditionally." >&5 52789echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined. 52790Usually this means the macro was only invoked conditionally." >&2;} 52791 { (exit 1); exit 1; }; } 52792fi 52793if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 52794 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined. 52795Usually this means the macro was only invoked conditionally." >&5 52796echo "$as_me: error: conditional \"have_vis_h\" was never defined. 52797Usually this means the macro was only invoked conditionally." >&2;} 52798 { (exit 1); exit 1; }; } 52799fi 52800if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 52801 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined. 52802Usually this means the macro was only invoked conditionally." >&5 52803echo "$as_me: error: conditional \"have_glob_h\" was never defined. 52804Usually this means the macro was only invoked conditionally." >&2;} 52805 { (exit 1); exit 1; }; } 52806fi 52807if test -z "${have_cgetent_TRUE}" && test -z "${have_cgetent_FALSE}"; then 52808 { { echo "$as_me:$LINENO: error: conditional \"have_cgetent\" was never defined. 52809Usually this means the macro was only invoked conditionally." >&5 52810echo "$as_me: error: conditional \"have_cgetent\" was never defined. 52811Usually this means the macro was only invoked conditionally." >&2;} 52812 { (exit 1); exit 1; }; } 52813fi 52814if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 52815 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined. 52816Usually this means the macro was only invoked conditionally." >&5 52817echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined. 52818Usually this means the macro was only invoked conditionally." >&2;} 52819 { (exit 1); exit 1; }; } 52820fi 52821if test -z "${have_socket_wrapper_TRUE}" && test -z "${have_socket_wrapper_FALSE}"; then 52822 { { echo "$as_me:$LINENO: error: conditional \"have_socket_wrapper\" was never defined. 52823Usually this means the macro was only invoked conditionally." >&5 52824echo "$as_me: error: conditional \"have_socket_wrapper\" was never defined. 52825Usually this means the macro was only invoked conditionally." >&2;} 52826 { (exit 1); exit 1; }; } 52827fi 52828if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 52829 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined. 52830Usually this means the macro was only invoked conditionally." >&5 52831echo "$as_me: error: conditional \"OTP\" was never defined. 52832Usually this means the macro was only invoked conditionally." >&2;} 52833 { (exit 1); exit 1; }; } 52834fi 52835if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 52836 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined. 52837Usually this means the macro was only invoked conditionally." >&5 52838echo "$as_me: error: conditional \"CATMAN\" was never defined. 52839Usually this means the macro was only invoked conditionally." >&2;} 52840 { (exit 1); exit 1; }; } 52841fi 52842if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 52843 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined. 52844Usually this means the macro was only invoked conditionally." >&5 52845echo "$as_me: error: conditional \"AIX\" was never defined. 52846Usually this means the macro was only invoked conditionally." >&2;} 52847 { (exit 1); exit 1; }; } 52848fi 52849if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 52850 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined. 52851Usually this means the macro was only invoked conditionally." >&5 52852echo "$as_me: error: conditional \"AIX4\" was never defined. 52853Usually this means the macro was only invoked conditionally." >&2;} 52854 { (exit 1); exit 1; }; } 52855fi 52856if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 52857 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined. 52858Usually this means the macro was only invoked conditionally." >&5 52859echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined. 52860Usually this means the macro was only invoked conditionally." >&2;} 52861 { (exit 1); exit 1; }; } 52862fi 52863if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 52864 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 52865Usually this means the macro was only invoked conditionally." >&5 52866echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 52867Usually this means the macro was only invoked conditionally." >&2;} 52868 { (exit 1); exit 1; }; } 52869fi 52870if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 52871 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined. 52872Usually this means the macro was only invoked conditionally." >&5 52873echo "$as_me: error: conditional \"IRIX\" was never defined. 52874Usually this means the macro was only invoked conditionally." >&2;} 52875 { (exit 1); exit 1; }; } 52876fi 52877if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 52878 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 52879Usually this means the macro was only invoked conditionally." >&5 52880echo "$as_me: error: conditional \"HAVE_X\" was never defined. 52881Usually this means the macro was only invoked conditionally." >&2;} 52882 { (exit 1); exit 1; }; } 52883fi 52884if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then 52885 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined. 52886Usually this means the macro was only invoked conditionally." >&5 52887echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined. 52888Usually this means the macro was only invoked conditionally." >&2;} 52889 { (exit 1); exit 1; }; } 52890fi 52891if test -z "${KCM_TRUE}" && test -z "${KCM_FALSE}"; then 52892 { { echo "$as_me:$LINENO: error: conditional \"KCM\" was never defined. 52893Usually this means the macro was only invoked conditionally." >&5 52894echo "$as_me: error: conditional \"KCM\" was never defined. 52895Usually this means the macro was only invoked conditionally." >&2;} 52896 { (exit 1); exit 1; }; } 52897fi 52898if test -z "${FRAMEWORK_SECURITY_TRUE}" && test -z "${FRAMEWORK_SECURITY_FALSE}"; then 52899 { { echo "$as_me:$LINENO: error: conditional \"FRAMEWORK_SECURITY\" was never defined. 52900Usually this means the macro was only invoked conditionally." >&5 52901echo "$as_me: error: conditional \"FRAMEWORK_SECURITY\" was never defined. 52902Usually this means the macro was only invoked conditionally." >&2;} 52903 { (exit 1); exit 1; }; } 52904fi 52905if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then 52906 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined. 52907Usually this means the macro was only invoked conditionally." >&5 52908echo "$as_me: error: conditional \"el_compat\" was never defined. 52909Usually this means the macro was only invoked conditionally." >&2;} 52910 { (exit 1); exit 1; }; } 52911fi 52912if test -z "${COM_ERR_TRUE}" && test -z "${COM_ERR_FALSE}"; then 52913 { { echo "$as_me:$LINENO: error: conditional \"COM_ERR\" was never defined. 52914Usually this means the macro was only invoked conditionally." >&5 52915echo "$as_me: error: conditional \"COM_ERR\" was never defined. 52916Usually this means the macro was only invoked conditionally." >&2;} 52917 { (exit 1); exit 1; }; } 52918fi 52919 52920: ${CONFIG_STATUS=./config.status} 52921ac_clean_files_save=$ac_clean_files 52922ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52923{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 52924echo "$as_me: creating $CONFIG_STATUS" >&6;} 52925cat >$CONFIG_STATUS <<_ACEOF 52926#! $SHELL 52927# Generated by $as_me. 52928# Run this file to recreate the current configuration. 52929# Compiler output produced by configure, useful for debugging 52930# configure, is in config.log if it exists. 52931 52932debug=false 52933ac_cs_recheck=false 52934ac_cs_silent=false 52935SHELL=\${CONFIG_SHELL-$SHELL} 52936_ACEOF 52937 52938cat >>$CONFIG_STATUS <<\_ACEOF 52939## --------------------- ## 52940## M4sh Initialization. ## 52941## --------------------- ## 52942 52943# Be more Bourne compatible 52944DUALCASE=1; export DUALCASE # for MKS sh 52945if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 52946 emulate sh 52947 NULLCMD=: 52948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 52949 # is contrary to our usage. Disable this feature. 52950 alias -g '${1+"$@"}'='"$@"' 52951 setopt NO_GLOB_SUBST 52952else 52953 case `(set -o) 2>/dev/null` in 52954 *posix*) set -o posix ;; 52955esac 52956 52957fi 52958 52959 52960 52961 52962# PATH needs CR 52963# Avoid depending upon Character Ranges. 52964as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52965as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52966as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52967as_cr_digits='0123456789' 52968as_cr_alnum=$as_cr_Letters$as_cr_digits 52969 52970# The user is always right. 52971if test "${PATH_SEPARATOR+set}" != set; then 52972 echo "#! /bin/sh" >conf$$.sh 52973 echo "exit 0" >>conf$$.sh 52974 chmod +x conf$$.sh 52975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 52976 PATH_SEPARATOR=';' 52977 else 52978 PATH_SEPARATOR=: 52979 fi 52980 rm -f conf$$.sh 52981fi 52982 52983# Support unset when possible. 52984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 52985 as_unset=unset 52986else 52987 as_unset=false 52988fi 52989 52990 52991# IFS 52992# We need space, tab and new line, in precisely that order. Quoting is 52993# there to prevent editors from complaining about space-tab. 52994# (If _AS_PATH_WALK were called with IFS unset, it would disable word 52995# splitting by setting IFS to empty value.) 52996as_nl=' 52997' 52998IFS=" "" $as_nl" 52999 53000# Find who we are. Look in the path if we contain no directory separator. 53001case $0 in 53002 *[\\/]* ) as_myself=$0 ;; 53003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53004for as_dir in $PATH 53005do 53006 IFS=$as_save_IFS 53007 test -z "$as_dir" && as_dir=. 53008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 53009done 53010IFS=$as_save_IFS 53011 53012 ;; 53013esac 53014# We did not find ourselves, most probably we were run as `sh COMMAND' 53015# in which case we are not to be found in the path. 53016if test "x$as_myself" = x; then 53017 as_myself=$0 53018fi 53019if test ! -f "$as_myself"; then 53020 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 53021 { (exit 1); exit 1; } 53022fi 53023 53024# Work around bugs in pre-3.0 UWIN ksh. 53025for as_var in ENV MAIL MAILPATH 53026do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 53027done 53028PS1='$ ' 53029PS2='> ' 53030PS4='+ ' 53031 53032# NLS nuisances. 53033for as_var in \ 53034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 53035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 53036 LC_TELEPHONE LC_TIME 53037do 53038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 53039 eval $as_var=C; export $as_var 53040 else 53041 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 53042 fi 53043done 53044 53045# Required to use basename. 53046if expr a : '\(a\)' >/dev/null 2>&1 && 53047 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53048 as_expr=expr 53049else 53050 as_expr=false 53051fi 53052 53053if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 53054 as_basename=basename 53055else 53056 as_basename=false 53057fi 53058 53059 53060# Name of the executable. 53061as_me=`$as_basename -- "$0" || 53062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 53063 X"$0" : 'X\(//\)$' \| \ 53064 X"$0" : 'X\(/\)' \| . 2>/dev/null || 53065echo X/"$0" | 53066 sed '/^.*\/\([^/][^/]*\)\/*$/{ 53067 s//\1/ 53068 q 53069 } 53070 /^X\/\(\/\/\)$/{ 53071 s//\1/ 53072 q 53073 } 53074 /^X\/\(\/\).*/{ 53075 s//\1/ 53076 q 53077 } 53078 s/.*/./; q'` 53079 53080# CDPATH. 53081$as_unset CDPATH 53082 53083 53084 53085 as_lineno_1=$LINENO 53086 as_lineno_2=$LINENO 53087 test "x$as_lineno_1" != "x$as_lineno_2" && 53088 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 53089 53090 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 53091 # uniformly replaced by the line number. The first 'sed' inserts a 53092 # line-number line after each line using $LINENO; the second 'sed' 53093 # does the real work. The second script uses 'N' to pair each 53094 # line-number line with the line containing $LINENO, and appends 53095 # trailing '-' during substitution so that $LINENO is not a special 53096 # case at line end. 53097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 53098 # scripts with optimization help from Paolo Bonzini. Blame Lee 53099 # E. McMahon (1931-1989) for sed's syntax. :-) 53100 sed -n ' 53101 p 53102 /[$]LINENO/= 53103 ' <$as_myself | 53104 sed ' 53105 s/[$]LINENO.*/&-/ 53106 t lineno 53107 b 53108 :lineno 53109 N 53110 :loop 53111 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 53112 t loop 53113 s/-\n.*// 53114 ' >$as_me.lineno && 53115 chmod +x "$as_me.lineno" || 53116 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 53117 { (exit 1); exit 1; }; } 53118 53119 # Don't try to exec as it changes $[0], causing all sort of problems 53120 # (the dirname of $[0] is not the place where we might find the 53121 # original and so on. Autoconf is especially sensitive to this). 53122 . "./$as_me.lineno" 53123 # Exit status is that of the last command. 53124 exit 53125} 53126 53127 53128if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 53129 as_dirname=dirname 53130else 53131 as_dirname=false 53132fi 53133 53134ECHO_C= ECHO_N= ECHO_T= 53135case `echo -n x` in 53136-n*) 53137 case `echo 'x\c'` in 53138 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 53139 *) ECHO_C='\c';; 53140 esac;; 53141*) 53142 ECHO_N='-n';; 53143esac 53144 53145if expr a : '\(a\)' >/dev/null 2>&1 && 53146 test "X`expr 00001 : '.*\(...\)'`" = X001; then 53147 as_expr=expr 53148else 53149 as_expr=false 53150fi 53151 53152rm -f conf$$ conf$$.exe conf$$.file 53153if test -d conf$$.dir; then 53154 rm -f conf$$.dir/conf$$.file 53155else 53156 rm -f conf$$.dir 53157 mkdir conf$$.dir 53158fi 53159echo >conf$$.file 53160if ln -s conf$$.file conf$$ 2>/dev/null; then 53161 as_ln_s='ln -s' 53162 # ... but there are two gotchas: 53163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 53164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53165 # In both cases, we have to default to `cp -p'. 53166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53167 as_ln_s='cp -p' 53168elif ln conf$$.file conf$$ 2>/dev/null; then 53169 as_ln_s=ln 53170else 53171 as_ln_s='cp -p' 53172fi 53173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 53174rmdir conf$$.dir 2>/dev/null 53175 53176if mkdir -p . 2>/dev/null; then 53177 as_mkdir_p=: 53178else 53179 test -d ./-p && rmdir ./-p 53180 as_mkdir_p=false 53181fi 53182 53183if test -x / >/dev/null 2>&1; then 53184 as_test_x='test -x' 53185else 53186 if ls -dL / >/dev/null 2>&1; then 53187 as_ls_L_option=L 53188 else 53189 as_ls_L_option= 53190 fi 53191 as_test_x=' 53192 eval sh -c '\'' 53193 if test -d "$1"; then 53194 test -d "$1/."; 53195 else 53196 case $1 in 53197 -*)set "./$1";; 53198 esac; 53199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 53200 ???[sx]*):;;*)false;;esac;fi 53201 '\'' sh 53202 ' 53203fi 53204as_executable_p=$as_test_x 53205 53206# Sed expression to map a string onto a valid CPP name. 53207as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 53208 53209# Sed expression to map a string onto a valid variable name. 53210as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 53211 53212 53213exec 6>&1 53214 53215# Save the log message, to keep $[0] and so on meaningful, and to 53216# report actual input values of CONFIG_FILES etc. instead of their 53217# values after options handling. 53218ac_log=" 53219This file was extended by Heimdal $as_me 1.1, which was 53220generated by GNU Autoconf 2.61. Invocation command line was 53221 53222 CONFIG_FILES = $CONFIG_FILES 53223 CONFIG_HEADERS = $CONFIG_HEADERS 53224 CONFIG_LINKS = $CONFIG_LINKS 53225 CONFIG_COMMANDS = $CONFIG_COMMANDS 53226 $ $0 $@ 53227 53228on `(hostname || uname -n) 2>/dev/null | sed 1q` 53229" 53230 53231_ACEOF 53232 53233cat >>$CONFIG_STATUS <<_ACEOF 53234# Files that config.status was made for. 53235config_files="$ac_config_files" 53236config_headers="$ac_config_headers" 53237 53238_ACEOF 53239 53240cat >>$CONFIG_STATUS <<\_ACEOF 53241ac_cs_usage="\ 53242\`$as_me' instantiates files from templates according to the 53243current configuration. 53244 53245Usage: $0 [OPTIONS] [FILE]... 53246 53247 -h, --help print this help, then exit 53248 -V, --version print version number and configuration settings, then exit 53249 -q, --quiet do not print progress messages 53250 -d, --debug don't remove temporary files 53251 --recheck update $as_me by reconfiguring in the same conditions 53252 --file=FILE[:TEMPLATE] 53253 instantiate the configuration file FILE 53254 --header=FILE[:TEMPLATE] 53255 instantiate the configuration header FILE 53256 53257Configuration files: 53258$config_files 53259 53260Configuration headers: 53261$config_headers 53262 53263Report bugs to <bug-autoconf@gnu.org>." 53264 53265_ACEOF 53266cat >>$CONFIG_STATUS <<_ACEOF 53267ac_cs_version="\\ 53268Heimdal config.status 1.1 53269configured by $0, generated by GNU Autoconf 2.61, 53270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 53271 53272Copyright (C) 2006 Free Software Foundation, Inc. 53273This config.status script is free software; the Free Software Foundation 53274gives unlimited permission to copy, distribute and modify it." 53275 53276ac_pwd='$ac_pwd' 53277srcdir='$srcdir' 53278INSTALL='$INSTALL' 53279MKDIR_P='$MKDIR_P' 53280_ACEOF 53281 53282cat >>$CONFIG_STATUS <<\_ACEOF 53283# If no file are specified by the user, then we need to provide default 53284# value. By we need to know if files were specified by the user. 53285ac_need_defaults=: 53286while test $# != 0 53287do 53288 case $1 in 53289 --*=*) 53290 ac_option=`expr "X$1" : 'X\([^=]*\)='` 53291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 53292 ac_shift=: 53293 ;; 53294 *) 53295 ac_option=$1 53296 ac_optarg=$2 53297 ac_shift=shift 53298 ;; 53299 esac 53300 53301 case $ac_option in 53302 # Handling of the options. 53303 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 53304 ac_cs_recheck=: ;; 53305 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 53306 echo "$ac_cs_version"; exit ;; 53307 --debug | --debu | --deb | --de | --d | -d ) 53308 debug=: ;; 53309 --file | --fil | --fi | --f ) 53310 $ac_shift 53311 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 53312 ac_need_defaults=false;; 53313 --header | --heade | --head | --hea ) 53314 $ac_shift 53315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 53316 ac_need_defaults=false;; 53317 --he | --h) 53318 # Conflict between --help and --header 53319 { echo "$as_me: error: ambiguous option: $1 53320Try \`$0 --help' for more information." >&2 53321 { (exit 1); exit 1; }; };; 53322 --help | --hel | -h ) 53323 echo "$ac_cs_usage"; exit ;; 53324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 53325 | -silent | --silent | --silen | --sile | --sil | --si | --s) 53326 ac_cs_silent=: ;; 53327 53328 # This is an error. 53329 -*) { echo "$as_me: error: unrecognized option: $1 53330Try \`$0 --help' for more information." >&2 53331 { (exit 1); exit 1; }; } ;; 53332 53333 *) ac_config_targets="$ac_config_targets $1" 53334 ac_need_defaults=false ;; 53335 53336 esac 53337 shift 53338done 53339 53340ac_configure_extra_args= 53341 53342if $ac_cs_silent; then 53343 exec 6>/dev/null 53344 ac_configure_extra_args="$ac_configure_extra_args --silent" 53345fi 53346 53347_ACEOF 53348cat >>$CONFIG_STATUS <<_ACEOF 53349if \$ac_cs_recheck; then 53350 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 53351 CONFIG_SHELL=$SHELL 53352 export CONFIG_SHELL 53353 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 53354fi 53355 53356_ACEOF 53357cat >>$CONFIG_STATUS <<\_ACEOF 53358exec 5>>config.log 53359{ 53360 echo 53361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 53362## Running $as_me. ## 53363_ASBOX 53364 echo "$ac_log" 53365} >&5 53366 53367_ACEOF 53368cat >>$CONFIG_STATUS <<_ACEOF 53369_ACEOF 53370 53371cat >>$CONFIG_STATUS <<\_ACEOF 53372 53373# Handling of arguments. 53374for ac_config_target in $ac_config_targets 53375do 53376 case $ac_config_target in 53377 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 53378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 53379 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 53380 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 53381 "include/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES include/gssapi/Makefile" ;; 53382 "include/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/hcrypto/Makefile" ;; 53383 "include/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 53384 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 53385 "lib/45/Makefile") CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 53386 "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 53387 "lib/auth/afskauthlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 53388 "lib/auth/pam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 53389 "lib/auth/sia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 53390 "lib/asn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 53391 "lib/com_err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 53392 "lib/hcrypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hcrypto/Makefile" ;; 53393 "lib/editline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 53394 "lib/hx509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hx509/Makefile" ;; 53395 "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 53396 "lib/ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ntlm/Makefile" ;; 53397 "lib/hdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 53398 "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 53399 "lib/kafs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 53400 "lib/kdfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 53401 "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 53402 "lib/otp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 53403 "lib/roken/Makefile") CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 53404 "lib/sl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 53405 "lib/vers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 53406 "kuser/Makefile") CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 53407 "kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 53408 "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 53409 "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 53410 "kcm/Makefile") CONFIG_FILES="$CONFIG_FILES kcm/Makefile" ;; 53411 "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 53412 "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 53413 "appl/afsutil/Makefile") CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 53414 "appl/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 53415 "appl/ftp/common/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 53416 "appl/ftp/ftp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 53417 "appl/ftp/ftpd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 53418 "appl/gssmask/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gssmask/Makefile" ;; 53419 "appl/kx/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 53420 "appl/login/Makefile") CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 53421 "appl/otp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 53422 "appl/popper/Makefile") CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 53423 "appl/push/Makefile") CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 53424 "appl/rsh/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 53425 "appl/rcp/Makefile") CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 53426 "appl/su/Makefile") CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 53427 "appl/xnlock/Makefile") CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 53428 "appl/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 53429 "appl/telnet/libtelnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 53430 "appl/telnet/telnet/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 53431 "appl/telnet/telnetd/Makefile") CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 53432 "appl/test/Makefile") CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 53433 "appl/kf/Makefile") CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 53434 "appl/dceutils/Makefile") CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 53435 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 53436 "tests/can/Makefile") CONFIG_FILES="$CONFIG_FILES tests/can/Makefile" ;; 53437 "tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES tests/db/Makefile" ;; 53438 "tests/kdc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kdc/Makefile" ;; 53439 "tests/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldap/Makefile" ;; 53440 "tests/gss/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss/Makefile" ;; 53441 "tests/java/Makefile") CONFIG_FILES="$CONFIG_FILES tests/java/Makefile" ;; 53442 "tests/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugin/Makefile" ;; 53443 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 53444 "packages/mac/Makefile") CONFIG_FILES="$CONFIG_FILES packages/mac/Makefile" ;; 53445 "packages/debian/Makefile") CONFIG_FILES="$CONFIG_FILES packages/debian/Makefile" ;; 53446 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 53447 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 53448 53449 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 53450echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 53451 { (exit 1); exit 1; }; };; 53452 esac 53453done 53454 53455 53456# If the user did not use the arguments to specify the items to instantiate, 53457# then the envvar interface is used. Set only those that are not. 53458# We use the long form for the default assignment because of an extremely 53459# bizarre bug on SunOS 4.1.3. 53460if $ac_need_defaults; then 53461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 53462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 53463fi 53464 53465# Have a temporary directory for convenience. Make it in the build tree 53466# simply because there is no reason against having it here, and in addition, 53467# creating and moving files from /tmp can sometimes cause problems. 53468# Hook for its removal unless debugging. 53469# Note that there is a small window in which the directory will not be cleaned: 53470# after its creation but before its name has been assigned to `$tmp'. 53471$debug || 53472{ 53473 tmp= 53474 trap 'exit_status=$? 53475 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 53476' 0 53477 trap '{ (exit 1); exit 1; }' 1 2 13 15 53478} 53479# Create a (secure) tmp directory for tmp files. 53480 53481{ 53482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 53483 test -n "$tmp" && test -d "$tmp" 53484} || 53485{ 53486 tmp=./conf$$-$RANDOM 53487 (umask 077 && mkdir "$tmp") 53488} || 53489{ 53490 echo "$me: cannot create a temporary directory in ." >&2 53491 { (exit 1); exit 1; } 53492} 53493 53494# 53495# Set up the sed scripts for CONFIG_FILES section. 53496# 53497 53498# No need to generate the scripts if there are no CONFIG_FILES. 53499# This happens for instance when ./config.status config.h 53500if test -n "$CONFIG_FILES"; then 53501 53502_ACEOF 53503 53504 53505 53506ac_delim='%!_!# ' 53507for ac_last_try in false false false false false :; do 53508 cat >conf$$subs.sed <<_ACEOF 53509SHELL!$SHELL$ac_delim 53510PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 53511PACKAGE_NAME!$PACKAGE_NAME$ac_delim 53512PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 53513PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 53514PACKAGE_STRING!$PACKAGE_STRING$ac_delim 53515PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 53516exec_prefix!$exec_prefix$ac_delim 53517prefix!$prefix$ac_delim 53518program_transform_name!$program_transform_name$ac_delim 53519bindir!$bindir$ac_delim 53520sbindir!$sbindir$ac_delim 53521libexecdir!$libexecdir$ac_delim 53522datarootdir!$datarootdir$ac_delim 53523datadir!$datadir$ac_delim 53524sysconfdir!$sysconfdir$ac_delim 53525sharedstatedir!$sharedstatedir$ac_delim 53526localstatedir!$localstatedir$ac_delim 53527includedir!$includedir$ac_delim 53528oldincludedir!$oldincludedir$ac_delim 53529docdir!$docdir$ac_delim 53530infodir!$infodir$ac_delim 53531htmldir!$htmldir$ac_delim 53532dvidir!$dvidir$ac_delim 53533pdfdir!$pdfdir$ac_delim 53534psdir!$psdir$ac_delim 53535libdir!$libdir$ac_delim 53536localedir!$localedir$ac_delim 53537mandir!$mandir$ac_delim 53538DEFS!$DEFS$ac_delim 53539ECHO_C!$ECHO_C$ac_delim 53540ECHO_N!$ECHO_N$ac_delim 53541ECHO_T!$ECHO_T$ac_delim 53542LIBS!$LIBS$ac_delim 53543build_alias!$build_alias$ac_delim 53544host_alias!$host_alias$ac_delim 53545target_alias!$target_alias$ac_delim 53546INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 53547INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 53548INSTALL_DATA!$INSTALL_DATA$ac_delim 53549am__isrc!$am__isrc$ac_delim 53550CYGPATH_W!$CYGPATH_W$ac_delim 53551PACKAGE!$PACKAGE$ac_delim 53552VERSION!$VERSION$ac_delim 53553ACLOCAL!$ACLOCAL$ac_delim 53554AUTOCONF!$AUTOCONF$ac_delim 53555AUTOMAKE!$AUTOMAKE$ac_delim 53556AUTOHEADER!$AUTOHEADER$ac_delim 53557MAKEINFO!$MAKEINFO$ac_delim 53558install_sh!$install_sh$ac_delim 53559STRIP!$STRIP$ac_delim 53560INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 53561mkdir_p!$mkdir_p$ac_delim 53562AWK!$AWK$ac_delim 53563SET_MAKE!$SET_MAKE$ac_delim 53564am__leading_dot!$am__leading_dot$ac_delim 53565AMTAR!$AMTAR$ac_delim 53566am__tar!$am__tar$ac_delim 53567am__untar!$am__untar$ac_delim 53568MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 53569MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 53570MAINT!$MAINT$ac_delim 53571CC!$CC$ac_delim 53572CFLAGS!$CFLAGS$ac_delim 53573LDFLAGS!$LDFLAGS$ac_delim 53574CPPFLAGS!$CPPFLAGS$ac_delim 53575ac_ct_CC!$ac_ct_CC$ac_delim 53576EXEEXT!$EXEEXT$ac_delim 53577OBJEXT!$OBJEXT$ac_delim 53578CPP!$CPP$ac_delim 53579build!$build$ac_delim 53580build_cpu!$build_cpu$ac_delim 53581build_vendor!$build_vendor$ac_delim 53582build_os!$build_os$ac_delim 53583host!$host$ac_delim 53584host_cpu!$host_cpu$ac_delim 53585host_vendor!$host_vendor$ac_delim 53586host_os!$host_os$ac_delim 53587CANONICAL_HOST!$CANONICAL_HOST$ac_delim 53588YACC!$YACC$ac_delim 53589YFLAGS!$YFLAGS$ac_delim 53590LEX!$LEX$ac_delim 53591LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 53592LEXLIB!$LEXLIB$ac_delim 53593LN_S!$LN_S$ac_delim 53594GREP!$GREP$ac_delim 53595EGREP!$EGREP$ac_delim 53596ECHO!$ECHO$ac_delim 53597AR!$AR$ac_delim 53598RANLIB!$RANLIB$ac_delim 53599CXX!$CXX$ac_delim 53600CXXFLAGS!$CXXFLAGS$ac_delim 53601ac_ct_CXX!$ac_ct_CXX$ac_delim 53602CXXCPP!$CXXCPP$ac_delim 53603F77!$F77$ac_delim 53604FFLAGS!$FFLAGS$ac_delim 53605ac_ct_F77!$ac_ct_F77$ac_delim 53606_ACEOF 53607 53608 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 53609 break 53610 elif $ac_last_try; then 53611 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 53612echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 53613 { (exit 1); exit 1; }; } 53614 else 53615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53616 fi 53617done 53618 53619ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 53620if test -n "$ac_eof"; then 53621 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 53622 ac_eof=`expr $ac_eof + 1` 53623fi 53624 53625cat >>$CONFIG_STATUS <<_ACEOF 53626cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 53627/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 53628_ACEOF 53629sed ' 53630s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 53631s/^/s,@/; s/!/@,|#_!!_#|/ 53632:n 53633t n 53634s/'"$ac_delim"'$/,g/; t 53635s/$/\\/; p 53636N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 53637' >>$CONFIG_STATUS <conf$$subs.sed 53638rm -f conf$$subs.sed 53639cat >>$CONFIG_STATUS <<_ACEOF 53640CEOF$ac_eof 53641_ACEOF 53642 53643 53644ac_delim='%!_!# ' 53645for ac_last_try in false false false false false :; do 53646 cat >conf$$subs.sed <<_ACEOF 53647LIBTOOL!$LIBTOOL$ac_delim 53648ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim 53649ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim 53650VERSIONING!$VERSIONING$ac_delim 53651versionscript_TRUE!$versionscript_TRUE$ac_delim 53652versionscript_FALSE!$versionscript_FALSE$ac_delim 53653LDFLAGS_VERSION_SCRIPT!$LDFLAGS_VERSION_SCRIPT$ac_delim 53654INCLUDE_openldap!$INCLUDE_openldap$ac_delim 53655LIB_openldap!$LIB_openldap$ac_delim 53656OPENLDAP_MODULE_TRUE!$OPENLDAP_MODULE_TRUE$ac_delim 53657OPENLDAP_MODULE_FALSE!$OPENLDAP_MODULE_FALSE$ac_delim 53658PKINIT_TRUE!$PKINIT_TRUE$ac_delim 53659PKINIT_FALSE!$PKINIT_FALSE$ac_delim 53660DIR_hdbdir!$DIR_hdbdir$ac_delim 53661INCLUDE_krb4!$INCLUDE_krb4$ac_delim 53662LIB_krb4!$LIB_krb4$ac_delim 53663KRB4_TRUE!$KRB4_TRUE$ac_delim 53664KRB4_FALSE!$KRB4_FALSE$ac_delim 53665KRB5_TRUE!$KRB5_TRUE$ac_delim 53666KRB5_FALSE!$KRB5_FALSE$ac_delim 53667do_roken_rename_TRUE!$do_roken_rename_TRUE$ac_delim 53668do_roken_rename_FALSE!$do_roken_rename_FALSE$ac_delim 53669LIB_kdb!$LIB_kdb$ac_delim 53670HAVE_OPENSSL_TRUE!$HAVE_OPENSSL_TRUE$ac_delim 53671HAVE_OPENSSL_FALSE!$HAVE_OPENSSL_FALSE$ac_delim 53672DIR_hcrypto!$DIR_hcrypto$ac_delim 53673INCLUDE_hcrypto!$INCLUDE_hcrypto$ac_delim 53674LIB_hcrypto!$LIB_hcrypto$ac_delim 53675LIB_hcrypto_a!$LIB_hcrypto_a$ac_delim 53676LIB_hcrypto_so!$LIB_hcrypto_so$ac_delim 53677LIB_hcrypto_appl!$LIB_hcrypto_appl$ac_delim 53678PTHREADS_CFLAGS!$PTHREADS_CFLAGS$ac_delim 53679PTHREADS_LIBS!$PTHREADS_LIBS$ac_delim 53680DCE_TRUE!$DCE_TRUE$ac_delim 53681DCE_FALSE!$DCE_FALSE$ac_delim 53682dpagaix_cflags!$dpagaix_cflags$ac_delim 53683dpagaix_ldadd!$dpagaix_ldadd$ac_delim 53684dpagaix_ldflags!$dpagaix_ldflags$ac_delim 53685LIB_db_create!$LIB_db_create$ac_delim 53686LIB_dbopen!$LIB_dbopen$ac_delim 53687LIB_dbm_firstkey!$LIB_dbm_firstkey$ac_delim 53688HAVE_DB1_TRUE!$HAVE_DB1_TRUE$ac_delim 53689HAVE_DB1_FALSE!$HAVE_DB1_FALSE$ac_delim 53690HAVE_DB3_TRUE!$HAVE_DB3_TRUE$ac_delim 53691HAVE_DB3_FALSE!$HAVE_DB3_FALSE$ac_delim 53692HAVE_NDBM_TRUE!$HAVE_NDBM_TRUE$ac_delim 53693HAVE_NDBM_FALSE!$HAVE_NDBM_FALSE$ac_delim 53694DBLIB!$DBLIB$ac_delim 53695LIB_NDBM!$LIB_NDBM$ac_delim 53696WFLAGS!$WFLAGS$ac_delim 53697WFLAGS_NOUNUSED!$WFLAGS_NOUNUSED$ac_delim 53698WFLAGS_NOIMPLICITINT!$WFLAGS_NOIMPLICITINT$ac_delim 53699VOID_RETSIGTYPE!$VOID_RETSIGTYPE$ac_delim 53700have_err_h_TRUE!$have_err_h_TRUE$ac_delim 53701have_err_h_FALSE!$have_err_h_FALSE$ac_delim 53702have_ifaddrs_h_TRUE!$have_ifaddrs_h_TRUE$ac_delim 53703have_ifaddrs_h_FALSE!$have_ifaddrs_h_FALSE$ac_delim 53704have_vis_h_TRUE!$have_vis_h_TRUE$ac_delim 53705have_vis_h_FALSE!$have_vis_h_FALSE$ac_delim 53706LIB_socket!$LIB_socket$ac_delim 53707LIB_gethostbyname!$LIB_gethostbyname$ac_delim 53708LIB_syslog!$LIB_syslog$ac_delim 53709LIB_gethostbyname2!$LIB_gethostbyname2$ac_delim 53710LIB_res_search!$LIB_res_search$ac_delim 53711LIB_res_nsearch!$LIB_res_nsearch$ac_delim 53712LIB_res_ndestroy!$LIB_res_ndestroy$ac_delim 53713LIB_dn_expand!$LIB_dn_expand$ac_delim 53714LIBOBJS!$LIBOBJS$ac_delim 53715have_glob_h_TRUE!$have_glob_h_TRUE$ac_delim 53716have_glob_h_FALSE!$have_glob_h_FALSE$ac_delim 53717have_cgetent_TRUE!$have_cgetent_TRUE$ac_delim 53718have_cgetent_FALSE!$have_cgetent_FALSE$ac_delim 53719LIB_getsockopt!$LIB_getsockopt$ac_delim 53720LIB_setsockopt!$LIB_setsockopt$ac_delim 53721LIB_hstrerror!$LIB_hstrerror$ac_delim 53722LIB_bswap16!$LIB_bswap16$ac_delim 53723LIB_bswap32!$LIB_bswap32$ac_delim 53724LIB_pidfile!$LIB_pidfile$ac_delim 53725LIB_getaddrinfo!$LIB_getaddrinfo$ac_delim 53726LIB_getnameinfo!$LIB_getnameinfo$ac_delim 53727LIB_freeaddrinfo!$LIB_freeaddrinfo$ac_delim 53728LIB_gai_strerror!$LIB_gai_strerror$ac_delim 53729have_fnmatch_h_TRUE!$have_fnmatch_h_TRUE$ac_delim 53730have_fnmatch_h_FALSE!$have_fnmatch_h_FALSE$ac_delim 53731LIB_crypt!$LIB_crypt$ac_delim 53732have_socket_wrapper_TRUE!$have_socket_wrapper_TRUE$ac_delim 53733have_socket_wrapper_FALSE!$have_socket_wrapper_FALSE$ac_delim 53734DIR_roken!$DIR_roken$ac_delim 53735LIB_roken!$LIB_roken$ac_delim 53736INCLUDES_roken!$INCLUDES_roken$ac_delim 53737LIBADD_roken!$LIBADD_roken$ac_delim 53738LIB_otp!$LIB_otp$ac_delim 53739OTP_TRUE!$OTP_TRUE$ac_delim 53740OTP_FALSE!$OTP_FALSE$ac_delim 53741LIB_security!$LIB_security$ac_delim 53742NROFF!$NROFF$ac_delim 53743GROFF!$GROFF$ac_delim 53744_ACEOF 53745 53746 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 53747 break 53748 elif $ac_last_try; then 53749 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 53750echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 53751 { (exit 1); exit 1; }; } 53752 else 53753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53754 fi 53755done 53756 53757ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 53758if test -n "$ac_eof"; then 53759 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 53760 ac_eof=`expr $ac_eof + 1` 53761fi 53762 53763cat >>$CONFIG_STATUS <<_ACEOF 53764cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 53765/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 53766_ACEOF 53767sed ' 53768s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 53769s/^/s,@/; s/!/@,|#_!!_#|/ 53770:n 53771t n 53772s/'"$ac_delim"'$/,g/; t 53773s/$/\\/; p 53774N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 53775' >>$CONFIG_STATUS <conf$$subs.sed 53776rm -f conf$$subs.sed 53777cat >>$CONFIG_STATUS <<_ACEOF 53778CEOF$ac_eof 53779_ACEOF 53780 53781 53782ac_delim='%!_!# ' 53783for ac_last_try in false false false false false :; do 53784 cat >conf$$subs.sed <<_ACEOF 53785CATMAN!$CATMAN$ac_delim 53786CATMAN_TRUE!$CATMAN_TRUE$ac_delim 53787CATMAN_FALSE!$CATMAN_FALSE$ac_delim 53788CATMANEXT!$CATMANEXT$ac_delim 53789INCLUDE_readline!$INCLUDE_readline$ac_delim 53790LIB_readline!$LIB_readline$ac_delim 53791INCLUDE_hesiod!$INCLUDE_hesiod$ac_delim 53792LIB_hesiod!$LIB_hesiod$ac_delim 53793AIX_TRUE!$AIX_TRUE$ac_delim 53794AIX_FALSE!$AIX_FALSE$ac_delim 53795AIX4_TRUE!$AIX4_TRUE$ac_delim 53796AIX4_FALSE!$AIX4_FALSE$ac_delim 53797LIB_dlopen!$LIB_dlopen$ac_delim 53798HAVE_DLOPEN_TRUE!$HAVE_DLOPEN_TRUE$ac_delim 53799HAVE_DLOPEN_FALSE!$HAVE_DLOPEN_FALSE$ac_delim 53800LIB_loadquery!$LIB_loadquery$ac_delim 53801AIX_DYNAMIC_AFS_TRUE!$AIX_DYNAMIC_AFS_TRUE$ac_delim 53802AIX_DYNAMIC_AFS_FALSE!$AIX_DYNAMIC_AFS_FALSE$ac_delim 53803AIX_EXTRA_KAFS!$AIX_EXTRA_KAFS$ac_delim 53804IRIX_TRUE!$IRIX_TRUE$ac_delim 53805IRIX_FALSE!$IRIX_FALSE$ac_delim 53806XMKMF!$XMKMF$ac_delim 53807X_CFLAGS!$X_CFLAGS$ac_delim 53808X_PRE_LIBS!$X_PRE_LIBS$ac_delim 53809X_LIBS!$X_LIBS$ac_delim 53810X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 53811HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim 53812HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim 53813LIB_XauWriteAuth!$LIB_XauWriteAuth$ac_delim 53814LIB_XauReadAuth!$LIB_XauReadAuth$ac_delim 53815LIB_XauFileName!$LIB_XauFileName$ac_delim 53816NEED_WRITEAUTH_TRUE!$NEED_WRITEAUTH_TRUE$ac_delim 53817NEED_WRITEAUTH_FALSE!$NEED_WRITEAUTH_FALSE$ac_delim 53818LIB_logwtmp!$LIB_logwtmp$ac_delim 53819LIB_logout!$LIB_logout$ac_delim 53820LIB_openpty!$LIB_openpty$ac_delim 53821LIB_tgetent!$LIB_tgetent$ac_delim 53822LIB_getpwnam_r!$LIB_getpwnam_r$ac_delim 53823LIB_door_create!$LIB_door_create$ac_delim 53824KCM_TRUE!$KCM_TRUE$ac_delim 53825KCM_FALSE!$KCM_FALSE$ac_delim 53826FRAMEWORK_SECURITY_TRUE!$FRAMEWORK_SECURITY_TRUE$ac_delim 53827FRAMEWORK_SECURITY_FALSE!$FRAMEWORK_SECURITY_FALSE$ac_delim 53828LIB_el_init!$LIB_el_init$ac_delim 53829el_compat_TRUE!$el_compat_TRUE$ac_delim 53830el_compat_FALSE!$el_compat_FALSE$ac_delim 53831COMPILE_ET!$COMPILE_ET$ac_delim 53832COM_ERR_TRUE!$COM_ERR_TRUE$ac_delim 53833COM_ERR_FALSE!$COM_ERR_FALSE$ac_delim 53834DIR_com_err!$DIR_com_err$ac_delim 53835LIB_com_err!$LIB_com_err$ac_delim 53836LIB_com_err_a!$LIB_com_err_a$ac_delim 53837LIB_com_err_so!$LIB_com_err_so$ac_delim 53838LIB_AUTH_SUBDIRS!$LIB_AUTH_SUBDIRS$ac_delim 53839LTLIBOBJS!$LTLIBOBJS$ac_delim 53840_ACEOF 53841 53842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then 53843 break 53844 elif $ac_last_try; then 53845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 53846echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 53847 { (exit 1); exit 1; }; } 53848 else 53849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 53850 fi 53851done 53852 53853ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 53854if test -n "$ac_eof"; then 53855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 53856 ac_eof=`expr $ac_eof + 1` 53857fi 53858 53859cat >>$CONFIG_STATUS <<_ACEOF 53860cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 53861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 53862_ACEOF 53863sed ' 53864s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 53865s/^/s,@/; s/!/@,|#_!!_#|/ 53866:n 53867t n 53868s/'"$ac_delim"'$/,g/; t 53869s/$/\\/; p 53870N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 53871' >>$CONFIG_STATUS <conf$$subs.sed 53872rm -f conf$$subs.sed 53873cat >>$CONFIG_STATUS <<_ACEOF 53874:end 53875s/|#_!!_#|//g 53876CEOF$ac_eof 53877_ACEOF 53878 53879 53880# VPATH may cause trouble with some makes, so we remove $(srcdir), 53881# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 53882# trailing colons and then remove the whole line if VPATH becomes empty 53883# (actually we leave an empty line to preserve line numbers). 53884if test "x$srcdir" = x.; then 53885 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 53886s/:*\$(srcdir):*/:/ 53887s/:*\${srcdir}:*/:/ 53888s/:*@srcdir@:*/:/ 53889s/^\([^=]*=[ ]*\):*/\1/ 53890s/:*$// 53891s/^[^=]*=[ ]*$// 53892}' 53893fi 53894 53895cat >>$CONFIG_STATUS <<\_ACEOF 53896fi # test -n "$CONFIG_FILES" 53897 53898 53899for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 53900do 53901 case $ac_tag in 53902 :[FHLC]) ac_mode=$ac_tag; continue;; 53903 esac 53904 case $ac_mode$ac_tag in 53905 :[FHL]*:*);; 53906 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 53907echo "$as_me: error: Invalid tag $ac_tag." >&2;} 53908 { (exit 1); exit 1; }; };; 53909 :[FH]-) ac_tag=-:-;; 53910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 53911 esac 53912 ac_save_IFS=$IFS 53913 IFS=: 53914 set x $ac_tag 53915 IFS=$ac_save_IFS 53916 shift 53917 ac_file=$1 53918 shift 53919 53920 case $ac_mode in 53921 :L) ac_source=$1;; 53922 :[FH]) 53923 ac_file_inputs= 53924 for ac_f 53925 do 53926 case $ac_f in 53927 -) ac_f="$tmp/stdin";; 53928 *) # Look for the file first in the build tree, then in the source tree 53929 # (if the path is not absolute). The absolute path cannot be DOS-style, 53930 # because $ac_f cannot contain `:'. 53931 test -f "$ac_f" || 53932 case $ac_f in 53933 [\\/$]*) false;; 53934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 53935 esac || 53936 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 53937echo "$as_me: error: cannot find input file: $ac_f" >&2;} 53938 { (exit 1); exit 1; }; };; 53939 esac 53940 ac_file_inputs="$ac_file_inputs $ac_f" 53941 done 53942 53943 # Let's still pretend it is `configure' which instantiates (i.e., don't 53944 # use $as_me), people would be surprised to read: 53945 # /* config.h. Generated by config.status. */ 53946 configure_input="Generated from "`IFS=: 53947 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 53948 if test x"$ac_file" != x-; then 53949 configure_input="$ac_file. $configure_input" 53950 { echo "$as_me:$LINENO: creating $ac_file" >&5 53951echo "$as_me: creating $ac_file" >&6;} 53952 fi 53953 53954 case $ac_tag in 53955 *:-:* | *:-) cat >"$tmp/stdin";; 53956 esac 53957 ;; 53958 esac 53959 53960 ac_dir=`$as_dirname -- "$ac_file" || 53961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53962 X"$ac_file" : 'X\(//\)[^/]' \| \ 53963 X"$ac_file" : 'X\(//\)$' \| \ 53964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 53965echo X"$ac_file" | 53966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 53967 s//\1/ 53968 q 53969 } 53970 /^X\(\/\/\)[^/].*/{ 53971 s//\1/ 53972 q 53973 } 53974 /^X\(\/\/\)$/{ 53975 s//\1/ 53976 q 53977 } 53978 /^X\(\/\).*/{ 53979 s//\1/ 53980 q 53981 } 53982 s/.*/./; q'` 53983 { as_dir="$ac_dir" 53984 case $as_dir in #( 53985 -*) as_dir=./$as_dir;; 53986 esac 53987 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 53988 as_dirs= 53989 while :; do 53990 case $as_dir in #( 53991 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 53992 *) as_qdir=$as_dir;; 53993 esac 53994 as_dirs="'$as_qdir' $as_dirs" 53995 as_dir=`$as_dirname -- "$as_dir" || 53996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 53997 X"$as_dir" : 'X\(//\)[^/]' \| \ 53998 X"$as_dir" : 'X\(//\)$' \| \ 53999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 54000echo X"$as_dir" | 54001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54002 s//\1/ 54003 q 54004 } 54005 /^X\(\/\/\)[^/].*/{ 54006 s//\1/ 54007 q 54008 } 54009 /^X\(\/\/\)$/{ 54010 s//\1/ 54011 q 54012 } 54013 /^X\(\/\).*/{ 54014 s//\1/ 54015 q 54016 } 54017 s/.*/./; q'` 54018 test -d "$as_dir" && break 54019 done 54020 test -z "$as_dirs" || eval "mkdir $as_dirs" 54021 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 54022echo "$as_me: error: cannot create directory $as_dir" >&2;} 54023 { (exit 1); exit 1; }; }; } 54024 ac_builddir=. 54025 54026case "$ac_dir" in 54027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 54028*) 54029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 54030 # A ".." for each directory in $ac_dir_suffix. 54031 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 54032 case $ac_top_builddir_sub in 54033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 54034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 54035 esac ;; 54036esac 54037ac_abs_top_builddir=$ac_pwd 54038ac_abs_builddir=$ac_pwd$ac_dir_suffix 54039# for backward compatibility: 54040ac_top_builddir=$ac_top_build_prefix 54041 54042case $srcdir in 54043 .) # We are building in place. 54044 ac_srcdir=. 54045 ac_top_srcdir=$ac_top_builddir_sub 54046 ac_abs_top_srcdir=$ac_pwd ;; 54047 [\\/]* | ?:[\\/]* ) # Absolute name. 54048 ac_srcdir=$srcdir$ac_dir_suffix; 54049 ac_top_srcdir=$srcdir 54050 ac_abs_top_srcdir=$srcdir ;; 54051 *) # Relative name. 54052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 54053 ac_top_srcdir=$ac_top_build_prefix$srcdir 54054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 54055esac 54056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 54057 54058 54059 case $ac_mode in 54060 :F) 54061 # 54062 # CONFIG_FILE 54063 # 54064 54065 case $INSTALL in 54066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 54067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 54068 esac 54069 ac_MKDIR_P=$MKDIR_P 54070 case $MKDIR_P in 54071 [\\/$]* | ?:[\\/]* ) ;; 54072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 54073 esac 54074_ACEOF 54075 54076cat >>$CONFIG_STATUS <<\_ACEOF 54077# If the template does not know about datarootdir, expand it. 54078# FIXME: This hack should be removed a few years after 2.60. 54079ac_datarootdir_hack=; ac_datarootdir_seen= 54080 54081case `sed -n '/datarootdir/ { 54082 p 54083 q 54084} 54085/@datadir@/p 54086/@docdir@/p 54087/@infodir@/p 54088/@localedir@/p 54089/@mandir@/p 54090' $ac_file_inputs` in 54091*datarootdir*) ac_datarootdir_seen=yes;; 54092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 54093 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 54094echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 54095_ACEOF 54096cat >>$CONFIG_STATUS <<_ACEOF 54097 ac_datarootdir_hack=' 54098 s&@datadir@&$datadir&g 54099 s&@docdir@&$docdir&g 54100 s&@infodir@&$infodir&g 54101 s&@localedir@&$localedir&g 54102 s&@mandir@&$mandir&g 54103 s&\\\${datarootdir}&$datarootdir&g' ;; 54104esac 54105_ACEOF 54106 54107# Neutralize VPATH when `$srcdir' = `.'. 54108# Shell code in configure.ac might set extrasub. 54109# FIXME: do we really want to maintain this feature? 54110cat >>$CONFIG_STATUS <<_ACEOF 54111 sed "$ac_vpsub 54112$extrasub 54113_ACEOF 54114cat >>$CONFIG_STATUS <<\_ACEOF 54115:t 54116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54117s&@configure_input@&$configure_input&;t t 54118s&@top_builddir@&$ac_top_builddir_sub&;t t 54119s&@srcdir@&$ac_srcdir&;t t 54120s&@abs_srcdir@&$ac_abs_srcdir&;t t 54121s&@top_srcdir@&$ac_top_srcdir&;t t 54122s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54123s&@builddir@&$ac_builddir&;t t 54124s&@abs_builddir@&$ac_abs_builddir&;t t 54125s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54126s&@INSTALL@&$ac_INSTALL&;t t 54127s&@MKDIR_P@&$ac_MKDIR_P&;t t 54128$ac_datarootdir_hack 54129" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 54130 54131test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 54133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 54134 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54135which seems to be undefined. Please make sure it is defined." >&5 54136echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54137which seems to be undefined. Please make sure it is defined." >&2;} 54138 54139 rm -f "$tmp/stdin" 54140 case $ac_file in 54141 -) cat "$tmp/out"; rm -f "$tmp/out";; 54142 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 54143 esac 54144 ;; 54145 :H) 54146 # 54147 # CONFIG_HEADER 54148 # 54149_ACEOF 54150 54151# Transform confdefs.h into a sed script `conftest.defines', that 54152# substitutes the proper values into config.h.in to produce config.h. 54153rm -f conftest.defines conftest.tail 54154# First, append a space to every undef/define line, to ease matching. 54155echo 's/$/ /' >conftest.defines 54156# Then, protect against being on the right side of a sed subst, or in 54157# an unquoted here document, in config.status. If some macros were 54158# called several times there might be several #defines for the same 54159# symbol, which is useless. But do not sort them, since the last 54160# AC_DEFINE must be honored. 54161ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 54162# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 54163# NAME is the cpp macro being defined, VALUE is the value it is being given. 54164# PARAMS is the parameter list in the macro definition--in most cases, it's 54165# just an empty string. 54166ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 54167ac_dB='\\)[ (].*,\\1define\\2' 54168ac_dC=' ' 54169ac_dD=' ,' 54170 54171uniq confdefs.h | 54172 sed -n ' 54173 t rset 54174 :rset 54175 s/^[ ]*#[ ]*define[ ][ ]*// 54176 t ok 54177 d 54178 :ok 54179 s/[\\&,]/\\&/g 54180 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 54181 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 54182 ' >>conftest.defines 54183 54184# Remove the space that was appended to ease matching. 54185# Then replace #undef with comments. This is necessary, for 54186# example, in the case of _POSIX_SOURCE, which is predefined and required 54187# on some systems where configure will not decide to define it. 54188# (The regexp can be short, since the line contains either #define or #undef.) 54189echo 's/ $// 54190s,^[ #]*u.*,/* & */,' >>conftest.defines 54191 54192# Break up conftest.defines: 54193ac_max_sed_lines=50 54194 54195# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 54196# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 54197# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 54198# et cetera. 54199ac_in='$ac_file_inputs' 54200ac_out='"$tmp/out1"' 54201ac_nxt='"$tmp/out2"' 54202 54203while : 54204do 54205 # Write a here document: 54206 cat >>$CONFIG_STATUS <<_ACEOF 54207 # First, check the format of the line: 54208 cat >"\$tmp/defines.sed" <<\\CEOF 54209/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 54210/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 54211b 54212:def 54213_ACEOF 54214 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 54215 echo 'CEOF 54216 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 54217 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 54218 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 54219 grep . conftest.tail >/dev/null || break 54220 rm -f conftest.defines 54221 mv conftest.tail conftest.defines 54222done 54223rm -f conftest.defines conftest.tail 54224 54225echo "ac_result=$ac_in" >>$CONFIG_STATUS 54226cat >>$CONFIG_STATUS <<\_ACEOF 54227 if test x"$ac_file" != x-; then 54228 echo "/* $configure_input */" >"$tmp/config.h" 54229 cat "$ac_result" >>"$tmp/config.h" 54230 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 54231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 54232echo "$as_me: $ac_file is unchanged" >&6;} 54233 else 54234 rm -f $ac_file 54235 mv "$tmp/config.h" $ac_file 54236 fi 54237 else 54238 echo "/* $configure_input */" 54239 cat "$ac_result" 54240 fi 54241 rm -f "$tmp/out12" 54242# Compute $ac_file's index in $config_headers. 54243_am_stamp_count=1 54244for _am_header in $config_headers :; do 54245 case $_am_header in 54246 $ac_file | $ac_file:* ) 54247 break ;; 54248 * ) 54249 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 54250 esac 54251done 54252echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 54253$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54254 X$ac_file : 'X\(//\)[^/]' \| \ 54255 X$ac_file : 'X\(//\)$' \| \ 54256 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 54257echo X$ac_file | 54258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54259 s//\1/ 54260 q 54261 } 54262 /^X\(\/\/\)[^/].*/{ 54263 s//\1/ 54264 q 54265 } 54266 /^X\(\/\/\)$/{ 54267 s//\1/ 54268 q 54269 } 54270 /^X\(\/\).*/{ 54271 s//\1/ 54272 q 54273 } 54274 s/.*/./; q'`/stamp-h$_am_stamp_count 54275 ;; 54276 54277 54278 esac 54279 54280done # for ac_tag 54281 54282 54283{ (exit 0); exit 0; } 54284_ACEOF 54285chmod +x $CONFIG_STATUS 54286ac_clean_files=$ac_clean_files_save 54287 54288 54289# configure is writing to config.log, and then calls config.status. 54290# config.status does its own redirection, appending to config.log. 54291# Unfortunately, on DOS this fails, as config.log is still kept open 54292# by configure, so config.status won't be able to write to it; its 54293# output is simply discarded. So we exec the FD to /dev/null, 54294# effectively closing config.log, so it can be properly (re)opened and 54295# appended to by config.status. When coming back to configure, we 54296# need to make the FD available again. 54297if test "$no_create" != yes; then 54298 ac_cs_success=: 54299 ac_config_status_args= 54300 test "$silent" = yes && 54301 ac_config_status_args="$ac_config_status_args --quiet" 54302 exec 5>/dev/null 54303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54304 exec 5>>config.log 54305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54306 # would make configure fail if this is the last instruction. 54307 $ac_cs_success || { (exit 1); exit 1; } 54308fi 54309 54310 54311 54312cat > include/newversion.h.in <<EOF 54313const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$"; 54314const char *heimdal_version = "Heimdal 1.1"; 54315EOF 54316 54317if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 54318 echo "include/version.h is unchanged" 54319 rm -f include/newversion.h.in 54320else 54321 echo "creating include/version.h" 54322 User=${USER-${LOGNAME}} 54323 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 54324 Date=`date` 54325 mv -f include/newversion.h.in include/version.h.in 54326 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 54327fi 54328