1#! /bin/sh 2# From configure.in Revision: 1.145 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553 554# Check that we are running under the correct shell. 555SHELL=${CONFIG_SHELL-/bin/sh} 556 557case X$ECHO in 558X*--fallback-echo) 559 # Remove one level of quotation (which was required for Make). 560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 561 ;; 562esac 563 564echo=${ECHO-echo} 565if test "X$1" = X--no-reexec; then 566 # Discard the --no-reexec flag, and continue. 567 shift 568elif test "X$1" = X--fallback-echo; then 569 # Avoid inline document here, it may be left over 570 : 571elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 572 # Yippee, $echo works! 573 : 574else 575 # Restart under the correct shell. 576 exec $SHELL "$0" --no-reexec ${1+"$@"} 577fi 578 579if test "X$1" = X--fallback-echo; then 580 # used as fallback echo 581 shift 582 cat <<EOF 583$* 584EOF 585 exit 0 586fi 587 588# The HP-UX ksh and POSIX shell print the target directory to stdout 589# if CDPATH is set. 590(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 591 592if test -z "$ECHO"; then 593if test "X${echo_test_string+set}" != Xset; then 594# find a string as large as possible, as long as the shell can cope with it 595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 597 if (echo_test_string=`eval $cmd`) 2>/dev/null && 598 echo_test_string=`eval $cmd` && 599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 600 then 601 break 602 fi 603 done 604fi 605 606if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 echo="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$echo" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 echo='print -r' 637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 echo='printf %s\n' 648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 echo="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 echo="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 echo=echo 686 fi 687 fi 688 fi 689 fi 690fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695ECHO=$echo 696if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703tagnames=${tagnames+${tagnames},}CXX 704 705tagnames=${tagnames+${tagnames},}F77 706 707exec 7<&0 </dev/null 6>&1 708 709# Name of the host. 710# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 711# so uname gets run too. 712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714# 715# Initializations. 716# 717ac_default_prefix=/usr/local 718ac_clean_files= 719ac_config_libobj_dir=. 720LIBOBJS= 721cross_compiling=no 722subdirs= 723MFLAGS= 724MAKEFLAGS= 725SHELL=${CONFIG_SHELL-/bin/sh} 726 727# Identity of this package. 728PACKAGE_NAME= 729PACKAGE_TARNAME= 730PACKAGE_VERSION= 731PACKAGE_STRING= 732PACKAGE_BUGREPORT= 733 734ac_unique_file="resolv/herror.c" 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808build 809build_cpu 810build_vendor 811build_os 812host 813host_cpu 814host_vendor 815host_os 816SET_MAKE 817CC 818CFLAGS 819LDFLAGS 820CPPFLAGS 821ac_ct_CC 822EXEEXT 823OBJEXT 824SED 825GREP 826EGREP 827LN_S 828ECHO 829AR 830RANLIB 831STRIP 832DSYMUTIL 833NMEDIT 834CPP 835CXX 836CXXFLAGS 837ac_ct_CXX 838CXXCPP 839F77 840FFLAGS 841ac_ct_F77 842LIBTOOL 843INSTALL_PROGRAM 844INSTALL_SCRIPT 845INSTALL_DATA 846STD_CINCLUDES 847STD_CDEFINES 848STD_CWARNINGS 849CCOPT 850ARFLAGS 851TBL 852NROFF 853TR 854LN 855ETAGS 856PERL 857ISC_PLATFORM_NEEDSYSSELECTH 858WANT_IRS_GR 859WANT_IRS_GR_OBJS 860WANT_IRS_PW 861WANT_IRS_PW_OBJS 862WANT_IRS_NIS 863WANT_IRS_NIS_OBJS 864WANT_IRS_NISGR_OBJS 865WANT_IRS_NISPW_OBJS 866WANT_IRS_DBPW_OBJS 867ALWAYS_DEFINES 868DO_PTHREADS 869WANT_IRS_THREADSGR_OBJS 870WANT_IRS_THREADSPW_OBJS 871WANT_IRS_THREADS_OBJS 872WANT_THREADS_OBJS 873USE_IFNAMELINKID 874ISC_THREAD_DIR 875DAEMON_OBJS 876NEED_DAEMON 877STRSEP_OBJS 878NEED_STRSEP 879NEED_STRERROR 880MKDEPCC 881MKDEPCFLAGS 882MKDEPPROG 883IRIX_DNSSEC_WARNINGS_HACK 884purify_path 885PURIFY 886O 887A 888SA 889LIBTOOL_MKDEP_SED 890LIBTOOL_MODE_COMPILE 891LIBTOOL_MODE_INSTALL 892LIBTOOL_MODE_LINK 893HAS_INET6_STRUCTS 894ISC_PLATFORM_NEEDNETINETIN6H 895ISC_PLATFORM_NEEDNETINET6IN6H 896HAS_IN_ADDR6 897NEED_IN6ADDR_ANY 898ISC_PLATFORM_HAVEIN6PKTINFO 899ISC_PLATFORM_FIXIN6ISADDR 900ISC_IPV6_H 901ISC_IPV6_O 902ISC_ISCIPV6_O 903ISC_IPV6_C 904HAVE_SIN6_SCOPE_ID 905HAVE_SOCKADDR_STORAGE 906ISC_PLATFORM_NEEDNTOP 907ISC_PLATFORM_NEEDPTON 908ISC_PLATFORM_NEEDATON 909HAVE_SA_LEN 910HAVE_MINIMUM_IFREQ 911BSD_COMP 912SOLARIS_BITTYPES 913USE_FIONBIO_IOCTL 914PORT_NONBLOCK 915PORT_DIR 916USE_POLL 917HAVE_MD5 918SOLARIS2 919PORT_INCLUDE 920ISC_PLATFORM_MSGHDRFLAVOR 921ISC_PLATFORM_NEEDPORTT 922ISC_PLATFORM_NEEDTIMESPEC 923ISC_LWRES_ENDHOSTENTINT 924ISC_LWRES_SETNETENTINT 925ISC_LWRES_ENDNETENTINT 926ISC_LWRES_GETHOSTBYADDRVOID 927ISC_LWRES_NEEDHERRNO 928ISC_LWRES_GETIPNODEPROTO 929ISC_LWRES_GETADDRINFOPROTO 930ISC_LWRES_GETNAMEINFOPROTO 931NEED_PSELECT 932NEED_GETTIMEOFDAY 933HAVE_STRNDUP 934ISC_PLATFORM_NEEDSTRSEP 935ISC_PLATFORM_NEEDVSNPRINTF 936ISC_EXTRA_OBJS 937ISC_EXTRA_SRCS 938ISC_PLATFORM_QUADFORMAT 939ISC_SOCKLEN_T 940GETGROUPLIST_ARGS 941NET_R_ARGS 942NET_R_BAD 943NET_R_COPY 944NET_R_COPY_ARGS 945NET_R_OK 946NET_R_SETANSWER 947NET_R_RETURN 948GETNETBYADDR_ADDR_T 949NETENT_DATA 950NET_R_ENT_ARGS 951NET_R_SET_RESULT 952NET_R_SET_RETURN 953NET_R_END_RESULT 954NET_R_END_RETURN 955GROUP_R_ARGS 956GROUP_R_BAD 957GROUP_R_OK 958GROUP_R_RETURN 959GROUP_R_END_RESULT 960GROUP_R_END_RETURN 961GROUP_R_ENT_ARGS 962GROUP_R_SET_RESULT 963GROUP_R_SET_RETURN 964HOST_R_ARGS 965HOST_R_BAD 966HOST_R_COPY 967HOST_R_COPY_ARGS 968HOST_R_ERRNO 969HOST_R_OK 970HOST_R_RETURN 971HOST_R_SETANSWER 972HOSTENT_DATA 973HOST_R_END_RESULT 974HOST_R_END_RETURN 975HOST_R_ENT_ARGS 976HOST_R_SET_RESULT 977HOST_R_SET_RETURN 978SETPWENT_VOID 979SETGRENT_VOID 980NGR_R_CONST 981NGR_R_ARGS 982NGR_R_BAD 983NGR_R_COPY 984NGR_R_COPY_ARGS 985NGR_R_OK 986NGR_R_RETURN 987NGR_R_PRIVATE 988NGR_R_END_RESULT 989NGR_R_END_RETURN 990NGR_R_END_ARGS 991NGR_R_SET_RESULT 992NGR_R_SET_RETURN 993NGR_R_SET_ARGS 994NGR_R_SET_CONST 995PROTO_R_ARGS 996PROTO_R_BAD 997PROTO_R_COPY 998PROTO_R_COPY_ARGS 999PROTO_R_OK 1000PROTO_R_SETANSWER 1001PROTO_R_RETURN 1002PROTOENT_DATA 1003PROTO_R_END_RESULT 1004PROTO_R_END_RETURN 1005PROTO_R_ENT_ARGS 1006PROTO_R_ENT_UNUSED 1007PROTO_R_SET_RESULT 1008PROTO_R_SET_RETURN 1009PASS_R_ARGS 1010PASS_R_BAD 1011PASS_R_COPY 1012PASS_R_COPY_ARGS 1013PASS_R_OK 1014PASS_R_RETURN 1015PASS_R_END_RESULT 1016PASS_R_END_RETURN 1017PASS_R_ENT_ARGS 1018PASS_R_SET_RESULT 1019PASS_R_SET_RETURN 1020SERV_R_ARGS 1021SERV_R_BAD 1022SERV_R_COPY 1023SERV_R_COPY_ARGS 1024SERV_R_OK 1025SERV_R_SETANSWER 1026SERV_R_RETURN 1027SERVENT_DATA 1028SERV_R_END_RESULT 1029SERV_R_END_RETURN 1030SERV_R_ENT_ARGS 1031SERV_R_ENT_UNUSED 1032SERV_R_SET_RESULT 1033SERV_R_SET_RETURN 1034SETNETGRENT_ARGS 1035INNETGR_ARGS 1036BIND9_TOP_BUILDDIR 1037LIBOBJS 1038LTLIBOBJS' 1039ac_subst_files='BIND9_INCLUDES 1040BIND9_MAKE_RULES 1041LIBBIND_API' 1042 ac_precious_vars='build_alias 1043host_alias 1044target_alias 1045CC 1046CFLAGS 1047LDFLAGS 1048LIBS 1049CPPFLAGS 1050CPP 1051CXX 1052CXXFLAGS 1053CCC 1054CXXCPP 1055F77 1056FFLAGS' 1057 1058 1059# Initialize some variables set by options. 1060ac_init_help= 1061ac_init_version=false 1062# The variables have the same names as the options, with 1063# dashes changed to underlines. 1064cache_file=/dev/null 1065exec_prefix=NONE 1066no_create= 1067no_recursion= 1068prefix=NONE 1069program_prefix=NONE 1070program_suffix=NONE 1071program_transform_name=s,x,x, 1072silent= 1073site= 1074srcdir= 1075verbose= 1076x_includes=NONE 1077x_libraries=NONE 1078 1079# Installation directory options. 1080# These are left unexpanded so users can "make install exec_prefix=/foo" 1081# and all the variables that are supposed to be based on exec_prefix 1082# by default will actually change. 1083# Use braces instead of parens because sh, perl, etc. also accept them. 1084# (The list follows the same order as the GNU Coding Standards.) 1085bindir='${exec_prefix}/bin' 1086sbindir='${exec_prefix}/sbin' 1087libexecdir='${exec_prefix}/libexec' 1088datarootdir='${prefix}/share' 1089datadir='${datarootdir}' 1090sysconfdir='${prefix}/etc' 1091sharedstatedir='${prefix}/com' 1092localstatedir='${prefix}/var' 1093includedir='${prefix}/include' 1094oldincludedir='/usr/include' 1095docdir='${datarootdir}/doc/${PACKAGE}' 1096infodir='${datarootdir}/info' 1097htmldir='${docdir}' 1098dvidir='${docdir}' 1099pdfdir='${docdir}' 1100psdir='${docdir}' 1101libdir='${exec_prefix}/lib' 1102localedir='${datarootdir}/locale' 1103mandir='${datarootdir}/man' 1104 1105ac_prev= 1106ac_dashdash= 1107for ac_option 1108do 1109 # If the previous option needs an argument, assign it. 1110 if test -n "$ac_prev"; then 1111 eval $ac_prev=\$ac_option 1112 ac_prev= 1113 continue 1114 fi 1115 1116 case $ac_option in 1117 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1118 *) ac_optarg=yes ;; 1119 esac 1120 1121 # Accept the important Cygnus configure options, so we can diagnose typos. 1122 1123 case $ac_dashdash$ac_option in 1124 --) 1125 ac_dashdash=yes ;; 1126 1127 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1128 ac_prev=bindir ;; 1129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1130 bindir=$ac_optarg ;; 1131 1132 -build | --build | --buil | --bui | --bu) 1133 ac_prev=build_alias ;; 1134 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1135 build_alias=$ac_optarg ;; 1136 1137 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1139 ac_prev=cache_file ;; 1140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1142 cache_file=$ac_optarg ;; 1143 1144 --config-cache | -C) 1145 cache_file=config.cache ;; 1146 1147 -datadir | --datadir | --datadi | --datad) 1148 ac_prev=datadir ;; 1149 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1150 datadir=$ac_optarg ;; 1151 1152 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1153 | --dataroo | --dataro | --datar) 1154 ac_prev=datarootdir ;; 1155 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1156 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1157 datarootdir=$ac_optarg ;; 1158 1159 -disable-* | --disable-*) 1160 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1163 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1164 { (exit 1); exit 1; }; } 1165 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1166 eval enable_$ac_feature=no ;; 1167 1168 -docdir | --docdir | --docdi | --doc | --do) 1169 ac_prev=docdir ;; 1170 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1171 docdir=$ac_optarg ;; 1172 1173 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1174 ac_prev=dvidir ;; 1175 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1176 dvidir=$ac_optarg ;; 1177 1178 -enable-* | --enable-*) 1179 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1183 { (exit 1); exit 1; }; } 1184 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1185 eval enable_$ac_feature=\$ac_optarg ;; 1186 1187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1189 | --exec | --exe | --ex) 1190 ac_prev=exec_prefix ;; 1191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1193 | --exec=* | --exe=* | --ex=*) 1194 exec_prefix=$ac_optarg ;; 1195 1196 -gas | --gas | --ga | --g) 1197 # Obsolete; use --with-gas. 1198 with_gas=yes ;; 1199 1200 -help | --help | --hel | --he | -h) 1201 ac_init_help=long ;; 1202 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1203 ac_init_help=recursive ;; 1204 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1205 ac_init_help=short ;; 1206 1207 -host | --host | --hos | --ho) 1208 ac_prev=host_alias ;; 1209 -host=* | --host=* | --hos=* | --ho=*) 1210 host_alias=$ac_optarg ;; 1211 1212 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1213 ac_prev=htmldir ;; 1214 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1215 | --ht=*) 1216 htmldir=$ac_optarg ;; 1217 1218 -includedir | --includedir | --includedi | --included | --include \ 1219 | --includ | --inclu | --incl | --inc) 1220 ac_prev=includedir ;; 1221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1222 | --includ=* | --inclu=* | --incl=* | --inc=*) 1223 includedir=$ac_optarg ;; 1224 1225 -infodir | --infodir | --infodi | --infod | --info | --inf) 1226 ac_prev=infodir ;; 1227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1228 infodir=$ac_optarg ;; 1229 1230 -libdir | --libdir | --libdi | --libd) 1231 ac_prev=libdir ;; 1232 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1233 libdir=$ac_optarg ;; 1234 1235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1236 | --libexe | --libex | --libe) 1237 ac_prev=libexecdir ;; 1238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1239 | --libexe=* | --libex=* | --libe=*) 1240 libexecdir=$ac_optarg ;; 1241 1242 -localedir | --localedir | --localedi | --localed | --locale) 1243 ac_prev=localedir ;; 1244 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1245 localedir=$ac_optarg ;; 1246 1247 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1248 | --localstate | --localstat | --localsta | --localst | --locals) 1249 ac_prev=localstatedir ;; 1250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1251 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1252 localstatedir=$ac_optarg ;; 1253 1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1255 ac_prev=mandir ;; 1256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1257 mandir=$ac_optarg ;; 1258 1259 -nfp | --nfp | --nf) 1260 # Obsolete; use --without-fp. 1261 with_fp=no ;; 1262 1263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1264 | --no-cr | --no-c | -n) 1265 no_create=yes ;; 1266 1267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1269 no_recursion=yes ;; 1270 1271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1273 | --oldin | --oldi | --old | --ol | --o) 1274 ac_prev=oldincludedir ;; 1275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1278 oldincludedir=$ac_optarg ;; 1279 1280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1281 ac_prev=prefix ;; 1282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1283 prefix=$ac_optarg ;; 1284 1285 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1286 | --program-pre | --program-pr | --program-p) 1287 ac_prev=program_prefix ;; 1288 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1290 program_prefix=$ac_optarg ;; 1291 1292 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1293 | --program-suf | --program-su | --program-s) 1294 ac_prev=program_suffix ;; 1295 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1297 program_suffix=$ac_optarg ;; 1298 1299 -program-transform-name | --program-transform-name \ 1300 | --program-transform-nam | --program-transform-na \ 1301 | --program-transform-n | --program-transform- \ 1302 | --program-transform | --program-transfor \ 1303 | --program-transfo | --program-transf \ 1304 | --program-trans | --program-tran \ 1305 | --progr-tra | --program-tr | --program-t) 1306 ac_prev=program_transform_name ;; 1307 -program-transform-name=* | --program-transform-name=* \ 1308 | --program-transform-nam=* | --program-transform-na=* \ 1309 | --program-transform-n=* | --program-transform-=* \ 1310 | --program-transform=* | --program-transfor=* \ 1311 | --program-transfo=* | --program-transf=* \ 1312 | --program-trans=* | --program-tran=* \ 1313 | --progr-tra=* | --program-tr=* | --program-t=*) 1314 program_transform_name=$ac_optarg ;; 1315 1316 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1317 ac_prev=pdfdir ;; 1318 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1319 pdfdir=$ac_optarg ;; 1320 1321 -psdir | --psdir | --psdi | --psd | --ps) 1322 ac_prev=psdir ;; 1323 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1324 psdir=$ac_optarg ;; 1325 1326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1327 | -silent | --silent | --silen | --sile | --sil) 1328 silent=yes ;; 1329 1330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1331 ac_prev=sbindir ;; 1332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1333 | --sbi=* | --sb=*) 1334 sbindir=$ac_optarg ;; 1335 1336 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1338 | --sharedst | --shareds | --shared | --share | --shar \ 1339 | --sha | --sh) 1340 ac_prev=sharedstatedir ;; 1341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1344 | --sha=* | --sh=*) 1345 sharedstatedir=$ac_optarg ;; 1346 1347 -site | --site | --sit) 1348 ac_prev=site ;; 1349 -site=* | --site=* | --sit=*) 1350 site=$ac_optarg ;; 1351 1352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1353 ac_prev=srcdir ;; 1354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1355 srcdir=$ac_optarg ;; 1356 1357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1358 | --syscon | --sysco | --sysc | --sys | --sy) 1359 ac_prev=sysconfdir ;; 1360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1362 sysconfdir=$ac_optarg ;; 1363 1364 -target | --target | --targe | --targ | --tar | --ta | --t) 1365 ac_prev=target_alias ;; 1366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1367 target_alias=$ac_optarg ;; 1368 1369 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1370 verbose=yes ;; 1371 1372 -version | --version | --versio | --versi | --vers | -V) 1373 ac_init_version=: ;; 1374 1375 -with-* | --with-*) 1376 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1377 # Reject names that are not valid shell variable names. 1378 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1379 { echo "$as_me: error: invalid package name: $ac_package" >&2 1380 { (exit 1); exit 1; }; } 1381 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1382 eval with_$ac_package=\$ac_optarg ;; 1383 1384 -without-* | --without-*) 1385 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1386 # Reject names that are not valid shell variable names. 1387 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1388 { echo "$as_me: error: invalid package name: $ac_package" >&2 1389 { (exit 1); exit 1; }; } 1390 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1391 eval with_$ac_package=no ;; 1392 1393 --x) 1394 # Obsolete; use --with-x. 1395 with_x=yes ;; 1396 1397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1398 | --x-incl | --x-inc | --x-in | --x-i) 1399 ac_prev=x_includes ;; 1400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1402 x_includes=$ac_optarg ;; 1403 1404 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1406 ac_prev=x_libraries ;; 1407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1409 x_libraries=$ac_optarg ;; 1410 1411 -*) { echo "$as_me: error: unrecognized option: $ac_option 1412Try \`$0 --help' for more information." >&2 1413 { (exit 1); exit 1; }; } 1414 ;; 1415 1416 *=*) 1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1418 # Reject names that are not valid shell variable names. 1419 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1420 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1421 { (exit 1); exit 1; }; } 1422 eval $ac_envvar=\$ac_optarg 1423 export $ac_envvar ;; 1424 1425 *) 1426 # FIXME: should be removed in autoconf 3.0. 1427 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1428 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1429 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1430 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1431 ;; 1432 1433 esac 1434done 1435 1436if test -n "$ac_prev"; then 1437 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1438 { echo "$as_me: error: missing argument to $ac_option" >&2 1439 { (exit 1); exit 1; }; } 1440fi 1441 1442# Be sure to have absolute directory names. 1443for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1444 datadir sysconfdir sharedstatedir localstatedir includedir \ 1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1446 libdir localedir mandir 1447do 1448 eval ac_val=\$$ac_var 1449 case $ac_val in 1450 [\\/$]* | ?:[\\/]* ) continue;; 1451 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1452 esac 1453 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1454 { (exit 1); exit 1; }; } 1455done 1456 1457# There might be people who depend on the old broken behavior: `$host' 1458# used to hold the argument of --host etc. 1459# FIXME: To remove some day. 1460build=$build_alias 1461host=$host_alias 1462target=$target_alias 1463 1464# FIXME: To remove some day. 1465if test "x$host_alias" != x; then 1466 if test "x$build_alias" = x; then 1467 cross_compiling=maybe 1468 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1469 If a cross compiler is detected then cross compile mode will be used." >&2 1470 elif test "x$build_alias" != "x$host_alias"; then 1471 cross_compiling=yes 1472 fi 1473fi 1474 1475ac_tool_prefix= 1476test -n "$host_alias" && ac_tool_prefix=$host_alias- 1477 1478test "$silent" = yes && exec 6>/dev/null 1479 1480 1481ac_pwd=`pwd` && test -n "$ac_pwd" && 1482ac_ls_di=`ls -di .` && 1483ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1484 { echo "$as_me: error: Working directory cannot be determined" >&2 1485 { (exit 1); exit 1; }; } 1486test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1487 { echo "$as_me: error: pwd does not report name of working directory" >&2 1488 { (exit 1); exit 1; }; } 1489 1490 1491# Find the source files, if location was not specified. 1492if test -z "$srcdir"; then 1493 ac_srcdir_defaulted=yes 1494 # Try the directory containing this script, then the parent directory. 1495 ac_confdir=`$as_dirname -- "$0" || 1496$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1497 X"$0" : 'X\(//\)[^/]' \| \ 1498 X"$0" : 'X\(//\)$' \| \ 1499 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1500echo X"$0" | 1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1502 s//\1/ 1503 q 1504 } 1505 /^X\(\/\/\)[^/].*/{ 1506 s//\1/ 1507 q 1508 } 1509 /^X\(\/\/\)$/{ 1510 s//\1/ 1511 q 1512 } 1513 /^X\(\/\).*/{ 1514 s//\1/ 1515 q 1516 } 1517 s/.*/./; q'` 1518 srcdir=$ac_confdir 1519 if test ! -r "$srcdir/$ac_unique_file"; then 1520 srcdir=.. 1521 fi 1522else 1523 ac_srcdir_defaulted=no 1524fi 1525if test ! -r "$srcdir/$ac_unique_file"; then 1526 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1527 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1528 { (exit 1); exit 1; }; } 1529fi 1530ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1531ac_abs_confdir=`( 1532 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1533 { (exit 1); exit 1; }; } 1534 pwd)` 1535# When building in place, set srcdir=. 1536if test "$ac_abs_confdir" = "$ac_pwd"; then 1537 srcdir=. 1538fi 1539# Remove unnecessary trailing slashes from srcdir. 1540# Double slashes in file names in object file debugging info 1541# mess up M-x gdb in Emacs. 1542case $srcdir in 1543*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1544esac 1545for ac_var in $ac_precious_vars; do 1546 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1547 eval ac_env_${ac_var}_value=\$${ac_var} 1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1549 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1550done 1551 1552# 1553# Report the --help message. 1554# 1555if test "$ac_init_help" = "long"; then 1556 # Omit some internal or obsolete options to make the list less imposing. 1557 # This message is too long to be a string in the A/UX 3.1 sh. 1558 cat <<_ACEOF 1559\`configure' configures this package to adapt to many kinds of systems. 1560 1561Usage: $0 [OPTION]... [VAR=VALUE]... 1562 1563To assign environment variables (e.g., CC, CFLAGS...), specify them as 1564VAR=VALUE. See below for descriptions of some of the useful variables. 1565 1566Defaults for the options are specified in brackets. 1567 1568Configuration: 1569 -h, --help display this help and exit 1570 --help=short display options specific to this package 1571 --help=recursive display the short help of all the included packages 1572 -V, --version display version information and exit 1573 -q, --quiet, --silent do not print \`checking...' messages 1574 --cache-file=FILE cache test results in FILE [disabled] 1575 -C, --config-cache alias for \`--cache-file=config.cache' 1576 -n, --no-create do not create output files 1577 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1578 1579Installation directories: 1580 --prefix=PREFIX install architecture-independent files in PREFIX 1581 [$ac_default_prefix] 1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1583 [PREFIX] 1584 1585By default, \`make install' will install all the files in 1586\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1587an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1588for instance \`--prefix=\$HOME'. 1589 1590For better control, use the options below. 1591 1592Fine tuning of the installation directories: 1593 --bindir=DIR user executables [EPREFIX/bin] 1594 --sbindir=DIR system admin executables [EPREFIX/sbin] 1595 --libexecdir=DIR program executables [EPREFIX/libexec] 1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1599 --libdir=DIR object code libraries [EPREFIX/lib] 1600 --includedir=DIR C header files [PREFIX/include] 1601 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1604 --infodir=DIR info documentation [DATAROOTDIR/info] 1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1606 --mandir=DIR man documentation [DATAROOTDIR/man] 1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1608 --htmldir=DIR html documentation [DOCDIR] 1609 --dvidir=DIR dvi documentation [DOCDIR] 1610 --pdfdir=DIR pdf documentation [DOCDIR] 1611 --psdir=DIR ps documentation [DOCDIR] 1612_ACEOF 1613 1614 cat <<\_ACEOF 1615 1616System types: 1617 --build=BUILD configure for building on BUILD [guessed] 1618 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1619_ACEOF 1620fi 1621 1622if test -n "$ac_init_help"; then 1623 1624 cat <<\_ACEOF 1625 1626Optional Features: 1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1629 --enable-shared[=PKGS] build shared libraries [default=yes] 1630 --enable-static[=PKGS] build static libraries [default=yes] 1631 --enable-fast-install[=PKGS] 1632 optimize for fast installation [default=yes] 1633 --disable-libtool-lock avoid locking (might break parallel builds) 1634 --enable-threads enable multithreading 1635 --enable-ipv6 use IPv6 default=autodetect 1636 1637Optional Packages: 1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1641 --with-pic try to use only PIC/non-PIC objects [default=use 1642 both] 1643 --with-tags[=TAGS] include additional configurations [automatic] 1644 --with-irs-gr Build with WANT_IRS_GR 1645 --with-irs-pw Build with WANT_IRS_PW 1646 --with-irs-nis Build with WANT_IRS_NIS 1647 --with-randomdev=PATH Specify path for random device 1648 --with-ptl2 on NetBSD, use the ptl2 thread library (experimental) 1649 --with-purify=PATH use Rational purify 1650 --with-libtool use GNU libtool (following indented options supported) 1651 --with-kame=PATH use Kame IPv6 default path /usr/local/v6 1652 1653Some influential environment variables: 1654 CC C compiler command 1655 CFLAGS C compiler flags 1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1657 nonstandard directory <lib dir> 1658 LIBS libraries to pass to the linker, e.g. -l<library> 1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1660 you have headers in a nonstandard directory <include dir> 1661 CPP C preprocessor 1662 CXX C++ compiler command 1663 CXXFLAGS C++ compiler flags 1664 CXXCPP C++ preprocessor 1665 F77 Fortran 77 compiler command 1666 FFLAGS Fortran 77 compiler flags 1667 1668Use these variables to override the choices made by `configure' or to help 1669it to find libraries and programs with nonstandard names/locations. 1670 1671_ACEOF 1672ac_status=$? 1673fi 1674 1675if test "$ac_init_help" = "recursive"; then 1676 # If there are subdirs, report their specific --help. 1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1678 test -d "$ac_dir" || continue 1679 ac_builddir=. 1680 1681case "$ac_dir" in 1682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1683*) 1684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1685 # A ".." for each directory in $ac_dir_suffix. 1686 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1687 case $ac_top_builddir_sub in 1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1690 esac ;; 1691esac 1692ac_abs_top_builddir=$ac_pwd 1693ac_abs_builddir=$ac_pwd$ac_dir_suffix 1694# for backward compatibility: 1695ac_top_builddir=$ac_top_build_prefix 1696 1697case $srcdir in 1698 .) # We are building in place. 1699 ac_srcdir=. 1700 ac_top_srcdir=$ac_top_builddir_sub 1701 ac_abs_top_srcdir=$ac_pwd ;; 1702 [\\/]* | ?:[\\/]* ) # Absolute name. 1703 ac_srcdir=$srcdir$ac_dir_suffix; 1704 ac_top_srcdir=$srcdir 1705 ac_abs_top_srcdir=$srcdir ;; 1706 *) # Relative name. 1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1708 ac_top_srcdir=$ac_top_build_prefix$srcdir 1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1710esac 1711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1712 1713 cd "$ac_dir" || { ac_status=$?; continue; } 1714 # Check for guested configure. 1715 if test -f "$ac_srcdir/configure.gnu"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1718 elif test -f "$ac_srcdir/configure"; then 1719 echo && 1720 $SHELL "$ac_srcdir/configure" --help=recursive 1721 else 1722 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1723 fi || ac_status=$? 1724 cd "$ac_pwd" || { ac_status=$?; break; } 1725 done 1726fi 1727 1728test -n "$ac_init_help" && exit $ac_status 1729if $ac_init_version; then 1730 cat <<\_ACEOF 1731configure 1732generated by GNU Autoconf 2.61 1733 1734Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17352002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1736This configure script is free software; the Free Software Foundation 1737gives unlimited permission to copy, distribute and modify it. 1738_ACEOF 1739 exit 1740fi 1741cat >config.log <<_ACEOF 1742This file contains any messages produced by compilers while 1743running configure, to aid debugging if configure makes a mistake. 1744 1745It was created by $as_me, which was 1746generated by GNU Autoconf 2.61. Invocation command line was 1747 1748 $ $0 $@ 1749 1750_ACEOF 1751exec 5>>config.log 1752{ 1753cat <<_ASUNAME 1754## --------- ## 1755## Platform. ## 1756## --------- ## 1757 1758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775_ASUNAME 1776 1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778for as_dir in $PATH 1779do 1780 IFS=$as_save_IFS 1781 test -z "$as_dir" && as_dir=. 1782 echo "PATH: $as_dir" 1783done 1784IFS=$as_save_IFS 1785 1786} >&5 1787 1788cat >&5 <<_ACEOF 1789 1790 1791## ----------- ## 1792## Core tests. ## 1793## ----------- ## 1794 1795_ACEOF 1796 1797 1798# Keep a trace of the command line. 1799# Strip out --no-create and --no-recursion so they do not pile up. 1800# Strip out --silent because we don't want to record it for future runs. 1801# Also quote any args containing shell meta-characters. 1802# Make two passes to allow for proper duplicate-argument suppression. 1803ac_configure_args= 1804ac_configure_args0= 1805ac_configure_args1= 1806ac_must_keep_next=false 1807for ac_pass in 1 2 1808do 1809 for ac_arg 1810 do 1811 case $ac_arg in 1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1814 | -silent | --silent | --silen | --sile | --sil) 1815 continue ;; 1816 *\'*) 1817 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1818 esac 1819 case $ac_pass in 1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1821 2) 1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1823 if test $ac_must_keep_next = true; then 1824 ac_must_keep_next=false # Got value, back to normal. 1825 else 1826 case $ac_arg in 1827 *=* | --config-cache | -C | -disable-* | --disable-* \ 1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1830 | -with-* | --with-* | -without-* | --without-* | --x) 1831 case "$ac_configure_args0 " in 1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1833 esac 1834 ;; 1835 -* ) ac_must_keep_next=true ;; 1836 esac 1837 fi 1838 ac_configure_args="$ac_configure_args '$ac_arg'" 1839 ;; 1840 esac 1841 done 1842done 1843$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1844$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1845 1846# When interrupted or exit'd, cleanup temporary files, and complete 1847# config.log. We remove comments because anyway the quotes in there 1848# would cause problems or look ugly. 1849# WARNING: Use '\'' to represent an apostrophe within the trap. 1850# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1851trap 'exit_status=$? 1852 # Save into config.log some information that might help in debugging. 1853 { 1854 echo 1855 1856 cat <<\_ASBOX 1857## ---------------- ## 1858## Cache variables. ## 1859## ---------------- ## 1860_ASBOX 1861 echo 1862 # The following way of writing the cache mishandles newlines in values, 1863( 1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1865 eval ac_val=\$$ac_var 1866 case $ac_val in #( 1867 *${as_nl}*) 1868 case $ac_var in #( 1869 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1870echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1871 esac 1872 case $ac_var in #( 1873 _ | IFS | as_nl) ;; #( 1874 *) $as_unset $ac_var ;; 1875 esac ;; 1876 esac 1877 done 1878 (set) 2>&1 | 1879 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1880 *${as_nl}ac_space=\ *) 1881 sed -n \ 1882 "s/'\''/'\''\\\\'\'''\''/g; 1883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1884 ;; #( 1885 *) 1886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1887 ;; 1888 esac | 1889 sort 1890) 1891 echo 1892 1893 cat <<\_ASBOX 1894## ----------------- ## 1895## Output variables. ## 1896## ----------------- ## 1897_ASBOX 1898 echo 1899 for ac_var in $ac_subst_vars 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 echo "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 1909 if test -n "$ac_subst_files"; then 1910 cat <<\_ASBOX 1911## ------------------- ## 1912## File substitutions. ## 1913## ------------------- ## 1914_ASBOX 1915 echo 1916 for ac_var in $ac_subst_files 1917 do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in 1920 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1921 esac 1922 echo "$ac_var='\''$ac_val'\''" 1923 done | sort 1924 echo 1925 fi 1926 1927 if test -s confdefs.h; then 1928 cat <<\_ASBOX 1929## ----------- ## 1930## confdefs.h. ## 1931## ----------- ## 1932_ASBOX 1933 echo 1934 cat confdefs.h 1935 echo 1936 fi 1937 test "$ac_signal" != 0 && 1938 echo "$as_me: caught signal $ac_signal" 1939 echo "$as_me: exit $exit_status" 1940 } >&5 1941 rm -f core *.core core.conftest.* && 1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1943 exit $exit_status 1944' 0 1945for ac_signal in 1 2 13 15; do 1946 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1947done 1948ac_signal=0 1949 1950# confdefs.h avoids OS command line length limits that DEFS can exceed. 1951rm -f -r conftest* confdefs.h 1952 1953# Predefined preprocessor variables. 1954 1955cat >>confdefs.h <<_ACEOF 1956#define PACKAGE_NAME "$PACKAGE_NAME" 1957_ACEOF 1958 1959 1960cat >>confdefs.h <<_ACEOF 1961#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1962_ACEOF 1963 1964 1965cat >>confdefs.h <<_ACEOF 1966#define PACKAGE_VERSION "$PACKAGE_VERSION" 1967_ACEOF 1968 1969 1970cat >>confdefs.h <<_ACEOF 1971#define PACKAGE_STRING "$PACKAGE_STRING" 1972_ACEOF 1973 1974 1975cat >>confdefs.h <<_ACEOF 1976#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1977_ACEOF 1978 1979 1980# Let the site file select an alternate cache file if it wants to. 1981# Prefer explicitly selected file to automatically selected ones. 1982if test -n "$CONFIG_SITE"; then 1983 set x "$CONFIG_SITE" 1984elif test "x$prefix" != xNONE; then 1985 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1986else 1987 set x "$ac_default_prefix/share/config.site" \ 1988 "$ac_default_prefix/etc/config.site" 1989fi 1990shift 1991for ac_site_file 1992do 1993 if test -r "$ac_site_file"; then 1994 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1995echo "$as_me: loading site script $ac_site_file" >&6;} 1996 sed 's/^/| /' "$ac_site_file" >&5 1997 . "$ac_site_file" 1998 fi 1999done 2000 2001if test -r "$cache_file"; then 2002 # Some versions of bash will fail to source /dev/null (special 2003 # files actually), so we avoid doing that. 2004 if test -f "$cache_file"; then 2005 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2006echo "$as_me: loading cache $cache_file" >&6;} 2007 case $cache_file in 2008 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2009 *) . "./$cache_file";; 2010 esac 2011 fi 2012else 2013 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2014echo "$as_me: creating cache $cache_file" >&6;} 2015 >$cache_file 2016fi 2017 2018# Check that the precious variables saved in the cache have kept the same 2019# value. 2020ac_cache_corrupted=false 2021for ac_var in $ac_precious_vars; do 2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2023 eval ac_new_set=\$ac_env_${ac_var}_set 2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2025 eval ac_new_val=\$ac_env_${ac_var}_value 2026 case $ac_old_set,$ac_new_set in 2027 set,) 2028 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2029echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2030 ac_cache_corrupted=: ;; 2031 ,set) 2032 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2033echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2034 ac_cache_corrupted=: ;; 2035 ,);; 2036 *) 2037 if test "x$ac_old_val" != "x$ac_new_val"; then 2038 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2039echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2040 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 2041echo "$as_me: former value: $ac_old_val" >&2;} 2042 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 2043echo "$as_me: current value: $ac_new_val" >&2;} 2044 ac_cache_corrupted=: 2045 fi;; 2046 esac 2047 # Pass precious variables to config.status. 2048 if test "$ac_new_set" = set; then 2049 case $ac_new_val in 2050 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2051 *) ac_arg=$ac_var=$ac_new_val ;; 2052 esac 2053 case " $ac_configure_args " in 2054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2055 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2056 esac 2057 fi 2058done 2059if $ac_cache_corrupted; then 2060 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2061echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2062 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2063echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2064 { (exit 1); exit 1; }; } 2065fi 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083ac_ext=c 2084ac_cpp='$CPP $CPPFLAGS' 2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2087ac_compiler_gnu=$ac_cv_c_compiler_gnu 2088 2089 2090 2091 2092ac_config_headers="$ac_config_headers config.h" 2093 2094 2095ac_aux_dir= 2096for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2097 if test -f "$ac_dir/install-sh"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/install-sh -c" 2100 break 2101 elif test -f "$ac_dir/install.sh"; then 2102 ac_aux_dir=$ac_dir 2103 ac_install_sh="$ac_aux_dir/install.sh -c" 2104 break 2105 elif test -f "$ac_dir/shtool"; then 2106 ac_aux_dir=$ac_dir 2107 ac_install_sh="$ac_aux_dir/shtool install -c" 2108 break 2109 fi 2110done 2111if test -z "$ac_aux_dir"; then 2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2113echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2114 { (exit 1); exit 1; }; } 2115fi 2116 2117# These three variables are undocumented and unsupported, 2118# and are intended to be withdrawn in a future Autoconf release. 2119# They can cause serious problems if a builder's source tree is in a directory 2120# whose full name contains unusual characters. 2121ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2122ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2123ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2124 2125 2126# Make sure we can run config.sub. 2127$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2129echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2130 { (exit 1); exit 1; }; } 2131 2132{ echo "$as_me:$LINENO: checking build system type" >&5 2133echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2134if test "${ac_cv_build+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136else 2137 ac_build_alias=$build_alias 2138test "x$ac_build_alias" = x && 2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2140test "x$ac_build_alias" = x && 2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2142echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2143 { (exit 1); exit 1; }; } 2144ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2147 { (exit 1); exit 1; }; } 2148 2149fi 2150{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2151echo "${ECHO_T}$ac_cv_build" >&6; } 2152case $ac_cv_build in 2153*-*-*) ;; 2154*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2155echo "$as_me: error: invalid value of canonical build" >&2;} 2156 { (exit 1); exit 1; }; };; 2157esac 2158build=$ac_cv_build 2159ac_save_IFS=$IFS; IFS='-' 2160set x $ac_cv_build 2161shift 2162build_cpu=$1 2163build_vendor=$2 2164shift; shift 2165# Remember, the first character of IFS is used to create $*, 2166# except with old shells: 2167build_os=$* 2168IFS=$ac_save_IFS 2169case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2170 2171 2172{ echo "$as_me:$LINENO: checking host system type" >&5 2173echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2174if test "${ac_cv_host+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 if test "x$host_alias" = x; then 2178 ac_cv_host=$ac_cv_build 2179else 2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2183 { (exit 1); exit 1; }; } 2184fi 2185 2186fi 2187{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2188echo "${ECHO_T}$ac_cv_host" >&6; } 2189case $ac_cv_host in 2190*-*-*) ;; 2191*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2192echo "$as_me: error: invalid value of canonical host" >&2;} 2193 { (exit 1); exit 1; }; };; 2194esac 2195host=$ac_cv_host 2196ac_save_IFS=$IFS; IFS='-' 2197set x $ac_cv_host 2198shift 2199host_cpu=$1 2200host_vendor=$2 2201shift; shift 2202# Remember, the first character of IFS is used to create $*, 2203# except with old shells: 2204host_os=$* 2205IFS=$ac_save_IFS 2206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2207 2208 2209 2210{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2211echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2212set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2213if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 cat >conftest.make <<\_ACEOF 2217SHELL = /bin/sh 2218all: 2219 @echo '@@@%%%=$(MAKE)=@@@%%%' 2220_ACEOF 2221# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2222case `${MAKE-make} -f conftest.make 2>/dev/null` in 2223 *@@@%%%=?*=@@@%%%*) 2224 eval ac_cv_prog_make_${ac_make}_set=yes;; 2225 *) 2226 eval ac_cv_prog_make_${ac_make}_set=no;; 2227esac 2228rm -f conftest.make 2229fi 2230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2231 { echo "$as_me:$LINENO: result: yes" >&5 2232echo "${ECHO_T}yes" >&6; } 2233 SET_MAKE= 2234else 2235 { echo "$as_me:$LINENO: result: no" >&5 2236echo "${ECHO_T}no" >&6; } 2237 SET_MAKE="MAKE=${MAKE-make}" 2238fi 2239 2240# Check whether --enable-shared was given. 2241if test "${enable_shared+set}" = set; then 2242 enableval=$enable_shared; p=${PACKAGE-default} 2243 case $enableval in 2244 yes) enable_shared=yes ;; 2245 no) enable_shared=no ;; 2246 *) 2247 enable_shared=no 2248 # Look at the argument we got. We use all the common list separators. 2249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2250 for pkg in $enableval; do 2251 IFS="$lt_save_ifs" 2252 if test "X$pkg" = "X$p"; then 2253 enable_shared=yes 2254 fi 2255 done 2256 IFS="$lt_save_ifs" 2257 ;; 2258 esac 2259else 2260 enable_shared=yes 2261fi 2262 2263 2264# Check whether --enable-static was given. 2265if test "${enable_static+set}" = set; then 2266 enableval=$enable_static; p=${PACKAGE-default} 2267 case $enableval in 2268 yes) enable_static=yes ;; 2269 no) enable_static=no ;; 2270 *) 2271 enable_static=no 2272 # Look at the argument we got. We use all the common list separators. 2273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2274 for pkg in $enableval; do 2275 IFS="$lt_save_ifs" 2276 if test "X$pkg" = "X$p"; then 2277 enable_static=yes 2278 fi 2279 done 2280 IFS="$lt_save_ifs" 2281 ;; 2282 esac 2283else 2284 enable_static=yes 2285fi 2286 2287 2288# Check whether --enable-fast-install was given. 2289if test "${enable_fast_install+set}" = set; then 2290 enableval=$enable_fast_install; p=${PACKAGE-default} 2291 case $enableval in 2292 yes) enable_fast_install=yes ;; 2293 no) enable_fast_install=no ;; 2294 *) 2295 enable_fast_install=no 2296 # Look at the argument we got. We use all the common list separators. 2297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2298 for pkg in $enableval; do 2299 IFS="$lt_save_ifs" 2300 if test "X$pkg" = "X$p"; then 2301 enable_fast_install=yes 2302 fi 2303 done 2304 IFS="$lt_save_ifs" 2305 ;; 2306 esac 2307else 2308 enable_fast_install=yes 2309fi 2310 2311 2312ac_ext=c 2313ac_cpp='$CPP $CPPFLAGS' 2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2316ac_compiler_gnu=$ac_cv_c_compiler_gnu 2317if test -n "$ac_tool_prefix"; then 2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2319set dummy ${ac_tool_prefix}gcc; ac_word=$2 2320{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2322if test "${ac_cv_prog_CC+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 if test -n "$CC"; then 2326 ac_cv_prog_CC="$CC" # Let the user override the test. 2327else 2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329for as_dir in $PATH 2330do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339done 2340done 2341IFS=$as_save_IFS 2342 2343fi 2344fi 2345CC=$ac_cv_prog_CC 2346if test -n "$CC"; then 2347 { echo "$as_me:$LINENO: result: $CC" >&5 2348echo "${ECHO_T}$CC" >&6; } 2349else 2350 { echo "$as_me:$LINENO: result: no" >&5 2351echo "${ECHO_T}no" >&6; } 2352fi 2353 2354 2355fi 2356if test -z "$ac_cv_prog_CC"; then 2357 ac_ct_CC=$CC 2358 # Extract the first word of "gcc", so it can be a program name with args. 2359set dummy gcc; ac_word=$2 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2362if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 if test -n "$ac_ct_CC"; then 2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_ac_ct_CC="gcc" 2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385ac_ct_CC=$ac_cv_prog_ac_ct_CC 2386if test -n "$ac_ct_CC"; then 2387 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2388echo "${ECHO_T}$ac_ct_CC" >&6; } 2389else 2390 { echo "$as_me:$LINENO: result: no" >&5 2391echo "${ECHO_T}no" >&6; } 2392fi 2393 2394 if test "x$ac_ct_CC" = x; then 2395 CC="" 2396 else 2397 case $cross_compiling:$ac_tool_warned in 2398yes:) 2399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2400whose name does not start with the host triplet. If you think this 2401configuration is useful to you, please write to autoconf@gnu.org." >&5 2402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2403whose name does not start with the host triplet. If you think this 2404configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2405ac_tool_warned=yes ;; 2406esac 2407 CC=$ac_ct_CC 2408 fi 2409else 2410 CC="$ac_cv_prog_CC" 2411fi 2412 2413if test -z "$CC"; then 2414 if test -n "$ac_tool_prefix"; then 2415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2416set dummy ${ac_tool_prefix}cc; ac_word=$2 2417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2419if test "${ac_cv_prog_CC+set}" = set; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 if test -n "$CC"; then 2423 ac_cv_prog_CC="$CC" # Let the user override the test. 2424else 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2432 ac_cv_prog_CC="${ac_tool_prefix}cc" 2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436done 2437done 2438IFS=$as_save_IFS 2439 2440fi 2441fi 2442CC=$ac_cv_prog_CC 2443if test -n "$CC"; then 2444 { echo "$as_me:$LINENO: result: $CC" >&5 2445echo "${ECHO_T}$CC" >&6; } 2446else 2447 { echo "$as_me:$LINENO: result: no" >&5 2448echo "${ECHO_T}no" >&6; } 2449fi 2450 2451 2452 fi 2453fi 2454if test -z "$CC"; then 2455 # Extract the first word of "cc", so it can be a program name with args. 2456set dummy cc; ac_word=$2 2457{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2459if test "${ac_cv_prog_CC+set}" = set; then 2460 echo $ECHO_N "(cached) $ECHO_C" >&6 2461else 2462 if test -n "$CC"; then 2463 ac_cv_prog_CC="$CC" # Let the user override the test. 2464else 2465 ac_prog_rejected=no 2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2467for as_dir in $PATH 2468do 2469 IFS=$as_save_IFS 2470 test -z "$as_dir" && as_dir=. 2471 for ac_exec_ext in '' $ac_executable_extensions; do 2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2474 ac_prog_rejected=yes 2475 continue 2476 fi 2477 ac_cv_prog_CC="cc" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483IFS=$as_save_IFS 2484 2485if test $ac_prog_rejected = yes; then 2486 # We found a bogon in the path, so make sure we never use it. 2487 set dummy $ac_cv_prog_CC 2488 shift 2489 if test $# != 0; then 2490 # We chose a different compiler from the bogus one. 2491 # However, it has the same basename, so the bogon will be chosen 2492 # first if we set CC to just the basename; use the full file name. 2493 shift 2494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2495 fi 2496fi 2497fi 2498fi 2499CC=$ac_cv_prog_CC 2500if test -n "$CC"; then 2501 { echo "$as_me:$LINENO: result: $CC" >&5 2502echo "${ECHO_T}$CC" >&6; } 2503else 2504 { echo "$as_me:$LINENO: result: no" >&5 2505echo "${ECHO_T}no" >&6; } 2506fi 2507 2508 2509fi 2510if test -z "$CC"; then 2511 if test -n "$ac_tool_prefix"; then 2512 for ac_prog in cl.exe 2513 do 2514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2515set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2516{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2518if test "${ac_cv_prog_CC+set}" = set; then 2519 echo $ECHO_N "(cached) $ECHO_C" >&6 2520else 2521 if test -n "$CC"; then 2522 ac_cv_prog_CC="$CC" # Let the user override the test. 2523else 2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2525for as_dir in $PATH 2526do 2527 IFS=$as_save_IFS 2528 test -z "$as_dir" && as_dir=. 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2533 break 2 2534 fi 2535done 2536done 2537IFS=$as_save_IFS 2538 2539fi 2540fi 2541CC=$ac_cv_prog_CC 2542if test -n "$CC"; then 2543 { echo "$as_me:$LINENO: result: $CC" >&5 2544echo "${ECHO_T}$CC" >&6; } 2545else 2546 { echo "$as_me:$LINENO: result: no" >&5 2547echo "${ECHO_T}no" >&6; } 2548fi 2549 2550 2551 test -n "$CC" && break 2552 done 2553fi 2554if test -z "$CC"; then 2555 ac_ct_CC=$CC 2556 for ac_prog in cl.exe 2557do 2558 # Extract the first word of "$ac_prog", so it can be a program name with args. 2559set dummy $ac_prog; ac_word=$2 2560{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2563 echo $ECHO_N "(cached) $ECHO_C" >&6 2564else 2565 if test -n "$ac_ct_CC"; then 2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2567else 2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_exec_ext in '' $ac_executable_extensions; do 2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2575 ac_cv_prog_ac_ct_CC="$ac_prog" 2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2577 break 2 2578 fi 2579done 2580done 2581IFS=$as_save_IFS 2582 2583fi 2584fi 2585ac_ct_CC=$ac_cv_prog_ac_ct_CC 2586if test -n "$ac_ct_CC"; then 2587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2588echo "${ECHO_T}$ac_ct_CC" >&6; } 2589else 2590 { echo "$as_me:$LINENO: result: no" >&5 2591echo "${ECHO_T}no" >&6; } 2592fi 2593 2594 2595 test -n "$ac_ct_CC" && break 2596done 2597 2598 if test "x$ac_ct_CC" = x; then 2599 CC="" 2600 else 2601 case $cross_compiling:$ac_tool_warned in 2602yes:) 2603{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2604whose name does not start with the host triplet. If you think this 2605configuration is useful to you, please write to autoconf@gnu.org." >&5 2606echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2607whose name does not start with the host triplet. If you think this 2608configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2609ac_tool_warned=yes ;; 2610esac 2611 CC=$ac_ct_CC 2612 fi 2613fi 2614 2615fi 2616 2617 2618test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2619See \`config.log' for more details." >&5 2620echo "$as_me: error: no acceptable C compiler found in \$PATH 2621See \`config.log' for more details." >&2;} 2622 { (exit 1); exit 1; }; } 2623 2624# Provide some information about the compiler. 2625echo "$as_me:$LINENO: checking for C compiler version" >&5 2626ac_compiler=`set X $ac_compile; echo $2` 2627{ (ac_try="$ac_compiler --version >&5" 2628case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631esac 2632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2633 (eval "$ac_compiler --version >&5") 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); } 2637{ (ac_try="$ac_compiler -v >&5" 2638case "(($ac_try" in 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2640 *) ac_try_echo=$ac_try;; 2641esac 2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2643 (eval "$ac_compiler -v >&5") 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } 2647{ (ac_try="$ac_compiler -V >&5" 2648case "(($ac_try" in 2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2650 *) ac_try_echo=$ac_try;; 2651esac 2652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2653 (eval "$ac_compiler -V >&5") 2>&5 2654 ac_status=$? 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2656 (exit $ac_status); } 2657 2658cat >conftest.$ac_ext <<_ACEOF 2659/* confdefs.h. */ 2660_ACEOF 2661cat confdefs.h >>conftest.$ac_ext 2662cat >>conftest.$ac_ext <<_ACEOF 2663/* end confdefs.h. */ 2664 2665int 2666main () 2667{ 2668 2669 ; 2670 return 0; 2671} 2672_ACEOF 2673ac_clean_files_save=$ac_clean_files 2674ac_clean_files="$ac_clean_files a.out a.exe b.out" 2675# Try to create an executable without -o first, disregard a.out. 2676# It will help us diagnose broken compilers, and finding out an intuition 2677# of exeext. 2678{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2679echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2680ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2681# 2682# List of possible output files, starting from the most likely. 2683# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2684# only as a last resort. b.out is created by i960 compilers. 2685ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2686# 2687# The IRIX 6 linker writes into existing files which may not be 2688# executable, retaining their permissions. Remove them first so a 2689# subsequent execution test works. 2690ac_rmfiles= 2691for ac_file in $ac_files 2692do 2693 case $ac_file in 2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2696 esac 2697done 2698rm -f $ac_rmfiles 2699 2700if { (ac_try="$ac_link_default" 2701case "(($ac_try" in 2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2703 *) ac_try_echo=$ac_try;; 2704esac 2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2706 (eval "$ac_link_default") 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); }; then 2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2711# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2712# in a Makefile. We should not override ac_cv_exeext if it was cached, 2713# so that the user can short-circuit this test for compilers unknown to 2714# Autoconf. 2715for ac_file in $ac_files '' 2716do 2717 test -f "$ac_file" || continue 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2720 ;; 2721 [ab].out ) 2722 # We found the default executable, but exeext='' is most 2723 # certainly right. 2724 break;; 2725 *.* ) 2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2727 then :; else 2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2729 fi 2730 # We set ac_cv_exeext here because the later test for it is not 2731 # safe: cross compilers may not add the suffix if given an `-o' 2732 # argument, so we may need to know it at that point already. 2733 # Even if this section looks crufty: it has the advantage of 2734 # actually working. 2735 break;; 2736 * ) 2737 break;; 2738 esac 2739done 2740test "$ac_cv_exeext" = no && ac_cv_exeext= 2741 2742else 2743 ac_file='' 2744fi 2745 2746{ echo "$as_me:$LINENO: result: $ac_file" >&5 2747echo "${ECHO_T}$ac_file" >&6; } 2748if test -z "$ac_file"; then 2749 echo "$as_me: failed program was:" >&5 2750sed 's/^/| /' conftest.$ac_ext >&5 2751 2752{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2753See \`config.log' for more details." >&5 2754echo "$as_me: error: C compiler cannot create executables 2755See \`config.log' for more details." >&2;} 2756 { (exit 77); exit 77; }; } 2757fi 2758 2759ac_exeext=$ac_cv_exeext 2760 2761# Check that the compiler produces executables we can run. If not, either 2762# the compiler is broken, or we cross compile. 2763{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2764echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2765# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2766# If not cross compiling, check that we can run a simple program. 2767if test "$cross_compiling" != yes; then 2768 if { ac_try='./$ac_file' 2769 { (case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772esac 2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2774 (eval "$ac_try") 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); }; }; then 2778 cross_compiling=no 2779 else 2780 if test "$cross_compiling" = maybe; then 2781 cross_compiling=yes 2782 else 2783 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2784If you meant to cross compile, use \`--host'. 2785See \`config.log' for more details." >&5 2786echo "$as_me: error: cannot run C compiled programs. 2787If you meant to cross compile, use \`--host'. 2788See \`config.log' for more details." >&2;} 2789 { (exit 1); exit 1; }; } 2790 fi 2791 fi 2792fi 2793{ echo "$as_me:$LINENO: result: yes" >&5 2794echo "${ECHO_T}yes" >&6; } 2795 2796rm -f a.out a.exe conftest$ac_cv_exeext b.out 2797ac_clean_files=$ac_clean_files_save 2798# Check that the compiler produces executables we can run. If not, either 2799# the compiler is broken, or we cross compile. 2800{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2801echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2802{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2803echo "${ECHO_T}$cross_compiling" >&6; } 2804 2805{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2806echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2807if { (ac_try="$ac_link" 2808case "(($ac_try" in 2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2810 *) ac_try_echo=$ac_try;; 2811esac 2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2813 (eval "$ac_link") 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); }; then 2817 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2818# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2819# work properly (i.e., refer to `conftest.exe'), while it won't with 2820# `rm'. 2821for ac_file in conftest.exe conftest conftest.*; do 2822 test -f "$ac_file" || continue 2823 case $ac_file in 2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2826 break;; 2827 * ) break;; 2828 esac 2829done 2830else 2831 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2832See \`config.log' for more details." >&5 2833echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2834See \`config.log' for more details." >&2;} 2835 { (exit 1); exit 1; }; } 2836fi 2837 2838rm -f conftest$ac_cv_exeext 2839{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2840echo "${ECHO_T}$ac_cv_exeext" >&6; } 2841 2842rm -f conftest.$ac_ext 2843EXEEXT=$ac_cv_exeext 2844ac_exeext=$EXEEXT 2845{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2846echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2847if test "${ac_cv_objext+set}" = set; then 2848 echo $ECHO_N "(cached) $ECHO_C" >&6 2849else 2850 cat >conftest.$ac_ext <<_ACEOF 2851/* confdefs.h. */ 2852_ACEOF 2853cat confdefs.h >>conftest.$ac_ext 2854cat >>conftest.$ac_ext <<_ACEOF 2855/* end confdefs.h. */ 2856 2857int 2858main () 2859{ 2860 2861 ; 2862 return 0; 2863} 2864_ACEOF 2865rm -f conftest.o conftest.obj 2866if { (ac_try="$ac_compile" 2867case "(($ac_try" in 2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2869 *) ac_try_echo=$ac_try;; 2870esac 2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2872 (eval "$ac_compile") 2>&5 2873 ac_status=$? 2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2875 (exit $ac_status); }; then 2876 for ac_file in conftest.o conftest.obj conftest.*; do 2877 test -f "$ac_file" || continue; 2878 case $ac_file in 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2881 break;; 2882 esac 2883done 2884else 2885 echo "$as_me: failed program was:" >&5 2886sed 's/^/| /' conftest.$ac_ext >&5 2887 2888{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2889See \`config.log' for more details." >&5 2890echo "$as_me: error: cannot compute suffix of object files: cannot compile 2891See \`config.log' for more details." >&2;} 2892 { (exit 1); exit 1; }; } 2893fi 2894 2895rm -f conftest.$ac_cv_objext conftest.$ac_ext 2896fi 2897{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2898echo "${ECHO_T}$ac_cv_objext" >&6; } 2899OBJEXT=$ac_cv_objext 2900ac_objext=$OBJEXT 2901{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2902echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2903if test "${ac_cv_c_compiler_gnu+set}" = set; then 2904 echo $ECHO_N "(cached) $ECHO_C" >&6 2905else 2906 cat >conftest.$ac_ext <<_ACEOF 2907/* confdefs.h. */ 2908_ACEOF 2909cat confdefs.h >>conftest.$ac_ext 2910cat >>conftest.$ac_ext <<_ACEOF 2911/* end confdefs.h. */ 2912 2913int 2914main () 2915{ 2916#ifndef __GNUC__ 2917 choke me 2918#endif 2919 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924rm -f conftest.$ac_objext 2925if { (ac_try="$ac_compile" 2926case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929esac 2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2931 (eval "$ac_compile") 2>conftest.er1 2932 ac_status=$? 2933 grep -v '^ *+' conftest.er1 >conftest.err 2934 rm -f conftest.er1 2935 cat conftest.err >&5 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } && { 2938 test -z "$ac_c_werror_flag" || 2939 test ! -s conftest.err 2940 } && test -s conftest.$ac_objext; then 2941 ac_compiler_gnu=yes 2942else 2943 echo "$as_me: failed program was:" >&5 2944sed 's/^/| /' conftest.$ac_ext >&5 2945 2946 ac_compiler_gnu=no 2947fi 2948 2949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2950ac_cv_c_compiler_gnu=$ac_compiler_gnu 2951 2952fi 2953{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2954echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2955GCC=`test $ac_compiler_gnu = yes && echo yes` 2956ac_test_CFLAGS=${CFLAGS+set} 2957ac_save_CFLAGS=$CFLAGS 2958{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2959echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2960if test "${ac_cv_prog_cc_g+set}" = set; then 2961 echo $ECHO_N "(cached) $ECHO_C" >&6 2962else 2963 ac_save_c_werror_flag=$ac_c_werror_flag 2964 ac_c_werror_flag=yes 2965 ac_cv_prog_cc_g=no 2966 CFLAGS="-g" 2967 cat >conftest.$ac_ext <<_ACEOF 2968/* confdefs.h. */ 2969_ACEOF 2970cat confdefs.h >>conftest.$ac_ext 2971cat >>conftest.$ac_ext <<_ACEOF 2972/* end confdefs.h. */ 2973 2974int 2975main () 2976{ 2977 2978 ; 2979 return 0; 2980} 2981_ACEOF 2982rm -f conftest.$ac_objext 2983if { (ac_try="$ac_compile" 2984case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2989 (eval "$ac_compile") 2>conftest.er1 2990 ac_status=$? 2991 grep -v '^ *+' conftest.er1 >conftest.err 2992 rm -f conftest.er1 2993 cat conftest.err >&5 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); } && { 2996 test -z "$ac_c_werror_flag" || 2997 test ! -s conftest.err 2998 } && test -s conftest.$ac_objext; then 2999 ac_cv_prog_cc_g=yes 3000else 3001 echo "$as_me: failed program was:" >&5 3002sed 's/^/| /' conftest.$ac_ext >&5 3003 3004 CFLAGS="" 3005 cat >conftest.$ac_ext <<_ACEOF 3006/* confdefs.h. */ 3007_ACEOF 3008cat confdefs.h >>conftest.$ac_ext 3009cat >>conftest.$ac_ext <<_ACEOF 3010/* end confdefs.h. */ 3011 3012int 3013main () 3014{ 3015 3016 ; 3017 return 0; 3018} 3019_ACEOF 3020rm -f conftest.$ac_objext 3021if { (ac_try="$ac_compile" 3022case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025esac 3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3027 (eval "$ac_compile") 2>conftest.er1 3028 ac_status=$? 3029 grep -v '^ *+' conftest.er1 >conftest.err 3030 rm -f conftest.er1 3031 cat conftest.err >&5 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); } && { 3034 test -z "$ac_c_werror_flag" || 3035 test ! -s conftest.err 3036 } && test -s conftest.$ac_objext; then 3037 : 3038else 3039 echo "$as_me: failed program was:" >&5 3040sed 's/^/| /' conftest.$ac_ext >&5 3041 3042 ac_c_werror_flag=$ac_save_c_werror_flag 3043 CFLAGS="-g" 3044 cat >conftest.$ac_ext <<_ACEOF 3045/* confdefs.h. */ 3046_ACEOF 3047cat confdefs.h >>conftest.$ac_ext 3048cat >>conftest.$ac_ext <<_ACEOF 3049/* end confdefs.h. */ 3050 3051int 3052main () 3053{ 3054 3055 ; 3056 return 0; 3057} 3058_ACEOF 3059rm -f conftest.$ac_objext 3060if { (ac_try="$ac_compile" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066 (eval "$ac_compile") 2>conftest.er1 3067 ac_status=$? 3068 grep -v '^ *+' conftest.er1 >conftest.err 3069 rm -f conftest.er1 3070 cat conftest.err >&5 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); } && { 3073 test -z "$ac_c_werror_flag" || 3074 test ! -s conftest.err 3075 } && test -s conftest.$ac_objext; then 3076 ac_cv_prog_cc_g=yes 3077else 3078 echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081 3082fi 3083 3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085fi 3086 3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3088fi 3089 3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3091 ac_c_werror_flag=$ac_save_c_werror_flag 3092fi 3093{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3094echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3095if test "$ac_test_CFLAGS" = set; then 3096 CFLAGS=$ac_save_CFLAGS 3097elif test $ac_cv_prog_cc_g = yes; then 3098 if test "$GCC" = yes; then 3099 CFLAGS="-g -O2" 3100 else 3101 CFLAGS="-g" 3102 fi 3103else 3104 if test "$GCC" = yes; then 3105 CFLAGS="-O2" 3106 else 3107 CFLAGS= 3108 fi 3109fi 3110{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3111echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3112if test "${ac_cv_prog_cc_c89+set}" = set; then 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 3114else 3115 ac_cv_prog_cc_c89=no 3116ac_save_CC=$CC 3117cat >conftest.$ac_ext <<_ACEOF 3118/* confdefs.h. */ 3119_ACEOF 3120cat confdefs.h >>conftest.$ac_ext 3121cat >>conftest.$ac_ext <<_ACEOF 3122/* end confdefs.h. */ 3123#include <stdarg.h> 3124#include <stdio.h> 3125#include <sys/types.h> 3126#include <sys/stat.h> 3127/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3128struct buf { int x; }; 3129FILE * (*rcsopen) (struct buf *, struct stat *, int); 3130static char *e (p, i) 3131 char **p; 3132 int i; 3133{ 3134 return p[i]; 3135} 3136static char *f (char * (*g) (char **, int), char **p, ...) 3137{ 3138 char *s; 3139 va_list v; 3140 va_start (v,p); 3141 s = g (p, va_arg (v,int)); 3142 va_end (v); 3143 return s; 3144} 3145 3146/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3147 function prototypes and stuff, but not '\xHH' hex character constants. 3148 These don't provoke an error unfortunately, instead are silently treated 3149 as 'x'. The following induces an error, until -std is added to get 3150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3151 array size at least. It's necessary to write '\x00'==0 to get something 3152 that's true only with -std. */ 3153int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3154 3155/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3156 inside strings and character constants. */ 3157#define FOO(x) 'x' 3158int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3159 3160int test (int i, double x); 3161struct s1 {int (*f) (int a);}; 3162struct s2 {int (*f) (double a);}; 3163int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3164int argc; 3165char **argv; 3166int 3167main () 3168{ 3169return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3176do 3177 CC="$ac_save_CC $ac_arg" 3178 rm -f conftest.$ac_objext 3179if { (ac_try="$ac_compile" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3185 (eval "$ac_compile") 2>conftest.er1 3186 ac_status=$? 3187 grep -v '^ *+' conftest.er1 >conftest.err 3188 rm -f conftest.er1 3189 cat conftest.err >&5 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && { 3192 test -z "$ac_c_werror_flag" || 3193 test ! -s conftest.err 3194 } && test -s conftest.$ac_objext; then 3195 ac_cv_prog_cc_c89=$ac_arg 3196else 3197 echo "$as_me: failed program was:" >&5 3198sed 's/^/| /' conftest.$ac_ext >&5 3199 3200 3201fi 3202 3203rm -f core conftest.err conftest.$ac_objext 3204 test "x$ac_cv_prog_cc_c89" != "xno" && break 3205done 3206rm -f conftest.$ac_ext 3207CC=$ac_save_CC 3208 3209fi 3210# AC_CACHE_VAL 3211case "x$ac_cv_prog_cc_c89" in 3212 x) 3213 { echo "$as_me:$LINENO: result: none needed" >&5 3214echo "${ECHO_T}none needed" >&6; } ;; 3215 xno) 3216 { echo "$as_me:$LINENO: result: unsupported" >&5 3217echo "${ECHO_T}unsupported" >&6; } ;; 3218 *) 3219 CC="$CC $ac_cv_prog_cc_c89" 3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3221echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3222esac 3223 3224 3225ac_ext=c 3226ac_cpp='$CPP $CPPFLAGS' 3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_compiler_gnu=$ac_cv_c_compiler_gnu 3230 3231{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3232echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3233if test "${lt_cv_path_SED+set}" = set; then 3234 echo $ECHO_N "(cached) $ECHO_C" >&6 3235else 3236 # Loop through the user's path and test for sed and gsed. 3237# Then use that list of sed's as ones to test for truncation. 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for lt_ac_prog in sed gsed; do 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3247 fi 3248 done 3249 done 3250done 3251IFS=$as_save_IFS 3252lt_ac_max=0 3253lt_ac_count=0 3254# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3255# along with /bin/sed that truncates output. 3256for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3257 test ! -f $lt_ac_sed && continue 3258 cat /dev/null > conftest.in 3259 lt_ac_count=0 3260 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3261 # Check for GNU sed and select it if it is found. 3262 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3263 lt_cv_path_SED=$lt_ac_sed 3264 break 3265 fi 3266 while true; do 3267 cat conftest.in conftest.in >conftest.tmp 3268 mv conftest.tmp conftest.in 3269 cp conftest.in conftest.nl 3270 echo >>conftest.nl 3271 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3272 cmp -s conftest.out conftest.nl || break 3273 # 10000 chars as input seems more than enough 3274 test $lt_ac_count -gt 10 && break 3275 lt_ac_count=`expr $lt_ac_count + 1` 3276 if test $lt_ac_count -gt $lt_ac_max; then 3277 lt_ac_max=$lt_ac_count 3278 lt_cv_path_SED=$lt_ac_sed 3279 fi 3280 done 3281done 3282 3283fi 3284 3285SED=$lt_cv_path_SED 3286 3287{ echo "$as_me:$LINENO: result: $SED" >&5 3288echo "${ECHO_T}$SED" >&6; } 3289 3290{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3291echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3292if test "${ac_cv_path_GREP+set}" = set; then 3293 echo $ECHO_N "(cached) $ECHO_C" >&6 3294else 3295 # Extract the first word of "grep ggrep" to use in msg output 3296if test -z "$GREP"; then 3297set dummy grep ggrep; ac_prog_name=$2 3298if test "${ac_cv_path_GREP+set}" = set; then 3299 echo $ECHO_N "(cached) $ECHO_C" >&6 3300else 3301 ac_path_GREP_found=false 3302# Loop through the user's path and test for each of PROGNAME-LIST 3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_prog in grep ggrep; do 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3311 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3312 # Check for GNU ac_path_GREP and select it if it is found. 3313 # Check for GNU $ac_path_GREP 3314case `"$ac_path_GREP" --version 2>&1` in 3315*GNU*) 3316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3317*) 3318 ac_count=0 3319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3320 while : 3321 do 3322 cat "conftest.in" "conftest.in" >"conftest.tmp" 3323 mv "conftest.tmp" "conftest.in" 3324 cp "conftest.in" "conftest.nl" 3325 echo 'GREP' >> "conftest.nl" 3326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3328 ac_count=`expr $ac_count + 1` 3329 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3330 # Best one so far, save it but keep looking for a better one 3331 ac_cv_path_GREP="$ac_path_GREP" 3332 ac_path_GREP_max=$ac_count 3333 fi 3334 # 10*(2^10) chars as input seems more than enough 3335 test $ac_count -gt 10 && break 3336 done 3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3338esac 3339 3340 3341 $ac_path_GREP_found && break 3 3342 done 3343done 3344 3345done 3346IFS=$as_save_IFS 3347 3348 3349fi 3350 3351GREP="$ac_cv_path_GREP" 3352if test -z "$GREP"; then 3353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3354echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3355 { (exit 1); exit 1; }; } 3356fi 3357 3358else 3359 ac_cv_path_GREP=$GREP 3360fi 3361 3362 3363fi 3364{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3365echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3366 GREP="$ac_cv_path_GREP" 3367 3368 3369{ echo "$as_me:$LINENO: checking for egrep" >&5 3370echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3371if test "${ac_cv_path_EGREP+set}" = set; then 3372 echo $ECHO_N "(cached) $ECHO_C" >&6 3373else 3374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3375 then ac_cv_path_EGREP="$GREP -E" 3376 else 3377 # Extract the first word of "egrep" to use in msg output 3378if test -z "$EGREP"; then 3379set dummy egrep; ac_prog_name=$2 3380if test "${ac_cv_path_EGREP+set}" = set; then 3381 echo $ECHO_N "(cached) $ECHO_C" >&6 3382else 3383 ac_path_EGREP_found=false 3384# Loop through the user's path and test for each of PROGNAME-LIST 3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3387do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_prog in egrep; do 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3394 # Check for GNU ac_path_EGREP and select it if it is found. 3395 # Check for GNU $ac_path_EGREP 3396case `"$ac_path_EGREP" --version 2>&1` in 3397*GNU*) 3398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3399*) 3400 ac_count=0 3401 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3402 while : 3403 do 3404 cat "conftest.in" "conftest.in" >"conftest.tmp" 3405 mv "conftest.tmp" "conftest.in" 3406 cp "conftest.in" "conftest.nl" 3407 echo 'EGREP' >> "conftest.nl" 3408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3410 ac_count=`expr $ac_count + 1` 3411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3412 # Best one so far, save it but keep looking for a better one 3413 ac_cv_path_EGREP="$ac_path_EGREP" 3414 ac_path_EGREP_max=$ac_count 3415 fi 3416 # 10*(2^10) chars as input seems more than enough 3417 test $ac_count -gt 10 && break 3418 done 3419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3420esac 3421 3422 3423 $ac_path_EGREP_found && break 3 3424 done 3425done 3426 3427done 3428IFS=$as_save_IFS 3429 3430 3431fi 3432 3433EGREP="$ac_cv_path_EGREP" 3434if test -z "$EGREP"; then 3435 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3436echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3437 { (exit 1); exit 1; }; } 3438fi 3439 3440else 3441 ac_cv_path_EGREP=$EGREP 3442fi 3443 3444 3445 fi 3446fi 3447{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3448echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3449 EGREP="$ac_cv_path_EGREP" 3450 3451 3452 3453# Check whether --with-gnu-ld was given. 3454if test "${with_gnu_ld+set}" = set; then 3455 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3456else 3457 with_gnu_ld=no 3458fi 3459 3460ac_prog=ld 3461if test "$GCC" = yes; then 3462 # Check if gcc -print-prog-name=ld gives a path. 3463 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3464echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3465 case $host in 3466 *-*-mingw*) 3467 # gcc leaves a trailing carriage return which upsets mingw 3468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3469 *) 3470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3471 esac 3472 case $ac_prog in 3473 # Accept absolute paths. 3474 [\\/]* | ?:[\\/]*) 3475 re_direlt='/[^/][^/]*/\.\./' 3476 # Canonicalize the pathname of ld 3477 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3479 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3480 done 3481 test -z "$LD" && LD="$ac_prog" 3482 ;; 3483 "") 3484 # If it fails, then pretend we aren't using GCC. 3485 ac_prog=ld 3486 ;; 3487 *) 3488 # If it is relative, then search for the first ld in PATH. 3489 with_gnu_ld=unknown 3490 ;; 3491 esac 3492elif test "$with_gnu_ld" = yes; then 3493 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3494echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3495else 3496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3497echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3498fi 3499if test "${lt_cv_path_LD+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501else 3502 if test -z "$LD"; then 3503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3504 for ac_dir in $PATH; do 3505 IFS="$lt_save_ifs" 3506 test -z "$ac_dir" && ac_dir=. 3507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3508 lt_cv_path_LD="$ac_dir/$ac_prog" 3509 # Check to see if the program is GNU ld. I'd rather use --version, 3510 # but apparently some variants of GNU ld only accept -v. 3511 # Break only if it was the GNU/non-GNU ld that we prefer. 3512 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3513 *GNU* | *'with BFD'*) 3514 test "$with_gnu_ld" != no && break 3515 ;; 3516 *) 3517 test "$with_gnu_ld" != yes && break 3518 ;; 3519 esac 3520 fi 3521 done 3522 IFS="$lt_save_ifs" 3523else 3524 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3525fi 3526fi 3527 3528LD="$lt_cv_path_LD" 3529if test -n "$LD"; then 3530 { echo "$as_me:$LINENO: result: $LD" >&5 3531echo "${ECHO_T}$LD" >&6; } 3532else 3533 { echo "$as_me:$LINENO: result: no" >&5 3534echo "${ECHO_T}no" >&6; } 3535fi 3536test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3537echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3538 { (exit 1); exit 1; }; } 3539{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3540echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3541if test "${lt_cv_prog_gnu_ld+set}" = set; then 3542 echo $ECHO_N "(cached) $ECHO_C" >&6 3543else 3544 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3545case `$LD -v 2>&1 </dev/null` in 3546*GNU* | *'with BFD'*) 3547 lt_cv_prog_gnu_ld=yes 3548 ;; 3549*) 3550 lt_cv_prog_gnu_ld=no 3551 ;; 3552esac 3553fi 3554{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3555echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3556with_gnu_ld=$lt_cv_prog_gnu_ld 3557 3558 3559{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3560echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3561if test "${lt_cv_ld_reload_flag+set}" = set; then 3562 echo $ECHO_N "(cached) $ECHO_C" >&6 3563else 3564 lt_cv_ld_reload_flag='-r' 3565fi 3566{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3567echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3568reload_flag=$lt_cv_ld_reload_flag 3569case $reload_flag in 3570"" | " "*) ;; 3571*) reload_flag=" $reload_flag" ;; 3572esac 3573reload_cmds='$LD$reload_flag -o $output$reload_objs' 3574case $host_os in 3575 darwin*) 3576 if test "$GCC" = yes; then 3577 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3578 else 3579 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3580 fi 3581 ;; 3582esac 3583 3584{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3585echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 3586if test "${lt_cv_path_NM+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 if test -n "$NM"; then 3590 # Let the user override the test. 3591 lt_cv_path_NM="$NM" 3592else 3593 lt_nm_to_check="${ac_tool_prefix}nm" 3594 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3595 lt_nm_to_check="$lt_nm_to_check nm" 3596 fi 3597 for lt_tmp_nm in $lt_nm_to_check; do 3598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3599 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3600 IFS="$lt_save_ifs" 3601 test -z "$ac_dir" && ac_dir=. 3602 tmp_nm="$ac_dir/$lt_tmp_nm" 3603 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3604 # Check to see if the nm accepts a BSD-compat flag. 3605 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3606 # nm: unknown option "B" ignored 3607 # Tru64's nm complains that /dev/null is an invalid object file 3608 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3609 */dev/null* | *'Invalid file or object type'*) 3610 lt_cv_path_NM="$tmp_nm -B" 3611 break 3612 ;; 3613 *) 3614 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3615 */dev/null*) 3616 lt_cv_path_NM="$tmp_nm -p" 3617 break 3618 ;; 3619 *) 3620 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3621 continue # so that we can try to find one that supports BSD flags 3622 ;; 3623 esac 3624 ;; 3625 esac 3626 fi 3627 done 3628 IFS="$lt_save_ifs" 3629 done 3630 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3631fi 3632fi 3633{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3634echo "${ECHO_T}$lt_cv_path_NM" >&6; } 3635NM="$lt_cv_path_NM" 3636 3637{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3638echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3639LN_S=$as_ln_s 3640if test "$LN_S" = "ln -s"; then 3641 { echo "$as_me:$LINENO: result: yes" >&5 3642echo "${ECHO_T}yes" >&6; } 3643else 3644 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3645echo "${ECHO_T}no, using $LN_S" >&6; } 3646fi 3647 3648{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 3649echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 3650if test "${lt_cv_deplibs_check_method+set}" = set; then 3651 echo $ECHO_N "(cached) $ECHO_C" >&6 3652else 3653 lt_cv_file_magic_cmd='$MAGIC_CMD' 3654lt_cv_file_magic_test_file= 3655lt_cv_deplibs_check_method='unknown' 3656# Need to set the preceding variable on all platforms that support 3657# interlibrary dependencies. 3658# 'none' -- dependencies not supported. 3659# `unknown' -- same as none, but documents that we really don't know. 3660# 'pass_all' -- all dependencies passed with no checks. 3661# 'test_compile' -- check by making test program. 3662# 'file_magic [[regex]]' -- check by looking for files in library path 3663# which responds to the $file_magic_cmd with a given extended regex. 3664# If you have `file' or equivalent on your system and you're not sure 3665# whether `pass_all' will *always* work, you probably want this one. 3666 3667case $host_os in 3668aix[4-9]*) 3669 lt_cv_deplibs_check_method=pass_all 3670 ;; 3671 3672beos*) 3673 lt_cv_deplibs_check_method=pass_all 3674 ;; 3675 3676bsdi[45]*) 3677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3678 lt_cv_file_magic_cmd='/usr/bin/file -L' 3679 lt_cv_file_magic_test_file=/shlib/libc.so 3680 ;; 3681 3682cygwin*) 3683 # func_win32_libid is a shell function defined in ltmain.sh 3684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3685 lt_cv_file_magic_cmd='func_win32_libid' 3686 ;; 3687 3688mingw* | pw32*) 3689 # Base MSYS/MinGW do not provide the 'file' command needed by 3690 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3691 # unless we find 'file', for example because we are cross-compiling. 3692 if ( file / ) >/dev/null 2>&1; then 3693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3694 lt_cv_file_magic_cmd='func_win32_libid' 3695 else 3696 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3697 lt_cv_file_magic_cmd='$OBJDUMP -f' 3698 fi 3699 ;; 3700 3701darwin* | rhapsody*) 3702 lt_cv_deplibs_check_method=pass_all 3703 ;; 3704 3705freebsd* | dragonfly*) 3706 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3707 case $host_cpu in 3708 i*86 ) 3709 # Not sure whether the presence of OpenBSD here was a mistake. 3710 # Let's accept both of them until this is cleared up. 3711 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3712 lt_cv_file_magic_cmd=/usr/bin/file 3713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3714 ;; 3715 esac 3716 else 3717 lt_cv_deplibs_check_method=pass_all 3718 fi 3719 ;; 3720 3721gnu*) 3722 lt_cv_deplibs_check_method=pass_all 3723 ;; 3724 3725hpux10.20* | hpux11*) 3726 lt_cv_file_magic_cmd=/usr/bin/file 3727 case $host_cpu in 3728 ia64*) 3729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3730 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3731 ;; 3732 hppa*64*) 3733 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]' 3734 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3735 ;; 3736 *) 3737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3738 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3739 ;; 3740 esac 3741 ;; 3742 3743interix[3-9]*) 3744 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3746 ;; 3747 3748irix5* | irix6* | nonstopux*) 3749 case $LD in 3750 *-32|*"-32 ") libmagic=32-bit;; 3751 *-n32|*"-n32 ") libmagic=N32;; 3752 *-64|*"-64 ") libmagic=64-bit;; 3753 *) libmagic=never-match;; 3754 esac 3755 lt_cv_deplibs_check_method=pass_all 3756 ;; 3757 3758# This must be Linux ELF. 3759linux* | k*bsd*-gnu) 3760 lt_cv_deplibs_check_method=pass_all 3761 ;; 3762 3763netbsd*) 3764 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3766 else 3767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3768 fi 3769 ;; 3770 3771newos6*) 3772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3773 lt_cv_file_magic_cmd=/usr/bin/file 3774 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3775 ;; 3776 3777nto-qnx*) 3778 lt_cv_deplibs_check_method=unknown 3779 ;; 3780 3781openbsd*) 3782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3784 else 3785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3786 fi 3787 ;; 3788 3789osf3* | osf4* | osf5*) 3790 lt_cv_deplibs_check_method=pass_all 3791 ;; 3792 3793rdos*) 3794 lt_cv_deplibs_check_method=pass_all 3795 ;; 3796 3797solaris*) 3798 lt_cv_deplibs_check_method=pass_all 3799 ;; 3800 3801sysv4 | sysv4.3*) 3802 case $host_vendor in 3803 motorola) 3804 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]' 3805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3806 ;; 3807 ncr) 3808 lt_cv_deplibs_check_method=pass_all 3809 ;; 3810 sequent) 3811 lt_cv_file_magic_cmd='/bin/file' 3812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3813 ;; 3814 sni) 3815 lt_cv_file_magic_cmd='/bin/file' 3816 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3817 lt_cv_file_magic_test_file=/lib/libc.so 3818 ;; 3819 siemens) 3820 lt_cv_deplibs_check_method=pass_all 3821 ;; 3822 pc) 3823 lt_cv_deplibs_check_method=pass_all 3824 ;; 3825 esac 3826 ;; 3827 3828sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3829 lt_cv_deplibs_check_method=pass_all 3830 ;; 3831esac 3832 3833fi 3834{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3835echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 3836file_magic_cmd=$lt_cv_file_magic_cmd 3837deplibs_check_method=$lt_cv_deplibs_check_method 3838test -z "$deplibs_check_method" && deplibs_check_method=unknown 3839 3840 3841 3842 3843# If no C compiler was specified, use CC. 3844LTCC=${LTCC-"$CC"} 3845 3846# If no C compiler flags were specified, use CFLAGS. 3847LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3848 3849# Allow CC to be a program name with arguments. 3850compiler=$CC 3851 3852 3853# Check whether --enable-libtool-lock was given. 3854if test "${enable_libtool_lock+set}" = set; then 3855 enableval=$enable_libtool_lock; 3856fi 3857 3858test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3859 3860# Some flags need to be propagated to the compiler or linker for good 3861# libtool support. 3862case $host in 3863ia64-*-hpux*) 3864 # Find out which ABI we are using. 3865 echo 'int i;' > conftest.$ac_ext 3866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3867 (eval $ac_compile) 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); }; then 3871 case `/usr/bin/file conftest.$ac_objext` in 3872 *ELF-32*) 3873 HPUX_IA64_MODE="32" 3874 ;; 3875 *ELF-64*) 3876 HPUX_IA64_MODE="64" 3877 ;; 3878 esac 3879 fi 3880 rm -rf conftest* 3881 ;; 3882*-*-irix6*) 3883 # Find out which ABI we are using. 3884 echo '#line 3884 "configure"' > conftest.$ac_ext 3885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3886 (eval $ac_compile) 2>&5 3887 ac_status=$? 3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3889 (exit $ac_status); }; then 3890 if test "$lt_cv_prog_gnu_ld" = yes; then 3891 case `/usr/bin/file conftest.$ac_objext` in 3892 *32-bit*) 3893 LD="${LD-ld} -melf32bsmip" 3894 ;; 3895 *N32*) 3896 LD="${LD-ld} -melf32bmipn32" 3897 ;; 3898 *64-bit*) 3899 LD="${LD-ld} -melf64bmip" 3900 ;; 3901 esac 3902 else 3903 case `/usr/bin/file conftest.$ac_objext` in 3904 *32-bit*) 3905 LD="${LD-ld} -32" 3906 ;; 3907 *N32*) 3908 LD="${LD-ld} -n32" 3909 ;; 3910 *64-bit*) 3911 LD="${LD-ld} -64" 3912 ;; 3913 esac 3914 fi 3915 fi 3916 rm -rf conftest* 3917 ;; 3918 3919x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3920s390*-*linux*|sparc*-*linux*) 3921 # Find out which ABI we are using. 3922 echo 'int i;' > conftest.$ac_ext 3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3924 (eval $ac_compile) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; then 3928 case `/usr/bin/file conftest.o` in 3929 *32-bit*) 3930 case $host in 3931 x86_64-*kfreebsd*-gnu) 3932 LD="${LD-ld} -m elf_i386_fbsd" 3933 ;; 3934 x86_64-*linux*) 3935 LD="${LD-ld} -m elf_i386" 3936 ;; 3937 ppc64-*linux*|powerpc64-*linux*) 3938 LD="${LD-ld} -m elf32ppclinux" 3939 ;; 3940 s390x-*linux*) 3941 LD="${LD-ld} -m elf_s390" 3942 ;; 3943 sparc64-*linux*) 3944 LD="${LD-ld} -m elf32_sparc" 3945 ;; 3946 esac 3947 ;; 3948 *64-bit*) 3949 case $host in 3950 x86_64-*kfreebsd*-gnu) 3951 LD="${LD-ld} -m elf_x86_64_fbsd" 3952 ;; 3953 x86_64-*linux*) 3954 LD="${LD-ld} -m elf_x86_64" 3955 ;; 3956 ppc*-*linux*|powerpc*-*linux*) 3957 LD="${LD-ld} -m elf64ppc" 3958 ;; 3959 s390*-*linux*) 3960 LD="${LD-ld} -m elf64_s390" 3961 ;; 3962 sparc*-*linux*) 3963 LD="${LD-ld} -m elf64_sparc" 3964 ;; 3965 esac 3966 ;; 3967 esac 3968 fi 3969 rm -rf conftest* 3970 ;; 3971 3972*-*-sco3.2v5*) 3973 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3974 SAVE_CFLAGS="$CFLAGS" 3975 CFLAGS="$CFLAGS -belf" 3976 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3977echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 3978if test "${lt_cv_cc_needs_belf+set}" = set; then 3979 echo $ECHO_N "(cached) $ECHO_C" >&6 3980else 3981 ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987 cat >conftest.$ac_ext <<_ACEOF 3988/* confdefs.h. */ 3989_ACEOF 3990cat confdefs.h >>conftest.$ac_ext 3991cat >>conftest.$ac_ext <<_ACEOF 3992/* end confdefs.h. */ 3993 3994int 3995main () 3996{ 3997 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002rm -f conftest.$ac_objext conftest$ac_exeext 4003if { (ac_try="$ac_link" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4009 (eval "$ac_link") 2>conftest.er1 4010 ac_status=$? 4011 grep -v '^ *+' conftest.er1 >conftest.err 4012 rm -f conftest.er1 4013 cat conftest.err >&5 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } && { 4016 test -z "$ac_c_werror_flag" || 4017 test ! -s conftest.err 4018 } && test -s conftest$ac_exeext && 4019 $as_test_x conftest$ac_exeext; then 4020 lt_cv_cc_needs_belf=yes 4021else 4022 echo "$as_me: failed program was:" >&5 4023sed 's/^/| /' conftest.$ac_ext >&5 4024 4025 lt_cv_cc_needs_belf=no 4026fi 4027 4028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4029 conftest$ac_exeext conftest.$ac_ext 4030 ac_ext=c 4031ac_cpp='$CPP $CPPFLAGS' 4032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4034ac_compiler_gnu=$ac_cv_c_compiler_gnu 4035 4036fi 4037{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4038echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4041 CFLAGS="$SAVE_CFLAGS" 4042 fi 4043 ;; 4044sparc*-*solaris*) 4045 # Find out which ABI we are using. 4046 echo 'int i;' > conftest.$ac_ext 4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4048 (eval $ac_compile) 2>&5 4049 ac_status=$? 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); }; then 4052 case `/usr/bin/file conftest.o` in 4053 *64-bit*) 4054 case $lt_cv_prog_gnu_ld in 4055 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4056 *) 4057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4058 LD="${LD-ld} -64" 4059 fi 4060 ;; 4061 esac 4062 ;; 4063 esac 4064 fi 4065 rm -rf conftest* 4066 ;; 4067 4068 4069esac 4070 4071need_locks="$enable_libtool_lock" 4072 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4080echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4081# On Suns, sometimes $CPP names a directory. 4082if test -n "$CPP" && test -d "$CPP"; then 4083 CPP= 4084fi 4085if test -z "$CPP"; then 4086 if test "${ac_cv_prog_CPP+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 # Double quotes because CPP needs to be expanded 4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4091 do 4092 ac_preproc_ok=false 4093for ac_c_preproc_warn_flag in '' yes 4094do 4095 # Use a header file that comes with gcc, so configuring glibc 4096 # with a fresh cross-compiler works. 4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4098 # <limits.h> exists even on freestanding compilers. 4099 # On the NeXT, cc -E runs the code through the compiler's parser, 4100 # not just through cpp. "Syntax error" is here to catch this case. 4101 cat >conftest.$ac_ext <<_ACEOF 4102/* confdefs.h. */ 4103_ACEOF 4104cat confdefs.h >>conftest.$ac_ext 4105cat >>conftest.$ac_ext <<_ACEOF 4106/* end confdefs.h. */ 4107#ifdef __STDC__ 4108# include <limits.h> 4109#else 4110# include <assert.h> 4111#endif 4112 Syntax error 4113_ACEOF 4114if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4128 test ! -s conftest.err 4129 }; then 4130 : 4131else 4132 echo "$as_me: failed program was:" >&5 4133sed 's/^/| /' conftest.$ac_ext >&5 4134 4135 # Broken: fails on valid input. 4136continue 4137fi 4138 4139rm -f conftest.err conftest.$ac_ext 4140 4141 # OK, works on sane cases. Now check whether nonexistent headers 4142 # can be detected and how. 4143 cat >conftest.$ac_ext <<_ACEOF 4144/* confdefs.h. */ 4145_ACEOF 4146cat confdefs.h >>conftest.$ac_ext 4147cat >>conftest.$ac_ext <<_ACEOF 4148/* end confdefs.h. */ 4149#include <ac_nonexistent.h> 4150_ACEOF 4151if { (ac_try="$ac_cpp conftest.$ac_ext" 4152case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155esac 4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } >/dev/null && { 4164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4165 test ! -s conftest.err 4166 }; then 4167 # Broken: success on invalid input. 4168continue 4169else 4170 echo "$as_me: failed program was:" >&5 4171sed 's/^/| /' conftest.$ac_ext >&5 4172 4173 # Passes both tests. 4174ac_preproc_ok=: 4175break 4176fi 4177 4178rm -f conftest.err conftest.$ac_ext 4179 4180done 4181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4182rm -f conftest.err conftest.$ac_ext 4183if $ac_preproc_ok; then 4184 break 4185fi 4186 4187 done 4188 ac_cv_prog_CPP=$CPP 4189 4190fi 4191 CPP=$ac_cv_prog_CPP 4192else 4193 ac_cv_prog_CPP=$CPP 4194fi 4195{ echo "$as_me:$LINENO: result: $CPP" >&5 4196echo "${ECHO_T}$CPP" >&6; } 4197ac_preproc_ok=false 4198for ac_c_preproc_warn_flag in '' yes 4199do 4200 # Use a header file that comes with gcc, so configuring glibc 4201 # with a fresh cross-compiler works. 4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4203 # <limits.h> exists even on freestanding compilers. 4204 # On the NeXT, cc -E runs the code through the compiler's parser, 4205 # not just through cpp. "Syntax error" is here to catch this case. 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#ifdef __STDC__ 4213# include <limits.h> 4214#else 4215# include <assert.h> 4216#endif 4217 Syntax error 4218_ACEOF 4219if { (ac_try="$ac_cpp conftest.$ac_ext" 4220case "(($ac_try" in 4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4222 *) ac_try_echo=$ac_try;; 4223esac 4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4226 ac_status=$? 4227 grep -v '^ *+' conftest.er1 >conftest.err 4228 rm -f conftest.er1 4229 cat conftest.err >&5 4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4231 (exit $ac_status); } >/dev/null && { 4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4233 test ! -s conftest.err 4234 }; then 4235 : 4236else 4237 echo "$as_me: failed program was:" >&5 4238sed 's/^/| /' conftest.$ac_ext >&5 4239 4240 # Broken: fails on valid input. 4241continue 4242fi 4243 4244rm -f conftest.err conftest.$ac_ext 4245 4246 # OK, works on sane cases. Now check whether nonexistent headers 4247 # can be detected and how. 4248 cat >conftest.$ac_ext <<_ACEOF 4249/* confdefs.h. */ 4250_ACEOF 4251cat confdefs.h >>conftest.$ac_ext 4252cat >>conftest.$ac_ext <<_ACEOF 4253/* end confdefs.h. */ 4254#include <ac_nonexistent.h> 4255_ACEOF 4256if { (ac_try="$ac_cpp conftest.$ac_ext" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } >/dev/null && { 4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4270 test ! -s conftest.err 4271 }; then 4272 # Broken: success on invalid input. 4273continue 4274else 4275 echo "$as_me: failed program was:" >&5 4276sed 's/^/| /' conftest.$ac_ext >&5 4277 4278 # Passes both tests. 4279ac_preproc_ok=: 4280break 4281fi 4282 4283rm -f conftest.err conftest.$ac_ext 4284 4285done 4286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4287rm -f conftest.err conftest.$ac_ext 4288if $ac_preproc_ok; then 4289 : 4290else 4291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4292See \`config.log' for more details." >&5 4293echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4294See \`config.log' for more details." >&2;} 4295 { (exit 1); exit 1; }; } 4296fi 4297 4298ac_ext=c 4299ac_cpp='$CPP $CPPFLAGS' 4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4302ac_compiler_gnu=$ac_cv_c_compiler_gnu 4303 4304 4305{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4306echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4307if test "${ac_cv_header_stdc+set}" = set; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309else 4310 cat >conftest.$ac_ext <<_ACEOF 4311/* confdefs.h. */ 4312_ACEOF 4313cat confdefs.h >>conftest.$ac_ext 4314cat >>conftest.$ac_ext <<_ACEOF 4315/* end confdefs.h. */ 4316#include <stdlib.h> 4317#include <stdarg.h> 4318#include <string.h> 4319#include <float.h> 4320 4321int 4322main () 4323{ 4324 4325 ; 4326 return 0; 4327} 4328_ACEOF 4329rm -f conftest.$ac_objext 4330if { (ac_try="$ac_compile" 4331case "(($ac_try" in 4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4333 *) ac_try_echo=$ac_try;; 4334esac 4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4336 (eval "$ac_compile") 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } && { 4343 test -z "$ac_c_werror_flag" || 4344 test ! -s conftest.err 4345 } && test -s conftest.$ac_objext; then 4346 ac_cv_header_stdc=yes 4347else 4348 echo "$as_me: failed program was:" >&5 4349sed 's/^/| /' conftest.$ac_ext >&5 4350 4351 ac_cv_header_stdc=no 4352fi 4353 4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4355 4356if test $ac_cv_header_stdc = yes; then 4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4358 cat >conftest.$ac_ext <<_ACEOF 4359/* confdefs.h. */ 4360_ACEOF 4361cat confdefs.h >>conftest.$ac_ext 4362cat >>conftest.$ac_ext <<_ACEOF 4363/* end confdefs.h. */ 4364#include <string.h> 4365 4366_ACEOF 4367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4368 $EGREP "memchr" >/dev/null 2>&1; then 4369 : 4370else 4371 ac_cv_header_stdc=no 4372fi 4373rm -f conftest* 4374 4375fi 4376 4377if test $ac_cv_header_stdc = yes; then 4378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4379 cat >conftest.$ac_ext <<_ACEOF 4380/* confdefs.h. */ 4381_ACEOF 4382cat confdefs.h >>conftest.$ac_ext 4383cat >>conftest.$ac_ext <<_ACEOF 4384/* end confdefs.h. */ 4385#include <stdlib.h> 4386 4387_ACEOF 4388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4389 $EGREP "free" >/dev/null 2>&1; then 4390 : 4391else 4392 ac_cv_header_stdc=no 4393fi 4394rm -f conftest* 4395 4396fi 4397 4398if test $ac_cv_header_stdc = yes; then 4399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4400 if test "$cross_compiling" = yes; then 4401 : 4402else 4403 cat >conftest.$ac_ext <<_ACEOF 4404/* confdefs.h. */ 4405_ACEOF 4406cat confdefs.h >>conftest.$ac_ext 4407cat >>conftest.$ac_ext <<_ACEOF 4408/* end confdefs.h. */ 4409#include <ctype.h> 4410#include <stdlib.h> 4411#if ((' ' & 0x0FF) == 0x020) 4412# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4413# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4414#else 4415# define ISLOWER(c) \ 4416 (('a' <= (c) && (c) <= 'i') \ 4417 || ('j' <= (c) && (c) <= 'r') \ 4418 || ('s' <= (c) && (c) <= 'z')) 4419# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4420#endif 4421 4422#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4423int 4424main () 4425{ 4426 int i; 4427 for (i = 0; i < 256; i++) 4428 if (XOR (islower (i), ISLOWER (i)) 4429 || toupper (i) != TOUPPER (i)) 4430 return 2; 4431 return 0; 4432} 4433_ACEOF 4434rm -f conftest$ac_exeext 4435if { (ac_try="$ac_link" 4436case "(($ac_try" in 4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4438 *) ac_try_echo=$ac_try;; 4439esac 4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4441 (eval "$ac_link") 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4445 { (case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448esac 4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4450 (eval "$ac_try") 2>&5 4451 ac_status=$? 4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4453 (exit $ac_status); }; }; then 4454 : 4455else 4456 echo "$as_me: program exited with status $ac_status" >&5 4457echo "$as_me: failed program was:" >&5 4458sed 's/^/| /' conftest.$ac_ext >&5 4459 4460( exit $ac_status ) 4461ac_cv_header_stdc=no 4462fi 4463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4464fi 4465 4466 4467fi 4468fi 4469{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4470echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4471if test $ac_cv_header_stdc = yes; then 4472 4473cat >>confdefs.h <<\_ACEOF 4474#define STDC_HEADERS 1 4475_ACEOF 4476 4477fi 4478 4479# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4490 inttypes.h stdint.h unistd.h 4491do 4492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4493{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4496 echo $ECHO_N "(cached) $ECHO_C" >&6 4497else 4498 cat >conftest.$ac_ext <<_ACEOF 4499/* confdefs.h. */ 4500_ACEOF 4501cat confdefs.h >>conftest.$ac_ext 4502cat >>conftest.$ac_ext <<_ACEOF 4503/* end confdefs.h. */ 4504$ac_includes_default 4505 4506#include <$ac_header> 4507_ACEOF 4508rm -f conftest.$ac_objext 4509if { (ac_try="$ac_compile" 4510case "(($ac_try" in 4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4512 *) ac_try_echo=$ac_try;; 4513esac 4514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4515 (eval "$ac_compile") 2>conftest.er1 4516 ac_status=$? 4517 grep -v '^ *+' conftest.er1 >conftest.err 4518 rm -f conftest.er1 4519 cat conftest.err >&5 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); } && { 4522 test -z "$ac_c_werror_flag" || 4523 test ! -s conftest.err 4524 } && test -s conftest.$ac_objext; then 4525 eval "$as_ac_Header=yes" 4526else 4527 echo "$as_me: failed program was:" >&5 4528sed 's/^/| /' conftest.$ac_ext >&5 4529 4530 eval "$as_ac_Header=no" 4531fi 4532 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534fi 4535ac_res=`eval echo '${'$as_ac_Header'}'` 4536 { echo "$as_me:$LINENO: result: $ac_res" >&5 4537echo "${ECHO_T}$ac_res" >&6; } 4538if test `eval echo '${'$as_ac_Header'}'` = yes; then 4539 cat >>confdefs.h <<_ACEOF 4540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4541_ACEOF 4542 4543fi 4544 4545done 4546 4547 4548 4549for ac_header in dlfcn.h 4550do 4551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4553 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557fi 4558ac_res=`eval echo '${'$as_ac_Header'}'` 4559 { echo "$as_me:$LINENO: result: $ac_res" >&5 4560echo "${ECHO_T}$ac_res" >&6; } 4561else 4562 # Is the header compilable? 4563{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4565cat >conftest.$ac_ext <<_ACEOF 4566/* confdefs.h. */ 4567_ACEOF 4568cat confdefs.h >>conftest.$ac_ext 4569cat >>conftest.$ac_ext <<_ACEOF 4570/* end confdefs.h. */ 4571$ac_includes_default 4572#include <$ac_header> 4573_ACEOF 4574rm -f conftest.$ac_objext 4575if { (ac_try="$ac_compile" 4576case "(($ac_try" in 4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4578 *) ac_try_echo=$ac_try;; 4579esac 4580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4581 (eval "$ac_compile") 2>conftest.er1 4582 ac_status=$? 4583 grep -v '^ *+' conftest.er1 >conftest.err 4584 rm -f conftest.er1 4585 cat conftest.err >&5 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); } && { 4588 test -z "$ac_c_werror_flag" || 4589 test ! -s conftest.err 4590 } && test -s conftest.$ac_objext; then 4591 ac_header_compiler=yes 4592else 4593 echo "$as_me: failed program was:" >&5 4594sed 's/^/| /' conftest.$ac_ext >&5 4595 4596 ac_header_compiler=no 4597fi 4598 4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4600{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4601echo "${ECHO_T}$ac_header_compiler" >&6; } 4602 4603# Is the header present? 4604{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4606cat >conftest.$ac_ext <<_ACEOF 4607/* confdefs.h. */ 4608_ACEOF 4609cat confdefs.h >>conftest.$ac_ext 4610cat >>conftest.$ac_ext <<_ACEOF 4611/* end confdefs.h. */ 4612#include <$ac_header> 4613_ACEOF 4614if { (ac_try="$ac_cpp conftest.$ac_ext" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null && { 4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4628 test ! -s conftest.err 4629 }; then 4630 ac_header_preproc=yes 4631else 4632 echo "$as_me: failed program was:" >&5 4633sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 ac_header_preproc=no 4636fi 4637 4638rm -f conftest.err conftest.$ac_ext 4639{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4640echo "${ECHO_T}$ac_header_preproc" >&6; } 4641 4642# So? What about this header? 4643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4644 yes:no: ) 4645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4649 ac_header_preproc=yes 4650 ;; 4651 no:yes:* ) 4652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4664 4665 ;; 4666esac 4667{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4670 echo $ECHO_N "(cached) $ECHO_C" >&6 4671else 4672 eval "$as_ac_Header=\$ac_header_preproc" 4673fi 4674ac_res=`eval echo '${'$as_ac_Header'}'` 4675 { echo "$as_me:$LINENO: result: $ac_res" >&5 4676echo "${ECHO_T}$ac_res" >&6; } 4677 4678fi 4679if test `eval echo '${'$as_ac_Header'}'` = yes; then 4680 cat >>confdefs.h <<_ACEOF 4681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4682_ACEOF 4683 4684fi 4685 4686done 4687 4688ac_ext=cpp 4689ac_cpp='$CXXCPP $CPPFLAGS' 4690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4693if test -z "$CXX"; then 4694 if test -n "$CCC"; then 4695 CXX=$CCC 4696 else 4697 if test -n "$ac_tool_prefix"; then 4698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4699 do 4700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4701set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4704if test "${ac_cv_prog_CXX+set}" = set; then 4705 echo $ECHO_N "(cached) $ECHO_C" >&6 4706else 4707 if test -n "$CXX"; then 4708 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4709else 4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711for as_dir in $PATH 4712do 4713 IFS=$as_save_IFS 4714 test -z "$as_dir" && as_dir=. 4715 for ac_exec_ext in '' $ac_executable_extensions; do 4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4719 break 2 4720 fi 4721done 4722done 4723IFS=$as_save_IFS 4724 4725fi 4726fi 4727CXX=$ac_cv_prog_CXX 4728if test -n "$CXX"; then 4729 { echo "$as_me:$LINENO: result: $CXX" >&5 4730echo "${ECHO_T}$CXX" >&6; } 4731else 4732 { echo "$as_me:$LINENO: result: no" >&5 4733echo "${ECHO_T}no" >&6; } 4734fi 4735 4736 4737 test -n "$CXX" && break 4738 done 4739fi 4740if test -z "$CXX"; then 4741 ac_ct_CXX=$CXX 4742 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4743do 4744 # Extract the first word of "$ac_prog", so it can be a program name with args. 4745set dummy $ac_prog; ac_word=$2 4746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4748if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750else 4751 if test -n "$ac_ct_CXX"; then 4752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4753else 4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755for as_dir in $PATH 4756do 4757 IFS=$as_save_IFS 4758 test -z "$as_dir" && as_dir=. 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4761 ac_cv_prog_ac_ct_CXX="$ac_prog" 4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765done 4766done 4767IFS=$as_save_IFS 4768 4769fi 4770fi 4771ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4772if test -n "$ac_ct_CXX"; then 4773 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4774echo "${ECHO_T}$ac_ct_CXX" >&6; } 4775else 4776 { echo "$as_me:$LINENO: result: no" >&5 4777echo "${ECHO_T}no" >&6; } 4778fi 4779 4780 4781 test -n "$ac_ct_CXX" && break 4782done 4783 4784 if test "x$ac_ct_CXX" = x; then 4785 CXX="g++" 4786 else 4787 case $cross_compiling:$ac_tool_warned in 4788yes:) 4789{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4790whose name does not start with the host triplet. If you think this 4791configuration is useful to you, please write to autoconf@gnu.org." >&5 4792echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4793whose name does not start with the host triplet. If you think this 4794configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4795ac_tool_warned=yes ;; 4796esac 4797 CXX=$ac_ct_CXX 4798 fi 4799fi 4800 4801 fi 4802fi 4803# Provide some information about the compiler. 4804echo "$as_me:$LINENO: checking for C++ compiler version" >&5 4805ac_compiler=`set X $ac_compile; echo $2` 4806{ (ac_try="$ac_compiler --version >&5" 4807case "(($ac_try" in 4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4809 *) ac_try_echo=$ac_try;; 4810esac 4811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4812 (eval "$ac_compiler --version >&5") 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); } 4816{ (ac_try="$ac_compiler -v >&5" 4817case "(($ac_try" in 4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4819 *) ac_try_echo=$ac_try;; 4820esac 4821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4822 (eval "$ac_compiler -v >&5") 2>&5 4823 ac_status=$? 4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 (exit $ac_status); } 4826{ (ac_try="$ac_compiler -V >&5" 4827case "(($ac_try" in 4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4829 *) ac_try_echo=$ac_try;; 4830esac 4831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4832 (eval "$ac_compiler -V >&5") 2>&5 4833 ac_status=$? 4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 (exit $ac_status); } 4836 4837{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4838echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 4839if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841else 4842 cat >conftest.$ac_ext <<_ACEOF 4843/* confdefs.h. */ 4844_ACEOF 4845cat confdefs.h >>conftest.$ac_ext 4846cat >>conftest.$ac_ext <<_ACEOF 4847/* end confdefs.h. */ 4848 4849int 4850main () 4851{ 4852#ifndef __GNUC__ 4853 choke me 4854#endif 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860rm -f conftest.$ac_objext 4861if { (ac_try="$ac_compile" 4862case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865esac 4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_compile") 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && { 4874 test -z "$ac_cxx_werror_flag" || 4875 test ! -s conftest.err 4876 } && test -s conftest.$ac_objext; then 4877 ac_compiler_gnu=yes 4878else 4879 echo "$as_me: failed program was:" >&5 4880sed 's/^/| /' conftest.$ac_ext >&5 4881 4882 ac_compiler_gnu=no 4883fi 4884 4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4887 4888fi 4889{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4890echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 4891GXX=`test $ac_compiler_gnu = yes && echo yes` 4892ac_test_CXXFLAGS=${CXXFLAGS+set} 4893ac_save_CXXFLAGS=$CXXFLAGS 4894{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4895echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 4896if test "${ac_cv_prog_cxx_g+set}" = set; then 4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4898else 4899 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4900 ac_cxx_werror_flag=yes 4901 ac_cv_prog_cxx_g=no 4902 CXXFLAGS="-g" 4903 cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909 4910int 4911main () 4912{ 4913 4914 ; 4915 return 0; 4916} 4917_ACEOF 4918rm -f conftest.$ac_objext 4919if { (ac_try="$ac_compile" 4920case "(($ac_try" in 4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4922 *) ac_try_echo=$ac_try;; 4923esac 4924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4925 (eval "$ac_compile") 2>conftest.er1 4926 ac_status=$? 4927 grep -v '^ *+' conftest.er1 >conftest.err 4928 rm -f conftest.er1 4929 cat conftest.err >&5 4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); } && { 4932 test -z "$ac_cxx_werror_flag" || 4933 test ! -s conftest.err 4934 } && test -s conftest.$ac_objext; then 4935 ac_cv_prog_cxx_g=yes 4936else 4937 echo "$as_me: failed program was:" >&5 4938sed 's/^/| /' conftest.$ac_ext >&5 4939 4940 CXXFLAGS="" 4941 cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947 4948int 4949main () 4950{ 4951 4952 ; 4953 return 0; 4954} 4955_ACEOF 4956rm -f conftest.$ac_objext 4957if { (ac_try="$ac_compile" 4958case "(($ac_try" in 4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4960 *) ac_try_echo=$ac_try;; 4961esac 4962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4963 (eval "$ac_compile") 2>conftest.er1 4964 ac_status=$? 4965 grep -v '^ *+' conftest.er1 >conftest.err 4966 rm -f conftest.er1 4967 cat conftest.err >&5 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } && { 4970 test -z "$ac_cxx_werror_flag" || 4971 test ! -s conftest.err 4972 } && test -s conftest.$ac_objext; then 4973 : 4974else 4975 echo "$as_me: failed program was:" >&5 4976sed 's/^/| /' conftest.$ac_ext >&5 4977 4978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4979 CXXFLAGS="-g" 4980 cat >conftest.$ac_ext <<_ACEOF 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986 4987int 4988main () 4989{ 4990 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995rm -f conftest.$ac_objext 4996if { (ac_try="$ac_compile" 4997case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000esac 5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5002 (eval "$ac_compile") 2>conftest.er1 5003 ac_status=$? 5004 grep -v '^ *+' conftest.er1 >conftest.err 5005 rm -f conftest.er1 5006 cat conftest.err >&5 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); } && { 5009 test -z "$ac_cxx_werror_flag" || 5010 test ! -s conftest.err 5011 } && test -s conftest.$ac_objext; then 5012 ac_cv_prog_cxx_g=yes 5013else 5014 echo "$as_me: failed program was:" >&5 5015sed 's/^/| /' conftest.$ac_ext >&5 5016 5017 5018fi 5019 5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5021fi 5022 5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024fi 5025 5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5028fi 5029{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5030echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5031if test "$ac_test_CXXFLAGS" = set; then 5032 CXXFLAGS=$ac_save_CXXFLAGS 5033elif test $ac_cv_prog_cxx_g = yes; then 5034 if test "$GXX" = yes; then 5035 CXXFLAGS="-g -O2" 5036 else 5037 CXXFLAGS="-g" 5038 fi 5039else 5040 if test "$GXX" = yes; then 5041 CXXFLAGS="-O2" 5042 else 5043 CXXFLAGS= 5044 fi 5045fi 5046ac_ext=cpp 5047ac_cpp='$CXXCPP $CPPFLAGS' 5048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5051 5052 5053 5054if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5056 (test "X$CXX" != "Xg++"))) ; then 5057 ac_ext=cpp 5058ac_cpp='$CXXCPP $CPPFLAGS' 5059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5062{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5063echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5064if test -z "$CXXCPP"; then 5065 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5066 echo $ECHO_N "(cached) $ECHO_C" >&6 5067else 5068 # Double quotes because CXXCPP needs to be expanded 5069 for CXXCPP in "$CXX -E" "/lib/cpp" 5070 do 5071 ac_preproc_ok=false 5072for ac_cxx_preproc_warn_flag in '' yes 5073do 5074 # Use a header file that comes with gcc, so configuring glibc 5075 # with a fresh cross-compiler works. 5076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5077 # <limits.h> exists even on freestanding compilers. 5078 # On the NeXT, cc -E runs the code through the compiler's parser, 5079 # not just through cpp. "Syntax error" is here to catch this case. 5080 cat >conftest.$ac_ext <<_ACEOF 5081/* confdefs.h. */ 5082_ACEOF 5083cat confdefs.h >>conftest.$ac_ext 5084cat >>conftest.$ac_ext <<_ACEOF 5085/* end confdefs.h. */ 5086#ifdef __STDC__ 5087# include <limits.h> 5088#else 5089# include <assert.h> 5090#endif 5091 Syntax error 5092_ACEOF 5093if { (ac_try="$ac_cpp conftest.$ac_ext" 5094case "(($ac_try" in 5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5096 *) ac_try_echo=$ac_try;; 5097esac 5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5100 ac_status=$? 5101 grep -v '^ *+' conftest.er1 >conftest.err 5102 rm -f conftest.er1 5103 cat conftest.err >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); } >/dev/null && { 5106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5107 test ! -s conftest.err 5108 }; then 5109 : 5110else 5111 echo "$as_me: failed program was:" >&5 5112sed 's/^/| /' conftest.$ac_ext >&5 5113 5114 # Broken: fails on valid input. 5115continue 5116fi 5117 5118rm -f conftest.err conftest.$ac_ext 5119 5120 # OK, works on sane cases. Now check whether nonexistent headers 5121 # can be detected and how. 5122 cat >conftest.$ac_ext <<_ACEOF 5123/* confdefs.h. */ 5124_ACEOF 5125cat confdefs.h >>conftest.$ac_ext 5126cat >>conftest.$ac_ext <<_ACEOF 5127/* end confdefs.h. */ 5128#include <ac_nonexistent.h> 5129_ACEOF 5130if { (ac_try="$ac_cpp conftest.$ac_ext" 5131case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134esac 5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5137 ac_status=$? 5138 grep -v '^ *+' conftest.er1 >conftest.err 5139 rm -f conftest.er1 5140 cat conftest.err >&5 5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); } >/dev/null && { 5143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5144 test ! -s conftest.err 5145 }; then 5146 # Broken: success on invalid input. 5147continue 5148else 5149 echo "$as_me: failed program was:" >&5 5150sed 's/^/| /' conftest.$ac_ext >&5 5151 5152 # Passes both tests. 5153ac_preproc_ok=: 5154break 5155fi 5156 5157rm -f conftest.err conftest.$ac_ext 5158 5159done 5160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5161rm -f conftest.err conftest.$ac_ext 5162if $ac_preproc_ok; then 5163 break 5164fi 5165 5166 done 5167 ac_cv_prog_CXXCPP=$CXXCPP 5168 5169fi 5170 CXXCPP=$ac_cv_prog_CXXCPP 5171else 5172 ac_cv_prog_CXXCPP=$CXXCPP 5173fi 5174{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5175echo "${ECHO_T}$CXXCPP" >&6; } 5176ac_preproc_ok=false 5177for ac_cxx_preproc_warn_flag in '' yes 5178do 5179 # Use a header file that comes with gcc, so configuring glibc 5180 # with a fresh cross-compiler works. 5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5182 # <limits.h> exists even on freestanding compilers. 5183 # On the NeXT, cc -E runs the code through the compiler's parser, 5184 # not just through cpp. "Syntax error" is here to catch this case. 5185 cat >conftest.$ac_ext <<_ACEOF 5186/* confdefs.h. */ 5187_ACEOF 5188cat confdefs.h >>conftest.$ac_ext 5189cat >>conftest.$ac_ext <<_ACEOF 5190/* end confdefs.h. */ 5191#ifdef __STDC__ 5192# include <limits.h> 5193#else 5194# include <assert.h> 5195#endif 5196 Syntax error 5197_ACEOF 5198if { (ac_try="$ac_cpp conftest.$ac_ext" 5199case "(($ac_try" in 5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5201 *) ac_try_echo=$ac_try;; 5202esac 5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5205 ac_status=$? 5206 grep -v '^ *+' conftest.er1 >conftest.err 5207 rm -f conftest.er1 5208 cat conftest.err >&5 5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5210 (exit $ac_status); } >/dev/null && { 5211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5212 test ! -s conftest.err 5213 }; then 5214 : 5215else 5216 echo "$as_me: failed program was:" >&5 5217sed 's/^/| /' conftest.$ac_ext >&5 5218 5219 # Broken: fails on valid input. 5220continue 5221fi 5222 5223rm -f conftest.err conftest.$ac_ext 5224 5225 # OK, works on sane cases. Now check whether nonexistent headers 5226 # can be detected and how. 5227 cat >conftest.$ac_ext <<_ACEOF 5228/* confdefs.h. */ 5229_ACEOF 5230cat confdefs.h >>conftest.$ac_ext 5231cat >>conftest.$ac_ext <<_ACEOF 5232/* end confdefs.h. */ 5233#include <ac_nonexistent.h> 5234_ACEOF 5235if { (ac_try="$ac_cpp conftest.$ac_ext" 5236case "(($ac_try" in 5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5238 *) ac_try_echo=$ac_try;; 5239esac 5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5242 ac_status=$? 5243 grep -v '^ *+' conftest.er1 >conftest.err 5244 rm -f conftest.er1 5245 cat conftest.err >&5 5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5247 (exit $ac_status); } >/dev/null && { 5248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5249 test ! -s conftest.err 5250 }; then 5251 # Broken: success on invalid input. 5252continue 5253else 5254 echo "$as_me: failed program was:" >&5 5255sed 's/^/| /' conftest.$ac_ext >&5 5256 5257 # Passes both tests. 5258ac_preproc_ok=: 5259break 5260fi 5261 5262rm -f conftest.err conftest.$ac_ext 5263 5264done 5265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5266rm -f conftest.err conftest.$ac_ext 5267if $ac_preproc_ok; then 5268 : 5269else 5270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5271See \`config.log' for more details." >&5 5272echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5273See \`config.log' for more details." >&2;} 5274 { (exit 1); exit 1; }; } 5275fi 5276 5277ac_ext=cpp 5278ac_cpp='$CXXCPP $CPPFLAGS' 5279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5282 5283fi 5284 5285 5286ac_ext=f 5287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5289ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5290if test -n "$ac_tool_prefix"; then 5291 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 5292 do 5293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5295{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5297if test "${ac_cv_prog_F77+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299else 5300 if test -n "$F77"; then 5301 ac_cv_prog_F77="$F77" # Let the user override the test. 5302else 5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5304for as_dir in $PATH 5305do 5306 IFS=$as_save_IFS 5307 test -z "$as_dir" && as_dir=. 5308 for ac_exec_ext in '' $ac_executable_extensions; do 5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5312 break 2 5313 fi 5314done 5315done 5316IFS=$as_save_IFS 5317 5318fi 5319fi 5320F77=$ac_cv_prog_F77 5321if test -n "$F77"; then 5322 { echo "$as_me:$LINENO: result: $F77" >&5 5323echo "${ECHO_T}$F77" >&6; } 5324else 5325 { echo "$as_me:$LINENO: result: no" >&5 5326echo "${ECHO_T}no" >&6; } 5327fi 5328 5329 5330 test -n "$F77" && break 5331 done 5332fi 5333if test -z "$F77"; then 5334 ac_ct_F77=$F77 5335 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 5336do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338set dummy $ac_prog; ac_word=$2 5339{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5341if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5342 echo $ECHO_N "(cached) $ECHO_C" >&6 5343else 5344 if test -n "$ac_ct_F77"; then 5345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5346else 5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5348for as_dir in $PATH 5349do 5350 IFS=$as_save_IFS 5351 test -z "$as_dir" && as_dir=. 5352 for ac_exec_ext in '' $ac_executable_extensions; do 5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5354 ac_cv_prog_ac_ct_F77="$ac_prog" 5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5356 break 2 5357 fi 5358done 5359done 5360IFS=$as_save_IFS 5361 5362fi 5363fi 5364ac_ct_F77=$ac_cv_prog_ac_ct_F77 5365if test -n "$ac_ct_F77"; then 5366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5367echo "${ECHO_T}$ac_ct_F77" >&6; } 5368else 5369 { echo "$as_me:$LINENO: result: no" >&5 5370echo "${ECHO_T}no" >&6; } 5371fi 5372 5373 5374 test -n "$ac_ct_F77" && break 5375done 5376 5377 if test "x$ac_ct_F77" = x; then 5378 F77="" 5379 else 5380 case $cross_compiling:$ac_tool_warned in 5381yes:) 5382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5383whose name does not start with the host triplet. If you think this 5384configuration is useful to you, please write to autoconf@gnu.org." >&5 5385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5386whose name does not start with the host triplet. If you think this 5387configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5388ac_tool_warned=yes ;; 5389esac 5390 F77=$ac_ct_F77 5391 fi 5392fi 5393 5394 5395# Provide some information about the compiler. 5396echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5397ac_compiler=`set X $ac_compile; echo $2` 5398{ (ac_try="$ac_compiler --version >&5" 5399case "(($ac_try" in 5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5401 *) ac_try_echo=$ac_try;; 5402esac 5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5404 (eval "$ac_compiler --version >&5") 2>&5 5405 ac_status=$? 5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 (exit $ac_status); } 5408{ (ac_try="$ac_compiler -v >&5" 5409case "(($ac_try" in 5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5411 *) ac_try_echo=$ac_try;; 5412esac 5413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5414 (eval "$ac_compiler -v >&5") 2>&5 5415 ac_status=$? 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); } 5418{ (ac_try="$ac_compiler -V >&5" 5419case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422esac 5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5424 (eval "$ac_compiler -V >&5") 2>&5 5425 ac_status=$? 5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); } 5428rm -f a.out 5429 5430# If we don't use `.F' as extension, the preprocessor is not run on the 5431# input file. (Note that this only needs to work for GNU compilers.) 5432ac_save_ext=$ac_ext 5433ac_ext=F 5434{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5435echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5436if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438else 5439 cat >conftest.$ac_ext <<_ACEOF 5440 program main 5441#ifndef __GNUC__ 5442 choke me 5443#endif 5444 5445 end 5446_ACEOF 5447rm -f conftest.$ac_objext 5448if { (ac_try="$ac_compile" 5449case "(($ac_try" in 5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5451 *) ac_try_echo=$ac_try;; 5452esac 5453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5454 (eval "$ac_compile") 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } && { 5461 test -z "$ac_f77_werror_flag" || 5462 test ! -s conftest.err 5463 } && test -s conftest.$ac_objext; then 5464 ac_compiler_gnu=yes 5465else 5466 echo "$as_me: failed program was:" >&5 5467sed 's/^/| /' conftest.$ac_ext >&5 5468 5469 ac_compiler_gnu=no 5470fi 5471 5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5473ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5474 5475fi 5476{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5477echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 5478ac_ext=$ac_save_ext 5479ac_test_FFLAGS=${FFLAGS+set} 5480ac_save_FFLAGS=$FFLAGS 5481FFLAGS= 5482{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5483echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 5484if test "${ac_cv_prog_f77_g+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486else 5487 FFLAGS=-g 5488cat >conftest.$ac_ext <<_ACEOF 5489 program main 5490 5491 end 5492_ACEOF 5493rm -f conftest.$ac_objext 5494if { (ac_try="$ac_compile" 5495case "(($ac_try" in 5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5497 *) ac_try_echo=$ac_try;; 5498esac 5499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5500 (eval "$ac_compile") 2>conftest.er1 5501 ac_status=$? 5502 grep -v '^ *+' conftest.er1 >conftest.err 5503 rm -f conftest.er1 5504 cat conftest.err >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5506 (exit $ac_status); } && { 5507 test -z "$ac_f77_werror_flag" || 5508 test ! -s conftest.err 5509 } && test -s conftest.$ac_objext; then 5510 ac_cv_prog_f77_g=yes 5511else 5512 echo "$as_me: failed program was:" >&5 5513sed 's/^/| /' conftest.$ac_ext >&5 5514 5515 ac_cv_prog_f77_g=no 5516fi 5517 5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5519 5520fi 5521{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 5523if test "$ac_test_FFLAGS" = set; then 5524 FFLAGS=$ac_save_FFLAGS 5525elif test $ac_cv_prog_f77_g = yes; then 5526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5527 FFLAGS="-g -O2" 5528 else 5529 FFLAGS="-g" 5530 fi 5531else 5532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5533 FFLAGS="-O2" 5534 else 5535 FFLAGS= 5536 fi 5537fi 5538 5539G77=`test $ac_compiler_gnu = yes && echo yes` 5540ac_ext=c 5541ac_cpp='$CPP $CPPFLAGS' 5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5544ac_compiler_gnu=$ac_cv_c_compiler_gnu 5545 5546 5547 5548# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5549# find the maximum length of command line arguments 5550{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5551echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5552if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554else 5555 i=0 5556 teststring="ABCD" 5557 5558 case $build_os in 5559 msdosdjgpp*) 5560 # On DJGPP, this test can blow up pretty badly due to problems in libc 5561 # (any single argument exceeding 2000 bytes causes a buffer overrun 5562 # during glob expansion). Even if it were fixed, the result of this 5563 # check would be larger than it should be. 5564 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5565 ;; 5566 5567 gnu*) 5568 # Under GNU Hurd, this test is not required because there is 5569 # no limit to the length of command line arguments. 5570 # Libtool will interpret -1 as no limit whatsoever 5571 lt_cv_sys_max_cmd_len=-1; 5572 ;; 5573 5574 cygwin* | mingw*) 5575 # On Win9x/ME, this test blows up -- it succeeds, but takes 5576 # about 5 minutes as the teststring grows exponentially. 5577 # Worse, since 9x/ME are not pre-emptively multitasking, 5578 # you end up with a "frozen" computer, even though with patience 5579 # the test eventually succeeds (with a max line length of 256k). 5580 # Instead, let's just punt: use the minimum linelength reported by 5581 # all of the supported platforms: 8192 (on NT/2K/XP). 5582 lt_cv_sys_max_cmd_len=8192; 5583 ;; 5584 5585 amigaos*) 5586 # On AmigaOS with pdksh, this test takes hours, literally. 5587 # So we just punt and use a minimum line length of 8192. 5588 lt_cv_sys_max_cmd_len=8192; 5589 ;; 5590 5591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5592 # This has been around since 386BSD, at least. Likely further. 5593 if test -x /sbin/sysctl; then 5594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5595 elif test -x /usr/sbin/sysctl; then 5596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5597 else 5598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5599 fi 5600 # And add a safety zone 5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5603 ;; 5604 5605 interix*) 5606 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5607 lt_cv_sys_max_cmd_len=196608 5608 ;; 5609 5610 osf*) 5611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5613 # nice to cause kernel panics so lets avoid the loop below. 5614 # First set a reasonable default. 5615 lt_cv_sys_max_cmd_len=16384 5616 # 5617 if test -x /sbin/sysconfig; then 5618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5619 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5620 esac 5621 fi 5622 ;; 5623 sco3.2v5*) 5624 lt_cv_sys_max_cmd_len=102400 5625 ;; 5626 sysv5* | sco5v6* | sysv4.2uw2*) 5627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5628 if test -n "$kargmax"; then 5629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5630 else 5631 lt_cv_sys_max_cmd_len=32768 5632 fi 5633 ;; 5634 *) 5635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5636 if test -n "$lt_cv_sys_max_cmd_len"; then 5637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5639 else 5640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5641 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5642 = "XX$teststring") >/dev/null 2>&1 && 5643 new_result=`expr "X$teststring" : ".*" 2>&1` && 5644 lt_cv_sys_max_cmd_len=$new_result && 5645 test $i != 17 # 1/2 MB should be enough 5646 do 5647 i=`expr $i + 1` 5648 teststring=$teststring$teststring 5649 done 5650 teststring= 5651 # Add a significant safety factor because C++ compilers can tack on massive 5652 # amounts of additional arguments before passing them to the linker. 5653 # It appears as though 1/2 is a usable value. 5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5655 fi 5656 ;; 5657 esac 5658 5659fi 5660 5661if test -n $lt_cv_sys_max_cmd_len ; then 5662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5663echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5664else 5665 { echo "$as_me:$LINENO: result: none" >&5 5666echo "${ECHO_T}none" >&6; } 5667fi 5668 5669 5670 5671 5672 5673# Check for command to grab the raw symbol name followed by C symbol from nm. 5674{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5675echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 5676if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5678else 5679 5680# These are sane defaults that work on at least a few old systems. 5681# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5682 5683# Character class describing NM global symbol codes. 5684symcode='[BCDEGRST]' 5685 5686# Regexp to match symbols that can be accessed directly from C. 5687sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5688 5689# Transform an extracted symbol line into a proper C declaration 5690lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5691 5692# Transform an extracted symbol line into symbol name and symbol address 5693lt_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'" 5694 5695# Define system-specific variables. 5696case $host_os in 5697aix*) 5698 symcode='[BCDT]' 5699 ;; 5700cygwin* | mingw* | pw32*) 5701 symcode='[ABCDGISTW]' 5702 ;; 5703hpux*) # Its linker distinguishes data from code symbols 5704 if test "$host_cpu" = ia64; then 5705 symcode='[ABCDEGRST]' 5706 fi 5707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5708 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'" 5709 ;; 5710linux* | k*bsd*-gnu) 5711 if test "$host_cpu" = ia64; then 5712 symcode='[ABCDGIRSTW]' 5713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5714 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'" 5715 fi 5716 ;; 5717irix* | nonstopux*) 5718 symcode='[BCDEGRST]' 5719 ;; 5720osf*) 5721 symcode='[BCDEGQRST]' 5722 ;; 5723solaris*) 5724 symcode='[BDRT]' 5725 ;; 5726sco3.2v5*) 5727 symcode='[DT]' 5728 ;; 5729sysv4.2uw2*) 5730 symcode='[DT]' 5731 ;; 5732sysv5* | sco5v6* | unixware* | OpenUNIX*) 5733 symcode='[ABDT]' 5734 ;; 5735sysv4) 5736 symcode='[DFNSTU]' 5737 ;; 5738esac 5739 5740# Handle CRLF in mingw tool chain 5741opt_cr= 5742case $build_os in 5743mingw*) 5744 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5745 ;; 5746esac 5747 5748# If we're using GNU nm, then use its standard symbol codes. 5749case `$NM -V 2>&1` in 5750*GNU* | *'with BFD'*) 5751 symcode='[ABCDGIRSTW]' ;; 5752esac 5753 5754# Try without a prefix undercore, then with it. 5755for ac_symprfx in "" "_"; do 5756 5757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5758 symxfrm="\\1 $ac_symprfx\\2 \\2" 5759 5760 # Write the raw and C identifiers. 5761 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5762 5763 # Check to see that the pipe works correctly. 5764 pipe_works=no 5765 5766 rm -f conftest* 5767 cat > conftest.$ac_ext <<EOF 5768#ifdef __cplusplus 5769extern "C" { 5770#endif 5771char nm_test_var; 5772void nm_test_func(){} 5773#ifdef __cplusplus 5774} 5775#endif 5776int main(){nm_test_var='a';nm_test_func();return(0);} 5777EOF 5778 5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5780 (eval $ac_compile) 2>&5 5781 ac_status=$? 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); }; then 5784 # Now try to grab the symbols. 5785 nlist=conftest.nm 5786 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5787 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5788 ac_status=$? 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5790 (exit $ac_status); } && test -s "$nlist"; then 5791 # Try sorting and uniquifying the output. 5792 if sort "$nlist" | uniq > "$nlist"T; then 5793 mv -f "$nlist"T "$nlist" 5794 else 5795 rm -f "$nlist"T 5796 fi 5797 5798 # Make sure that we snagged all the symbols we need. 5799 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5800 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5801 cat <<EOF > conftest.$ac_ext 5802#ifdef __cplusplus 5803extern "C" { 5804#endif 5805 5806EOF 5807 # Now generate the symbol file. 5808 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5809 5810 cat <<EOF >> conftest.$ac_ext 5811#if defined (__STDC__) && __STDC__ 5812# define lt_ptr_t void * 5813#else 5814# define lt_ptr_t char * 5815# define const 5816#endif 5817 5818/* The mapping between symbol names and symbols. */ 5819const struct { 5820 const char *name; 5821 lt_ptr_t address; 5822} 5823lt_preloaded_symbols[] = 5824{ 5825EOF 5826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5827 cat <<\EOF >> conftest.$ac_ext 5828 {0, (lt_ptr_t) 0} 5829}; 5830 5831#ifdef __cplusplus 5832} 5833#endif 5834EOF 5835 # Now try linking the two files. 5836 mv conftest.$ac_objext conftstm.$ac_objext 5837 lt_save_LIBS="$LIBS" 5838 lt_save_CFLAGS="$CFLAGS" 5839 LIBS="conftstm.$ac_objext" 5840 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5842 (eval $ac_link) 2>&5 5843 ac_status=$? 5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5846 pipe_works=yes 5847 fi 5848 LIBS="$lt_save_LIBS" 5849 CFLAGS="$lt_save_CFLAGS" 5850 else 5851 echo "cannot find nm_test_func in $nlist" >&5 5852 fi 5853 else 5854 echo "cannot find nm_test_var in $nlist" >&5 5855 fi 5856 else 5857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5858 fi 5859 else 5860 echo "$progname: failed program was:" >&5 5861 cat conftest.$ac_ext >&5 5862 fi 5863 rm -rf conftest* conftst* 5864 5865 # Do not use the global_symbol_pipe unless it works. 5866 if test "$pipe_works" = yes; then 5867 break 5868 else 5869 lt_cv_sys_global_symbol_pipe= 5870 fi 5871done 5872 5873fi 5874 5875if test -z "$lt_cv_sys_global_symbol_pipe"; then 5876 lt_cv_sys_global_symbol_to_cdecl= 5877fi 5878if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5879 { echo "$as_me:$LINENO: result: failed" >&5 5880echo "${ECHO_T}failed" >&6; } 5881else 5882 { echo "$as_me:$LINENO: result: ok" >&5 5883echo "${ECHO_T}ok" >&6; } 5884fi 5885 5886{ echo "$as_me:$LINENO: checking for objdir" >&5 5887echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 5888if test "${lt_cv_objdir+set}" = set; then 5889 echo $ECHO_N "(cached) $ECHO_C" >&6 5890else 5891 rm -f .libs 2>/dev/null 5892mkdir .libs 2>/dev/null 5893if test -d .libs; then 5894 lt_cv_objdir=.libs 5895else 5896 # MS-DOS does not allow filenames that begin with a dot. 5897 lt_cv_objdir=_libs 5898fi 5899rmdir .libs 2>/dev/null 5900fi 5901{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5902echo "${ECHO_T}$lt_cv_objdir" >&6; } 5903objdir=$lt_cv_objdir 5904 5905 5906 5907 5908 5909case $host_os in 5910aix3*) 5911 # AIX sometimes has problems with the GCC collect2 program. For some 5912 # reason, if we set the COLLECT_NAMES environment variable, the problems 5913 # vanish in a puff of smoke. 5914 if test "X${COLLECT_NAMES+set}" != Xset; then 5915 COLLECT_NAMES= 5916 export COLLECT_NAMES 5917 fi 5918 ;; 5919esac 5920 5921# Sed substitution that helps us do robust quoting. It backslashifies 5922# metacharacters that are still active within double-quoted strings. 5923Xsed='sed -e 1s/^X//' 5924sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5925 5926# Same as above, but do not quote variable references. 5927double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5928 5929# Sed substitution to delay expansion of an escaped shell variable in a 5930# double_quote_subst'ed string. 5931delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5932 5933# Sed substitution to avoid accidental globbing in evaled expressions 5934no_glob_subst='s/\*/\\\*/g' 5935 5936# Constants: 5937rm="rm -f" 5938 5939# Global variables: 5940default_ofile=libtool 5941can_build_shared=yes 5942 5943# All known linkers require a `.a' archive for static linking (except MSVC, 5944# which needs '.lib'). 5945libext=a 5946ltmain="$ac_aux_dir/ltmain.sh" 5947ofile="$default_ofile" 5948with_gnu_ld="$lt_cv_prog_gnu_ld" 5949 5950if test -n "$ac_tool_prefix"; then 5951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5952set dummy ${ac_tool_prefix}ar; ac_word=$2 5953{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5955if test "${ac_cv_prog_AR+set}" = set; then 5956 echo $ECHO_N "(cached) $ECHO_C" >&6 5957else 5958 if test -n "$AR"; then 5959 ac_cv_prog_AR="$AR" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5968 ac_cv_prog_AR="${ac_tool_prefix}ar" 5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978AR=$ac_cv_prog_AR 5979if test -n "$AR"; then 5980 { echo "$as_me:$LINENO: result: $AR" >&5 5981echo "${ECHO_T}$AR" >&6; } 5982else 5983 { echo "$as_me:$LINENO: result: no" >&5 5984echo "${ECHO_T}no" >&6; } 5985fi 5986 5987 5988fi 5989if test -z "$ac_cv_prog_AR"; then 5990 ac_ct_AR=$AR 5991 # Extract the first word of "ar", so it can be a program name with args. 5992set dummy ar; ac_word=$2 5993{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5995if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997else 5998 if test -n "$ac_ct_AR"; then 5999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6008 ac_cv_prog_ac_ct_AR="ar" 6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013done 6014IFS=$as_save_IFS 6015 6016fi 6017fi 6018ac_ct_AR=$ac_cv_prog_ac_ct_AR 6019if test -n "$ac_ct_AR"; then 6020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6021echo "${ECHO_T}$ac_ct_AR" >&6; } 6022else 6023 { echo "$as_me:$LINENO: result: no" >&5 6024echo "${ECHO_T}no" >&6; } 6025fi 6026 6027 if test "x$ac_ct_AR" = x; then 6028 AR="false" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031yes:) 6032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6033whose name does not start with the host triplet. If you think this 6034configuration is useful to you, please write to autoconf@gnu.org." >&5 6035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6036whose name does not start with the host triplet. If you think this 6037configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6038ac_tool_warned=yes ;; 6039esac 6040 AR=$ac_ct_AR 6041 fi 6042else 6043 AR="$ac_cv_prog_AR" 6044fi 6045 6046if test -n "$ac_tool_prefix"; then 6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6048set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6051if test "${ac_cv_prog_RANLIB+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053else 6054 if test -n "$RANLIB"; then 6055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6056else 6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058for as_dir in $PATH 6059do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068done 6069done 6070IFS=$as_save_IFS 6071 6072fi 6073fi 6074RANLIB=$ac_cv_prog_RANLIB 6075if test -n "$RANLIB"; then 6076 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6077echo "${ECHO_T}$RANLIB" >&6; } 6078else 6079 { echo "$as_me:$LINENO: result: no" >&5 6080echo "${ECHO_T}no" >&6; } 6081fi 6082 6083 6084fi 6085if test -z "$ac_cv_prog_RANLIB"; then 6086 ac_ct_RANLIB=$RANLIB 6087 # Extract the first word of "ranlib", so it can be a program name with args. 6088set dummy ranlib; ac_word=$2 6089{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6091if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 if test -n "$ac_ct_RANLIB"; then 6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6104 ac_cv_prog_ac_ct_RANLIB="ranlib" 6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6115if test -n "$ac_ct_RANLIB"; then 6116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6117echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6118else 6119 { echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6; } 6121fi 6122 6123 if test "x$ac_ct_RANLIB" = x; then 6124 RANLIB=":" 6125 else 6126 case $cross_compiling:$ac_tool_warned in 6127yes:) 6128{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6129whose name does not start with the host triplet. If you think this 6130configuration is useful to you, please write to autoconf@gnu.org." >&5 6131echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6132whose name does not start with the host triplet. If you think this 6133configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6134ac_tool_warned=yes ;; 6135esac 6136 RANLIB=$ac_ct_RANLIB 6137 fi 6138else 6139 RANLIB="$ac_cv_prog_RANLIB" 6140fi 6141 6142if test -n "$ac_tool_prefix"; then 6143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6144set dummy ${ac_tool_prefix}strip; ac_word=$2 6145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6147if test "${ac_cv_prog_STRIP+set}" = set; then 6148 echo $ECHO_N "(cached) $ECHO_C" >&6 6149else 6150 if test -n "$STRIP"; then 6151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6152else 6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in $PATH 6155do 6156 IFS=$as_save_IFS 6157 test -z "$as_dir" && as_dir=. 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164done 6165done 6166IFS=$as_save_IFS 6167 6168fi 6169fi 6170STRIP=$ac_cv_prog_STRIP 6171if test -n "$STRIP"; then 6172 { echo "$as_me:$LINENO: result: $STRIP" >&5 6173echo "${ECHO_T}$STRIP" >&6; } 6174else 6175 { echo "$as_me:$LINENO: result: no" >&5 6176echo "${ECHO_T}no" >&6; } 6177fi 6178 6179 6180fi 6181if test -z "$ac_cv_prog_STRIP"; then 6182 ac_ct_STRIP=$STRIP 6183 # Extract the first word of "strip", so it can be a program name with args. 6184set dummy strip; ac_word=$2 6185{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6187if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 if test -n "$ac_ct_STRIP"; then 6191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6200 ac_cv_prog_ac_ct_STRIP="strip" 6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6211if test -n "$ac_ct_STRIP"; then 6212 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6213echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6214else 6215 { echo "$as_me:$LINENO: result: no" >&5 6216echo "${ECHO_T}no" >&6; } 6217fi 6218 6219 if test "x$ac_ct_STRIP" = x; then 6220 STRIP=":" 6221 else 6222 case $cross_compiling:$ac_tool_warned in 6223yes:) 6224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6225whose name does not start with the host triplet. If you think this 6226configuration is useful to you, please write to autoconf@gnu.org." >&5 6227echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6228whose name does not start with the host triplet. If you think this 6229configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6230ac_tool_warned=yes ;; 6231esac 6232 STRIP=$ac_ct_STRIP 6233 fi 6234else 6235 STRIP="$ac_cv_prog_STRIP" 6236fi 6237 6238 6239old_CC="$CC" 6240old_CFLAGS="$CFLAGS" 6241 6242# Set sane defaults for various variables 6243test -z "$AR" && AR=ar 6244test -z "$AR_FLAGS" && AR_FLAGS=cru 6245test -z "$AS" && AS=as 6246test -z "$CC" && CC=cc 6247test -z "$LTCC" && LTCC=$CC 6248test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6249test -z "$DLLTOOL" && DLLTOOL=dlltool 6250test -z "$LD" && LD=ld 6251test -z "$LN_S" && LN_S="ln -s" 6252test -z "$MAGIC_CMD" && MAGIC_CMD=file 6253test -z "$NM" && NM=nm 6254test -z "$SED" && SED=sed 6255test -z "$OBJDUMP" && OBJDUMP=objdump 6256test -z "$RANLIB" && RANLIB=: 6257test -z "$STRIP" && STRIP=: 6258test -z "$ac_objext" && ac_objext=o 6259 6260# Determine commands to create old-style static archives. 6261old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6262old_postinstall_cmds='chmod 644 $oldlib' 6263old_postuninstall_cmds= 6264 6265if test -n "$RANLIB"; then 6266 case $host_os in 6267 openbsd*) 6268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6269 ;; 6270 *) 6271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6272 ;; 6273 esac 6274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6275fi 6276 6277for cc_temp in $compiler""; do 6278 case $cc_temp in 6279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6281 \-*) ;; 6282 *) break;; 6283 esac 6284done 6285cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6286 6287 6288# Only perform the check for file, if the check method requires it 6289case $deplibs_check_method in 6290file_magic*) 6291 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6292 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6293echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6295 echo $ECHO_N "(cached) $ECHO_C" >&6 6296else 6297 case $MAGIC_CMD in 6298[\\/*] | ?:[\\/]*) 6299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6300 ;; 6301*) 6302 lt_save_MAGIC_CMD="$MAGIC_CMD" 6303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6305 for ac_dir in $ac_dummy; do 6306 IFS="$lt_save_ifs" 6307 test -z "$ac_dir" && ac_dir=. 6308 if test -f $ac_dir/${ac_tool_prefix}file; then 6309 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6310 if test -n "$file_magic_test_file"; then 6311 case $deplibs_check_method in 6312 "file_magic "*) 6313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6316 $EGREP "$file_magic_regex" > /dev/null; then 6317 : 6318 else 6319 cat <<EOF 1>&2 6320 6321*** Warning: the command libtool uses to detect shared libraries, 6322*** $file_magic_cmd, produces output that libtool cannot recognize. 6323*** The result is that libtool may fail to recognize shared libraries 6324*** as such. This will affect the creation of libtool libraries that 6325*** depend on shared libraries, but programs linked with such libtool 6326*** libraries will work regardless of this problem. Nevertheless, you 6327*** may want to report the problem to your system manager and/or to 6328*** bug-libtool@gnu.org 6329 6330EOF 6331 fi ;; 6332 esac 6333 fi 6334 break 6335 fi 6336 done 6337 IFS="$lt_save_ifs" 6338 MAGIC_CMD="$lt_save_MAGIC_CMD" 6339 ;; 6340esac 6341fi 6342 6343MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6344if test -n "$MAGIC_CMD"; then 6345 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6346echo "${ECHO_T}$MAGIC_CMD" >&6; } 6347else 6348 { echo "$as_me:$LINENO: result: no" >&5 6349echo "${ECHO_T}no" >&6; } 6350fi 6351 6352if test -z "$lt_cv_path_MAGIC_CMD"; then 6353 if test -n "$ac_tool_prefix"; then 6354 { echo "$as_me:$LINENO: checking for file" >&5 6355echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6356if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6357 echo $ECHO_N "(cached) $ECHO_C" >&6 6358else 6359 case $MAGIC_CMD in 6360[\\/*] | ?:[\\/]*) 6361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6362 ;; 6363*) 6364 lt_save_MAGIC_CMD="$MAGIC_CMD" 6365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6367 for ac_dir in $ac_dummy; do 6368 IFS="$lt_save_ifs" 6369 test -z "$ac_dir" && ac_dir=. 6370 if test -f $ac_dir/file; then 6371 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6372 if test -n "$file_magic_test_file"; then 6373 case $deplibs_check_method in 6374 "file_magic "*) 6375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6378 $EGREP "$file_magic_regex" > /dev/null; then 6379 : 6380 else 6381 cat <<EOF 1>&2 6382 6383*** Warning: the command libtool uses to detect shared libraries, 6384*** $file_magic_cmd, produces output that libtool cannot recognize. 6385*** The result is that libtool may fail to recognize shared libraries 6386*** as such. This will affect the creation of libtool libraries that 6387*** depend on shared libraries, but programs linked with such libtool 6388*** libraries will work regardless of this problem. Nevertheless, you 6389*** may want to report the problem to your system manager and/or to 6390*** bug-libtool@gnu.org 6391 6392EOF 6393 fi ;; 6394 esac 6395 fi 6396 break 6397 fi 6398 done 6399 IFS="$lt_save_ifs" 6400 MAGIC_CMD="$lt_save_MAGIC_CMD" 6401 ;; 6402esac 6403fi 6404 6405MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6406if test -n "$MAGIC_CMD"; then 6407 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6408echo "${ECHO_T}$MAGIC_CMD" >&6; } 6409else 6410 { echo "$as_me:$LINENO: result: no" >&5 6411echo "${ECHO_T}no" >&6; } 6412fi 6413 6414 else 6415 MAGIC_CMD=: 6416 fi 6417fi 6418 6419 fi 6420 ;; 6421esac 6422 6423 6424 case $host_os in 6425 rhapsody* | darwin*) 6426 if test -n "$ac_tool_prefix"; then 6427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6428set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6431if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433else 6434 if test -n "$DSYMUTIL"; then 6435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449done 6450IFS=$as_save_IFS 6451 6452fi 6453fi 6454DSYMUTIL=$ac_cv_prog_DSYMUTIL 6455if test -n "$DSYMUTIL"; then 6456 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6457echo "${ECHO_T}$DSYMUTIL" >&6; } 6458else 6459 { echo "$as_me:$LINENO: result: no" >&5 6460echo "${ECHO_T}no" >&6; } 6461fi 6462 6463 6464fi 6465if test -z "$ac_cv_prog_DSYMUTIL"; then 6466 ac_ct_DSYMUTIL=$DSYMUTIL 6467 # Extract the first word of "dsymutil", so it can be a program name with args. 6468set dummy dsymutil; ac_word=$2 6469{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6471if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6472 echo $ECHO_N "(cached) $ECHO_C" >&6 6473else 6474 if test -n "$ac_ct_DSYMUTIL"; then 6475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6476else 6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in $PATH 6479do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488done 6489done 6490IFS=$as_save_IFS 6491 6492fi 6493fi 6494ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6495if test -n "$ac_ct_DSYMUTIL"; then 6496 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6497echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 6498else 6499 { echo "$as_me:$LINENO: result: no" >&5 6500echo "${ECHO_T}no" >&6; } 6501fi 6502 6503 if test "x$ac_ct_DSYMUTIL" = x; then 6504 DSYMUTIL=":" 6505 else 6506 case $cross_compiling:$ac_tool_warned in 6507yes:) 6508{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6509whose name does not start with the host triplet. If you think this 6510configuration is useful to you, please write to autoconf@gnu.org." >&5 6511echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6512whose name does not start with the host triplet. If you think this 6513configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6514ac_tool_warned=yes ;; 6515esac 6516 DSYMUTIL=$ac_ct_DSYMUTIL 6517 fi 6518else 6519 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6520fi 6521 6522 if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6524set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6525{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6527if test "${ac_cv_prog_NMEDIT+set}" = set; then 6528 echo $ECHO_N "(cached) $ECHO_C" >&6 6529else 6530 if test -n "$NMEDIT"; then 6531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544done 6545done 6546IFS=$as_save_IFS 6547 6548fi 6549fi 6550NMEDIT=$ac_cv_prog_NMEDIT 6551if test -n "$NMEDIT"; then 6552 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 6553echo "${ECHO_T}$NMEDIT" >&6; } 6554else 6555 { echo "$as_me:$LINENO: result: no" >&5 6556echo "${ECHO_T}no" >&6; } 6557fi 6558 6559 6560fi 6561if test -z "$ac_cv_prog_NMEDIT"; then 6562 ac_ct_NMEDIT=$NMEDIT 6563 # Extract the first word of "nmedit", so it can be a program name with args. 6564set dummy nmedit; ac_word=$2 6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6567if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 if test -n "$ac_ct_NMEDIT"; then 6571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6591if test -n "$ac_ct_NMEDIT"; then 6592 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6593echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 6594else 6595 { echo "$as_me:$LINENO: result: no" >&5 6596echo "${ECHO_T}no" >&6; } 6597fi 6598 6599 if test "x$ac_ct_NMEDIT" = x; then 6600 NMEDIT=":" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603yes:) 6604{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6605whose name does not start with the host triplet. If you think this 6606configuration is useful to you, please write to autoconf@gnu.org." >&5 6607echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6608whose name does not start with the host triplet. If you think this 6609configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6610ac_tool_warned=yes ;; 6611esac 6612 NMEDIT=$ac_ct_NMEDIT 6613 fi 6614else 6615 NMEDIT="$ac_cv_prog_NMEDIT" 6616fi 6617 6618 6619 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6620echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 6621if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6622 echo $ECHO_N "(cached) $ECHO_C" >&6 6623else 6624 lt_cv_apple_cc_single_mod=no 6625 if test -z "${LT_MULTI_MODULE}"; then 6626 # By default we will add the -single_module flag. You can override 6627 # by either setting the environment variable LT_MULTI_MODULE 6628 # non-empty at configure time, or by adding -multi_module to the 6629 # link flags. 6630 echo "int foo(void){return 1;}" > conftest.c 6631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6632 -dynamiclib ${wl}-single_module conftest.c 6633 if test -f libconftest.dylib; then 6634 lt_cv_apple_cc_single_mod=yes 6635 rm -rf libconftest.dylib* 6636 fi 6637 rm conftest.c 6638 fi 6639fi 6640{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6641echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 6642 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6643echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 6644if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 lt_cv_ld_exported_symbols_list=no 6648 save_LDFLAGS=$LDFLAGS 6649 echo "_main" > conftest.sym 6650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6651 cat >conftest.$ac_ext <<_ACEOF 6652/* confdefs.h. */ 6653_ACEOF 6654cat confdefs.h >>conftest.$ac_ext 6655cat >>conftest.$ac_ext <<_ACEOF 6656/* end confdefs.h. */ 6657 6658int 6659main () 6660{ 6661 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666rm -f conftest.$ac_objext conftest$ac_exeext 6667if { (ac_try="$ac_link" 6668case "(($ac_try" in 6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6670 *) ac_try_echo=$ac_try;; 6671esac 6672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6673 (eval "$ac_link") 2>conftest.er1 6674 ac_status=$? 6675 grep -v '^ *+' conftest.er1 >conftest.err 6676 rm -f conftest.er1 6677 cat conftest.err >&5 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); } && { 6680 test -z "$ac_c_werror_flag" || 6681 test ! -s conftest.err 6682 } && test -s conftest$ac_exeext && 6683 $as_test_x conftest$ac_exeext; then 6684 lt_cv_ld_exported_symbols_list=yes 6685else 6686 echo "$as_me: failed program was:" >&5 6687sed 's/^/| /' conftest.$ac_ext >&5 6688 6689 lt_cv_ld_exported_symbols_list=no 6690fi 6691 6692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6693 conftest$ac_exeext conftest.$ac_ext 6694 LDFLAGS="$save_LDFLAGS" 6695 6696fi 6697{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6698echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 6699 case $host_os in 6700 rhapsody* | darwin1.[0123]) 6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6702 darwin1.*) 6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6704 darwin*) 6705 # if running on 10.5 or later, the deployment target defaults 6706 # to the OS version, if on x86, and 10.4, the deployment 6707 # target defaults to 10.4. Don't you love it? 6708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6709 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6711 10.[012]*) 6712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6713 10.*) 6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6715 esac 6716 ;; 6717 esac 6718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6719 _lt_dar_single_mod='$single_module' 6720 fi 6721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6723 else 6724 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 6725 fi 6726 if test "$DSYMUTIL" != ":"; then 6727 _lt_dsymutil="~$DSYMUTIL \$lib || :" 6728 else 6729 _lt_dsymutil= 6730 fi 6731 ;; 6732 esac 6733 6734 6735enable_dlopen=no 6736enable_win32_dll=no 6737 6738# Check whether --enable-libtool-lock was given. 6739if test "${enable_libtool_lock+set}" = set; then 6740 enableval=$enable_libtool_lock; 6741fi 6742 6743test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6744 6745 6746# Check whether --with-pic was given. 6747if test "${with_pic+set}" = set; then 6748 withval=$with_pic; pic_mode="$withval" 6749else 6750 pic_mode=default 6751fi 6752 6753test -z "$pic_mode" && pic_mode=default 6754 6755# Use C for the default configuration in the libtool script 6756tagname= 6757lt_save_CC="$CC" 6758ac_ext=c 6759ac_cpp='$CPP $CPPFLAGS' 6760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6762ac_compiler_gnu=$ac_cv_c_compiler_gnu 6763 6764 6765# Source file extension for C test sources. 6766ac_ext=c 6767 6768# Object file extension for compiled C test sources. 6769objext=o 6770objext=$objext 6771 6772# Code to be used in simple compile tests 6773lt_simple_compile_test_code="int some_variable = 0;" 6774 6775# Code to be used in simple link tests 6776lt_simple_link_test_code='int main(){return(0);}' 6777 6778 6779# If no C compiler was specified, use CC. 6780LTCC=${LTCC-"$CC"} 6781 6782# If no C compiler flags were specified, use CFLAGS. 6783LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6784 6785# Allow CC to be a program name with arguments. 6786compiler=$CC 6787 6788 6789# save warnings/boilerplate of simple test code 6790ac_outfile=conftest.$ac_objext 6791echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6793_lt_compiler_boilerplate=`cat conftest.err` 6794$rm conftest* 6795 6796ac_outfile=conftest.$ac_objext 6797echo "$lt_simple_link_test_code" >conftest.$ac_ext 6798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6799_lt_linker_boilerplate=`cat conftest.err` 6800$rm -r conftest* 6801 6802 6803## CAVEAT EMPTOR: 6804## There is no encapsulation within the following macros, do not change 6805## the running order or otherwise move them around unless you know exactly 6806## what you are doing... 6807 6808lt_prog_compiler_no_builtin_flag= 6809 6810if test "$GCC" = yes; then 6811 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6812 6813 6814{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6815echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 6816if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6817 echo $ECHO_N "(cached) $ECHO_C" >&6 6818else 6819 lt_cv_prog_compiler_rtti_exceptions=no 6820 ac_outfile=conftest.$ac_objext 6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6822 lt_compiler_flag="-fno-rtti -fno-exceptions" 6823 # Insert the option either (1) after the last *FLAGS variable, or 6824 # (2) before a word containing "conftest.", or (3) at the end. 6825 # Note that $ac_compile itself does not contain backslashes and begins 6826 # with a dollar sign (not a hyphen), so the echo should work correctly. 6827 # The option is referenced via a variable to avoid confusing sed. 6828 lt_compile=`echo "$ac_compile" | $SED \ 6829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6831 -e 's:$: $lt_compiler_flag:'` 6832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5) 6833 (eval "$lt_compile" 2>conftest.err) 6834 ac_status=$? 6835 cat conftest.err >&5 6836 echo "$as_me:6836: \$? = $ac_status" >&5 6837 if (exit $ac_status) && test -s "$ac_outfile"; then 6838 # The compiler can only warn and ignore the option if not recognized 6839 # So say no if there are warnings other than the usual output. 6840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6843 lt_cv_prog_compiler_rtti_exceptions=yes 6844 fi 6845 fi 6846 $rm conftest* 6847 6848fi 6849{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6850echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6851 6852if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6854else 6855 : 6856fi 6857 6858fi 6859 6860lt_prog_compiler_wl= 6861lt_prog_compiler_pic= 6862lt_prog_compiler_static= 6863 6864{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6865echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 6866 6867 if test "$GCC" = yes; then 6868 lt_prog_compiler_wl='-Wl,' 6869 lt_prog_compiler_static='-static' 6870 6871 case $host_os in 6872 aix*) 6873 # All AIX code is PIC. 6874 if test "$host_cpu" = ia64; then 6875 # AIX 5 now supports IA64 processor 6876 lt_prog_compiler_static='-Bstatic' 6877 fi 6878 ;; 6879 6880 amigaos*) 6881 # FIXME: we need at least 68020 code to build shared libraries, but 6882 # adding the `-m68020' flag to GCC prevents building anything better, 6883 # like `-m68040'. 6884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6885 ;; 6886 6887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6888 # PIC is the default for these OSes. 6889 ;; 6890 6891 mingw* | cygwin* | pw32* | os2*) 6892 # This hack is so that the source file can tell whether it is being 6893 # built for inclusion in a dll (and should export symbols for example). 6894 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6895 # (--disable-auto-import) libraries 6896 lt_prog_compiler_pic='-DDLL_EXPORT' 6897 ;; 6898 6899 darwin* | rhapsody*) 6900 # PIC is the default on this platform 6901 # Common symbols not allowed in MH_DYLIB files 6902 lt_prog_compiler_pic='-fno-common' 6903 ;; 6904 6905 interix[3-9]*) 6906 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6907 # Instead, we relocate shared libraries at runtime. 6908 ;; 6909 6910 msdosdjgpp*) 6911 # Just because we use GCC doesn't mean we suddenly get shared libraries 6912 # on systems that don't support them. 6913 lt_prog_compiler_can_build_shared=no 6914 enable_shared=no 6915 ;; 6916 6917 sysv4*MP*) 6918 if test -d /usr/nec; then 6919 lt_prog_compiler_pic=-Kconform_pic 6920 fi 6921 ;; 6922 6923 hpux*) 6924 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6925 # not for PA HP-UX. 6926 case $host_cpu in 6927 hppa*64*|ia64*) 6928 # +Z the default 6929 ;; 6930 *) 6931 lt_prog_compiler_pic='-fPIC' 6932 ;; 6933 esac 6934 ;; 6935 6936 *) 6937 lt_prog_compiler_pic='-fPIC' 6938 ;; 6939 esac 6940 else 6941 # PORTME Check for flag to pass linker flags through the system compiler. 6942 case $host_os in 6943 aix*) 6944 lt_prog_compiler_wl='-Wl,' 6945 if test "$host_cpu" = ia64; then 6946 # AIX 5 now supports IA64 processor 6947 lt_prog_compiler_static='-Bstatic' 6948 else 6949 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6950 fi 6951 ;; 6952 darwin*) 6953 # PIC is the default on this platform 6954 # Common symbols not allowed in MH_DYLIB files 6955 case $cc_basename in 6956 xlc*) 6957 lt_prog_compiler_pic='-qnocommon' 6958 lt_prog_compiler_wl='-Wl,' 6959 ;; 6960 esac 6961 ;; 6962 6963 mingw* | cygwin* | pw32* | os2*) 6964 # This hack is so that the source file can tell whether it is being 6965 # built for inclusion in a dll (and should export symbols for example). 6966 lt_prog_compiler_pic='-DDLL_EXPORT' 6967 ;; 6968 6969 hpux9* | hpux10* | hpux11*) 6970 lt_prog_compiler_wl='-Wl,' 6971 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6972 # not for PA HP-UX. 6973 case $host_cpu in 6974 hppa*64*|ia64*) 6975 # +Z the default 6976 ;; 6977 *) 6978 lt_prog_compiler_pic='+Z' 6979 ;; 6980 esac 6981 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6982 lt_prog_compiler_static='${wl}-a ${wl}archive' 6983 ;; 6984 6985 irix5* | irix6* | nonstopux*) 6986 lt_prog_compiler_wl='-Wl,' 6987 # PIC (with -KPIC) is the default. 6988 lt_prog_compiler_static='-non_shared' 6989 ;; 6990 6991 newsos6) 6992 lt_prog_compiler_pic='-KPIC' 6993 lt_prog_compiler_static='-Bstatic' 6994 ;; 6995 6996 linux* | k*bsd*-gnu) 6997 case $cc_basename in 6998 icc* | ecc*) 6999 lt_prog_compiler_wl='-Wl,' 7000 lt_prog_compiler_pic='-KPIC' 7001 lt_prog_compiler_static='-static' 7002 ;; 7003 pgcc* | pgf77* | pgf90* | pgf95*) 7004 # Portland Group compilers (*not* the Pentium gcc compiler, 7005 # which looks to be a dead project) 7006 lt_prog_compiler_wl='-Wl,' 7007 lt_prog_compiler_pic='-fpic' 7008 lt_prog_compiler_static='-Bstatic' 7009 ;; 7010 ccc*) 7011 lt_prog_compiler_wl='-Wl,' 7012 # All Alpha code is PIC. 7013 lt_prog_compiler_static='-non_shared' 7014 ;; 7015 *) 7016 case `$CC -V 2>&1 | sed 5q` in 7017 *Sun\ C*) 7018 # Sun C 5.9 7019 lt_prog_compiler_pic='-KPIC' 7020 lt_prog_compiler_static='-Bstatic' 7021 lt_prog_compiler_wl='-Wl,' 7022 ;; 7023 *Sun\ F*) 7024 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7025 lt_prog_compiler_pic='-KPIC' 7026 lt_prog_compiler_static='-Bstatic' 7027 lt_prog_compiler_wl='' 7028 ;; 7029 esac 7030 ;; 7031 esac 7032 ;; 7033 7034 osf3* | osf4* | osf5*) 7035 lt_prog_compiler_wl='-Wl,' 7036 # All OSF/1 code is PIC. 7037 lt_prog_compiler_static='-non_shared' 7038 ;; 7039 7040 rdos*) 7041 lt_prog_compiler_static='-non_shared' 7042 ;; 7043 7044 solaris*) 7045 lt_prog_compiler_pic='-KPIC' 7046 lt_prog_compiler_static='-Bstatic' 7047 case $cc_basename in 7048 f77* | f90* | f95*) 7049 lt_prog_compiler_wl='-Qoption ld ';; 7050 *) 7051 lt_prog_compiler_wl='-Wl,';; 7052 esac 7053 ;; 7054 7055 sunos4*) 7056 lt_prog_compiler_wl='-Qoption ld ' 7057 lt_prog_compiler_pic='-PIC' 7058 lt_prog_compiler_static='-Bstatic' 7059 ;; 7060 7061 sysv4 | sysv4.2uw2* | sysv4.3*) 7062 lt_prog_compiler_wl='-Wl,' 7063 lt_prog_compiler_pic='-KPIC' 7064 lt_prog_compiler_static='-Bstatic' 7065 ;; 7066 7067 sysv4*MP*) 7068 if test -d /usr/nec ;then 7069 lt_prog_compiler_pic='-Kconform_pic' 7070 lt_prog_compiler_static='-Bstatic' 7071 fi 7072 ;; 7073 7074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7075 lt_prog_compiler_wl='-Wl,' 7076 lt_prog_compiler_pic='-KPIC' 7077 lt_prog_compiler_static='-Bstatic' 7078 ;; 7079 7080 unicos*) 7081 lt_prog_compiler_wl='-Wl,' 7082 lt_prog_compiler_can_build_shared=no 7083 ;; 7084 7085 uts4*) 7086 lt_prog_compiler_pic='-pic' 7087 lt_prog_compiler_static='-Bstatic' 7088 ;; 7089 7090 *) 7091 lt_prog_compiler_can_build_shared=no 7092 ;; 7093 esac 7094 fi 7095 7096{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7097echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7098 7099# 7100# Check to make sure the PIC flag actually works. 7101# 7102if test -n "$lt_prog_compiler_pic"; then 7103 7104{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7105echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7106if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7107 echo $ECHO_N "(cached) $ECHO_C" >&6 7108else 7109 lt_cv_prog_compiler_pic_works=no 7110 ac_outfile=conftest.$ac_objext 7111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7113 # Insert the option either (1) after the last *FLAGS variable, or 7114 # (2) before a word containing "conftest.", or (3) at the end. 7115 # Note that $ac_compile itself does not contain backslashes and begins 7116 # with a dollar sign (not a hyphen), so the echo should work correctly. 7117 # The option is referenced via a variable to avoid confusing sed. 7118 lt_compile=`echo "$ac_compile" | $SED \ 7119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7121 -e 's:$: $lt_compiler_flag:'` 7122 (eval echo "\"\$as_me:7122: $lt_compile\"" >&5) 7123 (eval "$lt_compile" 2>conftest.err) 7124 ac_status=$? 7125 cat conftest.err >&5 7126 echo "$as_me:7126: \$? = $ac_status" >&5 7127 if (exit $ac_status) && test -s "$ac_outfile"; then 7128 # The compiler can only warn and ignore the option if not recognized 7129 # So say no if there are warnings other than the usual output. 7130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7133 lt_cv_prog_compiler_pic_works=yes 7134 fi 7135 fi 7136 $rm conftest* 7137 7138fi 7139{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7140echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7141 7142if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7143 case $lt_prog_compiler_pic in 7144 "" | " "*) ;; 7145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7146 esac 7147else 7148 lt_prog_compiler_pic= 7149 lt_prog_compiler_can_build_shared=no 7150fi 7151 7152fi 7153case $host_os in 7154 # For platforms which do not support PIC, -DPIC is meaningless: 7155 *djgpp*) 7156 lt_prog_compiler_pic= 7157 ;; 7158 *) 7159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7160 ;; 7161esac 7162 7163# 7164# Check to make sure the static flag actually works. 7165# 7166wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7167{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7168echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7169if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7170 echo $ECHO_N "(cached) $ECHO_C" >&6 7171else 7172 lt_cv_prog_compiler_static_works=no 7173 save_LDFLAGS="$LDFLAGS" 7174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7175 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7177 # The linker can only warn and ignore the option if not recognized 7178 # So say no if there are warnings 7179 if test -s conftest.err; then 7180 # Append any errors to the config.log. 7181 cat conftest.err 1>&5 7182 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7184 if diff conftest.exp conftest.er2 >/dev/null; then 7185 lt_cv_prog_compiler_static_works=yes 7186 fi 7187 else 7188 lt_cv_prog_compiler_static_works=yes 7189 fi 7190 fi 7191 $rm -r conftest* 7192 LDFLAGS="$save_LDFLAGS" 7193 7194fi 7195{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7196echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7197 7198if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7199 : 7200else 7201 lt_prog_compiler_static= 7202fi 7203 7204 7205{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7206echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7207if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7208 echo $ECHO_N "(cached) $ECHO_C" >&6 7209else 7210 lt_cv_prog_compiler_c_o=no 7211 $rm -r conftest 2>/dev/null 7212 mkdir conftest 7213 cd conftest 7214 mkdir out 7215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7216 7217 lt_compiler_flag="-o out/conftest2.$ac_objext" 7218 # Insert the option either (1) after the last *FLAGS variable, or 7219 # (2) before a word containing "conftest.", or (3) at the end. 7220 # Note that $ac_compile itself does not contain backslashes and begins 7221 # with a dollar sign (not a hyphen), so the echo should work correctly. 7222 lt_compile=`echo "$ac_compile" | $SED \ 7223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7225 -e 's:$: $lt_compiler_flag:'` 7226 (eval echo "\"\$as_me:7226: $lt_compile\"" >&5) 7227 (eval "$lt_compile" 2>out/conftest.err) 7228 ac_status=$? 7229 cat out/conftest.err >&5 7230 echo "$as_me:7230: \$? = $ac_status" >&5 7231 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7232 then 7233 # The compiler can only warn and ignore the option if not recognized 7234 # So say no if there are warnings 7235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7238 lt_cv_prog_compiler_c_o=yes 7239 fi 7240 fi 7241 chmod u+w . 2>&5 7242 $rm conftest* 7243 # SGI C++ compiler will create directory out/ii_files/ for 7244 # template instantiation 7245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7246 $rm out/* && rmdir out 7247 cd .. 7248 rmdir conftest 7249 $rm conftest* 7250 7251fi 7252{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7253echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7254 7255 7256hard_links="nottested" 7257if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7258 # do not overwrite the value of need_locks provided by the user 7259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7260echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7261 hard_links=yes 7262 $rm conftest* 7263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7264 touch conftest.a 7265 ln conftest.a conftest.b 2>&5 || hard_links=no 7266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7267 { echo "$as_me:$LINENO: result: $hard_links" >&5 7268echo "${ECHO_T}$hard_links" >&6; } 7269 if test "$hard_links" = no; then 7270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7271echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7272 need_locks=warn 7273 fi 7274else 7275 need_locks=no 7276fi 7277 7278{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7280 7281 runpath_var= 7282 allow_undefined_flag= 7283 enable_shared_with_static_runtimes=no 7284 archive_cmds= 7285 archive_expsym_cmds= 7286 old_archive_From_new_cmds= 7287 old_archive_from_expsyms_cmds= 7288 export_dynamic_flag_spec= 7289 whole_archive_flag_spec= 7290 thread_safe_flag_spec= 7291 hardcode_libdir_flag_spec= 7292 hardcode_libdir_flag_spec_ld= 7293 hardcode_libdir_separator= 7294 hardcode_direct=no 7295 hardcode_minus_L=no 7296 hardcode_shlibpath_var=unsupported 7297 link_all_deplibs=unknown 7298 hardcode_automatic=no 7299 module_cmds= 7300 module_expsym_cmds= 7301 always_export_symbols=no 7302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7303 # include_expsyms should be a list of space-separated symbols to be *always* 7304 # included in the symbol list 7305 include_expsyms= 7306 # exclude_expsyms can be an extended regexp of symbols to exclude 7307 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7309 # as well as any symbol that contains `d'. 7310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7312 # platforms (ab)use it in PIC code, but their linkers get confused if 7313 # the symbol is explicitly referenced. Since portable code cannot 7314 # rely on this symbol name, it's probably fine to never include it in 7315 # preloaded symbol tables. 7316 # Exclude shared library initialization/finalization symbols. 7317 extract_expsyms_cmds= 7318 # Just being paranoid about ensuring that cc_basename is set. 7319 for cc_temp in $compiler""; do 7320 case $cc_temp in 7321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7323 \-*) ;; 7324 *) break;; 7325 esac 7326done 7327cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7328 7329 case $host_os in 7330 cygwin* | mingw* | pw32*) 7331 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7332 # When not using gcc, we currently assume that we are using 7333 # Microsoft Visual C++. 7334 if test "$GCC" != yes; then 7335 with_gnu_ld=no 7336 fi 7337 ;; 7338 interix*) 7339 # we just hope/assume this is gcc and not c89 (= MSVC++) 7340 with_gnu_ld=yes 7341 ;; 7342 openbsd*) 7343 with_gnu_ld=no 7344 ;; 7345 esac 7346 7347 ld_shlibs=yes 7348 if test "$with_gnu_ld" = yes; then 7349 # If archive_cmds runs LD, not CC, wlarc should be empty 7350 wlarc='${wl}' 7351 7352 # Set some defaults for GNU ld with shared library support. These 7353 # are reset later if shared libraries are not supported. Putting them 7354 # here allows them to be overridden if necessary. 7355 runpath_var=LD_RUN_PATH 7356 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7357 export_dynamic_flag_spec='${wl}--export-dynamic' 7358 # ancient GNU ld didn't support --whole-archive et. al. 7359 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7360 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7361 else 7362 whole_archive_flag_spec= 7363 fi 7364 supports_anon_versioning=no 7365 case `$LD -v 2>/dev/null` in 7366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7369 *\ 2.11.*) ;; # other 2.11 versions 7370 *) supports_anon_versioning=yes ;; 7371 esac 7372 7373 # See if GNU ld supports shared libraries. 7374 case $host_os in 7375 aix[3-9]*) 7376 # On AIX/PPC, the GNU linker is very broken 7377 if test "$host_cpu" != ia64; then 7378 ld_shlibs=no 7379 cat <<EOF 1>&2 7380 7381*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7382*** to be unable to reliably create shared libraries on AIX. 7383*** Therefore, libtool is disabling shared libraries support. If you 7384*** really care for shared libraries, you may want to modify your PATH 7385*** so that a non-GNU linker is found, and then restart. 7386 7387EOF 7388 fi 7389 ;; 7390 7391 amigaos*) 7392 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)' 7393 hardcode_libdir_flag_spec='-L$libdir' 7394 hardcode_minus_L=yes 7395 7396 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7397 # that the semantics of dynamic libraries on AmigaOS, at least up 7398 # to version 4, is to share data among multiple programs linked 7399 # with the same dynamic library. Since this doesn't match the 7400 # behavior of shared libraries on other platforms, we can't use 7401 # them. 7402 ld_shlibs=no 7403 ;; 7404 7405 beos*) 7406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7407 allow_undefined_flag=unsupported 7408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7409 # support --undefined. This deserves some investigation. FIXME 7410 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7411 else 7412 ld_shlibs=no 7413 fi 7414 ;; 7415 7416 cygwin* | mingw* | pw32*) 7417 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7418 # as there is no search path for DLLs. 7419 hardcode_libdir_flag_spec='-L$libdir' 7420 allow_undefined_flag=unsupported 7421 always_export_symbols=no 7422 enable_shared_with_static_runtimes=yes 7423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7424 7425 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7427 # If the export-symbols file already is a .def file (1st line 7428 # is EXPORTS), use it as is; otherwise, prepend... 7429 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7430 cp $export_symbols $output_objdir/$soname.def; 7431 else 7432 echo EXPORTS > $output_objdir/$soname.def; 7433 cat $export_symbols >> $output_objdir/$soname.def; 7434 fi~ 7435 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7436 else 7437 ld_shlibs=no 7438 fi 7439 ;; 7440 7441 interix[3-9]*) 7442 hardcode_direct=no 7443 hardcode_shlibpath_var=no 7444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7445 export_dynamic_flag_spec='${wl}-E' 7446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7447 # Instead, shared libraries are loaded at an image base (0x10000000 by 7448 # default) and relocated if they conflict, which is a slow very memory 7449 # consuming and fragmenting process. To avoid this, we pick a random, 7450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7451 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7453 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' 7454 ;; 7455 7456 gnu* | linux* | k*bsd*-gnu) 7457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7458 tmp_addflag= 7459 case $cc_basename,$host_cpu in 7460 pgcc*) # Portland Group C compiler 7461 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' 7462 tmp_addflag=' $pic_flag' 7463 ;; 7464 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7465 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' 7466 tmp_addflag=' $pic_flag -Mnomain' ;; 7467 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7468 tmp_addflag=' -i_dynamic' ;; 7469 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7470 tmp_addflag=' -i_dynamic -nofor_main' ;; 7471 ifc* | ifort*) # Intel Fortran compiler 7472 tmp_addflag=' -nofor_main' ;; 7473 esac 7474 case `$CC -V 2>&1 | sed 5q` in 7475 *Sun\ C*) # Sun C 5.9 7476 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7477 tmp_sharedflag='-G' ;; 7478 *Sun\ F*) # Sun Fortran 8.3 7479 tmp_sharedflag='-G' ;; 7480 *) 7481 tmp_sharedflag='-shared' ;; 7482 esac 7483 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7484 7485 if test $supports_anon_versioning = yes; then 7486 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7488 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7489 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7490 fi 7491 else 7492 ld_shlibs=no 7493 fi 7494 ;; 7495 7496 netbsd*) 7497 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7498 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7499 wlarc= 7500 else 7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7503 fi 7504 ;; 7505 7506 solaris*) 7507 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7508 ld_shlibs=no 7509 cat <<EOF 1>&2 7510 7511*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7512*** create shared libraries on Solaris systems. Therefore, libtool 7513*** is disabling shared libraries support. We urge you to upgrade GNU 7514*** binutils to release 2.9.1 or newer. Another option is to modify 7515*** your PATH or compiler configuration so that the native linker is 7516*** used, and then restart. 7517 7518EOF 7519 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7522 else 7523 ld_shlibs=no 7524 fi 7525 ;; 7526 7527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7528 case `$LD -v 2>&1` in 7529 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7530 ld_shlibs=no 7531 cat <<_LT_EOF 1>&2 7532 7533*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7534*** reliably create shared libraries on SCO systems. Therefore, libtool 7535*** is disabling shared libraries support. We urge you to upgrade GNU 7536*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7537*** your PATH or compiler configuration so that the native linker is 7538*** used, and then restart. 7539 7540_LT_EOF 7541 ;; 7542 *) 7543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7544 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7547 else 7548 ld_shlibs=no 7549 fi 7550 ;; 7551 esac 7552 ;; 7553 7554 sunos4*) 7555 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7556 wlarc= 7557 hardcode_direct=yes 7558 hardcode_shlibpath_var=no 7559 ;; 7560 7561 *) 7562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7565 else 7566 ld_shlibs=no 7567 fi 7568 ;; 7569 esac 7570 7571 if test "$ld_shlibs" = no; then 7572 runpath_var= 7573 hardcode_libdir_flag_spec= 7574 export_dynamic_flag_spec= 7575 whole_archive_flag_spec= 7576 fi 7577 else 7578 # PORTME fill in a description of your system's linker (not GNU ld) 7579 case $host_os in 7580 aix3*) 7581 allow_undefined_flag=unsupported 7582 always_export_symbols=yes 7583 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' 7584 # Note: this linker hardcodes the directories in LIBPATH if there 7585 # are no directories specified by -L. 7586 hardcode_minus_L=yes 7587 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7588 # Neither direct hardcoding nor static linking is supported with a 7589 # broken collect2. 7590 hardcode_direct=unsupported 7591 fi 7592 ;; 7593 7594 aix[4-9]*) 7595 if test "$host_cpu" = ia64; then 7596 # On IA64, the linker does run time linking by default, so we don't 7597 # have to do anything special. 7598 aix_use_runtimelinking=no 7599 exp_sym_flag='-Bexport' 7600 no_entry_flag="" 7601 else 7602 # If we're using GNU nm, then we don't want the "-C" option. 7603 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7604 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7605 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' 7606 else 7607 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' 7608 fi 7609 aix_use_runtimelinking=no 7610 7611 # Test if we are trying to use run time linking or normal 7612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7613 # need to do runtime linking. 7614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7615 for ld_flag in $LDFLAGS; do 7616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7617 aix_use_runtimelinking=yes 7618 break 7619 fi 7620 done 7621 ;; 7622 esac 7623 7624 exp_sym_flag='-bexport' 7625 no_entry_flag='-bnoentry' 7626 fi 7627 7628 # When large executables or shared objects are built, AIX ld can 7629 # have problems creating the table of contents. If linking a library 7630 # or program results in "error TOC overflow" add -mminimal-toc to 7631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7633 7634 archive_cmds='' 7635 hardcode_direct=yes 7636 hardcode_libdir_separator=':' 7637 link_all_deplibs=yes 7638 7639 if test "$GCC" = yes; then 7640 case $host_os in aix4.[012]|aix4.[012].*) 7641 # We only want to do this on AIX 4.2 and lower, the check 7642 # below for broken collect2 doesn't work under 4.3+ 7643 collect2name=`${CC} -print-prog-name=collect2` 7644 if test -f "$collect2name" && \ 7645 strings "$collect2name" | grep resolve_lib_name >/dev/null 7646 then 7647 # We have reworked collect2 7648 : 7649 else 7650 # We have old collect2 7651 hardcode_direct=unsupported 7652 # It fails to find uninstalled libraries when the uninstalled 7653 # path is not listed in the libpath. Setting hardcode_minus_L 7654 # to unsupported forces relinking 7655 hardcode_minus_L=yes 7656 hardcode_libdir_flag_spec='-L$libdir' 7657 hardcode_libdir_separator= 7658 fi 7659 ;; 7660 esac 7661 shared_flag='-shared' 7662 if test "$aix_use_runtimelinking" = yes; then 7663 shared_flag="$shared_flag "'${wl}-G' 7664 fi 7665 else 7666 # not using gcc 7667 if test "$host_cpu" = ia64; then 7668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7669 # chokes on -Wl,-G. The following line is correct: 7670 shared_flag='-G' 7671 else 7672 if test "$aix_use_runtimelinking" = yes; then 7673 shared_flag='${wl}-G' 7674 else 7675 shared_flag='${wl}-bM:SRE' 7676 fi 7677 fi 7678 fi 7679 7680 # It seems that -bexpall does not export symbols beginning with 7681 # underscore (_), so it is better to generate a list of symbols to export. 7682 always_export_symbols=yes 7683 if test "$aix_use_runtimelinking" = yes; then 7684 # Warning - without using the other runtime loading flags (-brtl), 7685 # -berok will link without error, but may produce a broken library. 7686 allow_undefined_flag='-berok' 7687 # Determine the default libpath from the value encoded in an empty executable. 7688 cat >conftest.$ac_ext <<_ACEOF 7689/* confdefs.h. */ 7690_ACEOF 7691cat confdefs.h >>conftest.$ac_ext 7692cat >>conftest.$ac_ext <<_ACEOF 7693/* end confdefs.h. */ 7694 7695int 7696main () 7697{ 7698 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703rm -f conftest.$ac_objext conftest$ac_exeext 7704if { (ac_try="$ac_link" 7705case "(($ac_try" in 7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7707 *) ac_try_echo=$ac_try;; 7708esac 7709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7710 (eval "$ac_link") 2>conftest.er1 7711 ac_status=$? 7712 grep -v '^ *+' conftest.er1 >conftest.err 7713 rm -f conftest.er1 7714 cat conftest.err >&5 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); } && { 7717 test -z "$ac_c_werror_flag" || 7718 test ! -s conftest.err 7719 } && test -s conftest$ac_exeext && 7720 $as_test_x conftest$ac_exeext; then 7721 7722lt_aix_libpath_sed=' 7723 /Import File Strings/,/^$/ { 7724 /^0/ { 7725 s/^0 *\(.*\)$/\1/ 7726 p 7727 } 7728 }' 7729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7730# Check for a 64-bit object if we didn't find anything. 7731if test -z "$aix_libpath"; then 7732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7733fi 7734else 7735 echo "$as_me: failed program was:" >&5 7736sed 's/^/| /' conftest.$ac_ext >&5 7737 7738 7739fi 7740 7741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7742 conftest$ac_exeext conftest.$ac_ext 7743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7744 7745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7746 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" 7747 else 7748 if test "$host_cpu" = ia64; then 7749 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7750 allow_undefined_flag="-z nodefs" 7751 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" 7752 else 7753 # Determine the default libpath from the value encoded in an empty executable. 7754 cat >conftest.$ac_ext <<_ACEOF 7755/* confdefs.h. */ 7756_ACEOF 7757cat confdefs.h >>conftest.$ac_ext 7758cat >>conftest.$ac_ext <<_ACEOF 7759/* end confdefs.h. */ 7760 7761int 7762main () 7763{ 7764 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769rm -f conftest.$ac_objext conftest$ac_exeext 7770if { (ac_try="$ac_link" 7771case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774esac 7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7776 (eval "$ac_link") 2>conftest.er1 7777 ac_status=$? 7778 grep -v '^ *+' conftest.er1 >conftest.err 7779 rm -f conftest.er1 7780 cat conftest.err >&5 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && { 7783 test -z "$ac_c_werror_flag" || 7784 test ! -s conftest.err 7785 } && test -s conftest$ac_exeext && 7786 $as_test_x conftest$ac_exeext; then 7787 7788lt_aix_libpath_sed=' 7789 /Import File Strings/,/^$/ { 7790 /^0/ { 7791 s/^0 *\(.*\)$/\1/ 7792 p 7793 } 7794 }' 7795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7796# Check for a 64-bit object if we didn't find anything. 7797if test -z "$aix_libpath"; then 7798 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7799fi 7800else 7801 echo "$as_me: failed program was:" >&5 7802sed 's/^/| /' conftest.$ac_ext >&5 7803 7804 7805fi 7806 7807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7808 conftest$ac_exeext conftest.$ac_ext 7809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7810 7811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7812 # Warning - without using the other run time loading flags, 7813 # -berok will link without error, but may produce a broken library. 7814 no_undefined_flag=' ${wl}-bernotok' 7815 allow_undefined_flag=' ${wl}-berok' 7816 # Exported symbols can be pulled into shared objects from archives 7817 whole_archive_flag_spec='$convenience' 7818 archive_cmds_need_lc=yes 7819 # This is similar to how AIX traditionally builds its shared libraries. 7820 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' 7821 fi 7822 fi 7823 ;; 7824 7825 amigaos*) 7826 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)' 7827 hardcode_libdir_flag_spec='-L$libdir' 7828 hardcode_minus_L=yes 7829 # see comment about different semantics on the GNU ld section 7830 ld_shlibs=no 7831 ;; 7832 7833 bsdi[45]*) 7834 export_dynamic_flag_spec=-rdynamic 7835 ;; 7836 7837 cygwin* | mingw* | pw32*) 7838 # When not using gcc, we currently assume that we are using 7839 # Microsoft Visual C++. 7840 # hardcode_libdir_flag_spec is actually meaningless, as there is 7841 # no search path for DLLs. 7842 hardcode_libdir_flag_spec=' ' 7843 allow_undefined_flag=unsupported 7844 # Tell ltmain to make .lib files, not .a files. 7845 libext=lib 7846 # Tell ltmain to make .dll files, not .so files. 7847 shrext_cmds=".dll" 7848 # FIXME: Setting linknames here is a bad hack. 7849 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7850 # The linker will automatically build a .lib file if we build a DLL. 7851 old_archive_From_new_cmds='true' 7852 # FIXME: Should let the user specify the lib program. 7853 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7854 fix_srcfile_path='`cygpath -w "$srcfile"`' 7855 enable_shared_with_static_runtimes=yes 7856 ;; 7857 7858 darwin* | rhapsody*) 7859 case $host_os in 7860 rhapsody* | darwin1.[012]) 7861 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7862 ;; 7863 *) # Darwin 1.3 on 7864 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7865 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7866 else 7867 case ${MACOSX_DEPLOYMENT_TARGET} in 7868 10.[012]) 7869 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7870 ;; 7871 10.*) 7872 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7873 ;; 7874 esac 7875 fi 7876 ;; 7877 esac 7878 archive_cmds_need_lc=no 7879 hardcode_direct=no 7880 hardcode_automatic=yes 7881 hardcode_shlibpath_var=unsupported 7882 whole_archive_flag_spec='' 7883 link_all_deplibs=yes 7884 if test "$GCC" = yes ; then 7885 output_verbose_link_cmd='echo' 7886 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 7887 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 7888 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 7889 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 7890 else 7891 case $cc_basename in 7892 xlc*) 7893 output_verbose_link_cmd='echo' 7894 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 7895 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7896 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7897 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7898 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}' 7899 ;; 7900 *) 7901 ld_shlibs=no 7902 ;; 7903 esac 7904 fi 7905 ;; 7906 7907 dgux*) 7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7909 hardcode_libdir_flag_spec='-L$libdir' 7910 hardcode_shlibpath_var=no 7911 ;; 7912 7913 freebsd1*) 7914 ld_shlibs=no 7915 ;; 7916 7917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7918 # support. Future versions do this automatically, but an explicit c++rt0.o 7919 # does not break anything, and helps significantly (at the cost of a little 7920 # extra space). 7921 freebsd2.2*) 7922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7923 hardcode_libdir_flag_spec='-R$libdir' 7924 hardcode_direct=yes 7925 hardcode_shlibpath_var=no 7926 ;; 7927 7928 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7929 freebsd2*) 7930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7931 hardcode_direct=yes 7932 hardcode_minus_L=yes 7933 hardcode_shlibpath_var=no 7934 ;; 7935 7936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7937 freebsd* | dragonfly*) 7938 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7939 hardcode_libdir_flag_spec='-R$libdir' 7940 hardcode_direct=yes 7941 hardcode_shlibpath_var=no 7942 ;; 7943 7944 hpux9*) 7945 if test "$GCC" = yes; then 7946 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' 7947 else 7948 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' 7949 fi 7950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7951 hardcode_libdir_separator=: 7952 hardcode_direct=yes 7953 7954 # hardcode_minus_L: Not really in the search PATH, 7955 # but as the default location of the library. 7956 hardcode_minus_L=yes 7957 export_dynamic_flag_spec='${wl}-E' 7958 ;; 7959 7960 hpux10*) 7961 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7963 else 7964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7965 fi 7966 if test "$with_gnu_ld" = no; then 7967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7968 hardcode_libdir_separator=: 7969 7970 hardcode_direct=yes 7971 export_dynamic_flag_spec='${wl}-E' 7972 7973 # hardcode_minus_L: Not really in the search PATH, 7974 # but as the default location of the library. 7975 hardcode_minus_L=yes 7976 fi 7977 ;; 7978 7979 hpux11*) 7980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7981 case $host_cpu in 7982 hppa*64*) 7983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7984 ;; 7985 ia64*) 7986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7987 ;; 7988 *) 7989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7990 ;; 7991 esac 7992 else 7993 case $host_cpu in 7994 hppa*64*) 7995 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7996 ;; 7997 ia64*) 7998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7999 ;; 8000 *) 8001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8002 ;; 8003 esac 8004 fi 8005 if test "$with_gnu_ld" = no; then 8006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8007 hardcode_libdir_separator=: 8008 8009 case $host_cpu in 8010 hppa*64*|ia64*) 8011 hardcode_libdir_flag_spec_ld='+b $libdir' 8012 hardcode_direct=no 8013 hardcode_shlibpath_var=no 8014 ;; 8015 *) 8016 hardcode_direct=yes 8017 export_dynamic_flag_spec='${wl}-E' 8018 8019 # hardcode_minus_L: Not really in the search PATH, 8020 # but as the default location of the library. 8021 hardcode_minus_L=yes 8022 ;; 8023 esac 8024 fi 8025 ;; 8026 8027 irix5* | irix6* | nonstopux*) 8028 if test "$GCC" = yes; then 8029 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' 8030 else 8031 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' 8032 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8033 fi 8034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8035 hardcode_libdir_separator=: 8036 link_all_deplibs=yes 8037 ;; 8038 8039 netbsd*) 8040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8042 else 8043 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8044 fi 8045 hardcode_libdir_flag_spec='-R$libdir' 8046 hardcode_direct=yes 8047 hardcode_shlibpath_var=no 8048 ;; 8049 8050 newsos6) 8051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8052 hardcode_direct=yes 8053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8054 hardcode_libdir_separator=: 8055 hardcode_shlibpath_var=no 8056 ;; 8057 8058 openbsd*) 8059 if test -f /usr/libexec/ld.so; then 8060 hardcode_direct=yes 8061 hardcode_shlibpath_var=no 8062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8064 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8066 export_dynamic_flag_spec='${wl}-E' 8067 else 8068 case $host_os in 8069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8071 hardcode_libdir_flag_spec='-R$libdir' 8072 ;; 8073 *) 8074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8076 ;; 8077 esac 8078 fi 8079 else 8080 ld_shlibs=no 8081 fi 8082 ;; 8083 8084 os2*) 8085 hardcode_libdir_flag_spec='-L$libdir' 8086 hardcode_minus_L=yes 8087 allow_undefined_flag=unsupported 8088 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' 8089 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8090 ;; 8091 8092 osf3*) 8093 if test "$GCC" = yes; then 8094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8095 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' 8096 else 8097 allow_undefined_flag=' -expect_unresolved \*' 8098 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' 8099 fi 8100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8101 hardcode_libdir_separator=: 8102 ;; 8103 8104 osf4* | osf5*) # as osf3* with the addition of -msym flag 8105 if test "$GCC" = yes; then 8106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8107 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' 8108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8109 else 8110 allow_undefined_flag=' -expect_unresolved \*' 8111 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' 8112 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8113 $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' 8114 8115 # Both c and cxx compiler support -rpath directly 8116 hardcode_libdir_flag_spec='-rpath $libdir' 8117 fi 8118 hardcode_libdir_separator=: 8119 ;; 8120 8121 solaris*) 8122 no_undefined_flag=' -z text' 8123 if test "$GCC" = yes; then 8124 wlarc='${wl}' 8125 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8126 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8127 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8128 else 8129 wlarc='' 8130 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8131 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8132 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8133 fi 8134 hardcode_libdir_flag_spec='-R$libdir' 8135 hardcode_shlibpath_var=no 8136 case $host_os in 8137 solaris2.[0-5] | solaris2.[0-5].*) ;; 8138 *) 8139 # The compiler driver will combine and reorder linker options, 8140 # but understands `-z linker_flag'. GCC discards it without `$wl', 8141 # but is careful enough not to reorder. 8142 # Supported since Solaris 2.6 (maybe 2.5.1?) 8143 if test "$GCC" = yes; then 8144 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8145 else 8146 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8147 fi 8148 ;; 8149 esac 8150 link_all_deplibs=yes 8151 ;; 8152 8153 sunos4*) 8154 if test "x$host_vendor" = xsequent; then 8155 # Use $CC to link under sequent, because it throws in some extra .o 8156 # files that make .init and .fini sections work. 8157 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8158 else 8159 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8160 fi 8161 hardcode_libdir_flag_spec='-L$libdir' 8162 hardcode_direct=yes 8163 hardcode_minus_L=yes 8164 hardcode_shlibpath_var=no 8165 ;; 8166 8167 sysv4) 8168 case $host_vendor in 8169 sni) 8170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8171 hardcode_direct=yes # is this really true??? 8172 ;; 8173 siemens) 8174 ## LD is ld it makes a PLAMLIB 8175 ## CC just makes a GrossModule. 8176 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8177 reload_cmds='$CC -r -o $output$reload_objs' 8178 hardcode_direct=no 8179 ;; 8180 motorola) 8181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8182 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8183 ;; 8184 esac 8185 runpath_var='LD_RUN_PATH' 8186 hardcode_shlibpath_var=no 8187 ;; 8188 8189 sysv4.3*) 8190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8191 hardcode_shlibpath_var=no 8192 export_dynamic_flag_spec='-Bexport' 8193 ;; 8194 8195 sysv4*MP*) 8196 if test -d /usr/nec; then 8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8198 hardcode_shlibpath_var=no 8199 runpath_var=LD_RUN_PATH 8200 hardcode_runpath_var=yes 8201 ld_shlibs=yes 8202 fi 8203 ;; 8204 8205 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8206 no_undefined_flag='${wl}-z,text' 8207 archive_cmds_need_lc=no 8208 hardcode_shlibpath_var=no 8209 runpath_var='LD_RUN_PATH' 8210 8211 if test "$GCC" = yes; then 8212 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8213 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8214 else 8215 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8216 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8217 fi 8218 ;; 8219 8220 sysv5* | sco3.2v5* | sco5v6*) 8221 # Note: We can NOT use -z defs as we might desire, because we do not 8222 # link with -lc, and that would cause any symbols used from libc to 8223 # always be unresolved, which means just about no library would 8224 # ever link correctly. If we're not using GNU ld we use -z text 8225 # though, which does catch some bad symbols but isn't as heavy-handed 8226 # as -z defs. 8227 no_undefined_flag='${wl}-z,text' 8228 allow_undefined_flag='${wl}-z,nodefs' 8229 archive_cmds_need_lc=no 8230 hardcode_shlibpath_var=no 8231 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8232 hardcode_libdir_separator=':' 8233 link_all_deplibs=yes 8234 export_dynamic_flag_spec='${wl}-Bexport' 8235 runpath_var='LD_RUN_PATH' 8236 8237 if test "$GCC" = yes; then 8238 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8240 else 8241 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8243 fi 8244 ;; 8245 8246 uts4*) 8247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8248 hardcode_libdir_flag_spec='-L$libdir' 8249 hardcode_shlibpath_var=no 8250 ;; 8251 8252 *) 8253 ld_shlibs=no 8254 ;; 8255 esac 8256 fi 8257 8258{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8259echo "${ECHO_T}$ld_shlibs" >&6; } 8260test "$ld_shlibs" = no && can_build_shared=no 8261 8262# 8263# Do we need to explicitly link libc? 8264# 8265case "x$archive_cmds_need_lc" in 8266x|xyes) 8267 # Assume -lc should be added 8268 archive_cmds_need_lc=yes 8269 8270 if test "$enable_shared" = yes && test "$GCC" = yes; then 8271 case $archive_cmds in 8272 *'~'*) 8273 # FIXME: we may have to deal with multi-command sequences. 8274 ;; 8275 '$CC '*) 8276 # Test whether the compiler implicitly links with -lc since on some 8277 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8278 # to ld, don't add -lc before -lgcc. 8279 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8280echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8281 $rm conftest* 8282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8283 8284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8285 (eval $ac_compile) 2>&5 8286 ac_status=$? 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 (exit $ac_status); } 2>conftest.err; then 8289 soname=conftest 8290 lib=conftest 8291 libobjs=conftest.$ac_objext 8292 deplibs= 8293 wl=$lt_prog_compiler_wl 8294 pic_flag=$lt_prog_compiler_pic 8295 compiler_flags=-v 8296 linker_flags=-v 8297 verstring= 8298 output_objdir=. 8299 libname=conftest 8300 lt_save_allow_undefined_flag=$allow_undefined_flag 8301 allow_undefined_flag= 8302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8303 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8304 ac_status=$? 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8306 (exit $ac_status); } 8307 then 8308 archive_cmds_need_lc=no 8309 else 8310 archive_cmds_need_lc=yes 8311 fi 8312 allow_undefined_flag=$lt_save_allow_undefined_flag 8313 else 8314 cat conftest.err 1>&5 8315 fi 8316 $rm conftest* 8317 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8318echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8319 ;; 8320 esac 8321 fi 8322 ;; 8323esac 8324 8325{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8327library_names_spec= 8328libname_spec='lib$name' 8329soname_spec= 8330shrext_cmds=".so" 8331postinstall_cmds= 8332postuninstall_cmds= 8333finish_cmds= 8334finish_eval= 8335shlibpath_var= 8336shlibpath_overrides_runpath=unknown 8337version_type=none 8338dynamic_linker="$host_os ld.so" 8339sys_lib_dlsearch_path_spec="/lib /usr/lib" 8340 8341if test "$GCC" = yes; then 8342 case $host_os in 8343 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8344 *) lt_awk_arg="/^libraries:/" ;; 8345 esac 8346 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8347 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8348 # if the path contains ";" then we assume it to be the separator 8349 # otherwise default to the standard path separator (i.e. ":") - it is 8350 # assumed that no part of a normal pathname contains ";" but that should 8351 # okay in the real world where ";" in dirpaths is itself problematic. 8352 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8353 else 8354 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8355 fi 8356 # Ok, now we have the path, separated by spaces, we can step through it 8357 # and add multilib dir if necessary. 8358 lt_tmp_lt_search_path_spec= 8359 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8360 for lt_sys_path in $lt_search_path_spec; do 8361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8363 else 8364 test -d "$lt_sys_path" && \ 8365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8366 fi 8367 done 8368 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8369BEGIN {RS=" "; FS="/|\n";} { 8370 lt_foo=""; 8371 lt_count=0; 8372 for (lt_i = NF; lt_i > 0; lt_i--) { 8373 if ($lt_i != "" && $lt_i != ".") { 8374 if ($lt_i == "..") { 8375 lt_count++; 8376 } else { 8377 if (lt_count == 0) { 8378 lt_foo="/" $lt_i lt_foo; 8379 } else { 8380 lt_count--; 8381 } 8382 } 8383 } 8384 } 8385 if (lt_foo != "") { lt_freq[lt_foo]++; } 8386 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8387}'` 8388 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8389else 8390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8391fi 8392need_lib_prefix=unknown 8393hardcode_into_libs=no 8394 8395# when you set need_version to no, make sure it does not cause -set_version 8396# flags to be left without arguments 8397need_version=unknown 8398 8399case $host_os in 8400aix3*) 8401 version_type=linux 8402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8403 shlibpath_var=LIBPATH 8404 8405 # AIX 3 has no versioning support, so we append a major version to the name. 8406 soname_spec='${libname}${release}${shared_ext}$major' 8407 ;; 8408 8409aix[4-9]*) 8410 version_type=linux 8411 need_lib_prefix=no 8412 need_version=no 8413 hardcode_into_libs=yes 8414 if test "$host_cpu" = ia64; then 8415 # AIX 5 supports IA64 8416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8417 shlibpath_var=LD_LIBRARY_PATH 8418 else 8419 # With GCC up to 2.95.x, collect2 would create an import file 8420 # for dependence libraries. The import file would start with 8421 # the line `#! .'. This would cause the generated library to 8422 # depend on `.', always an invalid library. This was fixed in 8423 # development snapshots of GCC prior to 3.0. 8424 case $host_os in 8425 aix4 | aix4.[01] | aix4.[01].*) 8426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8427 echo ' yes ' 8428 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8429 : 8430 else 8431 can_build_shared=no 8432 fi 8433 ;; 8434 esac 8435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8436 # soname into executable. Probably we can add versioning support to 8437 # collect2, so additional links can be useful in future. 8438 if test "$aix_use_runtimelinking" = yes; then 8439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8440 # instead of lib<name>.a to let people know that these are not 8441 # typical AIX shared libraries. 8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8443 else 8444 # We preserve .a as extension for shared libraries through AIX4.2 8445 # and later when we are not doing run time linking. 8446 library_names_spec='${libname}${release}.a $libname.a' 8447 soname_spec='${libname}${release}${shared_ext}$major' 8448 fi 8449 shlibpath_var=LIBPATH 8450 fi 8451 ;; 8452 8453amigaos*) 8454 library_names_spec='$libname.ixlibrary $libname.a' 8455 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8456 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' 8457 ;; 8458 8459beos*) 8460 library_names_spec='${libname}${shared_ext}' 8461 dynamic_linker="$host_os ld.so" 8462 shlibpath_var=LIBRARY_PATH 8463 ;; 8464 8465bsdi[45]*) 8466 version_type=linux 8467 need_version=no 8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8469 soname_spec='${libname}${release}${shared_ext}$major' 8470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8471 shlibpath_var=LD_LIBRARY_PATH 8472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8474 # the default ld.so.conf also contains /usr/contrib/lib and 8475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8476 # libtool to hard-code these into programs 8477 ;; 8478 8479cygwin* | mingw* | pw32*) 8480 version_type=windows 8481 shrext_cmds=".dll" 8482 need_version=no 8483 need_lib_prefix=no 8484 8485 case $GCC,$host_os in 8486 yes,cygwin* | yes,mingw* | yes,pw32*) 8487 library_names_spec='$libname.dll.a' 8488 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8489 postinstall_cmds='base_file=`basename \${file}`~ 8490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8491 dldir=$destdir/`dirname \$dlpath`~ 8492 test -d \$dldir || mkdir -p \$dldir~ 8493 $install_prog $dir/$dlname \$dldir/$dlname~ 8494 chmod a+x \$dldir/$dlname' 8495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8496 dlpath=$dir/\$dldll~ 8497 $rm \$dlpath' 8498 shlibpath_overrides_runpath=yes 8499 8500 case $host_os in 8501 cygwin*) 8502 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8505 ;; 8506 mingw*) 8507 # MinGW DLLs use traditional 'lib' prefix 8508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8511 # It is most probably a Windows format PATH printed by 8512 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8513 # path with ; separators, and with drive letters. We can handle the 8514 # drive letters (cygwin fileutils understands them), so leave them, 8515 # especially as we might pass files found there to a mingw objdump, 8516 # which wouldn't understand a cygwinified path. Ahh. 8517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8518 else 8519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8520 fi 8521 ;; 8522 pw32*) 8523 # pw32 DLLs use 'pw' prefix rather than 'lib' 8524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8525 ;; 8526 esac 8527 ;; 8528 8529 *) 8530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8531 ;; 8532 esac 8533 dynamic_linker='Win32 ld.exe' 8534 # FIXME: first we should search . and the directory the executable is in 8535 shlibpath_var=PATH 8536 ;; 8537 8538darwin* | rhapsody*) 8539 dynamic_linker="$host_os dyld" 8540 version_type=darwin 8541 need_lib_prefix=no 8542 need_version=no 8543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8544 soname_spec='${libname}${release}${major}$shared_ext' 8545 shlibpath_overrides_runpath=yes 8546 shlibpath_var=DYLD_LIBRARY_PATH 8547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8548 8549 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8551 ;; 8552 8553dgux*) 8554 version_type=linux 8555 need_lib_prefix=no 8556 need_version=no 8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8558 soname_spec='${libname}${release}${shared_ext}$major' 8559 shlibpath_var=LD_LIBRARY_PATH 8560 ;; 8561 8562freebsd1*) 8563 dynamic_linker=no 8564 ;; 8565 8566freebsd* | dragonfly*) 8567 # DragonFly does not have aout. When/if they implement a new 8568 # versioning mechanism, adjust this. 8569 if test -x /usr/bin/objformat; then 8570 objformat=`/usr/bin/objformat` 8571 else 8572 case $host_os in 8573 freebsd[123]*) objformat=aout ;; 8574 *) objformat=elf ;; 8575 esac 8576 fi 8577 version_type=freebsd-$objformat 8578 case $version_type in 8579 freebsd-elf*) 8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8581 need_version=no 8582 need_lib_prefix=no 8583 ;; 8584 freebsd-*) 8585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8586 need_version=yes 8587 ;; 8588 esac 8589 shlibpath_var=LD_LIBRARY_PATH 8590 case $host_os in 8591 freebsd2*) 8592 shlibpath_overrides_runpath=yes 8593 ;; 8594 freebsd3.[01]* | freebsdelf3.[01]*) 8595 shlibpath_overrides_runpath=yes 8596 hardcode_into_libs=yes 8597 ;; 8598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8600 shlibpath_overrides_runpath=no 8601 hardcode_into_libs=yes 8602 ;; 8603 *) # from 4.6 on, and DragonFly 8604 shlibpath_overrides_runpath=yes 8605 hardcode_into_libs=yes 8606 ;; 8607 esac 8608 ;; 8609 8610gnu*) 8611 version_type=linux 8612 need_lib_prefix=no 8613 need_version=no 8614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8615 soname_spec='${libname}${release}${shared_ext}$major' 8616 shlibpath_var=LD_LIBRARY_PATH 8617 hardcode_into_libs=yes 8618 ;; 8619 8620hpux9* | hpux10* | hpux11*) 8621 # Give a soname corresponding to the major version so that dld.sl refuses to 8622 # link against other versions. 8623 version_type=sunos 8624 need_lib_prefix=no 8625 need_version=no 8626 case $host_cpu in 8627 ia64*) 8628 shrext_cmds='.so' 8629 hardcode_into_libs=yes 8630 dynamic_linker="$host_os dld.so" 8631 shlibpath_var=LD_LIBRARY_PATH 8632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8634 soname_spec='${libname}${release}${shared_ext}$major' 8635 if test "X$HPUX_IA64_MODE" = X32; then 8636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8637 else 8638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8639 fi 8640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8641 ;; 8642 hppa*64*) 8643 shrext_cmds='.sl' 8644 hardcode_into_libs=yes 8645 dynamic_linker="$host_os dld.sl" 8646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8649 soname_spec='${libname}${release}${shared_ext}$major' 8650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8652 ;; 8653 *) 8654 shrext_cmds='.sl' 8655 dynamic_linker="$host_os dld.sl" 8656 shlibpath_var=SHLIB_PATH 8657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8659 soname_spec='${libname}${release}${shared_ext}$major' 8660 ;; 8661 esac 8662 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8663 postinstall_cmds='chmod 555 $lib' 8664 ;; 8665 8666interix[3-9]*) 8667 version_type=linux 8668 need_lib_prefix=no 8669 need_version=no 8670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8671 soname_spec='${libname}${release}${shared_ext}$major' 8672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8673 shlibpath_var=LD_LIBRARY_PATH 8674 shlibpath_overrides_runpath=no 8675 hardcode_into_libs=yes 8676 ;; 8677 8678irix5* | irix6* | nonstopux*) 8679 case $host_os in 8680 nonstopux*) version_type=nonstopux ;; 8681 *) 8682 if test "$lt_cv_prog_gnu_ld" = yes; then 8683 version_type=linux 8684 else 8685 version_type=irix 8686 fi ;; 8687 esac 8688 need_lib_prefix=no 8689 need_version=no 8690 soname_spec='${libname}${release}${shared_ext}$major' 8691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8692 case $host_os in 8693 irix5* | nonstopux*) 8694 libsuff= shlibsuff= 8695 ;; 8696 *) 8697 case $LD in # libtool.m4 will add one of these switches to LD 8698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8699 libsuff= shlibsuff= libmagic=32-bit;; 8700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8701 libsuff=32 shlibsuff=N32 libmagic=N32;; 8702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8704 *) libsuff= shlibsuff= libmagic=never-match;; 8705 esac 8706 ;; 8707 esac 8708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8709 shlibpath_overrides_runpath=no 8710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8712 hardcode_into_libs=yes 8713 ;; 8714 8715# No shared lib support for Linux oldld, aout, or coff. 8716linux*oldld* | linux*aout* | linux*coff*) 8717 dynamic_linker=no 8718 ;; 8719 8720# This must be Linux ELF. 8721linux* | k*bsd*-gnu) 8722 version_type=linux 8723 need_lib_prefix=no 8724 need_version=no 8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8726 soname_spec='${libname}${release}${shared_ext}$major' 8727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8728 shlibpath_var=LD_LIBRARY_PATH 8729 shlibpath_overrides_runpath=no 8730 # This implies no fast_install, which is unacceptable. 8731 # Some rework will be needed to allow for fast_install 8732 # before this can be enabled. 8733 hardcode_into_libs=yes 8734 8735 # Append ld.so.conf contents to the search path 8736 if test -f /etc/ld.so.conf; then 8737 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8739 fi 8740 8741 # We used to test for /lib/ld.so.1 and disable shared libraries on 8742 # powerpc, because MkLinux only supported shared libraries with the 8743 # GNU dynamic linker. Since this was broken with cross compilers, 8744 # most powerpc-linux boxes support dynamic linking these days and 8745 # people can always --disable-shared, the test was removed, and we 8746 # assume the GNU/Linux dynamic linker is in use. 8747 dynamic_linker='GNU/Linux ld.so' 8748 ;; 8749 8750netbsd*) 8751 version_type=sunos 8752 need_lib_prefix=no 8753 need_version=no 8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8757 dynamic_linker='NetBSD (a.out) ld.so' 8758 else 8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8760 soname_spec='${libname}${release}${shared_ext}$major' 8761 dynamic_linker='NetBSD ld.elf_so' 8762 fi 8763 shlibpath_var=LD_LIBRARY_PATH 8764 shlibpath_overrides_runpath=yes 8765 hardcode_into_libs=yes 8766 ;; 8767 8768newsos6) 8769 version_type=linux 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8771 shlibpath_var=LD_LIBRARY_PATH 8772 shlibpath_overrides_runpath=yes 8773 ;; 8774 8775nto-qnx*) 8776 version_type=linux 8777 need_lib_prefix=no 8778 need_version=no 8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8780 soname_spec='${libname}${release}${shared_ext}$major' 8781 shlibpath_var=LD_LIBRARY_PATH 8782 shlibpath_overrides_runpath=yes 8783 ;; 8784 8785openbsd*) 8786 version_type=sunos 8787 sys_lib_dlsearch_path_spec="/usr/lib" 8788 need_lib_prefix=no 8789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8790 case $host_os in 8791 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8792 *) need_version=no ;; 8793 esac 8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8796 shlibpath_var=LD_LIBRARY_PATH 8797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8798 case $host_os in 8799 openbsd2.[89] | openbsd2.[89].*) 8800 shlibpath_overrides_runpath=no 8801 ;; 8802 *) 8803 shlibpath_overrides_runpath=yes 8804 ;; 8805 esac 8806 else 8807 shlibpath_overrides_runpath=yes 8808 fi 8809 ;; 8810 8811os2*) 8812 libname_spec='$name' 8813 shrext_cmds=".dll" 8814 need_lib_prefix=no 8815 library_names_spec='$libname${shared_ext} $libname.a' 8816 dynamic_linker='OS/2 ld.exe' 8817 shlibpath_var=LIBPATH 8818 ;; 8819 8820osf3* | osf4* | osf5*) 8821 version_type=osf 8822 need_lib_prefix=no 8823 need_version=no 8824 soname_spec='${libname}${release}${shared_ext}$major' 8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8826 shlibpath_var=LD_LIBRARY_PATH 8827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8829 ;; 8830 8831rdos*) 8832 dynamic_linker=no 8833 ;; 8834 8835solaris*) 8836 version_type=linux 8837 need_lib_prefix=no 8838 need_version=no 8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8840 soname_spec='${libname}${release}${shared_ext}$major' 8841 shlibpath_var=LD_LIBRARY_PATH 8842 shlibpath_overrides_runpath=yes 8843 hardcode_into_libs=yes 8844 # ldd complains unless libraries are executable 8845 postinstall_cmds='chmod +x $lib' 8846 ;; 8847 8848sunos4*) 8849 version_type=sunos 8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8852 shlibpath_var=LD_LIBRARY_PATH 8853 shlibpath_overrides_runpath=yes 8854 if test "$with_gnu_ld" = yes; then 8855 need_lib_prefix=no 8856 fi 8857 need_version=yes 8858 ;; 8859 8860sysv4 | sysv4.3*) 8861 version_type=linux 8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8863 soname_spec='${libname}${release}${shared_ext}$major' 8864 shlibpath_var=LD_LIBRARY_PATH 8865 case $host_vendor in 8866 sni) 8867 shlibpath_overrides_runpath=no 8868 need_lib_prefix=no 8869 export_dynamic_flag_spec='${wl}-Blargedynsym' 8870 runpath_var=LD_RUN_PATH 8871 ;; 8872 siemens) 8873 need_lib_prefix=no 8874 ;; 8875 motorola) 8876 need_lib_prefix=no 8877 need_version=no 8878 shlibpath_overrides_runpath=no 8879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8880 ;; 8881 esac 8882 ;; 8883 8884sysv4*MP*) 8885 if test -d /usr/nec ;then 8886 version_type=linux 8887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8888 soname_spec='$libname${shared_ext}.$major' 8889 shlibpath_var=LD_LIBRARY_PATH 8890 fi 8891 ;; 8892 8893sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8894 version_type=freebsd-elf 8895 need_lib_prefix=no 8896 need_version=no 8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8898 soname_spec='${libname}${release}${shared_ext}$major' 8899 shlibpath_var=LD_LIBRARY_PATH 8900 hardcode_into_libs=yes 8901 if test "$with_gnu_ld" = yes; then 8902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8903 shlibpath_overrides_runpath=no 8904 else 8905 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8906 shlibpath_overrides_runpath=yes 8907 case $host_os in 8908 sco3.2v5*) 8909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8910 ;; 8911 esac 8912 fi 8913 sys_lib_dlsearch_path_spec='/usr/lib' 8914 ;; 8915 8916uts4*) 8917 version_type=linux 8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8919 soname_spec='${libname}${release}${shared_ext}$major' 8920 shlibpath_var=LD_LIBRARY_PATH 8921 ;; 8922 8923*) 8924 dynamic_linker=no 8925 ;; 8926esac 8927{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8928echo "${ECHO_T}$dynamic_linker" >&6; } 8929test "$dynamic_linker" = no && can_build_shared=no 8930 8931if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 8932 echo $ECHO_N "(cached) $ECHO_C" >&6 8933else 8934 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 8935fi 8936 8937sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 8938if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 8939 echo $ECHO_N "(cached) $ECHO_C" >&6 8940else 8941 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 8942fi 8943 8944sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 8945 8946variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8947if test "$GCC" = yes; then 8948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8949fi 8950 8951{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8952echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 8953hardcode_action= 8954if test -n "$hardcode_libdir_flag_spec" || \ 8955 test -n "$runpath_var" || \ 8956 test "X$hardcode_automatic" = "Xyes" ; then 8957 8958 # We can hardcode non-existant directories. 8959 if test "$hardcode_direct" != no && 8960 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8961 # have to relink, otherwise we might link with an installed library 8962 # when we should be linking with a yet-to-be-installed one 8963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8964 test "$hardcode_minus_L" != no; then 8965 # Linking always hardcodes the temporary library directory. 8966 hardcode_action=relink 8967 else 8968 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8969 hardcode_action=immediate 8970 fi 8971else 8972 # We cannot hardcode anything, or else we can only hardcode existing 8973 # directories. 8974 hardcode_action=unsupported 8975fi 8976{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 8977echo "${ECHO_T}$hardcode_action" >&6; } 8978 8979if test "$hardcode_action" = relink; then 8980 # Fast installation is not supported 8981 enable_fast_install=no 8982elif test "$shlibpath_overrides_runpath" = yes || 8983 test "$enable_shared" = no; then 8984 # Fast installation is not necessary 8985 enable_fast_install=needless 8986fi 8987 8988striplib= 8989old_striplib= 8990{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8991echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 8992if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8994 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8995 { echo "$as_me:$LINENO: result: yes" >&5 8996echo "${ECHO_T}yes" >&6; } 8997else 8998# FIXME - insert some real tests, host_os isn't really good enough 8999 case $host_os in 9000 darwin*) 9001 if test -n "$STRIP" ; then 9002 striplib="$STRIP -x" 9003 old_striplib="$STRIP -S" 9004 { echo "$as_me:$LINENO: result: yes" >&5 9005echo "${ECHO_T}yes" >&6; } 9006 else 9007 { echo "$as_me:$LINENO: result: no" >&5 9008echo "${ECHO_T}no" >&6; } 9009fi 9010 ;; 9011 *) 9012 { echo "$as_me:$LINENO: result: no" >&5 9013echo "${ECHO_T}no" >&6; } 9014 ;; 9015 esac 9016fi 9017 9018if test "x$enable_dlopen" != xyes; then 9019 enable_dlopen=unknown 9020 enable_dlopen_self=unknown 9021 enable_dlopen_self_static=unknown 9022else 9023 lt_cv_dlopen=no 9024 lt_cv_dlopen_libs= 9025 9026 case $host_os in 9027 beos*) 9028 lt_cv_dlopen="load_add_on" 9029 lt_cv_dlopen_libs= 9030 lt_cv_dlopen_self=yes 9031 ;; 9032 9033 mingw* | pw32*) 9034 lt_cv_dlopen="LoadLibrary" 9035 lt_cv_dlopen_libs= 9036 ;; 9037 9038 cygwin*) 9039 lt_cv_dlopen="dlopen" 9040 lt_cv_dlopen_libs= 9041 ;; 9042 9043 darwin*) 9044 # if libdl is installed we need to link against it 9045 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9046echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9047if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9048 echo $ECHO_N "(cached) $ECHO_C" >&6 9049else 9050 ac_check_lib_save_LIBS=$LIBS 9051LIBS="-ldl $LIBS" 9052cat >conftest.$ac_ext <<_ACEOF 9053/* confdefs.h. */ 9054_ACEOF 9055cat confdefs.h >>conftest.$ac_ext 9056cat >>conftest.$ac_ext <<_ACEOF 9057/* end confdefs.h. */ 9058 9059/* Override any GCC internal prototype to avoid an error. 9060 Use char because int might match the return type of a GCC 9061 builtin and then its argument prototype would still apply. */ 9062#ifdef __cplusplus 9063extern "C" 9064#endif 9065char dlopen (); 9066int 9067main () 9068{ 9069return dlopen (); 9070 ; 9071 return 0; 9072} 9073_ACEOF 9074rm -f conftest.$ac_objext conftest$ac_exeext 9075if { (ac_try="$ac_link" 9076case "(($ac_try" in 9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9078 *) ac_try_echo=$ac_try;; 9079esac 9080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9081 (eval "$ac_link") 2>conftest.er1 9082 ac_status=$? 9083 grep -v '^ *+' conftest.er1 >conftest.err 9084 rm -f conftest.er1 9085 cat conftest.err >&5 9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9087 (exit $ac_status); } && { 9088 test -z "$ac_c_werror_flag" || 9089 test ! -s conftest.err 9090 } && test -s conftest$ac_exeext && 9091 $as_test_x conftest$ac_exeext; then 9092 ac_cv_lib_dl_dlopen=yes 9093else 9094 echo "$as_me: failed program was:" >&5 9095sed 's/^/| /' conftest.$ac_ext >&5 9096 9097 ac_cv_lib_dl_dlopen=no 9098fi 9099 9100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9101 conftest$ac_exeext conftest.$ac_ext 9102LIBS=$ac_check_lib_save_LIBS 9103fi 9104{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9105echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9106if test $ac_cv_lib_dl_dlopen = yes; then 9107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9108else 9109 9110 lt_cv_dlopen="dyld" 9111 lt_cv_dlopen_libs= 9112 lt_cv_dlopen_self=yes 9113 9114fi 9115 9116 ;; 9117 9118 *) 9119 { echo "$as_me:$LINENO: checking for shl_load" >&5 9120echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9121if test "${ac_cv_func_shl_load+set}" = set; then 9122 echo $ECHO_N "(cached) $ECHO_C" >&6 9123else 9124 cat >conftest.$ac_ext <<_ACEOF 9125/* confdefs.h. */ 9126_ACEOF 9127cat confdefs.h >>conftest.$ac_ext 9128cat >>conftest.$ac_ext <<_ACEOF 9129/* end confdefs.h. */ 9130/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9132#define shl_load innocuous_shl_load 9133 9134/* System header to define __stub macros and hopefully few prototypes, 9135 which can conflict with char shl_load (); below. 9136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9137 <limits.h> exists even on freestanding compilers. */ 9138 9139#ifdef __STDC__ 9140# include <limits.h> 9141#else 9142# include <assert.h> 9143#endif 9144 9145#undef shl_load 9146 9147/* Override any GCC internal prototype to avoid an error. 9148 Use char because int might match the return type of a GCC 9149 builtin and then its argument prototype would still apply. */ 9150#ifdef __cplusplus 9151extern "C" 9152#endif 9153char shl_load (); 9154/* The GNU C library defines this for functions which it implements 9155 to always fail with ENOSYS. Some functions are actually named 9156 something starting with __ and the normal name is an alias. */ 9157#if defined __stub_shl_load || defined __stub___shl_load 9158choke me 9159#endif 9160 9161int 9162main () 9163{ 9164return shl_load (); 9165 ; 9166 return 0; 9167} 9168_ACEOF 9169rm -f conftest.$ac_objext conftest$ac_exeext 9170if { (ac_try="$ac_link" 9171case "(($ac_try" in 9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9173 *) ac_try_echo=$ac_try;; 9174esac 9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9176 (eval "$ac_link") 2>conftest.er1 9177 ac_status=$? 9178 grep -v '^ *+' conftest.er1 >conftest.err 9179 rm -f conftest.er1 9180 cat conftest.err >&5 9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9182 (exit $ac_status); } && { 9183 test -z "$ac_c_werror_flag" || 9184 test ! -s conftest.err 9185 } && test -s conftest$ac_exeext && 9186 $as_test_x conftest$ac_exeext; then 9187 ac_cv_func_shl_load=yes 9188else 9189 echo "$as_me: failed program was:" >&5 9190sed 's/^/| /' conftest.$ac_ext >&5 9191 9192 ac_cv_func_shl_load=no 9193fi 9194 9195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9196 conftest$ac_exeext conftest.$ac_ext 9197fi 9198{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9199echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9200if test $ac_cv_func_shl_load = yes; then 9201 lt_cv_dlopen="shl_load" 9202else 9203 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9204echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9205if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9206 echo $ECHO_N "(cached) $ECHO_C" >&6 9207else 9208 ac_check_lib_save_LIBS=$LIBS 9209LIBS="-ldld $LIBS" 9210cat >conftest.$ac_ext <<_ACEOF 9211/* confdefs.h. */ 9212_ACEOF 9213cat confdefs.h >>conftest.$ac_ext 9214cat >>conftest.$ac_ext <<_ACEOF 9215/* end confdefs.h. */ 9216 9217/* Override any GCC internal prototype to avoid an error. 9218 Use char because int might match the return type of a GCC 9219 builtin and then its argument prototype would still apply. */ 9220#ifdef __cplusplus 9221extern "C" 9222#endif 9223char shl_load (); 9224int 9225main () 9226{ 9227return shl_load (); 9228 ; 9229 return 0; 9230} 9231_ACEOF 9232rm -f conftest.$ac_objext conftest$ac_exeext 9233if { (ac_try="$ac_link" 9234case "(($ac_try" in 9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9236 *) ac_try_echo=$ac_try;; 9237esac 9238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9239 (eval "$ac_link") 2>conftest.er1 9240 ac_status=$? 9241 grep -v '^ *+' conftest.er1 >conftest.err 9242 rm -f conftest.er1 9243 cat conftest.err >&5 9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9245 (exit $ac_status); } && { 9246 test -z "$ac_c_werror_flag" || 9247 test ! -s conftest.err 9248 } && test -s conftest$ac_exeext && 9249 $as_test_x conftest$ac_exeext; then 9250 ac_cv_lib_dld_shl_load=yes 9251else 9252 echo "$as_me: failed program was:" >&5 9253sed 's/^/| /' conftest.$ac_ext >&5 9254 9255 ac_cv_lib_dld_shl_load=no 9256fi 9257 9258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9259 conftest$ac_exeext conftest.$ac_ext 9260LIBS=$ac_check_lib_save_LIBS 9261fi 9262{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9263echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9264if test $ac_cv_lib_dld_shl_load = yes; then 9265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9266else 9267 { echo "$as_me:$LINENO: checking for dlopen" >&5 9268echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9269if test "${ac_cv_func_dlopen+set}" = set; then 9270 echo $ECHO_N "(cached) $ECHO_C" >&6 9271else 9272 cat >conftest.$ac_ext <<_ACEOF 9273/* confdefs.h. */ 9274_ACEOF 9275cat confdefs.h >>conftest.$ac_ext 9276cat >>conftest.$ac_ext <<_ACEOF 9277/* end confdefs.h. */ 9278/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9279 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9280#define dlopen innocuous_dlopen 9281 9282/* System header to define __stub macros and hopefully few prototypes, 9283 which can conflict with char dlopen (); below. 9284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9285 <limits.h> exists even on freestanding compilers. */ 9286 9287#ifdef __STDC__ 9288# include <limits.h> 9289#else 9290# include <assert.h> 9291#endif 9292 9293#undef dlopen 9294 9295/* Override any GCC internal prototype to avoid an error. 9296 Use char because int might match the return type of a GCC 9297 builtin and then its argument prototype would still apply. */ 9298#ifdef __cplusplus 9299extern "C" 9300#endif 9301char dlopen (); 9302/* The GNU C library defines this for functions which it implements 9303 to always fail with ENOSYS. Some functions are actually named 9304 something starting with __ and the normal name is an alias. */ 9305#if defined __stub_dlopen || defined __stub___dlopen 9306choke me 9307#endif 9308 9309int 9310main () 9311{ 9312return dlopen (); 9313 ; 9314 return 0; 9315} 9316_ACEOF 9317rm -f conftest.$ac_objext conftest$ac_exeext 9318if { (ac_try="$ac_link" 9319case "(($ac_try" in 9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9321 *) ac_try_echo=$ac_try;; 9322esac 9323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9324 (eval "$ac_link") 2>conftest.er1 9325 ac_status=$? 9326 grep -v '^ *+' conftest.er1 >conftest.err 9327 rm -f conftest.er1 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 (exit $ac_status); } && { 9331 test -z "$ac_c_werror_flag" || 9332 test ! -s conftest.err 9333 } && test -s conftest$ac_exeext && 9334 $as_test_x conftest$ac_exeext; then 9335 ac_cv_func_dlopen=yes 9336else 9337 echo "$as_me: failed program was:" >&5 9338sed 's/^/| /' conftest.$ac_ext >&5 9339 9340 ac_cv_func_dlopen=no 9341fi 9342 9343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9344 conftest$ac_exeext conftest.$ac_ext 9345fi 9346{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9347echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9348if test $ac_cv_func_dlopen = yes; then 9349 lt_cv_dlopen="dlopen" 9350else 9351 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9352echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9353if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9354 echo $ECHO_N "(cached) $ECHO_C" >&6 9355else 9356 ac_check_lib_save_LIBS=$LIBS 9357LIBS="-ldl $LIBS" 9358cat >conftest.$ac_ext <<_ACEOF 9359/* confdefs.h. */ 9360_ACEOF 9361cat confdefs.h >>conftest.$ac_ext 9362cat >>conftest.$ac_ext <<_ACEOF 9363/* end confdefs.h. */ 9364 9365/* Override any GCC internal prototype to avoid an error. 9366 Use char because int might match the return type of a GCC 9367 builtin and then its argument prototype would still apply. */ 9368#ifdef __cplusplus 9369extern "C" 9370#endif 9371char dlopen (); 9372int 9373main () 9374{ 9375return dlopen (); 9376 ; 9377 return 0; 9378} 9379_ACEOF 9380rm -f conftest.$ac_objext conftest$ac_exeext 9381if { (ac_try="$ac_link" 9382case "(($ac_try" in 9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9384 *) ac_try_echo=$ac_try;; 9385esac 9386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9387 (eval "$ac_link") 2>conftest.er1 9388 ac_status=$? 9389 grep -v '^ *+' conftest.er1 >conftest.err 9390 rm -f conftest.er1 9391 cat conftest.err >&5 9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9393 (exit $ac_status); } && { 9394 test -z "$ac_c_werror_flag" || 9395 test ! -s conftest.err 9396 } && test -s conftest$ac_exeext && 9397 $as_test_x conftest$ac_exeext; then 9398 ac_cv_lib_dl_dlopen=yes 9399else 9400 echo "$as_me: failed program was:" >&5 9401sed 's/^/| /' conftest.$ac_ext >&5 9402 9403 ac_cv_lib_dl_dlopen=no 9404fi 9405 9406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9407 conftest$ac_exeext conftest.$ac_ext 9408LIBS=$ac_check_lib_save_LIBS 9409fi 9410{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9411echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9412if test $ac_cv_lib_dl_dlopen = yes; then 9413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9414else 9415 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9416echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9417if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9418 echo $ECHO_N "(cached) $ECHO_C" >&6 9419else 9420 ac_check_lib_save_LIBS=$LIBS 9421LIBS="-lsvld $LIBS" 9422cat >conftest.$ac_ext <<_ACEOF 9423/* confdefs.h. */ 9424_ACEOF 9425cat confdefs.h >>conftest.$ac_ext 9426cat >>conftest.$ac_ext <<_ACEOF 9427/* end confdefs.h. */ 9428 9429/* Override any GCC internal prototype to avoid an error. 9430 Use char because int might match the return type of a GCC 9431 builtin and then its argument prototype would still apply. */ 9432#ifdef __cplusplus 9433extern "C" 9434#endif 9435char dlopen (); 9436int 9437main () 9438{ 9439return dlopen (); 9440 ; 9441 return 0; 9442} 9443_ACEOF 9444rm -f conftest.$ac_objext conftest$ac_exeext 9445if { (ac_try="$ac_link" 9446case "(($ac_try" in 9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9448 *) ac_try_echo=$ac_try;; 9449esac 9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9451 (eval "$ac_link") 2>conftest.er1 9452 ac_status=$? 9453 grep -v '^ *+' conftest.er1 >conftest.err 9454 rm -f conftest.er1 9455 cat conftest.err >&5 9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9457 (exit $ac_status); } && { 9458 test -z "$ac_c_werror_flag" || 9459 test ! -s conftest.err 9460 } && test -s conftest$ac_exeext && 9461 $as_test_x conftest$ac_exeext; then 9462 ac_cv_lib_svld_dlopen=yes 9463else 9464 echo "$as_me: failed program was:" >&5 9465sed 's/^/| /' conftest.$ac_ext >&5 9466 9467 ac_cv_lib_svld_dlopen=no 9468fi 9469 9470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9471 conftest$ac_exeext conftest.$ac_ext 9472LIBS=$ac_check_lib_save_LIBS 9473fi 9474{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9475echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9476if test $ac_cv_lib_svld_dlopen = yes; then 9477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9478else 9479 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9480echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9481if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9482 echo $ECHO_N "(cached) $ECHO_C" >&6 9483else 9484 ac_check_lib_save_LIBS=$LIBS 9485LIBS="-ldld $LIBS" 9486cat >conftest.$ac_ext <<_ACEOF 9487/* confdefs.h. */ 9488_ACEOF 9489cat confdefs.h >>conftest.$ac_ext 9490cat >>conftest.$ac_ext <<_ACEOF 9491/* end confdefs.h. */ 9492 9493/* Override any GCC internal prototype to avoid an error. 9494 Use char because int might match the return type of a GCC 9495 builtin and then its argument prototype would still apply. */ 9496#ifdef __cplusplus 9497extern "C" 9498#endif 9499char dld_link (); 9500int 9501main () 9502{ 9503return dld_link (); 9504 ; 9505 return 0; 9506} 9507_ACEOF 9508rm -f conftest.$ac_objext conftest$ac_exeext 9509if { (ac_try="$ac_link" 9510case "(($ac_try" in 9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9512 *) ac_try_echo=$ac_try;; 9513esac 9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9515 (eval "$ac_link") 2>conftest.er1 9516 ac_status=$? 9517 grep -v '^ *+' conftest.er1 >conftest.err 9518 rm -f conftest.er1 9519 cat conftest.err >&5 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9521 (exit $ac_status); } && { 9522 test -z "$ac_c_werror_flag" || 9523 test ! -s conftest.err 9524 } && test -s conftest$ac_exeext && 9525 $as_test_x conftest$ac_exeext; then 9526 ac_cv_lib_dld_dld_link=yes 9527else 9528 echo "$as_me: failed program was:" >&5 9529sed 's/^/| /' conftest.$ac_ext >&5 9530 9531 ac_cv_lib_dld_dld_link=no 9532fi 9533 9534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9535 conftest$ac_exeext conftest.$ac_ext 9536LIBS=$ac_check_lib_save_LIBS 9537fi 9538{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9539echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9540if test $ac_cv_lib_dld_dld_link = yes; then 9541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9542fi 9543 9544 9545fi 9546 9547 9548fi 9549 9550 9551fi 9552 9553 9554fi 9555 9556 9557fi 9558 9559 ;; 9560 esac 9561 9562 if test "x$lt_cv_dlopen" != xno; then 9563 enable_dlopen=yes 9564 else 9565 enable_dlopen=no 9566 fi 9567 9568 case $lt_cv_dlopen in 9569 dlopen) 9570 save_CPPFLAGS="$CPPFLAGS" 9571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9572 9573 save_LDFLAGS="$LDFLAGS" 9574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9575 9576 save_LIBS="$LIBS" 9577 LIBS="$lt_cv_dlopen_libs $LIBS" 9578 9579 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9580echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9581if test "${lt_cv_dlopen_self+set}" = set; then 9582 echo $ECHO_N "(cached) $ECHO_C" >&6 9583else 9584 if test "$cross_compiling" = yes; then : 9585 lt_cv_dlopen_self=cross 9586else 9587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9588 lt_status=$lt_dlunknown 9589 cat > conftest.$ac_ext <<EOF 9590#line 9590 "configure" 9591#include "confdefs.h" 9592 9593#if HAVE_DLFCN_H 9594#include <dlfcn.h> 9595#endif 9596 9597#include <stdio.h> 9598 9599#ifdef RTLD_GLOBAL 9600# define LT_DLGLOBAL RTLD_GLOBAL 9601#else 9602# ifdef DL_GLOBAL 9603# define LT_DLGLOBAL DL_GLOBAL 9604# else 9605# define LT_DLGLOBAL 0 9606# endif 9607#endif 9608 9609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9610 find out it does not work in some platform. */ 9611#ifndef LT_DLLAZY_OR_NOW 9612# ifdef RTLD_LAZY 9613# define LT_DLLAZY_OR_NOW RTLD_LAZY 9614# else 9615# ifdef DL_LAZY 9616# define LT_DLLAZY_OR_NOW DL_LAZY 9617# else 9618# ifdef RTLD_NOW 9619# define LT_DLLAZY_OR_NOW RTLD_NOW 9620# else 9621# ifdef DL_NOW 9622# define LT_DLLAZY_OR_NOW DL_NOW 9623# else 9624# define LT_DLLAZY_OR_NOW 0 9625# endif 9626# endif 9627# endif 9628# endif 9629#endif 9630 9631#ifdef __cplusplus 9632extern "C" void exit (int); 9633#endif 9634 9635void fnord() { int i=42;} 9636int main () 9637{ 9638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9639 int status = $lt_dlunknown; 9640 9641 if (self) 9642 { 9643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9645 /* dlclose (self); */ 9646 } 9647 else 9648 puts (dlerror ()); 9649 9650 exit (status); 9651} 9652EOF 9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9654 (eval $ac_link) 2>&5 9655 ac_status=$? 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9658 (./conftest; exit; ) >&5 2>/dev/null 9659 lt_status=$? 9660 case x$lt_status in 9661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9663 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9664 esac 9665 else : 9666 # compilation failed 9667 lt_cv_dlopen_self=no 9668 fi 9669fi 9670rm -fr conftest* 9671 9672 9673fi 9674{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9675echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9676 9677 if test "x$lt_cv_dlopen_self" = xyes; then 9678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9679 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9680echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9681if test "${lt_cv_dlopen_self_static+set}" = set; then 9682 echo $ECHO_N "(cached) $ECHO_C" >&6 9683else 9684 if test "$cross_compiling" = yes; then : 9685 lt_cv_dlopen_self_static=cross 9686else 9687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9688 lt_status=$lt_dlunknown 9689 cat > conftest.$ac_ext <<EOF 9690#line 9690 "configure" 9691#include "confdefs.h" 9692 9693#if HAVE_DLFCN_H 9694#include <dlfcn.h> 9695#endif 9696 9697#include <stdio.h> 9698 9699#ifdef RTLD_GLOBAL 9700# define LT_DLGLOBAL RTLD_GLOBAL 9701#else 9702# ifdef DL_GLOBAL 9703# define LT_DLGLOBAL DL_GLOBAL 9704# else 9705# define LT_DLGLOBAL 0 9706# endif 9707#endif 9708 9709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9710 find out it does not work in some platform. */ 9711#ifndef LT_DLLAZY_OR_NOW 9712# ifdef RTLD_LAZY 9713# define LT_DLLAZY_OR_NOW RTLD_LAZY 9714# else 9715# ifdef DL_LAZY 9716# define LT_DLLAZY_OR_NOW DL_LAZY 9717# else 9718# ifdef RTLD_NOW 9719# define LT_DLLAZY_OR_NOW RTLD_NOW 9720# else 9721# ifdef DL_NOW 9722# define LT_DLLAZY_OR_NOW DL_NOW 9723# else 9724# define LT_DLLAZY_OR_NOW 0 9725# endif 9726# endif 9727# endif 9728# endif 9729#endif 9730 9731#ifdef __cplusplus 9732extern "C" void exit (int); 9733#endif 9734 9735void fnord() { int i=42;} 9736int main () 9737{ 9738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9739 int status = $lt_dlunknown; 9740 9741 if (self) 9742 { 9743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9745 /* dlclose (self); */ 9746 } 9747 else 9748 puts (dlerror ()); 9749 9750 exit (status); 9751} 9752EOF 9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9754 (eval $ac_link) 2>&5 9755 ac_status=$? 9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9758 (./conftest; exit; ) >&5 2>/dev/null 9759 lt_status=$? 9760 case x$lt_status in 9761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9764 esac 9765 else : 9766 # compilation failed 9767 lt_cv_dlopen_self_static=no 9768 fi 9769fi 9770rm -fr conftest* 9771 9772 9773fi 9774{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9775echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9776 fi 9777 9778 CPPFLAGS="$save_CPPFLAGS" 9779 LDFLAGS="$save_LDFLAGS" 9780 LIBS="$save_LIBS" 9781 ;; 9782 esac 9783 9784 case $lt_cv_dlopen_self in 9785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9786 *) enable_dlopen_self=unknown ;; 9787 esac 9788 9789 case $lt_cv_dlopen_self_static in 9790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9791 *) enable_dlopen_self_static=unknown ;; 9792 esac 9793fi 9794 9795 9796# Report which library types will actually be built 9797{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9798echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9799{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9800echo "${ECHO_T}$can_build_shared" >&6; } 9801 9802{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9803echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9804test "$can_build_shared" = "no" && enable_shared=no 9805 9806# On AIX, shared libraries and static libraries use the same namespace, and 9807# are all built from PIC. 9808case $host_os in 9809aix3*) 9810 test "$enable_shared" = yes && enable_static=no 9811 if test -n "$RANLIB"; then 9812 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9813 postinstall_cmds='$RANLIB $lib' 9814 fi 9815 ;; 9816 9817aix[4-9]*) 9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9819 test "$enable_shared" = yes && enable_static=no 9820 fi 9821 ;; 9822esac 9823{ echo "$as_me:$LINENO: result: $enable_shared" >&5 9824echo "${ECHO_T}$enable_shared" >&6; } 9825 9826{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9827echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 9828# Make sure either enable_shared or enable_static is yes. 9829test "$enable_shared" = yes || enable_static=yes 9830{ echo "$as_me:$LINENO: result: $enable_static" >&5 9831echo "${ECHO_T}$enable_static" >&6; } 9832 9833# The else clause should only fire when bootstrapping the 9834# libtool distribution, otherwise you forgot to ship ltmain.sh 9835# with your package, and you will get complaints that there are 9836# no rules to generate ltmain.sh. 9837if test -f "$ltmain"; then 9838 # See if we are running on zsh, and set the options which allow our commands through 9839 # without removal of \ escapes. 9840 if test -n "${ZSH_VERSION+set}" ; then 9841 setopt NO_GLOB_SUBST 9842 fi 9843 # Now quote all the things that may contain metacharacters while being 9844 # careful not to overquote the AC_SUBSTed values. We take copies of the 9845 # variables and quote the copies for generation of the libtool script. 9846 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9847 SED SHELL STRIP \ 9848 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9849 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9850 deplibs_check_method reload_flag reload_cmds need_locks \ 9851 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9852 lt_cv_sys_global_symbol_to_c_name_address \ 9853 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9854 old_postinstall_cmds old_postuninstall_cmds \ 9855 compiler \ 9856 CC \ 9857 LD \ 9858 lt_prog_compiler_wl \ 9859 lt_prog_compiler_pic \ 9860 lt_prog_compiler_static \ 9861 lt_prog_compiler_no_builtin_flag \ 9862 export_dynamic_flag_spec \ 9863 thread_safe_flag_spec \ 9864 whole_archive_flag_spec \ 9865 enable_shared_with_static_runtimes \ 9866 old_archive_cmds \ 9867 old_archive_from_new_cmds \ 9868 predep_objects \ 9869 postdep_objects \ 9870 predeps \ 9871 postdeps \ 9872 compiler_lib_search_path \ 9873 compiler_lib_search_dirs \ 9874 archive_cmds \ 9875 archive_expsym_cmds \ 9876 postinstall_cmds \ 9877 postuninstall_cmds \ 9878 old_archive_from_expsyms_cmds \ 9879 allow_undefined_flag \ 9880 no_undefined_flag \ 9881 export_symbols_cmds \ 9882 hardcode_libdir_flag_spec \ 9883 hardcode_libdir_flag_spec_ld \ 9884 hardcode_libdir_separator \ 9885 hardcode_automatic \ 9886 module_cmds \ 9887 module_expsym_cmds \ 9888 lt_cv_prog_compiler_c_o \ 9889 fix_srcfile_path \ 9890 exclude_expsyms \ 9891 include_expsyms; do 9892 9893 case $var in 9894 old_archive_cmds | \ 9895 old_archive_from_new_cmds | \ 9896 archive_cmds | \ 9897 archive_expsym_cmds | \ 9898 module_cmds | \ 9899 module_expsym_cmds | \ 9900 old_archive_from_expsyms_cmds | \ 9901 export_symbols_cmds | \ 9902 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9903 postinstall_cmds | postuninstall_cmds | \ 9904 old_postinstall_cmds | old_postuninstall_cmds | \ 9905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9906 # Double-quote double-evaled strings. 9907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9908 ;; 9909 *) 9910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9911 ;; 9912 esac 9913 done 9914 9915 case $lt_echo in 9916 *'\$0 --fallback-echo"') 9917 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9918 ;; 9919 esac 9920 9921cfgfile="${ofile}T" 9922 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9923 $rm -f "$cfgfile" 9924 { echo "$as_me:$LINENO: creating $ofile" >&5 9925echo "$as_me: creating $ofile" >&6;} 9926 9927 cat <<__EOF__ >> "$cfgfile" 9928#! $SHELL 9929 9930# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9931# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9932# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9933# 9934# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 9935# Free Software Foundation, Inc. 9936# 9937# This file is part of GNU Libtool: 9938# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9939# 9940# This program is free software; you can redistribute it and/or modify 9941# it under the terms of the GNU General Public License as published by 9942# the Free Software Foundation; either version 2 of the License, or 9943# (at your option) any later version. 9944# 9945# This program is distributed in the hope that it will be useful, but 9946# WITHOUT ANY WARRANTY; without even the implied warranty of 9947# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9948# General Public License for more details. 9949# 9950# You should have received a copy of the GNU General Public License 9951# along with this program; if not, write to the Free Software 9952# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9953# 9954# As a special exception to the GNU General Public License, if you 9955# distribute this file as part of a program that contains a 9956# configuration script generated by Autoconf, you may include it under 9957# the same distribution terms that you use for the rest of that program. 9958 9959# A sed program that does not truncate output. 9960SED=$lt_SED 9961 9962# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9963Xsed="$SED -e 1s/^X//" 9964 9965# The HP-UX ksh and POSIX shell print the target directory to stdout 9966# if CDPATH is set. 9967(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9968 9969# The names of the tagged configurations supported by this script. 9970available_tags= 9971 9972# ### BEGIN LIBTOOL CONFIG 9973 9974# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9975 9976# Shell to use when invoking shell scripts. 9977SHELL=$lt_SHELL 9978 9979# Whether or not to build shared libraries. 9980build_libtool_libs=$enable_shared 9981 9982# Whether or not to build static libraries. 9983build_old_libs=$enable_static 9984 9985# Whether or not to add -lc for building shared libraries. 9986build_libtool_need_lc=$archive_cmds_need_lc 9987 9988# Whether or not to disallow shared libs when runtime libs are static 9989allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9990 9991# Whether or not to optimize for fast installation. 9992fast_install=$enable_fast_install 9993 9994# The host system. 9995host_alias=$host_alias 9996host=$host 9997host_os=$host_os 9998 9999# The build system. 10000build_alias=$build_alias 10001build=$build 10002build_os=$build_os 10003 10004# An echo program that does not interpret backslashes. 10005echo=$lt_echo 10006 10007# The archiver. 10008AR=$lt_AR 10009AR_FLAGS=$lt_AR_FLAGS 10010 10011# A C compiler. 10012LTCC=$lt_LTCC 10013 10014# LTCC compiler flags. 10015LTCFLAGS=$lt_LTCFLAGS 10016 10017# A language-specific compiler. 10018CC=$lt_compiler 10019 10020# Is the compiler the GNU C compiler? 10021with_gcc=$GCC 10022 10023# An ERE matcher. 10024EGREP=$lt_EGREP 10025 10026# The linker used to build libraries. 10027LD=$lt_LD 10028 10029# Whether we need hard or soft links. 10030LN_S=$lt_LN_S 10031 10032# A BSD-compatible nm program. 10033NM=$lt_NM 10034 10035# A symbol stripping program 10036STRIP=$lt_STRIP 10037 10038# Used to examine libraries when file_magic_cmd begins "file" 10039MAGIC_CMD=$MAGIC_CMD 10040 10041# Used on cygwin: DLL creation program. 10042DLLTOOL="$DLLTOOL" 10043 10044# Used on cygwin: object dumper. 10045OBJDUMP="$OBJDUMP" 10046 10047# Used on cygwin: assembler. 10048AS="$AS" 10049 10050# The name of the directory that contains temporary libtool files. 10051objdir=$objdir 10052 10053# How to create reloadable object files. 10054reload_flag=$lt_reload_flag 10055reload_cmds=$lt_reload_cmds 10056 10057# How to pass a linker flag through the compiler. 10058wl=$lt_lt_prog_compiler_wl 10059 10060# Object file suffix (normally "o"). 10061objext="$ac_objext" 10062 10063# Old archive suffix (normally "a"). 10064libext="$libext" 10065 10066# Shared library suffix (normally ".so"). 10067shrext_cmds='$shrext_cmds' 10068 10069# Executable file suffix (normally ""). 10070exeext="$exeext" 10071 10072# Additional compiler flags for building library objects. 10073pic_flag=$lt_lt_prog_compiler_pic 10074pic_mode=$pic_mode 10075 10076# What is the maximum length of a command? 10077max_cmd_len=$lt_cv_sys_max_cmd_len 10078 10079# Does compiler simultaneously support -c and -o options? 10080compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10081 10082# Must we lock files when doing compilation? 10083need_locks=$lt_need_locks 10084 10085# Do we need the lib prefix for modules? 10086need_lib_prefix=$need_lib_prefix 10087 10088# Do we need a version for libraries? 10089need_version=$need_version 10090 10091# Whether dlopen is supported. 10092dlopen_support=$enable_dlopen 10093 10094# Whether dlopen of programs is supported. 10095dlopen_self=$enable_dlopen_self 10096 10097# Whether dlopen of statically linked programs is supported. 10098dlopen_self_static=$enable_dlopen_self_static 10099 10100# Compiler flag to prevent dynamic linking. 10101link_static_flag=$lt_lt_prog_compiler_static 10102 10103# Compiler flag to turn off builtin functions. 10104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10105 10106# Compiler flag to allow reflexive dlopens. 10107export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10108 10109# Compiler flag to generate shared objects directly from archives. 10110whole_archive_flag_spec=$lt_whole_archive_flag_spec 10111 10112# Compiler flag to generate thread-safe objects. 10113thread_safe_flag_spec=$lt_thread_safe_flag_spec 10114 10115# Library versioning type. 10116version_type=$version_type 10117 10118# Format of library name prefix. 10119libname_spec=$lt_libname_spec 10120 10121# List of archive names. First name is the real one, the rest are links. 10122# The last name is the one that the linker finds with -lNAME. 10123library_names_spec=$lt_library_names_spec 10124 10125# The coded name of the library, if different from the real name. 10126soname_spec=$lt_soname_spec 10127 10128# Commands used to build and install an old-style archive. 10129RANLIB=$lt_RANLIB 10130old_archive_cmds=$lt_old_archive_cmds 10131old_postinstall_cmds=$lt_old_postinstall_cmds 10132old_postuninstall_cmds=$lt_old_postuninstall_cmds 10133 10134# Create an old-style archive from a shared archive. 10135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10136 10137# Create a temporary old-style archive to link instead of a shared archive. 10138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10139 10140# Commands used to build and install a shared archive. 10141archive_cmds=$lt_archive_cmds 10142archive_expsym_cmds=$lt_archive_expsym_cmds 10143postinstall_cmds=$lt_postinstall_cmds 10144postuninstall_cmds=$lt_postuninstall_cmds 10145 10146# Commands used to build a loadable module (assumed same as above if empty) 10147module_cmds=$lt_module_cmds 10148module_expsym_cmds=$lt_module_expsym_cmds 10149 10150# Commands to strip libraries. 10151old_striplib=$lt_old_striplib 10152striplib=$lt_striplib 10153 10154# Dependencies to place before the objects being linked to create a 10155# shared library. 10156predep_objects=$lt_predep_objects 10157 10158# Dependencies to place after the objects being linked to create a 10159# shared library. 10160postdep_objects=$lt_postdep_objects 10161 10162# Dependencies to place before the objects being linked to create a 10163# shared library. 10164predeps=$lt_predeps 10165 10166# Dependencies to place after the objects being linked to create a 10167# shared library. 10168postdeps=$lt_postdeps 10169 10170# The directories searched by this compiler when creating a shared 10171# library 10172compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10173 10174# The library search path used internally by the compiler when linking 10175# a shared library. 10176compiler_lib_search_path=$lt_compiler_lib_search_path 10177 10178# Method to check whether dependent libraries are shared objects. 10179deplibs_check_method=$lt_deplibs_check_method 10180 10181# Command to use when deplibs_check_method == file_magic. 10182file_magic_cmd=$lt_file_magic_cmd 10183 10184# Flag that allows shared libraries with undefined symbols to be built. 10185allow_undefined_flag=$lt_allow_undefined_flag 10186 10187# Flag that forces no undefined symbols. 10188no_undefined_flag=$lt_no_undefined_flag 10189 10190# Commands used to finish a libtool library installation in a directory. 10191finish_cmds=$lt_finish_cmds 10192 10193# Same as above, but a single script fragment to be evaled but not shown. 10194finish_eval=$lt_finish_eval 10195 10196# Take the output of nm and produce a listing of raw symbols and C names. 10197global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10198 10199# Transform the output of nm in a proper C declaration 10200global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10201 10202# Transform the output of nm in a C name address pair 10203global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10204 10205# This is the shared library runtime path variable. 10206runpath_var=$runpath_var 10207 10208# This is the shared library path variable. 10209shlibpath_var=$shlibpath_var 10210 10211# Is shlibpath searched before the hard-coded library search path? 10212shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10213 10214# How to hardcode a shared library path into an executable. 10215hardcode_action=$hardcode_action 10216 10217# Whether we should hardcode library paths into libraries. 10218hardcode_into_libs=$hardcode_into_libs 10219 10220# Flag to hardcode \$libdir into a binary during linking. 10221# This must work even if \$libdir does not exist. 10222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10223 10224# If ld is used when linking, flag to hardcode \$libdir into 10225# a binary during linking. This must work even if \$libdir does 10226# not exist. 10227hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10228 10229# Whether we need a single -rpath flag with a separated argument. 10230hardcode_libdir_separator=$lt_hardcode_libdir_separator 10231 10232# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10233# resulting binary. 10234hardcode_direct=$hardcode_direct 10235 10236# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10237# resulting binary. 10238hardcode_minus_L=$hardcode_minus_L 10239 10240# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10241# the resulting binary. 10242hardcode_shlibpath_var=$hardcode_shlibpath_var 10243 10244# Set to yes if building a shared library automatically hardcodes DIR into the library 10245# and all subsequent libraries and executables linked against it. 10246hardcode_automatic=$hardcode_automatic 10247 10248# Variables whose values should be saved in libtool wrapper scripts and 10249# restored at relink time. 10250variables_saved_for_relink="$variables_saved_for_relink" 10251 10252# Whether libtool must link a program against all its dependency libraries. 10253link_all_deplibs=$link_all_deplibs 10254 10255# Compile-time system search path for libraries 10256sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10257 10258# Run-time system search path for libraries 10259sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10260 10261# Fix the shell variable \$srcfile for the compiler. 10262fix_srcfile_path=$lt_fix_srcfile_path 10263 10264# Set to yes if exported symbols are required. 10265always_export_symbols=$always_export_symbols 10266 10267# The commands to list exported symbols. 10268export_symbols_cmds=$lt_export_symbols_cmds 10269 10270# The commands to extract the exported symbol list from a shared archive. 10271extract_expsyms_cmds=$lt_extract_expsyms_cmds 10272 10273# Symbols that should not be listed in the preloaded symbols. 10274exclude_expsyms=$lt_exclude_expsyms 10275 10276# Symbols that must always be exported. 10277include_expsyms=$lt_include_expsyms 10278 10279# ### END LIBTOOL CONFIG 10280 10281__EOF__ 10282 10283 10284 case $host_os in 10285 aix3*) 10286 cat <<\EOF >> "$cfgfile" 10287 10288# AIX sometimes has problems with the GCC collect2 program. For some 10289# reason, if we set the COLLECT_NAMES environment variable, the problems 10290# vanish in a puff of smoke. 10291if test "X${COLLECT_NAMES+set}" != Xset; then 10292 COLLECT_NAMES= 10293 export COLLECT_NAMES 10294fi 10295EOF 10296 ;; 10297 esac 10298 10299 # We use sed instead of cat because bash on DJGPP gets confused if 10300 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10301 # text mode, it properly converts lines to CR/LF. This bash problem 10302 # is reportedly fixed, but why not run on old versions too? 10303 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10304 10305 mv -f "$cfgfile" "$ofile" || \ 10306 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10307 chmod +x "$ofile" 10308 10309else 10310 # If there is no Makefile yet, we rely on a make rule to execute 10311 # `config.status --recheck' to rerun these tests and create the 10312 # libtool script then. 10313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10314 if test -f "$ltmain_in"; then 10315 test -f Makefile && make "$ltmain" 10316 fi 10317fi 10318 10319 10320ac_ext=c 10321ac_cpp='$CPP $CPPFLAGS' 10322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10324ac_compiler_gnu=$ac_cv_c_compiler_gnu 10325 10326CC="$lt_save_CC" 10327 10328 10329# Check whether --with-tags was given. 10330if test "${with_tags+set}" = set; then 10331 withval=$with_tags; tagnames="$withval" 10332fi 10333 10334 10335if test -f "$ltmain" && test -n "$tagnames"; then 10336 if test ! -f "${ofile}"; then 10337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10338echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10339 fi 10340 10341 if test -z "$LTCC"; then 10342 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10343 if test -z "$LTCC"; then 10344 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10345echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10346 else 10347 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10348echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10349 fi 10350 fi 10351 if test -z "$LTCFLAGS"; then 10352 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10353 fi 10354 10355 # Extract list of available tagged configurations in $ofile. 10356 # Note that this assumes the entire list is on one line. 10357 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10358 10359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10360 for tagname in $tagnames; do 10361 IFS="$lt_save_ifs" 10362 # Check whether tagname contains only valid characters 10363 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10364 "") ;; 10365 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10366echo "$as_me: error: invalid tag name: $tagname" >&2;} 10367 { (exit 1); exit 1; }; } 10368 ;; 10369 esac 10370 10371 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10372 then 10373 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10374echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10375 { (exit 1); exit 1; }; } 10376 fi 10377 10378 # Update the list of available tags. 10379 if test -n "$tagname"; then 10380 echo appending configuration tag \"$tagname\" to $ofile 10381 10382 case $tagname in 10383 CXX) 10384 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10386 (test "X$CXX" != "Xg++"))) ; then 10387 ac_ext=cpp 10388ac_cpp='$CXXCPP $CPPFLAGS' 10389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10392 10393 10394 10395 10396archive_cmds_need_lc_CXX=no 10397allow_undefined_flag_CXX= 10398always_export_symbols_CXX=no 10399archive_expsym_cmds_CXX= 10400export_dynamic_flag_spec_CXX= 10401hardcode_direct_CXX=no 10402hardcode_libdir_flag_spec_CXX= 10403hardcode_libdir_flag_spec_ld_CXX= 10404hardcode_libdir_separator_CXX= 10405hardcode_minus_L_CXX=no 10406hardcode_shlibpath_var_CXX=unsupported 10407hardcode_automatic_CXX=no 10408module_cmds_CXX= 10409module_expsym_cmds_CXX= 10410link_all_deplibs_CXX=unknown 10411old_archive_cmds_CXX=$old_archive_cmds 10412no_undefined_flag_CXX= 10413whole_archive_flag_spec_CXX= 10414enable_shared_with_static_runtimes_CXX=no 10415 10416# Dependencies to place before and after the object being linked: 10417predep_objects_CXX= 10418postdep_objects_CXX= 10419predeps_CXX= 10420postdeps_CXX= 10421compiler_lib_search_path_CXX= 10422compiler_lib_search_dirs_CXX= 10423 10424# Source file extension for C++ test sources. 10425ac_ext=cpp 10426 10427# Object file extension for compiled C++ test sources. 10428objext=o 10429objext_CXX=$objext 10430 10431# Code to be used in simple compile tests 10432lt_simple_compile_test_code="int some_variable = 0;" 10433 10434# Code to be used in simple link tests 10435lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10436 10437# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10438 10439# If no C compiler was specified, use CC. 10440LTCC=${LTCC-"$CC"} 10441 10442# If no C compiler flags were specified, use CFLAGS. 10443LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10444 10445# Allow CC to be a program name with arguments. 10446compiler=$CC 10447 10448 10449# save warnings/boilerplate of simple test code 10450ac_outfile=conftest.$ac_objext 10451echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10452eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10453_lt_compiler_boilerplate=`cat conftest.err` 10454$rm conftest* 10455 10456ac_outfile=conftest.$ac_objext 10457echo "$lt_simple_link_test_code" >conftest.$ac_ext 10458eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10459_lt_linker_boilerplate=`cat conftest.err` 10460$rm -r conftest* 10461 10462 10463# Allow CC to be a program name with arguments. 10464lt_save_CC=$CC 10465lt_save_LD=$LD 10466lt_save_GCC=$GCC 10467GCC=$GXX 10468lt_save_with_gnu_ld=$with_gnu_ld 10469lt_save_path_LD=$lt_cv_path_LD 10470if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10472else 10473 $as_unset lt_cv_prog_gnu_ld 10474fi 10475if test -n "${lt_cv_path_LDCXX+set}"; then 10476 lt_cv_path_LD=$lt_cv_path_LDCXX 10477else 10478 $as_unset lt_cv_path_LD 10479fi 10480test -z "${LDCXX+set}" || LD=$LDCXX 10481CC=${CXX-"c++"} 10482compiler=$CC 10483compiler_CXX=$CC 10484for cc_temp in $compiler""; do 10485 case $cc_temp in 10486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10488 \-*) ;; 10489 *) break;; 10490 esac 10491done 10492cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10493 10494 10495# We don't want -fno-exception wen compiling C++ code, so set the 10496# no_builtin_flag separately 10497if test "$GXX" = yes; then 10498 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10499else 10500 lt_prog_compiler_no_builtin_flag_CXX= 10501fi 10502 10503if test "$GXX" = yes; then 10504 # Set up default GNU C++ configuration 10505 10506 10507# Check whether --with-gnu-ld was given. 10508if test "${with_gnu_ld+set}" = set; then 10509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10510else 10511 with_gnu_ld=no 10512fi 10513 10514ac_prog=ld 10515if test "$GCC" = yes; then 10516 # Check if gcc -print-prog-name=ld gives a path. 10517 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10518echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10519 case $host in 10520 *-*-mingw*) 10521 # gcc leaves a trailing carriage return which upsets mingw 10522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10523 *) 10524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10525 esac 10526 case $ac_prog in 10527 # Accept absolute paths. 10528 [\\/]* | ?:[\\/]*) 10529 re_direlt='/[^/][^/]*/\.\./' 10530 # Canonicalize the pathname of ld 10531 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10532 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10533 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10534 done 10535 test -z "$LD" && LD="$ac_prog" 10536 ;; 10537 "") 10538 # If it fails, then pretend we aren't using GCC. 10539 ac_prog=ld 10540 ;; 10541 *) 10542 # If it is relative, then search for the first ld in PATH. 10543 with_gnu_ld=unknown 10544 ;; 10545 esac 10546elif test "$with_gnu_ld" = yes; then 10547 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10548echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10549else 10550 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10551echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10552fi 10553if test "${lt_cv_path_LD+set}" = set; then 10554 echo $ECHO_N "(cached) $ECHO_C" >&6 10555else 10556 if test -z "$LD"; then 10557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10558 for ac_dir in $PATH; do 10559 IFS="$lt_save_ifs" 10560 test -z "$ac_dir" && ac_dir=. 10561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10562 lt_cv_path_LD="$ac_dir/$ac_prog" 10563 # Check to see if the program is GNU ld. I'd rather use --version, 10564 # but apparently some variants of GNU ld only accept -v. 10565 # Break only if it was the GNU/non-GNU ld that we prefer. 10566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10567 *GNU* | *'with BFD'*) 10568 test "$with_gnu_ld" != no && break 10569 ;; 10570 *) 10571 test "$with_gnu_ld" != yes && break 10572 ;; 10573 esac 10574 fi 10575 done 10576 IFS="$lt_save_ifs" 10577else 10578 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10579fi 10580fi 10581 10582LD="$lt_cv_path_LD" 10583if test -n "$LD"; then 10584 { echo "$as_me:$LINENO: result: $LD" >&5 10585echo "${ECHO_T}$LD" >&6; } 10586else 10587 { echo "$as_me:$LINENO: result: no" >&5 10588echo "${ECHO_T}no" >&6; } 10589fi 10590test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10591echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10592 { (exit 1); exit 1; }; } 10593{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10594echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10595if test "${lt_cv_prog_gnu_ld+set}" = set; then 10596 echo $ECHO_N "(cached) $ECHO_C" >&6 10597else 10598 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10599case `$LD -v 2>&1 </dev/null` in 10600*GNU* | *'with BFD'*) 10601 lt_cv_prog_gnu_ld=yes 10602 ;; 10603*) 10604 lt_cv_prog_gnu_ld=no 10605 ;; 10606esac 10607fi 10608{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10609echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10610with_gnu_ld=$lt_cv_prog_gnu_ld 10611 10612 10613 10614 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10615 # archiving commands below assume that GNU ld is being used. 10616 if test "$with_gnu_ld" = yes; then 10617 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10618 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' 10619 10620 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10622 10623 # If archive_cmds runs LD, not CC, wlarc should be empty 10624 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10625 # investigate it a little bit more. (MM) 10626 wlarc='${wl}' 10627 10628 # ancient GNU ld didn't support --whole-archive et. al. 10629 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10630 grep 'no-whole-archive' > /dev/null; then 10631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10632 else 10633 whole_archive_flag_spec_CXX= 10634 fi 10635 else 10636 with_gnu_ld=no 10637 wlarc= 10638 10639 # A generic and very simple default shared library creation 10640 # command for GNU C++ for the case where it uses the native 10641 # linker, instead of GNU ld. If possible, this setting should 10642 # overridden to take advantage of the native linker features on 10643 # the platform it is being used on. 10644 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10645 fi 10646 10647 # Commands to make compiler produce verbose output that lists 10648 # what "hidden" libraries, object files and flags are used when 10649 # linking a shared library. 10650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10651 10652else 10653 GXX=no 10654 with_gnu_ld=no 10655 wlarc= 10656fi 10657 10658# PORTME: fill in a description of your system's C++ link characteristics 10659{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10661ld_shlibs_CXX=yes 10662case $host_os in 10663 aix3*) 10664 # FIXME: insert proper C++ library support 10665 ld_shlibs_CXX=no 10666 ;; 10667 aix[4-9]*) 10668 if test "$host_cpu" = ia64; then 10669 # On IA64, the linker does run time linking by default, so we don't 10670 # have to do anything special. 10671 aix_use_runtimelinking=no 10672 exp_sym_flag='-Bexport' 10673 no_entry_flag="" 10674 else 10675 aix_use_runtimelinking=no 10676 10677 # Test if we are trying to use run time linking or normal 10678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10679 # need to do runtime linking. 10680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10681 for ld_flag in $LDFLAGS; do 10682 case $ld_flag in 10683 *-brtl*) 10684 aix_use_runtimelinking=yes 10685 break 10686 ;; 10687 esac 10688 done 10689 ;; 10690 esac 10691 10692 exp_sym_flag='-bexport' 10693 no_entry_flag='-bnoentry' 10694 fi 10695 10696 # When large executables or shared objects are built, AIX ld can 10697 # have problems creating the table of contents. If linking a library 10698 # or program results in "error TOC overflow" add -mminimal-toc to 10699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10701 10702 archive_cmds_CXX='' 10703 hardcode_direct_CXX=yes 10704 hardcode_libdir_separator_CXX=':' 10705 link_all_deplibs_CXX=yes 10706 10707 if test "$GXX" = yes; then 10708 case $host_os in aix4.[012]|aix4.[012].*) 10709 # We only want to do this on AIX 4.2 and lower, the check 10710 # below for broken collect2 doesn't work under 4.3+ 10711 collect2name=`${CC} -print-prog-name=collect2` 10712 if test -f "$collect2name" && \ 10713 strings "$collect2name" | grep resolve_lib_name >/dev/null 10714 then 10715 # We have reworked collect2 10716 : 10717 else 10718 # We have old collect2 10719 hardcode_direct_CXX=unsupported 10720 # It fails to find uninstalled libraries when the uninstalled 10721 # path is not listed in the libpath. Setting hardcode_minus_L 10722 # to unsupported forces relinking 10723 hardcode_minus_L_CXX=yes 10724 hardcode_libdir_flag_spec_CXX='-L$libdir' 10725 hardcode_libdir_separator_CXX= 10726 fi 10727 ;; 10728 esac 10729 shared_flag='-shared' 10730 if test "$aix_use_runtimelinking" = yes; then 10731 shared_flag="$shared_flag "'${wl}-G' 10732 fi 10733 else 10734 # not using gcc 10735 if test "$host_cpu" = ia64; then 10736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10737 # chokes on -Wl,-G. The following line is correct: 10738 shared_flag='-G' 10739 else 10740 if test "$aix_use_runtimelinking" = yes; then 10741 shared_flag='${wl}-G' 10742 else 10743 shared_flag='${wl}-bM:SRE' 10744 fi 10745 fi 10746 fi 10747 10748 # It seems that -bexpall does not export symbols beginning with 10749 # underscore (_), so it is better to generate a list of symbols to export. 10750 always_export_symbols_CXX=yes 10751 if test "$aix_use_runtimelinking" = yes; then 10752 # Warning - without using the other runtime loading flags (-brtl), 10753 # -berok will link without error, but may produce a broken library. 10754 allow_undefined_flag_CXX='-berok' 10755 # Determine the default libpath from the value encoded in an empty executable. 10756 cat >conftest.$ac_ext <<_ACEOF 10757/* confdefs.h. */ 10758_ACEOF 10759cat confdefs.h >>conftest.$ac_ext 10760cat >>conftest.$ac_ext <<_ACEOF 10761/* end confdefs.h. */ 10762 10763int 10764main () 10765{ 10766 10767 ; 10768 return 0; 10769} 10770_ACEOF 10771rm -f conftest.$ac_objext conftest$ac_exeext 10772if { (ac_try="$ac_link" 10773case "(($ac_try" in 10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10775 *) ac_try_echo=$ac_try;; 10776esac 10777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10778 (eval "$ac_link") 2>conftest.er1 10779 ac_status=$? 10780 grep -v '^ *+' conftest.er1 >conftest.err 10781 rm -f conftest.er1 10782 cat conftest.err >&5 10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10784 (exit $ac_status); } && { 10785 test -z "$ac_cxx_werror_flag" || 10786 test ! -s conftest.err 10787 } && test -s conftest$ac_exeext && 10788 $as_test_x conftest$ac_exeext; then 10789 10790lt_aix_libpath_sed=' 10791 /Import File Strings/,/^$/ { 10792 /^0/ { 10793 s/^0 *\(.*\)$/\1/ 10794 p 10795 } 10796 }' 10797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10798# Check for a 64-bit object if we didn't find anything. 10799if test -z "$aix_libpath"; then 10800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10801fi 10802else 10803 echo "$as_me: failed program was:" >&5 10804sed 's/^/| /' conftest.$ac_ext >&5 10805 10806 10807fi 10808 10809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10810 conftest$ac_exeext conftest.$ac_ext 10811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10812 10813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10814 10815 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" 10816 else 10817 if test "$host_cpu" = ia64; then 10818 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10819 allow_undefined_flag_CXX="-z nodefs" 10820 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" 10821 else 10822 # Determine the default libpath from the value encoded in an empty executable. 10823 cat >conftest.$ac_ext <<_ACEOF 10824/* confdefs.h. */ 10825_ACEOF 10826cat confdefs.h >>conftest.$ac_ext 10827cat >>conftest.$ac_ext <<_ACEOF 10828/* end confdefs.h. */ 10829 10830int 10831main () 10832{ 10833 10834 ; 10835 return 0; 10836} 10837_ACEOF 10838rm -f conftest.$ac_objext conftest$ac_exeext 10839if { (ac_try="$ac_link" 10840case "(($ac_try" in 10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10842 *) ac_try_echo=$ac_try;; 10843esac 10844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10845 (eval "$ac_link") 2>conftest.er1 10846 ac_status=$? 10847 grep -v '^ *+' conftest.er1 >conftest.err 10848 rm -f conftest.er1 10849 cat conftest.err >&5 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 (exit $ac_status); } && { 10852 test -z "$ac_cxx_werror_flag" || 10853 test ! -s conftest.err 10854 } && test -s conftest$ac_exeext && 10855 $as_test_x conftest$ac_exeext; then 10856 10857lt_aix_libpath_sed=' 10858 /Import File Strings/,/^$/ { 10859 /^0/ { 10860 s/^0 *\(.*\)$/\1/ 10861 p 10862 } 10863 }' 10864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10865# Check for a 64-bit object if we didn't find anything. 10866if test -z "$aix_libpath"; then 10867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10868fi 10869else 10870 echo "$as_me: failed program was:" >&5 10871sed 's/^/| /' conftest.$ac_ext >&5 10872 10873 10874fi 10875 10876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10877 conftest$ac_exeext conftest.$ac_ext 10878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10879 10880 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10881 # Warning - without using the other run time loading flags, 10882 # -berok will link without error, but may produce a broken library. 10883 no_undefined_flag_CXX=' ${wl}-bernotok' 10884 allow_undefined_flag_CXX=' ${wl}-berok' 10885 # Exported symbols can be pulled into shared objects from archives 10886 whole_archive_flag_spec_CXX='$convenience' 10887 archive_cmds_need_lc_CXX=yes 10888 # This is similar to how AIX traditionally builds its shared libraries. 10889 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' 10890 fi 10891 fi 10892 ;; 10893 10894 beos*) 10895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10896 allow_undefined_flag_CXX=unsupported 10897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10898 # support --undefined. This deserves some investigation. FIXME 10899 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10900 else 10901 ld_shlibs_CXX=no 10902 fi 10903 ;; 10904 10905 chorus*) 10906 case $cc_basename in 10907 *) 10908 # FIXME: insert proper C++ library support 10909 ld_shlibs_CXX=no 10910 ;; 10911 esac 10912 ;; 10913 10914 cygwin* | mingw* | pw32*) 10915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10916 # as there is no search path for DLLs. 10917 hardcode_libdir_flag_spec_CXX='-L$libdir' 10918 allow_undefined_flag_CXX=unsupported 10919 always_export_symbols_CXX=no 10920 enable_shared_with_static_runtimes_CXX=yes 10921 10922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10923 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' 10924 # If the export-symbols file already is a .def file (1st line 10925 # is EXPORTS), use it as is; otherwise, prepend... 10926 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10927 cp $export_symbols $output_objdir/$soname.def; 10928 else 10929 echo EXPORTS > $output_objdir/$soname.def; 10930 cat $export_symbols >> $output_objdir/$soname.def; 10931 fi~ 10932 $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' 10933 else 10934 ld_shlibs_CXX=no 10935 fi 10936 ;; 10937 darwin* | rhapsody*) 10938 archive_cmds_need_lc_CXX=no 10939 hardcode_direct_CXX=no 10940 hardcode_automatic_CXX=yes 10941 hardcode_shlibpath_var_CXX=unsupported 10942 whole_archive_flag_spec_CXX='' 10943 link_all_deplibs_CXX=yes 10944 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 10945 if test "$GXX" = yes ; then 10946 output_verbose_link_cmd='echo' 10947 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10948 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10949 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10950 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10951 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 10952 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${_lt_dsymutil}" 10953 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 10954 fi 10955 else 10956 case $cc_basename in 10957 xlc*) 10958 output_verbose_link_cmd='echo' 10959 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 10960 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10962 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10963 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}' 10964 ;; 10965 *) 10966 ld_shlibs_CXX=no 10967 ;; 10968 esac 10969 fi 10970 ;; 10971 10972 dgux*) 10973 case $cc_basename in 10974 ec++*) 10975 # FIXME: insert proper C++ library support 10976 ld_shlibs_CXX=no 10977 ;; 10978 ghcx*) 10979 # Green Hills C++ Compiler 10980 # FIXME: insert proper C++ library support 10981 ld_shlibs_CXX=no 10982 ;; 10983 *) 10984 # FIXME: insert proper C++ library support 10985 ld_shlibs_CXX=no 10986 ;; 10987 esac 10988 ;; 10989 freebsd[12]*) 10990 # C++ shared libraries reported to be fairly broken before switch to ELF 10991 ld_shlibs_CXX=no 10992 ;; 10993 freebsd-elf*) 10994 archive_cmds_need_lc_CXX=no 10995 ;; 10996 freebsd* | dragonfly*) 10997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10998 # conventions 10999 ld_shlibs_CXX=yes 11000 ;; 11001 gnu*) 11002 ;; 11003 hpux9*) 11004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11005 hardcode_libdir_separator_CXX=: 11006 export_dynamic_flag_spec_CXX='${wl}-E' 11007 hardcode_direct_CXX=yes 11008 hardcode_minus_L_CXX=yes # Not in the search PATH, 11009 # but as the default 11010 # location of the library. 11011 11012 case $cc_basename in 11013 CC*) 11014 # FIXME: insert proper C++ library support 11015 ld_shlibs_CXX=no 11016 ;; 11017 aCC*) 11018 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' 11019 # Commands to make compiler produce verbose output that lists 11020 # what "hidden" libraries, object files and flags are used when 11021 # linking a shared library. 11022 # 11023 # There doesn't appear to be a way to prevent this compiler from 11024 # explicitly linking system object files so we need to strip them 11025 # from the output so that they don't get included in the library 11026 # dependencies. 11027 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' 11028 ;; 11029 *) 11030 if test "$GXX" = yes; then 11031 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' 11032 else 11033 # FIXME: insert proper C++ library support 11034 ld_shlibs_CXX=no 11035 fi 11036 ;; 11037 esac 11038 ;; 11039 hpux10*|hpux11*) 11040 if test $with_gnu_ld = no; then 11041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11042 hardcode_libdir_separator_CXX=: 11043 11044 case $host_cpu in 11045 hppa*64*|ia64*) ;; 11046 *) 11047 export_dynamic_flag_spec_CXX='${wl}-E' 11048 ;; 11049 esac 11050 fi 11051 case $host_cpu in 11052 hppa*64*|ia64*) 11053 hardcode_direct_CXX=no 11054 hardcode_shlibpath_var_CXX=no 11055 ;; 11056 *) 11057 hardcode_direct_CXX=yes 11058 hardcode_minus_L_CXX=yes # Not in the search PATH, 11059 # but as the default 11060 # location of the library. 11061 ;; 11062 esac 11063 11064 case $cc_basename in 11065 CC*) 11066 # FIXME: insert proper C++ library support 11067 ld_shlibs_CXX=no 11068 ;; 11069 aCC*) 11070 case $host_cpu in 11071 hppa*64*) 11072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11073 ;; 11074 ia64*) 11075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11076 ;; 11077 *) 11078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11079 ;; 11080 esac 11081 # Commands to make compiler produce verbose output that lists 11082 # what "hidden" libraries, object files and flags are used when 11083 # linking a shared library. 11084 # 11085 # There doesn't appear to be a way to prevent this compiler from 11086 # explicitly linking system object files so we need to strip them 11087 # from the output so that they don't get included in the library 11088 # dependencies. 11089 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' 11090 ;; 11091 *) 11092 if test "$GXX" = yes; then 11093 if test $with_gnu_ld = no; then 11094 case $host_cpu in 11095 hppa*64*) 11096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11097 ;; 11098 ia64*) 11099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11100 ;; 11101 *) 11102 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' 11103 ;; 11104 esac 11105 fi 11106 else 11107 # FIXME: insert proper C++ library support 11108 ld_shlibs_CXX=no 11109 fi 11110 ;; 11111 esac 11112 ;; 11113 interix[3-9]*) 11114 hardcode_direct_CXX=no 11115 hardcode_shlibpath_var_CXX=no 11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11117 export_dynamic_flag_spec_CXX='${wl}-E' 11118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11119 # Instead, shared libraries are loaded at an image base (0x10000000 by 11120 # default) and relocated if they conflict, which is a slow very memory 11121 # consuming and fragmenting process. To avoid this, we pick a random, 11122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11123 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11124 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' 11125 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' 11126 ;; 11127 irix5* | irix6*) 11128 case $cc_basename in 11129 CC*) 11130 # SGI C++ 11131 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' 11132 11133 # Archives containing C++ object files must be created using 11134 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11135 # necessary to make sure instantiated templates are included 11136 # in the archive. 11137 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11138 ;; 11139 *) 11140 if test "$GXX" = yes; then 11141 if test "$with_gnu_ld" = no; then 11142 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' 11143 else 11144 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' 11145 fi 11146 fi 11147 link_all_deplibs_CXX=yes 11148 ;; 11149 esac 11150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11151 hardcode_libdir_separator_CXX=: 11152 ;; 11153 linux* | k*bsd*-gnu) 11154 case $cc_basename in 11155 KCC*) 11156 # Kuck and Associates, Inc. (KAI) C++ Compiler 11157 11158 # KCC will only create a shared library if the output file 11159 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11160 # to its proper name (with version) after linking. 11161 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' 11162 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' 11163 # Commands to make compiler produce verbose output that lists 11164 # what "hidden" libraries, object files and flags are used when 11165 # linking a shared library. 11166 # 11167 # There doesn't appear to be a way to prevent this compiler from 11168 # explicitly linking system object files so we need to strip them 11169 # from the output so that they don't get included in the library 11170 # dependencies. 11171 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' 11172 11173 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11175 11176 # Archives containing C++ object files must be created using 11177 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11179 ;; 11180 icpc*) 11181 # Intel C++ 11182 with_gnu_ld=yes 11183 # version 8.0 and above of icpc choke on multiply defined symbols 11184 # if we add $predep_objects and $postdep_objects, however 7.1 and 11185 # earlier do not add the objects themselves. 11186 case `$CC -V 2>&1` in 11187 *"Version 7."*) 11188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11189 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' 11190 ;; 11191 *) # Version 8.0 or newer 11192 tmp_idyn= 11193 case $host_cpu in 11194 ia64*) tmp_idyn=' -i_dynamic';; 11195 esac 11196 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11197 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' 11198 ;; 11199 esac 11200 archive_cmds_need_lc_CXX=no 11201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11202 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11203 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11204 ;; 11205 pgCC* | pgcpp*) 11206 # Portland Group C++ compiler 11207 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11208 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' 11209 11210 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11212 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' 11213 ;; 11214 cxx*) 11215 # Compaq C++ 11216 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11217 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' 11218 11219 runpath_var=LD_RUN_PATH 11220 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11221 hardcode_libdir_separator_CXX=: 11222 11223 # Commands to make compiler produce verbose output that lists 11224 # what "hidden" libraries, object files and flags are used when 11225 # linking a shared library. 11226 # 11227 # There doesn't appear to be a way to prevent this compiler from 11228 # explicitly linking system object files so we need to strip them 11229 # from the output so that they don't get included in the library 11230 # dependencies. 11231 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' 11232 ;; 11233 *) 11234 case `$CC -V 2>&1 | sed 5q` in 11235 *Sun\ C*) 11236 # Sun C++ 5.9 11237 no_undefined_flag_CXX=' -zdefs' 11238 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11239 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11240 hardcode_libdir_flag_spec_CXX='-R$libdir' 11241 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11242 11243 # Not sure whether something based on 11244 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11245 # would be better. 11246 output_verbose_link_cmd='echo' 11247 11248 # Archives containing C++ object files must be created using 11249 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11250 # necessary to make sure instantiated templates are included 11251 # in the archive. 11252 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11253 ;; 11254 esac 11255 ;; 11256 esac 11257 ;; 11258 lynxos*) 11259 # FIXME: insert proper C++ library support 11260 ld_shlibs_CXX=no 11261 ;; 11262 m88k*) 11263 # FIXME: insert proper C++ library support 11264 ld_shlibs_CXX=no 11265 ;; 11266 mvs*) 11267 case $cc_basename in 11268 cxx*) 11269 # FIXME: insert proper C++ library support 11270 ld_shlibs_CXX=no 11271 ;; 11272 *) 11273 # FIXME: insert proper C++ library support 11274 ld_shlibs_CXX=no 11275 ;; 11276 esac 11277 ;; 11278 netbsd*) 11279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11280 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11281 wlarc= 11282 hardcode_libdir_flag_spec_CXX='-R$libdir' 11283 hardcode_direct_CXX=yes 11284 hardcode_shlibpath_var_CXX=no 11285 fi 11286 # Workaround some broken pre-1.5 toolchains 11287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11288 ;; 11289 openbsd2*) 11290 # C++ shared libraries are fairly broken 11291 ld_shlibs_CXX=no 11292 ;; 11293 openbsd*) 11294 if test -f /usr/libexec/ld.so; then 11295 hardcode_direct_CXX=yes 11296 hardcode_shlibpath_var_CXX=no 11297 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11300 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11301 export_dynamic_flag_spec_CXX='${wl}-E' 11302 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11303 fi 11304 output_verbose_link_cmd='echo' 11305 else 11306 ld_shlibs_CXX=no 11307 fi 11308 ;; 11309 osf3*) 11310 case $cc_basename in 11311 KCC*) 11312 # Kuck and Associates, Inc. (KAI) C++ Compiler 11313 11314 # KCC will only create a shared library if the output file 11315 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11316 # to its proper name (with version) after linking. 11317 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' 11318 11319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11320 hardcode_libdir_separator_CXX=: 11321 11322 # Archives containing C++ object files must be created using 11323 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11324 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11325 11326 ;; 11327 RCC*) 11328 # Rational C++ 2.4.1 11329 # FIXME: insert proper C++ library support 11330 ld_shlibs_CXX=no 11331 ;; 11332 cxx*) 11333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11334 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' 11335 11336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11337 hardcode_libdir_separator_CXX=: 11338 11339 # Commands to make compiler produce verbose output that lists 11340 # what "hidden" libraries, object files and flags are used when 11341 # linking a shared library. 11342 # 11343 # There doesn't appear to be a way to prevent this compiler from 11344 # explicitly linking system object files so we need to strip them 11345 # from the output so that they don't get included in the library 11346 # dependencies. 11347 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' 11348 ;; 11349 *) 11350 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11351 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11352 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' 11353 11354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11355 hardcode_libdir_separator_CXX=: 11356 11357 # Commands to make compiler produce verbose output that lists 11358 # what "hidden" libraries, object files and flags are used when 11359 # linking a shared library. 11360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11361 11362 else 11363 # FIXME: insert proper C++ library support 11364 ld_shlibs_CXX=no 11365 fi 11366 ;; 11367 esac 11368 ;; 11369 osf4* | osf5*) 11370 case $cc_basename in 11371 KCC*) 11372 # Kuck and Associates, Inc. (KAI) C++ Compiler 11373 11374 # KCC will only create a shared library if the output file 11375 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11376 # to its proper name (with version) after linking. 11377 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' 11378 11379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11380 hardcode_libdir_separator_CXX=: 11381 11382 # Archives containing C++ object files must be created using 11383 # the KAI C++ compiler. 11384 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11385 ;; 11386 RCC*) 11387 # Rational C++ 2.4.1 11388 # FIXME: insert proper C++ library support 11389 ld_shlibs_CXX=no 11390 ;; 11391 cxx*) 11392 allow_undefined_flag_CXX=' -expect_unresolved \*' 11393 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' 11394 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11395 echo "-hidden">> $lib.exp~ 11396 $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~ 11397 $rm $lib.exp' 11398 11399 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11400 hardcode_libdir_separator_CXX=: 11401 11402 # Commands to make compiler produce verbose output that lists 11403 # what "hidden" libraries, object files and flags are used when 11404 # linking a shared library. 11405 # 11406 # There doesn't appear to be a way to prevent this compiler from 11407 # explicitly linking system object files so we need to strip them 11408 # from the output so that they don't get included in the library 11409 # dependencies. 11410 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' 11411 ;; 11412 *) 11413 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11414 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11415 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' 11416 11417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11418 hardcode_libdir_separator_CXX=: 11419 11420 # Commands to make compiler produce verbose output that lists 11421 # what "hidden" libraries, object files and flags are used when 11422 # linking a shared library. 11423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11424 11425 else 11426 # FIXME: insert proper C++ library support 11427 ld_shlibs_CXX=no 11428 fi 11429 ;; 11430 esac 11431 ;; 11432 psos*) 11433 # FIXME: insert proper C++ library support 11434 ld_shlibs_CXX=no 11435 ;; 11436 sunos4*) 11437 case $cc_basename in 11438 CC*) 11439 # Sun C++ 4.x 11440 # FIXME: insert proper C++ library support 11441 ld_shlibs_CXX=no 11442 ;; 11443 lcc*) 11444 # Lucid 11445 # FIXME: insert proper C++ library support 11446 ld_shlibs_CXX=no 11447 ;; 11448 *) 11449 # FIXME: insert proper C++ library support 11450 ld_shlibs_CXX=no 11451 ;; 11452 esac 11453 ;; 11454 solaris*) 11455 case $cc_basename in 11456 CC*) 11457 # Sun C++ 4.2, 5.x and Centerline C++ 11458 archive_cmds_need_lc_CXX=yes 11459 no_undefined_flag_CXX=' -zdefs' 11460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11461 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11462 $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' 11463 11464 hardcode_libdir_flag_spec_CXX='-R$libdir' 11465 hardcode_shlibpath_var_CXX=no 11466 case $host_os in 11467 solaris2.[0-5] | solaris2.[0-5].*) ;; 11468 *) 11469 # The compiler driver will combine and reorder linker options, 11470 # but understands `-z linker_flag'. 11471 # Supported since Solaris 2.6 (maybe 2.5.1?) 11472 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11473 ;; 11474 esac 11475 link_all_deplibs_CXX=yes 11476 11477 output_verbose_link_cmd='echo' 11478 11479 # Archives containing C++ object files must be created using 11480 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11481 # necessary to make sure instantiated templates are included 11482 # in the archive. 11483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11484 ;; 11485 gcx*) 11486 # Green Hills C++ Compiler 11487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11488 11489 # The C++ compiler must be used to create the archive. 11490 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11491 ;; 11492 *) 11493 # GNU C++ compiler with Solaris linker 11494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11495 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11496 if $CC --version | grep -v '^2\.7' > /dev/null; then 11497 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11498 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11499 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11500 11501 # Commands to make compiler produce verbose output that lists 11502 # what "hidden" libraries, object files and flags are used when 11503 # linking a shared library. 11504 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11505 else 11506 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11507 # platform. 11508 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11509 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11511 11512 # Commands to make compiler produce verbose output that lists 11513 # what "hidden" libraries, object files and flags are used when 11514 # linking a shared library. 11515 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11516 fi 11517 11518 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11519 case $host_os in 11520 solaris2.[0-5] | solaris2.[0-5].*) ;; 11521 *) 11522 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11523 ;; 11524 esac 11525 fi 11526 ;; 11527 esac 11528 ;; 11529 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11530 no_undefined_flag_CXX='${wl}-z,text' 11531 archive_cmds_need_lc_CXX=no 11532 hardcode_shlibpath_var_CXX=no 11533 runpath_var='LD_RUN_PATH' 11534 11535 case $cc_basename in 11536 CC*) 11537 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11538 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11539 ;; 11540 *) 11541 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11542 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11543 ;; 11544 esac 11545 ;; 11546 sysv5* | sco3.2v5* | sco5v6*) 11547 # Note: We can NOT use -z defs as we might desire, because we do not 11548 # link with -lc, and that would cause any symbols used from libc to 11549 # always be unresolved, which means just about no library would 11550 # ever link correctly. If we're not using GNU ld we use -z text 11551 # though, which does catch some bad symbols but isn't as heavy-handed 11552 # as -z defs. 11553 # For security reasons, it is highly recommended that you always 11554 # use absolute paths for naming shared libraries, and exclude the 11555 # DT_RUNPATH tag from executables and libraries. But doing so 11556 # requires that you compile everything twice, which is a pain. 11557 # So that behaviour is only enabled if SCOABSPATH is set to a 11558 # non-empty value in the environment. Most likely only useful for 11559 # creating official distributions of packages. 11560 # This is a hack until libtool officially supports absolute path 11561 # names for shared libraries. 11562 no_undefined_flag_CXX='${wl}-z,text' 11563 allow_undefined_flag_CXX='${wl}-z,nodefs' 11564 archive_cmds_need_lc_CXX=no 11565 hardcode_shlibpath_var_CXX=no 11566 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11567 hardcode_libdir_separator_CXX=':' 11568 link_all_deplibs_CXX=yes 11569 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11570 runpath_var='LD_RUN_PATH' 11571 11572 case $cc_basename in 11573 CC*) 11574 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11575 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11576 ;; 11577 *) 11578 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11579 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11580 ;; 11581 esac 11582 ;; 11583 tandem*) 11584 case $cc_basename in 11585 NCC*) 11586 # NonStop-UX NCC 3.20 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 ;; 11590 *) 11591 # FIXME: insert proper C++ library support 11592 ld_shlibs_CXX=no 11593 ;; 11594 esac 11595 ;; 11596 vxworks*) 11597 # FIXME: insert proper C++ library support 11598 ld_shlibs_CXX=no 11599 ;; 11600 *) 11601 # FIXME: insert proper C++ library support 11602 ld_shlibs_CXX=no 11603 ;; 11604esac 11605{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11606echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11607test "$ld_shlibs_CXX" = no && can_build_shared=no 11608 11609GCC_CXX="$GXX" 11610LD_CXX="$LD" 11611 11612## CAVEAT EMPTOR: 11613## There is no encapsulation within the following macros, do not change 11614## the running order or otherwise move them around unless you know exactly 11615## what you are doing... 11616cat > conftest.$ac_ext <<EOF 11617class Foo 11618{ 11619public: 11620 Foo (void) { a = 0; } 11621private: 11622 int a; 11623}; 11624EOF 11625 11626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11627 (eval $ac_compile) 2>&5 11628 ac_status=$? 11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11630 (exit $ac_status); }; then 11631 # Parse the compiler output and extract the necessary 11632 # objects, libraries and library flags. 11633 11634 # Sentinel used to keep track of whether or not we are before 11635 # the conftest object file. 11636 pre_test_object_deps_done=no 11637 11638 # The `*' in the case matches for architectures that use `case' in 11639 # $output_verbose_cmd can trigger glob expansion during the loop 11640 # eval without this substitution. 11641 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11642 11643 for p in `eval $output_verbose_link_cmd`; do 11644 case $p in 11645 11646 -L* | -R* | -l*) 11647 # Some compilers place space between "-{L,R}" and the path. 11648 # Remove the space. 11649 if test $p = "-L" \ 11650 || test $p = "-R"; then 11651 prev=$p 11652 continue 11653 else 11654 prev= 11655 fi 11656 11657 if test "$pre_test_object_deps_done" = no; then 11658 case $p in 11659 -L* | -R*) 11660 # Internal compiler library paths should come after those 11661 # provided the user. The postdeps already come after the 11662 # user supplied libs so there is no need to process them. 11663 if test -z "$compiler_lib_search_path_CXX"; then 11664 compiler_lib_search_path_CXX="${prev}${p}" 11665 else 11666 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11667 fi 11668 ;; 11669 # The "-l" case would never come before the object being 11670 # linked, so don't bother handling this case. 11671 esac 11672 else 11673 if test -z "$postdeps_CXX"; then 11674 postdeps_CXX="${prev}${p}" 11675 else 11676 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11677 fi 11678 fi 11679 ;; 11680 11681 *.$objext) 11682 # This assumes that the test object file only shows up 11683 # once in the compiler output. 11684 if test "$p" = "conftest.$objext"; then 11685 pre_test_object_deps_done=yes 11686 continue 11687 fi 11688 11689 if test "$pre_test_object_deps_done" = no; then 11690 if test -z "$predep_objects_CXX"; then 11691 predep_objects_CXX="$p" 11692 else 11693 predep_objects_CXX="$predep_objects_CXX $p" 11694 fi 11695 else 11696 if test -z "$postdep_objects_CXX"; then 11697 postdep_objects_CXX="$p" 11698 else 11699 postdep_objects_CXX="$postdep_objects_CXX $p" 11700 fi 11701 fi 11702 ;; 11703 11704 *) ;; # Ignore the rest. 11705 11706 esac 11707 done 11708 11709 # Clean up. 11710 rm -f a.out a.exe 11711else 11712 echo "libtool.m4: error: problem compiling CXX test program" 11713fi 11714 11715$rm -f confest.$objext 11716 11717compiler_lib_search_dirs_CXX= 11718if test -n "$compiler_lib_search_path_CXX"; then 11719 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 11720fi 11721 11722# PORTME: override above test on systems where it is broken 11723case $host_os in 11724interix[3-9]*) 11725 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11726 # hack all around it, let's just trust "g++" to DTRT. 11727 predep_objects_CXX= 11728 postdep_objects_CXX= 11729 postdeps_CXX= 11730 ;; 11731 11732linux*) 11733 case `$CC -V 2>&1 | sed 5q` in 11734 *Sun\ C*) 11735 # Sun C++ 5.9 11736 # 11737 # The more standards-conforming stlport4 library is 11738 # incompatible with the Cstd library. Avoid specifying 11739 # it if it's in CXXFLAGS. Ignore libCrun as 11740 # -library=stlport4 depends on it. 11741 case " $CXX $CXXFLAGS " in 11742 *" -library=stlport4 "*) 11743 solaris_use_stlport4=yes 11744 ;; 11745 esac 11746 if test "$solaris_use_stlport4" != yes; then 11747 postdeps_CXX='-library=Cstd -library=Crun' 11748 fi 11749 ;; 11750 esac 11751 ;; 11752 11753solaris*) 11754 case $cc_basename in 11755 CC*) 11756 # The more standards-conforming stlport4 library is 11757 # incompatible with the Cstd library. Avoid specifying 11758 # it if it's in CXXFLAGS. Ignore libCrun as 11759 # -library=stlport4 depends on it. 11760 case " $CXX $CXXFLAGS " in 11761 *" -library=stlport4 "*) 11762 solaris_use_stlport4=yes 11763 ;; 11764 esac 11765 11766 # Adding this requires a known-good setup of shared libraries for 11767 # Sun compiler versions before 5.6, else PIC objects from an old 11768 # archive will be linked into the output, leading to subtle bugs. 11769 if test "$solaris_use_stlport4" != yes; then 11770 postdeps_CXX='-library=Cstd -library=Crun' 11771 fi 11772 ;; 11773 esac 11774 ;; 11775esac 11776 11777case " $postdeps_CXX " in 11778*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11779esac 11780 11781lt_prog_compiler_wl_CXX= 11782lt_prog_compiler_pic_CXX= 11783lt_prog_compiler_static_CXX= 11784 11785{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11786echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11787 11788 # C++ specific cases for pic, static, wl, etc. 11789 if test "$GXX" = yes; then 11790 lt_prog_compiler_wl_CXX='-Wl,' 11791 lt_prog_compiler_static_CXX='-static' 11792 11793 case $host_os in 11794 aix*) 11795 # All AIX code is PIC. 11796 if test "$host_cpu" = ia64; then 11797 # AIX 5 now supports IA64 processor 11798 lt_prog_compiler_static_CXX='-Bstatic' 11799 fi 11800 ;; 11801 amigaos*) 11802 # FIXME: we need at least 68020 code to build shared libraries, but 11803 # adding the `-m68020' flag to GCC prevents building anything better, 11804 # like `-m68040'. 11805 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11806 ;; 11807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11808 # PIC is the default for these OSes. 11809 ;; 11810 mingw* | cygwin* | os2* | pw32*) 11811 # This hack is so that the source file can tell whether it is being 11812 # built for inclusion in a dll (and should export symbols for example). 11813 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11814 # (--disable-auto-import) libraries 11815 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11816 ;; 11817 darwin* | rhapsody*) 11818 # PIC is the default on this platform 11819 # Common symbols not allowed in MH_DYLIB files 11820 lt_prog_compiler_pic_CXX='-fno-common' 11821 ;; 11822 *djgpp*) 11823 # DJGPP does not support shared libraries at all 11824 lt_prog_compiler_pic_CXX= 11825 ;; 11826 interix[3-9]*) 11827 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11828 # Instead, we relocate shared libraries at runtime. 11829 ;; 11830 sysv4*MP*) 11831 if test -d /usr/nec; then 11832 lt_prog_compiler_pic_CXX=-Kconform_pic 11833 fi 11834 ;; 11835 hpux*) 11836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11837 # not for PA HP-UX. 11838 case $host_cpu in 11839 hppa*64*|ia64*) 11840 ;; 11841 *) 11842 lt_prog_compiler_pic_CXX='-fPIC' 11843 ;; 11844 esac 11845 ;; 11846 *) 11847 lt_prog_compiler_pic_CXX='-fPIC' 11848 ;; 11849 esac 11850 else 11851 case $host_os in 11852 aix[4-9]*) 11853 # All AIX code is PIC. 11854 if test "$host_cpu" = ia64; then 11855 # AIX 5 now supports IA64 processor 11856 lt_prog_compiler_static_CXX='-Bstatic' 11857 else 11858 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11859 fi 11860 ;; 11861 chorus*) 11862 case $cc_basename in 11863 cxch68*) 11864 # Green Hills C++ Compiler 11865 # _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" 11866 ;; 11867 esac 11868 ;; 11869 darwin*) 11870 # PIC is the default on this platform 11871 # Common symbols not allowed in MH_DYLIB files 11872 case $cc_basename in 11873 xlc*) 11874 lt_prog_compiler_pic_CXX='-qnocommon' 11875 lt_prog_compiler_wl_CXX='-Wl,' 11876 ;; 11877 esac 11878 ;; 11879 dgux*) 11880 case $cc_basename in 11881 ec++*) 11882 lt_prog_compiler_pic_CXX='-KPIC' 11883 ;; 11884 ghcx*) 11885 # Green Hills C++ Compiler 11886 lt_prog_compiler_pic_CXX='-pic' 11887 ;; 11888 *) 11889 ;; 11890 esac 11891 ;; 11892 freebsd* | dragonfly*) 11893 # FreeBSD uses GNU C++ 11894 ;; 11895 hpux9* | hpux10* | hpux11*) 11896 case $cc_basename in 11897 CC*) 11898 lt_prog_compiler_wl_CXX='-Wl,' 11899 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11900 if test "$host_cpu" != ia64; then 11901 lt_prog_compiler_pic_CXX='+Z' 11902 fi 11903 ;; 11904 aCC*) 11905 lt_prog_compiler_wl_CXX='-Wl,' 11906 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11907 case $host_cpu in 11908 hppa*64*|ia64*) 11909 # +Z the default 11910 ;; 11911 *) 11912 lt_prog_compiler_pic_CXX='+Z' 11913 ;; 11914 esac 11915 ;; 11916 *) 11917 ;; 11918 esac 11919 ;; 11920 interix*) 11921 # This is c89, which is MS Visual C++ (no shared libs) 11922 # Anyone wants to do a port? 11923 ;; 11924 irix5* | irix6* | nonstopux*) 11925 case $cc_basename in 11926 CC*) 11927 lt_prog_compiler_wl_CXX='-Wl,' 11928 lt_prog_compiler_static_CXX='-non_shared' 11929 # CC pic flag -KPIC is the default. 11930 ;; 11931 *) 11932 ;; 11933 esac 11934 ;; 11935 linux* | k*bsd*-gnu) 11936 case $cc_basename in 11937 KCC*) 11938 # KAI C++ Compiler 11939 lt_prog_compiler_wl_CXX='--backend -Wl,' 11940 lt_prog_compiler_pic_CXX='-fPIC' 11941 ;; 11942 icpc* | ecpc*) 11943 # Intel C++ 11944 lt_prog_compiler_wl_CXX='-Wl,' 11945 lt_prog_compiler_pic_CXX='-KPIC' 11946 lt_prog_compiler_static_CXX='-static' 11947 ;; 11948 pgCC* | pgcpp*) 11949 # Portland Group C++ compiler. 11950 lt_prog_compiler_wl_CXX='-Wl,' 11951 lt_prog_compiler_pic_CXX='-fpic' 11952 lt_prog_compiler_static_CXX='-Bstatic' 11953 ;; 11954 cxx*) 11955 # Compaq C++ 11956 # Make sure the PIC flag is empty. It appears that all Alpha 11957 # Linux and Compaq Tru64 Unix objects are PIC. 11958 lt_prog_compiler_pic_CXX= 11959 lt_prog_compiler_static_CXX='-non_shared' 11960 ;; 11961 *) 11962 case `$CC -V 2>&1 | sed 5q` in 11963 *Sun\ C*) 11964 # Sun C++ 5.9 11965 lt_prog_compiler_pic_CXX='-KPIC' 11966 lt_prog_compiler_static_CXX='-Bstatic' 11967 lt_prog_compiler_wl_CXX='-Qoption ld ' 11968 ;; 11969 esac 11970 ;; 11971 esac 11972 ;; 11973 lynxos*) 11974 ;; 11975 m88k*) 11976 ;; 11977 mvs*) 11978 case $cc_basename in 11979 cxx*) 11980 lt_prog_compiler_pic_CXX='-W c,exportall' 11981 ;; 11982 *) 11983 ;; 11984 esac 11985 ;; 11986 netbsd*) 11987 ;; 11988 osf3* | osf4* | osf5*) 11989 case $cc_basename in 11990 KCC*) 11991 lt_prog_compiler_wl_CXX='--backend -Wl,' 11992 ;; 11993 RCC*) 11994 # Rational C++ 2.4.1 11995 lt_prog_compiler_pic_CXX='-pic' 11996 ;; 11997 cxx*) 11998 # Digital/Compaq C++ 11999 lt_prog_compiler_wl_CXX='-Wl,' 12000 # Make sure the PIC flag is empty. It appears that all Alpha 12001 # Linux and Compaq Tru64 Unix objects are PIC. 12002 lt_prog_compiler_pic_CXX= 12003 lt_prog_compiler_static_CXX='-non_shared' 12004 ;; 12005 *) 12006 ;; 12007 esac 12008 ;; 12009 psos*) 12010 ;; 12011 solaris*) 12012 case $cc_basename in 12013 CC*) 12014 # Sun C++ 4.2, 5.x and Centerline C++ 12015 lt_prog_compiler_pic_CXX='-KPIC' 12016 lt_prog_compiler_static_CXX='-Bstatic' 12017 lt_prog_compiler_wl_CXX='-Qoption ld ' 12018 ;; 12019 gcx*) 12020 # Green Hills C++ Compiler 12021 lt_prog_compiler_pic_CXX='-PIC' 12022 ;; 12023 *) 12024 ;; 12025 esac 12026 ;; 12027 sunos4*) 12028 case $cc_basename in 12029 CC*) 12030 # Sun C++ 4.x 12031 lt_prog_compiler_pic_CXX='-pic' 12032 lt_prog_compiler_static_CXX='-Bstatic' 12033 ;; 12034 lcc*) 12035 # Lucid 12036 lt_prog_compiler_pic_CXX='-pic' 12037 ;; 12038 *) 12039 ;; 12040 esac 12041 ;; 12042 tandem*) 12043 case $cc_basename in 12044 NCC*) 12045 # NonStop-UX NCC 3.20 12046 lt_prog_compiler_pic_CXX='-KPIC' 12047 ;; 12048 *) 12049 ;; 12050 esac 12051 ;; 12052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12053 case $cc_basename in 12054 CC*) 12055 lt_prog_compiler_wl_CXX='-Wl,' 12056 lt_prog_compiler_pic_CXX='-KPIC' 12057 lt_prog_compiler_static_CXX='-Bstatic' 12058 ;; 12059 esac 12060 ;; 12061 vxworks*) 12062 ;; 12063 *) 12064 lt_prog_compiler_can_build_shared_CXX=no 12065 ;; 12066 esac 12067 fi 12068 12069{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12070echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12071 12072# 12073# Check to make sure the PIC flag actually works. 12074# 12075if test -n "$lt_prog_compiler_pic_CXX"; then 12076 12077{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12079if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12080 echo $ECHO_N "(cached) $ECHO_C" >&6 12081else 12082 lt_cv_prog_compiler_pic_works_CXX=no 12083 ac_outfile=conftest.$ac_objext 12084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12085 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12086 # Insert the option either (1) after the last *FLAGS variable, or 12087 # (2) before a word containing "conftest.", or (3) at the end. 12088 # Note that $ac_compile itself does not contain backslashes and begins 12089 # with a dollar sign (not a hyphen), so the echo should work correctly. 12090 # The option is referenced via a variable to avoid confusing sed. 12091 lt_compile=`echo "$ac_compile" | $SED \ 12092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12094 -e 's:$: $lt_compiler_flag:'` 12095 (eval echo "\"\$as_me:12095: $lt_compile\"" >&5) 12096 (eval "$lt_compile" 2>conftest.err) 12097 ac_status=$? 12098 cat conftest.err >&5 12099 echo "$as_me:12099: \$? = $ac_status" >&5 12100 if (exit $ac_status) && test -s "$ac_outfile"; then 12101 # The compiler can only warn and ignore the option if not recognized 12102 # So say no if there are warnings other than the usual output. 12103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12106 lt_cv_prog_compiler_pic_works_CXX=yes 12107 fi 12108 fi 12109 $rm conftest* 12110 12111fi 12112{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12113echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12114 12115if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12116 case $lt_prog_compiler_pic_CXX in 12117 "" | " "*) ;; 12118 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12119 esac 12120else 12121 lt_prog_compiler_pic_CXX= 12122 lt_prog_compiler_can_build_shared_CXX=no 12123fi 12124 12125fi 12126case $host_os in 12127 # For platforms which do not support PIC, -DPIC is meaningless: 12128 *djgpp*) 12129 lt_prog_compiler_pic_CXX= 12130 ;; 12131 *) 12132 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12133 ;; 12134esac 12135 12136# 12137# Check to make sure the static flag actually works. 12138# 12139wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12140{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12141echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12142if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12143 echo $ECHO_N "(cached) $ECHO_C" >&6 12144else 12145 lt_cv_prog_compiler_static_works_CXX=no 12146 save_LDFLAGS="$LDFLAGS" 12147 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12148 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12150 # The linker can only warn and ignore the option if not recognized 12151 # So say no if there are warnings 12152 if test -s conftest.err; then 12153 # Append any errors to the config.log. 12154 cat conftest.err 1>&5 12155 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12157 if diff conftest.exp conftest.er2 >/dev/null; then 12158 lt_cv_prog_compiler_static_works_CXX=yes 12159 fi 12160 else 12161 lt_cv_prog_compiler_static_works_CXX=yes 12162 fi 12163 fi 12164 $rm -r conftest* 12165 LDFLAGS="$save_LDFLAGS" 12166 12167fi 12168{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12169echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 12170 12171if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12172 : 12173else 12174 lt_prog_compiler_static_CXX= 12175fi 12176 12177 12178{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12179echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12180if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12181 echo $ECHO_N "(cached) $ECHO_C" >&6 12182else 12183 lt_cv_prog_compiler_c_o_CXX=no 12184 $rm -r conftest 2>/dev/null 12185 mkdir conftest 12186 cd conftest 12187 mkdir out 12188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12189 12190 lt_compiler_flag="-o out/conftest2.$ac_objext" 12191 # Insert the option either (1) after the last *FLAGS variable, or 12192 # (2) before a word containing "conftest.", or (3) at the end. 12193 # Note that $ac_compile itself does not contain backslashes and begins 12194 # with a dollar sign (not a hyphen), so the echo should work correctly. 12195 lt_compile=`echo "$ac_compile" | $SED \ 12196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12198 -e 's:$: $lt_compiler_flag:'` 12199 (eval echo "\"\$as_me:12199: $lt_compile\"" >&5) 12200 (eval "$lt_compile" 2>out/conftest.err) 12201 ac_status=$? 12202 cat out/conftest.err >&5 12203 echo "$as_me:12203: \$? = $ac_status" >&5 12204 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12205 then 12206 # The compiler can only warn and ignore the option if not recognized 12207 # So say no if there are warnings 12208 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12211 lt_cv_prog_compiler_c_o_CXX=yes 12212 fi 12213 fi 12214 chmod u+w . 2>&5 12215 $rm conftest* 12216 # SGI C++ compiler will create directory out/ii_files/ for 12217 # template instantiation 12218 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12219 $rm out/* && rmdir out 12220 cd .. 12221 rmdir conftest 12222 $rm conftest* 12223 12224fi 12225{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12226echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12227 12228 12229hard_links="nottested" 12230if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12231 # do not overwrite the value of need_locks provided by the user 12232 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12233echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12234 hard_links=yes 12235 $rm conftest* 12236 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12237 touch conftest.a 12238 ln conftest.a conftest.b 2>&5 || hard_links=no 12239 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12240 { echo "$as_me:$LINENO: result: $hard_links" >&5 12241echo "${ECHO_T}$hard_links" >&6; } 12242 if test "$hard_links" = no; then 12243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12244echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12245 need_locks=warn 12246 fi 12247else 12248 need_locks=no 12249fi 12250 12251{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12253 12254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12255 case $host_os in 12256 aix[4-9]*) 12257 # If we're using GNU nm, then we don't want the "-C" option. 12258 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12259 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12260 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' 12261 else 12262 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' 12263 fi 12264 ;; 12265 pw32*) 12266 export_symbols_cmds_CXX="$ltdll_cmds" 12267 ;; 12268 cygwin* | mingw*) 12269 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' 12270 ;; 12271 *) 12272 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12273 ;; 12274 esac 12275 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12276 12277{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12278echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12279test "$ld_shlibs_CXX" = no && can_build_shared=no 12280 12281# 12282# Do we need to explicitly link libc? 12283# 12284case "x$archive_cmds_need_lc_CXX" in 12285x|xyes) 12286 # Assume -lc should be added 12287 archive_cmds_need_lc_CXX=yes 12288 12289 if test "$enable_shared" = yes && test "$GCC" = yes; then 12290 case $archive_cmds_CXX in 12291 *'~'*) 12292 # FIXME: we may have to deal with multi-command sequences. 12293 ;; 12294 '$CC '*) 12295 # Test whether the compiler implicitly links with -lc since on some 12296 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12297 # to ld, don't add -lc before -lgcc. 12298 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12299echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12300 $rm conftest* 12301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12302 12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12304 (eval $ac_compile) 2>&5 12305 ac_status=$? 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12307 (exit $ac_status); } 2>conftest.err; then 12308 soname=conftest 12309 lib=conftest 12310 libobjs=conftest.$ac_objext 12311 deplibs= 12312 wl=$lt_prog_compiler_wl_CXX 12313 pic_flag=$lt_prog_compiler_pic_CXX 12314 compiler_flags=-v 12315 linker_flags=-v 12316 verstring= 12317 output_objdir=. 12318 libname=conftest 12319 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12320 allow_undefined_flag_CXX= 12321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12322 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12323 ac_status=$? 12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); } 12326 then 12327 archive_cmds_need_lc_CXX=no 12328 else 12329 archive_cmds_need_lc_CXX=yes 12330 fi 12331 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12332 else 12333 cat conftest.err 1>&5 12334 fi 12335 $rm conftest* 12336 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12337echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12338 ;; 12339 esac 12340 fi 12341 ;; 12342esac 12343 12344{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12345echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12346library_names_spec= 12347libname_spec='lib$name' 12348soname_spec= 12349shrext_cmds=".so" 12350postinstall_cmds= 12351postuninstall_cmds= 12352finish_cmds= 12353finish_eval= 12354shlibpath_var= 12355shlibpath_overrides_runpath=unknown 12356version_type=none 12357dynamic_linker="$host_os ld.so" 12358sys_lib_dlsearch_path_spec="/lib /usr/lib" 12359 12360need_lib_prefix=unknown 12361hardcode_into_libs=no 12362 12363# when you set need_version to no, make sure it does not cause -set_version 12364# flags to be left without arguments 12365need_version=unknown 12366 12367case $host_os in 12368aix3*) 12369 version_type=linux 12370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12371 shlibpath_var=LIBPATH 12372 12373 # AIX 3 has no versioning support, so we append a major version to the name. 12374 soname_spec='${libname}${release}${shared_ext}$major' 12375 ;; 12376 12377aix[4-9]*) 12378 version_type=linux 12379 need_lib_prefix=no 12380 need_version=no 12381 hardcode_into_libs=yes 12382 if test "$host_cpu" = ia64; then 12383 # AIX 5 supports IA64 12384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12385 shlibpath_var=LD_LIBRARY_PATH 12386 else 12387 # With GCC up to 2.95.x, collect2 would create an import file 12388 # for dependence libraries. The import file would start with 12389 # the line `#! .'. This would cause the generated library to 12390 # depend on `.', always an invalid library. This was fixed in 12391 # development snapshots of GCC prior to 3.0. 12392 case $host_os in 12393 aix4 | aix4.[01] | aix4.[01].*) 12394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12395 echo ' yes ' 12396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12397 : 12398 else 12399 can_build_shared=no 12400 fi 12401 ;; 12402 esac 12403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12404 # soname into executable. Probably we can add versioning support to 12405 # collect2, so additional links can be useful in future. 12406 if test "$aix_use_runtimelinking" = yes; then 12407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12408 # instead of lib<name>.a to let people know that these are not 12409 # typical AIX shared libraries. 12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12411 else 12412 # We preserve .a as extension for shared libraries through AIX4.2 12413 # and later when we are not doing run time linking. 12414 library_names_spec='${libname}${release}.a $libname.a' 12415 soname_spec='${libname}${release}${shared_ext}$major' 12416 fi 12417 shlibpath_var=LIBPATH 12418 fi 12419 ;; 12420 12421amigaos*) 12422 library_names_spec='$libname.ixlibrary $libname.a' 12423 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12424 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' 12425 ;; 12426 12427beos*) 12428 library_names_spec='${libname}${shared_ext}' 12429 dynamic_linker="$host_os ld.so" 12430 shlibpath_var=LIBRARY_PATH 12431 ;; 12432 12433bsdi[45]*) 12434 version_type=linux 12435 need_version=no 12436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12437 soname_spec='${libname}${release}${shared_ext}$major' 12438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12439 shlibpath_var=LD_LIBRARY_PATH 12440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12442 # the default ld.so.conf also contains /usr/contrib/lib and 12443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12444 # libtool to hard-code these into programs 12445 ;; 12446 12447cygwin* | mingw* | pw32*) 12448 version_type=windows 12449 shrext_cmds=".dll" 12450 need_version=no 12451 need_lib_prefix=no 12452 12453 case $GCC,$host_os in 12454 yes,cygwin* | yes,mingw* | yes,pw32*) 12455 library_names_spec='$libname.dll.a' 12456 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12457 postinstall_cmds='base_file=`basename \${file}`~ 12458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12459 dldir=$destdir/`dirname \$dlpath`~ 12460 test -d \$dldir || mkdir -p \$dldir~ 12461 $install_prog $dir/$dlname \$dldir/$dlname~ 12462 chmod a+x \$dldir/$dlname' 12463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12464 dlpath=$dir/\$dldll~ 12465 $rm \$dlpath' 12466 shlibpath_overrides_runpath=yes 12467 12468 case $host_os in 12469 cygwin*) 12470 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12473 ;; 12474 mingw*) 12475 # MinGW DLLs use traditional 'lib' prefix 12476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12479 # It is most probably a Windows format PATH printed by 12480 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12481 # path with ; separators, and with drive letters. We can handle the 12482 # drive letters (cygwin fileutils understands them), so leave them, 12483 # especially as we might pass files found there to a mingw objdump, 12484 # which wouldn't understand a cygwinified path. Ahh. 12485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12486 else 12487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12488 fi 12489 ;; 12490 pw32*) 12491 # pw32 DLLs use 'pw' prefix rather than 'lib' 12492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12493 ;; 12494 esac 12495 ;; 12496 12497 *) 12498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12499 ;; 12500 esac 12501 dynamic_linker='Win32 ld.exe' 12502 # FIXME: first we should search . and the directory the executable is in 12503 shlibpath_var=PATH 12504 ;; 12505 12506darwin* | rhapsody*) 12507 dynamic_linker="$host_os dyld" 12508 version_type=darwin 12509 need_lib_prefix=no 12510 need_version=no 12511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12512 soname_spec='${libname}${release}${major}$shared_ext' 12513 shlibpath_overrides_runpath=yes 12514 shlibpath_var=DYLD_LIBRARY_PATH 12515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12516 12517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12518 ;; 12519 12520dgux*) 12521 version_type=linux 12522 need_lib_prefix=no 12523 need_version=no 12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12525 soname_spec='${libname}${release}${shared_ext}$major' 12526 shlibpath_var=LD_LIBRARY_PATH 12527 ;; 12528 12529freebsd1*) 12530 dynamic_linker=no 12531 ;; 12532 12533freebsd* | dragonfly*) 12534 # DragonFly does not have aout. When/if they implement a new 12535 # versioning mechanism, adjust this. 12536 if test -x /usr/bin/objformat; then 12537 objformat=`/usr/bin/objformat` 12538 else 12539 case $host_os in 12540 freebsd[123]*) objformat=aout ;; 12541 *) objformat=elf ;; 12542 esac 12543 fi 12544 version_type=freebsd-$objformat 12545 case $version_type in 12546 freebsd-elf*) 12547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12548 need_version=no 12549 need_lib_prefix=no 12550 ;; 12551 freebsd-*) 12552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12553 need_version=yes 12554 ;; 12555 esac 12556 shlibpath_var=LD_LIBRARY_PATH 12557 case $host_os in 12558 freebsd2*) 12559 shlibpath_overrides_runpath=yes 12560 ;; 12561 freebsd3.[01]* | freebsdelf3.[01]*) 12562 shlibpath_overrides_runpath=yes 12563 hardcode_into_libs=yes 12564 ;; 12565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12567 shlibpath_overrides_runpath=no 12568 hardcode_into_libs=yes 12569 ;; 12570 *) # from 4.6 on, and DragonFly 12571 shlibpath_overrides_runpath=yes 12572 hardcode_into_libs=yes 12573 ;; 12574 esac 12575 ;; 12576 12577gnu*) 12578 version_type=linux 12579 need_lib_prefix=no 12580 need_version=no 12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12582 soname_spec='${libname}${release}${shared_ext}$major' 12583 shlibpath_var=LD_LIBRARY_PATH 12584 hardcode_into_libs=yes 12585 ;; 12586 12587hpux9* | hpux10* | hpux11*) 12588 # Give a soname corresponding to the major version so that dld.sl refuses to 12589 # link against other versions. 12590 version_type=sunos 12591 need_lib_prefix=no 12592 need_version=no 12593 case $host_cpu in 12594 ia64*) 12595 shrext_cmds='.so' 12596 hardcode_into_libs=yes 12597 dynamic_linker="$host_os dld.so" 12598 shlibpath_var=LD_LIBRARY_PATH 12599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12601 soname_spec='${libname}${release}${shared_ext}$major' 12602 if test "X$HPUX_IA64_MODE" = X32; then 12603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12604 else 12605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12606 fi 12607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12608 ;; 12609 hppa*64*) 12610 shrext_cmds='.sl' 12611 hardcode_into_libs=yes 12612 dynamic_linker="$host_os dld.sl" 12613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12616 soname_spec='${libname}${release}${shared_ext}$major' 12617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12619 ;; 12620 *) 12621 shrext_cmds='.sl' 12622 dynamic_linker="$host_os dld.sl" 12623 shlibpath_var=SHLIB_PATH 12624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12626 soname_spec='${libname}${release}${shared_ext}$major' 12627 ;; 12628 esac 12629 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12630 postinstall_cmds='chmod 555 $lib' 12631 ;; 12632 12633interix[3-9]*) 12634 version_type=linux 12635 need_lib_prefix=no 12636 need_version=no 12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12638 soname_spec='${libname}${release}${shared_ext}$major' 12639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12640 shlibpath_var=LD_LIBRARY_PATH 12641 shlibpath_overrides_runpath=no 12642 hardcode_into_libs=yes 12643 ;; 12644 12645irix5* | irix6* | nonstopux*) 12646 case $host_os in 12647 nonstopux*) version_type=nonstopux ;; 12648 *) 12649 if test "$lt_cv_prog_gnu_ld" = yes; then 12650 version_type=linux 12651 else 12652 version_type=irix 12653 fi ;; 12654 esac 12655 need_lib_prefix=no 12656 need_version=no 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12659 case $host_os in 12660 irix5* | nonstopux*) 12661 libsuff= shlibsuff= 12662 ;; 12663 *) 12664 case $LD in # libtool.m4 will add one of these switches to LD 12665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12666 libsuff= shlibsuff= libmagic=32-bit;; 12667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12668 libsuff=32 shlibsuff=N32 libmagic=N32;; 12669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12671 *) libsuff= shlibsuff= libmagic=never-match;; 12672 esac 12673 ;; 12674 esac 12675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12676 shlibpath_overrides_runpath=no 12677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12679 hardcode_into_libs=yes 12680 ;; 12681 12682# No shared lib support for Linux oldld, aout, or coff. 12683linux*oldld* | linux*aout* | linux*coff*) 12684 dynamic_linker=no 12685 ;; 12686 12687# This must be Linux ELF. 12688linux* | k*bsd*-gnu) 12689 version_type=linux 12690 need_lib_prefix=no 12691 need_version=no 12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12693 soname_spec='${libname}${release}${shared_ext}$major' 12694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12695 shlibpath_var=LD_LIBRARY_PATH 12696 shlibpath_overrides_runpath=no 12697 # This implies no fast_install, which is unacceptable. 12698 # Some rework will be needed to allow for fast_install 12699 # before this can be enabled. 12700 hardcode_into_libs=yes 12701 12702 # Append ld.so.conf contents to the search path 12703 if test -f /etc/ld.so.conf; then 12704 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12706 fi 12707 12708 # We used to test for /lib/ld.so.1 and disable shared libraries on 12709 # powerpc, because MkLinux only supported shared libraries with the 12710 # GNU dynamic linker. Since this was broken with cross compilers, 12711 # most powerpc-linux boxes support dynamic linking these days and 12712 # people can always --disable-shared, the test was removed, and we 12713 # assume the GNU/Linux dynamic linker is in use. 12714 dynamic_linker='GNU/Linux ld.so' 12715 ;; 12716 12717netbsd*) 12718 version_type=sunos 12719 need_lib_prefix=no 12720 need_version=no 12721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12724 dynamic_linker='NetBSD (a.out) ld.so' 12725 else 12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12727 soname_spec='${libname}${release}${shared_ext}$major' 12728 dynamic_linker='NetBSD ld.elf_so' 12729 fi 12730 shlibpath_var=LD_LIBRARY_PATH 12731 shlibpath_overrides_runpath=yes 12732 hardcode_into_libs=yes 12733 ;; 12734 12735newsos6) 12736 version_type=linux 12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12738 shlibpath_var=LD_LIBRARY_PATH 12739 shlibpath_overrides_runpath=yes 12740 ;; 12741 12742nto-qnx*) 12743 version_type=linux 12744 need_lib_prefix=no 12745 need_version=no 12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12747 soname_spec='${libname}${release}${shared_ext}$major' 12748 shlibpath_var=LD_LIBRARY_PATH 12749 shlibpath_overrides_runpath=yes 12750 ;; 12751 12752openbsd*) 12753 version_type=sunos 12754 sys_lib_dlsearch_path_spec="/usr/lib" 12755 need_lib_prefix=no 12756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12757 case $host_os in 12758 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12759 *) need_version=no ;; 12760 esac 12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12763 shlibpath_var=LD_LIBRARY_PATH 12764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12765 case $host_os in 12766 openbsd2.[89] | openbsd2.[89].*) 12767 shlibpath_overrides_runpath=no 12768 ;; 12769 *) 12770 shlibpath_overrides_runpath=yes 12771 ;; 12772 esac 12773 else 12774 shlibpath_overrides_runpath=yes 12775 fi 12776 ;; 12777 12778os2*) 12779 libname_spec='$name' 12780 shrext_cmds=".dll" 12781 need_lib_prefix=no 12782 library_names_spec='$libname${shared_ext} $libname.a' 12783 dynamic_linker='OS/2 ld.exe' 12784 shlibpath_var=LIBPATH 12785 ;; 12786 12787osf3* | osf4* | osf5*) 12788 version_type=osf 12789 need_lib_prefix=no 12790 need_version=no 12791 soname_spec='${libname}${release}${shared_ext}$major' 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12793 shlibpath_var=LD_LIBRARY_PATH 12794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12796 ;; 12797 12798rdos*) 12799 dynamic_linker=no 12800 ;; 12801 12802solaris*) 12803 version_type=linux 12804 need_lib_prefix=no 12805 need_version=no 12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12807 soname_spec='${libname}${release}${shared_ext}$major' 12808 shlibpath_var=LD_LIBRARY_PATH 12809 shlibpath_overrides_runpath=yes 12810 hardcode_into_libs=yes 12811 # ldd complains unless libraries are executable 12812 postinstall_cmds='chmod +x $lib' 12813 ;; 12814 12815sunos4*) 12816 version_type=sunos 12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12819 shlibpath_var=LD_LIBRARY_PATH 12820 shlibpath_overrides_runpath=yes 12821 if test "$with_gnu_ld" = yes; then 12822 need_lib_prefix=no 12823 fi 12824 need_version=yes 12825 ;; 12826 12827sysv4 | sysv4.3*) 12828 version_type=linux 12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12830 soname_spec='${libname}${release}${shared_ext}$major' 12831 shlibpath_var=LD_LIBRARY_PATH 12832 case $host_vendor in 12833 sni) 12834 shlibpath_overrides_runpath=no 12835 need_lib_prefix=no 12836 export_dynamic_flag_spec='${wl}-Blargedynsym' 12837 runpath_var=LD_RUN_PATH 12838 ;; 12839 siemens) 12840 need_lib_prefix=no 12841 ;; 12842 motorola) 12843 need_lib_prefix=no 12844 need_version=no 12845 shlibpath_overrides_runpath=no 12846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12847 ;; 12848 esac 12849 ;; 12850 12851sysv4*MP*) 12852 if test -d /usr/nec ;then 12853 version_type=linux 12854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12855 soname_spec='$libname${shared_ext}.$major' 12856 shlibpath_var=LD_LIBRARY_PATH 12857 fi 12858 ;; 12859 12860sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12861 version_type=freebsd-elf 12862 need_lib_prefix=no 12863 need_version=no 12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12865 soname_spec='${libname}${release}${shared_ext}$major' 12866 shlibpath_var=LD_LIBRARY_PATH 12867 hardcode_into_libs=yes 12868 if test "$with_gnu_ld" = yes; then 12869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12870 shlibpath_overrides_runpath=no 12871 else 12872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12873 shlibpath_overrides_runpath=yes 12874 case $host_os in 12875 sco3.2v5*) 12876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12877 ;; 12878 esac 12879 fi 12880 sys_lib_dlsearch_path_spec='/usr/lib' 12881 ;; 12882 12883uts4*) 12884 version_type=linux 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12886 soname_spec='${libname}${release}${shared_ext}$major' 12887 shlibpath_var=LD_LIBRARY_PATH 12888 ;; 12889 12890*) 12891 dynamic_linker=no 12892 ;; 12893esac 12894{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12895echo "${ECHO_T}$dynamic_linker" >&6; } 12896test "$dynamic_linker" = no && can_build_shared=no 12897 12898if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12899 echo $ECHO_N "(cached) $ECHO_C" >&6 12900else 12901 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 12902fi 12903 12904sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12905if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12906 echo $ECHO_N "(cached) $ECHO_C" >&6 12907else 12908 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 12909fi 12910 12911sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12912 12913variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12914if test "$GCC" = yes; then 12915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12916fi 12917 12918{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12919echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12920hardcode_action_CXX= 12921if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12922 test -n "$runpath_var_CXX" || \ 12923 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12924 12925 # We can hardcode non-existant directories. 12926 if test "$hardcode_direct_CXX" != no && 12927 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12928 # have to relink, otherwise we might link with an installed library 12929 # when we should be linking with a yet-to-be-installed one 12930 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12931 test "$hardcode_minus_L_CXX" != no; then 12932 # Linking always hardcodes the temporary library directory. 12933 hardcode_action_CXX=relink 12934 else 12935 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12936 hardcode_action_CXX=immediate 12937 fi 12938else 12939 # We cannot hardcode anything, or else we can only hardcode existing 12940 # directories. 12941 hardcode_action_CXX=unsupported 12942fi 12943{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12944echo "${ECHO_T}$hardcode_action_CXX" >&6; } 12945 12946if test "$hardcode_action_CXX" = relink; then 12947 # Fast installation is not supported 12948 enable_fast_install=no 12949elif test "$shlibpath_overrides_runpath" = yes || 12950 test "$enable_shared" = no; then 12951 # Fast installation is not necessary 12952 enable_fast_install=needless 12953fi 12954 12955 12956# The else clause should only fire when bootstrapping the 12957# libtool distribution, otherwise you forgot to ship ltmain.sh 12958# with your package, and you will get complaints that there are 12959# no rules to generate ltmain.sh. 12960if test -f "$ltmain"; then 12961 # See if we are running on zsh, and set the options which allow our commands through 12962 # without removal of \ escapes. 12963 if test -n "${ZSH_VERSION+set}" ; then 12964 setopt NO_GLOB_SUBST 12965 fi 12966 # Now quote all the things that may contain metacharacters while being 12967 # careful not to overquote the AC_SUBSTed values. We take copies of the 12968 # variables and quote the copies for generation of the libtool script. 12969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12970 SED SHELL STRIP \ 12971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12973 deplibs_check_method reload_flag reload_cmds need_locks \ 12974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12975 lt_cv_sys_global_symbol_to_c_name_address \ 12976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12977 old_postinstall_cmds old_postuninstall_cmds \ 12978 compiler_CXX \ 12979 CC_CXX \ 12980 LD_CXX \ 12981 lt_prog_compiler_wl_CXX \ 12982 lt_prog_compiler_pic_CXX \ 12983 lt_prog_compiler_static_CXX \ 12984 lt_prog_compiler_no_builtin_flag_CXX \ 12985 export_dynamic_flag_spec_CXX \ 12986 thread_safe_flag_spec_CXX \ 12987 whole_archive_flag_spec_CXX \ 12988 enable_shared_with_static_runtimes_CXX \ 12989 old_archive_cmds_CXX \ 12990 old_archive_from_new_cmds_CXX \ 12991 predep_objects_CXX \ 12992 postdep_objects_CXX \ 12993 predeps_CXX \ 12994 postdeps_CXX \ 12995 compiler_lib_search_path_CXX \ 12996 compiler_lib_search_dirs_CXX \ 12997 archive_cmds_CXX \ 12998 archive_expsym_cmds_CXX \ 12999 postinstall_cmds_CXX \ 13000 postuninstall_cmds_CXX \ 13001 old_archive_from_expsyms_cmds_CXX \ 13002 allow_undefined_flag_CXX \ 13003 no_undefined_flag_CXX \ 13004 export_symbols_cmds_CXX \ 13005 hardcode_libdir_flag_spec_CXX \ 13006 hardcode_libdir_flag_spec_ld_CXX \ 13007 hardcode_libdir_separator_CXX \ 13008 hardcode_automatic_CXX \ 13009 module_cmds_CXX \ 13010 module_expsym_cmds_CXX \ 13011 lt_cv_prog_compiler_c_o_CXX \ 13012 fix_srcfile_path_CXX \ 13013 exclude_expsyms_CXX \ 13014 include_expsyms_CXX; do 13015 13016 case $var in 13017 old_archive_cmds_CXX | \ 13018 old_archive_from_new_cmds_CXX | \ 13019 archive_cmds_CXX | \ 13020 archive_expsym_cmds_CXX | \ 13021 module_cmds_CXX | \ 13022 module_expsym_cmds_CXX | \ 13023 old_archive_from_expsyms_cmds_CXX | \ 13024 export_symbols_cmds_CXX | \ 13025 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13026 postinstall_cmds | postuninstall_cmds | \ 13027 old_postinstall_cmds | old_postuninstall_cmds | \ 13028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13029 # Double-quote double-evaled strings. 13030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13031 ;; 13032 *) 13033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13034 ;; 13035 esac 13036 done 13037 13038 case $lt_echo in 13039 *'\$0 --fallback-echo"') 13040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13041 ;; 13042 esac 13043 13044cfgfile="$ofile" 13045 13046 cat <<__EOF__ >> "$cfgfile" 13047# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13048 13049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13050 13051# Shell to use when invoking shell scripts. 13052SHELL=$lt_SHELL 13053 13054# Whether or not to build shared libraries. 13055build_libtool_libs=$enable_shared 13056 13057# Whether or not to build static libraries. 13058build_old_libs=$enable_static 13059 13060# Whether or not to add -lc for building shared libraries. 13061build_libtool_need_lc=$archive_cmds_need_lc_CXX 13062 13063# Whether or not to disallow shared libs when runtime libs are static 13064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13065 13066# Whether or not to optimize for fast installation. 13067fast_install=$enable_fast_install 13068 13069# The host system. 13070host_alias=$host_alias 13071host=$host 13072host_os=$host_os 13073 13074# The build system. 13075build_alias=$build_alias 13076build=$build 13077build_os=$build_os 13078 13079# An echo program that does not interpret backslashes. 13080echo=$lt_echo 13081 13082# The archiver. 13083AR=$lt_AR 13084AR_FLAGS=$lt_AR_FLAGS 13085 13086# A C compiler. 13087LTCC=$lt_LTCC 13088 13089# LTCC compiler flags. 13090LTCFLAGS=$lt_LTCFLAGS 13091 13092# A language-specific compiler. 13093CC=$lt_compiler_CXX 13094 13095# Is the compiler the GNU C compiler? 13096with_gcc=$GCC_CXX 13097 13098# An ERE matcher. 13099EGREP=$lt_EGREP 13100 13101# The linker used to build libraries. 13102LD=$lt_LD_CXX 13103 13104# Whether we need hard or soft links. 13105LN_S=$lt_LN_S 13106 13107# A BSD-compatible nm program. 13108NM=$lt_NM 13109 13110# A symbol stripping program 13111STRIP=$lt_STRIP 13112 13113# Used to examine libraries when file_magic_cmd begins "file" 13114MAGIC_CMD=$MAGIC_CMD 13115 13116# Used on cygwin: DLL creation program. 13117DLLTOOL="$DLLTOOL" 13118 13119# Used on cygwin: object dumper. 13120OBJDUMP="$OBJDUMP" 13121 13122# Used on cygwin: assembler. 13123AS="$AS" 13124 13125# The name of the directory that contains temporary libtool files. 13126objdir=$objdir 13127 13128# How to create reloadable object files. 13129reload_flag=$lt_reload_flag 13130reload_cmds=$lt_reload_cmds 13131 13132# How to pass a linker flag through the compiler. 13133wl=$lt_lt_prog_compiler_wl_CXX 13134 13135# Object file suffix (normally "o"). 13136objext="$ac_objext" 13137 13138# Old archive suffix (normally "a"). 13139libext="$libext" 13140 13141# Shared library suffix (normally ".so"). 13142shrext_cmds='$shrext_cmds' 13143 13144# Executable file suffix (normally ""). 13145exeext="$exeext" 13146 13147# Additional compiler flags for building library objects. 13148pic_flag=$lt_lt_prog_compiler_pic_CXX 13149pic_mode=$pic_mode 13150 13151# What is the maximum length of a command? 13152max_cmd_len=$lt_cv_sys_max_cmd_len 13153 13154# Does compiler simultaneously support -c and -o options? 13155compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13156 13157# Must we lock files when doing compilation? 13158need_locks=$lt_need_locks 13159 13160# Do we need the lib prefix for modules? 13161need_lib_prefix=$need_lib_prefix 13162 13163# Do we need a version for libraries? 13164need_version=$need_version 13165 13166# Whether dlopen is supported. 13167dlopen_support=$enable_dlopen 13168 13169# Whether dlopen of programs is supported. 13170dlopen_self=$enable_dlopen_self 13171 13172# Whether dlopen of statically linked programs is supported. 13173dlopen_self_static=$enable_dlopen_self_static 13174 13175# Compiler flag to prevent dynamic linking. 13176link_static_flag=$lt_lt_prog_compiler_static_CXX 13177 13178# Compiler flag to turn off builtin functions. 13179no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13180 13181# Compiler flag to allow reflexive dlopens. 13182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13183 13184# Compiler flag to generate shared objects directly from archives. 13185whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13186 13187# Compiler flag to generate thread-safe objects. 13188thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13189 13190# Library versioning type. 13191version_type=$version_type 13192 13193# Format of library name prefix. 13194libname_spec=$lt_libname_spec 13195 13196# List of archive names. First name is the real one, the rest are links. 13197# The last name is the one that the linker finds with -lNAME. 13198library_names_spec=$lt_library_names_spec 13199 13200# The coded name of the library, if different from the real name. 13201soname_spec=$lt_soname_spec 13202 13203# Commands used to build and install an old-style archive. 13204RANLIB=$lt_RANLIB 13205old_archive_cmds=$lt_old_archive_cmds_CXX 13206old_postinstall_cmds=$lt_old_postinstall_cmds 13207old_postuninstall_cmds=$lt_old_postuninstall_cmds 13208 13209# Create an old-style archive from a shared archive. 13210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13211 13212# Create a temporary old-style archive to link instead of a shared archive. 13213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13214 13215# Commands used to build and install a shared archive. 13216archive_cmds=$lt_archive_cmds_CXX 13217archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13218postinstall_cmds=$lt_postinstall_cmds 13219postuninstall_cmds=$lt_postuninstall_cmds 13220 13221# Commands used to build a loadable module (assumed same as above if empty) 13222module_cmds=$lt_module_cmds_CXX 13223module_expsym_cmds=$lt_module_expsym_cmds_CXX 13224 13225# Commands to strip libraries. 13226old_striplib=$lt_old_striplib 13227striplib=$lt_striplib 13228 13229# Dependencies to place before the objects being linked to create a 13230# shared library. 13231predep_objects=$lt_predep_objects_CXX 13232 13233# Dependencies to place after the objects being linked to create a 13234# shared library. 13235postdep_objects=$lt_postdep_objects_CXX 13236 13237# Dependencies to place before the objects being linked to create a 13238# shared library. 13239predeps=$lt_predeps_CXX 13240 13241# Dependencies to place after the objects being linked to create a 13242# shared library. 13243postdeps=$lt_postdeps_CXX 13244 13245# The directories searched by this compiler when creating a shared 13246# library 13247compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13248 13249# The library search path used internally by the compiler when linking 13250# a shared library. 13251compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13252 13253# Method to check whether dependent libraries are shared objects. 13254deplibs_check_method=$lt_deplibs_check_method 13255 13256# Command to use when deplibs_check_method == file_magic. 13257file_magic_cmd=$lt_file_magic_cmd 13258 13259# Flag that allows shared libraries with undefined symbols to be built. 13260allow_undefined_flag=$lt_allow_undefined_flag_CXX 13261 13262# Flag that forces no undefined symbols. 13263no_undefined_flag=$lt_no_undefined_flag_CXX 13264 13265# Commands used to finish a libtool library installation in a directory. 13266finish_cmds=$lt_finish_cmds 13267 13268# Same as above, but a single script fragment to be evaled but not shown. 13269finish_eval=$lt_finish_eval 13270 13271# Take the output of nm and produce a listing of raw symbols and C names. 13272global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13273 13274# Transform the output of nm in a proper C declaration 13275global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13276 13277# Transform the output of nm in a C name address pair 13278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13279 13280# This is the shared library runtime path variable. 13281runpath_var=$runpath_var 13282 13283# This is the shared library path variable. 13284shlibpath_var=$shlibpath_var 13285 13286# Is shlibpath searched before the hard-coded library search path? 13287shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13288 13289# How to hardcode a shared library path into an executable. 13290hardcode_action=$hardcode_action_CXX 13291 13292# Whether we should hardcode library paths into libraries. 13293hardcode_into_libs=$hardcode_into_libs 13294 13295# Flag to hardcode \$libdir into a binary during linking. 13296# This must work even if \$libdir does not exist. 13297hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13298 13299# If ld is used when linking, flag to hardcode \$libdir into 13300# a binary during linking. This must work even if \$libdir does 13301# not exist. 13302hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13303 13304# Whether we need a single -rpath flag with a separated argument. 13305hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13306 13307# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13308# resulting binary. 13309hardcode_direct=$hardcode_direct_CXX 13310 13311# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13312# resulting binary. 13313hardcode_minus_L=$hardcode_minus_L_CXX 13314 13315# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13316# the resulting binary. 13317hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13318 13319# Set to yes if building a shared library automatically hardcodes DIR into the library 13320# and all subsequent libraries and executables linked against it. 13321hardcode_automatic=$hardcode_automatic_CXX 13322 13323# Variables whose values should be saved in libtool wrapper scripts and 13324# restored at relink time. 13325variables_saved_for_relink="$variables_saved_for_relink" 13326 13327# Whether libtool must link a program against all its dependency libraries. 13328link_all_deplibs=$link_all_deplibs_CXX 13329 13330# Compile-time system search path for libraries 13331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13332 13333# Run-time system search path for libraries 13334sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13335 13336# Fix the shell variable \$srcfile for the compiler. 13337fix_srcfile_path=$lt_fix_srcfile_path 13338 13339# Set to yes if exported symbols are required. 13340always_export_symbols=$always_export_symbols_CXX 13341 13342# The commands to list exported symbols. 13343export_symbols_cmds=$lt_export_symbols_cmds_CXX 13344 13345# The commands to extract the exported symbol list from a shared archive. 13346extract_expsyms_cmds=$lt_extract_expsyms_cmds 13347 13348# Symbols that should not be listed in the preloaded symbols. 13349exclude_expsyms=$lt_exclude_expsyms_CXX 13350 13351# Symbols that must always be exported. 13352include_expsyms=$lt_include_expsyms_CXX 13353 13354# ### END LIBTOOL TAG CONFIG: $tagname 13355 13356__EOF__ 13357 13358 13359else 13360 # If there is no Makefile yet, we rely on a make rule to execute 13361 # `config.status --recheck' to rerun these tests and create the 13362 # libtool script then. 13363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13364 if test -f "$ltmain_in"; then 13365 test -f Makefile && make "$ltmain" 13366 fi 13367fi 13368 13369 13370ac_ext=c 13371ac_cpp='$CPP $CPPFLAGS' 13372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13374ac_compiler_gnu=$ac_cv_c_compiler_gnu 13375 13376CC=$lt_save_CC 13377LDCXX=$LD 13378LD=$lt_save_LD 13379GCC=$lt_save_GCC 13380with_gnu_ldcxx=$with_gnu_ld 13381with_gnu_ld=$lt_save_with_gnu_ld 13382lt_cv_path_LDCXX=$lt_cv_path_LD 13383lt_cv_path_LD=$lt_save_path_LD 13384lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13385lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13386 13387 else 13388 tagname="" 13389 fi 13390 ;; 13391 13392 F77) 13393 if test -n "$F77" && test "X$F77" != "Xno"; then 13394 13395ac_ext=f 13396ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13397ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13398ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13399 13400 13401archive_cmds_need_lc_F77=no 13402allow_undefined_flag_F77= 13403always_export_symbols_F77=no 13404archive_expsym_cmds_F77= 13405export_dynamic_flag_spec_F77= 13406hardcode_direct_F77=no 13407hardcode_libdir_flag_spec_F77= 13408hardcode_libdir_flag_spec_ld_F77= 13409hardcode_libdir_separator_F77= 13410hardcode_minus_L_F77=no 13411hardcode_automatic_F77=no 13412module_cmds_F77= 13413module_expsym_cmds_F77= 13414link_all_deplibs_F77=unknown 13415old_archive_cmds_F77=$old_archive_cmds 13416no_undefined_flag_F77= 13417whole_archive_flag_spec_F77= 13418enable_shared_with_static_runtimes_F77=no 13419 13420# Source file extension for f77 test sources. 13421ac_ext=f 13422 13423# Object file extension for compiled f77 test sources. 13424objext=o 13425objext_F77=$objext 13426 13427# Code to be used in simple compile tests 13428lt_simple_compile_test_code="\ 13429 subroutine t 13430 return 13431 end 13432" 13433 13434# Code to be used in simple link tests 13435lt_simple_link_test_code="\ 13436 program t 13437 end 13438" 13439 13440# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13441 13442# If no C compiler was specified, use CC. 13443LTCC=${LTCC-"$CC"} 13444 13445# If no C compiler flags were specified, use CFLAGS. 13446LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13447 13448# Allow CC to be a program name with arguments. 13449compiler=$CC 13450 13451 13452# save warnings/boilerplate of simple test code 13453ac_outfile=conftest.$ac_objext 13454echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13456_lt_compiler_boilerplate=`cat conftest.err` 13457$rm conftest* 13458 13459ac_outfile=conftest.$ac_objext 13460echo "$lt_simple_link_test_code" >conftest.$ac_ext 13461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13462_lt_linker_boilerplate=`cat conftest.err` 13463$rm -r conftest* 13464 13465 13466# Allow CC to be a program name with arguments. 13467lt_save_CC="$CC" 13468CC=${F77-"f77"} 13469compiler=$CC 13470compiler_F77=$CC 13471for cc_temp in $compiler""; do 13472 case $cc_temp in 13473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13475 \-*) ;; 13476 *) break;; 13477 esac 13478done 13479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13480 13481 13482{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13483echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13484{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13485echo "${ECHO_T}$can_build_shared" >&6; } 13486 13487{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13488echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13489test "$can_build_shared" = "no" && enable_shared=no 13490 13491# On AIX, shared libraries and static libraries use the same namespace, and 13492# are all built from PIC. 13493case $host_os in 13494aix3*) 13495 test "$enable_shared" = yes && enable_static=no 13496 if test -n "$RANLIB"; then 13497 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13498 postinstall_cmds='$RANLIB $lib' 13499 fi 13500 ;; 13501aix[4-9]*) 13502 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13503 test "$enable_shared" = yes && enable_static=no 13504 fi 13505 ;; 13506esac 13507{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13508echo "${ECHO_T}$enable_shared" >&6; } 13509 13510{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13511echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13512# Make sure either enable_shared or enable_static is yes. 13513test "$enable_shared" = yes || enable_static=yes 13514{ echo "$as_me:$LINENO: result: $enable_static" >&5 13515echo "${ECHO_T}$enable_static" >&6; } 13516 13517GCC_F77="$G77" 13518LD_F77="$LD" 13519 13520lt_prog_compiler_wl_F77= 13521lt_prog_compiler_pic_F77= 13522lt_prog_compiler_static_F77= 13523 13524{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13526 13527 if test "$GCC" = yes; then 13528 lt_prog_compiler_wl_F77='-Wl,' 13529 lt_prog_compiler_static_F77='-static' 13530 13531 case $host_os in 13532 aix*) 13533 # All AIX code is PIC. 13534 if test "$host_cpu" = ia64; then 13535 # AIX 5 now supports IA64 processor 13536 lt_prog_compiler_static_F77='-Bstatic' 13537 fi 13538 ;; 13539 13540 amigaos*) 13541 # FIXME: we need at least 68020 code to build shared libraries, but 13542 # adding the `-m68020' flag to GCC prevents building anything better, 13543 # like `-m68040'. 13544 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13545 ;; 13546 13547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13548 # PIC is the default for these OSes. 13549 ;; 13550 13551 mingw* | cygwin* | pw32* | os2*) 13552 # This hack is so that the source file can tell whether it is being 13553 # built for inclusion in a dll (and should export symbols for example). 13554 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13555 # (--disable-auto-import) libraries 13556 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13557 ;; 13558 13559 darwin* | rhapsody*) 13560 # PIC is the default on this platform 13561 # Common symbols not allowed in MH_DYLIB files 13562 lt_prog_compiler_pic_F77='-fno-common' 13563 ;; 13564 13565 interix[3-9]*) 13566 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13567 # Instead, we relocate shared libraries at runtime. 13568 ;; 13569 13570 msdosdjgpp*) 13571 # Just because we use GCC doesn't mean we suddenly get shared libraries 13572 # on systems that don't support them. 13573 lt_prog_compiler_can_build_shared_F77=no 13574 enable_shared=no 13575 ;; 13576 13577 sysv4*MP*) 13578 if test -d /usr/nec; then 13579 lt_prog_compiler_pic_F77=-Kconform_pic 13580 fi 13581 ;; 13582 13583 hpux*) 13584 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13585 # not for PA HP-UX. 13586 case $host_cpu in 13587 hppa*64*|ia64*) 13588 # +Z the default 13589 ;; 13590 *) 13591 lt_prog_compiler_pic_F77='-fPIC' 13592 ;; 13593 esac 13594 ;; 13595 13596 *) 13597 lt_prog_compiler_pic_F77='-fPIC' 13598 ;; 13599 esac 13600 else 13601 # PORTME Check for flag to pass linker flags through the system compiler. 13602 case $host_os in 13603 aix*) 13604 lt_prog_compiler_wl_F77='-Wl,' 13605 if test "$host_cpu" = ia64; then 13606 # AIX 5 now supports IA64 processor 13607 lt_prog_compiler_static_F77='-Bstatic' 13608 else 13609 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13610 fi 13611 ;; 13612 darwin*) 13613 # PIC is the default on this platform 13614 # Common symbols not allowed in MH_DYLIB files 13615 case $cc_basename in 13616 xlc*) 13617 lt_prog_compiler_pic_F77='-qnocommon' 13618 lt_prog_compiler_wl_F77='-Wl,' 13619 ;; 13620 esac 13621 ;; 13622 13623 mingw* | cygwin* | pw32* | os2*) 13624 # This hack is so that the source file can tell whether it is being 13625 # built for inclusion in a dll (and should export symbols for example). 13626 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13627 ;; 13628 13629 hpux9* | hpux10* | hpux11*) 13630 lt_prog_compiler_wl_F77='-Wl,' 13631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13632 # not for PA HP-UX. 13633 case $host_cpu in 13634 hppa*64*|ia64*) 13635 # +Z the default 13636 ;; 13637 *) 13638 lt_prog_compiler_pic_F77='+Z' 13639 ;; 13640 esac 13641 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13642 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13643 ;; 13644 13645 irix5* | irix6* | nonstopux*) 13646 lt_prog_compiler_wl_F77='-Wl,' 13647 # PIC (with -KPIC) is the default. 13648 lt_prog_compiler_static_F77='-non_shared' 13649 ;; 13650 13651 newsos6) 13652 lt_prog_compiler_pic_F77='-KPIC' 13653 lt_prog_compiler_static_F77='-Bstatic' 13654 ;; 13655 13656 linux* | k*bsd*-gnu) 13657 case $cc_basename in 13658 icc* | ecc*) 13659 lt_prog_compiler_wl_F77='-Wl,' 13660 lt_prog_compiler_pic_F77='-KPIC' 13661 lt_prog_compiler_static_F77='-static' 13662 ;; 13663 pgcc* | pgf77* | pgf90* | pgf95*) 13664 # Portland Group compilers (*not* the Pentium gcc compiler, 13665 # which looks to be a dead project) 13666 lt_prog_compiler_wl_F77='-Wl,' 13667 lt_prog_compiler_pic_F77='-fpic' 13668 lt_prog_compiler_static_F77='-Bstatic' 13669 ;; 13670 ccc*) 13671 lt_prog_compiler_wl_F77='-Wl,' 13672 # All Alpha code is PIC. 13673 lt_prog_compiler_static_F77='-non_shared' 13674 ;; 13675 *) 13676 case `$CC -V 2>&1 | sed 5q` in 13677 *Sun\ C*) 13678 # Sun C 5.9 13679 lt_prog_compiler_pic_F77='-KPIC' 13680 lt_prog_compiler_static_F77='-Bstatic' 13681 lt_prog_compiler_wl_F77='-Wl,' 13682 ;; 13683 *Sun\ F*) 13684 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13685 lt_prog_compiler_pic_F77='-KPIC' 13686 lt_prog_compiler_static_F77='-Bstatic' 13687 lt_prog_compiler_wl_F77='' 13688 ;; 13689 esac 13690 ;; 13691 esac 13692 ;; 13693 13694 osf3* | osf4* | osf5*) 13695 lt_prog_compiler_wl_F77='-Wl,' 13696 # All OSF/1 code is PIC. 13697 lt_prog_compiler_static_F77='-non_shared' 13698 ;; 13699 13700 rdos*) 13701 lt_prog_compiler_static_F77='-non_shared' 13702 ;; 13703 13704 solaris*) 13705 lt_prog_compiler_pic_F77='-KPIC' 13706 lt_prog_compiler_static_F77='-Bstatic' 13707 case $cc_basename in 13708 f77* | f90* | f95*) 13709 lt_prog_compiler_wl_F77='-Qoption ld ';; 13710 *) 13711 lt_prog_compiler_wl_F77='-Wl,';; 13712 esac 13713 ;; 13714 13715 sunos4*) 13716 lt_prog_compiler_wl_F77='-Qoption ld ' 13717 lt_prog_compiler_pic_F77='-PIC' 13718 lt_prog_compiler_static_F77='-Bstatic' 13719 ;; 13720 13721 sysv4 | sysv4.2uw2* | sysv4.3*) 13722 lt_prog_compiler_wl_F77='-Wl,' 13723 lt_prog_compiler_pic_F77='-KPIC' 13724 lt_prog_compiler_static_F77='-Bstatic' 13725 ;; 13726 13727 sysv4*MP*) 13728 if test -d /usr/nec ;then 13729 lt_prog_compiler_pic_F77='-Kconform_pic' 13730 lt_prog_compiler_static_F77='-Bstatic' 13731 fi 13732 ;; 13733 13734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13735 lt_prog_compiler_wl_F77='-Wl,' 13736 lt_prog_compiler_pic_F77='-KPIC' 13737 lt_prog_compiler_static_F77='-Bstatic' 13738 ;; 13739 13740 unicos*) 13741 lt_prog_compiler_wl_F77='-Wl,' 13742 lt_prog_compiler_can_build_shared_F77=no 13743 ;; 13744 13745 uts4*) 13746 lt_prog_compiler_pic_F77='-pic' 13747 lt_prog_compiler_static_F77='-Bstatic' 13748 ;; 13749 13750 *) 13751 lt_prog_compiler_can_build_shared_F77=no 13752 ;; 13753 esac 13754 fi 13755 13756{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13757echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13758 13759# 13760# Check to make sure the PIC flag actually works. 13761# 13762if test -n "$lt_prog_compiler_pic_F77"; then 13763 13764{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13765echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13766if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 13767 echo $ECHO_N "(cached) $ECHO_C" >&6 13768else 13769 lt_cv_prog_compiler_pic_works_F77=no 13770 ac_outfile=conftest.$ac_objext 13771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13772 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13773 # Insert the option either (1) after the last *FLAGS variable, or 13774 # (2) before a word containing "conftest.", or (3) at the end. 13775 # Note that $ac_compile itself does not contain backslashes and begins 13776 # with a dollar sign (not a hyphen), so the echo should work correctly. 13777 # The option is referenced via a variable to avoid confusing sed. 13778 lt_compile=`echo "$ac_compile" | $SED \ 13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13781 -e 's:$: $lt_compiler_flag:'` 13782 (eval echo "\"\$as_me:13782: $lt_compile\"" >&5) 13783 (eval "$lt_compile" 2>conftest.err) 13784 ac_status=$? 13785 cat conftest.err >&5 13786 echo "$as_me:13786: \$? = $ac_status" >&5 13787 if (exit $ac_status) && test -s "$ac_outfile"; then 13788 # The compiler can only warn and ignore the option if not recognized 13789 # So say no if there are warnings other than the usual output. 13790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13793 lt_cv_prog_compiler_pic_works_F77=yes 13794 fi 13795 fi 13796 $rm conftest* 13797 13798fi 13799{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 13800echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 13801 13802if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 13803 case $lt_prog_compiler_pic_F77 in 13804 "" | " "*) ;; 13805 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13806 esac 13807else 13808 lt_prog_compiler_pic_F77= 13809 lt_prog_compiler_can_build_shared_F77=no 13810fi 13811 13812fi 13813case $host_os in 13814 # For platforms which do not support PIC, -DPIC is meaningless: 13815 *djgpp*) 13816 lt_prog_compiler_pic_F77= 13817 ;; 13818 *) 13819 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13820 ;; 13821esac 13822 13823# 13824# Check to make sure the static flag actually works. 13825# 13826wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13827{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13828echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13829if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 13830 echo $ECHO_N "(cached) $ECHO_C" >&6 13831else 13832 lt_cv_prog_compiler_static_works_F77=no 13833 save_LDFLAGS="$LDFLAGS" 13834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13835 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13837 # The linker can only warn and ignore the option if not recognized 13838 # So say no if there are warnings 13839 if test -s conftest.err; then 13840 # Append any errors to the config.log. 13841 cat conftest.err 1>&5 13842 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13844 if diff conftest.exp conftest.er2 >/dev/null; then 13845 lt_cv_prog_compiler_static_works_F77=yes 13846 fi 13847 else 13848 lt_cv_prog_compiler_static_works_F77=yes 13849 fi 13850 fi 13851 $rm -r conftest* 13852 LDFLAGS="$save_LDFLAGS" 13853 13854fi 13855{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 13856echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 13857 13858if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 13859 : 13860else 13861 lt_prog_compiler_static_F77= 13862fi 13863 13864 13865{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13866echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13867if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13868 echo $ECHO_N "(cached) $ECHO_C" >&6 13869else 13870 lt_cv_prog_compiler_c_o_F77=no 13871 $rm -r conftest 2>/dev/null 13872 mkdir conftest 13873 cd conftest 13874 mkdir out 13875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13876 13877 lt_compiler_flag="-o out/conftest2.$ac_objext" 13878 # Insert the option either (1) after the last *FLAGS variable, or 13879 # (2) before a word containing "conftest.", or (3) at the end. 13880 # Note that $ac_compile itself does not contain backslashes and begins 13881 # with a dollar sign (not a hyphen), so the echo should work correctly. 13882 lt_compile=`echo "$ac_compile" | $SED \ 13883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13885 -e 's:$: $lt_compiler_flag:'` 13886 (eval echo "\"\$as_me:13886: $lt_compile\"" >&5) 13887 (eval "$lt_compile" 2>out/conftest.err) 13888 ac_status=$? 13889 cat out/conftest.err >&5 13890 echo "$as_me:13890: \$? = $ac_status" >&5 13891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13892 then 13893 # The compiler can only warn and ignore the option if not recognized 13894 # So say no if there are warnings 13895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13898 lt_cv_prog_compiler_c_o_F77=yes 13899 fi 13900 fi 13901 chmod u+w . 2>&5 13902 $rm conftest* 13903 # SGI C++ compiler will create directory out/ii_files/ for 13904 # template instantiation 13905 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13906 $rm out/* && rmdir out 13907 cd .. 13908 rmdir conftest 13909 $rm conftest* 13910 13911fi 13912{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13913echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 13914 13915 13916hard_links="nottested" 13917if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13918 # do not overwrite the value of need_locks provided by the user 13919 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13920echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13921 hard_links=yes 13922 $rm conftest* 13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13924 touch conftest.a 13925 ln conftest.a conftest.b 2>&5 || hard_links=no 13926 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13927 { echo "$as_me:$LINENO: result: $hard_links" >&5 13928echo "${ECHO_T}$hard_links" >&6; } 13929 if test "$hard_links" = no; then 13930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13931echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13932 need_locks=warn 13933 fi 13934else 13935 need_locks=no 13936fi 13937 13938{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13939echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13940 13941 runpath_var= 13942 allow_undefined_flag_F77= 13943 enable_shared_with_static_runtimes_F77=no 13944 archive_cmds_F77= 13945 archive_expsym_cmds_F77= 13946 old_archive_From_new_cmds_F77= 13947 old_archive_from_expsyms_cmds_F77= 13948 export_dynamic_flag_spec_F77= 13949 whole_archive_flag_spec_F77= 13950 thread_safe_flag_spec_F77= 13951 hardcode_libdir_flag_spec_F77= 13952 hardcode_libdir_flag_spec_ld_F77= 13953 hardcode_libdir_separator_F77= 13954 hardcode_direct_F77=no 13955 hardcode_minus_L_F77=no 13956 hardcode_shlibpath_var_F77=unsupported 13957 link_all_deplibs_F77=unknown 13958 hardcode_automatic_F77=no 13959 module_cmds_F77= 13960 module_expsym_cmds_F77= 13961 always_export_symbols_F77=no 13962 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13963 # include_expsyms should be a list of space-separated symbols to be *always* 13964 # included in the symbol list 13965 include_expsyms_F77= 13966 # exclude_expsyms can be an extended regexp of symbols to exclude 13967 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13968 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13969 # as well as any symbol that contains `d'. 13970 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13971 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13972 # platforms (ab)use it in PIC code, but their linkers get confused if 13973 # the symbol is explicitly referenced. Since portable code cannot 13974 # rely on this symbol name, it's probably fine to never include it in 13975 # preloaded symbol tables. 13976 # Exclude shared library initialization/finalization symbols. 13977 extract_expsyms_cmds= 13978 # Just being paranoid about ensuring that cc_basename is set. 13979 for cc_temp in $compiler""; do 13980 case $cc_temp in 13981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13983 \-*) ;; 13984 *) break;; 13985 esac 13986done 13987cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13988 13989 case $host_os in 13990 cygwin* | mingw* | pw32*) 13991 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13992 # When not using gcc, we currently assume that we are using 13993 # Microsoft Visual C++. 13994 if test "$GCC" != yes; then 13995 with_gnu_ld=no 13996 fi 13997 ;; 13998 interix*) 13999 # we just hope/assume this is gcc and not c89 (= MSVC++) 14000 with_gnu_ld=yes 14001 ;; 14002 openbsd*) 14003 with_gnu_ld=no 14004 ;; 14005 esac 14006 14007 ld_shlibs_F77=yes 14008 if test "$with_gnu_ld" = yes; then 14009 # If archive_cmds runs LD, not CC, wlarc should be empty 14010 wlarc='${wl}' 14011 14012 # Set some defaults for GNU ld with shared library support. These 14013 # are reset later if shared libraries are not supported. Putting them 14014 # here allows them to be overridden if necessary. 14015 runpath_var=LD_RUN_PATH 14016 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14017 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14018 # ancient GNU ld didn't support --whole-archive et. al. 14019 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14020 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14021 else 14022 whole_archive_flag_spec_F77= 14023 fi 14024 supports_anon_versioning=no 14025 case `$LD -v 2>/dev/null` in 14026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14029 *\ 2.11.*) ;; # other 2.11 versions 14030 *) supports_anon_versioning=yes ;; 14031 esac 14032 14033 # See if GNU ld supports shared libraries. 14034 case $host_os in 14035 aix[3-9]*) 14036 # On AIX/PPC, the GNU linker is very broken 14037 if test "$host_cpu" != ia64; then 14038 ld_shlibs_F77=no 14039 cat <<EOF 1>&2 14040 14041*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14042*** to be unable to reliably create shared libraries on AIX. 14043*** Therefore, libtool is disabling shared libraries support. If you 14044*** really care for shared libraries, you may want to modify your PATH 14045*** so that a non-GNU linker is found, and then restart. 14046 14047EOF 14048 fi 14049 ;; 14050 14051 amigaos*) 14052 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)' 14053 hardcode_libdir_flag_spec_F77='-L$libdir' 14054 hardcode_minus_L_F77=yes 14055 14056 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14057 # that the semantics of dynamic libraries on AmigaOS, at least up 14058 # to version 4, is to share data among multiple programs linked 14059 # with the same dynamic library. Since this doesn't match the 14060 # behavior of shared libraries on other platforms, we can't use 14061 # them. 14062 ld_shlibs_F77=no 14063 ;; 14064 14065 beos*) 14066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14067 allow_undefined_flag_F77=unsupported 14068 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14069 # support --undefined. This deserves some investigation. FIXME 14070 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14071 else 14072 ld_shlibs_F77=no 14073 fi 14074 ;; 14075 14076 cygwin* | mingw* | pw32*) 14077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14078 # as there is no search path for DLLs. 14079 hardcode_libdir_flag_spec_F77='-L$libdir' 14080 allow_undefined_flag_F77=unsupported 14081 always_export_symbols_F77=no 14082 enable_shared_with_static_runtimes_F77=yes 14083 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14084 14085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14086 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14087 # If the export-symbols file already is a .def file (1st line 14088 # is EXPORTS), use it as is; otherwise, prepend... 14089 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14090 cp $export_symbols $output_objdir/$soname.def; 14091 else 14092 echo EXPORTS > $output_objdir/$soname.def; 14093 cat $export_symbols >> $output_objdir/$soname.def; 14094 fi~ 14095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14096 else 14097 ld_shlibs_F77=no 14098 fi 14099 ;; 14100 14101 interix[3-9]*) 14102 hardcode_direct_F77=no 14103 hardcode_shlibpath_var_F77=no 14104 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14105 export_dynamic_flag_spec_F77='${wl}-E' 14106 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14107 # Instead, shared libraries are loaded at an image base (0x10000000 by 14108 # default) and relocated if they conflict, which is a slow very memory 14109 # consuming and fragmenting process. To avoid this, we pick a random, 14110 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14111 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14112 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' 14113 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' 14114 ;; 14115 14116 gnu* | linux* | k*bsd*-gnu) 14117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14118 tmp_addflag= 14119 case $cc_basename,$host_cpu in 14120 pgcc*) # Portland Group C compiler 14121 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' 14122 tmp_addflag=' $pic_flag' 14123 ;; 14124 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14125 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' 14126 tmp_addflag=' $pic_flag -Mnomain' ;; 14127 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14128 tmp_addflag=' -i_dynamic' ;; 14129 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14130 tmp_addflag=' -i_dynamic -nofor_main' ;; 14131 ifc* | ifort*) # Intel Fortran compiler 14132 tmp_addflag=' -nofor_main' ;; 14133 esac 14134 case `$CC -V 2>&1 | sed 5q` in 14135 *Sun\ C*) # Sun C 5.9 14136 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14137 tmp_sharedflag='-G' ;; 14138 *Sun\ F*) # Sun Fortran 8.3 14139 tmp_sharedflag='-G' ;; 14140 *) 14141 tmp_sharedflag='-shared' ;; 14142 esac 14143 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14144 14145 if test $supports_anon_versioning = yes; then 14146 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14148 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14150 fi 14151 else 14152 ld_shlibs_F77=no 14153 fi 14154 ;; 14155 14156 netbsd*) 14157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14158 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14159 wlarc= 14160 else 14161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14163 fi 14164 ;; 14165 14166 solaris*) 14167 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14168 ld_shlibs_F77=no 14169 cat <<EOF 1>&2 14170 14171*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14172*** create shared libraries on Solaris systems. Therefore, libtool 14173*** is disabling shared libraries support. We urge you to upgrade GNU 14174*** binutils to release 2.9.1 or newer. Another option is to modify 14175*** your PATH or compiler configuration so that the native linker is 14176*** used, and then restart. 14177 14178EOF 14179 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14181 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14182 else 14183 ld_shlibs_F77=no 14184 fi 14185 ;; 14186 14187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14188 case `$LD -v 2>&1` in 14189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14190 ld_shlibs_F77=no 14191 cat <<_LT_EOF 1>&2 14192 14193*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14194*** reliably create shared libraries on SCO systems. Therefore, libtool 14195*** is disabling shared libraries support. We urge you to upgrade GNU 14196*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14197*** your PATH or compiler configuration so that the native linker is 14198*** used, and then restart. 14199 14200_LT_EOF 14201 ;; 14202 *) 14203 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14204 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14205 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14206 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14207 else 14208 ld_shlibs_F77=no 14209 fi 14210 ;; 14211 esac 14212 ;; 14213 14214 sunos4*) 14215 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14216 wlarc= 14217 hardcode_direct_F77=yes 14218 hardcode_shlibpath_var_F77=no 14219 ;; 14220 14221 *) 14222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14223 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14224 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14225 else 14226 ld_shlibs_F77=no 14227 fi 14228 ;; 14229 esac 14230 14231 if test "$ld_shlibs_F77" = no; then 14232 runpath_var= 14233 hardcode_libdir_flag_spec_F77= 14234 export_dynamic_flag_spec_F77= 14235 whole_archive_flag_spec_F77= 14236 fi 14237 else 14238 # PORTME fill in a description of your system's linker (not GNU ld) 14239 case $host_os in 14240 aix3*) 14241 allow_undefined_flag_F77=unsupported 14242 always_export_symbols_F77=yes 14243 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' 14244 # Note: this linker hardcodes the directories in LIBPATH if there 14245 # are no directories specified by -L. 14246 hardcode_minus_L_F77=yes 14247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14248 # Neither direct hardcoding nor static linking is supported with a 14249 # broken collect2. 14250 hardcode_direct_F77=unsupported 14251 fi 14252 ;; 14253 14254 aix[4-9]*) 14255 if test "$host_cpu" = ia64; then 14256 # On IA64, the linker does run time linking by default, so we don't 14257 # have to do anything special. 14258 aix_use_runtimelinking=no 14259 exp_sym_flag='-Bexport' 14260 no_entry_flag="" 14261 else 14262 # If we're using GNU nm, then we don't want the "-C" option. 14263 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14265 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' 14266 else 14267 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' 14268 fi 14269 aix_use_runtimelinking=no 14270 14271 # Test if we are trying to use run time linking or normal 14272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14273 # need to do runtime linking. 14274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14275 for ld_flag in $LDFLAGS; do 14276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14277 aix_use_runtimelinking=yes 14278 break 14279 fi 14280 done 14281 ;; 14282 esac 14283 14284 exp_sym_flag='-bexport' 14285 no_entry_flag='-bnoentry' 14286 fi 14287 14288 # When large executables or shared objects are built, AIX ld can 14289 # have problems creating the table of contents. If linking a library 14290 # or program results in "error TOC overflow" add -mminimal-toc to 14291 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14292 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14293 14294 archive_cmds_F77='' 14295 hardcode_direct_F77=yes 14296 hardcode_libdir_separator_F77=':' 14297 link_all_deplibs_F77=yes 14298 14299 if test "$GCC" = yes; then 14300 case $host_os in aix4.[012]|aix4.[012].*) 14301 # We only want to do this on AIX 4.2 and lower, the check 14302 # below for broken collect2 doesn't work under 4.3+ 14303 collect2name=`${CC} -print-prog-name=collect2` 14304 if test -f "$collect2name" && \ 14305 strings "$collect2name" | grep resolve_lib_name >/dev/null 14306 then 14307 # We have reworked collect2 14308 : 14309 else 14310 # We have old collect2 14311 hardcode_direct_F77=unsupported 14312 # It fails to find uninstalled libraries when the uninstalled 14313 # path is not listed in the libpath. Setting hardcode_minus_L 14314 # to unsupported forces relinking 14315 hardcode_minus_L_F77=yes 14316 hardcode_libdir_flag_spec_F77='-L$libdir' 14317 hardcode_libdir_separator_F77= 14318 fi 14319 ;; 14320 esac 14321 shared_flag='-shared' 14322 if test "$aix_use_runtimelinking" = yes; then 14323 shared_flag="$shared_flag "'${wl}-G' 14324 fi 14325 else 14326 # not using gcc 14327 if test "$host_cpu" = ia64; then 14328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14329 # chokes on -Wl,-G. The following line is correct: 14330 shared_flag='-G' 14331 else 14332 if test "$aix_use_runtimelinking" = yes; then 14333 shared_flag='${wl}-G' 14334 else 14335 shared_flag='${wl}-bM:SRE' 14336 fi 14337 fi 14338 fi 14339 14340 # It seems that -bexpall does not export symbols beginning with 14341 # underscore (_), so it is better to generate a list of symbols to export. 14342 always_export_symbols_F77=yes 14343 if test "$aix_use_runtimelinking" = yes; then 14344 # Warning - without using the other runtime loading flags (-brtl), 14345 # -berok will link without error, but may produce a broken library. 14346 allow_undefined_flag_F77='-berok' 14347 # Determine the default libpath from the value encoded in an empty executable. 14348 cat >conftest.$ac_ext <<_ACEOF 14349 program main 14350 14351 end 14352_ACEOF 14353rm -f conftest.$ac_objext conftest$ac_exeext 14354if { (ac_try="$ac_link" 14355case "(($ac_try" in 14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14357 *) ac_try_echo=$ac_try;; 14358esac 14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14360 (eval "$ac_link") 2>conftest.er1 14361 ac_status=$? 14362 grep -v '^ *+' conftest.er1 >conftest.err 14363 rm -f conftest.er1 14364 cat conftest.err >&5 14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14366 (exit $ac_status); } && { 14367 test -z "$ac_f77_werror_flag" || 14368 test ! -s conftest.err 14369 } && test -s conftest$ac_exeext && 14370 $as_test_x conftest$ac_exeext; then 14371 14372lt_aix_libpath_sed=' 14373 /Import File Strings/,/^$/ { 14374 /^0/ { 14375 s/^0 *\(.*\)$/\1/ 14376 p 14377 } 14378 }' 14379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14380# Check for a 64-bit object if we didn't find anything. 14381if test -z "$aix_libpath"; then 14382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14383fi 14384else 14385 echo "$as_me: failed program was:" >&5 14386sed 's/^/| /' conftest.$ac_ext >&5 14387 14388 14389fi 14390 14391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14392 conftest$ac_exeext conftest.$ac_ext 14393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14394 14395 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14396 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" 14397 else 14398 if test "$host_cpu" = ia64; then 14399 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14400 allow_undefined_flag_F77="-z nodefs" 14401 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" 14402 else 14403 # Determine the default libpath from the value encoded in an empty executable. 14404 cat >conftest.$ac_ext <<_ACEOF 14405 program main 14406 14407 end 14408_ACEOF 14409rm -f conftest.$ac_objext conftest$ac_exeext 14410if { (ac_try="$ac_link" 14411case "(($ac_try" in 14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14413 *) ac_try_echo=$ac_try;; 14414esac 14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14416 (eval "$ac_link") 2>conftest.er1 14417 ac_status=$? 14418 grep -v '^ *+' conftest.er1 >conftest.err 14419 rm -f conftest.er1 14420 cat conftest.err >&5 14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14422 (exit $ac_status); } && { 14423 test -z "$ac_f77_werror_flag" || 14424 test ! -s conftest.err 14425 } && test -s conftest$ac_exeext && 14426 $as_test_x conftest$ac_exeext; then 14427 14428lt_aix_libpath_sed=' 14429 /Import File Strings/,/^$/ { 14430 /^0/ { 14431 s/^0 *\(.*\)$/\1/ 14432 p 14433 } 14434 }' 14435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14436# Check for a 64-bit object if we didn't find anything. 14437if test -z "$aix_libpath"; then 14438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14439fi 14440else 14441 echo "$as_me: failed program was:" >&5 14442sed 's/^/| /' conftest.$ac_ext >&5 14443 14444 14445fi 14446 14447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14448 conftest$ac_exeext conftest.$ac_ext 14449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14450 14451 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14452 # Warning - without using the other run time loading flags, 14453 # -berok will link without error, but may produce a broken library. 14454 no_undefined_flag_F77=' ${wl}-bernotok' 14455 allow_undefined_flag_F77=' ${wl}-berok' 14456 # Exported symbols can be pulled into shared objects from archives 14457 whole_archive_flag_spec_F77='$convenience' 14458 archive_cmds_need_lc_F77=yes 14459 # This is similar to how AIX traditionally builds its shared libraries. 14460 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' 14461 fi 14462 fi 14463 ;; 14464 14465 amigaos*) 14466 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)' 14467 hardcode_libdir_flag_spec_F77='-L$libdir' 14468 hardcode_minus_L_F77=yes 14469 # see comment about different semantics on the GNU ld section 14470 ld_shlibs_F77=no 14471 ;; 14472 14473 bsdi[45]*) 14474 export_dynamic_flag_spec_F77=-rdynamic 14475 ;; 14476 14477 cygwin* | mingw* | pw32*) 14478 # When not using gcc, we currently assume that we are using 14479 # Microsoft Visual C++. 14480 # hardcode_libdir_flag_spec is actually meaningless, as there is 14481 # no search path for DLLs. 14482 hardcode_libdir_flag_spec_F77=' ' 14483 allow_undefined_flag_F77=unsupported 14484 # Tell ltmain to make .lib files, not .a files. 14485 libext=lib 14486 # Tell ltmain to make .dll files, not .so files. 14487 shrext_cmds=".dll" 14488 # FIXME: Setting linknames here is a bad hack. 14489 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14490 # The linker will automatically build a .lib file if we build a DLL. 14491 old_archive_From_new_cmds_F77='true' 14492 # FIXME: Should let the user specify the lib program. 14493 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14494 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14495 enable_shared_with_static_runtimes_F77=yes 14496 ;; 14497 14498 darwin* | rhapsody*) 14499 case $host_os in 14500 rhapsody* | darwin1.[012]) 14501 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14502 ;; 14503 *) # Darwin 1.3 on 14504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14505 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14506 else 14507 case ${MACOSX_DEPLOYMENT_TARGET} in 14508 10.[012]) 14509 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14510 ;; 14511 10.*) 14512 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14513 ;; 14514 esac 14515 fi 14516 ;; 14517 esac 14518 archive_cmds_need_lc_F77=no 14519 hardcode_direct_F77=no 14520 hardcode_automatic_F77=yes 14521 hardcode_shlibpath_var_F77=unsupported 14522 whole_archive_flag_spec_F77='' 14523 link_all_deplibs_F77=yes 14524 if test "$GCC" = yes ; then 14525 output_verbose_link_cmd='echo' 14526 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14527 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14528 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14529 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 14530 else 14531 case $cc_basename in 14532 xlc*) 14533 output_verbose_link_cmd='echo' 14534 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14535 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14537 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14538 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}' 14539 ;; 14540 *) 14541 ld_shlibs_F77=no 14542 ;; 14543 esac 14544 fi 14545 ;; 14546 14547 dgux*) 14548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14549 hardcode_libdir_flag_spec_F77='-L$libdir' 14550 hardcode_shlibpath_var_F77=no 14551 ;; 14552 14553 freebsd1*) 14554 ld_shlibs_F77=no 14555 ;; 14556 14557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14558 # support. Future versions do this automatically, but an explicit c++rt0.o 14559 # does not break anything, and helps significantly (at the cost of a little 14560 # extra space). 14561 freebsd2.2*) 14562 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14563 hardcode_libdir_flag_spec_F77='-R$libdir' 14564 hardcode_direct_F77=yes 14565 hardcode_shlibpath_var_F77=no 14566 ;; 14567 14568 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14569 freebsd2*) 14570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14571 hardcode_direct_F77=yes 14572 hardcode_minus_L_F77=yes 14573 hardcode_shlibpath_var_F77=no 14574 ;; 14575 14576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14577 freebsd* | dragonfly*) 14578 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14579 hardcode_libdir_flag_spec_F77='-R$libdir' 14580 hardcode_direct_F77=yes 14581 hardcode_shlibpath_var_F77=no 14582 ;; 14583 14584 hpux9*) 14585 if test "$GCC" = yes; then 14586 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' 14587 else 14588 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' 14589 fi 14590 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14591 hardcode_libdir_separator_F77=: 14592 hardcode_direct_F77=yes 14593 14594 # hardcode_minus_L: Not really in the search PATH, 14595 # but as the default location of the library. 14596 hardcode_minus_L_F77=yes 14597 export_dynamic_flag_spec_F77='${wl}-E' 14598 ;; 14599 14600 hpux10*) 14601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14602 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14603 else 14604 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14605 fi 14606 if test "$with_gnu_ld" = no; then 14607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14608 hardcode_libdir_separator_F77=: 14609 14610 hardcode_direct_F77=yes 14611 export_dynamic_flag_spec_F77='${wl}-E' 14612 14613 # hardcode_minus_L: Not really in the search PATH, 14614 # but as the default location of the library. 14615 hardcode_minus_L_F77=yes 14616 fi 14617 ;; 14618 14619 hpux11*) 14620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14621 case $host_cpu in 14622 hppa*64*) 14623 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14624 ;; 14625 ia64*) 14626 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14627 ;; 14628 *) 14629 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14630 ;; 14631 esac 14632 else 14633 case $host_cpu in 14634 hppa*64*) 14635 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14636 ;; 14637 ia64*) 14638 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14639 ;; 14640 *) 14641 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14642 ;; 14643 esac 14644 fi 14645 if test "$with_gnu_ld" = no; then 14646 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14647 hardcode_libdir_separator_F77=: 14648 14649 case $host_cpu in 14650 hppa*64*|ia64*) 14651 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14652 hardcode_direct_F77=no 14653 hardcode_shlibpath_var_F77=no 14654 ;; 14655 *) 14656 hardcode_direct_F77=yes 14657 export_dynamic_flag_spec_F77='${wl}-E' 14658 14659 # hardcode_minus_L: Not really in the search PATH, 14660 # but as the default location of the library. 14661 hardcode_minus_L_F77=yes 14662 ;; 14663 esac 14664 fi 14665 ;; 14666 14667 irix5* | irix6* | nonstopux*) 14668 if test "$GCC" = yes; then 14669 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' 14670 else 14671 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' 14672 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14673 fi 14674 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14675 hardcode_libdir_separator_F77=: 14676 link_all_deplibs_F77=yes 14677 ;; 14678 14679 netbsd*) 14680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14682 else 14683 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14684 fi 14685 hardcode_libdir_flag_spec_F77='-R$libdir' 14686 hardcode_direct_F77=yes 14687 hardcode_shlibpath_var_F77=no 14688 ;; 14689 14690 newsos6) 14691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14692 hardcode_direct_F77=yes 14693 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14694 hardcode_libdir_separator_F77=: 14695 hardcode_shlibpath_var_F77=no 14696 ;; 14697 14698 openbsd*) 14699 if test -f /usr/libexec/ld.so; then 14700 hardcode_direct_F77=yes 14701 hardcode_shlibpath_var_F77=no 14702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14703 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14704 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14705 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14706 export_dynamic_flag_spec_F77='${wl}-E' 14707 else 14708 case $host_os in 14709 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14711 hardcode_libdir_flag_spec_F77='-R$libdir' 14712 ;; 14713 *) 14714 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14715 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14716 ;; 14717 esac 14718 fi 14719 else 14720 ld_shlibs_F77=no 14721 fi 14722 ;; 14723 14724 os2*) 14725 hardcode_libdir_flag_spec_F77='-L$libdir' 14726 hardcode_minus_L_F77=yes 14727 allow_undefined_flag_F77=unsupported 14728 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' 14729 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14730 ;; 14731 14732 osf3*) 14733 if test "$GCC" = yes; then 14734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14735 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' 14736 else 14737 allow_undefined_flag_F77=' -expect_unresolved \*' 14738 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' 14739 fi 14740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14741 hardcode_libdir_separator_F77=: 14742 ;; 14743 14744 osf4* | osf5*) # as osf3* with the addition of -msym flag 14745 if test "$GCC" = yes; then 14746 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14747 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' 14748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14749 else 14750 allow_undefined_flag_F77=' -expect_unresolved \*' 14751 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' 14752 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~ 14753 $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' 14754 14755 # Both c and cxx compiler support -rpath directly 14756 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14757 fi 14758 hardcode_libdir_separator_F77=: 14759 ;; 14760 14761 solaris*) 14762 no_undefined_flag_F77=' -z text' 14763 if test "$GCC" = yes; then 14764 wlarc='${wl}' 14765 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14766 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14768 else 14769 wlarc='' 14770 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14771 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14773 fi 14774 hardcode_libdir_flag_spec_F77='-R$libdir' 14775 hardcode_shlibpath_var_F77=no 14776 case $host_os in 14777 solaris2.[0-5] | solaris2.[0-5].*) ;; 14778 *) 14779 # The compiler driver will combine and reorder linker options, 14780 # but understands `-z linker_flag'. GCC discards it without `$wl', 14781 # but is careful enough not to reorder. 14782 # Supported since Solaris 2.6 (maybe 2.5.1?) 14783 if test "$GCC" = yes; then 14784 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14785 else 14786 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14787 fi 14788 ;; 14789 esac 14790 link_all_deplibs_F77=yes 14791 ;; 14792 14793 sunos4*) 14794 if test "x$host_vendor" = xsequent; then 14795 # Use $CC to link under sequent, because it throws in some extra .o 14796 # files that make .init and .fini sections work. 14797 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14798 else 14799 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14800 fi 14801 hardcode_libdir_flag_spec_F77='-L$libdir' 14802 hardcode_direct_F77=yes 14803 hardcode_minus_L_F77=yes 14804 hardcode_shlibpath_var_F77=no 14805 ;; 14806 14807 sysv4) 14808 case $host_vendor in 14809 sni) 14810 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14811 hardcode_direct_F77=yes # is this really true??? 14812 ;; 14813 siemens) 14814 ## LD is ld it makes a PLAMLIB 14815 ## CC just makes a GrossModule. 14816 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14817 reload_cmds_F77='$CC -r -o $output$reload_objs' 14818 hardcode_direct_F77=no 14819 ;; 14820 motorola) 14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14822 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14823 ;; 14824 esac 14825 runpath_var='LD_RUN_PATH' 14826 hardcode_shlibpath_var_F77=no 14827 ;; 14828 14829 sysv4.3*) 14830 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14831 hardcode_shlibpath_var_F77=no 14832 export_dynamic_flag_spec_F77='-Bexport' 14833 ;; 14834 14835 sysv4*MP*) 14836 if test -d /usr/nec; then 14837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14838 hardcode_shlibpath_var_F77=no 14839 runpath_var=LD_RUN_PATH 14840 hardcode_runpath_var=yes 14841 ld_shlibs_F77=yes 14842 fi 14843 ;; 14844 14845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14846 no_undefined_flag_F77='${wl}-z,text' 14847 archive_cmds_need_lc_F77=no 14848 hardcode_shlibpath_var_F77=no 14849 runpath_var='LD_RUN_PATH' 14850 14851 if test "$GCC" = yes; then 14852 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14853 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14854 else 14855 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14856 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 fi 14858 ;; 14859 14860 sysv5* | sco3.2v5* | sco5v6*) 14861 # Note: We can NOT use -z defs as we might desire, because we do not 14862 # link with -lc, and that would cause any symbols used from libc to 14863 # always be unresolved, which means just about no library would 14864 # ever link correctly. If we're not using GNU ld we use -z text 14865 # though, which does catch some bad symbols but isn't as heavy-handed 14866 # as -z defs. 14867 no_undefined_flag_F77='${wl}-z,text' 14868 allow_undefined_flag_F77='${wl}-z,nodefs' 14869 archive_cmds_need_lc_F77=no 14870 hardcode_shlibpath_var_F77=no 14871 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14872 hardcode_libdir_separator_F77=':' 14873 link_all_deplibs_F77=yes 14874 export_dynamic_flag_spec_F77='${wl}-Bexport' 14875 runpath_var='LD_RUN_PATH' 14876 14877 if test "$GCC" = yes; then 14878 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14879 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14880 else 14881 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14882 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14883 fi 14884 ;; 14885 14886 uts4*) 14887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14888 hardcode_libdir_flag_spec_F77='-L$libdir' 14889 hardcode_shlibpath_var_F77=no 14890 ;; 14891 14892 *) 14893 ld_shlibs_F77=no 14894 ;; 14895 esac 14896 fi 14897 14898{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14899echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14900test "$ld_shlibs_F77" = no && can_build_shared=no 14901 14902# 14903# Do we need to explicitly link libc? 14904# 14905case "x$archive_cmds_need_lc_F77" in 14906x|xyes) 14907 # Assume -lc should be added 14908 archive_cmds_need_lc_F77=yes 14909 14910 if test "$enable_shared" = yes && test "$GCC" = yes; then 14911 case $archive_cmds_F77 in 14912 *'~'*) 14913 # FIXME: we may have to deal with multi-command sequences. 14914 ;; 14915 '$CC '*) 14916 # Test whether the compiler implicitly links with -lc since on some 14917 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14918 # to ld, don't add -lc before -lgcc. 14919 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14920echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14921 $rm conftest* 14922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14923 14924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14925 (eval $ac_compile) 2>&5 14926 ac_status=$? 14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14928 (exit $ac_status); } 2>conftest.err; then 14929 soname=conftest 14930 lib=conftest 14931 libobjs=conftest.$ac_objext 14932 deplibs= 14933 wl=$lt_prog_compiler_wl_F77 14934 pic_flag=$lt_prog_compiler_pic_F77 14935 compiler_flags=-v 14936 linker_flags=-v 14937 verstring= 14938 output_objdir=. 14939 libname=conftest 14940 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14941 allow_undefined_flag_F77= 14942 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14943 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14944 ac_status=$? 14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14946 (exit $ac_status); } 14947 then 14948 archive_cmds_need_lc_F77=no 14949 else 14950 archive_cmds_need_lc_F77=yes 14951 fi 14952 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14953 else 14954 cat conftest.err 1>&5 14955 fi 14956 $rm conftest* 14957 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14958echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 14959 ;; 14960 esac 14961 fi 14962 ;; 14963esac 14964 14965{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14966echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14967library_names_spec= 14968libname_spec='lib$name' 14969soname_spec= 14970shrext_cmds=".so" 14971postinstall_cmds= 14972postuninstall_cmds= 14973finish_cmds= 14974finish_eval= 14975shlibpath_var= 14976shlibpath_overrides_runpath=unknown 14977version_type=none 14978dynamic_linker="$host_os ld.so" 14979sys_lib_dlsearch_path_spec="/lib /usr/lib" 14980 14981need_lib_prefix=unknown 14982hardcode_into_libs=no 14983 14984# when you set need_version to no, make sure it does not cause -set_version 14985# flags to be left without arguments 14986need_version=unknown 14987 14988case $host_os in 14989aix3*) 14990 version_type=linux 14991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14992 shlibpath_var=LIBPATH 14993 14994 # AIX 3 has no versioning support, so we append a major version to the name. 14995 soname_spec='${libname}${release}${shared_ext}$major' 14996 ;; 14997 14998aix[4-9]*) 14999 version_type=linux 15000 need_lib_prefix=no 15001 need_version=no 15002 hardcode_into_libs=yes 15003 if test "$host_cpu" = ia64; then 15004 # AIX 5 supports IA64 15005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15006 shlibpath_var=LD_LIBRARY_PATH 15007 else 15008 # With GCC up to 2.95.x, collect2 would create an import file 15009 # for dependence libraries. The import file would start with 15010 # the line `#! .'. This would cause the generated library to 15011 # depend on `.', always an invalid library. This was fixed in 15012 # development snapshots of GCC prior to 3.0. 15013 case $host_os in 15014 aix4 | aix4.[01] | aix4.[01].*) 15015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15016 echo ' yes ' 15017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15018 : 15019 else 15020 can_build_shared=no 15021 fi 15022 ;; 15023 esac 15024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15025 # soname into executable. Probably we can add versioning support to 15026 # collect2, so additional links can be useful in future. 15027 if test "$aix_use_runtimelinking" = yes; then 15028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15029 # instead of lib<name>.a to let people know that these are not 15030 # typical AIX shared libraries. 15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15032 else 15033 # We preserve .a as extension for shared libraries through AIX4.2 15034 # and later when we are not doing run time linking. 15035 library_names_spec='${libname}${release}.a $libname.a' 15036 soname_spec='${libname}${release}${shared_ext}$major' 15037 fi 15038 shlibpath_var=LIBPATH 15039 fi 15040 ;; 15041 15042amigaos*) 15043 library_names_spec='$libname.ixlibrary $libname.a' 15044 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15045 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' 15046 ;; 15047 15048beos*) 15049 library_names_spec='${libname}${shared_ext}' 15050 dynamic_linker="$host_os ld.so" 15051 shlibpath_var=LIBRARY_PATH 15052 ;; 15053 15054bsdi[45]*) 15055 version_type=linux 15056 need_version=no 15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15058 soname_spec='${libname}${release}${shared_ext}$major' 15059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15060 shlibpath_var=LD_LIBRARY_PATH 15061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15063 # the default ld.so.conf also contains /usr/contrib/lib and 15064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15065 # libtool to hard-code these into programs 15066 ;; 15067 15068cygwin* | mingw* | pw32*) 15069 version_type=windows 15070 shrext_cmds=".dll" 15071 need_version=no 15072 need_lib_prefix=no 15073 15074 case $GCC,$host_os in 15075 yes,cygwin* | yes,mingw* | yes,pw32*) 15076 library_names_spec='$libname.dll.a' 15077 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15078 postinstall_cmds='base_file=`basename \${file}`~ 15079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15080 dldir=$destdir/`dirname \$dlpath`~ 15081 test -d \$dldir || mkdir -p \$dldir~ 15082 $install_prog $dir/$dlname \$dldir/$dlname~ 15083 chmod a+x \$dldir/$dlname' 15084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15085 dlpath=$dir/\$dldll~ 15086 $rm \$dlpath' 15087 shlibpath_overrides_runpath=yes 15088 15089 case $host_os in 15090 cygwin*) 15091 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15094 ;; 15095 mingw*) 15096 # MinGW DLLs use traditional 'lib' prefix 15097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15100 # It is most probably a Windows format PATH printed by 15101 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15102 # path with ; separators, and with drive letters. We can handle the 15103 # drive letters (cygwin fileutils understands them), so leave them, 15104 # especially as we might pass files found there to a mingw objdump, 15105 # which wouldn't understand a cygwinified path. Ahh. 15106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15107 else 15108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15109 fi 15110 ;; 15111 pw32*) 15112 # pw32 DLLs use 'pw' prefix rather than 'lib' 15113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15114 ;; 15115 esac 15116 ;; 15117 15118 *) 15119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15120 ;; 15121 esac 15122 dynamic_linker='Win32 ld.exe' 15123 # FIXME: first we should search . and the directory the executable is in 15124 shlibpath_var=PATH 15125 ;; 15126 15127darwin* | rhapsody*) 15128 dynamic_linker="$host_os dyld" 15129 version_type=darwin 15130 need_lib_prefix=no 15131 need_version=no 15132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15133 soname_spec='${libname}${release}${major}$shared_ext' 15134 shlibpath_overrides_runpath=yes 15135 shlibpath_var=DYLD_LIBRARY_PATH 15136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15137 15138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15139 ;; 15140 15141dgux*) 15142 version_type=linux 15143 need_lib_prefix=no 15144 need_version=no 15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15146 soname_spec='${libname}${release}${shared_ext}$major' 15147 shlibpath_var=LD_LIBRARY_PATH 15148 ;; 15149 15150freebsd1*) 15151 dynamic_linker=no 15152 ;; 15153 15154freebsd* | dragonfly*) 15155 # DragonFly does not have aout. When/if they implement a new 15156 # versioning mechanism, adjust this. 15157 if test -x /usr/bin/objformat; then 15158 objformat=`/usr/bin/objformat` 15159 else 15160 case $host_os in 15161 freebsd[123]*) objformat=aout ;; 15162 *) objformat=elf ;; 15163 esac 15164 fi 15165 version_type=freebsd-$objformat 15166 case $version_type in 15167 freebsd-elf*) 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15169 need_version=no 15170 need_lib_prefix=no 15171 ;; 15172 freebsd-*) 15173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15174 need_version=yes 15175 ;; 15176 esac 15177 shlibpath_var=LD_LIBRARY_PATH 15178 case $host_os in 15179 freebsd2*) 15180 shlibpath_overrides_runpath=yes 15181 ;; 15182 freebsd3.[01]* | freebsdelf3.[01]*) 15183 shlibpath_overrides_runpath=yes 15184 hardcode_into_libs=yes 15185 ;; 15186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15188 shlibpath_overrides_runpath=no 15189 hardcode_into_libs=yes 15190 ;; 15191 *) # from 4.6 on, and DragonFly 15192 shlibpath_overrides_runpath=yes 15193 hardcode_into_libs=yes 15194 ;; 15195 esac 15196 ;; 15197 15198gnu*) 15199 version_type=linux 15200 need_lib_prefix=no 15201 need_version=no 15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15203 soname_spec='${libname}${release}${shared_ext}$major' 15204 shlibpath_var=LD_LIBRARY_PATH 15205 hardcode_into_libs=yes 15206 ;; 15207 15208hpux9* | hpux10* | hpux11*) 15209 # Give a soname corresponding to the major version so that dld.sl refuses to 15210 # link against other versions. 15211 version_type=sunos 15212 need_lib_prefix=no 15213 need_version=no 15214 case $host_cpu in 15215 ia64*) 15216 shrext_cmds='.so' 15217 hardcode_into_libs=yes 15218 dynamic_linker="$host_os dld.so" 15219 shlibpath_var=LD_LIBRARY_PATH 15220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15222 soname_spec='${libname}${release}${shared_ext}$major' 15223 if test "X$HPUX_IA64_MODE" = X32; then 15224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15225 else 15226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15227 fi 15228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15229 ;; 15230 hppa*64*) 15231 shrext_cmds='.sl' 15232 hardcode_into_libs=yes 15233 dynamic_linker="$host_os dld.sl" 15234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15237 soname_spec='${libname}${release}${shared_ext}$major' 15238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15240 ;; 15241 *) 15242 shrext_cmds='.sl' 15243 dynamic_linker="$host_os dld.sl" 15244 shlibpath_var=SHLIB_PATH 15245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15247 soname_spec='${libname}${release}${shared_ext}$major' 15248 ;; 15249 esac 15250 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15251 postinstall_cmds='chmod 555 $lib' 15252 ;; 15253 15254interix[3-9]*) 15255 version_type=linux 15256 need_lib_prefix=no 15257 need_version=no 15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15259 soname_spec='${libname}${release}${shared_ext}$major' 15260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15261 shlibpath_var=LD_LIBRARY_PATH 15262 shlibpath_overrides_runpath=no 15263 hardcode_into_libs=yes 15264 ;; 15265 15266irix5* | irix6* | nonstopux*) 15267 case $host_os in 15268 nonstopux*) version_type=nonstopux ;; 15269 *) 15270 if test "$lt_cv_prog_gnu_ld" = yes; then 15271 version_type=linux 15272 else 15273 version_type=irix 15274 fi ;; 15275 esac 15276 need_lib_prefix=no 15277 need_version=no 15278 soname_spec='${libname}${release}${shared_ext}$major' 15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15280 case $host_os in 15281 irix5* | nonstopux*) 15282 libsuff= shlibsuff= 15283 ;; 15284 *) 15285 case $LD in # libtool.m4 will add one of these switches to LD 15286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15287 libsuff= shlibsuff= libmagic=32-bit;; 15288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15289 libsuff=32 shlibsuff=N32 libmagic=N32;; 15290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15291 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15292 *) libsuff= shlibsuff= libmagic=never-match;; 15293 esac 15294 ;; 15295 esac 15296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15297 shlibpath_overrides_runpath=no 15298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15300 hardcode_into_libs=yes 15301 ;; 15302 15303# No shared lib support for Linux oldld, aout, or coff. 15304linux*oldld* | linux*aout* | linux*coff*) 15305 dynamic_linker=no 15306 ;; 15307 15308# This must be Linux ELF. 15309linux* | k*bsd*-gnu) 15310 version_type=linux 15311 need_lib_prefix=no 15312 need_version=no 15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15314 soname_spec='${libname}${release}${shared_ext}$major' 15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15316 shlibpath_var=LD_LIBRARY_PATH 15317 shlibpath_overrides_runpath=no 15318 # This implies no fast_install, which is unacceptable. 15319 # Some rework will be needed to allow for fast_install 15320 # before this can be enabled. 15321 hardcode_into_libs=yes 15322 15323 # Append ld.so.conf contents to the search path 15324 if test -f /etc/ld.so.conf; then 15325 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15327 fi 15328 15329 # We used to test for /lib/ld.so.1 and disable shared libraries on 15330 # powerpc, because MkLinux only supported shared libraries with the 15331 # GNU dynamic linker. Since this was broken with cross compilers, 15332 # most powerpc-linux boxes support dynamic linking these days and 15333 # people can always --disable-shared, the test was removed, and we 15334 # assume the GNU/Linux dynamic linker is in use. 15335 dynamic_linker='GNU/Linux ld.so' 15336 ;; 15337 15338netbsd*) 15339 version_type=sunos 15340 need_lib_prefix=no 15341 need_version=no 15342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15345 dynamic_linker='NetBSD (a.out) ld.so' 15346 else 15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15348 soname_spec='${libname}${release}${shared_ext}$major' 15349 dynamic_linker='NetBSD ld.elf_so' 15350 fi 15351 shlibpath_var=LD_LIBRARY_PATH 15352 shlibpath_overrides_runpath=yes 15353 hardcode_into_libs=yes 15354 ;; 15355 15356newsos6) 15357 version_type=linux 15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15359 shlibpath_var=LD_LIBRARY_PATH 15360 shlibpath_overrides_runpath=yes 15361 ;; 15362 15363nto-qnx*) 15364 version_type=linux 15365 need_lib_prefix=no 15366 need_version=no 15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15368 soname_spec='${libname}${release}${shared_ext}$major' 15369 shlibpath_var=LD_LIBRARY_PATH 15370 shlibpath_overrides_runpath=yes 15371 ;; 15372 15373openbsd*) 15374 version_type=sunos 15375 sys_lib_dlsearch_path_spec="/usr/lib" 15376 need_lib_prefix=no 15377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15378 case $host_os in 15379 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15380 *) need_version=no ;; 15381 esac 15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15384 shlibpath_var=LD_LIBRARY_PATH 15385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15386 case $host_os in 15387 openbsd2.[89] | openbsd2.[89].*) 15388 shlibpath_overrides_runpath=no 15389 ;; 15390 *) 15391 shlibpath_overrides_runpath=yes 15392 ;; 15393 esac 15394 else 15395 shlibpath_overrides_runpath=yes 15396 fi 15397 ;; 15398 15399os2*) 15400 libname_spec='$name' 15401 shrext_cmds=".dll" 15402 need_lib_prefix=no 15403 library_names_spec='$libname${shared_ext} $libname.a' 15404 dynamic_linker='OS/2 ld.exe' 15405 shlibpath_var=LIBPATH 15406 ;; 15407 15408osf3* | osf4* | osf5*) 15409 version_type=osf 15410 need_lib_prefix=no 15411 need_version=no 15412 soname_spec='${libname}${release}${shared_ext}$major' 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15414 shlibpath_var=LD_LIBRARY_PATH 15415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15417 ;; 15418 15419rdos*) 15420 dynamic_linker=no 15421 ;; 15422 15423solaris*) 15424 version_type=linux 15425 need_lib_prefix=no 15426 need_version=no 15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15428 soname_spec='${libname}${release}${shared_ext}$major' 15429 shlibpath_var=LD_LIBRARY_PATH 15430 shlibpath_overrides_runpath=yes 15431 hardcode_into_libs=yes 15432 # ldd complains unless libraries are executable 15433 postinstall_cmds='chmod +x $lib' 15434 ;; 15435 15436sunos4*) 15437 version_type=sunos 15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15440 shlibpath_var=LD_LIBRARY_PATH 15441 shlibpath_overrides_runpath=yes 15442 if test "$with_gnu_ld" = yes; then 15443 need_lib_prefix=no 15444 fi 15445 need_version=yes 15446 ;; 15447 15448sysv4 | sysv4.3*) 15449 version_type=linux 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15451 soname_spec='${libname}${release}${shared_ext}$major' 15452 shlibpath_var=LD_LIBRARY_PATH 15453 case $host_vendor in 15454 sni) 15455 shlibpath_overrides_runpath=no 15456 need_lib_prefix=no 15457 export_dynamic_flag_spec='${wl}-Blargedynsym' 15458 runpath_var=LD_RUN_PATH 15459 ;; 15460 siemens) 15461 need_lib_prefix=no 15462 ;; 15463 motorola) 15464 need_lib_prefix=no 15465 need_version=no 15466 shlibpath_overrides_runpath=no 15467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15468 ;; 15469 esac 15470 ;; 15471 15472sysv4*MP*) 15473 if test -d /usr/nec ;then 15474 version_type=linux 15475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15476 soname_spec='$libname${shared_ext}.$major' 15477 shlibpath_var=LD_LIBRARY_PATH 15478 fi 15479 ;; 15480 15481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15482 version_type=freebsd-elf 15483 need_lib_prefix=no 15484 need_version=no 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 shlibpath_var=LD_LIBRARY_PATH 15488 hardcode_into_libs=yes 15489 if test "$with_gnu_ld" = yes; then 15490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15491 shlibpath_overrides_runpath=no 15492 else 15493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15494 shlibpath_overrides_runpath=yes 15495 case $host_os in 15496 sco3.2v5*) 15497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15498 ;; 15499 esac 15500 fi 15501 sys_lib_dlsearch_path_spec='/usr/lib' 15502 ;; 15503 15504uts4*) 15505 version_type=linux 15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15507 soname_spec='${libname}${release}${shared_ext}$major' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 ;; 15510 15511*) 15512 dynamic_linker=no 15513 ;; 15514esac 15515{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15516echo "${ECHO_T}$dynamic_linker" >&6; } 15517test "$dynamic_linker" = no && can_build_shared=no 15518 15519if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15520 echo $ECHO_N "(cached) $ECHO_C" >&6 15521else 15522 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 15523fi 15524 15525sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15526if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15527 echo $ECHO_N "(cached) $ECHO_C" >&6 15528else 15529 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 15530fi 15531 15532sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15533 15534variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15535if test "$GCC" = yes; then 15536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15537fi 15538 15539{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15541hardcode_action_F77= 15542if test -n "$hardcode_libdir_flag_spec_F77" || \ 15543 test -n "$runpath_var_F77" || \ 15544 test "X$hardcode_automatic_F77" = "Xyes" ; then 15545 15546 # We can hardcode non-existant directories. 15547 if test "$hardcode_direct_F77" != no && 15548 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15549 # have to relink, otherwise we might link with an installed library 15550 # when we should be linking with a yet-to-be-installed one 15551 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15552 test "$hardcode_minus_L_F77" != no; then 15553 # Linking always hardcodes the temporary library directory. 15554 hardcode_action_F77=relink 15555 else 15556 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15557 hardcode_action_F77=immediate 15558 fi 15559else 15560 # We cannot hardcode anything, or else we can only hardcode existing 15561 # directories. 15562 hardcode_action_F77=unsupported 15563fi 15564{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15565echo "${ECHO_T}$hardcode_action_F77" >&6; } 15566 15567if test "$hardcode_action_F77" = relink; then 15568 # Fast installation is not supported 15569 enable_fast_install=no 15570elif test "$shlibpath_overrides_runpath" = yes || 15571 test "$enable_shared" = no; then 15572 # Fast installation is not necessary 15573 enable_fast_install=needless 15574fi 15575 15576 15577# The else clause should only fire when bootstrapping the 15578# libtool distribution, otherwise you forgot to ship ltmain.sh 15579# with your package, and you will get complaints that there are 15580# no rules to generate ltmain.sh. 15581if test -f "$ltmain"; then 15582 # See if we are running on zsh, and set the options which allow our commands through 15583 # without removal of \ escapes. 15584 if test -n "${ZSH_VERSION+set}" ; then 15585 setopt NO_GLOB_SUBST 15586 fi 15587 # Now quote all the things that may contain metacharacters while being 15588 # careful not to overquote the AC_SUBSTed values. We take copies of the 15589 # variables and quote the copies for generation of the libtool script. 15590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15591 SED SHELL STRIP \ 15592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15594 deplibs_check_method reload_flag reload_cmds need_locks \ 15595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15596 lt_cv_sys_global_symbol_to_c_name_address \ 15597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15598 old_postinstall_cmds old_postuninstall_cmds \ 15599 compiler_F77 \ 15600 CC_F77 \ 15601 LD_F77 \ 15602 lt_prog_compiler_wl_F77 \ 15603 lt_prog_compiler_pic_F77 \ 15604 lt_prog_compiler_static_F77 \ 15605 lt_prog_compiler_no_builtin_flag_F77 \ 15606 export_dynamic_flag_spec_F77 \ 15607 thread_safe_flag_spec_F77 \ 15608 whole_archive_flag_spec_F77 \ 15609 enable_shared_with_static_runtimes_F77 \ 15610 old_archive_cmds_F77 \ 15611 old_archive_from_new_cmds_F77 \ 15612 predep_objects_F77 \ 15613 postdep_objects_F77 \ 15614 predeps_F77 \ 15615 postdeps_F77 \ 15616 compiler_lib_search_path_F77 \ 15617 compiler_lib_search_dirs_F77 \ 15618 archive_cmds_F77 \ 15619 archive_expsym_cmds_F77 \ 15620 postinstall_cmds_F77 \ 15621 postuninstall_cmds_F77 \ 15622 old_archive_from_expsyms_cmds_F77 \ 15623 allow_undefined_flag_F77 \ 15624 no_undefined_flag_F77 \ 15625 export_symbols_cmds_F77 \ 15626 hardcode_libdir_flag_spec_F77 \ 15627 hardcode_libdir_flag_spec_ld_F77 \ 15628 hardcode_libdir_separator_F77 \ 15629 hardcode_automatic_F77 \ 15630 module_cmds_F77 \ 15631 module_expsym_cmds_F77 \ 15632 lt_cv_prog_compiler_c_o_F77 \ 15633 fix_srcfile_path_F77 \ 15634 exclude_expsyms_F77 \ 15635 include_expsyms_F77; do 15636 15637 case $var in 15638 old_archive_cmds_F77 | \ 15639 old_archive_from_new_cmds_F77 | \ 15640 archive_cmds_F77 | \ 15641 archive_expsym_cmds_F77 | \ 15642 module_cmds_F77 | \ 15643 module_expsym_cmds_F77 | \ 15644 old_archive_from_expsyms_cmds_F77 | \ 15645 export_symbols_cmds_F77 | \ 15646 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15647 postinstall_cmds | postuninstall_cmds | \ 15648 old_postinstall_cmds | old_postuninstall_cmds | \ 15649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15650 # Double-quote double-evaled strings. 15651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15652 ;; 15653 *) 15654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15655 ;; 15656 esac 15657 done 15658 15659 case $lt_echo in 15660 *'\$0 --fallback-echo"') 15661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15662 ;; 15663 esac 15664 15665cfgfile="$ofile" 15666 15667 cat <<__EOF__ >> "$cfgfile" 15668# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15669 15670# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15671 15672# Shell to use when invoking shell scripts. 15673SHELL=$lt_SHELL 15674 15675# Whether or not to build shared libraries. 15676build_libtool_libs=$enable_shared 15677 15678# Whether or not to build static libraries. 15679build_old_libs=$enable_static 15680 15681# Whether or not to add -lc for building shared libraries. 15682build_libtool_need_lc=$archive_cmds_need_lc_F77 15683 15684# Whether or not to disallow shared libs when runtime libs are static 15685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15686 15687# Whether or not to optimize for fast installation. 15688fast_install=$enable_fast_install 15689 15690# The host system. 15691host_alias=$host_alias 15692host=$host 15693host_os=$host_os 15694 15695# The build system. 15696build_alias=$build_alias 15697build=$build 15698build_os=$build_os 15699 15700# An echo program that does not interpret backslashes. 15701echo=$lt_echo 15702 15703# The archiver. 15704AR=$lt_AR 15705AR_FLAGS=$lt_AR_FLAGS 15706 15707# A C compiler. 15708LTCC=$lt_LTCC 15709 15710# LTCC compiler flags. 15711LTCFLAGS=$lt_LTCFLAGS 15712 15713# A language-specific compiler. 15714CC=$lt_compiler_F77 15715 15716# Is the compiler the GNU C compiler? 15717with_gcc=$GCC_F77 15718 15719# An ERE matcher. 15720EGREP=$lt_EGREP 15721 15722# The linker used to build libraries. 15723LD=$lt_LD_F77 15724 15725# Whether we need hard or soft links. 15726LN_S=$lt_LN_S 15727 15728# A BSD-compatible nm program. 15729NM=$lt_NM 15730 15731# A symbol stripping program 15732STRIP=$lt_STRIP 15733 15734# Used to examine libraries when file_magic_cmd begins "file" 15735MAGIC_CMD=$MAGIC_CMD 15736 15737# Used on cygwin: DLL creation program. 15738DLLTOOL="$DLLTOOL" 15739 15740# Used on cygwin: object dumper. 15741OBJDUMP="$OBJDUMP" 15742 15743# Used on cygwin: assembler. 15744AS="$AS" 15745 15746# The name of the directory that contains temporary libtool files. 15747objdir=$objdir 15748 15749# How to create reloadable object files. 15750reload_flag=$lt_reload_flag 15751reload_cmds=$lt_reload_cmds 15752 15753# How to pass a linker flag through the compiler. 15754wl=$lt_lt_prog_compiler_wl_F77 15755 15756# Object file suffix (normally "o"). 15757objext="$ac_objext" 15758 15759# Old archive suffix (normally "a"). 15760libext="$libext" 15761 15762# Shared library suffix (normally ".so"). 15763shrext_cmds='$shrext_cmds' 15764 15765# Executable file suffix (normally ""). 15766exeext="$exeext" 15767 15768# Additional compiler flags for building library objects. 15769pic_flag=$lt_lt_prog_compiler_pic_F77 15770pic_mode=$pic_mode 15771 15772# What is the maximum length of a command? 15773max_cmd_len=$lt_cv_sys_max_cmd_len 15774 15775# Does compiler simultaneously support -c and -o options? 15776compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15777 15778# Must we lock files when doing compilation? 15779need_locks=$lt_need_locks 15780 15781# Do we need the lib prefix for modules? 15782need_lib_prefix=$need_lib_prefix 15783 15784# Do we need a version for libraries? 15785need_version=$need_version 15786 15787# Whether dlopen is supported. 15788dlopen_support=$enable_dlopen 15789 15790# Whether dlopen of programs is supported. 15791dlopen_self=$enable_dlopen_self 15792 15793# Whether dlopen of statically linked programs is supported. 15794dlopen_self_static=$enable_dlopen_self_static 15795 15796# Compiler flag to prevent dynamic linking. 15797link_static_flag=$lt_lt_prog_compiler_static_F77 15798 15799# Compiler flag to turn off builtin functions. 15800no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15801 15802# Compiler flag to allow reflexive dlopens. 15803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15804 15805# Compiler flag to generate shared objects directly from archives. 15806whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15807 15808# Compiler flag to generate thread-safe objects. 15809thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15810 15811# Library versioning type. 15812version_type=$version_type 15813 15814# Format of library name prefix. 15815libname_spec=$lt_libname_spec 15816 15817# List of archive names. First name is the real one, the rest are links. 15818# The last name is the one that the linker finds with -lNAME. 15819library_names_spec=$lt_library_names_spec 15820 15821# The coded name of the library, if different from the real name. 15822soname_spec=$lt_soname_spec 15823 15824# Commands used to build and install an old-style archive. 15825RANLIB=$lt_RANLIB 15826old_archive_cmds=$lt_old_archive_cmds_F77 15827old_postinstall_cmds=$lt_old_postinstall_cmds 15828old_postuninstall_cmds=$lt_old_postuninstall_cmds 15829 15830# Create an old-style archive from a shared archive. 15831old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15832 15833# Create a temporary old-style archive to link instead of a shared archive. 15834old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15835 15836# Commands used to build and install a shared archive. 15837archive_cmds=$lt_archive_cmds_F77 15838archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15839postinstall_cmds=$lt_postinstall_cmds 15840postuninstall_cmds=$lt_postuninstall_cmds 15841 15842# Commands used to build a loadable module (assumed same as above if empty) 15843module_cmds=$lt_module_cmds_F77 15844module_expsym_cmds=$lt_module_expsym_cmds_F77 15845 15846# Commands to strip libraries. 15847old_striplib=$lt_old_striplib 15848striplib=$lt_striplib 15849 15850# Dependencies to place before the objects being linked to create a 15851# shared library. 15852predep_objects=$lt_predep_objects_F77 15853 15854# Dependencies to place after the objects being linked to create a 15855# shared library. 15856postdep_objects=$lt_postdep_objects_F77 15857 15858# Dependencies to place before the objects being linked to create a 15859# shared library. 15860predeps=$lt_predeps_F77 15861 15862# Dependencies to place after the objects being linked to create a 15863# shared library. 15864postdeps=$lt_postdeps_F77 15865 15866# The directories searched by this compiler when creating a shared 15867# library 15868compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 15869 15870# The library search path used internally by the compiler when linking 15871# a shared library. 15872compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15873 15874# Method to check whether dependent libraries are shared objects. 15875deplibs_check_method=$lt_deplibs_check_method 15876 15877# Command to use when deplibs_check_method == file_magic. 15878file_magic_cmd=$lt_file_magic_cmd 15879 15880# Flag that allows shared libraries with undefined symbols to be built. 15881allow_undefined_flag=$lt_allow_undefined_flag_F77 15882 15883# Flag that forces no undefined symbols. 15884no_undefined_flag=$lt_no_undefined_flag_F77 15885 15886# Commands used to finish a libtool library installation in a directory. 15887finish_cmds=$lt_finish_cmds 15888 15889# Same as above, but a single script fragment to be evaled but not shown. 15890finish_eval=$lt_finish_eval 15891 15892# Take the output of nm and produce a listing of raw symbols and C names. 15893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15894 15895# Transform the output of nm in a proper C declaration 15896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15897 15898# Transform the output of nm in a C name address pair 15899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15900 15901# This is the shared library runtime path variable. 15902runpath_var=$runpath_var 15903 15904# This is the shared library path variable. 15905shlibpath_var=$shlibpath_var 15906 15907# Is shlibpath searched before the hard-coded library search path? 15908shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15909 15910# How to hardcode a shared library path into an executable. 15911hardcode_action=$hardcode_action_F77 15912 15913# Whether we should hardcode library paths into libraries. 15914hardcode_into_libs=$hardcode_into_libs 15915 15916# Flag to hardcode \$libdir into a binary during linking. 15917# This must work even if \$libdir does not exist. 15918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15919 15920# If ld is used when linking, flag to hardcode \$libdir into 15921# a binary during linking. This must work even if \$libdir does 15922# not exist. 15923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15924 15925# Whether we need a single -rpath flag with a separated argument. 15926hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15927 15928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15929# resulting binary. 15930hardcode_direct=$hardcode_direct_F77 15931 15932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15933# resulting binary. 15934hardcode_minus_L=$hardcode_minus_L_F77 15935 15936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15937# the resulting binary. 15938hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15939 15940# Set to yes if building a shared library automatically hardcodes DIR into the library 15941# and all subsequent libraries and executables linked against it. 15942hardcode_automatic=$hardcode_automatic_F77 15943 15944# Variables whose values should be saved in libtool wrapper scripts and 15945# restored at relink time. 15946variables_saved_for_relink="$variables_saved_for_relink" 15947 15948# Whether libtool must link a program against all its dependency libraries. 15949link_all_deplibs=$link_all_deplibs_F77 15950 15951# Compile-time system search path for libraries 15952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15953 15954# Run-time system search path for libraries 15955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15956 15957# Fix the shell variable \$srcfile for the compiler. 15958fix_srcfile_path=$lt_fix_srcfile_path 15959 15960# Set to yes if exported symbols are required. 15961always_export_symbols=$always_export_symbols_F77 15962 15963# The commands to list exported symbols. 15964export_symbols_cmds=$lt_export_symbols_cmds_F77 15965 15966# The commands to extract the exported symbol list from a shared archive. 15967extract_expsyms_cmds=$lt_extract_expsyms_cmds 15968 15969# Symbols that should not be listed in the preloaded symbols. 15970exclude_expsyms=$lt_exclude_expsyms_F77 15971 15972# Symbols that must always be exported. 15973include_expsyms=$lt_include_expsyms_F77 15974 15975# ### END LIBTOOL TAG CONFIG: $tagname 15976 15977__EOF__ 15978 15979 15980else 15981 # If there is no Makefile yet, we rely on a make rule to execute 15982 # `config.status --recheck' to rerun these tests and create the 15983 # libtool script then. 15984 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15985 if test -f "$ltmain_in"; then 15986 test -f Makefile && make "$ltmain" 15987 fi 15988fi 15989 15990 15991ac_ext=c 15992ac_cpp='$CPP $CPPFLAGS' 15993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15995ac_compiler_gnu=$ac_cv_c_compiler_gnu 15996 15997CC="$lt_save_CC" 15998 15999 else 16000 tagname="" 16001 fi 16002 ;; 16003 16004 GCJ) 16005 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16006 16007 16008# Source file extension for Java test sources. 16009ac_ext=java 16010 16011# Object file extension for compiled Java test sources. 16012objext=o 16013objext_GCJ=$objext 16014 16015# Code to be used in simple compile tests 16016lt_simple_compile_test_code="class foo {}" 16017 16018# Code to be used in simple link tests 16019lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16020 16021# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16022 16023# If no C compiler was specified, use CC. 16024LTCC=${LTCC-"$CC"} 16025 16026# If no C compiler flags were specified, use CFLAGS. 16027LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16028 16029# Allow CC to be a program name with arguments. 16030compiler=$CC 16031 16032 16033# save warnings/boilerplate of simple test code 16034ac_outfile=conftest.$ac_objext 16035echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16037_lt_compiler_boilerplate=`cat conftest.err` 16038$rm conftest* 16039 16040ac_outfile=conftest.$ac_objext 16041echo "$lt_simple_link_test_code" >conftest.$ac_ext 16042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16043_lt_linker_boilerplate=`cat conftest.err` 16044$rm -r conftest* 16045 16046 16047# Allow CC to be a program name with arguments. 16048lt_save_CC="$CC" 16049CC=${GCJ-"gcj"} 16050compiler=$CC 16051compiler_GCJ=$CC 16052for cc_temp in $compiler""; do 16053 case $cc_temp in 16054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16056 \-*) ;; 16057 *) break;; 16058 esac 16059done 16060cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16061 16062 16063# GCJ did not exist at the time GCC didn't implicitly link libc in. 16064archive_cmds_need_lc_GCJ=no 16065 16066old_archive_cmds_GCJ=$old_archive_cmds 16067 16068## CAVEAT EMPTOR: 16069## There is no encapsulation within the following macros, do not change 16070## the running order or otherwise move them around unless you know exactly 16071## what you are doing... 16072 16073lt_prog_compiler_no_builtin_flag_GCJ= 16074 16075if test "$GCC" = yes; then 16076 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16077 16078 16079{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16080echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16081if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16082 echo $ECHO_N "(cached) $ECHO_C" >&6 16083else 16084 lt_cv_prog_compiler_rtti_exceptions=no 16085 ac_outfile=conftest.$ac_objext 16086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16087 lt_compiler_flag="-fno-rtti -fno-exceptions" 16088 # Insert the option either (1) after the last *FLAGS variable, or 16089 # (2) before a word containing "conftest.", or (3) at the end. 16090 # Note that $ac_compile itself does not contain backslashes and begins 16091 # with a dollar sign (not a hyphen), so the echo should work correctly. 16092 # The option is referenced via a variable to avoid confusing sed. 16093 lt_compile=`echo "$ac_compile" | $SED \ 16094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16096 -e 's:$: $lt_compiler_flag:'` 16097 (eval echo "\"\$as_me:16097: $lt_compile\"" >&5) 16098 (eval "$lt_compile" 2>conftest.err) 16099 ac_status=$? 16100 cat conftest.err >&5 16101 echo "$as_me:16101: \$? = $ac_status" >&5 16102 if (exit $ac_status) && test -s "$ac_outfile"; then 16103 # The compiler can only warn and ignore the option if not recognized 16104 # So say no if there are warnings other than the usual output. 16105 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16108 lt_cv_prog_compiler_rtti_exceptions=yes 16109 fi 16110 fi 16111 $rm conftest* 16112 16113fi 16114{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16115echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16116 16117if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16118 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16119else 16120 : 16121fi 16122 16123fi 16124 16125lt_prog_compiler_wl_GCJ= 16126lt_prog_compiler_pic_GCJ= 16127lt_prog_compiler_static_GCJ= 16128 16129{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16130echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16131 16132 if test "$GCC" = yes; then 16133 lt_prog_compiler_wl_GCJ='-Wl,' 16134 lt_prog_compiler_static_GCJ='-static' 16135 16136 case $host_os in 16137 aix*) 16138 # All AIX code is PIC. 16139 if test "$host_cpu" = ia64; then 16140 # AIX 5 now supports IA64 processor 16141 lt_prog_compiler_static_GCJ='-Bstatic' 16142 fi 16143 ;; 16144 16145 amigaos*) 16146 # FIXME: we need at least 68020 code to build shared libraries, but 16147 # adding the `-m68020' flag to GCC prevents building anything better, 16148 # like `-m68040'. 16149 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16150 ;; 16151 16152 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16153 # PIC is the default for these OSes. 16154 ;; 16155 16156 mingw* | cygwin* | pw32* | os2*) 16157 # This hack is so that the source file can tell whether it is being 16158 # built for inclusion in a dll (and should export symbols for example). 16159 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16160 # (--disable-auto-import) libraries 16161 16162 ;; 16163 16164 darwin* | rhapsody*) 16165 # PIC is the default on this platform 16166 # Common symbols not allowed in MH_DYLIB files 16167 lt_prog_compiler_pic_GCJ='-fno-common' 16168 ;; 16169 16170 interix[3-9]*) 16171 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16172 # Instead, we relocate shared libraries at runtime. 16173 ;; 16174 16175 msdosdjgpp*) 16176 # Just because we use GCC doesn't mean we suddenly get shared libraries 16177 # on systems that don't support them. 16178 lt_prog_compiler_can_build_shared_GCJ=no 16179 enable_shared=no 16180 ;; 16181 16182 sysv4*MP*) 16183 if test -d /usr/nec; then 16184 lt_prog_compiler_pic_GCJ=-Kconform_pic 16185 fi 16186 ;; 16187 16188 hpux*) 16189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16190 # not for PA HP-UX. 16191 case $host_cpu in 16192 hppa*64*|ia64*) 16193 # +Z the default 16194 ;; 16195 *) 16196 lt_prog_compiler_pic_GCJ='-fPIC' 16197 ;; 16198 esac 16199 ;; 16200 16201 *) 16202 lt_prog_compiler_pic_GCJ='-fPIC' 16203 ;; 16204 esac 16205 else 16206 # PORTME Check for flag to pass linker flags through the system compiler. 16207 case $host_os in 16208 aix*) 16209 lt_prog_compiler_wl_GCJ='-Wl,' 16210 if test "$host_cpu" = ia64; then 16211 # AIX 5 now supports IA64 processor 16212 lt_prog_compiler_static_GCJ='-Bstatic' 16213 else 16214 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16215 fi 16216 ;; 16217 darwin*) 16218 # PIC is the default on this platform 16219 # Common symbols not allowed in MH_DYLIB files 16220 case $cc_basename in 16221 xlc*) 16222 lt_prog_compiler_pic_GCJ='-qnocommon' 16223 lt_prog_compiler_wl_GCJ='-Wl,' 16224 ;; 16225 esac 16226 ;; 16227 16228 mingw* | cygwin* | pw32* | os2*) 16229 # This hack is so that the source file can tell whether it is being 16230 # built for inclusion in a dll (and should export symbols for example). 16231 16232 ;; 16233 16234 hpux9* | hpux10* | hpux11*) 16235 lt_prog_compiler_wl_GCJ='-Wl,' 16236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16237 # not for PA HP-UX. 16238 case $host_cpu in 16239 hppa*64*|ia64*) 16240 # +Z the default 16241 ;; 16242 *) 16243 lt_prog_compiler_pic_GCJ='+Z' 16244 ;; 16245 esac 16246 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16247 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16248 ;; 16249 16250 irix5* | irix6* | nonstopux*) 16251 lt_prog_compiler_wl_GCJ='-Wl,' 16252 # PIC (with -KPIC) is the default. 16253 lt_prog_compiler_static_GCJ='-non_shared' 16254 ;; 16255 16256 newsos6) 16257 lt_prog_compiler_pic_GCJ='-KPIC' 16258 lt_prog_compiler_static_GCJ='-Bstatic' 16259 ;; 16260 16261 linux* | k*bsd*-gnu) 16262 case $cc_basename in 16263 icc* | ecc*) 16264 lt_prog_compiler_wl_GCJ='-Wl,' 16265 lt_prog_compiler_pic_GCJ='-KPIC' 16266 lt_prog_compiler_static_GCJ='-static' 16267 ;; 16268 pgcc* | pgf77* | pgf90* | pgf95*) 16269 # Portland Group compilers (*not* the Pentium gcc compiler, 16270 # which looks to be a dead project) 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 lt_prog_compiler_pic_GCJ='-fpic' 16273 lt_prog_compiler_static_GCJ='-Bstatic' 16274 ;; 16275 ccc*) 16276 lt_prog_compiler_wl_GCJ='-Wl,' 16277 # All Alpha code is PIC. 16278 lt_prog_compiler_static_GCJ='-non_shared' 16279 ;; 16280 *) 16281 case `$CC -V 2>&1 | sed 5q` in 16282 *Sun\ C*) 16283 # Sun C 5.9 16284 lt_prog_compiler_pic_GCJ='-KPIC' 16285 lt_prog_compiler_static_GCJ='-Bstatic' 16286 lt_prog_compiler_wl_GCJ='-Wl,' 16287 ;; 16288 *Sun\ F*) 16289 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16290 lt_prog_compiler_pic_GCJ='-KPIC' 16291 lt_prog_compiler_static_GCJ='-Bstatic' 16292 lt_prog_compiler_wl_GCJ='' 16293 ;; 16294 esac 16295 ;; 16296 esac 16297 ;; 16298 16299 osf3* | osf4* | osf5*) 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 # All OSF/1 code is PIC. 16302 lt_prog_compiler_static_GCJ='-non_shared' 16303 ;; 16304 16305 rdos*) 16306 lt_prog_compiler_static_GCJ='-non_shared' 16307 ;; 16308 16309 solaris*) 16310 lt_prog_compiler_pic_GCJ='-KPIC' 16311 lt_prog_compiler_static_GCJ='-Bstatic' 16312 case $cc_basename in 16313 f77* | f90* | f95*) 16314 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16315 *) 16316 lt_prog_compiler_wl_GCJ='-Wl,';; 16317 esac 16318 ;; 16319 16320 sunos4*) 16321 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16322 lt_prog_compiler_pic_GCJ='-PIC' 16323 lt_prog_compiler_static_GCJ='-Bstatic' 16324 ;; 16325 16326 sysv4 | sysv4.2uw2* | sysv4.3*) 16327 lt_prog_compiler_wl_GCJ='-Wl,' 16328 lt_prog_compiler_pic_GCJ='-KPIC' 16329 lt_prog_compiler_static_GCJ='-Bstatic' 16330 ;; 16331 16332 sysv4*MP*) 16333 if test -d /usr/nec ;then 16334 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16335 lt_prog_compiler_static_GCJ='-Bstatic' 16336 fi 16337 ;; 16338 16339 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16340 lt_prog_compiler_wl_GCJ='-Wl,' 16341 lt_prog_compiler_pic_GCJ='-KPIC' 16342 lt_prog_compiler_static_GCJ='-Bstatic' 16343 ;; 16344 16345 unicos*) 16346 lt_prog_compiler_wl_GCJ='-Wl,' 16347 lt_prog_compiler_can_build_shared_GCJ=no 16348 ;; 16349 16350 uts4*) 16351 lt_prog_compiler_pic_GCJ='-pic' 16352 lt_prog_compiler_static_GCJ='-Bstatic' 16353 ;; 16354 16355 *) 16356 lt_prog_compiler_can_build_shared_GCJ=no 16357 ;; 16358 esac 16359 fi 16360 16361{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16362echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16363 16364# 16365# Check to make sure the PIC flag actually works. 16366# 16367if test -n "$lt_prog_compiler_pic_GCJ"; then 16368 16369{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16370echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16371if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 16372 echo $ECHO_N "(cached) $ECHO_C" >&6 16373else 16374 lt_cv_prog_compiler_pic_works_GCJ=no 16375 ac_outfile=conftest.$ac_objext 16376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16377 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16378 # Insert the option either (1) after the last *FLAGS variable, or 16379 # (2) before a word containing "conftest.", or (3) at the end. 16380 # Note that $ac_compile itself does not contain backslashes and begins 16381 # with a dollar sign (not a hyphen), so the echo should work correctly. 16382 # The option is referenced via a variable to avoid confusing sed. 16383 lt_compile=`echo "$ac_compile" | $SED \ 16384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16386 -e 's:$: $lt_compiler_flag:'` 16387 (eval echo "\"\$as_me:16387: $lt_compile\"" >&5) 16388 (eval "$lt_compile" 2>conftest.err) 16389 ac_status=$? 16390 cat conftest.err >&5 16391 echo "$as_me:16391: \$? = $ac_status" >&5 16392 if (exit $ac_status) && test -s "$ac_outfile"; then 16393 # The compiler can only warn and ignore the option if not recognized 16394 # So say no if there are warnings other than the usual output. 16395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16398 lt_cv_prog_compiler_pic_works_GCJ=yes 16399 fi 16400 fi 16401 $rm conftest* 16402 16403fi 16404{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 16405echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 16406 16407if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 16408 case $lt_prog_compiler_pic_GCJ in 16409 "" | " "*) ;; 16410 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16411 esac 16412else 16413 lt_prog_compiler_pic_GCJ= 16414 lt_prog_compiler_can_build_shared_GCJ=no 16415fi 16416 16417fi 16418case $host_os in 16419 # For platforms which do not support PIC, -DPIC is meaningless: 16420 *djgpp*) 16421 lt_prog_compiler_pic_GCJ= 16422 ;; 16423 *) 16424 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16425 ;; 16426esac 16427 16428# 16429# Check to make sure the static flag actually works. 16430# 16431wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16432{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16433echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16434if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 16435 echo $ECHO_N "(cached) $ECHO_C" >&6 16436else 16437 lt_cv_prog_compiler_static_works_GCJ=no 16438 save_LDFLAGS="$LDFLAGS" 16439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16440 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16442 # The linker can only warn and ignore the option if not recognized 16443 # So say no if there are warnings 16444 if test -s conftest.err; then 16445 # Append any errors to the config.log. 16446 cat conftest.err 1>&5 16447 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16449 if diff conftest.exp conftest.er2 >/dev/null; then 16450 lt_cv_prog_compiler_static_works_GCJ=yes 16451 fi 16452 else 16453 lt_cv_prog_compiler_static_works_GCJ=yes 16454 fi 16455 fi 16456 $rm -r conftest* 16457 LDFLAGS="$save_LDFLAGS" 16458 16459fi 16460{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 16461echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 16462 16463if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 16464 : 16465else 16466 lt_prog_compiler_static_GCJ= 16467fi 16468 16469 16470{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16471echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16472if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16473 echo $ECHO_N "(cached) $ECHO_C" >&6 16474else 16475 lt_cv_prog_compiler_c_o_GCJ=no 16476 $rm -r conftest 2>/dev/null 16477 mkdir conftest 16478 cd conftest 16479 mkdir out 16480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16481 16482 lt_compiler_flag="-o out/conftest2.$ac_objext" 16483 # Insert the option either (1) after the last *FLAGS variable, or 16484 # (2) before a word containing "conftest.", or (3) at the end. 16485 # Note that $ac_compile itself does not contain backslashes and begins 16486 # with a dollar sign (not a hyphen), so the echo should work correctly. 16487 lt_compile=`echo "$ac_compile" | $SED \ 16488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16490 -e 's:$: $lt_compiler_flag:'` 16491 (eval echo "\"\$as_me:16491: $lt_compile\"" >&5) 16492 (eval "$lt_compile" 2>out/conftest.err) 16493 ac_status=$? 16494 cat out/conftest.err >&5 16495 echo "$as_me:16495: \$? = $ac_status" >&5 16496 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16497 then 16498 # The compiler can only warn and ignore the option if not recognized 16499 # So say no if there are warnings 16500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16503 lt_cv_prog_compiler_c_o_GCJ=yes 16504 fi 16505 fi 16506 chmod u+w . 2>&5 16507 $rm conftest* 16508 # SGI C++ compiler will create directory out/ii_files/ for 16509 # template instantiation 16510 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16511 $rm out/* && rmdir out 16512 cd .. 16513 rmdir conftest 16514 $rm conftest* 16515 16516fi 16517{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16518echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16519 16520 16521hard_links="nottested" 16522if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16523 # do not overwrite the value of need_locks provided by the user 16524 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16525echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16526 hard_links=yes 16527 $rm conftest* 16528 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16529 touch conftest.a 16530 ln conftest.a conftest.b 2>&5 || hard_links=no 16531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16532 { echo "$as_me:$LINENO: result: $hard_links" >&5 16533echo "${ECHO_T}$hard_links" >&6; } 16534 if test "$hard_links" = no; then 16535 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16536echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16537 need_locks=warn 16538 fi 16539else 16540 need_locks=no 16541fi 16542 16543{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16544echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16545 16546 runpath_var= 16547 allow_undefined_flag_GCJ= 16548 enable_shared_with_static_runtimes_GCJ=no 16549 archive_cmds_GCJ= 16550 archive_expsym_cmds_GCJ= 16551 old_archive_From_new_cmds_GCJ= 16552 old_archive_from_expsyms_cmds_GCJ= 16553 export_dynamic_flag_spec_GCJ= 16554 whole_archive_flag_spec_GCJ= 16555 thread_safe_flag_spec_GCJ= 16556 hardcode_libdir_flag_spec_GCJ= 16557 hardcode_libdir_flag_spec_ld_GCJ= 16558 hardcode_libdir_separator_GCJ= 16559 hardcode_direct_GCJ=no 16560 hardcode_minus_L_GCJ=no 16561 hardcode_shlibpath_var_GCJ=unsupported 16562 link_all_deplibs_GCJ=unknown 16563 hardcode_automatic_GCJ=no 16564 module_cmds_GCJ= 16565 module_expsym_cmds_GCJ= 16566 always_export_symbols_GCJ=no 16567 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16568 # include_expsyms should be a list of space-separated symbols to be *always* 16569 # included in the symbol list 16570 include_expsyms_GCJ= 16571 # exclude_expsyms can be an extended regexp of symbols to exclude 16572 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16574 # as well as any symbol that contains `d'. 16575 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16577 # platforms (ab)use it in PIC code, but their linkers get confused if 16578 # the symbol is explicitly referenced. Since portable code cannot 16579 # rely on this symbol name, it's probably fine to never include it in 16580 # preloaded symbol tables. 16581 # Exclude shared library initialization/finalization symbols. 16582 extract_expsyms_cmds= 16583 # Just being paranoid about ensuring that cc_basename is set. 16584 for cc_temp in $compiler""; do 16585 case $cc_temp in 16586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16588 \-*) ;; 16589 *) break;; 16590 esac 16591done 16592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16593 16594 case $host_os in 16595 cygwin* | mingw* | pw32*) 16596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16597 # When not using gcc, we currently assume that we are using 16598 # Microsoft Visual C++. 16599 if test "$GCC" != yes; then 16600 with_gnu_ld=no 16601 fi 16602 ;; 16603 interix*) 16604 # we just hope/assume this is gcc and not c89 (= MSVC++) 16605 with_gnu_ld=yes 16606 ;; 16607 openbsd*) 16608 with_gnu_ld=no 16609 ;; 16610 esac 16611 16612 ld_shlibs_GCJ=yes 16613 if test "$with_gnu_ld" = yes; then 16614 # If archive_cmds runs LD, not CC, wlarc should be empty 16615 wlarc='${wl}' 16616 16617 # Set some defaults for GNU ld with shared library support. These 16618 # are reset later if shared libraries are not supported. Putting them 16619 # here allows them to be overridden if necessary. 16620 runpath_var=LD_RUN_PATH 16621 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16622 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16623 # ancient GNU ld didn't support --whole-archive et. al. 16624 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16625 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16626 else 16627 whole_archive_flag_spec_GCJ= 16628 fi 16629 supports_anon_versioning=no 16630 case `$LD -v 2>/dev/null` in 16631 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16634 *\ 2.11.*) ;; # other 2.11 versions 16635 *) supports_anon_versioning=yes ;; 16636 esac 16637 16638 # See if GNU ld supports shared libraries. 16639 case $host_os in 16640 aix[3-9]*) 16641 # On AIX/PPC, the GNU linker is very broken 16642 if test "$host_cpu" != ia64; then 16643 ld_shlibs_GCJ=no 16644 cat <<EOF 1>&2 16645 16646*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16647*** to be unable to reliably create shared libraries on AIX. 16648*** Therefore, libtool is disabling shared libraries support. If you 16649*** really care for shared libraries, you may want to modify your PATH 16650*** so that a non-GNU linker is found, and then restart. 16651 16652EOF 16653 fi 16654 ;; 16655 16656 amigaos*) 16657 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)' 16658 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16659 hardcode_minus_L_GCJ=yes 16660 16661 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16662 # that the semantics of dynamic libraries on AmigaOS, at least up 16663 # to version 4, is to share data among multiple programs linked 16664 # with the same dynamic library. Since this doesn't match the 16665 # behavior of shared libraries on other platforms, we can't use 16666 # them. 16667 ld_shlibs_GCJ=no 16668 ;; 16669 16670 beos*) 16671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16672 allow_undefined_flag_GCJ=unsupported 16673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16674 # support --undefined. This deserves some investigation. FIXME 16675 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16676 else 16677 ld_shlibs_GCJ=no 16678 fi 16679 ;; 16680 16681 cygwin* | mingw* | pw32*) 16682 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16683 # as there is no search path for DLLs. 16684 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16685 allow_undefined_flag_GCJ=unsupported 16686 always_export_symbols_GCJ=no 16687 enable_shared_with_static_runtimes_GCJ=yes 16688 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16689 16690 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16692 # If the export-symbols file already is a .def file (1st line 16693 # is EXPORTS), use it as is; otherwise, prepend... 16694 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16695 cp $export_symbols $output_objdir/$soname.def; 16696 else 16697 echo EXPORTS > $output_objdir/$soname.def; 16698 cat $export_symbols >> $output_objdir/$soname.def; 16699 fi~ 16700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16701 else 16702 ld_shlibs_GCJ=no 16703 fi 16704 ;; 16705 16706 interix[3-9]*) 16707 hardcode_direct_GCJ=no 16708 hardcode_shlibpath_var_GCJ=no 16709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16710 export_dynamic_flag_spec_GCJ='${wl}-E' 16711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16712 # Instead, shared libraries are loaded at an image base (0x10000000 by 16713 # default) and relocated if they conflict, which is a slow very memory 16714 # consuming and fragmenting process. To avoid this, we pick a random, 16715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16717 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' 16718 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' 16719 ;; 16720 16721 gnu* | linux* | k*bsd*-gnu) 16722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16723 tmp_addflag= 16724 case $cc_basename,$host_cpu in 16725 pgcc*) # Portland Group C compiler 16726 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' 16727 tmp_addflag=' $pic_flag' 16728 ;; 16729 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16730 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' 16731 tmp_addflag=' $pic_flag -Mnomain' ;; 16732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16733 tmp_addflag=' -i_dynamic' ;; 16734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16735 tmp_addflag=' -i_dynamic -nofor_main' ;; 16736 ifc* | ifort*) # Intel Fortran compiler 16737 tmp_addflag=' -nofor_main' ;; 16738 esac 16739 case `$CC -V 2>&1 | sed 5q` in 16740 *Sun\ C*) # Sun C 5.9 16741 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16742 tmp_sharedflag='-G' ;; 16743 *Sun\ F*) # Sun Fortran 8.3 16744 tmp_sharedflag='-G' ;; 16745 *) 16746 tmp_sharedflag='-shared' ;; 16747 esac 16748 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16749 16750 if test $supports_anon_versioning = yes; then 16751 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16753 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16755 fi 16756 else 16757 ld_shlibs_GCJ=no 16758 fi 16759 ;; 16760 16761 netbsd*) 16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16763 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16764 wlarc= 16765 else 16766 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16767 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16768 fi 16769 ;; 16770 16771 solaris*) 16772 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16773 ld_shlibs_GCJ=no 16774 cat <<EOF 1>&2 16775 16776*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16777*** create shared libraries on Solaris systems. Therefore, libtool 16778*** is disabling shared libraries support. We urge you to upgrade GNU 16779*** binutils to release 2.9.1 or newer. Another option is to modify 16780*** your PATH or compiler configuration so that the native linker is 16781*** used, and then restart. 16782 16783EOF 16784 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16787 else 16788 ld_shlibs_GCJ=no 16789 fi 16790 ;; 16791 16792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16793 case `$LD -v 2>&1` in 16794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16795 ld_shlibs_GCJ=no 16796 cat <<_LT_EOF 1>&2 16797 16798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16799*** reliably create shared libraries on SCO systems. Therefore, libtool 16800*** is disabling shared libraries support. We urge you to upgrade GNU 16801*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16802*** your PATH or compiler configuration so that the native linker is 16803*** used, and then restart. 16804 16805_LT_EOF 16806 ;; 16807 *) 16808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16809 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16812 else 16813 ld_shlibs_GCJ=no 16814 fi 16815 ;; 16816 esac 16817 ;; 16818 16819 sunos4*) 16820 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16821 wlarc= 16822 hardcode_direct_GCJ=yes 16823 hardcode_shlibpath_var_GCJ=no 16824 ;; 16825 16826 *) 16827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16829 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16830 else 16831 ld_shlibs_GCJ=no 16832 fi 16833 ;; 16834 esac 16835 16836 if test "$ld_shlibs_GCJ" = no; then 16837 runpath_var= 16838 hardcode_libdir_flag_spec_GCJ= 16839 export_dynamic_flag_spec_GCJ= 16840 whole_archive_flag_spec_GCJ= 16841 fi 16842 else 16843 # PORTME fill in a description of your system's linker (not GNU ld) 16844 case $host_os in 16845 aix3*) 16846 allow_undefined_flag_GCJ=unsupported 16847 always_export_symbols_GCJ=yes 16848 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' 16849 # Note: this linker hardcodes the directories in LIBPATH if there 16850 # are no directories specified by -L. 16851 hardcode_minus_L_GCJ=yes 16852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16853 # Neither direct hardcoding nor static linking is supported with a 16854 # broken collect2. 16855 hardcode_direct_GCJ=unsupported 16856 fi 16857 ;; 16858 16859 aix[4-9]*) 16860 if test "$host_cpu" = ia64; then 16861 # On IA64, the linker does run time linking by default, so we don't 16862 # have to do anything special. 16863 aix_use_runtimelinking=no 16864 exp_sym_flag='-Bexport' 16865 no_entry_flag="" 16866 else 16867 # If we're using GNU nm, then we don't want the "-C" option. 16868 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16870 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' 16871 else 16872 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' 16873 fi 16874 aix_use_runtimelinking=no 16875 16876 # Test if we are trying to use run time linking or normal 16877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16878 # need to do runtime linking. 16879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16880 for ld_flag in $LDFLAGS; do 16881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16882 aix_use_runtimelinking=yes 16883 break 16884 fi 16885 done 16886 ;; 16887 esac 16888 16889 exp_sym_flag='-bexport' 16890 no_entry_flag='-bnoentry' 16891 fi 16892 16893 # When large executables or shared objects are built, AIX ld can 16894 # have problems creating the table of contents. If linking a library 16895 # or program results in "error TOC overflow" add -mminimal-toc to 16896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16898 16899 archive_cmds_GCJ='' 16900 hardcode_direct_GCJ=yes 16901 hardcode_libdir_separator_GCJ=':' 16902 link_all_deplibs_GCJ=yes 16903 16904 if test "$GCC" = yes; then 16905 case $host_os in aix4.[012]|aix4.[012].*) 16906 # We only want to do this on AIX 4.2 and lower, the check 16907 # below for broken collect2 doesn't work under 4.3+ 16908 collect2name=`${CC} -print-prog-name=collect2` 16909 if test -f "$collect2name" && \ 16910 strings "$collect2name" | grep resolve_lib_name >/dev/null 16911 then 16912 # We have reworked collect2 16913 : 16914 else 16915 # We have old collect2 16916 hardcode_direct_GCJ=unsupported 16917 # It fails to find uninstalled libraries when the uninstalled 16918 # path is not listed in the libpath. Setting hardcode_minus_L 16919 # to unsupported forces relinking 16920 hardcode_minus_L_GCJ=yes 16921 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16922 hardcode_libdir_separator_GCJ= 16923 fi 16924 ;; 16925 esac 16926 shared_flag='-shared' 16927 if test "$aix_use_runtimelinking" = yes; then 16928 shared_flag="$shared_flag "'${wl}-G' 16929 fi 16930 else 16931 # not using gcc 16932 if test "$host_cpu" = ia64; then 16933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16934 # chokes on -Wl,-G. The following line is correct: 16935 shared_flag='-G' 16936 else 16937 if test "$aix_use_runtimelinking" = yes; then 16938 shared_flag='${wl}-G' 16939 else 16940 shared_flag='${wl}-bM:SRE' 16941 fi 16942 fi 16943 fi 16944 16945 # It seems that -bexpall does not export symbols beginning with 16946 # underscore (_), so it is better to generate a list of symbols to export. 16947 always_export_symbols_GCJ=yes 16948 if test "$aix_use_runtimelinking" = yes; then 16949 # Warning - without using the other runtime loading flags (-brtl), 16950 # -berok will link without error, but may produce a broken library. 16951 allow_undefined_flag_GCJ='-berok' 16952 # Determine the default libpath from the value encoded in an empty executable. 16953 cat >conftest.$ac_ext <<_ACEOF 16954/* confdefs.h. */ 16955_ACEOF 16956cat confdefs.h >>conftest.$ac_ext 16957cat >>conftest.$ac_ext <<_ACEOF 16958/* end confdefs.h. */ 16959 16960int 16961main () 16962{ 16963 16964 ; 16965 return 0; 16966} 16967_ACEOF 16968rm -f conftest.$ac_objext conftest$ac_exeext 16969if { (ac_try="$ac_link" 16970case "(($ac_try" in 16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16972 *) ac_try_echo=$ac_try;; 16973esac 16974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16975 (eval "$ac_link") 2>conftest.er1 16976 ac_status=$? 16977 grep -v '^ *+' conftest.er1 >conftest.err 16978 rm -f conftest.er1 16979 cat conftest.err >&5 16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16981 (exit $ac_status); } && { 16982 test -z "$ac_c_werror_flag" || 16983 test ! -s conftest.err 16984 } && test -s conftest$ac_exeext && 16985 $as_test_x conftest$ac_exeext; then 16986 16987lt_aix_libpath_sed=' 16988 /Import File Strings/,/^$/ { 16989 /^0/ { 16990 s/^0 *\(.*\)$/\1/ 16991 p 16992 } 16993 }' 16994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16995# Check for a 64-bit object if we didn't find anything. 16996if test -z "$aix_libpath"; then 16997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16998fi 16999else 17000 echo "$as_me: failed program was:" >&5 17001sed 's/^/| /' conftest.$ac_ext >&5 17002 17003 17004fi 17005 17006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17007 conftest$ac_exeext conftest.$ac_ext 17008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17009 17010 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17011 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" 17012 else 17013 if test "$host_cpu" = ia64; then 17014 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17015 allow_undefined_flag_GCJ="-z nodefs" 17016 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" 17017 else 17018 # Determine the default libpath from the value encoded in an empty executable. 17019 cat >conftest.$ac_ext <<_ACEOF 17020/* confdefs.h. */ 17021_ACEOF 17022cat confdefs.h >>conftest.$ac_ext 17023cat >>conftest.$ac_ext <<_ACEOF 17024/* end confdefs.h. */ 17025 17026int 17027main () 17028{ 17029 17030 ; 17031 return 0; 17032} 17033_ACEOF 17034rm -f conftest.$ac_objext conftest$ac_exeext 17035if { (ac_try="$ac_link" 17036case "(($ac_try" in 17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17038 *) ac_try_echo=$ac_try;; 17039esac 17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17041 (eval "$ac_link") 2>conftest.er1 17042 ac_status=$? 17043 grep -v '^ *+' conftest.er1 >conftest.err 17044 rm -f conftest.er1 17045 cat conftest.err >&5 17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17047 (exit $ac_status); } && { 17048 test -z "$ac_c_werror_flag" || 17049 test ! -s conftest.err 17050 } && test -s conftest$ac_exeext && 17051 $as_test_x conftest$ac_exeext; then 17052 17053lt_aix_libpath_sed=' 17054 /Import File Strings/,/^$/ { 17055 /^0/ { 17056 s/^0 *\(.*\)$/\1/ 17057 p 17058 } 17059 }' 17060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17061# Check for a 64-bit object if we didn't find anything. 17062if test -z "$aix_libpath"; then 17063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17064fi 17065else 17066 echo "$as_me: failed program was:" >&5 17067sed 's/^/| /' conftest.$ac_ext >&5 17068 17069 17070fi 17071 17072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17073 conftest$ac_exeext conftest.$ac_ext 17074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17075 17076 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17077 # Warning - without using the other run time loading flags, 17078 # -berok will link without error, but may produce a broken library. 17079 no_undefined_flag_GCJ=' ${wl}-bernotok' 17080 allow_undefined_flag_GCJ=' ${wl}-berok' 17081 # Exported symbols can be pulled into shared objects from archives 17082 whole_archive_flag_spec_GCJ='$convenience' 17083 archive_cmds_need_lc_GCJ=yes 17084 # This is similar to how AIX traditionally builds its shared libraries. 17085 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' 17086 fi 17087 fi 17088 ;; 17089 17090 amigaos*) 17091 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)' 17092 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17093 hardcode_minus_L_GCJ=yes 17094 # see comment about different semantics on the GNU ld section 17095 ld_shlibs_GCJ=no 17096 ;; 17097 17098 bsdi[45]*) 17099 export_dynamic_flag_spec_GCJ=-rdynamic 17100 ;; 17101 17102 cygwin* | mingw* | pw32*) 17103 # When not using gcc, we currently assume that we are using 17104 # Microsoft Visual C++. 17105 # hardcode_libdir_flag_spec is actually meaningless, as there is 17106 # no search path for DLLs. 17107 hardcode_libdir_flag_spec_GCJ=' ' 17108 allow_undefined_flag_GCJ=unsupported 17109 # Tell ltmain to make .lib files, not .a files. 17110 libext=lib 17111 # Tell ltmain to make .dll files, not .so files. 17112 shrext_cmds=".dll" 17113 # FIXME: Setting linknames here is a bad hack. 17114 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17115 # The linker will automatically build a .lib file if we build a DLL. 17116 old_archive_From_new_cmds_GCJ='true' 17117 # FIXME: Should let the user specify the lib program. 17118 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17119 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17120 enable_shared_with_static_runtimes_GCJ=yes 17121 ;; 17122 17123 darwin* | rhapsody*) 17124 case $host_os in 17125 rhapsody* | darwin1.[012]) 17126 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17127 ;; 17128 *) # Darwin 1.3 on 17129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17130 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17131 else 17132 case ${MACOSX_DEPLOYMENT_TARGET} in 17133 10.[012]) 17134 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17135 ;; 17136 10.*) 17137 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17138 ;; 17139 esac 17140 fi 17141 ;; 17142 esac 17143 archive_cmds_need_lc_GCJ=no 17144 hardcode_direct_GCJ=no 17145 hardcode_automatic_GCJ=yes 17146 hardcode_shlibpath_var_GCJ=unsupported 17147 whole_archive_flag_spec_GCJ='' 17148 link_all_deplibs_GCJ=yes 17149 if test "$GCC" = yes ; then 17150 output_verbose_link_cmd='echo' 17151 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17152 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17153 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17154 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17155 else 17156 case $cc_basename in 17157 xlc*) 17158 output_verbose_link_cmd='echo' 17159 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17160 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17162 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17163 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}' 17164 ;; 17165 *) 17166 ld_shlibs_GCJ=no 17167 ;; 17168 esac 17169 fi 17170 ;; 17171 17172 dgux*) 17173 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17174 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17175 hardcode_shlibpath_var_GCJ=no 17176 ;; 17177 17178 freebsd1*) 17179 ld_shlibs_GCJ=no 17180 ;; 17181 17182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17183 # support. Future versions do this automatically, but an explicit c++rt0.o 17184 # does not break anything, and helps significantly (at the cost of a little 17185 # extra space). 17186 freebsd2.2*) 17187 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17188 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17189 hardcode_direct_GCJ=yes 17190 hardcode_shlibpath_var_GCJ=no 17191 ;; 17192 17193 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17194 freebsd2*) 17195 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17196 hardcode_direct_GCJ=yes 17197 hardcode_minus_L_GCJ=yes 17198 hardcode_shlibpath_var_GCJ=no 17199 ;; 17200 17201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17202 freebsd* | dragonfly*) 17203 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17204 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17205 hardcode_direct_GCJ=yes 17206 hardcode_shlibpath_var_GCJ=no 17207 ;; 17208 17209 hpux9*) 17210 if test "$GCC" = yes; then 17211 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' 17212 else 17213 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' 17214 fi 17215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17216 hardcode_libdir_separator_GCJ=: 17217 hardcode_direct_GCJ=yes 17218 17219 # hardcode_minus_L: Not really in the search PATH, 17220 # but as the default location of the library. 17221 hardcode_minus_L_GCJ=yes 17222 export_dynamic_flag_spec_GCJ='${wl}-E' 17223 ;; 17224 17225 hpux10*) 17226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17227 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17228 else 17229 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17230 fi 17231 if test "$with_gnu_ld" = no; then 17232 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17233 hardcode_libdir_separator_GCJ=: 17234 17235 hardcode_direct_GCJ=yes 17236 export_dynamic_flag_spec_GCJ='${wl}-E' 17237 17238 # hardcode_minus_L: Not really in the search PATH, 17239 # but as the default location of the library. 17240 hardcode_minus_L_GCJ=yes 17241 fi 17242 ;; 17243 17244 hpux11*) 17245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17246 case $host_cpu in 17247 hppa*64*) 17248 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17249 ;; 17250 ia64*) 17251 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17252 ;; 17253 *) 17254 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17255 ;; 17256 esac 17257 else 17258 case $host_cpu in 17259 hppa*64*) 17260 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17261 ;; 17262 ia64*) 17263 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17264 ;; 17265 *) 17266 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17267 ;; 17268 esac 17269 fi 17270 if test "$with_gnu_ld" = no; then 17271 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17272 hardcode_libdir_separator_GCJ=: 17273 17274 case $host_cpu in 17275 hppa*64*|ia64*) 17276 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17277 hardcode_direct_GCJ=no 17278 hardcode_shlibpath_var_GCJ=no 17279 ;; 17280 *) 17281 hardcode_direct_GCJ=yes 17282 export_dynamic_flag_spec_GCJ='${wl}-E' 17283 17284 # hardcode_minus_L: Not really in the search PATH, 17285 # but as the default location of the library. 17286 hardcode_minus_L_GCJ=yes 17287 ;; 17288 esac 17289 fi 17290 ;; 17291 17292 irix5* | irix6* | nonstopux*) 17293 if test "$GCC" = yes; then 17294 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' 17295 else 17296 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' 17297 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17298 fi 17299 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17300 hardcode_libdir_separator_GCJ=: 17301 link_all_deplibs_GCJ=yes 17302 ;; 17303 17304 netbsd*) 17305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17306 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17307 else 17308 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17309 fi 17310 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17311 hardcode_direct_GCJ=yes 17312 hardcode_shlibpath_var_GCJ=no 17313 ;; 17314 17315 newsos6) 17316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17317 hardcode_direct_GCJ=yes 17318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17319 hardcode_libdir_separator_GCJ=: 17320 hardcode_shlibpath_var_GCJ=no 17321 ;; 17322 17323 openbsd*) 17324 if test -f /usr/libexec/ld.so; then 17325 hardcode_direct_GCJ=yes 17326 hardcode_shlibpath_var_GCJ=no 17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17328 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17329 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17331 export_dynamic_flag_spec_GCJ='${wl}-E' 17332 else 17333 case $host_os in 17334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17335 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17336 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17337 ;; 17338 *) 17339 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17341 ;; 17342 esac 17343 fi 17344 else 17345 ld_shlibs_GCJ=no 17346 fi 17347 ;; 17348 17349 os2*) 17350 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17351 hardcode_minus_L_GCJ=yes 17352 allow_undefined_flag_GCJ=unsupported 17353 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' 17354 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17355 ;; 17356 17357 osf3*) 17358 if test "$GCC" = yes; then 17359 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17360 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' 17361 else 17362 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17363 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' 17364 fi 17365 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17366 hardcode_libdir_separator_GCJ=: 17367 ;; 17368 17369 osf4* | osf5*) # as osf3* with the addition of -msym flag 17370 if test "$GCC" = yes; then 17371 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17372 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' 17373 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17374 else 17375 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17376 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' 17377 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~ 17378 $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' 17379 17380 # Both c and cxx compiler support -rpath directly 17381 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17382 fi 17383 hardcode_libdir_separator_GCJ=: 17384 ;; 17385 17386 solaris*) 17387 no_undefined_flag_GCJ=' -z text' 17388 if test "$GCC" = yes; then 17389 wlarc='${wl}' 17390 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17391 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17393 else 17394 wlarc='' 17395 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17396 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17398 fi 17399 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17400 hardcode_shlibpath_var_GCJ=no 17401 case $host_os in 17402 solaris2.[0-5] | solaris2.[0-5].*) ;; 17403 *) 17404 # The compiler driver will combine and reorder linker options, 17405 # but understands `-z linker_flag'. GCC discards it without `$wl', 17406 # but is careful enough not to reorder. 17407 # Supported since Solaris 2.6 (maybe 2.5.1?) 17408 if test "$GCC" = yes; then 17409 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17410 else 17411 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17412 fi 17413 ;; 17414 esac 17415 link_all_deplibs_GCJ=yes 17416 ;; 17417 17418 sunos4*) 17419 if test "x$host_vendor" = xsequent; then 17420 # Use $CC to link under sequent, because it throws in some extra .o 17421 # files that make .init and .fini sections work. 17422 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17423 else 17424 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17425 fi 17426 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17427 hardcode_direct_GCJ=yes 17428 hardcode_minus_L_GCJ=yes 17429 hardcode_shlibpath_var_GCJ=no 17430 ;; 17431 17432 sysv4) 17433 case $host_vendor in 17434 sni) 17435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17436 hardcode_direct_GCJ=yes # is this really true??? 17437 ;; 17438 siemens) 17439 ## LD is ld it makes a PLAMLIB 17440 ## CC just makes a GrossModule. 17441 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17442 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17443 hardcode_direct_GCJ=no 17444 ;; 17445 motorola) 17446 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17447 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17448 ;; 17449 esac 17450 runpath_var='LD_RUN_PATH' 17451 hardcode_shlibpath_var_GCJ=no 17452 ;; 17453 17454 sysv4.3*) 17455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17456 hardcode_shlibpath_var_GCJ=no 17457 export_dynamic_flag_spec_GCJ='-Bexport' 17458 ;; 17459 17460 sysv4*MP*) 17461 if test -d /usr/nec; then 17462 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17463 hardcode_shlibpath_var_GCJ=no 17464 runpath_var=LD_RUN_PATH 17465 hardcode_runpath_var=yes 17466 ld_shlibs_GCJ=yes 17467 fi 17468 ;; 17469 17470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17471 no_undefined_flag_GCJ='${wl}-z,text' 17472 archive_cmds_need_lc_GCJ=no 17473 hardcode_shlibpath_var_GCJ=no 17474 runpath_var='LD_RUN_PATH' 17475 17476 if test "$GCC" = yes; then 17477 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17478 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17479 else 17480 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17481 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17482 fi 17483 ;; 17484 17485 sysv5* | sco3.2v5* | sco5v6*) 17486 # Note: We can NOT use -z defs as we might desire, because we do not 17487 # link with -lc, and that would cause any symbols used from libc to 17488 # always be unresolved, which means just about no library would 17489 # ever link correctly. If we're not using GNU ld we use -z text 17490 # though, which does catch some bad symbols but isn't as heavy-handed 17491 # as -z defs. 17492 no_undefined_flag_GCJ='${wl}-z,text' 17493 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17494 archive_cmds_need_lc_GCJ=no 17495 hardcode_shlibpath_var_GCJ=no 17496 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17497 hardcode_libdir_separator_GCJ=':' 17498 link_all_deplibs_GCJ=yes 17499 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17500 runpath_var='LD_RUN_PATH' 17501 17502 if test "$GCC" = yes; then 17503 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17504 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17505 else 17506 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17507 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17508 fi 17509 ;; 17510 17511 uts4*) 17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17513 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17514 hardcode_shlibpath_var_GCJ=no 17515 ;; 17516 17517 *) 17518 ld_shlibs_GCJ=no 17519 ;; 17520 esac 17521 fi 17522 17523{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17524echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17525test "$ld_shlibs_GCJ" = no && can_build_shared=no 17526 17527# 17528# Do we need to explicitly link libc? 17529# 17530case "x$archive_cmds_need_lc_GCJ" in 17531x|xyes) 17532 # Assume -lc should be added 17533 archive_cmds_need_lc_GCJ=yes 17534 17535 if test "$enable_shared" = yes && test "$GCC" = yes; then 17536 case $archive_cmds_GCJ in 17537 *'~'*) 17538 # FIXME: we may have to deal with multi-command sequences. 17539 ;; 17540 '$CC '*) 17541 # Test whether the compiler implicitly links with -lc since on some 17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17543 # to ld, don't add -lc before -lgcc. 17544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17546 $rm conftest* 17547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17548 17549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17550 (eval $ac_compile) 2>&5 17551 ac_status=$? 17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17553 (exit $ac_status); } 2>conftest.err; then 17554 soname=conftest 17555 lib=conftest 17556 libobjs=conftest.$ac_objext 17557 deplibs= 17558 wl=$lt_prog_compiler_wl_GCJ 17559 pic_flag=$lt_prog_compiler_pic_GCJ 17560 compiler_flags=-v 17561 linker_flags=-v 17562 verstring= 17563 output_objdir=. 17564 libname=conftest 17565 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17566 allow_undefined_flag_GCJ= 17567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17568 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17569 ac_status=$? 17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17571 (exit $ac_status); } 17572 then 17573 archive_cmds_need_lc_GCJ=no 17574 else 17575 archive_cmds_need_lc_GCJ=yes 17576 fi 17577 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17578 else 17579 cat conftest.err 1>&5 17580 fi 17581 $rm conftest* 17582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17583echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17584 ;; 17585 esac 17586 fi 17587 ;; 17588esac 17589 17590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17592library_names_spec= 17593libname_spec='lib$name' 17594soname_spec= 17595shrext_cmds=".so" 17596postinstall_cmds= 17597postuninstall_cmds= 17598finish_cmds= 17599finish_eval= 17600shlibpath_var= 17601shlibpath_overrides_runpath=unknown 17602version_type=none 17603dynamic_linker="$host_os ld.so" 17604sys_lib_dlsearch_path_spec="/lib /usr/lib" 17605 17606need_lib_prefix=unknown 17607hardcode_into_libs=no 17608 17609# when you set need_version to no, make sure it does not cause -set_version 17610# flags to be left without arguments 17611need_version=unknown 17612 17613case $host_os in 17614aix3*) 17615 version_type=linux 17616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17617 shlibpath_var=LIBPATH 17618 17619 # AIX 3 has no versioning support, so we append a major version to the name. 17620 soname_spec='${libname}${release}${shared_ext}$major' 17621 ;; 17622 17623aix[4-9]*) 17624 version_type=linux 17625 need_lib_prefix=no 17626 need_version=no 17627 hardcode_into_libs=yes 17628 if test "$host_cpu" = ia64; then 17629 # AIX 5 supports IA64 17630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17631 shlibpath_var=LD_LIBRARY_PATH 17632 else 17633 # With GCC up to 2.95.x, collect2 would create an import file 17634 # for dependence libraries. The import file would start with 17635 # the line `#! .'. This would cause the generated library to 17636 # depend on `.', always an invalid library. This was fixed in 17637 # development snapshots of GCC prior to 3.0. 17638 case $host_os in 17639 aix4 | aix4.[01] | aix4.[01].*) 17640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17641 echo ' yes ' 17642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17643 : 17644 else 17645 can_build_shared=no 17646 fi 17647 ;; 17648 esac 17649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17650 # soname into executable. Probably we can add versioning support to 17651 # collect2, so additional links can be useful in future. 17652 if test "$aix_use_runtimelinking" = yes; then 17653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17654 # instead of lib<name>.a to let people know that these are not 17655 # typical AIX shared libraries. 17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17657 else 17658 # We preserve .a as extension for shared libraries through AIX4.2 17659 # and later when we are not doing run time linking. 17660 library_names_spec='${libname}${release}.a $libname.a' 17661 soname_spec='${libname}${release}${shared_ext}$major' 17662 fi 17663 shlibpath_var=LIBPATH 17664 fi 17665 ;; 17666 17667amigaos*) 17668 library_names_spec='$libname.ixlibrary $libname.a' 17669 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17670 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' 17671 ;; 17672 17673beos*) 17674 library_names_spec='${libname}${shared_ext}' 17675 dynamic_linker="$host_os ld.so" 17676 shlibpath_var=LIBRARY_PATH 17677 ;; 17678 17679bsdi[45]*) 17680 version_type=linux 17681 need_version=no 17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17683 soname_spec='${libname}${release}${shared_ext}$major' 17684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17685 shlibpath_var=LD_LIBRARY_PATH 17686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17688 # the default ld.so.conf also contains /usr/contrib/lib and 17689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17690 # libtool to hard-code these into programs 17691 ;; 17692 17693cygwin* | mingw* | pw32*) 17694 version_type=windows 17695 shrext_cmds=".dll" 17696 need_version=no 17697 need_lib_prefix=no 17698 17699 case $GCC,$host_os in 17700 yes,cygwin* | yes,mingw* | yes,pw32*) 17701 library_names_spec='$libname.dll.a' 17702 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17703 postinstall_cmds='base_file=`basename \${file}`~ 17704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17705 dldir=$destdir/`dirname \$dlpath`~ 17706 test -d \$dldir || mkdir -p \$dldir~ 17707 $install_prog $dir/$dlname \$dldir/$dlname~ 17708 chmod a+x \$dldir/$dlname' 17709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17710 dlpath=$dir/\$dldll~ 17711 $rm \$dlpath' 17712 shlibpath_overrides_runpath=yes 17713 17714 case $host_os in 17715 cygwin*) 17716 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17719 ;; 17720 mingw*) 17721 # MinGW DLLs use traditional 'lib' prefix 17722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17725 # It is most probably a Windows format PATH printed by 17726 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17727 # path with ; separators, and with drive letters. We can handle the 17728 # drive letters (cygwin fileutils understands them), so leave them, 17729 # especially as we might pass files found there to a mingw objdump, 17730 # which wouldn't understand a cygwinified path. Ahh. 17731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17732 else 17733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17734 fi 17735 ;; 17736 pw32*) 17737 # pw32 DLLs use 'pw' prefix rather than 'lib' 17738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17739 ;; 17740 esac 17741 ;; 17742 17743 *) 17744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17745 ;; 17746 esac 17747 dynamic_linker='Win32 ld.exe' 17748 # FIXME: first we should search . and the directory the executable is in 17749 shlibpath_var=PATH 17750 ;; 17751 17752darwin* | rhapsody*) 17753 dynamic_linker="$host_os dyld" 17754 version_type=darwin 17755 need_lib_prefix=no 17756 need_version=no 17757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17758 soname_spec='${libname}${release}${major}$shared_ext' 17759 shlibpath_overrides_runpath=yes 17760 shlibpath_var=DYLD_LIBRARY_PATH 17761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17762 17763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17764 ;; 17765 17766dgux*) 17767 version_type=linux 17768 need_lib_prefix=no 17769 need_version=no 17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17771 soname_spec='${libname}${release}${shared_ext}$major' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 ;; 17774 17775freebsd1*) 17776 dynamic_linker=no 17777 ;; 17778 17779freebsd* | dragonfly*) 17780 # DragonFly does not have aout. When/if they implement a new 17781 # versioning mechanism, adjust this. 17782 if test -x /usr/bin/objformat; then 17783 objformat=`/usr/bin/objformat` 17784 else 17785 case $host_os in 17786 freebsd[123]*) objformat=aout ;; 17787 *) objformat=elf ;; 17788 esac 17789 fi 17790 version_type=freebsd-$objformat 17791 case $version_type in 17792 freebsd-elf*) 17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17794 need_version=no 17795 need_lib_prefix=no 17796 ;; 17797 freebsd-*) 17798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17799 need_version=yes 17800 ;; 17801 esac 17802 shlibpath_var=LD_LIBRARY_PATH 17803 case $host_os in 17804 freebsd2*) 17805 shlibpath_overrides_runpath=yes 17806 ;; 17807 freebsd3.[01]* | freebsdelf3.[01]*) 17808 shlibpath_overrides_runpath=yes 17809 hardcode_into_libs=yes 17810 ;; 17811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17813 shlibpath_overrides_runpath=no 17814 hardcode_into_libs=yes 17815 ;; 17816 *) # from 4.6 on, and DragonFly 17817 shlibpath_overrides_runpath=yes 17818 hardcode_into_libs=yes 17819 ;; 17820 esac 17821 ;; 17822 17823gnu*) 17824 version_type=linux 17825 need_lib_prefix=no 17826 need_version=no 17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17828 soname_spec='${libname}${release}${shared_ext}$major' 17829 shlibpath_var=LD_LIBRARY_PATH 17830 hardcode_into_libs=yes 17831 ;; 17832 17833hpux9* | hpux10* | hpux11*) 17834 # Give a soname corresponding to the major version so that dld.sl refuses to 17835 # link against other versions. 17836 version_type=sunos 17837 need_lib_prefix=no 17838 need_version=no 17839 case $host_cpu in 17840 ia64*) 17841 shrext_cmds='.so' 17842 hardcode_into_libs=yes 17843 dynamic_linker="$host_os dld.so" 17844 shlibpath_var=LD_LIBRARY_PATH 17845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17847 soname_spec='${libname}${release}${shared_ext}$major' 17848 if test "X$HPUX_IA64_MODE" = X32; then 17849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17850 else 17851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17852 fi 17853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17854 ;; 17855 hppa*64*) 17856 shrext_cmds='.sl' 17857 hardcode_into_libs=yes 17858 dynamic_linker="$host_os dld.sl" 17859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17862 soname_spec='${libname}${release}${shared_ext}$major' 17863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17865 ;; 17866 *) 17867 shrext_cmds='.sl' 17868 dynamic_linker="$host_os dld.sl" 17869 shlibpath_var=SHLIB_PATH 17870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17872 soname_spec='${libname}${release}${shared_ext}$major' 17873 ;; 17874 esac 17875 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17876 postinstall_cmds='chmod 555 $lib' 17877 ;; 17878 17879interix[3-9]*) 17880 version_type=linux 17881 need_lib_prefix=no 17882 need_version=no 17883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17884 soname_spec='${libname}${release}${shared_ext}$major' 17885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17886 shlibpath_var=LD_LIBRARY_PATH 17887 shlibpath_overrides_runpath=no 17888 hardcode_into_libs=yes 17889 ;; 17890 17891irix5* | irix6* | nonstopux*) 17892 case $host_os in 17893 nonstopux*) version_type=nonstopux ;; 17894 *) 17895 if test "$lt_cv_prog_gnu_ld" = yes; then 17896 version_type=linux 17897 else 17898 version_type=irix 17899 fi ;; 17900 esac 17901 need_lib_prefix=no 17902 need_version=no 17903 soname_spec='${libname}${release}${shared_ext}$major' 17904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17905 case $host_os in 17906 irix5* | nonstopux*) 17907 libsuff= shlibsuff= 17908 ;; 17909 *) 17910 case $LD in # libtool.m4 will add one of these switches to LD 17911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17912 libsuff= shlibsuff= libmagic=32-bit;; 17913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17914 libsuff=32 shlibsuff=N32 libmagic=N32;; 17915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17916 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17917 *) libsuff= shlibsuff= libmagic=never-match;; 17918 esac 17919 ;; 17920 esac 17921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17922 shlibpath_overrides_runpath=no 17923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17925 hardcode_into_libs=yes 17926 ;; 17927 17928# No shared lib support for Linux oldld, aout, or coff. 17929linux*oldld* | linux*aout* | linux*coff*) 17930 dynamic_linker=no 17931 ;; 17932 17933# This must be Linux ELF. 17934linux* | k*bsd*-gnu) 17935 version_type=linux 17936 need_lib_prefix=no 17937 need_version=no 17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17939 soname_spec='${libname}${release}${shared_ext}$major' 17940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17941 shlibpath_var=LD_LIBRARY_PATH 17942 shlibpath_overrides_runpath=no 17943 # This implies no fast_install, which is unacceptable. 17944 # Some rework will be needed to allow for fast_install 17945 # before this can be enabled. 17946 hardcode_into_libs=yes 17947 17948 # Append ld.so.conf contents to the search path 17949 if test -f /etc/ld.so.conf; then 17950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17952 fi 17953 17954 # We used to test for /lib/ld.so.1 and disable shared libraries on 17955 # powerpc, because MkLinux only supported shared libraries with the 17956 # GNU dynamic linker. Since this was broken with cross compilers, 17957 # most powerpc-linux boxes support dynamic linking these days and 17958 # people can always --disable-shared, the test was removed, and we 17959 # assume the GNU/Linux dynamic linker is in use. 17960 dynamic_linker='GNU/Linux ld.so' 17961 ;; 17962 17963netbsd*) 17964 version_type=sunos 17965 need_lib_prefix=no 17966 need_version=no 17967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17970 dynamic_linker='NetBSD (a.out) ld.so' 17971 else 17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17973 soname_spec='${libname}${release}${shared_ext}$major' 17974 dynamic_linker='NetBSD ld.elf_so' 17975 fi 17976 shlibpath_var=LD_LIBRARY_PATH 17977 shlibpath_overrides_runpath=yes 17978 hardcode_into_libs=yes 17979 ;; 17980 17981newsos6) 17982 version_type=linux 17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17984 shlibpath_var=LD_LIBRARY_PATH 17985 shlibpath_overrides_runpath=yes 17986 ;; 17987 17988nto-qnx*) 17989 version_type=linux 17990 need_lib_prefix=no 17991 need_version=no 17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17993 soname_spec='${libname}${release}${shared_ext}$major' 17994 shlibpath_var=LD_LIBRARY_PATH 17995 shlibpath_overrides_runpath=yes 17996 ;; 17997 17998openbsd*) 17999 version_type=sunos 18000 sys_lib_dlsearch_path_spec="/usr/lib" 18001 need_lib_prefix=no 18002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18003 case $host_os in 18004 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18005 *) need_version=no ;; 18006 esac 18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18009 shlibpath_var=LD_LIBRARY_PATH 18010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18011 case $host_os in 18012 openbsd2.[89] | openbsd2.[89].*) 18013 shlibpath_overrides_runpath=no 18014 ;; 18015 *) 18016 shlibpath_overrides_runpath=yes 18017 ;; 18018 esac 18019 else 18020 shlibpath_overrides_runpath=yes 18021 fi 18022 ;; 18023 18024os2*) 18025 libname_spec='$name' 18026 shrext_cmds=".dll" 18027 need_lib_prefix=no 18028 library_names_spec='$libname${shared_ext} $libname.a' 18029 dynamic_linker='OS/2 ld.exe' 18030 shlibpath_var=LIBPATH 18031 ;; 18032 18033osf3* | osf4* | osf5*) 18034 version_type=osf 18035 need_lib_prefix=no 18036 need_version=no 18037 soname_spec='${libname}${release}${shared_ext}$major' 18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18039 shlibpath_var=LD_LIBRARY_PATH 18040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18042 ;; 18043 18044rdos*) 18045 dynamic_linker=no 18046 ;; 18047 18048solaris*) 18049 version_type=linux 18050 need_lib_prefix=no 18051 need_version=no 18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18053 soname_spec='${libname}${release}${shared_ext}$major' 18054 shlibpath_var=LD_LIBRARY_PATH 18055 shlibpath_overrides_runpath=yes 18056 hardcode_into_libs=yes 18057 # ldd complains unless libraries are executable 18058 postinstall_cmds='chmod +x $lib' 18059 ;; 18060 18061sunos4*) 18062 version_type=sunos 18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18065 shlibpath_var=LD_LIBRARY_PATH 18066 shlibpath_overrides_runpath=yes 18067 if test "$with_gnu_ld" = yes; then 18068 need_lib_prefix=no 18069 fi 18070 need_version=yes 18071 ;; 18072 18073sysv4 | sysv4.3*) 18074 version_type=linux 18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18076 soname_spec='${libname}${release}${shared_ext}$major' 18077 shlibpath_var=LD_LIBRARY_PATH 18078 case $host_vendor in 18079 sni) 18080 shlibpath_overrides_runpath=no 18081 need_lib_prefix=no 18082 export_dynamic_flag_spec='${wl}-Blargedynsym' 18083 runpath_var=LD_RUN_PATH 18084 ;; 18085 siemens) 18086 need_lib_prefix=no 18087 ;; 18088 motorola) 18089 need_lib_prefix=no 18090 need_version=no 18091 shlibpath_overrides_runpath=no 18092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18093 ;; 18094 esac 18095 ;; 18096 18097sysv4*MP*) 18098 if test -d /usr/nec ;then 18099 version_type=linux 18100 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18101 soname_spec='$libname${shared_ext}.$major' 18102 shlibpath_var=LD_LIBRARY_PATH 18103 fi 18104 ;; 18105 18106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18107 version_type=freebsd-elf 18108 need_lib_prefix=no 18109 need_version=no 18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18111 soname_spec='${libname}${release}${shared_ext}$major' 18112 shlibpath_var=LD_LIBRARY_PATH 18113 hardcode_into_libs=yes 18114 if test "$with_gnu_ld" = yes; then 18115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18116 shlibpath_overrides_runpath=no 18117 else 18118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18119 shlibpath_overrides_runpath=yes 18120 case $host_os in 18121 sco3.2v5*) 18122 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18123 ;; 18124 esac 18125 fi 18126 sys_lib_dlsearch_path_spec='/usr/lib' 18127 ;; 18128 18129uts4*) 18130 version_type=linux 18131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18132 soname_spec='${libname}${release}${shared_ext}$major' 18133 shlibpath_var=LD_LIBRARY_PATH 18134 ;; 18135 18136*) 18137 dynamic_linker=no 18138 ;; 18139esac 18140{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18141echo "${ECHO_T}$dynamic_linker" >&6; } 18142test "$dynamic_linker" = no && can_build_shared=no 18143 18144if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18145 echo $ECHO_N "(cached) $ECHO_C" >&6 18146else 18147 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18148fi 18149 18150sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18151if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18152 echo $ECHO_N "(cached) $ECHO_C" >&6 18153else 18154 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18155fi 18156 18157sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18158 18159variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18160if test "$GCC" = yes; then 18161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18162fi 18163 18164{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18165echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18166hardcode_action_GCJ= 18167if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18168 test -n "$runpath_var_GCJ" || \ 18169 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18170 18171 # We can hardcode non-existant directories. 18172 if test "$hardcode_direct_GCJ" != no && 18173 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18174 # have to relink, otherwise we might link with an installed library 18175 # when we should be linking with a yet-to-be-installed one 18176 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18177 test "$hardcode_minus_L_GCJ" != no; then 18178 # Linking always hardcodes the temporary library directory. 18179 hardcode_action_GCJ=relink 18180 else 18181 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18182 hardcode_action_GCJ=immediate 18183 fi 18184else 18185 # We cannot hardcode anything, or else we can only hardcode existing 18186 # directories. 18187 hardcode_action_GCJ=unsupported 18188fi 18189{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18190echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18191 18192if test "$hardcode_action_GCJ" = relink; then 18193 # Fast installation is not supported 18194 enable_fast_install=no 18195elif test "$shlibpath_overrides_runpath" = yes || 18196 test "$enable_shared" = no; then 18197 # Fast installation is not necessary 18198 enable_fast_install=needless 18199fi 18200 18201 18202# The else clause should only fire when bootstrapping the 18203# libtool distribution, otherwise you forgot to ship ltmain.sh 18204# with your package, and you will get complaints that there are 18205# no rules to generate ltmain.sh. 18206if test -f "$ltmain"; then 18207 # See if we are running on zsh, and set the options which allow our commands through 18208 # without removal of \ escapes. 18209 if test -n "${ZSH_VERSION+set}" ; then 18210 setopt NO_GLOB_SUBST 18211 fi 18212 # Now quote all the things that may contain metacharacters while being 18213 # careful not to overquote the AC_SUBSTed values. We take copies of the 18214 # variables and quote the copies for generation of the libtool script. 18215 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18216 SED SHELL STRIP \ 18217 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18218 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18219 deplibs_check_method reload_flag reload_cmds need_locks \ 18220 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18221 lt_cv_sys_global_symbol_to_c_name_address \ 18222 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18223 old_postinstall_cmds old_postuninstall_cmds \ 18224 compiler_GCJ \ 18225 CC_GCJ \ 18226 LD_GCJ \ 18227 lt_prog_compiler_wl_GCJ \ 18228 lt_prog_compiler_pic_GCJ \ 18229 lt_prog_compiler_static_GCJ \ 18230 lt_prog_compiler_no_builtin_flag_GCJ \ 18231 export_dynamic_flag_spec_GCJ \ 18232 thread_safe_flag_spec_GCJ \ 18233 whole_archive_flag_spec_GCJ \ 18234 enable_shared_with_static_runtimes_GCJ \ 18235 old_archive_cmds_GCJ \ 18236 old_archive_from_new_cmds_GCJ \ 18237 predep_objects_GCJ \ 18238 postdep_objects_GCJ \ 18239 predeps_GCJ \ 18240 postdeps_GCJ \ 18241 compiler_lib_search_path_GCJ \ 18242 compiler_lib_search_dirs_GCJ \ 18243 archive_cmds_GCJ \ 18244 archive_expsym_cmds_GCJ \ 18245 postinstall_cmds_GCJ \ 18246 postuninstall_cmds_GCJ \ 18247 old_archive_from_expsyms_cmds_GCJ \ 18248 allow_undefined_flag_GCJ \ 18249 no_undefined_flag_GCJ \ 18250 export_symbols_cmds_GCJ \ 18251 hardcode_libdir_flag_spec_GCJ \ 18252 hardcode_libdir_flag_spec_ld_GCJ \ 18253 hardcode_libdir_separator_GCJ \ 18254 hardcode_automatic_GCJ \ 18255 module_cmds_GCJ \ 18256 module_expsym_cmds_GCJ \ 18257 lt_cv_prog_compiler_c_o_GCJ \ 18258 fix_srcfile_path_GCJ \ 18259 exclude_expsyms_GCJ \ 18260 include_expsyms_GCJ; do 18261 18262 case $var in 18263 old_archive_cmds_GCJ | \ 18264 old_archive_from_new_cmds_GCJ | \ 18265 archive_cmds_GCJ | \ 18266 archive_expsym_cmds_GCJ | \ 18267 module_cmds_GCJ | \ 18268 module_expsym_cmds_GCJ | \ 18269 old_archive_from_expsyms_cmds_GCJ | \ 18270 export_symbols_cmds_GCJ | \ 18271 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18272 postinstall_cmds | postuninstall_cmds | \ 18273 old_postinstall_cmds | old_postuninstall_cmds | \ 18274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18275 # Double-quote double-evaled strings. 18276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18277 ;; 18278 *) 18279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18280 ;; 18281 esac 18282 done 18283 18284 case $lt_echo in 18285 *'\$0 --fallback-echo"') 18286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18287 ;; 18288 esac 18289 18290cfgfile="$ofile" 18291 18292 cat <<__EOF__ >> "$cfgfile" 18293# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18294 18295# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18296 18297# Shell to use when invoking shell scripts. 18298SHELL=$lt_SHELL 18299 18300# Whether or not to build shared libraries. 18301build_libtool_libs=$enable_shared 18302 18303# Whether or not to build static libraries. 18304build_old_libs=$enable_static 18305 18306# Whether or not to add -lc for building shared libraries. 18307build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18308 18309# Whether or not to disallow shared libs when runtime libs are static 18310allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18311 18312# Whether or not to optimize for fast installation. 18313fast_install=$enable_fast_install 18314 18315# The host system. 18316host_alias=$host_alias 18317host=$host 18318host_os=$host_os 18319 18320# The build system. 18321build_alias=$build_alias 18322build=$build 18323build_os=$build_os 18324 18325# An echo program that does not interpret backslashes. 18326echo=$lt_echo 18327 18328# The archiver. 18329AR=$lt_AR 18330AR_FLAGS=$lt_AR_FLAGS 18331 18332# A C compiler. 18333LTCC=$lt_LTCC 18334 18335# LTCC compiler flags. 18336LTCFLAGS=$lt_LTCFLAGS 18337 18338# A language-specific compiler. 18339CC=$lt_compiler_GCJ 18340 18341# Is the compiler the GNU C compiler? 18342with_gcc=$GCC_GCJ 18343 18344# An ERE matcher. 18345EGREP=$lt_EGREP 18346 18347# The linker used to build libraries. 18348LD=$lt_LD_GCJ 18349 18350# Whether we need hard or soft links. 18351LN_S=$lt_LN_S 18352 18353# A BSD-compatible nm program. 18354NM=$lt_NM 18355 18356# A symbol stripping program 18357STRIP=$lt_STRIP 18358 18359# Used to examine libraries when file_magic_cmd begins "file" 18360MAGIC_CMD=$MAGIC_CMD 18361 18362# Used on cygwin: DLL creation program. 18363DLLTOOL="$DLLTOOL" 18364 18365# Used on cygwin: object dumper. 18366OBJDUMP="$OBJDUMP" 18367 18368# Used on cygwin: assembler. 18369AS="$AS" 18370 18371# The name of the directory that contains temporary libtool files. 18372objdir=$objdir 18373 18374# How to create reloadable object files. 18375reload_flag=$lt_reload_flag 18376reload_cmds=$lt_reload_cmds 18377 18378# How to pass a linker flag through the compiler. 18379wl=$lt_lt_prog_compiler_wl_GCJ 18380 18381# Object file suffix (normally "o"). 18382objext="$ac_objext" 18383 18384# Old archive suffix (normally "a"). 18385libext="$libext" 18386 18387# Shared library suffix (normally ".so"). 18388shrext_cmds='$shrext_cmds' 18389 18390# Executable file suffix (normally ""). 18391exeext="$exeext" 18392 18393# Additional compiler flags for building library objects. 18394pic_flag=$lt_lt_prog_compiler_pic_GCJ 18395pic_mode=$pic_mode 18396 18397# What is the maximum length of a command? 18398max_cmd_len=$lt_cv_sys_max_cmd_len 18399 18400# Does compiler simultaneously support -c and -o options? 18401compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18402 18403# Must we lock files when doing compilation? 18404need_locks=$lt_need_locks 18405 18406# Do we need the lib prefix for modules? 18407need_lib_prefix=$need_lib_prefix 18408 18409# Do we need a version for libraries? 18410need_version=$need_version 18411 18412# Whether dlopen is supported. 18413dlopen_support=$enable_dlopen 18414 18415# Whether dlopen of programs is supported. 18416dlopen_self=$enable_dlopen_self 18417 18418# Whether dlopen of statically linked programs is supported. 18419dlopen_self_static=$enable_dlopen_self_static 18420 18421# Compiler flag to prevent dynamic linking. 18422link_static_flag=$lt_lt_prog_compiler_static_GCJ 18423 18424# Compiler flag to turn off builtin functions. 18425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18426 18427# Compiler flag to allow reflexive dlopens. 18428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18429 18430# Compiler flag to generate shared objects directly from archives. 18431whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18432 18433# Compiler flag to generate thread-safe objects. 18434thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18435 18436# Library versioning type. 18437version_type=$version_type 18438 18439# Format of library name prefix. 18440libname_spec=$lt_libname_spec 18441 18442# List of archive names. First name is the real one, the rest are links. 18443# The last name is the one that the linker finds with -lNAME. 18444library_names_spec=$lt_library_names_spec 18445 18446# The coded name of the library, if different from the real name. 18447soname_spec=$lt_soname_spec 18448 18449# Commands used to build and install an old-style archive. 18450RANLIB=$lt_RANLIB 18451old_archive_cmds=$lt_old_archive_cmds_GCJ 18452old_postinstall_cmds=$lt_old_postinstall_cmds 18453old_postuninstall_cmds=$lt_old_postuninstall_cmds 18454 18455# Create an old-style archive from a shared archive. 18456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18457 18458# Create a temporary old-style archive to link instead of a shared archive. 18459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18460 18461# Commands used to build and install a shared archive. 18462archive_cmds=$lt_archive_cmds_GCJ 18463archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18464postinstall_cmds=$lt_postinstall_cmds 18465postuninstall_cmds=$lt_postuninstall_cmds 18466 18467# Commands used to build a loadable module (assumed same as above if empty) 18468module_cmds=$lt_module_cmds_GCJ 18469module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18470 18471# Commands to strip libraries. 18472old_striplib=$lt_old_striplib 18473striplib=$lt_striplib 18474 18475# Dependencies to place before the objects being linked to create a 18476# shared library. 18477predep_objects=$lt_predep_objects_GCJ 18478 18479# Dependencies to place after the objects being linked to create a 18480# shared library. 18481postdep_objects=$lt_postdep_objects_GCJ 18482 18483# Dependencies to place before the objects being linked to create a 18484# shared library. 18485predeps=$lt_predeps_GCJ 18486 18487# Dependencies to place after the objects being linked to create a 18488# shared library. 18489postdeps=$lt_postdeps_GCJ 18490 18491# The directories searched by this compiler when creating a shared 18492# library 18493compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 18494 18495# The library search path used internally by the compiler when linking 18496# a shared library. 18497compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18498 18499# Method to check whether dependent libraries are shared objects. 18500deplibs_check_method=$lt_deplibs_check_method 18501 18502# Command to use when deplibs_check_method == file_magic. 18503file_magic_cmd=$lt_file_magic_cmd 18504 18505# Flag that allows shared libraries with undefined symbols to be built. 18506allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18507 18508# Flag that forces no undefined symbols. 18509no_undefined_flag=$lt_no_undefined_flag_GCJ 18510 18511# Commands used to finish a libtool library installation in a directory. 18512finish_cmds=$lt_finish_cmds 18513 18514# Same as above, but a single script fragment to be evaled but not shown. 18515finish_eval=$lt_finish_eval 18516 18517# Take the output of nm and produce a listing of raw symbols and C names. 18518global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18519 18520# Transform the output of nm in a proper C declaration 18521global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18522 18523# Transform the output of nm in a C name address pair 18524global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18525 18526# This is the shared library runtime path variable. 18527runpath_var=$runpath_var 18528 18529# This is the shared library path variable. 18530shlibpath_var=$shlibpath_var 18531 18532# Is shlibpath searched before the hard-coded library search path? 18533shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18534 18535# How to hardcode a shared library path into an executable. 18536hardcode_action=$hardcode_action_GCJ 18537 18538# Whether we should hardcode library paths into libraries. 18539hardcode_into_libs=$hardcode_into_libs 18540 18541# Flag to hardcode \$libdir into a binary during linking. 18542# This must work even if \$libdir does not exist. 18543hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18544 18545# If ld is used when linking, flag to hardcode \$libdir into 18546# a binary during linking. This must work even if \$libdir does 18547# not exist. 18548hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18549 18550# Whether we need a single -rpath flag with a separated argument. 18551hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18552 18553# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18554# resulting binary. 18555hardcode_direct=$hardcode_direct_GCJ 18556 18557# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18558# resulting binary. 18559hardcode_minus_L=$hardcode_minus_L_GCJ 18560 18561# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18562# the resulting binary. 18563hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18564 18565# Set to yes if building a shared library automatically hardcodes DIR into the library 18566# and all subsequent libraries and executables linked against it. 18567hardcode_automatic=$hardcode_automatic_GCJ 18568 18569# Variables whose values should be saved in libtool wrapper scripts and 18570# restored at relink time. 18571variables_saved_for_relink="$variables_saved_for_relink" 18572 18573# Whether libtool must link a program against all its dependency libraries. 18574link_all_deplibs=$link_all_deplibs_GCJ 18575 18576# Compile-time system search path for libraries 18577sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18578 18579# Run-time system search path for libraries 18580sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18581 18582# Fix the shell variable \$srcfile for the compiler. 18583fix_srcfile_path=$lt_fix_srcfile_path 18584 18585# Set to yes if exported symbols are required. 18586always_export_symbols=$always_export_symbols_GCJ 18587 18588# The commands to list exported symbols. 18589export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18590 18591# The commands to extract the exported symbol list from a shared archive. 18592extract_expsyms_cmds=$lt_extract_expsyms_cmds 18593 18594# Symbols that should not be listed in the preloaded symbols. 18595exclude_expsyms=$lt_exclude_expsyms_GCJ 18596 18597# Symbols that must always be exported. 18598include_expsyms=$lt_include_expsyms_GCJ 18599 18600# ### END LIBTOOL TAG CONFIG: $tagname 18601 18602__EOF__ 18603 18604 18605else 18606 # If there is no Makefile yet, we rely on a make rule to execute 18607 # `config.status --recheck' to rerun these tests and create the 18608 # libtool script then. 18609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18610 if test -f "$ltmain_in"; then 18611 test -f Makefile && make "$ltmain" 18612 fi 18613fi 18614 18615 18616ac_ext=c 18617ac_cpp='$CPP $CPPFLAGS' 18618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18620ac_compiler_gnu=$ac_cv_c_compiler_gnu 18621 18622CC="$lt_save_CC" 18623 18624 else 18625 tagname="" 18626 fi 18627 ;; 18628 18629 RC) 18630 18631 18632# Source file extension for RC test sources. 18633ac_ext=rc 18634 18635# Object file extension for compiled RC test sources. 18636objext=o 18637objext_RC=$objext 18638 18639# Code to be used in simple compile tests 18640lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18641 18642# Code to be used in simple link tests 18643lt_simple_link_test_code="$lt_simple_compile_test_code" 18644 18645# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18646 18647# If no C compiler was specified, use CC. 18648LTCC=${LTCC-"$CC"} 18649 18650# If no C compiler flags were specified, use CFLAGS. 18651LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18652 18653# Allow CC to be a program name with arguments. 18654compiler=$CC 18655 18656 18657# save warnings/boilerplate of simple test code 18658ac_outfile=conftest.$ac_objext 18659echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18661_lt_compiler_boilerplate=`cat conftest.err` 18662$rm conftest* 18663 18664ac_outfile=conftest.$ac_objext 18665echo "$lt_simple_link_test_code" >conftest.$ac_ext 18666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18667_lt_linker_boilerplate=`cat conftest.err` 18668$rm -r conftest* 18669 18670 18671# Allow CC to be a program name with arguments. 18672lt_save_CC="$CC" 18673CC=${RC-"windres"} 18674compiler=$CC 18675compiler_RC=$CC 18676for cc_temp in $compiler""; do 18677 case $cc_temp in 18678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18680 \-*) ;; 18681 *) break;; 18682 esac 18683done 18684cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18685 18686lt_cv_prog_compiler_c_o_RC=yes 18687 18688# The else clause should only fire when bootstrapping the 18689# libtool distribution, otherwise you forgot to ship ltmain.sh 18690# with your package, and you will get complaints that there are 18691# no rules to generate ltmain.sh. 18692if test -f "$ltmain"; then 18693 # See if we are running on zsh, and set the options which allow our commands through 18694 # without removal of \ escapes. 18695 if test -n "${ZSH_VERSION+set}" ; then 18696 setopt NO_GLOB_SUBST 18697 fi 18698 # Now quote all the things that may contain metacharacters while being 18699 # careful not to overquote the AC_SUBSTed values. We take copies of the 18700 # variables and quote the copies for generation of the libtool script. 18701 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18702 SED SHELL STRIP \ 18703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18705 deplibs_check_method reload_flag reload_cmds need_locks \ 18706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18707 lt_cv_sys_global_symbol_to_c_name_address \ 18708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18709 old_postinstall_cmds old_postuninstall_cmds \ 18710 compiler_RC \ 18711 CC_RC \ 18712 LD_RC \ 18713 lt_prog_compiler_wl_RC \ 18714 lt_prog_compiler_pic_RC \ 18715 lt_prog_compiler_static_RC \ 18716 lt_prog_compiler_no_builtin_flag_RC \ 18717 export_dynamic_flag_spec_RC \ 18718 thread_safe_flag_spec_RC \ 18719 whole_archive_flag_spec_RC \ 18720 enable_shared_with_static_runtimes_RC \ 18721 old_archive_cmds_RC \ 18722 old_archive_from_new_cmds_RC \ 18723 predep_objects_RC \ 18724 postdep_objects_RC \ 18725 predeps_RC \ 18726 postdeps_RC \ 18727 compiler_lib_search_path_RC \ 18728 compiler_lib_search_dirs_RC \ 18729 archive_cmds_RC \ 18730 archive_expsym_cmds_RC \ 18731 postinstall_cmds_RC \ 18732 postuninstall_cmds_RC \ 18733 old_archive_from_expsyms_cmds_RC \ 18734 allow_undefined_flag_RC \ 18735 no_undefined_flag_RC \ 18736 export_symbols_cmds_RC \ 18737 hardcode_libdir_flag_spec_RC \ 18738 hardcode_libdir_flag_spec_ld_RC \ 18739 hardcode_libdir_separator_RC \ 18740 hardcode_automatic_RC \ 18741 module_cmds_RC \ 18742 module_expsym_cmds_RC \ 18743 lt_cv_prog_compiler_c_o_RC \ 18744 fix_srcfile_path_RC \ 18745 exclude_expsyms_RC \ 18746 include_expsyms_RC; do 18747 18748 case $var in 18749 old_archive_cmds_RC | \ 18750 old_archive_from_new_cmds_RC | \ 18751 archive_cmds_RC | \ 18752 archive_expsym_cmds_RC | \ 18753 module_cmds_RC | \ 18754 module_expsym_cmds_RC | \ 18755 old_archive_from_expsyms_cmds_RC | \ 18756 export_symbols_cmds_RC | \ 18757 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18758 postinstall_cmds | postuninstall_cmds | \ 18759 old_postinstall_cmds | old_postuninstall_cmds | \ 18760 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18761 # Double-quote double-evaled strings. 18762 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18763 ;; 18764 *) 18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18766 ;; 18767 esac 18768 done 18769 18770 case $lt_echo in 18771 *'\$0 --fallback-echo"') 18772 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18773 ;; 18774 esac 18775 18776cfgfile="$ofile" 18777 18778 cat <<__EOF__ >> "$cfgfile" 18779# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18780 18781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18782 18783# Shell to use when invoking shell scripts. 18784SHELL=$lt_SHELL 18785 18786# Whether or not to build shared libraries. 18787build_libtool_libs=$enable_shared 18788 18789# Whether or not to build static libraries. 18790build_old_libs=$enable_static 18791 18792# Whether or not to add -lc for building shared libraries. 18793build_libtool_need_lc=$archive_cmds_need_lc_RC 18794 18795# Whether or not to disallow shared libs when runtime libs are static 18796allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18797 18798# Whether or not to optimize for fast installation. 18799fast_install=$enable_fast_install 18800 18801# The host system. 18802host_alias=$host_alias 18803host=$host 18804host_os=$host_os 18805 18806# The build system. 18807build_alias=$build_alias 18808build=$build 18809build_os=$build_os 18810 18811# An echo program that does not interpret backslashes. 18812echo=$lt_echo 18813 18814# The archiver. 18815AR=$lt_AR 18816AR_FLAGS=$lt_AR_FLAGS 18817 18818# A C compiler. 18819LTCC=$lt_LTCC 18820 18821# LTCC compiler flags. 18822LTCFLAGS=$lt_LTCFLAGS 18823 18824# A language-specific compiler. 18825CC=$lt_compiler_RC 18826 18827# Is the compiler the GNU C compiler? 18828with_gcc=$GCC_RC 18829 18830# An ERE matcher. 18831EGREP=$lt_EGREP 18832 18833# The linker used to build libraries. 18834LD=$lt_LD_RC 18835 18836# Whether we need hard or soft links. 18837LN_S=$lt_LN_S 18838 18839# A BSD-compatible nm program. 18840NM=$lt_NM 18841 18842# A symbol stripping program 18843STRIP=$lt_STRIP 18844 18845# Used to examine libraries when file_magic_cmd begins "file" 18846MAGIC_CMD=$MAGIC_CMD 18847 18848# Used on cygwin: DLL creation program. 18849DLLTOOL="$DLLTOOL" 18850 18851# Used on cygwin: object dumper. 18852OBJDUMP="$OBJDUMP" 18853 18854# Used on cygwin: assembler. 18855AS="$AS" 18856 18857# The name of the directory that contains temporary libtool files. 18858objdir=$objdir 18859 18860# How to create reloadable object files. 18861reload_flag=$lt_reload_flag 18862reload_cmds=$lt_reload_cmds 18863 18864# How to pass a linker flag through the compiler. 18865wl=$lt_lt_prog_compiler_wl_RC 18866 18867# Object file suffix (normally "o"). 18868objext="$ac_objext" 18869 18870# Old archive suffix (normally "a"). 18871libext="$libext" 18872 18873# Shared library suffix (normally ".so"). 18874shrext_cmds='$shrext_cmds' 18875 18876# Executable file suffix (normally ""). 18877exeext="$exeext" 18878 18879# Additional compiler flags for building library objects. 18880pic_flag=$lt_lt_prog_compiler_pic_RC 18881pic_mode=$pic_mode 18882 18883# What is the maximum length of a command? 18884max_cmd_len=$lt_cv_sys_max_cmd_len 18885 18886# Does compiler simultaneously support -c and -o options? 18887compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18888 18889# Must we lock files when doing compilation? 18890need_locks=$lt_need_locks 18891 18892# Do we need the lib prefix for modules? 18893need_lib_prefix=$need_lib_prefix 18894 18895# Do we need a version for libraries? 18896need_version=$need_version 18897 18898# Whether dlopen is supported. 18899dlopen_support=$enable_dlopen 18900 18901# Whether dlopen of programs is supported. 18902dlopen_self=$enable_dlopen_self 18903 18904# Whether dlopen of statically linked programs is supported. 18905dlopen_self_static=$enable_dlopen_self_static 18906 18907# Compiler flag to prevent dynamic linking. 18908link_static_flag=$lt_lt_prog_compiler_static_RC 18909 18910# Compiler flag to turn off builtin functions. 18911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18912 18913# Compiler flag to allow reflexive dlopens. 18914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18915 18916# Compiler flag to generate shared objects directly from archives. 18917whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18918 18919# Compiler flag to generate thread-safe objects. 18920thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18921 18922# Library versioning type. 18923version_type=$version_type 18924 18925# Format of library name prefix. 18926libname_spec=$lt_libname_spec 18927 18928# List of archive names. First name is the real one, the rest are links. 18929# The last name is the one that the linker finds with -lNAME. 18930library_names_spec=$lt_library_names_spec 18931 18932# The coded name of the library, if different from the real name. 18933soname_spec=$lt_soname_spec 18934 18935# Commands used to build and install an old-style archive. 18936RANLIB=$lt_RANLIB 18937old_archive_cmds=$lt_old_archive_cmds_RC 18938old_postinstall_cmds=$lt_old_postinstall_cmds 18939old_postuninstall_cmds=$lt_old_postuninstall_cmds 18940 18941# Create an old-style archive from a shared archive. 18942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18943 18944# Create a temporary old-style archive to link instead of a shared archive. 18945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18946 18947# Commands used to build and install a shared archive. 18948archive_cmds=$lt_archive_cmds_RC 18949archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18950postinstall_cmds=$lt_postinstall_cmds 18951postuninstall_cmds=$lt_postuninstall_cmds 18952 18953# Commands used to build a loadable module (assumed same as above if empty) 18954module_cmds=$lt_module_cmds_RC 18955module_expsym_cmds=$lt_module_expsym_cmds_RC 18956 18957# Commands to strip libraries. 18958old_striplib=$lt_old_striplib 18959striplib=$lt_striplib 18960 18961# Dependencies to place before the objects being linked to create a 18962# shared library. 18963predep_objects=$lt_predep_objects_RC 18964 18965# Dependencies to place after the objects being linked to create a 18966# shared library. 18967postdep_objects=$lt_postdep_objects_RC 18968 18969# Dependencies to place before the objects being linked to create a 18970# shared library. 18971predeps=$lt_predeps_RC 18972 18973# Dependencies to place after the objects being linked to create a 18974# shared library. 18975postdeps=$lt_postdeps_RC 18976 18977# The directories searched by this compiler when creating a shared 18978# library 18979compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 18980 18981# The library search path used internally by the compiler when linking 18982# a shared library. 18983compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18984 18985# Method to check whether dependent libraries are shared objects. 18986deplibs_check_method=$lt_deplibs_check_method 18987 18988# Command to use when deplibs_check_method == file_magic. 18989file_magic_cmd=$lt_file_magic_cmd 18990 18991# Flag that allows shared libraries with undefined symbols to be built. 18992allow_undefined_flag=$lt_allow_undefined_flag_RC 18993 18994# Flag that forces no undefined symbols. 18995no_undefined_flag=$lt_no_undefined_flag_RC 18996 18997# Commands used to finish a libtool library installation in a directory. 18998finish_cmds=$lt_finish_cmds 18999 19000# Same as above, but a single script fragment to be evaled but not shown. 19001finish_eval=$lt_finish_eval 19002 19003# Take the output of nm and produce a listing of raw symbols and C names. 19004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19005 19006# Transform the output of nm in a proper C declaration 19007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19008 19009# Transform the output of nm in a C name address pair 19010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19011 19012# This is the shared library runtime path variable. 19013runpath_var=$runpath_var 19014 19015# This is the shared library path variable. 19016shlibpath_var=$shlibpath_var 19017 19018# Is shlibpath searched before the hard-coded library search path? 19019shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19020 19021# How to hardcode a shared library path into an executable. 19022hardcode_action=$hardcode_action_RC 19023 19024# Whether we should hardcode library paths into libraries. 19025hardcode_into_libs=$hardcode_into_libs 19026 19027# Flag to hardcode \$libdir into a binary during linking. 19028# This must work even if \$libdir does not exist. 19029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19030 19031# If ld is used when linking, flag to hardcode \$libdir into 19032# a binary during linking. This must work even if \$libdir does 19033# not exist. 19034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19035 19036# Whether we need a single -rpath flag with a separated argument. 19037hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19038 19039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19040# resulting binary. 19041hardcode_direct=$hardcode_direct_RC 19042 19043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19044# resulting binary. 19045hardcode_minus_L=$hardcode_minus_L_RC 19046 19047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19048# the resulting binary. 19049hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19050 19051# Set to yes if building a shared library automatically hardcodes DIR into the library 19052# and all subsequent libraries and executables linked against it. 19053hardcode_automatic=$hardcode_automatic_RC 19054 19055# Variables whose values should be saved in libtool wrapper scripts and 19056# restored at relink time. 19057variables_saved_for_relink="$variables_saved_for_relink" 19058 19059# Whether libtool must link a program against all its dependency libraries. 19060link_all_deplibs=$link_all_deplibs_RC 19061 19062# Compile-time system search path for libraries 19063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19064 19065# Run-time system search path for libraries 19066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19067 19068# Fix the shell variable \$srcfile for the compiler. 19069fix_srcfile_path=$lt_fix_srcfile_path 19070 19071# Set to yes if exported symbols are required. 19072always_export_symbols=$always_export_symbols_RC 19073 19074# The commands to list exported symbols. 19075export_symbols_cmds=$lt_export_symbols_cmds_RC 19076 19077# The commands to extract the exported symbol list from a shared archive. 19078extract_expsyms_cmds=$lt_extract_expsyms_cmds 19079 19080# Symbols that should not be listed in the preloaded symbols. 19081exclude_expsyms=$lt_exclude_expsyms_RC 19082 19083# Symbols that must always be exported. 19084include_expsyms=$lt_include_expsyms_RC 19085 19086# ### END LIBTOOL TAG CONFIG: $tagname 19087 19088__EOF__ 19089 19090 19091else 19092 # If there is no Makefile yet, we rely on a make rule to execute 19093 # `config.status --recheck' to rerun these tests and create the 19094 # libtool script then. 19095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19096 if test -f "$ltmain_in"; then 19097 test -f Makefile && make "$ltmain" 19098 fi 19099fi 19100 19101 19102ac_ext=c 19103ac_cpp='$CPP $CPPFLAGS' 19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19106ac_compiler_gnu=$ac_cv_c_compiler_gnu 19107 19108CC="$lt_save_CC" 19109 19110 ;; 19111 19112 *) 19113 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19114echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19115 { (exit 1); exit 1; }; } 19116 ;; 19117 esac 19118 19119 # Append the new tag name to the list of available tags. 19120 if test -n "$tagname" ; then 19121 available_tags="$available_tags $tagname" 19122 fi 19123 fi 19124 done 19125 IFS="$lt_save_ifs" 19126 19127 # Now substitute the updated list of available tags. 19128 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19129 mv "${ofile}T" "$ofile" 19130 chmod +x "$ofile" 19131 else 19132 rm -f "${ofile}T" 19133 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19134echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19135 { (exit 1); exit 1; }; } 19136 fi 19137fi 19138 19139 19140 19141# This can be used to rebuild libtool when needed 19142LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19143 19144# Always use our own libtool. 19145LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19146 19147# Prevent multiple expansion 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168# Find a good install program. We prefer a C program (faster), 19169# so one script is as good as another. But avoid the broken or 19170# incompatible versions: 19171# SysV /etc/install, /usr/sbin/install 19172# SunOS /usr/etc/install 19173# IRIX /sbin/install 19174# AIX /bin/install 19175# AmigaOS /C/install, which installs bootblocks on floppy discs 19176# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19177# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19178# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19179# OS/2's system install, which has a completely different semantic 19180# ./install, which can be erroneously created by make from ./install.sh. 19181{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19182echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 19183if test -z "$INSTALL"; then 19184if test "${ac_cv_path_install+set}" = set; then 19185 echo $ECHO_N "(cached) $ECHO_C" >&6 19186else 19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19188for as_dir in $PATH 19189do 19190 IFS=$as_save_IFS 19191 test -z "$as_dir" && as_dir=. 19192 # Account for people who put trailing slashes in PATH elements. 19193case $as_dir/ in 19194 ./ | .// | /cC/* | \ 19195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19196 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19197 /usr/ucb/* ) ;; 19198 *) 19199 # OSF1 and SCO ODT 3.0 have their own names for install. 19200 # Don't use installbsd from OSF since it installs stuff as root 19201 # by default. 19202 for ac_prog in ginstall scoinst install; do 19203 for ac_exec_ext in '' $ac_executable_extensions; do 19204 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 19205 if test $ac_prog = install && 19206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19207 # AIX install. It has an incompatible calling convention. 19208 : 19209 elif test $ac_prog = install && 19210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19211 # program-specific install script used by HP pwplus--don't use. 19212 : 19213 else 19214 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19215 break 3 19216 fi 19217 fi 19218 done 19219 done 19220 ;; 19221esac 19222done 19223IFS=$as_save_IFS 19224 19225 19226fi 19227 if test "${ac_cv_path_install+set}" = set; then 19228 INSTALL=$ac_cv_path_install 19229 else 19230 # As a last resort, use the slow shell script. Don't cache a 19231 # value for INSTALL within a source directory, because that will 19232 # break other packages using the cache if that directory is 19233 # removed, or if the value is a relative name. 19234 INSTALL=$ac_install_sh 19235 fi 19236fi 19237{ echo "$as_me:$LINENO: result: $INSTALL" >&5 19238echo "${ECHO_T}$INSTALL" >&6; } 19239 19240# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19241# It thinks the first close brace ends the variable substitution. 19242test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19243 19244test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19245 19246test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19247 19248 19249 19250 19251 19252 19253 19254# Extract the first word of "ar", so it can be a program name with args. 19255set dummy ar; ac_word=$2 19256{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19258if test "${ac_cv_path_AR+set}" = set; then 19259 echo $ECHO_N "(cached) $ECHO_C" >&6 19260else 19261 case $AR in 19262 [\\/]* | ?:[\\/]*) 19263 ac_cv_path_AR="$AR" # Let the user override the test with a path. 19264 ;; 19265 *) 19266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19267for as_dir in $PATH 19268do 19269 IFS=$as_save_IFS 19270 test -z "$as_dir" && as_dir=. 19271 for ac_exec_ext in '' $ac_executable_extensions; do 19272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19273 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 19274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19275 break 2 19276 fi 19277done 19278done 19279IFS=$as_save_IFS 19280 19281 ;; 19282esac 19283fi 19284AR=$ac_cv_path_AR 19285if test -n "$AR"; then 19286 { echo "$as_me:$LINENO: result: $AR" >&5 19287echo "${ECHO_T}$AR" >&6; } 19288else 19289 { echo "$as_me:$LINENO: result: no" >&5 19290echo "${ECHO_T}no" >&6; } 19291fi 19292 19293 19294ARFLAGS="cruv" 19295 19296 19297 19298# Extract the first word of "tbl", so it can be a program name with args. 19299set dummy tbl; ac_word=$2 19300{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19302if test "${ac_cv_path_TBL+set}" = set; then 19303 echo $ECHO_N "(cached) $ECHO_C" >&6 19304else 19305 case $TBL in 19306 [\\/]* | ?:[\\/]*) 19307 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 19308 ;; 19309 *) 19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19311for as_dir in $PATH 19312do 19313 IFS=$as_save_IFS 19314 test -z "$as_dir" && as_dir=. 19315 for ac_exec_ext in '' $ac_executable_extensions; do 19316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19317 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 19318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19319 break 2 19320 fi 19321done 19322done 19323IFS=$as_save_IFS 19324 19325 ;; 19326esac 19327fi 19328TBL=$ac_cv_path_TBL 19329if test -n "$TBL"; then 19330 { echo "$as_me:$LINENO: result: $TBL" >&5 19331echo "${ECHO_T}$TBL" >&6; } 19332else 19333 { echo "$as_me:$LINENO: result: no" >&5 19334echo "${ECHO_T}no" >&6; } 19335fi 19336 19337 19338 19339 19340# Extract the first word of "nroff", so it can be a program name with args. 19341set dummy nroff; ac_word=$2 19342{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19344if test "${ac_cv_path_NROFF+set}" = set; then 19345 echo $ECHO_N "(cached) $ECHO_C" >&6 19346else 19347 case $NROFF in 19348 [\\/]* | ?:[\\/]*) 19349 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 19350 ;; 19351 *) 19352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19353for as_dir in $PATH 19354do 19355 IFS=$as_save_IFS 19356 test -z "$as_dir" && as_dir=. 19357 for ac_exec_ext in '' $ac_executable_extensions; do 19358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19359 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 19360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19361 break 2 19362 fi 19363done 19364done 19365IFS=$as_save_IFS 19366 19367 ;; 19368esac 19369fi 19370NROFF=$ac_cv_path_NROFF 19371if test -n "$NROFF"; then 19372 { echo "$as_me:$LINENO: result: $NROFF" >&5 19373echo "${ECHO_T}$NROFF" >&6; } 19374else 19375 { echo "$as_me:$LINENO: result: no" >&5 19376echo "${ECHO_T}no" >&6; } 19377fi 19378 19379 19380 19381 19382# Extract the first word of "sed", so it can be a program name with args. 19383set dummy sed; ac_word=$2 19384{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19386if test "${ac_cv_path_SED+set}" = set; then 19387 echo $ECHO_N "(cached) $ECHO_C" >&6 19388else 19389 case $SED in 19390 [\\/]* | ?:[\\/]*) 19391 ac_cv_path_SED="$SED" # Let the user override the test with a path. 19392 ;; 19393 *) 19394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19395for as_dir in $PATH 19396do 19397 IFS=$as_save_IFS 19398 test -z "$as_dir" && as_dir=. 19399 for ac_exec_ext in '' $ac_executable_extensions; do 19400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19401 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 19402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19403 break 2 19404 fi 19405done 19406done 19407IFS=$as_save_IFS 19408 19409 ;; 19410esac 19411fi 19412SED=$ac_cv_path_SED 19413if test -n "$SED"; then 19414 { echo "$as_me:$LINENO: result: $SED" >&5 19415echo "${ECHO_T}$SED" >&6; } 19416else 19417 { echo "$as_me:$LINENO: result: no" >&5 19418echo "${ECHO_T}no" >&6; } 19419fi 19420 19421 19422 19423 19424# Extract the first word of "tr", so it can be a program name with args. 19425set dummy tr; ac_word=$2 19426{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19428if test "${ac_cv_path_TR+set}" = set; then 19429 echo $ECHO_N "(cached) $ECHO_C" >&6 19430else 19431 case $TR in 19432 [\\/]* | ?:[\\/]*) 19433 ac_cv_path_TR="$TR" # Let the user override the test with a path. 19434 ;; 19435 *) 19436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19437for as_dir in $PATH 19438do 19439 IFS=$as_save_IFS 19440 test -z "$as_dir" && as_dir=. 19441 for ac_exec_ext in '' $ac_executable_extensions; do 19442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19443 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 19444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19445 break 2 19446 fi 19447done 19448done 19449IFS=$as_save_IFS 19450 19451 ;; 19452esac 19453fi 19454TR=$ac_cv_path_TR 19455if test -n "$TR"; then 19456 { echo "$as_me:$LINENO: result: $TR" >&5 19457echo "${ECHO_T}$TR" >&6; } 19458else 19459 { echo "$as_me:$LINENO: result: no" >&5 19460echo "${ECHO_T}no" >&6; } 19461fi 19462 19463 19464 19465 19466# The POSIX ln(1) program. Non-POSIX systems may substitute 19467# "copy" or something. 19468LN=ln 19469 19470 19471case "$AR" in 19472 "") 19473 { { echo "$as_me:$LINENO: error: 19474ar program not found. Please fix your PATH to include the directory in 19475which ar resides, or set AR in the environment with the full path to ar. 19476" >&5 19477echo "$as_me: error: 19478ar program not found. Please fix your PATH to include the directory in 19479which ar resides, or set AR in the environment with the full path to ar. 19480" >&2;} 19481 { (exit 1); exit 1; }; } 19482 19483 ;; 19484esac 19485 19486# 19487# Etags. 19488# 19489for ac_prog in etags emacs-etags 19490do 19491 # Extract the first word of "$ac_prog", so it can be a program name with args. 19492set dummy $ac_prog; ac_word=$2 19493{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19495if test "${ac_cv_path_ETAGS+set}" = set; then 19496 echo $ECHO_N "(cached) $ECHO_C" >&6 19497else 19498 case $ETAGS in 19499 [\\/]* | ?:[\\/]*) 19500 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. 19501 ;; 19502 *) 19503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19504for as_dir in $PATH 19505do 19506 IFS=$as_save_IFS 19507 test -z "$as_dir" && as_dir=. 19508 for ac_exec_ext in '' $ac_executable_extensions; do 19509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19510 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" 19511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19512 break 2 19513 fi 19514done 19515done 19516IFS=$as_save_IFS 19517 19518 ;; 19519esac 19520fi 19521ETAGS=$ac_cv_path_ETAGS 19522if test -n "$ETAGS"; then 19523 { echo "$as_me:$LINENO: result: $ETAGS" >&5 19524echo "${ECHO_T}$ETAGS" >&6; } 19525else 19526 { echo "$as_me:$LINENO: result: no" >&5 19527echo "${ECHO_T}no" >&6; } 19528fi 19529 19530 19531 test -n "$ETAGS" && break 19532done 19533 19534 19535# 19536# Some systems, e.g. RH7, have the Exuberant Ctags etags instead of 19537# GNU emacs etags, and it requires the -L flag. 19538# 19539if test "X$ETAGS" != "X"; then 19540 { echo "$as_me:$LINENO: checking for Exuberant Ctags etags" >&5 19541echo $ECHO_N "checking for Exuberant Ctags etags... $ECHO_C" >&6; } 19542 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then 19543 { echo "$as_me:$LINENO: result: yes" >&5 19544echo "${ECHO_T}yes" >&6; } 19545 ETAGS="$ETAGS -L" 19546 else 19547 { echo "$as_me:$LINENO: result: no" >&5 19548echo "${ECHO_T}no" >&6; } 19549 fi 19550fi 19551 19552 19553# 19554# Perl is optional; it is used only by some of the system test scripts. 19555# 19556for ac_prog in perl5 perl 19557do 19558 # Extract the first word of "$ac_prog", so it can be a program name with args. 19559set dummy $ac_prog; ac_word=$2 19560{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19562if test "${ac_cv_path_PERL+set}" = set; then 19563 echo $ECHO_N "(cached) $ECHO_C" >&6 19564else 19565 case $PERL in 19566 [\\/]* | ?:[\\/]*) 19567 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19568 ;; 19569 *) 19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19571for as_dir in $PATH 19572do 19573 IFS=$as_save_IFS 19574 test -z "$as_dir" && as_dir=. 19575 for ac_exec_ext in '' $ac_executable_extensions; do 19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19577 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19579 break 2 19580 fi 19581done 19582done 19583IFS=$as_save_IFS 19584 19585 ;; 19586esac 19587fi 19588PERL=$ac_cv_path_PERL 19589if test -n "$PERL"; then 19590 { echo "$as_me:$LINENO: result: $PERL" >&5 19591echo "${ECHO_T}$PERL" >&6; } 19592else 19593 { echo "$as_me:$LINENO: result: no" >&5 19594echo "${ECHO_T}no" >&6; } 19595fi 19596 19597 19598 test -n "$PERL" && break 19599done 19600 19601 19602 19603# 19604# isc/list.h and others clash with BIND 9 and system header files. 19605# Install into non-shared directory. 19606# 19607case "$includedir" in 19608 '${prefix}/include') 19609 includedir='${prefix}/include/bind' 19610 ;; 19611esac 19612# 19613# -lbind can clash with system version. Install into non-shared directory. 19614# 19615case "$libdir" in 19616 '${prefix}/lib') 19617 libdir='${prefix}/lib/bind' 19618 ;; 19619esac 19620 19621# 19622# Make sure INSTALL uses an absolute path, else it will be wrong in all 19623# Makefiles, since they use make/rules.in and INSTALL will be adjusted by 19624# configure based on the location of the file where it is substituted. 19625# Since in BIND9 INSTALL is only substituted into make/rules.in, an immediate 19626# subdirectory of install-sh, This relative path will be wrong for all 19627# directories more than one level down from install-sh. 19628# 19629case "$INSTALL" in 19630 /*) 19631 ;; 19632 *) 19633 # 19634 # Not all systems have dirname. 19635 # 19636 19637 ac_dir="`echo $INSTALL | sed 's%/[^/]*$%%'`" 19638 19639 19640 ac_prog="`echo $INSTALL | sed 's%.*/%%'`" 19641 test "$ac_dir" = "$ac_prog" && ac_dir=. 19642 test -d "$ac_dir" && ac_dir="`(cd \"$ac_dir\" && pwd)`" 19643 INSTALL="$ac_dir/$ac_prog" 19644 ;; 19645esac 19646 19647# 19648# On these hosts, we really want to use cc, not gcc, even if it is 19649# found. The gcc that these systems have will not correctly handle 19650# pthreads. 19651# 19652# However, if the user sets $CC to be something, let that override 19653# our change. 19654# 19655if test "X$CC" = "X" ; then 19656 case "$host" in 19657 *-dec-osf*) 19658 CC="cc" 19659 ;; 19660 *-solaris*) 19661 # Use Sun's cc if it is available, but watch 19662 # out for /usr/ucb/cc; it will never be the right 19663 # compiler to use. 19664 # 19665 # If setting CC here fails, the AC_PROG_CC done 19666 # below might still find gcc. 19667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 19668 for ac_dir in $PATH; do 19669 test -z "$ac_dir" && ac_dir=. 19670 case "$ac_dir" in 19671 /usr/ucb) 19672 # exclude 19673 ;; 19674 *) 19675 if test -f "$ac_dir/cc"; then 19676 CC="$ac_dir/cc" 19677 break 19678 fi 19679 ;; 19680 esac 19681 done 19682 IFS="$ac_save_ifs" 19683 ;; 19684 *-hp-hpux*) 19685 CC="cc" 19686 ;; 19687 mips-sgi-irix*) 19688 CC="cc" 19689 ;; 19690 esac 19691fi 19692 19693 19694ac_ext=c 19695ac_cpp='$CPP $CPPFLAGS' 19696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19698ac_compiler_gnu=$ac_cv_c_compiler_gnu 19699if test -n "$ac_tool_prefix"; then 19700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19701set dummy ${ac_tool_prefix}gcc; ac_word=$2 19702{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19704if test "${ac_cv_prog_CC+set}" = set; then 19705 echo $ECHO_N "(cached) $ECHO_C" >&6 19706else 19707 if test -n "$CC"; then 19708 ac_cv_prog_CC="$CC" # Let the user override the test. 19709else 19710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19711for as_dir in $PATH 19712do 19713 IFS=$as_save_IFS 19714 test -z "$as_dir" && as_dir=. 19715 for ac_exec_ext in '' $ac_executable_extensions; do 19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19717 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19719 break 2 19720 fi 19721done 19722done 19723IFS=$as_save_IFS 19724 19725fi 19726fi 19727CC=$ac_cv_prog_CC 19728if test -n "$CC"; then 19729 { echo "$as_me:$LINENO: result: $CC" >&5 19730echo "${ECHO_T}$CC" >&6; } 19731else 19732 { echo "$as_me:$LINENO: result: no" >&5 19733echo "${ECHO_T}no" >&6; } 19734fi 19735 19736 19737fi 19738if test -z "$ac_cv_prog_CC"; then 19739 ac_ct_CC=$CC 19740 # Extract the first word of "gcc", so it can be a program name with args. 19741set dummy gcc; ac_word=$2 19742{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19744if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19745 echo $ECHO_N "(cached) $ECHO_C" >&6 19746else 19747 if test -n "$ac_ct_CC"; then 19748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19749else 19750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19751for as_dir in $PATH 19752do 19753 IFS=$as_save_IFS 19754 test -z "$as_dir" && as_dir=. 19755 for ac_exec_ext in '' $ac_executable_extensions; do 19756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19757 ac_cv_prog_ac_ct_CC="gcc" 19758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19759 break 2 19760 fi 19761done 19762done 19763IFS=$as_save_IFS 19764 19765fi 19766fi 19767ac_ct_CC=$ac_cv_prog_ac_ct_CC 19768if test -n "$ac_ct_CC"; then 19769 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19770echo "${ECHO_T}$ac_ct_CC" >&6; } 19771else 19772 { echo "$as_me:$LINENO: result: no" >&5 19773echo "${ECHO_T}no" >&6; } 19774fi 19775 19776 if test "x$ac_ct_CC" = x; then 19777 CC="" 19778 else 19779 case $cross_compiling:$ac_tool_warned in 19780yes:) 19781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19782whose name does not start with the host triplet. If you think this 19783configuration is useful to you, please write to autoconf@gnu.org." >&5 19784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19785whose name does not start with the host triplet. If you think this 19786configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19787ac_tool_warned=yes ;; 19788esac 19789 CC=$ac_ct_CC 19790 fi 19791else 19792 CC="$ac_cv_prog_CC" 19793fi 19794 19795if test -z "$CC"; then 19796 if test -n "$ac_tool_prefix"; then 19797 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19798set dummy ${ac_tool_prefix}cc; ac_word=$2 19799{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19801if test "${ac_cv_prog_CC+set}" = set; then 19802 echo $ECHO_N "(cached) $ECHO_C" >&6 19803else 19804 if test -n "$CC"; then 19805 ac_cv_prog_CC="$CC" # Let the user override the test. 19806else 19807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19808for as_dir in $PATH 19809do 19810 IFS=$as_save_IFS 19811 test -z "$as_dir" && as_dir=. 19812 for ac_exec_ext in '' $ac_executable_extensions; do 19813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19814 ac_cv_prog_CC="${ac_tool_prefix}cc" 19815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19816 break 2 19817 fi 19818done 19819done 19820IFS=$as_save_IFS 19821 19822fi 19823fi 19824CC=$ac_cv_prog_CC 19825if test -n "$CC"; then 19826 { echo "$as_me:$LINENO: result: $CC" >&5 19827echo "${ECHO_T}$CC" >&6; } 19828else 19829 { echo "$as_me:$LINENO: result: no" >&5 19830echo "${ECHO_T}no" >&6; } 19831fi 19832 19833 19834 fi 19835fi 19836if test -z "$CC"; then 19837 # Extract the first word of "cc", so it can be a program name with args. 19838set dummy cc; ac_word=$2 19839{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19841if test "${ac_cv_prog_CC+set}" = set; then 19842 echo $ECHO_N "(cached) $ECHO_C" >&6 19843else 19844 if test -n "$CC"; then 19845 ac_cv_prog_CC="$CC" # Let the user override the test. 19846else 19847 ac_prog_rejected=no 19848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19849for as_dir in $PATH 19850do 19851 IFS=$as_save_IFS 19852 test -z "$as_dir" && as_dir=. 19853 for ac_exec_ext in '' $ac_executable_extensions; do 19854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19856 ac_prog_rejected=yes 19857 continue 19858 fi 19859 ac_cv_prog_CC="cc" 19860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19861 break 2 19862 fi 19863done 19864done 19865IFS=$as_save_IFS 19866 19867if test $ac_prog_rejected = yes; then 19868 # We found a bogon in the path, so make sure we never use it. 19869 set dummy $ac_cv_prog_CC 19870 shift 19871 if test $# != 0; then 19872 # We chose a different compiler from the bogus one. 19873 # However, it has the same basename, so the bogon will be chosen 19874 # first if we set CC to just the basename; use the full file name. 19875 shift 19876 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19877 fi 19878fi 19879fi 19880fi 19881CC=$ac_cv_prog_CC 19882if test -n "$CC"; then 19883 { echo "$as_me:$LINENO: result: $CC" >&5 19884echo "${ECHO_T}$CC" >&6; } 19885else 19886 { echo "$as_me:$LINENO: result: no" >&5 19887echo "${ECHO_T}no" >&6; } 19888fi 19889 19890 19891fi 19892if test -z "$CC"; then 19893 if test -n "$ac_tool_prefix"; then 19894 for ac_prog in cl.exe 19895 do 19896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19897set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19898{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19900if test "${ac_cv_prog_CC+set}" = set; then 19901 echo $ECHO_N "(cached) $ECHO_C" >&6 19902else 19903 if test -n "$CC"; then 19904 ac_cv_prog_CC="$CC" # Let the user override the test. 19905else 19906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19907for as_dir in $PATH 19908do 19909 IFS=$as_save_IFS 19910 test -z "$as_dir" && as_dir=. 19911 for ac_exec_ext in '' $ac_executable_extensions; do 19912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19913 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19915 break 2 19916 fi 19917done 19918done 19919IFS=$as_save_IFS 19920 19921fi 19922fi 19923CC=$ac_cv_prog_CC 19924if test -n "$CC"; then 19925 { echo "$as_me:$LINENO: result: $CC" >&5 19926echo "${ECHO_T}$CC" >&6; } 19927else 19928 { echo "$as_me:$LINENO: result: no" >&5 19929echo "${ECHO_T}no" >&6; } 19930fi 19931 19932 19933 test -n "$CC" && break 19934 done 19935fi 19936if test -z "$CC"; then 19937 ac_ct_CC=$CC 19938 for ac_prog in cl.exe 19939do 19940 # Extract the first word of "$ac_prog", so it can be a program name with args. 19941set dummy $ac_prog; ac_word=$2 19942{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19945 echo $ECHO_N "(cached) $ECHO_C" >&6 19946else 19947 if test -n "$ac_ct_CC"; then 19948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19949else 19950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19951for as_dir in $PATH 19952do 19953 IFS=$as_save_IFS 19954 test -z "$as_dir" && as_dir=. 19955 for ac_exec_ext in '' $ac_executable_extensions; do 19956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19957 ac_cv_prog_ac_ct_CC="$ac_prog" 19958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19959 break 2 19960 fi 19961done 19962done 19963IFS=$as_save_IFS 19964 19965fi 19966fi 19967ac_ct_CC=$ac_cv_prog_ac_ct_CC 19968if test -n "$ac_ct_CC"; then 19969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19970echo "${ECHO_T}$ac_ct_CC" >&6; } 19971else 19972 { echo "$as_me:$LINENO: result: no" >&5 19973echo "${ECHO_T}no" >&6; } 19974fi 19975 19976 19977 test -n "$ac_ct_CC" && break 19978done 19979 19980 if test "x$ac_ct_CC" = x; then 19981 CC="" 19982 else 19983 case $cross_compiling:$ac_tool_warned in 19984yes:) 19985{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19986whose name does not start with the host triplet. If you think this 19987configuration is useful to you, please write to autoconf@gnu.org." >&5 19988echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19989whose name does not start with the host triplet. If you think this 19990configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19991ac_tool_warned=yes ;; 19992esac 19993 CC=$ac_ct_CC 19994 fi 19995fi 19996 19997fi 19998 19999 20000test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20001See \`config.log' for more details." >&5 20002echo "$as_me: error: no acceptable C compiler found in \$PATH 20003See \`config.log' for more details." >&2;} 20004 { (exit 1); exit 1; }; } 20005 20006# Provide some information about the compiler. 20007echo "$as_me:$LINENO: checking for C compiler version" >&5 20008ac_compiler=`set X $ac_compile; echo $2` 20009{ (ac_try="$ac_compiler --version >&5" 20010case "(($ac_try" in 20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20012 *) ac_try_echo=$ac_try;; 20013esac 20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20015 (eval "$ac_compiler --version >&5") 2>&5 20016 ac_status=$? 20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20018 (exit $ac_status); } 20019{ (ac_try="$ac_compiler -v >&5" 20020case "(($ac_try" in 20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20022 *) ac_try_echo=$ac_try;; 20023esac 20024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20025 (eval "$ac_compiler -v >&5") 2>&5 20026 ac_status=$? 20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20028 (exit $ac_status); } 20029{ (ac_try="$ac_compiler -V >&5" 20030case "(($ac_try" in 20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20032 *) ac_try_echo=$ac_try;; 20033esac 20034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20035 (eval "$ac_compiler -V >&5") 2>&5 20036 ac_status=$? 20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20038 (exit $ac_status); } 20039 20040{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20041echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20042if test "${ac_cv_c_compiler_gnu+set}" = set; then 20043 echo $ECHO_N "(cached) $ECHO_C" >&6 20044else 20045 cat >conftest.$ac_ext <<_ACEOF 20046/* confdefs.h. */ 20047_ACEOF 20048cat confdefs.h >>conftest.$ac_ext 20049cat >>conftest.$ac_ext <<_ACEOF 20050/* end confdefs.h. */ 20051 20052int 20053main () 20054{ 20055#ifndef __GNUC__ 20056 choke me 20057#endif 20058 20059 ; 20060 return 0; 20061} 20062_ACEOF 20063rm -f conftest.$ac_objext 20064if { (ac_try="$ac_compile" 20065case "(($ac_try" in 20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20067 *) ac_try_echo=$ac_try;; 20068esac 20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20070 (eval "$ac_compile") 2>conftest.er1 20071 ac_status=$? 20072 grep -v '^ *+' conftest.er1 >conftest.err 20073 rm -f conftest.er1 20074 cat conftest.err >&5 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); } && { 20077 test -z "$ac_c_werror_flag" || 20078 test ! -s conftest.err 20079 } && test -s conftest.$ac_objext; then 20080 ac_compiler_gnu=yes 20081else 20082 echo "$as_me: failed program was:" >&5 20083sed 's/^/| /' conftest.$ac_ext >&5 20084 20085 ac_compiler_gnu=no 20086fi 20087 20088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20089ac_cv_c_compiler_gnu=$ac_compiler_gnu 20090 20091fi 20092{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20093echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20094GCC=`test $ac_compiler_gnu = yes && echo yes` 20095ac_test_CFLAGS=${CFLAGS+set} 20096ac_save_CFLAGS=$CFLAGS 20097{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20099if test "${ac_cv_prog_cc_g+set}" = set; then 20100 echo $ECHO_N "(cached) $ECHO_C" >&6 20101else 20102 ac_save_c_werror_flag=$ac_c_werror_flag 20103 ac_c_werror_flag=yes 20104 ac_cv_prog_cc_g=no 20105 CFLAGS="-g" 20106 cat >conftest.$ac_ext <<_ACEOF 20107/* confdefs.h. */ 20108_ACEOF 20109cat confdefs.h >>conftest.$ac_ext 20110cat >>conftest.$ac_ext <<_ACEOF 20111/* end confdefs.h. */ 20112 20113int 20114main () 20115{ 20116 20117 ; 20118 return 0; 20119} 20120_ACEOF 20121rm -f conftest.$ac_objext 20122if { (ac_try="$ac_compile" 20123case "(($ac_try" in 20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20125 *) ac_try_echo=$ac_try;; 20126esac 20127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20128 (eval "$ac_compile") 2>conftest.er1 20129 ac_status=$? 20130 grep -v '^ *+' conftest.er1 >conftest.err 20131 rm -f conftest.er1 20132 cat conftest.err >&5 20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); } && { 20135 test -z "$ac_c_werror_flag" || 20136 test ! -s conftest.err 20137 } && test -s conftest.$ac_objext; then 20138 ac_cv_prog_cc_g=yes 20139else 20140 echo "$as_me: failed program was:" >&5 20141sed 's/^/| /' conftest.$ac_ext >&5 20142 20143 CFLAGS="" 20144 cat >conftest.$ac_ext <<_ACEOF 20145/* confdefs.h. */ 20146_ACEOF 20147cat confdefs.h >>conftest.$ac_ext 20148cat >>conftest.$ac_ext <<_ACEOF 20149/* end confdefs.h. */ 20150 20151int 20152main () 20153{ 20154 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159rm -f conftest.$ac_objext 20160if { (ac_try="$ac_compile" 20161case "(($ac_try" in 20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20163 *) ac_try_echo=$ac_try;; 20164esac 20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20166 (eval "$ac_compile") 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } && { 20173 test -z "$ac_c_werror_flag" || 20174 test ! -s conftest.err 20175 } && test -s conftest.$ac_objext; then 20176 : 20177else 20178 echo "$as_me: failed program was:" >&5 20179sed 's/^/| /' conftest.$ac_ext >&5 20180 20181 ac_c_werror_flag=$ac_save_c_werror_flag 20182 CFLAGS="-g" 20183 cat >conftest.$ac_ext <<_ACEOF 20184/* confdefs.h. */ 20185_ACEOF 20186cat confdefs.h >>conftest.$ac_ext 20187cat >>conftest.$ac_ext <<_ACEOF 20188/* end confdefs.h. */ 20189 20190int 20191main () 20192{ 20193 20194 ; 20195 return 0; 20196} 20197_ACEOF 20198rm -f conftest.$ac_objext 20199if { (ac_try="$ac_compile" 20200case "(($ac_try" in 20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20202 *) ac_try_echo=$ac_try;; 20203esac 20204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20205 (eval "$ac_compile") 2>conftest.er1 20206 ac_status=$? 20207 grep -v '^ *+' conftest.er1 >conftest.err 20208 rm -f conftest.er1 20209 cat conftest.err >&5 20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20211 (exit $ac_status); } && { 20212 test -z "$ac_c_werror_flag" || 20213 test ! -s conftest.err 20214 } && test -s conftest.$ac_objext; then 20215 ac_cv_prog_cc_g=yes 20216else 20217 echo "$as_me: failed program was:" >&5 20218sed 's/^/| /' conftest.$ac_ext >&5 20219 20220 20221fi 20222 20223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20224fi 20225 20226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20227fi 20228 20229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20230 ac_c_werror_flag=$ac_save_c_werror_flag 20231fi 20232{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20234if test "$ac_test_CFLAGS" = set; then 20235 CFLAGS=$ac_save_CFLAGS 20236elif test $ac_cv_prog_cc_g = yes; then 20237 if test "$GCC" = yes; then 20238 CFLAGS="-g -O2" 20239 else 20240 CFLAGS="-g" 20241 fi 20242else 20243 if test "$GCC" = yes; then 20244 CFLAGS="-O2" 20245 else 20246 CFLAGS= 20247 fi 20248fi 20249{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20250echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20251if test "${ac_cv_prog_cc_c89+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253else 20254 ac_cv_prog_cc_c89=no 20255ac_save_CC=$CC 20256cat >conftest.$ac_ext <<_ACEOF 20257/* confdefs.h. */ 20258_ACEOF 20259cat confdefs.h >>conftest.$ac_ext 20260cat >>conftest.$ac_ext <<_ACEOF 20261/* end confdefs.h. */ 20262#include <stdarg.h> 20263#include <stdio.h> 20264#include <sys/types.h> 20265#include <sys/stat.h> 20266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20267struct buf { int x; }; 20268FILE * (*rcsopen) (struct buf *, struct stat *, int); 20269static char *e (p, i) 20270 char **p; 20271 int i; 20272{ 20273 return p[i]; 20274} 20275static char *f (char * (*g) (char **, int), char **p, ...) 20276{ 20277 char *s; 20278 va_list v; 20279 va_start (v,p); 20280 s = g (p, va_arg (v,int)); 20281 va_end (v); 20282 return s; 20283} 20284 20285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20286 function prototypes and stuff, but not '\xHH' hex character constants. 20287 These don't provoke an error unfortunately, instead are silently treated 20288 as 'x'. The following induces an error, until -std is added to get 20289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20290 array size at least. It's necessary to write '\x00'==0 to get something 20291 that's true only with -std. */ 20292int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20293 20294/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20295 inside strings and character constants. */ 20296#define FOO(x) 'x' 20297int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20298 20299int test (int i, double x); 20300struct s1 {int (*f) (int a);}; 20301struct s2 {int (*f) (double a);}; 20302int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20303int argc; 20304char **argv; 20305int 20306main () 20307{ 20308return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20309 ; 20310 return 0; 20311} 20312_ACEOF 20313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20315do 20316 CC="$ac_save_CC $ac_arg" 20317 rm -f conftest.$ac_objext 20318if { (ac_try="$ac_compile" 20319case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322esac 20323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20324 (eval "$ac_compile") 2>conftest.er1 20325 ac_status=$? 20326 grep -v '^ *+' conftest.er1 >conftest.err 20327 rm -f conftest.er1 20328 cat conftest.err >&5 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20330 (exit $ac_status); } && { 20331 test -z "$ac_c_werror_flag" || 20332 test ! -s conftest.err 20333 } && test -s conftest.$ac_objext; then 20334 ac_cv_prog_cc_c89=$ac_arg 20335else 20336 echo "$as_me: failed program was:" >&5 20337sed 's/^/| /' conftest.$ac_ext >&5 20338 20339 20340fi 20341 20342rm -f core conftest.err conftest.$ac_objext 20343 test "x$ac_cv_prog_cc_c89" != "xno" && break 20344done 20345rm -f conftest.$ac_ext 20346CC=$ac_save_CC 20347 20348fi 20349# AC_CACHE_VAL 20350case "x$ac_cv_prog_cc_c89" in 20351 x) 20352 { echo "$as_me:$LINENO: result: none needed" >&5 20353echo "${ECHO_T}none needed" >&6; } ;; 20354 xno) 20355 { echo "$as_me:$LINENO: result: unsupported" >&5 20356echo "${ECHO_T}unsupported" >&6; } ;; 20357 *) 20358 CC="$CC $ac_cv_prog_cc_c89" 20359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20360echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20361esac 20362 20363 20364ac_ext=c 20365ac_cpp='$CPP $CPPFLAGS' 20366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20368ac_compiler_gnu=$ac_cv_c_compiler_gnu 20369 20370 20371{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20373if test "${ac_cv_header_stdc+set}" = set; then 20374 echo $ECHO_N "(cached) $ECHO_C" >&6 20375else 20376 cat >conftest.$ac_ext <<_ACEOF 20377/* confdefs.h. */ 20378_ACEOF 20379cat confdefs.h >>conftest.$ac_ext 20380cat >>conftest.$ac_ext <<_ACEOF 20381/* end confdefs.h. */ 20382#include <stdlib.h> 20383#include <stdarg.h> 20384#include <string.h> 20385#include <float.h> 20386 20387int 20388main () 20389{ 20390 20391 ; 20392 return 0; 20393} 20394_ACEOF 20395rm -f conftest.$ac_objext 20396if { (ac_try="$ac_compile" 20397case "(($ac_try" in 20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20399 *) ac_try_echo=$ac_try;; 20400esac 20401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20402 (eval "$ac_compile") 2>conftest.er1 20403 ac_status=$? 20404 grep -v '^ *+' conftest.er1 >conftest.err 20405 rm -f conftest.er1 20406 cat conftest.err >&5 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); } && { 20409 test -z "$ac_c_werror_flag" || 20410 test ! -s conftest.err 20411 } && test -s conftest.$ac_objext; then 20412 ac_cv_header_stdc=yes 20413else 20414 echo "$as_me: failed program was:" >&5 20415sed 's/^/| /' conftest.$ac_ext >&5 20416 20417 ac_cv_header_stdc=no 20418fi 20419 20420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20421 20422if test $ac_cv_header_stdc = yes; then 20423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20424 cat >conftest.$ac_ext <<_ACEOF 20425/* confdefs.h. */ 20426_ACEOF 20427cat confdefs.h >>conftest.$ac_ext 20428cat >>conftest.$ac_ext <<_ACEOF 20429/* end confdefs.h. */ 20430#include <string.h> 20431 20432_ACEOF 20433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20434 $EGREP "memchr" >/dev/null 2>&1; then 20435 : 20436else 20437 ac_cv_header_stdc=no 20438fi 20439rm -f conftest* 20440 20441fi 20442 20443if test $ac_cv_header_stdc = yes; then 20444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20445 cat >conftest.$ac_ext <<_ACEOF 20446/* confdefs.h. */ 20447_ACEOF 20448cat confdefs.h >>conftest.$ac_ext 20449cat >>conftest.$ac_ext <<_ACEOF 20450/* end confdefs.h. */ 20451#include <stdlib.h> 20452 20453_ACEOF 20454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20455 $EGREP "free" >/dev/null 2>&1; then 20456 : 20457else 20458 ac_cv_header_stdc=no 20459fi 20460rm -f conftest* 20461 20462fi 20463 20464if test $ac_cv_header_stdc = yes; then 20465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20466 if test "$cross_compiling" = yes; then 20467 : 20468else 20469 cat >conftest.$ac_ext <<_ACEOF 20470/* confdefs.h. */ 20471_ACEOF 20472cat confdefs.h >>conftest.$ac_ext 20473cat >>conftest.$ac_ext <<_ACEOF 20474/* end confdefs.h. */ 20475#include <ctype.h> 20476#include <stdlib.h> 20477#if ((' ' & 0x0FF) == 0x020) 20478# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20479# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20480#else 20481# define ISLOWER(c) \ 20482 (('a' <= (c) && (c) <= 'i') \ 20483 || ('j' <= (c) && (c) <= 'r') \ 20484 || ('s' <= (c) && (c) <= 'z')) 20485# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20486#endif 20487 20488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20489int 20490main () 20491{ 20492 int i; 20493 for (i = 0; i < 256; i++) 20494 if (XOR (islower (i), ISLOWER (i)) 20495 || toupper (i) != TOUPPER (i)) 20496 return 2; 20497 return 0; 20498} 20499_ACEOF 20500rm -f conftest$ac_exeext 20501if { (ac_try="$ac_link" 20502case "(($ac_try" in 20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20504 *) ac_try_echo=$ac_try;; 20505esac 20506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20507 (eval "$ac_link") 2>&5 20508 ac_status=$? 20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20511 { (case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514esac 20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_try") 2>&5 20517 ac_status=$? 20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20519 (exit $ac_status); }; }; then 20520 : 20521else 20522 echo "$as_me: program exited with status $ac_status" >&5 20523echo "$as_me: failed program was:" >&5 20524sed 's/^/| /' conftest.$ac_ext >&5 20525 20526( exit $ac_status ) 20527ac_cv_header_stdc=no 20528fi 20529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20530fi 20531 20532 20533fi 20534fi 20535{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20536echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20537if test $ac_cv_header_stdc = yes; then 20538 20539cat >>confdefs.h <<\_ACEOF 20540#define STDC_HEADERS 1 20541_ACEOF 20542 20543fi 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556for ac_header in fcntl.h db.h paths.h sys/time.h unistd.h sys/sockio.h sys/select.h sys/timers.h stropts.h memory.h 20557do 20558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20560 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20563 echo $ECHO_N "(cached) $ECHO_C" >&6 20564fi 20565ac_res=`eval echo '${'$as_ac_Header'}'` 20566 { echo "$as_me:$LINENO: result: $ac_res" >&5 20567echo "${ECHO_T}$ac_res" >&6; } 20568else 20569 # Is the header compilable? 20570{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20571echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20572cat >conftest.$ac_ext <<_ACEOF 20573/* confdefs.h. */ 20574_ACEOF 20575cat confdefs.h >>conftest.$ac_ext 20576cat >>conftest.$ac_ext <<_ACEOF 20577/* end confdefs.h. */ 20578$ac_includes_default 20579#include <$ac_header> 20580_ACEOF 20581rm -f conftest.$ac_objext 20582if { (ac_try="$ac_compile" 20583case "(($ac_try" in 20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20585 *) ac_try_echo=$ac_try;; 20586esac 20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20588 (eval "$ac_compile") 2>conftest.er1 20589 ac_status=$? 20590 grep -v '^ *+' conftest.er1 >conftest.err 20591 rm -f conftest.er1 20592 cat conftest.err >&5 20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20594 (exit $ac_status); } && { 20595 test -z "$ac_c_werror_flag" || 20596 test ! -s conftest.err 20597 } && test -s conftest.$ac_objext; then 20598 ac_header_compiler=yes 20599else 20600 echo "$as_me: failed program was:" >&5 20601sed 's/^/| /' conftest.$ac_ext >&5 20602 20603 ac_header_compiler=no 20604fi 20605 20606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20607{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20608echo "${ECHO_T}$ac_header_compiler" >&6; } 20609 20610# Is the header present? 20611{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20612echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20613cat >conftest.$ac_ext <<_ACEOF 20614/* confdefs.h. */ 20615_ACEOF 20616cat confdefs.h >>conftest.$ac_ext 20617cat >>conftest.$ac_ext <<_ACEOF 20618/* end confdefs.h. */ 20619#include <$ac_header> 20620_ACEOF 20621if { (ac_try="$ac_cpp conftest.$ac_ext" 20622case "(($ac_try" in 20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20624 *) ac_try_echo=$ac_try;; 20625esac 20626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20628 ac_status=$? 20629 grep -v '^ *+' conftest.er1 >conftest.err 20630 rm -f conftest.er1 20631 cat conftest.err >&5 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); } >/dev/null && { 20634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20635 test ! -s conftest.err 20636 }; then 20637 ac_header_preproc=yes 20638else 20639 echo "$as_me: failed program was:" >&5 20640sed 's/^/| /' conftest.$ac_ext >&5 20641 20642 ac_header_preproc=no 20643fi 20644 20645rm -f conftest.err conftest.$ac_ext 20646{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20647echo "${ECHO_T}$ac_header_preproc" >&6; } 20648 20649# So? What about this header? 20650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20651 yes:no: ) 20652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20656 ac_header_preproc=yes 20657 ;; 20658 no:yes:* ) 20659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20671 20672 ;; 20673esac 20674{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20677 echo $ECHO_N "(cached) $ECHO_C" >&6 20678else 20679 eval "$as_ac_Header=\$ac_header_preproc" 20680fi 20681ac_res=`eval echo '${'$as_ac_Header'}'` 20682 { echo "$as_me:$LINENO: result: $ac_res" >&5 20683echo "${ECHO_T}$ac_res" >&6; } 20684 20685fi 20686if test `eval echo '${'$as_ac_Header'}'` = yes; then 20687 cat >>confdefs.h <<_ACEOF 20688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20689_ACEOF 20690 20691fi 20692 20693done 20694 20695 20696{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20697echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20698if test "${ac_cv_c_const+set}" = set; then 20699 echo $ECHO_N "(cached) $ECHO_C" >&6 20700else 20701 cat >conftest.$ac_ext <<_ACEOF 20702/* confdefs.h. */ 20703_ACEOF 20704cat confdefs.h >>conftest.$ac_ext 20705cat >>conftest.$ac_ext <<_ACEOF 20706/* end confdefs.h. */ 20707 20708int 20709main () 20710{ 20711/* FIXME: Include the comments suggested by Paul. */ 20712#ifndef __cplusplus 20713 /* Ultrix mips cc rejects this. */ 20714 typedef int charset[2]; 20715 const charset cs; 20716 /* SunOS 4.1.1 cc rejects this. */ 20717 char const *const *pcpcc; 20718 char **ppc; 20719 /* NEC SVR4.0.2 mips cc rejects this. */ 20720 struct point {int x, y;}; 20721 static struct point const zero = {0,0}; 20722 /* AIX XL C 1.02.0.0 rejects this. 20723 It does not let you subtract one const X* pointer from another in 20724 an arm of an if-expression whose if-part is not a constant 20725 expression */ 20726 const char *g = "string"; 20727 pcpcc = &g + (g ? g-g : 0); 20728 /* HPUX 7.0 cc rejects these. */ 20729 ++pcpcc; 20730 ppc = (char**) pcpcc; 20731 pcpcc = (char const *const *) ppc; 20732 { /* SCO 3.2v4 cc rejects this. */ 20733 char *t; 20734 char const *s = 0 ? (char *) 0 : (char const *) 0; 20735 20736 *t++ = 0; 20737 if (s) return 0; 20738 } 20739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20740 int x[] = {25, 17}; 20741 const int *foo = &x[0]; 20742 ++foo; 20743 } 20744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20745 typedef const int *iptr; 20746 iptr p = 0; 20747 ++p; 20748 } 20749 { /* AIX XL C 1.02.0.0 rejects this saying 20750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20751 struct s { int j; const int *ap[3]; }; 20752 struct s *b; b->j = 5; 20753 } 20754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20755 const int foo = 10; 20756 if (!foo) return 0; 20757 } 20758 return !cs[0] && !zero.x; 20759#endif 20760 20761 ; 20762 return 0; 20763} 20764_ACEOF 20765rm -f conftest.$ac_objext 20766if { (ac_try="$ac_compile" 20767case "(($ac_try" in 20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20769 *) ac_try_echo=$ac_try;; 20770esac 20771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20772 (eval "$ac_compile") 2>conftest.er1 20773 ac_status=$? 20774 grep -v '^ *+' conftest.er1 >conftest.err 20775 rm -f conftest.er1 20776 cat conftest.err >&5 20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20778 (exit $ac_status); } && { 20779 test -z "$ac_c_werror_flag" || 20780 test ! -s conftest.err 20781 } && test -s conftest.$ac_objext; then 20782 ac_cv_c_const=yes 20783else 20784 echo "$as_me: failed program was:" >&5 20785sed 's/^/| /' conftest.$ac_ext >&5 20786 20787 ac_cv_c_const=no 20788fi 20789 20790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20791fi 20792{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20793echo "${ECHO_T}$ac_cv_c_const" >&6; } 20794if test $ac_cv_c_const = no; then 20795 20796cat >>confdefs.h <<\_ACEOF 20797#define const 20798_ACEOF 20799 20800fi 20801 20802{ echo "$as_me:$LINENO: checking for inline" >&5 20803echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 20804if test "${ac_cv_c_inline+set}" = set; then 20805 echo $ECHO_N "(cached) $ECHO_C" >&6 20806else 20807 ac_cv_c_inline=no 20808for ac_kw in inline __inline__ __inline; do 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#ifndef __cplusplus 20816typedef int foo_t; 20817static $ac_kw foo_t static_foo () {return 0; } 20818$ac_kw foo_t foo () {return 0; } 20819#endif 20820 20821_ACEOF 20822rm -f conftest.$ac_objext 20823if { (ac_try="$ac_compile" 20824case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827esac 20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20829 (eval "$ac_compile") 2>conftest.er1 20830 ac_status=$? 20831 grep -v '^ *+' conftest.er1 >conftest.err 20832 rm -f conftest.er1 20833 cat conftest.err >&5 20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20835 (exit $ac_status); } && { 20836 test -z "$ac_c_werror_flag" || 20837 test ! -s conftest.err 20838 } && test -s conftest.$ac_objext; then 20839 ac_cv_c_inline=$ac_kw 20840else 20841 echo "$as_me: failed program was:" >&5 20842sed 's/^/| /' conftest.$ac_ext >&5 20843 20844 20845fi 20846 20847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20848 test "$ac_cv_c_inline" != no && break 20849done 20850 20851fi 20852{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 20853echo "${ECHO_T}$ac_cv_c_inline" >&6; } 20854 20855 20856case $ac_cv_c_inline in 20857 inline | yes) ;; 20858 *) 20859 case $ac_cv_c_inline in 20860 no) ac_val=;; 20861 *) ac_val=$ac_cv_c_inline;; 20862 esac 20863 cat >>confdefs.h <<_ACEOF 20864#ifndef __cplusplus 20865#define inline $ac_val 20866#endif 20867_ACEOF 20868 ;; 20869esac 20870 20871{ echo "$as_me:$LINENO: checking for size_t" >&5 20872echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 20873if test "${ac_cv_type_size_t+set}" = set; then 20874 echo $ECHO_N "(cached) $ECHO_C" >&6 20875else 20876 cat >conftest.$ac_ext <<_ACEOF 20877/* confdefs.h. */ 20878_ACEOF 20879cat confdefs.h >>conftest.$ac_ext 20880cat >>conftest.$ac_ext <<_ACEOF 20881/* end confdefs.h. */ 20882$ac_includes_default 20883typedef size_t ac__type_new_; 20884int 20885main () 20886{ 20887if ((ac__type_new_ *) 0) 20888 return 0; 20889if (sizeof (ac__type_new_)) 20890 return 0; 20891 ; 20892 return 0; 20893} 20894_ACEOF 20895rm -f conftest.$ac_objext 20896if { (ac_try="$ac_compile" 20897case "(($ac_try" in 20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20899 *) ac_try_echo=$ac_try;; 20900esac 20901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20902 (eval "$ac_compile") 2>conftest.er1 20903 ac_status=$? 20904 grep -v '^ *+' conftest.er1 >conftest.err 20905 rm -f conftest.er1 20906 cat conftest.err >&5 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); } && { 20909 test -z "$ac_c_werror_flag" || 20910 test ! -s conftest.err 20911 } && test -s conftest.$ac_objext; then 20912 ac_cv_type_size_t=yes 20913else 20914 echo "$as_me: failed program was:" >&5 20915sed 's/^/| /' conftest.$ac_ext >&5 20916 20917 ac_cv_type_size_t=no 20918fi 20919 20920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20921fi 20922{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20923echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 20924if test $ac_cv_type_size_t = yes; then 20925 : 20926else 20927 20928cat >>confdefs.h <<_ACEOF 20929#define size_t unsigned int 20930_ACEOF 20931 20932fi 20933 20934{ echo "$as_me:$LINENO: checking for ssize_t" >&5 20935echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 20936if test "${ac_cv_type_ssize_t+set}" = set; then 20937 echo $ECHO_N "(cached) $ECHO_C" >&6 20938else 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$ac_includes_default 20946typedef ssize_t ac__type_new_; 20947int 20948main () 20949{ 20950if ((ac__type_new_ *) 0) 20951 return 0; 20952if (sizeof (ac__type_new_)) 20953 return 0; 20954 ; 20955 return 0; 20956} 20957_ACEOF 20958rm -f conftest.$ac_objext 20959if { (ac_try="$ac_compile" 20960case "(($ac_try" in 20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20962 *) ac_try_echo=$ac_try;; 20963esac 20964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20965 (eval "$ac_compile") 2>conftest.er1 20966 ac_status=$? 20967 grep -v '^ *+' conftest.er1 >conftest.err 20968 rm -f conftest.er1 20969 cat conftest.err >&5 20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20971 (exit $ac_status); } && { 20972 test -z "$ac_c_werror_flag" || 20973 test ! -s conftest.err 20974 } && test -s conftest.$ac_objext; then 20975 ac_cv_type_ssize_t=yes 20976else 20977 echo "$as_me: failed program was:" >&5 20978sed 's/^/| /' conftest.$ac_ext >&5 20979 20980 ac_cv_type_ssize_t=no 20981fi 20982 20983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20984fi 20985{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 20986echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 20987if test $ac_cv_type_ssize_t = yes; then 20988 : 20989else 20990 20991cat >>confdefs.h <<_ACEOF 20992#define ssize_t signed 20993_ACEOF 20994 20995fi 20996 20997{ echo "$as_me:$LINENO: checking for uintptr_t" >&5 20998echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 20999if test "${ac_cv_type_uintptr_t+set}" = set; then 21000 echo $ECHO_N "(cached) $ECHO_C" >&6 21001else 21002 cat >conftest.$ac_ext <<_ACEOF 21003/* confdefs.h. */ 21004_ACEOF 21005cat confdefs.h >>conftest.$ac_ext 21006cat >>conftest.$ac_ext <<_ACEOF 21007/* end confdefs.h. */ 21008$ac_includes_default 21009typedef uintptr_t ac__type_new_; 21010int 21011main () 21012{ 21013if ((ac__type_new_ *) 0) 21014 return 0; 21015if (sizeof (ac__type_new_)) 21016 return 0; 21017 ; 21018 return 0; 21019} 21020_ACEOF 21021rm -f conftest.$ac_objext 21022if { (ac_try="$ac_compile" 21023case "(($ac_try" in 21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21025 *) ac_try_echo=$ac_try;; 21026esac 21027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21028 (eval "$ac_compile") 2>conftest.er1 21029 ac_status=$? 21030 grep -v '^ *+' conftest.er1 >conftest.err 21031 rm -f conftest.er1 21032 cat conftest.err >&5 21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21034 (exit $ac_status); } && { 21035 test -z "$ac_c_werror_flag" || 21036 test ! -s conftest.err 21037 } && test -s conftest.$ac_objext; then 21038 ac_cv_type_uintptr_t=yes 21039else 21040 echo "$as_me: failed program was:" >&5 21041sed 's/^/| /' conftest.$ac_ext >&5 21042 21043 ac_cv_type_uintptr_t=no 21044fi 21045 21046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21047fi 21048{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 21049echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } 21050if test $ac_cv_type_uintptr_t = yes; then 21051 : 21052else 21053 21054cat >>confdefs.h <<_ACEOF 21055#define uintptr_t unsigned long 21056_ACEOF 21057 21058fi 21059 21060{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21061echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 21062if test "${ac_cv_header_time+set}" = set; then 21063 echo $ECHO_N "(cached) $ECHO_C" >&6 21064else 21065 cat >conftest.$ac_ext <<_ACEOF 21066/* confdefs.h. */ 21067_ACEOF 21068cat confdefs.h >>conftest.$ac_ext 21069cat >>conftest.$ac_ext <<_ACEOF 21070/* end confdefs.h. */ 21071#include <sys/types.h> 21072#include <sys/time.h> 21073#include <time.h> 21074 21075int 21076main () 21077{ 21078if ((struct tm *) 0) 21079return 0; 21080 ; 21081 return 0; 21082} 21083_ACEOF 21084rm -f conftest.$ac_objext 21085if { (ac_try="$ac_compile" 21086case "(($ac_try" in 21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21088 *) ac_try_echo=$ac_try;; 21089esac 21090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21091 (eval "$ac_compile") 2>conftest.er1 21092 ac_status=$? 21093 grep -v '^ *+' conftest.er1 >conftest.err 21094 rm -f conftest.er1 21095 cat conftest.err >&5 21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); } && { 21098 test -z "$ac_c_werror_flag" || 21099 test ! -s conftest.err 21100 } && test -s conftest.$ac_objext; then 21101 ac_cv_header_time=yes 21102else 21103 echo "$as_me: failed program was:" >&5 21104sed 's/^/| /' conftest.$ac_ext >&5 21105 21106 ac_cv_header_time=no 21107fi 21108 21109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21110fi 21111{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21112echo "${ECHO_T}$ac_cv_header_time" >&6; } 21113if test $ac_cv_header_time = yes; then 21114 21115cat >>confdefs.h <<\_ACEOF 21116#define TIME_WITH_SYS_TIME 1 21117_ACEOF 21118 21119fi 21120 21121 21122# 21123# check for clock_gettime() in librt 21124# 21125 21126{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 21127echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 21128if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 21129 echo $ECHO_N "(cached) $ECHO_C" >&6 21130else 21131 ac_check_lib_save_LIBS=$LIBS 21132LIBS="-lrt $LIBS" 21133cat >conftest.$ac_ext <<_ACEOF 21134/* confdefs.h. */ 21135_ACEOF 21136cat confdefs.h >>conftest.$ac_ext 21137cat >>conftest.$ac_ext <<_ACEOF 21138/* end confdefs.h. */ 21139 21140/* Override any GCC internal prototype to avoid an error. 21141 Use char because int might match the return type of a GCC 21142 builtin and then its argument prototype would still apply. */ 21143#ifdef __cplusplus 21144extern "C" 21145#endif 21146char clock_gettime (); 21147int 21148main () 21149{ 21150return clock_gettime (); 21151 ; 21152 return 0; 21153} 21154_ACEOF 21155rm -f conftest.$ac_objext conftest$ac_exeext 21156if { (ac_try="$ac_link" 21157case "(($ac_try" in 21158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21159 *) ac_try_echo=$ac_try;; 21160esac 21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21162 (eval "$ac_link") 2>conftest.er1 21163 ac_status=$? 21164 grep -v '^ *+' conftest.er1 >conftest.err 21165 rm -f conftest.er1 21166 cat conftest.err >&5 21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21168 (exit $ac_status); } && { 21169 test -z "$ac_c_werror_flag" || 21170 test ! -s conftest.err 21171 } && test -s conftest$ac_exeext && 21172 $as_test_x conftest$ac_exeext; then 21173 ac_cv_lib_rt_clock_gettime=yes 21174else 21175 echo "$as_me: failed program was:" >&5 21176sed 's/^/| /' conftest.$ac_ext >&5 21177 21178 ac_cv_lib_rt_clock_gettime=no 21179fi 21180 21181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21182 conftest$ac_exeext conftest.$ac_ext 21183LIBS=$ac_check_lib_save_LIBS 21184fi 21185{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 21186echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } 21187if test $ac_cv_lib_rt_clock_gettime = yes; then 21188 cat >>confdefs.h <<_ACEOF 21189#define HAVE_LIBRT 1 21190_ACEOF 21191 21192 LIBS="-lrt $LIBS" 21193 21194fi 21195 21196 21197# 21198# check for MD5Init() in libmd5 21199# 21200 21201{ echo "$as_me:$LINENO: checking for MD5Init in -lmd5" >&5 21202echo $ECHO_N "checking for MD5Init in -lmd5... $ECHO_C" >&6; } 21203if test "${ac_cv_lib_md5_MD5Init+set}" = set; then 21204 echo $ECHO_N "(cached) $ECHO_C" >&6 21205else 21206 ac_check_lib_save_LIBS=$LIBS 21207LIBS="-lmd5 $LIBS" 21208cat >conftest.$ac_ext <<_ACEOF 21209/* confdefs.h. */ 21210_ACEOF 21211cat confdefs.h >>conftest.$ac_ext 21212cat >>conftest.$ac_ext <<_ACEOF 21213/* end confdefs.h. */ 21214 21215/* Override any GCC internal prototype to avoid an error. 21216 Use char because int might match the return type of a GCC 21217 builtin and then its argument prototype would still apply. */ 21218#ifdef __cplusplus 21219extern "C" 21220#endif 21221char MD5Init (); 21222int 21223main () 21224{ 21225return MD5Init (); 21226 ; 21227 return 0; 21228} 21229_ACEOF 21230rm -f conftest.$ac_objext conftest$ac_exeext 21231if { (ac_try="$ac_link" 21232case "(($ac_try" in 21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21234 *) ac_try_echo=$ac_try;; 21235esac 21236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21237 (eval "$ac_link") 2>conftest.er1 21238 ac_status=$? 21239 grep -v '^ *+' conftest.er1 >conftest.err 21240 rm -f conftest.er1 21241 cat conftest.err >&5 21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21243 (exit $ac_status); } && { 21244 test -z "$ac_c_werror_flag" || 21245 test ! -s conftest.err 21246 } && test -s conftest$ac_exeext && 21247 $as_test_x conftest$ac_exeext; then 21248 ac_cv_lib_md5_MD5Init=yes 21249else 21250 echo "$as_me: failed program was:" >&5 21251sed 's/^/| /' conftest.$ac_ext >&5 21252 21253 ac_cv_lib_md5_MD5Init=no 21254fi 21255 21256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21257 conftest$ac_exeext conftest.$ac_ext 21258LIBS=$ac_check_lib_save_LIBS 21259fi 21260{ echo "$as_me:$LINENO: result: $ac_cv_lib_md5_MD5Init" >&5 21261echo "${ECHO_T}$ac_cv_lib_md5_MD5Init" >&6; } 21262if test $ac_cv_lib_md5_MD5Init = yes; then 21263 cat >>confdefs.h <<_ACEOF 21264#define HAVE_LIBMD5 1 21265_ACEOF 21266 21267 LIBS="-lmd5 $LIBS" 21268 21269fi 21270 21271 21272# 21273# check if we need to #include sys/select.h explicitly 21274# 21275case $ac_cv_header_unistd_h in 21276yes) 21277{ echo "$as_me:$LINENO: checking if unistd.h defines fd_set" >&5 21278echo $ECHO_N "checking if unistd.h defines fd_set... $ECHO_C" >&6; } 21279cat >conftest.$ac_ext <<_ACEOF 21280/* confdefs.h. */ 21281_ACEOF 21282cat confdefs.h >>conftest.$ac_ext 21283cat >>conftest.$ac_ext <<_ACEOF 21284/* end confdefs.h. */ 21285 21286#include <unistd.h> 21287int 21288main () 21289{ 21290fd_set read_set; return (0); 21291 ; 21292 return 0; 21293} 21294_ACEOF 21295rm -f conftest.$ac_objext 21296if { (ac_try="$ac_compile" 21297case "(($ac_try" in 21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21299 *) ac_try_echo=$ac_try;; 21300esac 21301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21302 (eval "$ac_compile") 2>conftest.er1 21303 ac_status=$? 21304 grep -v '^ *+' conftest.er1 >conftest.err 21305 rm -f conftest.er1 21306 cat conftest.err >&5 21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21308 (exit $ac_status); } && { 21309 test -z "$ac_c_werror_flag" || 21310 test ! -s conftest.err 21311 } && test -s conftest.$ac_objext; then 21312 { echo "$as_me:$LINENO: result: yes" >&5 21313echo "${ECHO_T}yes" >&6; } 21314 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH" 21315 21316else 21317 echo "$as_me: failed program was:" >&5 21318sed 's/^/| /' conftest.$ac_ext >&5 21319 21320 { echo "$as_me:$LINENO: result: no" >&5 21321echo "${ECHO_T}no" >&6; } 21322 case ac_cv_header_sys_select_h in 21323 yes) 21324 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21325 ;; 21326 no) 21327 { { echo "$as_me:$LINENO: error: need either working unistd.h or sys/select.h" >&5 21328echo "$as_me: error: need either working unistd.h or sys/select.h" >&2;} 21329 { (exit 1); exit 1; }; } 21330 ;; 21331 esac 21332 21333fi 21334 21335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21336 ;; 21337no) 21338 case ac_cv_header_sys_select_h in 21339 yes) 21340 ISC_PLATFORM_NEEDSYSSELECTH="#define ISC_PLATFORM_NEEDSYSSELECTH 1" 21341 ;; 21342 no) 21343 { { echo "$as_me:$LINENO: error: need either unistd.h or sys/select.h" >&5 21344echo "$as_me: error: need either unistd.h or sys/select.h" >&2;} 21345 { (exit 1); exit 1; }; } 21346 ;; 21347 esac 21348 ;; 21349esac 21350 21351 21352# 21353# Find the machine's endian flavor. 21354# 21355{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 21356echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 21357if test "${ac_cv_c_bigendian+set}" = set; then 21358 echo $ECHO_N "(cached) $ECHO_C" >&6 21359else 21360 # See if sys/param.h defines the BYTE_ORDER macro. 21361cat >conftest.$ac_ext <<_ACEOF 21362/* confdefs.h. */ 21363_ACEOF 21364cat confdefs.h >>conftest.$ac_ext 21365cat >>conftest.$ac_ext <<_ACEOF 21366/* end confdefs.h. */ 21367#include <sys/types.h> 21368#include <sys/param.h> 21369 21370int 21371main () 21372{ 21373#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 21374 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 21375 bogus endian macros 21376#endif 21377 21378 ; 21379 return 0; 21380} 21381_ACEOF 21382rm -f conftest.$ac_objext 21383if { (ac_try="$ac_compile" 21384case "(($ac_try" in 21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21386 *) ac_try_echo=$ac_try;; 21387esac 21388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21389 (eval "$ac_compile") 2>conftest.er1 21390 ac_status=$? 21391 grep -v '^ *+' conftest.er1 >conftest.err 21392 rm -f conftest.er1 21393 cat conftest.err >&5 21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21395 (exit $ac_status); } && { 21396 test -z "$ac_c_werror_flag" || 21397 test ! -s conftest.err 21398 } && test -s conftest.$ac_objext; then 21399 # It does; now see whether it defined to BIG_ENDIAN or not. 21400cat >conftest.$ac_ext <<_ACEOF 21401/* confdefs.h. */ 21402_ACEOF 21403cat confdefs.h >>conftest.$ac_ext 21404cat >>conftest.$ac_ext <<_ACEOF 21405/* end confdefs.h. */ 21406#include <sys/types.h> 21407#include <sys/param.h> 21408 21409int 21410main () 21411{ 21412#if BYTE_ORDER != BIG_ENDIAN 21413 not big endian 21414#endif 21415 21416 ; 21417 return 0; 21418} 21419_ACEOF 21420rm -f conftest.$ac_objext 21421if { (ac_try="$ac_compile" 21422case "(($ac_try" in 21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21424 *) ac_try_echo=$ac_try;; 21425esac 21426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21427 (eval "$ac_compile") 2>conftest.er1 21428 ac_status=$? 21429 grep -v '^ *+' conftest.er1 >conftest.err 21430 rm -f conftest.er1 21431 cat conftest.err >&5 21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21433 (exit $ac_status); } && { 21434 test -z "$ac_c_werror_flag" || 21435 test ! -s conftest.err 21436 } && test -s conftest.$ac_objext; then 21437 ac_cv_c_bigendian=yes 21438else 21439 echo "$as_me: failed program was:" >&5 21440sed 's/^/| /' conftest.$ac_ext >&5 21441 21442 ac_cv_c_bigendian=no 21443fi 21444 21445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21446else 21447 echo "$as_me: failed program was:" >&5 21448sed 's/^/| /' conftest.$ac_ext >&5 21449 21450 # It does not; compile a test program. 21451if test "$cross_compiling" = yes; then 21452 # try to guess the endianness by grepping values into an object file 21453 ac_cv_c_bigendian=unknown 21454 cat >conftest.$ac_ext <<_ACEOF 21455/* confdefs.h. */ 21456_ACEOF 21457cat confdefs.h >>conftest.$ac_ext 21458cat >>conftest.$ac_ext <<_ACEOF 21459/* end confdefs.h. */ 21460short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21461short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21462void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 21463short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21464short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21465void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 21466int 21467main () 21468{ 21469 _ascii (); _ebcdic (); 21470 ; 21471 return 0; 21472} 21473_ACEOF 21474rm -f conftest.$ac_objext 21475if { (ac_try="$ac_compile" 21476case "(($ac_try" in 21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21478 *) ac_try_echo=$ac_try;; 21479esac 21480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21481 (eval "$ac_compile") 2>conftest.er1 21482 ac_status=$? 21483 grep -v '^ *+' conftest.er1 >conftest.err 21484 rm -f conftest.er1 21485 cat conftest.err >&5 21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21487 (exit $ac_status); } && { 21488 test -z "$ac_c_werror_flag" || 21489 test ! -s conftest.err 21490 } && test -s conftest.$ac_objext; then 21491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 21492 ac_cv_c_bigendian=yes 21493fi 21494if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21495 if test "$ac_cv_c_bigendian" = unknown; then 21496 ac_cv_c_bigendian=no 21497 else 21498 # finding both strings is unlikely to happen, but who knows? 21499 ac_cv_c_bigendian=unknown 21500 fi 21501fi 21502else 21503 echo "$as_me: failed program was:" >&5 21504sed 's/^/| /' conftest.$ac_ext >&5 21505 21506 21507fi 21508 21509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21510else 21511 cat >conftest.$ac_ext <<_ACEOF 21512/* confdefs.h. */ 21513_ACEOF 21514cat confdefs.h >>conftest.$ac_ext 21515cat >>conftest.$ac_ext <<_ACEOF 21516/* end confdefs.h. */ 21517$ac_includes_default 21518int 21519main () 21520{ 21521 21522 /* Are we little or big endian? From Harbison&Steele. */ 21523 union 21524 { 21525 long int l; 21526 char c[sizeof (long int)]; 21527 } u; 21528 u.l = 1; 21529 return u.c[sizeof (long int) - 1] == 1; 21530 21531 ; 21532 return 0; 21533} 21534_ACEOF 21535rm -f conftest$ac_exeext 21536if { (ac_try="$ac_link" 21537case "(($ac_try" in 21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21539 *) ac_try_echo=$ac_try;; 21540esac 21541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21542 (eval "$ac_link") 2>&5 21543 ac_status=$? 21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21546 { (case "(($ac_try" in 21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21548 *) ac_try_echo=$ac_try;; 21549esac 21550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21551 (eval "$ac_try") 2>&5 21552 ac_status=$? 21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21554 (exit $ac_status); }; }; then 21555 ac_cv_c_bigendian=no 21556else 21557 echo "$as_me: program exited with status $ac_status" >&5 21558echo "$as_me: failed program was:" >&5 21559sed 's/^/| /' conftest.$ac_ext >&5 21560 21561( exit $ac_status ) 21562ac_cv_c_bigendian=yes 21563fi 21564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21565fi 21566 21567 21568fi 21569 21570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21571fi 21572{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21573echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 21574case $ac_cv_c_bigendian in 21575 yes) 21576 21577cat >>confdefs.h <<\_ACEOF 21578#define WORDS_BIGENDIAN 1 21579_ACEOF 21580 ;; 21581 no) 21582 ;; 21583 *) 21584 { { echo "$as_me:$LINENO: error: unknown endianness 21585presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21586echo "$as_me: error: unknown endianness 21587presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21588 { (exit 1); exit 1; }; } ;; 21589esac 21590 21591 21592 21593# Check whether --with-irs-gr was given. 21594if test "${with_irs_gr+set}" = set; then 21595 withval=$with_irs_gr; want_irs_gr="$withval" 21596else 21597 want_irs_gr="no" 21598fi 21599 21600case "$want_irs_gr" in 21601yes) WANT_IRS_GR="#define WANT_IRS_GR 1" 21602 WANT_IRS_GR_OBJS="\${WANT_IRS_GR_OBJS}" 21603 ;; 21604*) WANT_IRS_GR="#undef WANT_IRS_GR" WANT_IRS_GR_OBJS="";; 21605esac 21606 21607 21608 21609 21610# Check whether --with-irs-pw was given. 21611if test "${with_irs_pw+set}" = set; then 21612 withval=$with_irs_pw; want_irs_pw="$withval" 21613else 21614 want_irs_pw="no" 21615fi 21616 21617case "$want_irs_pw" in 21618yes) WANT_IRS_PW="#define WANT_IRS_PW 1" 21619 WANT_IRS_PW_OBJS="\${WANT_IRS_PW_OBJS}";; 21620*) WANT_IRS_PW="#undef WANT_IRS_PW" WANT_IRS_PW_OBJS="";; 21621esac 21622 21623 21624 21625 21626# Check whether --with-irs-nis was given. 21627if test "${with_irs_nis+set}" = set; then 21628 withval=$with_irs_nis; want_irs_nis="$withval" 21629else 21630 want_irs_nis="no" 21631fi 21632 21633case "$want_irs_nis" in 21634yes) 21635 WANT_IRS_NIS="#define WANT_IRS_NIS 1" 21636 WANT_IRS_NIS_OBJS="\${WANT_IRS_NIS_OBJS}" 21637 case "$want_irs_gr" in 21638 yes) 21639 WANT_IRS_NISGR_OBJS="\${WANT_IRS_NISGR_OBJS}";; 21640 *) 21641 WANT_IRS_NISGR_OBJS="";; 21642 esac 21643 case "$want_irs_pw" in 21644 yes) 21645 WANT_IRS_NISPW_OBJS="\${WANT_IRS_NISPW_OBJS}";; 21646 *) 21647 WANT_IRS_NISPW_OBJS="";; 21648 esac 21649 ;; 21650*) 21651 WANT_IRS_NIS="#undef WANT_IRS_NIS" 21652 WANT_IRS_NIS_OBJS="" 21653 WANT_IRS_NISGR_OBJS="" 21654 WANT_IRS_NISPW_OBJS="";; 21655esac 21656 21657 21658 21659 21660if test "$cross_compiling" = yes; then 21661 WANT_IRS_DBPW_OBJS="" 21662 21663else 21664 cat >conftest.$ac_ext <<_ACEOF 21665/* confdefs.h. */ 21666_ACEOF 21667cat confdefs.h >>conftest.$ac_ext 21668cat >>conftest.$ac_ext <<_ACEOF 21669/* end confdefs.h. */ 21670 21671#ifdef HAVE_DB_H 21672int have_db_h = 1; 21673#else 21674int have_db_h = 0; 21675#endif 21676main() { return(!have_db_h); } 21677 21678_ACEOF 21679rm -f conftest$ac_exeext 21680if { (ac_try="$ac_link" 21681case "(($ac_try" in 21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21683 *) ac_try_echo=$ac_try;; 21684esac 21685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21686 (eval "$ac_link") 2>&5 21687 ac_status=$? 21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21690 { (case "(($ac_try" in 21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21692 *) ac_try_echo=$ac_try;; 21693esac 21694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21695 (eval "$ac_try") 2>&5 21696 ac_status=$? 21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21698 (exit $ac_status); }; }; then 21699 WANT_IRS_DBPW_OBJS="\${WANT_IRS_DBPW_OBJS}" 21700 21701else 21702 echo "$as_me: program exited with status $ac_status" >&5 21703echo "$as_me: failed program was:" >&5 21704sed 's/^/| /' conftest.$ac_ext >&5 21705 21706( exit $ac_status ) 21707WANT_IRS_DBPW_OBJS="" 21708 21709fi 21710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21711fi 21712 21713 21714 21715 21716# 21717# was --with-randomdev specified? 21718# 21719{ echo "$as_me:$LINENO: checking for random device" >&5 21720echo $ECHO_N "checking for random device... $ECHO_C" >&6; } 21721 21722# Check whether --with-randomdev was given. 21723if test "${with_randomdev+set}" = set; then 21724 withval=$with_randomdev; use_randomdev="$withval" 21725else 21726 use_randomdev="unspec" 21727fi 21728 21729 21730case "$use_randomdev" in 21731 unspec) 21732 case "$host" in 21733 *-openbsd*) 21734 devrandom=/dev/srandom 21735 ;; 21736 *) 21737 devrandom=/dev/random 21738 ;; 21739 esac 21740 { echo "$as_me:$LINENO: result: $devrandom" >&5 21741echo "${ECHO_T}$devrandom" >&6; } 21742 as_ac_File=`echo "ac_cv_file_$devrandom" | $as_tr_sh` 21743{ echo "$as_me:$LINENO: checking for $devrandom" >&5 21744echo $ECHO_N "checking for $devrandom... $ECHO_C" >&6; } 21745if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21746 echo $ECHO_N "(cached) $ECHO_C" >&6 21747else 21748 test "$cross_compiling" = yes && 21749 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21750echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21751 { (exit 1); exit 1; }; } 21752if test -r "$devrandom"; then 21753 eval "$as_ac_File=yes" 21754else 21755 eval "$as_ac_File=no" 21756fi 21757fi 21758ac_res=`eval echo '${'$as_ac_File'}'` 21759 { echo "$as_me:$LINENO: result: $ac_res" >&5 21760echo "${ECHO_T}$ac_res" >&6; } 21761if test `eval echo '${'$as_ac_File'}'` = yes; then 21762 cat >>confdefs.h <<_ACEOF 21763#define PATH_RANDOMDEV "$devrandom" 21764_ACEOF 21765 21766fi 21767 21768 ;; 21769 yes) 21770 { { echo "$as_me:$LINENO: error: --with-randomdev must specify a path" >&5 21771echo "$as_me: error: --with-randomdev must specify a path" >&2;} 21772 { (exit 1); exit 1; }; } 21773 ;; 21774 *) 21775 cat >>confdefs.h <<_ACEOF 21776#define PATH_RANDOMDEV "$use_randomdev" 21777_ACEOF 21778 21779 { echo "$as_me:$LINENO: result: using \"$use_randomdev\"" >&5 21780echo "${ECHO_T}using \"$use_randomdev\"" >&6; } 21781 ;; 21782esac 21783 21784# 21785# Begin pthreads checking. 21786# 21787# First, decide whether to use multithreading or not. 21788# 21789# Enable multithreading by default on systems where it is known 21790# to work well, and where debugging of multithreaded programs 21791# is supported. 21792# 21793 21794{ echo "$as_me:$LINENO: checking whether to build with thread support" >&5 21795echo $ECHO_N "checking whether to build with thread support... $ECHO_C" >&6; } 21796 21797case $host in 21798*-dec-osf*) 21799 use_threads=true ;; 21800*-solaris2.[0-6]) 21801 # Thread signals are broken on Solaris 2.6; they are sometimes 21802 # delivered to the wrong thread. 21803 use_threads=false ;; 21804*-solaris*) 21805 use_threads=true ;; 21806*-ibm-aix*) 21807 use_threads=true ;; 21808*-hp-hpux10*) 21809 use_threads=false ;; 21810*-hp-hpux11*) 21811 use_threads=true ;; 21812*-sgi-irix*) 21813 use_threads=true ;; 21814*-sco-sysv*uw*|*-*-sysv*UnixWare*) 21815 # UnixWare 21816 use_threads=false ;; 21817*-*-sysv*OpenUNIX*) 21818 # UnixWare 21819 use_threads=true ;; 21820*-netbsd*) 21821 if test -r /usr/lib/libpthread.so ; then 21822 use_threads=true 21823 else 21824 # Socket I/O optimizations introduced in 9.2 expose a 21825 # bug in unproven-pthreads; see PR #12650 21826 use_threads=false 21827 fi 21828 ;; 21829*-openbsd*) 21830 # OpenBSD users have reported that named dumps core on 21831 # startup when built with threads. 21832 use_threads=false ;; 21833*-freebsd*) 21834 use_threads=false ;; 21835*-bsdi234*) 21836 # Thread signals do not work reliably on some versions of BSD/OS. 21837 use_threads=false ;; 21838*-bsdi5*) 21839 use_threads=true ;; 21840*-linux*) 21841 # Threads are disabled on Linux by default because most 21842 # Linux kernels produce unusable core dumps from multithreaded 21843 # programs, and because of limitations in setuid(). 21844 use_threads=false ;; 21845*) 21846 use_threads=false ;; 21847esac 21848 21849# Check whether --enable-threads was given. 21850if test "${enable_threads+set}" = set; then 21851 enableval=$enable_threads; 21852fi 21853 21854case "$enable_threads" in 21855 yes) 21856 use_threads=true 21857 ;; 21858 no) 21859 use_threads=false 21860 ;; 21861 '') 21862 # Use system-dependent default 21863 ;; 21864 *) 21865 { { echo "$as_me:$LINENO: error: --enable-threads takes yes or no" >&5 21866echo "$as_me: error: --enable-threads takes yes or no" >&2;} 21867 { (exit 1); exit 1; }; } 21868 ;; 21869esac 21870 21871if $use_threads 21872then 21873 { echo "$as_me:$LINENO: result: yes" >&5 21874echo "${ECHO_T}yes" >&6; } 21875else 21876 { echo "$as_me:$LINENO: result: no" >&5 21877echo "${ECHO_T}no" >&6; } 21878fi 21879 21880if $use_threads 21881then 21882 # 21883 # Search for / configure pthreads in a system-dependent fashion. 21884 # 21885 case "$host" in 21886 *-netbsd*) 21887 # NetBSD has multiple pthreads implementations. The 21888 # recommended one to use is "unproven-pthreads". The 21889 # older "mit-pthreads" may also work on some NetBSD 21890 # versions. The PTL2 thread library does not 21891 # currently work with bind9, but can be chosen with 21892 # the --with-ptl2 option for those who wish to 21893 # experiment with it. 21894 CC="gcc" 21895 { echo "$as_me:$LINENO: checking which NetBSD thread library to use" >&5 21896echo $ECHO_N "checking which NetBSD thread library to use... $ECHO_C" >&6; } 21897 21898 21899# Check whether --with-ptl2 was given. 21900if test "${with_ptl2+set}" = set; then 21901 withval=$with_ptl2; use_ptl2="$withval" 21902else 21903 use_ptl2="no" 21904fi 21905 21906 21907 : ${LOCALBASE:=/usr/pkg} 21908 21909 if test "X$use_ptl2" = "Xyes" 21910 then 21911 { echo "$as_me:$LINENO: result: PTL2" >&5 21912echo "${ECHO_T}PTL2" >&6; } 21913 { echo "$as_me:$LINENO: WARNING: linking with PTL2 is highly experimental and not expected to work" >&5 21914echo "$as_me: WARNING: linking with PTL2 is highly experimental and not expected to work" >&2;} 21915 CC=ptlgcc 21916 else 21917 if test -r /usr/lib/libpthread.so 21918 then 21919 { echo "$as_me:$LINENO: result: native" >&5 21920echo "${ECHO_T}native" >&6; } 21921 LIBS="-lpthread $LIBS" 21922 else 21923 if test ! -d $LOCALBASE/pthreads 21924 then 21925 { echo "$as_me:$LINENO: result: none" >&5 21926echo "${ECHO_T}none" >&6; } 21927 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 21928echo "$as_me: error: \"could not find thread libraries\"" >&2;} 21929 { (exit 1); exit 1; }; } 21930 fi 21931 21932 if $use_threads 21933 then 21934 { echo "$as_me:$LINENO: result: mit-pthreads/unproven-pthreads" >&5 21935echo "${ECHO_T}mit-pthreads/unproven-pthreads" >&6; } 21936 pkg="$LOCALBASE/pthreads" 21937 lib1="-L$pkg/lib -Wl,-R$pkg/lib" 21938 lib2="-lpthread -lm -lgcc -lpthread" 21939 LIBS="$lib1 $lib2 $LIBS" 21940 CPPFLAGS="$CPPFLAGS -I$pkg/include" 21941 STD_CINCLUDES="$STD_CINCLUDES -I$pkg/include" 21942 fi 21943 fi 21944 fi 21945 ;; 21946 *-freebsd*) 21947 # We don't want to set -lpthread as that break 21948 # the ability to choose threads library at final 21949 # link time and is not valid for all architectures. 21950 21951 PTHREAD= 21952 if test "X$GCC" = "Xyes"; then 21953 saved_cc="$CC" 21954 CC="$CC -pthread" 21955 { echo "$as_me:$LINENO: checking for gcc -pthread support" >&5 21956echo $ECHO_N "checking for gcc -pthread support... $ECHO_C" >&6; }; 21957 cat >conftest.$ac_ext <<_ACEOF 21958/* confdefs.h. */ 21959_ACEOF 21960cat confdefs.h >>conftest.$ac_ext 21961cat >>conftest.$ac_ext <<_ACEOF 21962/* end confdefs.h. */ 21963#include <pthread.h> 21964int 21965main () 21966{ 21967printf("%x\n", pthread_create); 21968 ; 21969 return 0; 21970} 21971_ACEOF 21972rm -f conftest.$ac_objext conftest$ac_exeext 21973if { (ac_try="$ac_link" 21974case "(($ac_try" in 21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21976 *) ac_try_echo=$ac_try;; 21977esac 21978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21979 (eval "$ac_link") 2>conftest.er1 21980 ac_status=$? 21981 grep -v '^ *+' conftest.er1 >conftest.err 21982 rm -f conftest.er1 21983 cat conftest.err >&5 21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21985 (exit $ac_status); } && { 21986 test -z "$ac_c_werror_flag" || 21987 test ! -s conftest.err 21988 } && test -s conftest$ac_exeext && 21989 $as_test_x conftest$ac_exeext; then 21990 PTHREAD="yes" 21991 { echo "$as_me:$LINENO: result: yes" >&5 21992echo "${ECHO_T}yes" >&6; } 21993else 21994 echo "$as_me: failed program was:" >&5 21995sed 's/^/| /' conftest.$ac_ext >&5 21996 21997 { echo "$as_me:$LINENO: result: no" >&5 21998echo "${ECHO_T}no" >&6; } 21999fi 22000 22001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22002 conftest$ac_exeext conftest.$ac_ext 22003 CC="$saved_cc" 22004 fi 22005 if test "X$PTHREAD" != "Xyes"; then 22006 22007{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 22008echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 22009if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 22010 echo $ECHO_N "(cached) $ECHO_C" >&6 22011else 22012 ac_check_lib_save_LIBS=$LIBS 22013LIBS="-lpthread $LIBS" 22014cat >conftest.$ac_ext <<_ACEOF 22015/* confdefs.h. */ 22016_ACEOF 22017cat confdefs.h >>conftest.$ac_ext 22018cat >>conftest.$ac_ext <<_ACEOF 22019/* end confdefs.h. */ 22020 22021/* Override any GCC internal prototype to avoid an error. 22022 Use char because int might match the return type of a GCC 22023 builtin and then its argument prototype would still apply. */ 22024#ifdef __cplusplus 22025extern "C" 22026#endif 22027char pthread_create (); 22028int 22029main () 22030{ 22031return pthread_create (); 22032 ; 22033 return 0; 22034} 22035_ACEOF 22036rm -f conftest.$ac_objext conftest$ac_exeext 22037if { (ac_try="$ac_link" 22038case "(($ac_try" in 22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22040 *) ac_try_echo=$ac_try;; 22041esac 22042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22043 (eval "$ac_link") 2>conftest.er1 22044 ac_status=$? 22045 grep -v '^ *+' conftest.er1 >conftest.err 22046 rm -f conftest.er1 22047 cat conftest.err >&5 22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22049 (exit $ac_status); } && { 22050 test -z "$ac_c_werror_flag" || 22051 test ! -s conftest.err 22052 } && test -s conftest$ac_exeext && 22053 $as_test_x conftest$ac_exeext; then 22054 ac_cv_lib_pthread_pthread_create=yes 22055else 22056 echo "$as_me: failed program was:" >&5 22057sed 's/^/| /' conftest.$ac_ext >&5 22058 22059 ac_cv_lib_pthread_pthread_create=no 22060fi 22061 22062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22063 conftest$ac_exeext conftest.$ac_ext 22064LIBS=$ac_check_lib_save_LIBS 22065fi 22066{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 22067echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 22068if test $ac_cv_lib_pthread_pthread_create = yes; then 22069 cat >>confdefs.h <<_ACEOF 22070#define HAVE_LIBPTHREAD 1 22071_ACEOF 22072 22073 LIBS="-lpthread $LIBS" 22074 22075else 22076 22077{ echo "$as_me:$LINENO: checking for thread_create in -lthr" >&5 22078echo $ECHO_N "checking for thread_create in -lthr... $ECHO_C" >&6; } 22079if test "${ac_cv_lib_thr_thread_create+set}" = set; then 22080 echo $ECHO_N "(cached) $ECHO_C" >&6 22081else 22082 ac_check_lib_save_LIBS=$LIBS 22083LIBS="-lthr $LIBS" 22084cat >conftest.$ac_ext <<_ACEOF 22085/* confdefs.h. */ 22086_ACEOF 22087cat confdefs.h >>conftest.$ac_ext 22088cat >>conftest.$ac_ext <<_ACEOF 22089/* end confdefs.h. */ 22090 22091/* Override any GCC internal prototype to avoid an error. 22092 Use char because int might match the return type of a GCC 22093 builtin and then its argument prototype would still apply. */ 22094#ifdef __cplusplus 22095extern "C" 22096#endif 22097char thread_create (); 22098int 22099main () 22100{ 22101return thread_create (); 22102 ; 22103 return 0; 22104} 22105_ACEOF 22106rm -f conftest.$ac_objext conftest$ac_exeext 22107if { (ac_try="$ac_link" 22108case "(($ac_try" in 22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22110 *) ac_try_echo=$ac_try;; 22111esac 22112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22113 (eval "$ac_link") 2>conftest.er1 22114 ac_status=$? 22115 grep -v '^ *+' conftest.er1 >conftest.err 22116 rm -f conftest.er1 22117 cat conftest.err >&5 22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22119 (exit $ac_status); } && { 22120 test -z "$ac_c_werror_flag" || 22121 test ! -s conftest.err 22122 } && test -s conftest$ac_exeext && 22123 $as_test_x conftest$ac_exeext; then 22124 ac_cv_lib_thr_thread_create=yes 22125else 22126 echo "$as_me: failed program was:" >&5 22127sed 's/^/| /' conftest.$ac_ext >&5 22128 22129 ac_cv_lib_thr_thread_create=no 22130fi 22131 22132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22133 conftest$ac_exeext conftest.$ac_ext 22134LIBS=$ac_check_lib_save_LIBS 22135fi 22136{ echo "$as_me:$LINENO: result: $ac_cv_lib_thr_thread_create" >&5 22137echo "${ECHO_T}$ac_cv_lib_thr_thread_create" >&6; } 22138if test $ac_cv_lib_thr_thread_create = yes; then 22139 cat >>confdefs.h <<_ACEOF 22140#define HAVE_LIBTHR 1 22141_ACEOF 22142 22143 LIBS="-lthr $LIBS" 22144 22145else 22146 22147{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 22148echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } 22149if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 22150 echo $ECHO_N "(cached) $ECHO_C" >&6 22151else 22152 ac_check_lib_save_LIBS=$LIBS 22153LIBS="-lc_r $LIBS" 22154cat >conftest.$ac_ext <<_ACEOF 22155/* confdefs.h. */ 22156_ACEOF 22157cat confdefs.h >>conftest.$ac_ext 22158cat >>conftest.$ac_ext <<_ACEOF 22159/* end confdefs.h. */ 22160 22161/* Override any GCC internal prototype to avoid an error. 22162 Use char because int might match the return type of a GCC 22163 builtin and then its argument prototype would still apply. */ 22164#ifdef __cplusplus 22165extern "C" 22166#endif 22167char pthread_create (); 22168int 22169main () 22170{ 22171return pthread_create (); 22172 ; 22173 return 0; 22174} 22175_ACEOF 22176rm -f conftest.$ac_objext conftest$ac_exeext 22177if { (ac_try="$ac_link" 22178case "(($ac_try" in 22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22180 *) ac_try_echo=$ac_try;; 22181esac 22182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22183 (eval "$ac_link") 2>conftest.er1 22184 ac_status=$? 22185 grep -v '^ *+' conftest.er1 >conftest.err 22186 rm -f conftest.er1 22187 cat conftest.err >&5 22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22189 (exit $ac_status); } && { 22190 test -z "$ac_c_werror_flag" || 22191 test ! -s conftest.err 22192 } && test -s conftest$ac_exeext && 22193 $as_test_x conftest$ac_exeext; then 22194 ac_cv_lib_c_r_pthread_create=yes 22195else 22196 echo "$as_me: failed program was:" >&5 22197sed 's/^/| /' conftest.$ac_ext >&5 22198 22199 ac_cv_lib_c_r_pthread_create=no 22200fi 22201 22202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22203 conftest$ac_exeext conftest.$ac_ext 22204LIBS=$ac_check_lib_save_LIBS 22205fi 22206{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 22207echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } 22208if test $ac_cv_lib_c_r_pthread_create = yes; then 22209 cat >>confdefs.h <<_ACEOF 22210#define HAVE_LIBC_R 1 22211_ACEOF 22212 22213 LIBS="-lc_r $LIBS" 22214 22215else 22216 22217{ echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5 22218echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; } 22219if test "${ac_cv_lib_c_pthread_create+set}" = set; then 22220 echo $ECHO_N "(cached) $ECHO_C" >&6 22221else 22222 ac_check_lib_save_LIBS=$LIBS 22223LIBS="-lc $LIBS" 22224cat >conftest.$ac_ext <<_ACEOF 22225/* confdefs.h. */ 22226_ACEOF 22227cat confdefs.h >>conftest.$ac_ext 22228cat >>conftest.$ac_ext <<_ACEOF 22229/* end confdefs.h. */ 22230 22231/* Override any GCC internal prototype to avoid an error. 22232 Use char because int might match the return type of a GCC 22233 builtin and then its argument prototype would still apply. */ 22234#ifdef __cplusplus 22235extern "C" 22236#endif 22237char pthread_create (); 22238int 22239main () 22240{ 22241return pthread_create (); 22242 ; 22243 return 0; 22244} 22245_ACEOF 22246rm -f conftest.$ac_objext conftest$ac_exeext 22247if { (ac_try="$ac_link" 22248case "(($ac_try" in 22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22250 *) ac_try_echo=$ac_try;; 22251esac 22252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22253 (eval "$ac_link") 2>conftest.er1 22254 ac_status=$? 22255 grep -v '^ *+' conftest.er1 >conftest.err 22256 rm -f conftest.er1 22257 cat conftest.err >&5 22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22259 (exit $ac_status); } && { 22260 test -z "$ac_c_werror_flag" || 22261 test ! -s conftest.err 22262 } && test -s conftest$ac_exeext && 22263 $as_test_x conftest$ac_exeext; then 22264 ac_cv_lib_c_pthread_create=yes 22265else 22266 echo "$as_me: failed program was:" >&5 22267sed 's/^/| /' conftest.$ac_ext >&5 22268 22269 ac_cv_lib_c_pthread_create=no 22270fi 22271 22272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22273 conftest$ac_exeext conftest.$ac_ext 22274LIBS=$ac_check_lib_save_LIBS 22275fi 22276{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5 22277echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; } 22278if test $ac_cv_lib_c_pthread_create = yes; then 22279 cat >>confdefs.h <<_ACEOF 22280#define HAVE_LIBC 1 22281_ACEOF 22282 22283 LIBS="-lc $LIBS" 22284 22285else 22286 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 22287echo "$as_me: error: \"could not find thread libraries\"" >&2;} 22288 { (exit 1); exit 1; }; } 22289fi 22290 22291fi 22292 22293fi 22294 22295fi 22296 22297 fi 22298 ;; 22299 *) 22300 22301{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 22302echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 22303if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 22304 echo $ECHO_N "(cached) $ECHO_C" >&6 22305else 22306 ac_check_lib_save_LIBS=$LIBS 22307LIBS="-lpthread $LIBS" 22308cat >conftest.$ac_ext <<_ACEOF 22309/* confdefs.h. */ 22310_ACEOF 22311cat confdefs.h >>conftest.$ac_ext 22312cat >>conftest.$ac_ext <<_ACEOF 22313/* end confdefs.h. */ 22314 22315/* Override any GCC internal prototype to avoid an error. 22316 Use char because int might match the return type of a GCC 22317 builtin and then its argument prototype would still apply. */ 22318#ifdef __cplusplus 22319extern "C" 22320#endif 22321char pthread_create (); 22322int 22323main () 22324{ 22325return pthread_create (); 22326 ; 22327 return 0; 22328} 22329_ACEOF 22330rm -f conftest.$ac_objext conftest$ac_exeext 22331if { (ac_try="$ac_link" 22332case "(($ac_try" in 22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22334 *) ac_try_echo=$ac_try;; 22335esac 22336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22337 (eval "$ac_link") 2>conftest.er1 22338 ac_status=$? 22339 grep -v '^ *+' conftest.er1 >conftest.err 22340 rm -f conftest.er1 22341 cat conftest.err >&5 22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22343 (exit $ac_status); } && { 22344 test -z "$ac_c_werror_flag" || 22345 test ! -s conftest.err 22346 } && test -s conftest$ac_exeext && 22347 $as_test_x conftest$ac_exeext; then 22348 ac_cv_lib_pthread_pthread_create=yes 22349else 22350 echo "$as_me: failed program was:" >&5 22351sed 's/^/| /' conftest.$ac_ext >&5 22352 22353 ac_cv_lib_pthread_pthread_create=no 22354fi 22355 22356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22357 conftest$ac_exeext conftest.$ac_ext 22358LIBS=$ac_check_lib_save_LIBS 22359fi 22360{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 22361echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 22362if test $ac_cv_lib_pthread_pthread_create = yes; then 22363 cat >>confdefs.h <<_ACEOF 22364#define HAVE_LIBPTHREAD 1 22365_ACEOF 22366 22367 LIBS="-lpthread $LIBS" 22368 22369else 22370 22371{ echo "$as_me:$LINENO: checking for __pthread_create in -lpthread" >&5 22372echo $ECHO_N "checking for __pthread_create in -lpthread... $ECHO_C" >&6; } 22373if test "${ac_cv_lib_pthread___pthread_create+set}" = set; then 22374 echo $ECHO_N "(cached) $ECHO_C" >&6 22375else 22376 ac_check_lib_save_LIBS=$LIBS 22377LIBS="-lpthread $LIBS" 22378cat >conftest.$ac_ext <<_ACEOF 22379/* confdefs.h. */ 22380_ACEOF 22381cat confdefs.h >>conftest.$ac_ext 22382cat >>conftest.$ac_ext <<_ACEOF 22383/* end confdefs.h. */ 22384 22385/* Override any GCC internal prototype to avoid an error. 22386 Use char because int might match the return type of a GCC 22387 builtin and then its argument prototype would still apply. */ 22388#ifdef __cplusplus 22389extern "C" 22390#endif 22391char __pthread_create (); 22392int 22393main () 22394{ 22395return __pthread_create (); 22396 ; 22397 return 0; 22398} 22399_ACEOF 22400rm -f conftest.$ac_objext conftest$ac_exeext 22401if { (ac_try="$ac_link" 22402case "(($ac_try" in 22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22404 *) ac_try_echo=$ac_try;; 22405esac 22406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22407 (eval "$ac_link") 2>conftest.er1 22408 ac_status=$? 22409 grep -v '^ *+' conftest.er1 >conftest.err 22410 rm -f conftest.er1 22411 cat conftest.err >&5 22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22413 (exit $ac_status); } && { 22414 test -z "$ac_c_werror_flag" || 22415 test ! -s conftest.err 22416 } && test -s conftest$ac_exeext && 22417 $as_test_x conftest$ac_exeext; then 22418 ac_cv_lib_pthread___pthread_create=yes 22419else 22420 echo "$as_me: failed program was:" >&5 22421sed 's/^/| /' conftest.$ac_ext >&5 22422 22423 ac_cv_lib_pthread___pthread_create=no 22424fi 22425 22426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22427 conftest$ac_exeext conftest.$ac_ext 22428LIBS=$ac_check_lib_save_LIBS 22429fi 22430{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create" >&5 22431echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create" >&6; } 22432if test $ac_cv_lib_pthread___pthread_create = yes; then 22433 cat >>confdefs.h <<_ACEOF 22434#define HAVE_LIBPTHREAD 1 22435_ACEOF 22436 22437 LIBS="-lpthread $LIBS" 22438 22439else 22440 22441{ echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 22442echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; } 22443if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then 22444 echo $ECHO_N "(cached) $ECHO_C" >&6 22445else 22446 ac_check_lib_save_LIBS=$LIBS 22447LIBS="-lpthread $LIBS" 22448cat >conftest.$ac_ext <<_ACEOF 22449/* confdefs.h. */ 22450_ACEOF 22451cat confdefs.h >>conftest.$ac_ext 22452cat >>conftest.$ac_ext <<_ACEOF 22453/* end confdefs.h. */ 22454 22455/* Override any GCC internal prototype to avoid an error. 22456 Use char because int might match the return type of a GCC 22457 builtin and then its argument prototype would still apply. */ 22458#ifdef __cplusplus 22459extern "C" 22460#endif 22461char __pthread_create_system (); 22462int 22463main () 22464{ 22465return __pthread_create_system (); 22466 ; 22467 return 0; 22468} 22469_ACEOF 22470rm -f conftest.$ac_objext conftest$ac_exeext 22471if { (ac_try="$ac_link" 22472case "(($ac_try" in 22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22474 *) ac_try_echo=$ac_try;; 22475esac 22476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22477 (eval "$ac_link") 2>conftest.er1 22478 ac_status=$? 22479 grep -v '^ *+' conftest.er1 >conftest.err 22480 rm -f conftest.er1 22481 cat conftest.err >&5 22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22483 (exit $ac_status); } && { 22484 test -z "$ac_c_werror_flag" || 22485 test ! -s conftest.err 22486 } && test -s conftest$ac_exeext && 22487 $as_test_x conftest$ac_exeext; then 22488 ac_cv_lib_pthread___pthread_create_system=yes 22489else 22490 echo "$as_me: failed program was:" >&5 22491sed 's/^/| /' conftest.$ac_ext >&5 22492 22493 ac_cv_lib_pthread___pthread_create_system=no 22494fi 22495 22496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22497 conftest$ac_exeext conftest.$ac_ext 22498LIBS=$ac_check_lib_save_LIBS 22499fi 22500{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 22501echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; } 22502if test $ac_cv_lib_pthread___pthread_create_system = yes; then 22503 cat >>confdefs.h <<_ACEOF 22504#define HAVE_LIBPTHREAD 1 22505_ACEOF 22506 22507 LIBS="-lpthread $LIBS" 22508 22509else 22510 22511{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 22512echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; } 22513if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then 22514 echo $ECHO_N "(cached) $ECHO_C" >&6 22515else 22516 ac_check_lib_save_LIBS=$LIBS 22517LIBS="-lc_r $LIBS" 22518cat >conftest.$ac_ext <<_ACEOF 22519/* confdefs.h. */ 22520_ACEOF 22521cat confdefs.h >>conftest.$ac_ext 22522cat >>conftest.$ac_ext <<_ACEOF 22523/* end confdefs.h. */ 22524 22525/* Override any GCC internal prototype to avoid an error. 22526 Use char because int might match the return type of a GCC 22527 builtin and then its argument prototype would still apply. */ 22528#ifdef __cplusplus 22529extern "C" 22530#endif 22531char pthread_create (); 22532int 22533main () 22534{ 22535return pthread_create (); 22536 ; 22537 return 0; 22538} 22539_ACEOF 22540rm -f conftest.$ac_objext conftest$ac_exeext 22541if { (ac_try="$ac_link" 22542case "(($ac_try" in 22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22544 *) ac_try_echo=$ac_try;; 22545esac 22546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22547 (eval "$ac_link") 2>conftest.er1 22548 ac_status=$? 22549 grep -v '^ *+' conftest.er1 >conftest.err 22550 rm -f conftest.er1 22551 cat conftest.err >&5 22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22553 (exit $ac_status); } && { 22554 test -z "$ac_c_werror_flag" || 22555 test ! -s conftest.err 22556 } && test -s conftest$ac_exeext && 22557 $as_test_x conftest$ac_exeext; then 22558 ac_cv_lib_c_r_pthread_create=yes 22559else 22560 echo "$as_me: failed program was:" >&5 22561sed 's/^/| /' conftest.$ac_ext >&5 22562 22563 ac_cv_lib_c_r_pthread_create=no 22564fi 22565 22566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22567 conftest$ac_exeext conftest.$ac_ext 22568LIBS=$ac_check_lib_save_LIBS 22569fi 22570{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 22571echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; } 22572if test $ac_cv_lib_c_r_pthread_create = yes; then 22573 cat >>confdefs.h <<_ACEOF 22574#define HAVE_LIBC_R 1 22575_ACEOF 22576 22577 LIBS="-lc_r $LIBS" 22578 22579else 22580 22581{ echo "$as_me:$LINENO: checking for pthread_create in -lc" >&5 22582echo $ECHO_N "checking for pthread_create in -lc... $ECHO_C" >&6; } 22583if test "${ac_cv_lib_c_pthread_create+set}" = set; then 22584 echo $ECHO_N "(cached) $ECHO_C" >&6 22585else 22586 ac_check_lib_save_LIBS=$LIBS 22587LIBS="-lc $LIBS" 22588cat >conftest.$ac_ext <<_ACEOF 22589/* confdefs.h. */ 22590_ACEOF 22591cat confdefs.h >>conftest.$ac_ext 22592cat >>conftest.$ac_ext <<_ACEOF 22593/* end confdefs.h. */ 22594 22595/* Override any GCC internal prototype to avoid an error. 22596 Use char because int might match the return type of a GCC 22597 builtin and then its argument prototype would still apply. */ 22598#ifdef __cplusplus 22599extern "C" 22600#endif 22601char pthread_create (); 22602int 22603main () 22604{ 22605return pthread_create (); 22606 ; 22607 return 0; 22608} 22609_ACEOF 22610rm -f conftest.$ac_objext conftest$ac_exeext 22611if { (ac_try="$ac_link" 22612case "(($ac_try" in 22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22614 *) ac_try_echo=$ac_try;; 22615esac 22616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22617 (eval "$ac_link") 2>conftest.er1 22618 ac_status=$? 22619 grep -v '^ *+' conftest.er1 >conftest.err 22620 rm -f conftest.er1 22621 cat conftest.err >&5 22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22623 (exit $ac_status); } && { 22624 test -z "$ac_c_werror_flag" || 22625 test ! -s conftest.err 22626 } && test -s conftest$ac_exeext && 22627 $as_test_x conftest$ac_exeext; then 22628 ac_cv_lib_c_pthread_create=yes 22629else 22630 echo "$as_me: failed program was:" >&5 22631sed 's/^/| /' conftest.$ac_ext >&5 22632 22633 ac_cv_lib_c_pthread_create=no 22634fi 22635 22636rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22637 conftest$ac_exeext conftest.$ac_ext 22638LIBS=$ac_check_lib_save_LIBS 22639fi 22640{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_create" >&5 22641echo "${ECHO_T}$ac_cv_lib_c_pthread_create" >&6; } 22642if test $ac_cv_lib_c_pthread_create = yes; then 22643 cat >>confdefs.h <<_ACEOF 22644#define HAVE_LIBC 1 22645_ACEOF 22646 22647 LIBS="-lc $LIBS" 22648 22649else 22650 { { echo "$as_me:$LINENO: error: \"could not find thread libraries\"" >&5 22651echo "$as_me: error: \"could not find thread libraries\"" >&2;} 22652 { (exit 1); exit 1; }; } 22653fi 22654 22655fi 22656 22657fi 22658 22659fi 22660 22661fi 22662 22663 ;; 22664 esac 22665fi 22666 22667if $use_threads 22668then 22669 if test "X$GCC" = "Xyes"; then 22670 case "$host" in 22671 *-freebsd*) 22672 CC="$CC -pthread" 22673 CCOPT="$CCOPT -pthread" 22674 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22675 ;; 22676 *-openbsd*) 22677 CC="$CC -pthread" 22678 CCOPT="$CCOPT -pthread" 22679 ;; 22680 *-solaris*) 22681 LIBS="$LIBS -lthread" 22682 ;; 22683 *-ibm-aix*) 22684 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22685 ;; 22686 esac 22687 else 22688 case $host in 22689 *-dec-osf*) 22690 CC="$CC -pthread" 22691 CCOPT="$CCOPT -pthread" 22692 ;; 22693 *-solaris*) 22694 CC="$CC -mt" 22695 CCOPT="$CCOPT -mt" 22696 ;; 22697 *-ibm-aix*) 22698 STD_CDEFINES="$STD_CDEFINES -D_THREAD_SAFE" 22699 ;; 22700 *-UnixWare*) 22701 CC="$CC -Kthread" 22702 CCOPT="$CCOPT -Kthread" 22703 ;; 22704 esac 22705 fi 22706 cat >>confdefs.h <<\_ACEOF 22707#define _REENTRANT 1 22708_ACEOF 22709 22710 ALWAYS_DEFINES="-D_REENTRANT" 22711 DO_PTHREADS="#define DO_PTHREADS 1" 22712 WANT_IRS_THREADSGR_OBJS="\${WANT_IRS_THREADSGR_OBJS}" 22713 WANT_IRS_THREADSPW_OBJS="\${WANT_IRS_THREADSPW_OBJS}" 22714 case $host in 22715 ia64-hp-hpux11.*) 22716 WANT_IRS_THREADS_OBJS="";; 22717 *) 22718 WANT_IRS_THREADS_OBJS="\${WANT_IRS_THREADS_OBJS}";; 22719 esac 22720 WANT_THREADS_OBJS="\${WANT_THREADS_OBJS}" 22721 thread_dir=pthreads 22722 22723 # 22724 # We'd like to use sigwait() too 22725 # 22726 { echo "$as_me:$LINENO: checking for sigwait" >&5 22727echo $ECHO_N "checking for sigwait... $ECHO_C" >&6; } 22728if test "${ac_cv_func_sigwait+set}" = set; then 22729 echo $ECHO_N "(cached) $ECHO_C" >&6 22730else 22731 cat >conftest.$ac_ext <<_ACEOF 22732/* confdefs.h. */ 22733_ACEOF 22734cat confdefs.h >>conftest.$ac_ext 22735cat >>conftest.$ac_ext <<_ACEOF 22736/* end confdefs.h. */ 22737/* Define sigwait to an innocuous variant, in case <limits.h> declares sigwait. 22738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22739#define sigwait innocuous_sigwait 22740 22741/* System header to define __stub macros and hopefully few prototypes, 22742 which can conflict with char sigwait (); below. 22743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22744 <limits.h> exists even on freestanding compilers. */ 22745 22746#ifdef __STDC__ 22747# include <limits.h> 22748#else 22749# include <assert.h> 22750#endif 22751 22752#undef sigwait 22753 22754/* Override any GCC internal prototype to avoid an error. 22755 Use char because int might match the return type of a GCC 22756 builtin and then its argument prototype would still apply. */ 22757#ifdef __cplusplus 22758extern "C" 22759#endif 22760char sigwait (); 22761/* The GNU C library defines this for functions which it implements 22762 to always fail with ENOSYS. Some functions are actually named 22763 something starting with __ and the normal name is an alias. */ 22764#if defined __stub_sigwait || defined __stub___sigwait 22765choke me 22766#endif 22767 22768int 22769main () 22770{ 22771return sigwait (); 22772 ; 22773 return 0; 22774} 22775_ACEOF 22776rm -f conftest.$ac_objext conftest$ac_exeext 22777if { (ac_try="$ac_link" 22778case "(($ac_try" in 22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22780 *) ac_try_echo=$ac_try;; 22781esac 22782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22783 (eval "$ac_link") 2>conftest.er1 22784 ac_status=$? 22785 grep -v '^ *+' conftest.er1 >conftest.err 22786 rm -f conftest.er1 22787 cat conftest.err >&5 22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22789 (exit $ac_status); } && { 22790 test -z "$ac_c_werror_flag" || 22791 test ! -s conftest.err 22792 } && test -s conftest$ac_exeext && 22793 $as_test_x conftest$ac_exeext; then 22794 ac_cv_func_sigwait=yes 22795else 22796 echo "$as_me: failed program was:" >&5 22797sed 's/^/| /' conftest.$ac_ext >&5 22798 22799 ac_cv_func_sigwait=no 22800fi 22801 22802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22803 conftest$ac_exeext conftest.$ac_ext 22804fi 22805{ echo "$as_me:$LINENO: result: $ac_cv_func_sigwait" >&5 22806echo "${ECHO_T}$ac_cv_func_sigwait" >&6; } 22807if test $ac_cv_func_sigwait = yes; then 22808 cat >>confdefs.h <<\_ACEOF 22809#define HAVE_SIGWAIT 1 22810_ACEOF 22811 22812else 22813 { echo "$as_me:$LINENO: checking for sigwait in -lc" >&5 22814echo $ECHO_N "checking for sigwait in -lc... $ECHO_C" >&6; } 22815if test "${ac_cv_lib_c_sigwait+set}" = set; then 22816 echo $ECHO_N "(cached) $ECHO_C" >&6 22817else 22818 ac_check_lib_save_LIBS=$LIBS 22819LIBS="-lc $LIBS" 22820cat >conftest.$ac_ext <<_ACEOF 22821/* confdefs.h. */ 22822_ACEOF 22823cat confdefs.h >>conftest.$ac_ext 22824cat >>conftest.$ac_ext <<_ACEOF 22825/* end confdefs.h. */ 22826 22827/* Override any GCC internal prototype to avoid an error. 22828 Use char because int might match the return type of a GCC 22829 builtin and then its argument prototype would still apply. */ 22830#ifdef __cplusplus 22831extern "C" 22832#endif 22833char sigwait (); 22834int 22835main () 22836{ 22837return sigwait (); 22838 ; 22839 return 0; 22840} 22841_ACEOF 22842rm -f conftest.$ac_objext conftest$ac_exeext 22843if { (ac_try="$ac_link" 22844case "(($ac_try" in 22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22846 *) ac_try_echo=$ac_try;; 22847esac 22848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22849 (eval "$ac_link") 2>conftest.er1 22850 ac_status=$? 22851 grep -v '^ *+' conftest.er1 >conftest.err 22852 rm -f conftest.er1 22853 cat conftest.err >&5 22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22855 (exit $ac_status); } && { 22856 test -z "$ac_c_werror_flag" || 22857 test ! -s conftest.err 22858 } && test -s conftest$ac_exeext && 22859 $as_test_x conftest$ac_exeext; then 22860 ac_cv_lib_c_sigwait=yes 22861else 22862 echo "$as_me: failed program was:" >&5 22863sed 's/^/| /' conftest.$ac_ext >&5 22864 22865 ac_cv_lib_c_sigwait=no 22866fi 22867 22868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22869 conftest$ac_exeext conftest.$ac_ext 22870LIBS=$ac_check_lib_save_LIBS 22871fi 22872{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigwait" >&5 22873echo "${ECHO_T}$ac_cv_lib_c_sigwait" >&6; } 22874if test $ac_cv_lib_c_sigwait = yes; then 22875 cat >>confdefs.h <<\_ACEOF 22876#define HAVE_SIGWAIT 1 22877_ACEOF 22878 22879else 22880 { echo "$as_me:$LINENO: checking for sigwait in -lpthread" >&5 22881echo $ECHO_N "checking for sigwait in -lpthread... $ECHO_C" >&6; } 22882if test "${ac_cv_lib_pthread_sigwait+set}" = set; then 22883 echo $ECHO_N "(cached) $ECHO_C" >&6 22884else 22885 ac_check_lib_save_LIBS=$LIBS 22886LIBS="-lpthread $LIBS" 22887cat >conftest.$ac_ext <<_ACEOF 22888/* confdefs.h. */ 22889_ACEOF 22890cat confdefs.h >>conftest.$ac_ext 22891cat >>conftest.$ac_ext <<_ACEOF 22892/* end confdefs.h. */ 22893 22894/* Override any GCC internal prototype to avoid an error. 22895 Use char because int might match the return type of a GCC 22896 builtin and then its argument prototype would still apply. */ 22897#ifdef __cplusplus 22898extern "C" 22899#endif 22900char sigwait (); 22901int 22902main () 22903{ 22904return sigwait (); 22905 ; 22906 return 0; 22907} 22908_ACEOF 22909rm -f conftest.$ac_objext conftest$ac_exeext 22910if { (ac_try="$ac_link" 22911case "(($ac_try" in 22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22913 *) ac_try_echo=$ac_try;; 22914esac 22915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22916 (eval "$ac_link") 2>conftest.er1 22917 ac_status=$? 22918 grep -v '^ *+' conftest.er1 >conftest.err 22919 rm -f conftest.er1 22920 cat conftest.err >&5 22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22922 (exit $ac_status); } && { 22923 test -z "$ac_c_werror_flag" || 22924 test ! -s conftest.err 22925 } && test -s conftest$ac_exeext && 22926 $as_test_x conftest$ac_exeext; then 22927 ac_cv_lib_pthread_sigwait=yes 22928else 22929 echo "$as_me: failed program was:" >&5 22930sed 's/^/| /' conftest.$ac_ext >&5 22931 22932 ac_cv_lib_pthread_sigwait=no 22933fi 22934 22935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22936 conftest$ac_exeext conftest.$ac_ext 22937LIBS=$ac_check_lib_save_LIBS 22938fi 22939{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sigwait" >&5 22940echo "${ECHO_T}$ac_cv_lib_pthread_sigwait" >&6; } 22941if test $ac_cv_lib_pthread_sigwait = yes; then 22942 cat >>confdefs.h <<\_ACEOF 22943#define HAVE_SIGWAIT 1 22944_ACEOF 22945 22946else 22947 { echo "$as_me:$LINENO: checking for _Psigwait in -lpthread" >&5 22948echo $ECHO_N "checking for _Psigwait in -lpthread... $ECHO_C" >&6; } 22949if test "${ac_cv_lib_pthread__Psigwait+set}" = set; then 22950 echo $ECHO_N "(cached) $ECHO_C" >&6 22951else 22952 ac_check_lib_save_LIBS=$LIBS 22953LIBS="-lpthread $LIBS" 22954cat >conftest.$ac_ext <<_ACEOF 22955/* confdefs.h. */ 22956_ACEOF 22957cat confdefs.h >>conftest.$ac_ext 22958cat >>conftest.$ac_ext <<_ACEOF 22959/* end confdefs.h. */ 22960 22961/* Override any GCC internal prototype to avoid an error. 22962 Use char because int might match the return type of a GCC 22963 builtin and then its argument prototype would still apply. */ 22964#ifdef __cplusplus 22965extern "C" 22966#endif 22967char _Psigwait (); 22968int 22969main () 22970{ 22971return _Psigwait (); 22972 ; 22973 return 0; 22974} 22975_ACEOF 22976rm -f conftest.$ac_objext conftest$ac_exeext 22977if { (ac_try="$ac_link" 22978case "(($ac_try" in 22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22980 *) ac_try_echo=$ac_try;; 22981esac 22982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22983 (eval "$ac_link") 2>conftest.er1 22984 ac_status=$? 22985 grep -v '^ *+' conftest.er1 >conftest.err 22986 rm -f conftest.er1 22987 cat conftest.err >&5 22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22989 (exit $ac_status); } && { 22990 test -z "$ac_c_werror_flag" || 22991 test ! -s conftest.err 22992 } && test -s conftest$ac_exeext && 22993 $as_test_x conftest$ac_exeext; then 22994 ac_cv_lib_pthread__Psigwait=yes 22995else 22996 echo "$as_me: failed program was:" >&5 22997sed 's/^/| /' conftest.$ac_ext >&5 22998 22999 ac_cv_lib_pthread__Psigwait=no 23000fi 23001 23002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23003 conftest$ac_exeext conftest.$ac_ext 23004LIBS=$ac_check_lib_save_LIBS 23005fi 23006{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread__Psigwait" >&5 23007echo "${ECHO_T}$ac_cv_lib_pthread__Psigwait" >&6; } 23008if test $ac_cv_lib_pthread__Psigwait = yes; then 23009 cat >>confdefs.h <<\_ACEOF 23010#define HAVE_SIGWAIT 1 23011_ACEOF 23012 23013fi 23014 23015fi 23016 23017fi 23018 23019fi 23020 23021 23022 { echo "$as_me:$LINENO: checking for pthread_attr_getstacksize" >&5 23023echo $ECHO_N "checking for pthread_attr_getstacksize... $ECHO_C" >&6; } 23024if test "${ac_cv_func_pthread_attr_getstacksize+set}" = set; then 23025 echo $ECHO_N "(cached) $ECHO_C" >&6 23026else 23027 cat >conftest.$ac_ext <<_ACEOF 23028/* confdefs.h. */ 23029_ACEOF 23030cat confdefs.h >>conftest.$ac_ext 23031cat >>conftest.$ac_ext <<_ACEOF 23032/* end confdefs.h. */ 23033/* Define pthread_attr_getstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_getstacksize. 23034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23035#define pthread_attr_getstacksize innocuous_pthread_attr_getstacksize 23036 23037/* System header to define __stub macros and hopefully few prototypes, 23038 which can conflict with char pthread_attr_getstacksize (); below. 23039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23040 <limits.h> exists even on freestanding compilers. */ 23041 23042#ifdef __STDC__ 23043# include <limits.h> 23044#else 23045# include <assert.h> 23046#endif 23047 23048#undef pthread_attr_getstacksize 23049 23050/* Override any GCC internal prototype to avoid an error. 23051 Use char because int might match the return type of a GCC 23052 builtin and then its argument prototype would still apply. */ 23053#ifdef __cplusplus 23054extern "C" 23055#endif 23056char pthread_attr_getstacksize (); 23057/* The GNU C library defines this for functions which it implements 23058 to always fail with ENOSYS. Some functions are actually named 23059 something starting with __ and the normal name is an alias. */ 23060#if defined __stub_pthread_attr_getstacksize || defined __stub___pthread_attr_getstacksize 23061choke me 23062#endif 23063 23064int 23065main () 23066{ 23067return pthread_attr_getstacksize (); 23068 ; 23069 return 0; 23070} 23071_ACEOF 23072rm -f conftest.$ac_objext conftest$ac_exeext 23073if { (ac_try="$ac_link" 23074case "(($ac_try" in 23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23076 *) ac_try_echo=$ac_try;; 23077esac 23078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23079 (eval "$ac_link") 2>conftest.er1 23080 ac_status=$? 23081 grep -v '^ *+' conftest.er1 >conftest.err 23082 rm -f conftest.er1 23083 cat conftest.err >&5 23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23085 (exit $ac_status); } && { 23086 test -z "$ac_c_werror_flag" || 23087 test ! -s conftest.err 23088 } && test -s conftest$ac_exeext && 23089 $as_test_x conftest$ac_exeext; then 23090 ac_cv_func_pthread_attr_getstacksize=yes 23091else 23092 echo "$as_me: failed program was:" >&5 23093sed 's/^/| /' conftest.$ac_ext >&5 23094 23095 ac_cv_func_pthread_attr_getstacksize=no 23096fi 23097 23098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23099 conftest$ac_exeext conftest.$ac_ext 23100fi 23101{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getstacksize" >&5 23102echo "${ECHO_T}$ac_cv_func_pthread_attr_getstacksize" >&6; } 23103if test $ac_cv_func_pthread_attr_getstacksize = yes; then 23104 cat >>confdefs.h <<\_ACEOF 23105#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1 23106_ACEOF 23107 23108fi 23109 23110 23111 # 23112 # Additional OS-specific issues related to pthreads and sigwait. 23113 # 23114 case "$host" in 23115 # 23116 # One more place to look for sigwait. 23117 # 23118 *-freebsd*) 23119 { echo "$as_me:$LINENO: checking for sigwait in -lc_r" >&5 23120echo $ECHO_N "checking for sigwait in -lc_r... $ECHO_C" >&6; } 23121if test "${ac_cv_lib_c_r_sigwait+set}" = set; then 23122 echo $ECHO_N "(cached) $ECHO_C" >&6 23123else 23124 ac_check_lib_save_LIBS=$LIBS 23125LIBS="-lc_r $LIBS" 23126cat >conftest.$ac_ext <<_ACEOF 23127/* confdefs.h. */ 23128_ACEOF 23129cat confdefs.h >>conftest.$ac_ext 23130cat >>conftest.$ac_ext <<_ACEOF 23131/* end confdefs.h. */ 23132 23133/* Override any GCC internal prototype to avoid an error. 23134 Use char because int might match the return type of a GCC 23135 builtin and then its argument prototype would still apply. */ 23136#ifdef __cplusplus 23137extern "C" 23138#endif 23139char sigwait (); 23140int 23141main () 23142{ 23143return sigwait (); 23144 ; 23145 return 0; 23146} 23147_ACEOF 23148rm -f conftest.$ac_objext conftest$ac_exeext 23149if { (ac_try="$ac_link" 23150case "(($ac_try" in 23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23152 *) ac_try_echo=$ac_try;; 23153esac 23154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23155 (eval "$ac_link") 2>conftest.er1 23156 ac_status=$? 23157 grep -v '^ *+' conftest.er1 >conftest.err 23158 rm -f conftest.er1 23159 cat conftest.err >&5 23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23161 (exit $ac_status); } && { 23162 test -z "$ac_c_werror_flag" || 23163 test ! -s conftest.err 23164 } && test -s conftest$ac_exeext && 23165 $as_test_x conftest$ac_exeext; then 23166 ac_cv_lib_c_r_sigwait=yes 23167else 23168 echo "$as_me: failed program was:" >&5 23169sed 's/^/| /' conftest.$ac_ext >&5 23170 23171 ac_cv_lib_c_r_sigwait=no 23172fi 23173 23174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23175 conftest$ac_exeext conftest.$ac_ext 23176LIBS=$ac_check_lib_save_LIBS 23177fi 23178{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_sigwait" >&5 23179echo "${ECHO_T}$ac_cv_lib_c_r_sigwait" >&6; } 23180if test $ac_cv_lib_c_r_sigwait = yes; then 23181 cat >>confdefs.h <<\_ACEOF 23182#define HAVE_SIGWAIT 1 23183_ACEOF 23184 23185fi 23186 23187 ;; 23188 # 23189 # BSDI 3.0 through 4.0.1 needs pthread_init() to be 23190 # called before certain pthreads calls. This is deprecated 23191 # in BSD/OS 4.1. 23192 # 23193 *-bsdi3.*|*-bsdi4.0*) 23194 cat >>confdefs.h <<\_ACEOF 23195#define NEED_PTHREAD_INIT 1 23196_ACEOF 23197 23198 ;; 23199 # 23200 # LinuxThreads requires some changes to the way we 23201 # deal with signals. 23202 # 23203 *-linux*) 23204 cat >>confdefs.h <<\_ACEOF 23205#define HAVE_LINUXTHREADS 1 23206_ACEOF 23207 23208 ;; 23209 # 23210 # Ensure the right sigwait() semantics on Solaris and make 23211 # sure we call pthread_setconcurrency. 23212 # 23213 *-solaris*) 23214 cat >>confdefs.h <<\_ACEOF 23215#define _POSIX_PTHREAD_SEMANTICS 1 23216_ACEOF 23217 23218 { echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5 23219echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6; } 23220if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then 23221 echo $ECHO_N "(cached) $ECHO_C" >&6 23222else 23223 cat >conftest.$ac_ext <<_ACEOF 23224/* confdefs.h. */ 23225_ACEOF 23226cat confdefs.h >>conftest.$ac_ext 23227cat >>conftest.$ac_ext <<_ACEOF 23228/* end confdefs.h. */ 23229/* Define pthread_setconcurrency to an innocuous variant, in case <limits.h> declares pthread_setconcurrency. 23230 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23231#define pthread_setconcurrency innocuous_pthread_setconcurrency 23232 23233/* System header to define __stub macros and hopefully few prototypes, 23234 which can conflict with char pthread_setconcurrency (); below. 23235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23236 <limits.h> exists even on freestanding compilers. */ 23237 23238#ifdef __STDC__ 23239# include <limits.h> 23240#else 23241# include <assert.h> 23242#endif 23243 23244#undef pthread_setconcurrency 23245 23246/* Override any GCC internal prototype to avoid an error. 23247 Use char because int might match the return type of a GCC 23248 builtin and then its argument prototype would still apply. */ 23249#ifdef __cplusplus 23250extern "C" 23251#endif 23252char pthread_setconcurrency (); 23253/* The GNU C library defines this for functions which it implements 23254 to always fail with ENOSYS. Some functions are actually named 23255 something starting with __ and the normal name is an alias. */ 23256#if defined __stub_pthread_setconcurrency || defined __stub___pthread_setconcurrency 23257choke me 23258#endif 23259 23260int 23261main () 23262{ 23263return pthread_setconcurrency (); 23264 ; 23265 return 0; 23266} 23267_ACEOF 23268rm -f conftest.$ac_objext conftest$ac_exeext 23269if { (ac_try="$ac_link" 23270case "(($ac_try" in 23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23272 *) ac_try_echo=$ac_try;; 23273esac 23274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23275 (eval "$ac_link") 2>conftest.er1 23276 ac_status=$? 23277 grep -v '^ *+' conftest.er1 >conftest.err 23278 rm -f conftest.er1 23279 cat conftest.err >&5 23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23281 (exit $ac_status); } && { 23282 test -z "$ac_c_werror_flag" || 23283 test ! -s conftest.err 23284 } && test -s conftest$ac_exeext && 23285 $as_test_x conftest$ac_exeext; then 23286 ac_cv_func_pthread_setconcurrency=yes 23287else 23288 echo "$as_me: failed program was:" >&5 23289sed 's/^/| /' conftest.$ac_ext >&5 23290 23291 ac_cv_func_pthread_setconcurrency=no 23292fi 23293 23294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23295 conftest$ac_exeext conftest.$ac_ext 23296fi 23297{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5 23298echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6; } 23299if test $ac_cv_func_pthread_setconcurrency = yes; then 23300 cat >>confdefs.h <<\_ACEOF 23301#define CALL_PTHREAD_SETCONCURRENCY 1 23302_ACEOF 23303 23304fi 23305 23306 cat >>confdefs.h <<\_ACEOF 23307#define POSIX_GETPWUID_R 1 23308_ACEOF 23309 23310 cat >>confdefs.h <<\_ACEOF 23311#define POSIX_GETPWNAM_R 1 23312_ACEOF 23313 23314 cat >>confdefs.h <<\_ACEOF 23315#define POSIX_GETGRGID_R 1 23316_ACEOF 23317 23318 cat >>confdefs.h <<\_ACEOF 23319#define POSIX_GETGRNAM_R 1 23320_ACEOF 23321 23322 ;; 23323 *hpux11*) 23324 cat >>confdefs.h <<\_ACEOF 23325#define NEED_ENDNETGRENT_R 1 23326_ACEOF 23327 23328 cat >>confdefs.h <<\_ACEOF 23329#define _PTHREADS_DRAFT4 1 23330_ACEOF 23331 23332 ;; 23333 # 23334 # UnixWare does things its own way. 23335 # 23336 *-UnixWare*) 23337 cat >>confdefs.h <<\_ACEOF 23338#define HAVE_UNIXWARE_SIGWAIT 1 23339_ACEOF 23340 23341 ;; 23342 esac 23343 23344 # 23345 # Look for sysconf to allow detection of the number of processors. 23346 # 23347 { echo "$as_me:$LINENO: checking for sysconf" >&5 23348echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; } 23349if test "${ac_cv_func_sysconf+set}" = set; then 23350 echo $ECHO_N "(cached) $ECHO_C" >&6 23351else 23352 cat >conftest.$ac_ext <<_ACEOF 23353/* confdefs.h. */ 23354_ACEOF 23355cat confdefs.h >>conftest.$ac_ext 23356cat >>conftest.$ac_ext <<_ACEOF 23357/* end confdefs.h. */ 23358/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf. 23359 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23360#define sysconf innocuous_sysconf 23361 23362/* System header to define __stub macros and hopefully few prototypes, 23363 which can conflict with char sysconf (); below. 23364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23365 <limits.h> exists even on freestanding compilers. */ 23366 23367#ifdef __STDC__ 23368# include <limits.h> 23369#else 23370# include <assert.h> 23371#endif 23372 23373#undef sysconf 23374 23375/* Override any GCC internal prototype to avoid an error. 23376 Use char because int might match the return type of a GCC 23377 builtin and then its argument prototype would still apply. */ 23378#ifdef __cplusplus 23379extern "C" 23380#endif 23381char sysconf (); 23382/* The GNU C library defines this for functions which it implements 23383 to always fail with ENOSYS. Some functions are actually named 23384 something starting with __ and the normal name is an alias. */ 23385#if defined __stub_sysconf || defined __stub___sysconf 23386choke me 23387#endif 23388 23389int 23390main () 23391{ 23392return sysconf (); 23393 ; 23394 return 0; 23395} 23396_ACEOF 23397rm -f conftest.$ac_objext conftest$ac_exeext 23398if { (ac_try="$ac_link" 23399case "(($ac_try" in 23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23401 *) ac_try_echo=$ac_try;; 23402esac 23403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23404 (eval "$ac_link") 2>conftest.er1 23405 ac_status=$? 23406 grep -v '^ *+' conftest.er1 >conftest.err 23407 rm -f conftest.er1 23408 cat conftest.err >&5 23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23410 (exit $ac_status); } && { 23411 test -z "$ac_c_werror_flag" || 23412 test ! -s conftest.err 23413 } && test -s conftest$ac_exeext && 23414 $as_test_x conftest$ac_exeext; then 23415 ac_cv_func_sysconf=yes 23416else 23417 echo "$as_me: failed program was:" >&5 23418sed 's/^/| /' conftest.$ac_ext >&5 23419 23420 ac_cv_func_sysconf=no 23421fi 23422 23423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23424 conftest$ac_exeext conftest.$ac_ext 23425fi 23426{ echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5 23427echo "${ECHO_T}$ac_cv_func_sysconf" >&6; } 23428if test $ac_cv_func_sysconf = yes; then 23429 cat >>confdefs.h <<\_ACEOF 23430#define HAVE_SYSCONF 1 23431_ACEOF 23432 23433fi 23434 23435 23436else 23437 ALWAYS_DEFINES="" 23438 DO_PTHREADS="#undef DO_PTHREADS" 23439 WANT_IRS_THREADSGR_OBJS="" 23440 WANT_IRS_THREADSPW_OBJS="" 23441 WANT_IRS_THREADS_OBJS="" 23442 WANT_THREADS_OBJS="" 23443 thread_dir=nothreads 23444fi 23445 23446 23447 23448 23449 23450 23451 23452 23453{ echo "$as_me:$LINENO: checking for strlcat" >&5 23454echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } 23455if test "${ac_cv_func_strlcat+set}" = set; then 23456 echo $ECHO_N "(cached) $ECHO_C" >&6 23457else 23458 cat >conftest.$ac_ext <<_ACEOF 23459/* confdefs.h. */ 23460_ACEOF 23461cat confdefs.h >>conftest.$ac_ext 23462cat >>conftest.$ac_ext <<_ACEOF 23463/* end confdefs.h. */ 23464/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat. 23465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23466#define strlcat innocuous_strlcat 23467 23468/* System header to define __stub macros and hopefully few prototypes, 23469 which can conflict with char strlcat (); below. 23470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23471 <limits.h> exists even on freestanding compilers. */ 23472 23473#ifdef __STDC__ 23474# include <limits.h> 23475#else 23476# include <assert.h> 23477#endif 23478 23479#undef strlcat 23480 23481/* Override any GCC internal prototype to avoid an error. 23482 Use char because int might match the return type of a GCC 23483 builtin and then its argument prototype would still apply. */ 23484#ifdef __cplusplus 23485extern "C" 23486#endif 23487char strlcat (); 23488/* The GNU C library defines this for functions which it implements 23489 to always fail with ENOSYS. Some functions are actually named 23490 something starting with __ and the normal name is an alias. */ 23491#if defined __stub_strlcat || defined __stub___strlcat 23492choke me 23493#endif 23494 23495int 23496main () 23497{ 23498return strlcat (); 23499 ; 23500 return 0; 23501} 23502_ACEOF 23503rm -f conftest.$ac_objext conftest$ac_exeext 23504if { (ac_try="$ac_link" 23505case "(($ac_try" in 23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23507 *) ac_try_echo=$ac_try;; 23508esac 23509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23510 (eval "$ac_link") 2>conftest.er1 23511 ac_status=$? 23512 grep -v '^ *+' conftest.er1 >conftest.err 23513 rm -f conftest.er1 23514 cat conftest.err >&5 23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23516 (exit $ac_status); } && { 23517 test -z "$ac_c_werror_flag" || 23518 test ! -s conftest.err 23519 } && test -s conftest$ac_exeext && 23520 $as_test_x conftest$ac_exeext; then 23521 ac_cv_func_strlcat=yes 23522else 23523 echo "$as_me: failed program was:" >&5 23524sed 's/^/| /' conftest.$ac_ext >&5 23525 23526 ac_cv_func_strlcat=no 23527fi 23528 23529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23530 conftest$ac_exeext conftest.$ac_ext 23531fi 23532{ echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5 23533echo "${ECHO_T}$ac_cv_func_strlcat" >&6; } 23534if test $ac_cv_func_strlcat = yes; then 23535 cat >>confdefs.h <<\_ACEOF 23536#define HAVE_STRLCAT 1 23537_ACEOF 23538 23539fi 23540 23541{ echo "$as_me:$LINENO: checking for memmove" >&5 23542echo $ECHO_N "checking for memmove... $ECHO_C" >&6; } 23543if test "${ac_cv_func_memmove+set}" = set; then 23544 echo $ECHO_N "(cached) $ECHO_C" >&6 23545else 23546 cat >conftest.$ac_ext <<_ACEOF 23547/* confdefs.h. */ 23548_ACEOF 23549cat confdefs.h >>conftest.$ac_ext 23550cat >>conftest.$ac_ext <<_ACEOF 23551/* end confdefs.h. */ 23552/* Define memmove to an innocuous variant, in case <limits.h> declares memmove. 23553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23554#define memmove innocuous_memmove 23555 23556/* System header to define __stub macros and hopefully few prototypes, 23557 which can conflict with char memmove (); below. 23558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23559 <limits.h> exists even on freestanding compilers. */ 23560 23561#ifdef __STDC__ 23562# include <limits.h> 23563#else 23564# include <assert.h> 23565#endif 23566 23567#undef memmove 23568 23569/* Override any GCC internal prototype to avoid an error. 23570 Use char because int might match the return type of a GCC 23571 builtin and then its argument prototype would still apply. */ 23572#ifdef __cplusplus 23573extern "C" 23574#endif 23575char memmove (); 23576/* The GNU C library defines this for functions which it implements 23577 to always fail with ENOSYS. Some functions are actually named 23578 something starting with __ and the normal name is an alias. */ 23579#if defined __stub_memmove || defined __stub___memmove 23580choke me 23581#endif 23582 23583int 23584main () 23585{ 23586return memmove (); 23587 ; 23588 return 0; 23589} 23590_ACEOF 23591rm -f conftest.$ac_objext conftest$ac_exeext 23592if { (ac_try="$ac_link" 23593case "(($ac_try" in 23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23595 *) ac_try_echo=$ac_try;; 23596esac 23597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23598 (eval "$ac_link") 2>conftest.er1 23599 ac_status=$? 23600 grep -v '^ *+' conftest.er1 >conftest.err 23601 rm -f conftest.er1 23602 cat conftest.err >&5 23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23604 (exit $ac_status); } && { 23605 test -z "$ac_c_werror_flag" || 23606 test ! -s conftest.err 23607 } && test -s conftest$ac_exeext && 23608 $as_test_x conftest$ac_exeext; then 23609 ac_cv_func_memmove=yes 23610else 23611 echo "$as_me: failed program was:" >&5 23612sed 's/^/| /' conftest.$ac_ext >&5 23613 23614 ac_cv_func_memmove=no 23615fi 23616 23617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23618 conftest$ac_exeext conftest.$ac_ext 23619fi 23620{ echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 23621echo "${ECHO_T}$ac_cv_func_memmove" >&6; } 23622if test $ac_cv_func_memmove = yes; then 23623 cat >>confdefs.h <<\_ACEOF 23624#define HAVE_MEMMOVE 1 23625_ACEOF 23626 23627fi 23628 23629{ echo "$as_me:$LINENO: checking for memchr" >&5 23630echo $ECHO_N "checking for memchr... $ECHO_C" >&6; } 23631if test "${ac_cv_func_memchr+set}" = set; then 23632 echo $ECHO_N "(cached) $ECHO_C" >&6 23633else 23634 cat >conftest.$ac_ext <<_ACEOF 23635/* confdefs.h. */ 23636_ACEOF 23637cat confdefs.h >>conftest.$ac_ext 23638cat >>conftest.$ac_ext <<_ACEOF 23639/* end confdefs.h. */ 23640/* Define memchr to an innocuous variant, in case <limits.h> declares memchr. 23641 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23642#define memchr innocuous_memchr 23643 23644/* System header to define __stub macros and hopefully few prototypes, 23645 which can conflict with char memchr (); below. 23646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23647 <limits.h> exists even on freestanding compilers. */ 23648 23649#ifdef __STDC__ 23650# include <limits.h> 23651#else 23652# include <assert.h> 23653#endif 23654 23655#undef memchr 23656 23657/* Override any GCC internal prototype to avoid an error. 23658 Use char because int might match the return type of a GCC 23659 builtin and then its argument prototype would still apply. */ 23660#ifdef __cplusplus 23661extern "C" 23662#endif 23663char memchr (); 23664/* The GNU C library defines this for functions which it implements 23665 to always fail with ENOSYS. Some functions are actually named 23666 something starting with __ and the normal name is an alias. */ 23667#if defined __stub_memchr || defined __stub___memchr 23668choke me 23669#endif 23670 23671int 23672main () 23673{ 23674return memchr (); 23675 ; 23676 return 0; 23677} 23678_ACEOF 23679rm -f conftest.$ac_objext conftest$ac_exeext 23680if { (ac_try="$ac_link" 23681case "(($ac_try" in 23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23683 *) ac_try_echo=$ac_try;; 23684esac 23685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23686 (eval "$ac_link") 2>conftest.er1 23687 ac_status=$? 23688 grep -v '^ *+' conftest.er1 >conftest.err 23689 rm -f conftest.er1 23690 cat conftest.err >&5 23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23692 (exit $ac_status); } && { 23693 test -z "$ac_c_werror_flag" || 23694 test ! -s conftest.err 23695 } && test -s conftest$ac_exeext && 23696 $as_test_x conftest$ac_exeext; then 23697 ac_cv_func_memchr=yes 23698else 23699 echo "$as_me: failed program was:" >&5 23700sed 's/^/| /' conftest.$ac_ext >&5 23701 23702 ac_cv_func_memchr=no 23703fi 23704 23705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23706 conftest$ac_exeext conftest.$ac_ext 23707fi 23708{ echo "$as_me:$LINENO: result: $ac_cv_func_memchr" >&5 23709echo "${ECHO_T}$ac_cv_func_memchr" >&6; } 23710if test $ac_cv_func_memchr = yes; then 23711 cat >>confdefs.h <<\_ACEOF 23712#define HAVE_MEMCHR 1 23713_ACEOF 23714 23715fi 23716 23717{ echo "$as_me:$LINENO: checking for strtoul" >&5 23718echo $ECHO_N "checking for strtoul... $ECHO_C" >&6; } 23719if test "${ac_cv_func_strtoul+set}" = set; then 23720 echo $ECHO_N "(cached) $ECHO_C" >&6 23721else 23722 cat >conftest.$ac_ext <<_ACEOF 23723/* confdefs.h. */ 23724_ACEOF 23725cat confdefs.h >>conftest.$ac_ext 23726cat >>conftest.$ac_ext <<_ACEOF 23727/* end confdefs.h. */ 23728/* Define strtoul to an innocuous variant, in case <limits.h> declares strtoul. 23729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23730#define strtoul innocuous_strtoul 23731 23732/* System header to define __stub macros and hopefully few prototypes, 23733 which can conflict with char strtoul (); below. 23734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23735 <limits.h> exists even on freestanding compilers. */ 23736 23737#ifdef __STDC__ 23738# include <limits.h> 23739#else 23740# include <assert.h> 23741#endif 23742 23743#undef strtoul 23744 23745/* Override any GCC internal prototype to avoid an error. 23746 Use char because int might match the return type of a GCC 23747 builtin and then its argument prototype would still apply. */ 23748#ifdef __cplusplus 23749extern "C" 23750#endif 23751char strtoul (); 23752/* The GNU C library defines this for functions which it implements 23753 to always fail with ENOSYS. Some functions are actually named 23754 something starting with __ and the normal name is an alias. */ 23755#if defined __stub_strtoul || defined __stub___strtoul 23756choke me 23757#endif 23758 23759int 23760main () 23761{ 23762return strtoul (); 23763 ; 23764 return 0; 23765} 23766_ACEOF 23767rm -f conftest.$ac_objext conftest$ac_exeext 23768if { (ac_try="$ac_link" 23769case "(($ac_try" in 23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23771 *) ac_try_echo=$ac_try;; 23772esac 23773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23774 (eval "$ac_link") 2>conftest.er1 23775 ac_status=$? 23776 grep -v '^ *+' conftest.er1 >conftest.err 23777 rm -f conftest.er1 23778 cat conftest.err >&5 23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23780 (exit $ac_status); } && { 23781 test -z "$ac_c_werror_flag" || 23782 test ! -s conftest.err 23783 } && test -s conftest$ac_exeext && 23784 $as_test_x conftest$ac_exeext; then 23785 ac_cv_func_strtoul=yes 23786else 23787 echo "$as_me: failed program was:" >&5 23788sed 's/^/| /' conftest.$ac_ext >&5 23789 23790 ac_cv_func_strtoul=no 23791fi 23792 23793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23794 conftest$ac_exeext conftest.$ac_ext 23795fi 23796{ echo "$as_me:$LINENO: result: $ac_cv_func_strtoul" >&5 23797echo "${ECHO_T}$ac_cv_func_strtoul" >&6; } 23798if test $ac_cv_func_strtoul = yes; then 23799 : 23800else 23801 cat >>confdefs.h <<\_ACEOF 23802#define NEED_STRTOUL 1 23803_ACEOF 23804 23805fi 23806 23807 23808{ echo "$as_me:$LINENO: checking for if_nametoindex" >&5 23809echo $ECHO_N "checking for if_nametoindex... $ECHO_C" >&6; } 23810if test "${ac_cv_func_if_nametoindex+set}" = set; then 23811 echo $ECHO_N "(cached) $ECHO_C" >&6 23812else 23813 cat >conftest.$ac_ext <<_ACEOF 23814/* confdefs.h. */ 23815_ACEOF 23816cat confdefs.h >>conftest.$ac_ext 23817cat >>conftest.$ac_ext <<_ACEOF 23818/* end confdefs.h. */ 23819/* Define if_nametoindex to an innocuous variant, in case <limits.h> declares if_nametoindex. 23820 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23821#define if_nametoindex innocuous_if_nametoindex 23822 23823/* System header to define __stub macros and hopefully few prototypes, 23824 which can conflict with char if_nametoindex (); below. 23825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23826 <limits.h> exists even on freestanding compilers. */ 23827 23828#ifdef __STDC__ 23829# include <limits.h> 23830#else 23831# include <assert.h> 23832#endif 23833 23834#undef if_nametoindex 23835 23836/* Override any GCC internal prototype to avoid an error. 23837 Use char because int might match the return type of a GCC 23838 builtin and then its argument prototype would still apply. */ 23839#ifdef __cplusplus 23840extern "C" 23841#endif 23842char if_nametoindex (); 23843/* The GNU C library defines this for functions which it implements 23844 to always fail with ENOSYS. Some functions are actually named 23845 something starting with __ and the normal name is an alias. */ 23846#if defined __stub_if_nametoindex || defined __stub___if_nametoindex 23847choke me 23848#endif 23849 23850int 23851main () 23852{ 23853return if_nametoindex (); 23854 ; 23855 return 0; 23856} 23857_ACEOF 23858rm -f conftest.$ac_objext conftest$ac_exeext 23859if { (ac_try="$ac_link" 23860case "(($ac_try" in 23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23862 *) ac_try_echo=$ac_try;; 23863esac 23864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23865 (eval "$ac_link") 2>conftest.er1 23866 ac_status=$? 23867 grep -v '^ *+' conftest.er1 >conftest.err 23868 rm -f conftest.er1 23869 cat conftest.err >&5 23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23871 (exit $ac_status); } && { 23872 test -z "$ac_c_werror_flag" || 23873 test ! -s conftest.err 23874 } && test -s conftest$ac_exeext && 23875 $as_test_x conftest$ac_exeext; then 23876 ac_cv_func_if_nametoindex=yes 23877else 23878 echo "$as_me: failed program was:" >&5 23879sed 's/^/| /' conftest.$ac_ext >&5 23880 23881 ac_cv_func_if_nametoindex=no 23882fi 23883 23884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23885 conftest$ac_exeext conftest.$ac_ext 23886fi 23887{ echo "$as_me:$LINENO: result: $ac_cv_func_if_nametoindex" >&5 23888echo "${ECHO_T}$ac_cv_func_if_nametoindex" >&6; } 23889if test $ac_cv_func_if_nametoindex = yes; then 23890 USE_IFNAMELINKID="#define USE_IFNAMELINKID 1" 23891else 23892 USE_IFNAMELINKID="#undef USE_IFNAMELINKID" 23893fi 23894 23895 23896 23897ISC_THREAD_DIR=$thread_dir 23898 23899 23900{ echo "$as_me:$LINENO: checking for daemon" >&5 23901echo $ECHO_N "checking for daemon... $ECHO_C" >&6; } 23902if test "${ac_cv_func_daemon+set}" = set; then 23903 echo $ECHO_N "(cached) $ECHO_C" >&6 23904else 23905 cat >conftest.$ac_ext <<_ACEOF 23906/* confdefs.h. */ 23907_ACEOF 23908cat confdefs.h >>conftest.$ac_ext 23909cat >>conftest.$ac_ext <<_ACEOF 23910/* end confdefs.h. */ 23911/* Define daemon to an innocuous variant, in case <limits.h> declares daemon. 23912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23913#define daemon innocuous_daemon 23914 23915/* System header to define __stub macros and hopefully few prototypes, 23916 which can conflict with char daemon (); below. 23917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23918 <limits.h> exists even on freestanding compilers. */ 23919 23920#ifdef __STDC__ 23921# include <limits.h> 23922#else 23923# include <assert.h> 23924#endif 23925 23926#undef daemon 23927 23928/* Override any GCC internal prototype to avoid an error. 23929 Use char because int might match the return type of a GCC 23930 builtin and then its argument prototype would still apply. */ 23931#ifdef __cplusplus 23932extern "C" 23933#endif 23934char daemon (); 23935/* The GNU C library defines this for functions which it implements 23936 to always fail with ENOSYS. Some functions are actually named 23937 something starting with __ and the normal name is an alias. */ 23938#if defined __stub_daemon || defined __stub___daemon 23939choke me 23940#endif 23941 23942int 23943main () 23944{ 23945return daemon (); 23946 ; 23947 return 0; 23948} 23949_ACEOF 23950rm -f conftest.$ac_objext conftest$ac_exeext 23951if { (ac_try="$ac_link" 23952case "(($ac_try" in 23953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23954 *) ac_try_echo=$ac_try;; 23955esac 23956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23957 (eval "$ac_link") 2>conftest.er1 23958 ac_status=$? 23959 grep -v '^ *+' conftest.er1 >conftest.err 23960 rm -f conftest.er1 23961 cat conftest.err >&5 23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23963 (exit $ac_status); } && { 23964 test -z "$ac_c_werror_flag" || 23965 test ! -s conftest.err 23966 } && test -s conftest$ac_exeext && 23967 $as_test_x conftest$ac_exeext; then 23968 ac_cv_func_daemon=yes 23969else 23970 echo "$as_me: failed program was:" >&5 23971sed 's/^/| /' conftest.$ac_ext >&5 23972 23973 ac_cv_func_daemon=no 23974fi 23975 23976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23977 conftest$ac_exeext conftest.$ac_ext 23978fi 23979{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 23980echo "${ECHO_T}$ac_cv_func_daemon" >&6; } 23981if test $ac_cv_func_daemon = yes; then 23982 DAEMON_OBJS="" NEED_DAEMON="#undef NEED_DAEMON" 23983 23984else 23985 DAEMON_OBJS="\${DAEMON_OBJS}" NEED_DAEMON="#define NEED_DAEMON 1" 23986 23987fi 23988 23989 23990 23991 23992{ echo "$as_me:$LINENO: checking for strsep" >&5 23993echo $ECHO_N "checking for strsep... $ECHO_C" >&6; } 23994if test "${ac_cv_func_strsep+set}" = set; then 23995 echo $ECHO_N "(cached) $ECHO_C" >&6 23996else 23997 cat >conftest.$ac_ext <<_ACEOF 23998/* confdefs.h. */ 23999_ACEOF 24000cat confdefs.h >>conftest.$ac_ext 24001cat >>conftest.$ac_ext <<_ACEOF 24002/* end confdefs.h. */ 24003/* Define strsep to an innocuous variant, in case <limits.h> declares strsep. 24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24005#define strsep innocuous_strsep 24006 24007/* System header to define __stub macros and hopefully few prototypes, 24008 which can conflict with char strsep (); below. 24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24010 <limits.h> exists even on freestanding compilers. */ 24011 24012#ifdef __STDC__ 24013# include <limits.h> 24014#else 24015# include <assert.h> 24016#endif 24017 24018#undef strsep 24019 24020/* Override any GCC internal prototype to avoid an error. 24021 Use char because int might match the return type of a GCC 24022 builtin and then its argument prototype would still apply. */ 24023#ifdef __cplusplus 24024extern "C" 24025#endif 24026char strsep (); 24027/* The GNU C library defines this for functions which it implements 24028 to always fail with ENOSYS. Some functions are actually named 24029 something starting with __ and the normal name is an alias. */ 24030#if defined __stub_strsep || defined __stub___strsep 24031choke me 24032#endif 24033 24034int 24035main () 24036{ 24037return strsep (); 24038 ; 24039 return 0; 24040} 24041_ACEOF 24042rm -f conftest.$ac_objext conftest$ac_exeext 24043if { (ac_try="$ac_link" 24044case "(($ac_try" in 24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24046 *) ac_try_echo=$ac_try;; 24047esac 24048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24049 (eval "$ac_link") 2>conftest.er1 24050 ac_status=$? 24051 grep -v '^ *+' conftest.er1 >conftest.err 24052 rm -f conftest.er1 24053 cat conftest.err >&5 24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24055 (exit $ac_status); } && { 24056 test -z "$ac_c_werror_flag" || 24057 test ! -s conftest.err 24058 } && test -s conftest$ac_exeext && 24059 $as_test_x conftest$ac_exeext; then 24060 ac_cv_func_strsep=yes 24061else 24062 echo "$as_me: failed program was:" >&5 24063sed 's/^/| /' conftest.$ac_ext >&5 24064 24065 ac_cv_func_strsep=no 24066fi 24067 24068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24069 conftest$ac_exeext conftest.$ac_ext 24070fi 24071{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 24072echo "${ECHO_T}$ac_cv_func_strsep" >&6; } 24073if test $ac_cv_func_strsep = yes; then 24074 STRSEP_OBJS="" NEED_STRSEP="#undef NEED_STRSEP" 24075 24076else 24077 STRSEP_OBJS="\${STRSEP_OBJS}" NEED_STRSEP="#define NEED_STRSEP 1" 24078 24079fi 24080 24081 24082 24083 24084{ echo "$as_me:$LINENO: checking for strerror" >&5 24085echo $ECHO_N "checking for strerror... $ECHO_C" >&6; } 24086if test "${ac_cv_func_strerror+set}" = set; then 24087 echo $ECHO_N "(cached) $ECHO_C" >&6 24088else 24089 cat >conftest.$ac_ext <<_ACEOF 24090/* confdefs.h. */ 24091_ACEOF 24092cat confdefs.h >>conftest.$ac_ext 24093cat >>conftest.$ac_ext <<_ACEOF 24094/* end confdefs.h. */ 24095/* Define strerror to an innocuous variant, in case <limits.h> declares strerror. 24096 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24097#define strerror innocuous_strerror 24098 24099/* System header to define __stub macros and hopefully few prototypes, 24100 which can conflict with char strerror (); below. 24101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24102 <limits.h> exists even on freestanding compilers. */ 24103 24104#ifdef __STDC__ 24105# include <limits.h> 24106#else 24107# include <assert.h> 24108#endif 24109 24110#undef strerror 24111 24112/* Override any GCC internal prototype to avoid an error. 24113 Use char because int might match the return type of a GCC 24114 builtin and then its argument prototype would still apply. */ 24115#ifdef __cplusplus 24116extern "C" 24117#endif 24118char strerror (); 24119/* The GNU C library defines this for functions which it implements 24120 to always fail with ENOSYS. Some functions are actually named 24121 something starting with __ and the normal name is an alias. */ 24122#if defined __stub_strerror || defined __stub___strerror 24123choke me 24124#endif 24125 24126int 24127main () 24128{ 24129return strerror (); 24130 ; 24131 return 0; 24132} 24133_ACEOF 24134rm -f conftest.$ac_objext conftest$ac_exeext 24135if { (ac_try="$ac_link" 24136case "(($ac_try" in 24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24138 *) ac_try_echo=$ac_try;; 24139esac 24140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24141 (eval "$ac_link") 2>conftest.er1 24142 ac_status=$? 24143 grep -v '^ *+' conftest.er1 >conftest.err 24144 rm -f conftest.er1 24145 cat conftest.err >&5 24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24147 (exit $ac_status); } && { 24148 test -z "$ac_c_werror_flag" || 24149 test ! -s conftest.err 24150 } && test -s conftest$ac_exeext && 24151 $as_test_x conftest$ac_exeext; then 24152 ac_cv_func_strerror=yes 24153else 24154 echo "$as_me: failed program was:" >&5 24155sed 's/^/| /' conftest.$ac_ext >&5 24156 24157 ac_cv_func_strerror=no 24158fi 24159 24160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24161 conftest$ac_exeext conftest.$ac_ext 24162fi 24163{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 24164echo "${ECHO_T}$ac_cv_func_strerror" >&6; } 24165if test $ac_cv_func_strerror = yes; then 24166 NEED_STRERROR="#undef NEED_STRERROR" 24167else 24168 NEED_STRERROR="#define NEED_STRERROR 1" 24169fi 24170 24171 24172 24173if test -n "$NEED_STRERROR" 24174then 24175 { echo "$as_me:$LINENO: checking for extern char * sys_errlist" >&5 24176echo $ECHO_N "checking for extern char * sys_errlist... $ECHO_C" >&6; } 24177 cat >conftest.$ac_ext <<_ACEOF 24178/* confdefs.h. */ 24179_ACEOF 24180cat confdefs.h >>conftest.$ac_ext 24181cat >>conftest.$ac_ext <<_ACEOF 24182/* end confdefs.h. */ 24183 extern int sys_nerr; extern char *sys_errlist[]; 24184int 24185main () 24186{ 24187 const char *p = sys_errlist[0]; 24188 ; 24189 return 0; 24190} 24191_ACEOF 24192rm -f conftest.$ac_objext conftest$ac_exeext 24193if { (ac_try="$ac_link" 24194case "(($ac_try" in 24195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24196 *) ac_try_echo=$ac_try;; 24197esac 24198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24199 (eval "$ac_link") 2>conftest.er1 24200 ac_status=$? 24201 grep -v '^ *+' conftest.er1 >conftest.err 24202 rm -f conftest.er1 24203 cat conftest.err >&5 24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24205 (exit $ac_status); } && { 24206 test -z "$ac_c_werror_flag" || 24207 test ! -s conftest.err 24208 } && test -s conftest$ac_exeext && 24209 $as_test_x conftest$ac_exeext; then 24210 { echo "$as_me:$LINENO: result: yes" >&5 24211echo "${ECHO_T}yes" >&6; } 24212 cat >>confdefs.h <<\_ACEOF 24213#define USE_SYSERROR_LIST 1 24214_ACEOF 24215 24216else 24217 echo "$as_me: failed program was:" >&5 24218sed 's/^/| /' conftest.$ac_ext >&5 24219 24220 { echo "$as_me:$LINENO: result: no" >&5 24221echo "${ECHO_T}no" >&6; } 24222fi 24223 24224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24225 conftest$ac_exeext conftest.$ac_ext 24226fi 24227 24228# 24229# flockfile is usually provided by pthreads, but we may want to use it 24230# even if compiled with --disable-threads. 24231# 24232{ echo "$as_me:$LINENO: checking for flockfile" >&5 24233echo $ECHO_N "checking for flockfile... $ECHO_C" >&6; } 24234if test "${ac_cv_func_flockfile+set}" = set; then 24235 echo $ECHO_N "(cached) $ECHO_C" >&6 24236else 24237 cat >conftest.$ac_ext <<_ACEOF 24238/* confdefs.h. */ 24239_ACEOF 24240cat confdefs.h >>conftest.$ac_ext 24241cat >>conftest.$ac_ext <<_ACEOF 24242/* end confdefs.h. */ 24243/* Define flockfile to an innocuous variant, in case <limits.h> declares flockfile. 24244 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24245#define flockfile innocuous_flockfile 24246 24247/* System header to define __stub macros and hopefully few prototypes, 24248 which can conflict with char flockfile (); below. 24249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24250 <limits.h> exists even on freestanding compilers. */ 24251 24252#ifdef __STDC__ 24253# include <limits.h> 24254#else 24255# include <assert.h> 24256#endif 24257 24258#undef flockfile 24259 24260/* Override any GCC internal prototype to avoid an error. 24261 Use char because int might match the return type of a GCC 24262 builtin and then its argument prototype would still apply. */ 24263#ifdef __cplusplus 24264extern "C" 24265#endif 24266char flockfile (); 24267/* The GNU C library defines this for functions which it implements 24268 to always fail with ENOSYS. Some functions are actually named 24269 something starting with __ and the normal name is an alias. */ 24270#if defined __stub_flockfile || defined __stub___flockfile 24271choke me 24272#endif 24273 24274int 24275main () 24276{ 24277return flockfile (); 24278 ; 24279 return 0; 24280} 24281_ACEOF 24282rm -f conftest.$ac_objext conftest$ac_exeext 24283if { (ac_try="$ac_link" 24284case "(($ac_try" in 24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24286 *) ac_try_echo=$ac_try;; 24287esac 24288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24289 (eval "$ac_link") 2>conftest.er1 24290 ac_status=$? 24291 grep -v '^ *+' conftest.er1 >conftest.err 24292 rm -f conftest.er1 24293 cat conftest.err >&5 24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24295 (exit $ac_status); } && { 24296 test -z "$ac_c_werror_flag" || 24297 test ! -s conftest.err 24298 } && test -s conftest$ac_exeext && 24299 $as_test_x conftest$ac_exeext; then 24300 ac_cv_func_flockfile=yes 24301else 24302 echo "$as_me: failed program was:" >&5 24303sed 's/^/| /' conftest.$ac_ext >&5 24304 24305 ac_cv_func_flockfile=no 24306fi 24307 24308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24309 conftest$ac_exeext conftest.$ac_ext 24310fi 24311{ echo "$as_me:$LINENO: result: $ac_cv_func_flockfile" >&5 24312echo "${ECHO_T}$ac_cv_func_flockfile" >&6; } 24313if test $ac_cv_func_flockfile = yes; then 24314 cat >>confdefs.h <<\_ACEOF 24315#define HAVE_FLOCKFILE 1 24316_ACEOF 24317 24318fi 24319 24320 24321# 24322# Indicate what the final decision was regarding threads. 24323# 24324{ echo "$as_me:$LINENO: checking whether to build with threads" >&5 24325echo $ECHO_N "checking whether to build with threads... $ECHO_C" >&6; } 24326if $use_threads; then 24327 { echo "$as_me:$LINENO: result: yes" >&5 24328echo "${ECHO_T}yes" >&6; } 24329else 24330 { echo "$as_me:$LINENO: result: no" >&5 24331echo "${ECHO_T}no" >&6; } 24332fi 24333 24334# 24335# End of pthreads stuff. 24336# 24337 24338# 24339# Additional compiler settings. 24340# 24341MKDEPCC="$CC" 24342MKDEPCFLAGS="-M" 24343IRIX_DNSSEC_WARNINGS_HACK="" 24344 24345if test "X$GCC" = "Xyes"; then 24346 { echo "$as_me:$LINENO: checking if \"$CC\" supports -fno-strict-aliasing" >&5 24347echo $ECHO_N "checking if \"$CC\" supports -fno-strict-aliasing... $ECHO_C" >&6; } 24348 SAVE_CFLAGS=$CFLAGS 24349 CFLAGS=-fno-strict-aliasing 24350 cat >conftest.$ac_ext <<_ACEOF 24351/* confdefs.h. */ 24352_ACEOF 24353cat confdefs.h >>conftest.$ac_ext 24354cat >>conftest.$ac_ext <<_ACEOF 24355/* end confdefs.h. */ 24356 24357int 24358main () 24359{ 24360 24361 ; 24362 return 0; 24363} 24364_ACEOF 24365rm -f conftest.$ac_objext 24366if { (ac_try="$ac_compile" 24367case "(($ac_try" in 24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24369 *) ac_try_echo=$ac_try;; 24370esac 24371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24372 (eval "$ac_compile") 2>conftest.er1 24373 ac_status=$? 24374 grep -v '^ *+' conftest.er1 >conftest.err 24375 rm -f conftest.er1 24376 cat conftest.err >&5 24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24378 (exit $ac_status); } && { 24379 test -z "$ac_c_werror_flag" || 24380 test ! -s conftest.err 24381 } && test -s conftest.$ac_objext; then 24382 FNOSTRICTALIASING=yes 24383else 24384 echo "$as_me: failed program was:" >&5 24385sed 's/^/| /' conftest.$ac_ext >&5 24386 24387 FNOSTRICTALIASING=no 24388fi 24389 24390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24391 CFLAGS=$SAVE_CFLAGS 24392 if test "$FNOSTRICTALIASING" = "yes"; then 24393 { echo "$as_me:$LINENO: result: yes" >&5 24394echo "${ECHO_T}yes" >&6; } 24395 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing" 24396 else 24397 { echo "$as_me:$LINENO: result: no" >&5 24398echo "${ECHO_T}no" >&6; } 24399 STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith" 24400 fi 24401else 24402 case $host in 24403 *-dec-osf*) 24404 CC="$CC -std" 24405 CCOPT="$CCOPT -std" 24406 MKDEPCC="$CC" 24407 ;; 24408 *-hp-hpux*) 24409 CC="$CC -Ae -z" 24410 # The version of the C compiler that constantly warns about 24411 # 'const' as well as alignment issues is unfortunately not 24412 # able to be discerned via the version of the operating 24413 # system, nor does cc have a version flag. 24414 case "`$CC +W 123 2>&1`" in 24415 *Unknown?option*) 24416 STD_CWARNINGS="+w1" 24417 ;; 24418 *) 24419 # Turn off the pointlessly noisy warnings. 24420 STD_CWARNINGS="+w1 +W 474,530,2193,2236" 24421 ;; 24422 esac 24423 CCOPT="$CCOPT -Ae -z" 24424 LIBS="-Wl,+vnocompatwarnings $LIBS" 24425MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";} { for (i = 0 ; i < NF; i++) { if (colon && a$i) continue; if ($i == "\\") continue; if (!colon) { rec = $i continue; } if ($i == ":") { rec = rec " :" colon = 1 continue; } if (length(rec $i) > 76) { print rec " \\"; rec = "\t" $i; a$i = 1; } else { rec = rec " " $i a$i = 1; } } } END {print rec}'"'"' >>$TMP' 24426 MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>>$TMP' 24427 ;; 24428 *-sgi-irix*) 24429 STD_CWARNINGS="-fullwarn -woff 1209" 24430 # 24431 # Silence more than 250 instances of 24432 # "prototyped function redeclared without prototype" 24433 # and 11 instances of 24434 # "variable ... was set but never used" 24435 # from lib/dns/sec/openssl. 24436 # 24437 IRIX_DNSSEC_WARNINGS_HACK="-woff 1692,1552" 24438 ;; 24439 *-solaris*) 24440 MKDEPCFLAGS="-xM" 24441 ;; 24442 *-UnixWare*) 24443 CC="$CC -w" 24444 ;; 24445 esac 24446fi 24447 24448# 24449# _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which 24450# is supposed to be opaque. 24451# 24452case $host in 24453 *linux*) 24454 STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE" 24455 ;; 24456esac 24457 24458 24459 24460 24461 24462 24463# 24464# NLS 24465# 24466{ echo "$as_me:$LINENO: checking for catgets" >&5 24467echo $ECHO_N "checking for catgets... $ECHO_C" >&6; } 24468if test "${ac_cv_func_catgets+set}" = set; then 24469 echo $ECHO_N "(cached) $ECHO_C" >&6 24470else 24471 cat >conftest.$ac_ext <<_ACEOF 24472/* confdefs.h. */ 24473_ACEOF 24474cat confdefs.h >>conftest.$ac_ext 24475cat >>conftest.$ac_ext <<_ACEOF 24476/* end confdefs.h. */ 24477/* Define catgets to an innocuous variant, in case <limits.h> declares catgets. 24478 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24479#define catgets innocuous_catgets 24480 24481/* System header to define __stub macros and hopefully few prototypes, 24482 which can conflict with char catgets (); below. 24483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24484 <limits.h> exists even on freestanding compilers. */ 24485 24486#ifdef __STDC__ 24487# include <limits.h> 24488#else 24489# include <assert.h> 24490#endif 24491 24492#undef catgets 24493 24494/* Override any GCC internal prototype to avoid an error. 24495 Use char because int might match the return type of a GCC 24496 builtin and then its argument prototype would still apply. */ 24497#ifdef __cplusplus 24498extern "C" 24499#endif 24500char catgets (); 24501/* The GNU C library defines this for functions which it implements 24502 to always fail with ENOSYS. Some functions are actually named 24503 something starting with __ and the normal name is an alias. */ 24504#if defined __stub_catgets || defined __stub___catgets 24505choke me 24506#endif 24507 24508int 24509main () 24510{ 24511return catgets (); 24512 ; 24513 return 0; 24514} 24515_ACEOF 24516rm -f conftest.$ac_objext conftest$ac_exeext 24517if { (ac_try="$ac_link" 24518case "(($ac_try" in 24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24520 *) ac_try_echo=$ac_try;; 24521esac 24522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24523 (eval "$ac_link") 2>conftest.er1 24524 ac_status=$? 24525 grep -v '^ *+' conftest.er1 >conftest.err 24526 rm -f conftest.er1 24527 cat conftest.err >&5 24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24529 (exit $ac_status); } && { 24530 test -z "$ac_c_werror_flag" || 24531 test ! -s conftest.err 24532 } && test -s conftest$ac_exeext && 24533 $as_test_x conftest$ac_exeext; then 24534 ac_cv_func_catgets=yes 24535else 24536 echo "$as_me: failed program was:" >&5 24537sed 's/^/| /' conftest.$ac_ext >&5 24538 24539 ac_cv_func_catgets=no 24540fi 24541 24542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24543 conftest$ac_exeext conftest.$ac_ext 24544fi 24545{ echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5 24546echo "${ECHO_T}$ac_cv_func_catgets" >&6; } 24547if test $ac_cv_func_catgets = yes; then 24548 cat >>confdefs.h <<\_ACEOF 24549#define HAVE_CATGETS 1 24550_ACEOF 24551 24552fi 24553 24554 24555# 24556# -lxnet buys us one big porting headache... standards, gotta love 'em. 24557# 24558# AC_CHECK_LIB(xnet, socket, , 24559# AC_CHECK_LIB(socket, socket) 24560# AC_CHECK_LIB(nsl, inet_ntoa) 24561# ) 24562# 24563# Use this for now, instead: 24564# 24565case "$host" in 24566 mips-sgi-irix*) 24567 ;; 24568 ia64-hp-hpux11.*) 24569 24570{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 24571echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 24572if test "${ac_cv_lib_socket_socket+set}" = set; then 24573 echo $ECHO_N "(cached) $ECHO_C" >&6 24574else 24575 ac_check_lib_save_LIBS=$LIBS 24576LIBS="-lsocket $LIBS" 24577cat >conftest.$ac_ext <<_ACEOF 24578/* confdefs.h. */ 24579_ACEOF 24580cat confdefs.h >>conftest.$ac_ext 24581cat >>conftest.$ac_ext <<_ACEOF 24582/* end confdefs.h. */ 24583 24584/* Override any GCC internal prototype to avoid an error. 24585 Use char because int might match the return type of a GCC 24586 builtin and then its argument prototype would still apply. */ 24587#ifdef __cplusplus 24588extern "C" 24589#endif 24590char socket (); 24591int 24592main () 24593{ 24594return socket (); 24595 ; 24596 return 0; 24597} 24598_ACEOF 24599rm -f conftest.$ac_objext conftest$ac_exeext 24600if { (ac_try="$ac_link" 24601case "(($ac_try" in 24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24603 *) ac_try_echo=$ac_try;; 24604esac 24605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24606 (eval "$ac_link") 2>conftest.er1 24607 ac_status=$? 24608 grep -v '^ *+' conftest.er1 >conftest.err 24609 rm -f conftest.er1 24610 cat conftest.err >&5 24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24612 (exit $ac_status); } && { 24613 test -z "$ac_c_werror_flag" || 24614 test ! -s conftest.err 24615 } && test -s conftest$ac_exeext && 24616 $as_test_x conftest$ac_exeext; then 24617 ac_cv_lib_socket_socket=yes 24618else 24619 echo "$as_me: failed program was:" >&5 24620sed 's/^/| /' conftest.$ac_ext >&5 24621 24622 ac_cv_lib_socket_socket=no 24623fi 24624 24625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24626 conftest$ac_exeext conftest.$ac_ext 24627LIBS=$ac_check_lib_save_LIBS 24628fi 24629{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 24630echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 24631if test $ac_cv_lib_socket_socket = yes; then 24632 cat >>confdefs.h <<_ACEOF 24633#define HAVE_LIBSOCKET 1 24634_ACEOF 24635 24636 LIBS="-lsocket $LIBS" 24637 24638fi 24639 24640 24641{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 24642echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 24643if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 24644 echo $ECHO_N "(cached) $ECHO_C" >&6 24645else 24646 ac_check_lib_save_LIBS=$LIBS 24647LIBS="-lnsl $LIBS" 24648cat >conftest.$ac_ext <<_ACEOF 24649/* confdefs.h. */ 24650_ACEOF 24651cat confdefs.h >>conftest.$ac_ext 24652cat >>conftest.$ac_ext <<_ACEOF 24653/* end confdefs.h. */ 24654 24655/* Override any GCC internal prototype to avoid an error. 24656 Use char because int might match the return type of a GCC 24657 builtin and then its argument prototype would still apply. */ 24658#ifdef __cplusplus 24659extern "C" 24660#endif 24661char inet_ntoa (); 24662int 24663main () 24664{ 24665return inet_ntoa (); 24666 ; 24667 return 0; 24668} 24669_ACEOF 24670rm -f conftest.$ac_objext conftest$ac_exeext 24671if { (ac_try="$ac_link" 24672case "(($ac_try" in 24673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24674 *) ac_try_echo=$ac_try;; 24675esac 24676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24677 (eval "$ac_link") 2>conftest.er1 24678 ac_status=$? 24679 grep -v '^ *+' conftest.er1 >conftest.err 24680 rm -f conftest.er1 24681 cat conftest.err >&5 24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24683 (exit $ac_status); } && { 24684 test -z "$ac_c_werror_flag" || 24685 test ! -s conftest.err 24686 } && test -s conftest$ac_exeext && 24687 $as_test_x conftest$ac_exeext; then 24688 ac_cv_lib_nsl_inet_ntoa=yes 24689else 24690 echo "$as_me: failed program was:" >&5 24691sed 's/^/| /' conftest.$ac_ext >&5 24692 24693 ac_cv_lib_nsl_inet_ntoa=no 24694fi 24695 24696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24697 conftest$ac_exeext conftest.$ac_ext 24698LIBS=$ac_check_lib_save_LIBS 24699fi 24700{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 24701echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 24702if test $ac_cv_lib_nsl_inet_ntoa = yes; then 24703 cat >>confdefs.h <<_ACEOF 24704#define HAVE_LIBNSL 1 24705_ACEOF 24706 24707 LIBS="-lnsl $LIBS" 24708 24709fi 24710 24711 ;; 24712 *) 24713 24714{ echo "$as_me:$LINENO: checking for gethostbyname_r in -ld4r" >&5 24715echo $ECHO_N "checking for gethostbyname_r in -ld4r... $ECHO_C" >&6; } 24716if test "${ac_cv_lib_d4r_gethostbyname_r+set}" = set; then 24717 echo $ECHO_N "(cached) $ECHO_C" >&6 24718else 24719 ac_check_lib_save_LIBS=$LIBS 24720LIBS="-ld4r $LIBS" 24721cat >conftest.$ac_ext <<_ACEOF 24722/* confdefs.h. */ 24723_ACEOF 24724cat confdefs.h >>conftest.$ac_ext 24725cat >>conftest.$ac_ext <<_ACEOF 24726/* end confdefs.h. */ 24727 24728/* Override any GCC internal prototype to avoid an error. 24729 Use char because int might match the return type of a GCC 24730 builtin and then its argument prototype would still apply. */ 24731#ifdef __cplusplus 24732extern "C" 24733#endif 24734char gethostbyname_r (); 24735int 24736main () 24737{ 24738return gethostbyname_r (); 24739 ; 24740 return 0; 24741} 24742_ACEOF 24743rm -f conftest.$ac_objext conftest$ac_exeext 24744if { (ac_try="$ac_link" 24745case "(($ac_try" in 24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24747 *) ac_try_echo=$ac_try;; 24748esac 24749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24750 (eval "$ac_link") 2>conftest.er1 24751 ac_status=$? 24752 grep -v '^ *+' conftest.er1 >conftest.err 24753 rm -f conftest.er1 24754 cat conftest.err >&5 24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24756 (exit $ac_status); } && { 24757 test -z "$ac_c_werror_flag" || 24758 test ! -s conftest.err 24759 } && test -s conftest$ac_exeext && 24760 $as_test_x conftest$ac_exeext; then 24761 ac_cv_lib_d4r_gethostbyname_r=yes 24762else 24763 echo "$as_me: failed program was:" >&5 24764sed 's/^/| /' conftest.$ac_ext >&5 24765 24766 ac_cv_lib_d4r_gethostbyname_r=no 24767fi 24768 24769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24770 conftest$ac_exeext conftest.$ac_ext 24771LIBS=$ac_check_lib_save_LIBS 24772fi 24773{ echo "$as_me:$LINENO: result: $ac_cv_lib_d4r_gethostbyname_r" >&5 24774echo "${ECHO_T}$ac_cv_lib_d4r_gethostbyname_r" >&6; } 24775if test $ac_cv_lib_d4r_gethostbyname_r = yes; then 24776 cat >>confdefs.h <<_ACEOF 24777#define HAVE_LIBD4R 1 24778_ACEOF 24779 24780 LIBS="-ld4r $LIBS" 24781 24782fi 24783 24784 24785{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 24786echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 24787if test "${ac_cv_lib_socket_socket+set}" = set; then 24788 echo $ECHO_N "(cached) $ECHO_C" >&6 24789else 24790 ac_check_lib_save_LIBS=$LIBS 24791LIBS="-lsocket $LIBS" 24792cat >conftest.$ac_ext <<_ACEOF 24793/* confdefs.h. */ 24794_ACEOF 24795cat confdefs.h >>conftest.$ac_ext 24796cat >>conftest.$ac_ext <<_ACEOF 24797/* end confdefs.h. */ 24798 24799/* Override any GCC internal prototype to avoid an error. 24800 Use char because int might match the return type of a GCC 24801 builtin and then its argument prototype would still apply. */ 24802#ifdef __cplusplus 24803extern "C" 24804#endif 24805char socket (); 24806int 24807main () 24808{ 24809return socket (); 24810 ; 24811 return 0; 24812} 24813_ACEOF 24814rm -f conftest.$ac_objext conftest$ac_exeext 24815if { (ac_try="$ac_link" 24816case "(($ac_try" in 24817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24818 *) ac_try_echo=$ac_try;; 24819esac 24820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24821 (eval "$ac_link") 2>conftest.er1 24822 ac_status=$? 24823 grep -v '^ *+' conftest.er1 >conftest.err 24824 rm -f conftest.er1 24825 cat conftest.err >&5 24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24827 (exit $ac_status); } && { 24828 test -z "$ac_c_werror_flag" || 24829 test ! -s conftest.err 24830 } && test -s conftest$ac_exeext && 24831 $as_test_x conftest$ac_exeext; then 24832 ac_cv_lib_socket_socket=yes 24833else 24834 echo "$as_me: failed program was:" >&5 24835sed 's/^/| /' conftest.$ac_ext >&5 24836 24837 ac_cv_lib_socket_socket=no 24838fi 24839 24840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24841 conftest$ac_exeext conftest.$ac_ext 24842LIBS=$ac_check_lib_save_LIBS 24843fi 24844{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 24845echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 24846if test $ac_cv_lib_socket_socket = yes; then 24847 cat >>confdefs.h <<_ACEOF 24848#define HAVE_LIBSOCKET 1 24849_ACEOF 24850 24851 LIBS="-lsocket $LIBS" 24852 24853fi 24854 24855 { echo "$as_me:$LINENO: checking for inet_ntoa" >&5 24856echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; } 24857if test "${ac_cv_func_inet_ntoa+set}" = set; then 24858 echo $ECHO_N "(cached) $ECHO_C" >&6 24859else 24860 cat >conftest.$ac_ext <<_ACEOF 24861/* confdefs.h. */ 24862_ACEOF 24863cat confdefs.h >>conftest.$ac_ext 24864cat >>conftest.$ac_ext <<_ACEOF 24865/* end confdefs.h. */ 24866/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa. 24867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24868#define inet_ntoa innocuous_inet_ntoa 24869 24870/* System header to define __stub macros and hopefully few prototypes, 24871 which can conflict with char inet_ntoa (); below. 24872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24873 <limits.h> exists even on freestanding compilers. */ 24874 24875#ifdef __STDC__ 24876# include <limits.h> 24877#else 24878# include <assert.h> 24879#endif 24880 24881#undef inet_ntoa 24882 24883/* Override any GCC internal prototype to avoid an error. 24884 Use char because int might match the return type of a GCC 24885 builtin and then its argument prototype would still apply. */ 24886#ifdef __cplusplus 24887extern "C" 24888#endif 24889char inet_ntoa (); 24890/* The GNU C library defines this for functions which it implements 24891 to always fail with ENOSYS. Some functions are actually named 24892 something starting with __ and the normal name is an alias. */ 24893#if defined __stub_inet_ntoa || defined __stub___inet_ntoa 24894choke me 24895#endif 24896 24897int 24898main () 24899{ 24900return inet_ntoa (); 24901 ; 24902 return 0; 24903} 24904_ACEOF 24905rm -f conftest.$ac_objext conftest$ac_exeext 24906if { (ac_try="$ac_link" 24907case "(($ac_try" in 24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24909 *) ac_try_echo=$ac_try;; 24910esac 24911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24912 (eval "$ac_link") 2>conftest.er1 24913 ac_status=$? 24914 grep -v '^ *+' conftest.er1 >conftest.err 24915 rm -f conftest.er1 24916 cat conftest.err >&5 24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24918 (exit $ac_status); } && { 24919 test -z "$ac_c_werror_flag" || 24920 test ! -s conftest.err 24921 } && test -s conftest$ac_exeext && 24922 $as_test_x conftest$ac_exeext; then 24923 ac_cv_func_inet_ntoa=yes 24924else 24925 echo "$as_me: failed program was:" >&5 24926sed 's/^/| /' conftest.$ac_ext >&5 24927 24928 ac_cv_func_inet_ntoa=no 24929fi 24930 24931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24932 conftest$ac_exeext conftest.$ac_ext 24933fi 24934{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5 24935echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; } 24936if test $ac_cv_func_inet_ntoa = yes; then 24937 : 24938else 24939 24940{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 24941echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; } 24942if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then 24943 echo $ECHO_N "(cached) $ECHO_C" >&6 24944else 24945 ac_check_lib_save_LIBS=$LIBS 24946LIBS="-lnsl $LIBS" 24947cat >conftest.$ac_ext <<_ACEOF 24948/* confdefs.h. */ 24949_ACEOF 24950cat confdefs.h >>conftest.$ac_ext 24951cat >>conftest.$ac_ext <<_ACEOF 24952/* end confdefs.h. */ 24953 24954/* Override any GCC internal prototype to avoid an error. 24955 Use char because int might match the return type of a GCC 24956 builtin and then its argument prototype would still apply. */ 24957#ifdef __cplusplus 24958extern "C" 24959#endif 24960char inet_ntoa (); 24961int 24962main () 24963{ 24964return inet_ntoa (); 24965 ; 24966 return 0; 24967} 24968_ACEOF 24969rm -f conftest.$ac_objext conftest$ac_exeext 24970if { (ac_try="$ac_link" 24971case "(($ac_try" in 24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24973 *) ac_try_echo=$ac_try;; 24974esac 24975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24976 (eval "$ac_link") 2>conftest.er1 24977 ac_status=$? 24978 grep -v '^ *+' conftest.er1 >conftest.err 24979 rm -f conftest.er1 24980 cat conftest.err >&5 24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24982 (exit $ac_status); } && { 24983 test -z "$ac_c_werror_flag" || 24984 test ! -s conftest.err 24985 } && test -s conftest$ac_exeext && 24986 $as_test_x conftest$ac_exeext; then 24987 ac_cv_lib_nsl_inet_ntoa=yes 24988else 24989 echo "$as_me: failed program was:" >&5 24990sed 's/^/| /' conftest.$ac_ext >&5 24991 24992 ac_cv_lib_nsl_inet_ntoa=no 24993fi 24994 24995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 24996 conftest$ac_exeext conftest.$ac_ext 24997LIBS=$ac_check_lib_save_LIBS 24998fi 24999{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 25000echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; } 25001if test $ac_cv_lib_nsl_inet_ntoa = yes; then 25002 cat >>confdefs.h <<_ACEOF 25003#define HAVE_LIBNSL 1 25004_ACEOF 25005 25006 LIBS="-lnsl $LIBS" 25007 25008fi 25009 25010fi 25011 25012 ;; 25013esac 25014 25015# 25016# Purify support 25017# 25018{ echo "$as_me:$LINENO: checking whether to use purify" >&5 25019echo $ECHO_N "checking whether to use purify... $ECHO_C" >&6; } 25020 25021# Check whether --with-purify was given. 25022if test "${with_purify+set}" = set; then 25023 withval=$with_purify; use_purify="$withval" 25024else 25025 use_purify="no" 25026fi 25027 25028 25029case "$use_purify" in 25030 no) 25031 ;; 25032 yes) 25033 # Extract the first word of "purify", so it can be a program name with args. 25034set dummy purify; ac_word=$2 25035{ echo "$as_me:$LINENO: checking for $ac_word" >&5 25036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 25037if test "${ac_cv_path_purify_path+set}" = set; then 25038 echo $ECHO_N "(cached) $ECHO_C" >&6 25039else 25040 case $purify_path in 25041 [\\/]* | ?:[\\/]*) 25042 ac_cv_path_purify_path="$purify_path" # Let the user override the test with a path. 25043 ;; 25044 *) 25045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25046for as_dir in $PATH 25047do 25048 IFS=$as_save_IFS 25049 test -z "$as_dir" && as_dir=. 25050 for ac_exec_ext in '' $ac_executable_extensions; do 25051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25052 ac_cv_path_purify_path="$as_dir/$ac_word$ac_exec_ext" 25053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25054 break 2 25055 fi 25056done 25057done 25058IFS=$as_save_IFS 25059 25060 test -z "$ac_cv_path_purify_path" && ac_cv_path_purify_path="purify" 25061 ;; 25062esac 25063fi 25064purify_path=$ac_cv_path_purify_path 25065if test -n "$purify_path"; then 25066 { echo "$as_me:$LINENO: result: $purify_path" >&5 25067echo "${ECHO_T}$purify_path" >&6; } 25068else 25069 { echo "$as_me:$LINENO: result: no" >&5 25070echo "${ECHO_T}no" >&6; } 25071fi 25072 25073 25074 ;; 25075 *) 25076 purify_path="$use_purify" 25077 ;; 25078esac 25079 25080case "$use_purify" in 25081 no) 25082 { echo "$as_me:$LINENO: result: no" >&5 25083echo "${ECHO_T}no" >&6; } 25084 PURIFY="" 25085 ;; 25086 *) 25087 if test -f $purify_path || test $purify_path = purify; then 25088 { echo "$as_me:$LINENO: result: $purify_path" >&5 25089echo "${ECHO_T}$purify_path" >&6; } 25090 PURIFYFLAGS="`echo $PURIFYOPTIONS`" 25091 PURIFY="$purify_path $PURIFYFLAGS" 25092 else 25093 { { echo "$as_me:$LINENO: error: $purify_path not found. 25094 25095Please choose the proper path with the following command: 25096 25097 configure --with-purify=PATH 25098" >&5 25099echo "$as_me: error: $purify_path not found. 25100 25101Please choose the proper path with the following command: 25102 25103 configure --with-purify=PATH 25104" >&2;} 25105 { (exit 1); exit 1; }; } 25106 fi 25107 ;; 25108esac 25109 25110 25111 25112# 25113# GNU libtool support 25114# 25115case $host in 25116sunos*) 25117 # Just set the maximum command line length for sunos as it otherwise 25118 # takes a exceptionally long time to work it out. Required for libtool. 25119 lt_cv_sys_max_cmd_len=4096; 25120 ;; 25121esac 25122 25123 25124# Check whether --with-libtool was given. 25125if test "${with_libtool+set}" = set; then 25126 withval=$with_libtool; use_libtool="$withval" 25127else 25128 use_libtool="no" 25129fi 25130 25131 25132case $use_libtool in 25133 yes) 25134 25135 O=lo 25136 A=la 25137 LIBTOOL_MKDEP_SED='s;\.o;\.lo;' 25138 LIBTOOL_MODE_COMPILE='--mode=compile' 25139 LIBTOOL_MODE_INSTALL='--mode=install' 25140 LIBTOOL_MODE_LINK='--mode=link' 25141 ;; 25142 *) 25143 O=o 25144 A=a 25145 LIBTOOL= 25146 25147 LIBTOOL_MKDEP_SED= 25148 LIBTOOL_MODE_COMPILE= 25149 LIBTOOL_MODE_INSTALL= 25150 LIBTOOL_MODE_LINK= 25151 ;; 25152esac 25153 25154# 25155# File name extension for static archive files, for those few places 25156# where they are treated differently from dynamic ones. 25157# 25158SA=a 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168# 25169# Here begins a very long section to determine the system's networking 25170# capabilities. The order of the tests is signficant. 25171# 25172 25173# 25174# IPv6 25175# 25176# Check whether --enable-ipv6 was given. 25177if test "${enable_ipv6+set}" = set; then 25178 enableval=$enable_ipv6; 25179fi 25180 25181 25182case "$enable_ipv6" in 25183 yes|''|autodetect) 25184 cat >>confdefs.h <<\_ACEOF 25185#define WANT_IPV6 1 25186_ACEOF 25187 25188 ;; 25189 no) 25190 ;; 25191esac 25192 25193# 25194# We do the IPv6 compilation checking after libtool so that we can put 25195# the right suffix on the files. 25196# 25197{ echo "$as_me:$LINENO: checking for IPv6 structures" >&5 25198echo $ECHO_N "checking for IPv6 structures... $ECHO_C" >&6; } 25199cat >conftest.$ac_ext <<_ACEOF 25200/* confdefs.h. */ 25201_ACEOF 25202cat confdefs.h >>conftest.$ac_ext 25203cat >>conftest.$ac_ext <<_ACEOF 25204/* end confdefs.h. */ 25205 25206#include <sys/types.h> 25207#include <sys/socket.h> 25208#include <netinet/in.h> 25209int 25210main () 25211{ 25212struct sockaddr_in6 sin6; return (0); 25213 ; 25214 return 0; 25215} 25216_ACEOF 25217rm -f conftest.$ac_objext 25218if { (ac_try="$ac_compile" 25219case "(($ac_try" in 25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25221 *) ac_try_echo=$ac_try;; 25222esac 25223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25224 (eval "$ac_compile") 2>conftest.er1 25225 ac_status=$? 25226 grep -v '^ *+' conftest.er1 >conftest.err 25227 rm -f conftest.er1 25228 cat conftest.err >&5 25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25230 (exit $ac_status); } && { 25231 test -z "$ac_c_werror_flag" || 25232 test ! -s conftest.err 25233 } && test -s conftest.$ac_objext; then 25234 { echo "$as_me:$LINENO: result: yes" >&5 25235echo "${ECHO_T}yes" >&6; } 25236 found_ipv6=yes 25237else 25238 echo "$as_me: failed program was:" >&5 25239sed 's/^/| /' conftest.$ac_ext >&5 25240 25241 { echo "$as_me:$LINENO: result: no" >&5 25242echo "${ECHO_T}no" >&6; } 25243 found_ipv6=no 25244fi 25245 25246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25247 25248# 25249# See whether IPv6 support is provided via a Kame add-on. 25250# This is done before other IPv6 linking tests to LIBS is properly set. 25251# 25252{ echo "$as_me:$LINENO: checking for Kame IPv6 support" >&5 25253echo $ECHO_N "checking for Kame IPv6 support... $ECHO_C" >&6; } 25254 25255# Check whether --with-kame was given. 25256if test "${with_kame+set}" = set; then 25257 withval=$with_kame; use_kame="$withval" 25258else 25259 use_kame="no" 25260fi 25261 25262 25263case "$use_kame" in 25264 no) 25265 ;; 25266 yes) 25267 kame_path=/usr/local/v6 25268 ;; 25269 *) 25270 kame_path="$use_kame" 25271 ;; 25272esac 25273 25274case "$use_kame" in 25275 no) 25276 { echo "$as_me:$LINENO: result: no" >&5 25277echo "${ECHO_T}no" >&6; } 25278 ;; 25279 *) 25280 if test -f $kame_path/lib/libinet6.a; then 25281 { echo "$as_me:$LINENO: result: $kame_path/lib/libinet6.a" >&5 25282echo "${ECHO_T}$kame_path/lib/libinet6.a" >&6; } 25283 LIBS="-L$kame_path/lib -linet6 $LIBS" 25284 else 25285 { { echo "$as_me:$LINENO: error: $kame_path/lib/libinet6.a not found. 25286 25287Please choose the proper path with the following command: 25288 25289 configure --with-kame=PATH 25290" >&5 25291echo "$as_me: error: $kame_path/lib/libinet6.a not found. 25292 25293Please choose the proper path with the following command: 25294 25295 configure --with-kame=PATH 25296" >&2;} 25297 { (exit 1); exit 1; }; } 25298 fi 25299 ;; 25300esac 25301 25302# 25303# Whether netinet6/in6.h is needed has to be defined in isc/platform.h. 25304# Including it on Kame-using platforms is very bad, though, because 25305# Kame uses #error against direct inclusion. So include it on only 25306# the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1. 25307# This is done before the in6_pktinfo check because that's what 25308# netinet6/in6.h is needed for. 25309# 25310 25311case "$host" in 25312*-bsdi4.[01]*) 25313 ISC_PLATFORM_NEEDNETINET6IN6H="#define ISC_PLATFORM_NEEDNETINET6IN6H 1" 25314 isc_netinet6in6_hack="#include <netinet6/in6.h>" 25315 ;; 25316*) 25317 ISC_PLATFORM_NEEDNETINET6IN6H="#undef ISC_PLATFORM_NEEDNETINET6IN6H" 25318 isc_netinet6in6_hack="" 25319 ;; 25320esac 25321 25322 25323# 25324# This is similar to the netinet6/in6.h issue. 25325# 25326case "$host" in 25327*-UnixWare*) 25328 ISC_PLATFORM_NEEDNETINETIN6H="#define ISC_PLATFORM_NEEDNETINETIN6H 1" 25329 ISC_PLATFORM_FIXIN6ISADDR="#define ISC_PLATFORM_FIXIN6ISADDR 1" 25330 isc_netinetin6_hack="#include <netinet/in6.h>" 25331 ;; 25332*) 25333 ISC_PLATFORM_NEEDNETINETIN6H="#undef ISC_PLATFORM_NEEDNETINETIN6H" 25334 ISC_PLATFORM_FIXIN6ISADDR="#undef ISC_PLATFORM_FIXIN6ISADDR" 25335 isc_netinetin6_hack="" 25336 ;; 25337esac 25338 25339# 25340# Now delve deeper into the suitability of the IPv6 support. 25341# 25342case "$found_ipv6" in 25343 yes) 25344 HAS_INET6_STRUCTS="#define HAS_INET6_STRUCTS 1" 25345 25346 { echo "$as_me:$LINENO: checking for in6_addr" >&5 25347echo $ECHO_N "checking for in6_addr... $ECHO_C" >&6; } 25348 cat >conftest.$ac_ext <<_ACEOF 25349/* confdefs.h. */ 25350_ACEOF 25351cat confdefs.h >>conftest.$ac_ext 25352cat >>conftest.$ac_ext <<_ACEOF 25353/* end confdefs.h. */ 25354 25355#include <sys/types.h> 25356#include <sys/socket.h> 25357#include <netinet/in.h> 25358$isc_netinetin6_hack 25359$isc_netinet6in6_hack 25360 25361int 25362main () 25363{ 25364struct in6_addr in6; return (0); 25365 ; 25366 return 0; 25367} 25368_ACEOF 25369rm -f conftest.$ac_objext 25370if { (ac_try="$ac_compile" 25371case "(($ac_try" in 25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25373 *) ac_try_echo=$ac_try;; 25374esac 25375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25376 (eval "$ac_compile") 2>conftest.er1 25377 ac_status=$? 25378 grep -v '^ *+' conftest.er1 >conftest.err 25379 rm -f conftest.er1 25380 cat conftest.err >&5 25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25382 (exit $ac_status); } && { 25383 test -z "$ac_c_werror_flag" || 25384 test ! -s conftest.err 25385 } && test -s conftest.$ac_objext; then 25386 { echo "$as_me:$LINENO: result: yes" >&5 25387echo "${ECHO_T}yes" >&6; } 25388 HAS_IN_ADDR6="#undef HAS_IN_ADDR6" 25389 isc_in_addr6_hack="" 25390else 25391 echo "$as_me: failed program was:" >&5 25392sed 's/^/| /' conftest.$ac_ext >&5 25393 25394 { echo "$as_me:$LINENO: result: no" >&5 25395echo "${ECHO_T}no" >&6; } 25396 HAS_IN_ADDR6="#define HAS_IN_ADDR6 1" 25397 isc_in_addr6_hack="#define in6_addr in_addr6" 25398fi 25399 25400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25401 25402 { echo "$as_me:$LINENO: checking for in6addr_any" >&5 25403echo $ECHO_N "checking for in6addr_any... $ECHO_C" >&6; } 25404 cat >conftest.$ac_ext <<_ACEOF 25405/* confdefs.h. */ 25406_ACEOF 25407cat confdefs.h >>conftest.$ac_ext 25408cat >>conftest.$ac_ext <<_ACEOF 25409/* end confdefs.h. */ 25410 25411#include <sys/types.h> 25412#include <sys/socket.h> 25413#include <netinet/in.h> 25414$isc_netinetin6_hack 25415$isc_netinet6in6_hack 25416$isc_in_addr6_hack 25417 25418int 25419main () 25420{ 25421struct in6_addr in6; in6 = in6addr_any; return (0); 25422 ; 25423 return 0; 25424} 25425_ACEOF 25426rm -f conftest.$ac_objext conftest$ac_exeext 25427if { (ac_try="$ac_link" 25428case "(($ac_try" in 25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25430 *) ac_try_echo=$ac_try;; 25431esac 25432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25433 (eval "$ac_link") 2>conftest.er1 25434 ac_status=$? 25435 grep -v '^ *+' conftest.er1 >conftest.err 25436 rm -f conftest.er1 25437 cat conftest.err >&5 25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25439 (exit $ac_status); } && { 25440 test -z "$ac_c_werror_flag" || 25441 test ! -s conftest.err 25442 } && test -s conftest$ac_exeext && 25443 $as_test_x conftest$ac_exeext; then 25444 { echo "$as_me:$LINENO: result: yes" >&5 25445echo "${ECHO_T}yes" >&6; } 25446 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY" 25447else 25448 echo "$as_me: failed program was:" >&5 25449sed 's/^/| /' conftest.$ac_ext >&5 25450 25451 { echo "$as_me:$LINENO: result: no" >&5 25452echo "${ECHO_T}no" >&6; } 25453 NEED_IN6ADDR_ANY="#define NEED_IN6ADDR_ANY 1" 25454fi 25455 25456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25457 conftest$ac_exeext conftest.$ac_ext 25458 25459 { echo "$as_me:$LINENO: checking for sin6_scope_id in struct sockaddr_in6" >&5 25460echo $ECHO_N "checking for sin6_scope_id in struct sockaddr_in6... $ECHO_C" >&6; } 25461 cat >conftest.$ac_ext <<_ACEOF 25462/* confdefs.h. */ 25463_ACEOF 25464cat confdefs.h >>conftest.$ac_ext 25465cat >>conftest.$ac_ext <<_ACEOF 25466/* end confdefs.h. */ 25467 25468#include <sys/types.h> 25469#include <sys/socket.h> 25470#include <netinet/in.h> 25471$isc_netinetin6_hack 25472$isc_netinet6in6_hack 25473 25474int 25475main () 25476{ 25477struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0); 25478 ; 25479 return 0; 25480} 25481_ACEOF 25482rm -f conftest.$ac_objext 25483if { (ac_try="$ac_compile" 25484case "(($ac_try" in 25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25486 *) ac_try_echo=$ac_try;; 25487esac 25488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25489 (eval "$ac_compile") 2>conftest.er1 25490 ac_status=$? 25491 grep -v '^ *+' conftest.er1 >conftest.err 25492 rm -f conftest.er1 25493 cat conftest.err >&5 25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25495 (exit $ac_status); } && { 25496 test -z "$ac_c_werror_flag" || 25497 test ! -s conftest.err 25498 } && test -s conftest.$ac_objext; then 25499 { echo "$as_me:$LINENO: result: yes" >&5 25500echo "${ECHO_T}yes" >&6; } 25501 result="#define HAVE_SIN6_SCOPE_ID 1" 25502else 25503 echo "$as_me: failed program was:" >&5 25504sed 's/^/| /' conftest.$ac_ext >&5 25505 25506 { echo "$as_me:$LINENO: result: no" >&5 25507echo "${ECHO_T}no" >&6; } 25508 result="#undef HAVE_SIN6_SCOPE_ID" 25509fi 25510 25511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25512 HAVE_SIN6_SCOPE_ID="$result" 25513 25514 { echo "$as_me:$LINENO: checking for in6_pktinfo" >&5 25515echo $ECHO_N "checking for in6_pktinfo... $ECHO_C" >&6; } 25516 cat >conftest.$ac_ext <<_ACEOF 25517/* confdefs.h. */ 25518_ACEOF 25519cat confdefs.h >>conftest.$ac_ext 25520cat >>conftest.$ac_ext <<_ACEOF 25521/* end confdefs.h. */ 25522 25523#include <sys/types.h> 25524#include <sys/socket.h> 25525#include <netinet/in.h> 25526$isc_netinetin6_hack 25527$isc_netinet6in6_hack 25528 25529int 25530main () 25531{ 25532struct in6_pktinfo xyzzy; return (0); 25533 ; 25534 return 0; 25535} 25536_ACEOF 25537rm -f conftest.$ac_objext 25538if { (ac_try="$ac_compile" 25539case "(($ac_try" in 25540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25541 *) ac_try_echo=$ac_try;; 25542esac 25543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25544 (eval "$ac_compile") 2>conftest.er1 25545 ac_status=$? 25546 grep -v '^ *+' conftest.er1 >conftest.err 25547 rm -f conftest.er1 25548 cat conftest.err >&5 25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25550 (exit $ac_status); } && { 25551 test -z "$ac_c_werror_flag" || 25552 test ! -s conftest.err 25553 } && test -s conftest.$ac_objext; then 25554 { echo "$as_me:$LINENO: result: yes" >&5 25555echo "${ECHO_T}yes" >&6; } 25556 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1" 25557else 25558 echo "$as_me: failed program was:" >&5 25559sed 's/^/| /' conftest.$ac_ext >&5 25560 25561 { echo "$as_me:$LINENO: result: no -- disabling runtime ipv6 support" >&5 25562echo "${ECHO_T}no -- disabling runtime ipv6 support" >&6; } 25563 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 25564fi 25565 25566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25567 ;; 25568 no) 25569 HAS_INET6_STRUCTS="#undef HAS_INET6_STRUCTS" 25570 NEED_IN6ADDR_ANY="#undef NEED_IN6ADDR_ANY" 25571 ISC_PLATFORM_HAVEIN6PKTINFO="#undef ISC_PLATFORM_HAVEIN6PKTINFO" 25572 HAVE_SIN6_SCOPE_ID="#define HAVE_SIN6_SCOPE_ID 1" 25573 ISC_IPV6_H="ipv6.h" 25574 ISC_IPV6_O="ipv6.$O" 25575 ISC_ISCIPV6_O="unix/ipv6.$O" 25576 ISC_IPV6_C="ipv6.c" 25577 ;; 25578esac 25579 25580{ echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 25581echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; } 25582cat >conftest.$ac_ext <<_ACEOF 25583/* confdefs.h. */ 25584_ACEOF 25585cat confdefs.h >>conftest.$ac_ext 25586cat >>conftest.$ac_ext <<_ACEOF 25587/* end confdefs.h. */ 25588 25589#include <sys/types.h> 25590#include <sys/socket.h> 25591#include <netinet/in.h> 25592 25593int 25594main () 25595{ 25596struct sockaddr_storage xyzzy; return (0); 25597 ; 25598 return 0; 25599} 25600_ACEOF 25601rm -f conftest.$ac_objext 25602if { (ac_try="$ac_compile" 25603case "(($ac_try" in 25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25605 *) ac_try_echo=$ac_try;; 25606esac 25607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25608 (eval "$ac_compile") 2>conftest.er1 25609 ac_status=$? 25610 grep -v '^ *+' conftest.er1 >conftest.err 25611 rm -f conftest.er1 25612 cat conftest.err >&5 25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25614 (exit $ac_status); } && { 25615 test -z "$ac_c_werror_flag" || 25616 test ! -s conftest.err 25617 } && test -s conftest.$ac_objext; then 25618 { echo "$as_me:$LINENO: result: yes" >&5 25619echo "${ECHO_T}yes" >&6; } 25620 HAVE_SOCKADDR_STORAGE="#define HAVE_SOCKADDR_STORAGE 1" 25621else 25622 echo "$as_me: failed program was:" >&5 25623sed 's/^/| /' conftest.$ac_ext >&5 25624 25625 { echo "$as_me:$LINENO: result: no" >&5 25626echo "${ECHO_T}no" >&6; } 25627 HAVE_SOCKADDR_STORAGE="#undef HAVE_SOCKADDR_STORAGE" 25628fi 25629 25630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646# 25647# Check for network functions that are often missing. We do this 25648# after the libtool checking, so we can put the right suffix on 25649# the files. It also needs to come after checking for a Kame add-on, 25650# which provides some (all?) of the desired functions. 25651# 25652{ echo "$as_me:$LINENO: checking for inet_ntop" >&5 25653echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; } 25654cat >conftest.$ac_ext <<_ACEOF 25655/* confdefs.h. */ 25656_ACEOF 25657cat confdefs.h >>conftest.$ac_ext 25658cat >>conftest.$ac_ext <<_ACEOF 25659/* end confdefs.h. */ 25660 25661#include <sys/types.h> 25662#include <netinet/in.h> 25663#include <arpa/inet.h> 25664int 25665main () 25666{ 25667inet_ntop(0, 0, 0, 0); return (0); 25668 ; 25669 return 0; 25670} 25671_ACEOF 25672rm -f conftest.$ac_objext conftest$ac_exeext 25673if { (ac_try="$ac_link" 25674case "(($ac_try" in 25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25676 *) ac_try_echo=$ac_try;; 25677esac 25678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25679 (eval "$ac_link") 2>conftest.er1 25680 ac_status=$? 25681 grep -v '^ *+' conftest.er1 >conftest.err 25682 rm -f conftest.er1 25683 cat conftest.err >&5 25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25685 (exit $ac_status); } && { 25686 test -z "$ac_c_werror_flag" || 25687 test ! -s conftest.err 25688 } && test -s conftest$ac_exeext && 25689 $as_test_x conftest$ac_exeext; then 25690 { echo "$as_me:$LINENO: result: yes" >&5 25691echo "${ECHO_T}yes" >&6; } 25692 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP" 25693else 25694 echo "$as_me: failed program was:" >&5 25695sed 's/^/| /' conftest.$ac_ext >&5 25696 25697 { echo "$as_me:$LINENO: result: no" >&5 25698echo "${ECHO_T}no" >&6; } 25699 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" 25700 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_ntop.c" 25701 ISC_PLATFORM_NEEDNTOP="#define ISC_PLATFORM_NEEDNTOP 1" 25702fi 25703 25704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25705 conftest$ac_exeext conftest.$ac_ext 25706{ echo "$as_me:$LINENO: checking for inet_pton" >&5 25707echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; } 25708cat >conftest.$ac_ext <<_ACEOF 25709/* confdefs.h. */ 25710_ACEOF 25711cat confdefs.h >>conftest.$ac_ext 25712cat >>conftest.$ac_ext <<_ACEOF 25713/* end confdefs.h. */ 25714 25715#include <sys/types.h> 25716#include <netinet/in.h> 25717#include <arpa/inet.h> 25718int 25719main () 25720{ 25721inet_pton(0, 0, 0); return (0); 25722 ; 25723 return 0; 25724} 25725_ACEOF 25726rm -f conftest.$ac_objext conftest$ac_exeext 25727if { (ac_try="$ac_link" 25728case "(($ac_try" in 25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25730 *) ac_try_echo=$ac_try;; 25731esac 25732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25733 (eval "$ac_link") 2>conftest.er1 25734 ac_status=$? 25735 grep -v '^ *+' conftest.er1 >conftest.err 25736 rm -f conftest.er1 25737 cat conftest.err >&5 25738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25739 (exit $ac_status); } && { 25740 test -z "$ac_c_werror_flag" || 25741 test ! -s conftest.err 25742 } && test -s conftest$ac_exeext && 25743 $as_test_x conftest$ac_exeext; then 25744 { echo "$as_me:$LINENO: result: yes" >&5 25745echo "${ECHO_T}yes" >&6; } 25746 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON" 25747else 25748 echo "$as_me: failed program was:" >&5 25749sed 's/^/| /' conftest.$ac_ext >&5 25750 25751 { echo "$as_me:$LINENO: result: no" >&5 25752echo "${ECHO_T}no" >&6; } 25753 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" 25754 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_pton.c" 25755 ISC_PLATFORM_NEEDPTON="#define ISC_PLATFORM_NEEDPTON 1" 25756fi 25757 25758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25759 conftest$ac_exeext conftest.$ac_ext 25760{ echo "$as_me:$LINENO: checking for inet_aton" >&5 25761echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } 25762cat >conftest.$ac_ext <<_ACEOF 25763/* confdefs.h. */ 25764_ACEOF 25765cat confdefs.h >>conftest.$ac_ext 25766cat >>conftest.$ac_ext <<_ACEOF 25767/* end confdefs.h. */ 25768 25769#include <sys/types.h> 25770#include <netinet/in.h> 25771#include <arpa/inet.h> 25772int 25773main () 25774{ 25775struct in_addr in; inet_aton(0, &in); return (0); 25776 ; 25777 return 0; 25778} 25779_ACEOF 25780rm -f conftest.$ac_objext conftest$ac_exeext 25781if { (ac_try="$ac_link" 25782case "(($ac_try" in 25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25784 *) ac_try_echo=$ac_try;; 25785esac 25786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25787 (eval "$ac_link") 2>conftest.er1 25788 ac_status=$? 25789 grep -v '^ *+' conftest.er1 >conftest.err 25790 rm -f conftest.er1 25791 cat conftest.err >&5 25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25793 (exit $ac_status); } && { 25794 test -z "$ac_c_werror_flag" || 25795 test ! -s conftest.err 25796 } && test -s conftest$ac_exeext && 25797 $as_test_x conftest$ac_exeext; then 25798 { echo "$as_me:$LINENO: result: yes" >&5 25799echo "${ECHO_T}yes" >&6; } 25800 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON" 25801else 25802 echo "$as_me: failed program was:" >&5 25803sed 's/^/| /' conftest.$ac_ext >&5 25804 25805 { echo "$as_me:$LINENO: result: no" >&5 25806echo "${ECHO_T}no" >&6; } 25807 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_aton.$O" 25808 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS inet_aton.c" 25809 ISC_PLATFORM_NEEDATON="#define ISC_PLATFORM_NEEDATON 1" 25810fi 25811 25812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25813 conftest$ac_exeext conftest.$ac_ext 25814 25815 25816 25817 25818 25819# 25820# Look for a 4.4BSD-style sa_len member in struct sockaddr. 25821# 25822case "$host" in 25823 *-dec-osf*) 25824 # Tru64 broke send() by defining it to send_OBSOLETE 25825 cat >>confdefs.h <<\_ACEOF 25826#define REENABLE_SEND 1 25827_ACEOF 25828 25829 # Turn on 4.4BSD style sa_len support. 25830 cat >>confdefs.h <<\_ACEOF 25831#define _SOCKADDR_LEN 1 25832_ACEOF 25833 25834 ;; 25835esac 25836 25837{ echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 25838echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6; } 25839cat >conftest.$ac_ext <<_ACEOF 25840/* confdefs.h. */ 25841_ACEOF 25842cat confdefs.h >>conftest.$ac_ext 25843cat >>conftest.$ac_ext <<_ACEOF 25844/* end confdefs.h. */ 25845 25846#include <sys/types.h> 25847#include <sys/socket.h> 25848int 25849main () 25850{ 25851struct sockaddr sa; sa.sa_len = 0; return (0); 25852 ; 25853 return 0; 25854} 25855_ACEOF 25856rm -f conftest.$ac_objext 25857if { (ac_try="$ac_compile" 25858case "(($ac_try" in 25859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25860 *) ac_try_echo=$ac_try;; 25861esac 25862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25863 (eval "$ac_compile") 2>conftest.er1 25864 ac_status=$? 25865 grep -v '^ *+' conftest.er1 >conftest.err 25866 rm -f conftest.er1 25867 cat conftest.err >&5 25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25869 (exit $ac_status); } && { 25870 test -z "$ac_c_werror_flag" || 25871 test ! -s conftest.err 25872 } && test -s conftest.$ac_objext; then 25873 { echo "$as_me:$LINENO: result: yes" >&5 25874echo "${ECHO_T}yes" >&6; } 25875 HAVE_SA_LEN="#define HAVE_SA_LEN 1" 25876else 25877 echo "$as_me: failed program was:" >&5 25878sed 's/^/| /' conftest.$ac_ext >&5 25879 25880 { echo "$as_me:$LINENO: result: no" >&5 25881echo "${ECHO_T}no" >&6; } 25882 HAVE_SA_LEN="#undef HAVE_SA_LEN" 25883fi 25884 25885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25886 25887 25888# HAVE_MINIMUM_IFREQ 25889 25890case "$host" in 25891 *-bsdi2345*) have_minimum_ifreq=yes;; 25892 *-darwin*) have_minimum_ifreq=yes;; 25893 *-freebsd*) have_minimum_ifreq=yes;; 25894 *-lynxos*) have_minimum_ifreq=yes;; 25895 *-netbsd*) have_minimum_ifreq=yes;; 25896 *-next*) have_minimum_ifreq=yes;; 25897 *-openbsd*) have_minimum_ifreq=yes;; 25898 *-rhapsody*) have_minimum_ifreq=yes;; 25899esac 25900 25901case "$have_minimum_ifreq" in 25902 yes) 25903 HAVE_MINIMUM_IFREQ="#define HAVE_MINIMUM_IFREQ 1";; 25904 no) 25905 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";; 25906 *) 25907 HAVE_MINIMUM_IFREQ="#undef HAVE_MINIMUM_IFREQ";; 25908esac 25909 25910 25911# PORT_DIR 25912PORT_DIR=port/unknown 25913SOLARIS_BITTYPES="#undef NEED_SOLARIS_BITTYPES" 25914BSD_COMP="#undef BSD_COMP" 25915USE_FIONBIO_IOCTL="#undef USE_FIONBIO_IOCTL" 25916PORT_NONBLOCK="#define PORT_NONBLOCK O_NONBLOCK" 25917HAVE_MD5="#undef HAVE_MD5" 25918USE_POLL="#undef HAVE_POLL" 25919SOLARIS2="#undef SOLARIS2" 25920case "$host" in 25921 *aix3.2*) PORT_DIR="port/aix32";; 25922 *aix4*) PORT_DIR="port/aix4";; 25923 *aix5*) PORT_DIR="port/aix5";; 25924 *aux3*) PORT_DIR="port/aux3";; 25925 *-bsdi2*) PORT_DIR="port/bsdos2";; 25926 *-bsdi*) PORT_DIR="port/bsdos";; 25927 *-cygwin*) 25928 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY" 25929 PORT_DIR="port/cygwin";; 25930 *-darwin*) PORT_DIR="port/darwin";; 25931 *-dragonfly*) PORT_DIR="port/dragonfly";; 25932 *-osf*) PORT_DIR="port/decunix";; 25933 *-freebsd*) PORT_DIR="port/freebsd";; 25934 *-hpux9*) PORT_DIR="port/hpux9";; 25935 *-hpux10*) PORT_DIR="port/hpux10";; 25936 *-hpux11*) PORT_DIR="port/hpux";; 25937 *-irix*) PORT_DIR="port/irix";; 25938 *-linux*) PORT_DIR="port/linux";; 25939 *-lynxos*) PORT_DIR="port/lynxos";; 25940 *-mpe*) PORT_DIR="port/mpe";; 25941 *-netbsd*) PORT_DIR="port/netbsd";; 25942 *-next*) PORT_DIR="port/next";; 25943 *-openbsd*) PORT_DIR="port/openbsd";; 25944 *-qnx*) PORT_DIR="port/qnx";; 25945 *-rhapsody*) PORT_DIR="port/rhapsody";; 25946 *-sunos4*) 25947 cat >>confdefs.h <<\_ACEOF 25948#define NEED_SUN4PROTOS 1 25949_ACEOF 25950 25951 PORT_NONBLOCK="#define PORT_NONBLOCK O_NDELAY" 25952 PORT_DIR="port/sunos";; 25953 *-solaris2.[01234]) 25954 BSD_COMP="#define BSD_COMP 1" 25955 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1" 25956 USE_FIONBIO_IOCTL="#define USE_FIONBIO_IOCTL 1" 25957 SOLARIS2="#define SOLARIS2 1" 25958 PORT_DIR="port/solaris";; 25959 *-solaris2.5) 25960 BSD_COMP="#define BSD_COMP 1" 25961 SOLARIS_BITTYPES="#define NEED_SOLARIS_BITTYPES 1" 25962 SOLARIS2="#define SOLARIS2 1" 25963 PORT_DIR="port/solaris";; 25964 *-solaris2.[67]) 25965 BSD_COMP="#define BSD_COMP 1" 25966 SOLARIS2="#define SOLARIS2 1" 25967 PORT_DIR="port/solaris";; 25968 *-solaris2*) BSD_COMP="#define BSD_COMP 1" 25969 USE_POLL="#define USE_POLL 1" 25970 HAVE_MD5="#define HAVE_MD5 1" 25971 SOLARIS2="#define SOLARIS2 1" 25972 PORT_DIR="port/solaris";; 25973 *-ultrix*) PORT_DIR="port/ultrix";; 25974 *-sco-sysv*uw2.0*) PORT_DIR="port/unixware20";; 25975 *-sco-sysv*uw2.1.2*) PORT_DIR="port/unixware212";; 25976 *-sco-sysv*uw7*) PORT_DIR="port/unixware7";; 25977esac 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987PORT_INCLUDE=${PORT_DIR}/include 25988 25989 25990# 25991# Look for a 4.4BSD or 4.3BSD struct msghdr 25992# 25993{ echo "$as_me:$LINENO: checking for struct msghdr flavor" >&5 25994echo $ECHO_N "checking for struct msghdr flavor... $ECHO_C" >&6; } 25995cat >conftest.$ac_ext <<_ACEOF 25996/* confdefs.h. */ 25997_ACEOF 25998cat confdefs.h >>conftest.$ac_ext 25999cat >>conftest.$ac_ext <<_ACEOF 26000/* end confdefs.h. */ 26001 26002#include <sys/types.h> 26003#include <sys/socket.h> 26004int 26005main () 26006{ 26007struct msghdr msg; msg.msg_flags = 0; return (0); 26008 ; 26009 return 0; 26010} 26011_ACEOF 26012rm -f conftest.$ac_objext 26013if { (ac_try="$ac_compile" 26014case "(($ac_try" in 26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26016 *) ac_try_echo=$ac_try;; 26017esac 26018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26019 (eval "$ac_compile") 2>conftest.er1 26020 ac_status=$? 26021 grep -v '^ *+' conftest.er1 >conftest.err 26022 rm -f conftest.er1 26023 cat conftest.err >&5 26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26025 (exit $ac_status); } && { 26026 test -z "$ac_c_werror_flag" || 26027 test ! -s conftest.err 26028 } && test -s conftest.$ac_objext; then 26029 { echo "$as_me:$LINENO: result: 4.4BSD" >&5 26030echo "${ECHO_T}4.4BSD" >&6; } 26031 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1" 26032else 26033 echo "$as_me: failed program was:" >&5 26034sed 's/^/| /' conftest.$ac_ext >&5 26035 26036 { echo "$as_me:$LINENO: result: 4.3BSD" >&5 26037echo "${ECHO_T}4.3BSD" >&6; } 26038 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD43MSGHDR 1" 26039fi 26040 26041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26042 26043 26044# 26045# Look for in_port_t. 26046# 26047{ echo "$as_me:$LINENO: checking for type in_port_t" >&5 26048echo $ECHO_N "checking for type in_port_t... $ECHO_C" >&6; } 26049cat >conftest.$ac_ext <<_ACEOF 26050/* confdefs.h. */ 26051_ACEOF 26052cat confdefs.h >>conftest.$ac_ext 26053cat >>conftest.$ac_ext <<_ACEOF 26054/* end confdefs.h. */ 26055 26056#include <sys/types.h> 26057#include <netinet/in.h> 26058int 26059main () 26060{ 26061in_port_t port = 25; return (0); 26062 ; 26063 return 0; 26064} 26065_ACEOF 26066rm -f conftest.$ac_objext 26067if { (ac_try="$ac_compile" 26068case "(($ac_try" in 26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26070 *) ac_try_echo=$ac_try;; 26071esac 26072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26073 (eval "$ac_compile") 2>conftest.er1 26074 ac_status=$? 26075 grep -v '^ *+' conftest.er1 >conftest.err 26076 rm -f conftest.er1 26077 cat conftest.err >&5 26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26079 (exit $ac_status); } && { 26080 test -z "$ac_c_werror_flag" || 26081 test ! -s conftest.err 26082 } && test -s conftest.$ac_objext; then 26083 { echo "$as_me:$LINENO: result: yes" >&5 26084echo "${ECHO_T}yes" >&6; } 26085 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT" 26086else 26087 echo "$as_me: failed program was:" >&5 26088sed 's/^/| /' conftest.$ac_ext >&5 26089 26090 { echo "$as_me:$LINENO: result: no" >&5 26091echo "${ECHO_T}no" >&6; } 26092 ISC_PLATFORM_NEEDPORTT="#define ISC_PLATFORM_NEEDPORTT 1" 26093fi 26094 26095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26096 26097 26098{ echo "$as_me:$LINENO: checking for struct timespec" >&5 26099echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; } 26100cat >conftest.$ac_ext <<_ACEOF 26101/* confdefs.h. */ 26102_ACEOF 26103cat confdefs.h >>conftest.$ac_ext 26104cat >>conftest.$ac_ext <<_ACEOF 26105/* end confdefs.h. */ 26106 26107#include <sys/types.h> 26108#include <time.h> 26109int 26110main () 26111{ 26112struct timespec ts = { 0, 0 }; return (0); 26113 ; 26114 return 0; 26115} 26116_ACEOF 26117rm -f conftest.$ac_objext 26118if { (ac_try="$ac_compile" 26119case "(($ac_try" in 26120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26121 *) ac_try_echo=$ac_try;; 26122esac 26123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26124 (eval "$ac_compile") 2>conftest.er1 26125 ac_status=$? 26126 grep -v '^ *+' conftest.er1 >conftest.err 26127 rm -f conftest.er1 26128 cat conftest.err >&5 26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26130 (exit $ac_status); } && { 26131 test -z "$ac_c_werror_flag" || 26132 test ! -s conftest.err 26133 } && test -s conftest.$ac_objext; then 26134 { echo "$as_me:$LINENO: result: yes" >&5 26135echo "${ECHO_T}yes" >&6; } 26136 ISC_PLATFORM_NEEDTIMESPEC="#undef ISC_PLATFORM_NEEDTIMESPEC" 26137else 26138 echo "$as_me: failed program was:" >&5 26139sed 's/^/| /' conftest.$ac_ext >&5 26140 26141 { echo "$as_me:$LINENO: result: no" >&5 26142echo "${ECHO_T}no" >&6; } 26143 ISC_PLATFORM_NEEDTIMESPEC="#define ISC_PLATFORM_NEEDTIMESPEC 1" 26144fi 26145 26146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26147 26148 26149# 26150# Check for addrinfo 26151# 26152{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 26153echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } 26154cat >conftest.$ac_ext <<_ACEOF 26155/* confdefs.h. */ 26156_ACEOF 26157cat confdefs.h >>conftest.$ac_ext 26158cat >>conftest.$ac_ext <<_ACEOF 26159/* end confdefs.h. */ 26160 26161#include <netdb.h> 26162int 26163main () 26164{ 26165struct addrinfo a; return (0); 26166 ; 26167 return 0; 26168} 26169_ACEOF 26170rm -f conftest.$ac_objext 26171if { (ac_try="$ac_compile" 26172case "(($ac_try" in 26173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26174 *) ac_try_echo=$ac_try;; 26175esac 26176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26177 (eval "$ac_compile") 2>conftest.er1 26178 ac_status=$? 26179 grep -v '^ *+' conftest.er1 >conftest.err 26180 rm -f conftest.er1 26181 cat conftest.err >&5 26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26183 (exit $ac_status); } && { 26184 test -z "$ac_c_werror_flag" || 26185 test ! -s conftest.err 26186 } && test -s conftest.$ac_objext; then 26187 { echo "$as_me:$LINENO: result: yes" >&5 26188echo "${ECHO_T}yes" >&6; } 26189 cat >>confdefs.h <<\_ACEOF 26190#define HAVE_ADDRINFO 1 26191_ACEOF 26192 26193else 26194 echo "$as_me: failed program was:" >&5 26195sed 's/^/| /' conftest.$ac_ext >&5 26196 26197 { echo "$as_me:$LINENO: result: no" >&5 26198echo "${ECHO_T}no" >&6; } 26199fi 26200 26201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26202 26203{ echo "$as_me:$LINENO: checking for int sethostent" >&5 26204echo $ECHO_N "checking for int sethostent... $ECHO_C" >&6; } 26205cat >conftest.$ac_ext <<_ACEOF 26206/* confdefs.h. */ 26207_ACEOF 26208cat confdefs.h >>conftest.$ac_ext 26209cat >>conftest.$ac_ext <<_ACEOF 26210/* end confdefs.h. */ 26211 26212#include <netdb.h> 26213int 26214main () 26215{ 26216int i = sethostent(0); return(0); 26217 ; 26218 return 0; 26219} 26220_ACEOF 26221rm -f conftest.$ac_objext 26222if { (ac_try="$ac_compile" 26223case "(($ac_try" in 26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26225 *) ac_try_echo=$ac_try;; 26226esac 26227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26228 (eval "$ac_compile") 2>conftest.er1 26229 ac_status=$? 26230 grep -v '^ *+' conftest.er1 >conftest.err 26231 rm -f conftest.er1 26232 cat conftest.err >&5 26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26234 (exit $ac_status); } && { 26235 test -z "$ac_c_werror_flag" || 26236 test ! -s conftest.err 26237 } && test -s conftest.$ac_objext; then 26238 { echo "$as_me:$LINENO: result: yes" >&5 26239echo "${ECHO_T}yes" >&6; } 26240else 26241 echo "$as_me: failed program was:" >&5 26242sed 's/^/| /' conftest.$ac_ext >&5 26243 26244 { echo "$as_me:$LINENO: result: no" >&5 26245echo "${ECHO_T}no" >&6; } 26246fi 26247 26248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26249 26250{ echo "$as_me:$LINENO: checking for int endhostent" >&5 26251echo $ECHO_N "checking for int endhostent... $ECHO_C" >&6; } 26252cat >conftest.$ac_ext <<_ACEOF 26253/* confdefs.h. */ 26254_ACEOF 26255cat confdefs.h >>conftest.$ac_ext 26256cat >>conftest.$ac_ext <<_ACEOF 26257/* end confdefs.h. */ 26258 26259#include <netdb.h> 26260int 26261main () 26262{ 26263int i = endhostent(); return(0); 26264 ; 26265 return 0; 26266} 26267_ACEOF 26268rm -f conftest.$ac_objext 26269if { (ac_try="$ac_compile" 26270case "(($ac_try" in 26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26272 *) ac_try_echo=$ac_try;; 26273esac 26274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26275 (eval "$ac_compile") 2>conftest.er1 26276 ac_status=$? 26277 grep -v '^ *+' conftest.er1 >conftest.err 26278 rm -f conftest.er1 26279 cat conftest.err >&5 26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26281 (exit $ac_status); } && { 26282 test -z "$ac_c_werror_flag" || 26283 test ! -s conftest.err 26284 } && test -s conftest.$ac_objext; then 26285 { echo "$as_me:$LINENO: result: yes" >&5 26286echo "${ECHO_T}yes" >&6; } 26287 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1" 26288else 26289 echo "$as_me: failed program was:" >&5 26290sed 's/^/| /' conftest.$ac_ext >&5 26291 26292 { echo "$as_me:$LINENO: result: no" >&5 26293echo "${ECHO_T}no" >&6; } 26294 ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT" 26295fi 26296 26297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26298 26299 26300{ echo "$as_me:$LINENO: checking for int setnetent" >&5 26301echo $ECHO_N "checking for int setnetent... $ECHO_C" >&6; } 26302cat >conftest.$ac_ext <<_ACEOF 26303/* confdefs.h. */ 26304_ACEOF 26305cat confdefs.h >>conftest.$ac_ext 26306cat >>conftest.$ac_ext <<_ACEOF 26307/* end confdefs.h. */ 26308 26309#include <netdb.h> 26310int 26311main () 26312{ 26313int i = setnetent(0); return(0); 26314 ; 26315 return 0; 26316} 26317_ACEOF 26318rm -f conftest.$ac_objext 26319if { (ac_try="$ac_compile" 26320case "(($ac_try" in 26321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26322 *) ac_try_echo=$ac_try;; 26323esac 26324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26325 (eval "$ac_compile") 2>conftest.er1 26326 ac_status=$? 26327 grep -v '^ *+' conftest.er1 >conftest.err 26328 rm -f conftest.er1 26329 cat conftest.err >&5 26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26331 (exit $ac_status); } && { 26332 test -z "$ac_c_werror_flag" || 26333 test ! -s conftest.err 26334 } && test -s conftest.$ac_objext; then 26335 { echo "$as_me:$LINENO: result: yes" >&5 26336echo "${ECHO_T}yes" >&6; } 26337 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1" 26338else 26339 echo "$as_me: failed program was:" >&5 26340sed 's/^/| /' conftest.$ac_ext >&5 26341 26342 { echo "$as_me:$LINENO: result: no" >&5 26343echo "${ECHO_T}no" >&6; } 26344 ISC_LWRES_SETNETENTINT="#undef ISC_LWRES_SETNETENTINT" 26345fi 26346 26347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26348 26349 26350{ echo "$as_me:$LINENO: checking for int endnetent" >&5 26351echo $ECHO_N "checking for int endnetent... $ECHO_C" >&6; } 26352cat >conftest.$ac_ext <<_ACEOF 26353/* confdefs.h. */ 26354_ACEOF 26355cat confdefs.h >>conftest.$ac_ext 26356cat >>conftest.$ac_ext <<_ACEOF 26357/* end confdefs.h. */ 26358 26359#include <netdb.h> 26360int 26361main () 26362{ 26363int i = endnetent(); return(0); 26364 ; 26365 return 0; 26366} 26367_ACEOF 26368rm -f conftest.$ac_objext 26369if { (ac_try="$ac_compile" 26370case "(($ac_try" in 26371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26372 *) ac_try_echo=$ac_try;; 26373esac 26374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26375 (eval "$ac_compile") 2>conftest.er1 26376 ac_status=$? 26377 grep -v '^ *+' conftest.er1 >conftest.err 26378 rm -f conftest.er1 26379 cat conftest.err >&5 26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26381 (exit $ac_status); } && { 26382 test -z "$ac_c_werror_flag" || 26383 test ! -s conftest.err 26384 } && test -s conftest.$ac_objext; then 26385 { echo "$as_me:$LINENO: result: yes" >&5 26386echo "${ECHO_T}yes" >&6; } 26387 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1" 26388else 26389 echo "$as_me: failed program was:" >&5 26390sed 's/^/| /' conftest.$ac_ext >&5 26391 26392 { echo "$as_me:$LINENO: result: no" >&5 26393echo "${ECHO_T}no" >&6; } 26394 ISC_LWRES_ENDNETENTINT="#undef ISC_LWRES_ENDNETENTINT" 26395fi 26396 26397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26398 26399 26400{ echo "$as_me:$LINENO: checking for gethostbyaddr(const void *, size_t, ...)" >&5 26401echo $ECHO_N "checking for gethostbyaddr(const void *, size_t, ...)... $ECHO_C" >&6; } 26402cat >conftest.$ac_ext <<_ACEOF 26403/* confdefs.h. */ 26404_ACEOF 26405cat confdefs.h >>conftest.$ac_ext 26406cat >>conftest.$ac_ext <<_ACEOF 26407/* end confdefs.h. */ 26408 26409#include <netdb.h> 26410struct hostent *gethostbyaddr(const void *, size_t, int); 26411int 26412main () 26413{ 26414return(0); 26415 ; 26416 return 0; 26417} 26418_ACEOF 26419rm -f conftest.$ac_objext 26420if { (ac_try="$ac_compile" 26421case "(($ac_try" in 26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26423 *) ac_try_echo=$ac_try;; 26424esac 26425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26426 (eval "$ac_compile") 2>conftest.er1 26427 ac_status=$? 26428 grep -v '^ *+' conftest.er1 >conftest.err 26429 rm -f conftest.er1 26430 cat conftest.err >&5 26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26432 (exit $ac_status); } && { 26433 test -z "$ac_c_werror_flag" || 26434 test ! -s conftest.err 26435 } && test -s conftest.$ac_objext; then 26436 { echo "$as_me:$LINENO: result: yes" >&5 26437echo "${ECHO_T}yes" >&6; } 26438 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1" 26439else 26440 echo "$as_me: failed program was:" >&5 26441sed 's/^/| /' conftest.$ac_ext >&5 26442 26443 { echo "$as_me:$LINENO: result: no" >&5 26444echo "${ECHO_T}no" >&6; } 26445 ISC_LWRES_GETHOSTBYADDRVOID="#undef ISC_LWRES_GETHOSTBYADDRVOID" 26446fi 26447 26448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26449 26450 26451{ echo "$as_me:$LINENO: checking for h_errno in netdb.h" >&5 26452echo $ECHO_N "checking for h_errno in netdb.h... $ECHO_C" >&6; } 26453cat >conftest.$ac_ext <<_ACEOF 26454/* confdefs.h. */ 26455_ACEOF 26456cat confdefs.h >>conftest.$ac_ext 26457cat >>conftest.$ac_ext <<_ACEOF 26458/* end confdefs.h. */ 26459 26460#include <netdb.h> 26461int 26462main () 26463{ 26464h_errno = 1; return(0); 26465 ; 26466 return 0; 26467} 26468_ACEOF 26469rm -f conftest.$ac_objext 26470if { (ac_try="$ac_compile" 26471case "(($ac_try" in 26472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26473 *) ac_try_echo=$ac_try;; 26474esac 26475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26476 (eval "$ac_compile") 2>conftest.er1 26477 ac_status=$? 26478 grep -v '^ *+' conftest.er1 >conftest.err 26479 rm -f conftest.er1 26480 cat conftest.err >&5 26481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26482 (exit $ac_status); } && { 26483 test -z "$ac_c_werror_flag" || 26484 test ! -s conftest.err 26485 } && test -s conftest.$ac_objext; then 26486 { echo "$as_me:$LINENO: result: yes" >&5 26487echo "${ECHO_T}yes" >&6; } 26488 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO" 26489else 26490 echo "$as_me: failed program was:" >&5 26491sed 's/^/| /' conftest.$ac_ext >&5 26492 26493 { echo "$as_me:$LINENO: result: no" >&5 26494echo "${ECHO_T}no" >&6; } 26495 ISC_LWRES_NEEDHERRNO="#define ISC_LWRES_NEEDHERRNO 1" 26496fi 26497 26498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26499 26500 26501{ echo "$as_me:$LINENO: checking for getipnodebyname" >&5 26502echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6; } 26503if test "${ac_cv_func_getipnodebyname+set}" = set; then 26504 echo $ECHO_N "(cached) $ECHO_C" >&6 26505else 26506 cat >conftest.$ac_ext <<_ACEOF 26507/* confdefs.h. */ 26508_ACEOF 26509cat confdefs.h >>conftest.$ac_ext 26510cat >>conftest.$ac_ext <<_ACEOF 26511/* end confdefs.h. */ 26512/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname. 26513 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26514#define getipnodebyname innocuous_getipnodebyname 26515 26516/* System header to define __stub macros and hopefully few prototypes, 26517 which can conflict with char getipnodebyname (); below. 26518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26519 <limits.h> exists even on freestanding compilers. */ 26520 26521#ifdef __STDC__ 26522# include <limits.h> 26523#else 26524# include <assert.h> 26525#endif 26526 26527#undef getipnodebyname 26528 26529/* Override any GCC internal prototype to avoid an error. 26530 Use char because int might match the return type of a GCC 26531 builtin and then its argument prototype would still apply. */ 26532#ifdef __cplusplus 26533extern "C" 26534#endif 26535char getipnodebyname (); 26536/* The GNU C library defines this for functions which it implements 26537 to always fail with ENOSYS. Some functions are actually named 26538 something starting with __ and the normal name is an alias. */ 26539#if defined __stub_getipnodebyname || defined __stub___getipnodebyname 26540choke me 26541#endif 26542 26543int 26544main () 26545{ 26546return getipnodebyname (); 26547 ; 26548 return 0; 26549} 26550_ACEOF 26551rm -f conftest.$ac_objext conftest$ac_exeext 26552if { (ac_try="$ac_link" 26553case "(($ac_try" in 26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26555 *) ac_try_echo=$ac_try;; 26556esac 26557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26558 (eval "$ac_link") 2>conftest.er1 26559 ac_status=$? 26560 grep -v '^ *+' conftest.er1 >conftest.err 26561 rm -f conftest.er1 26562 cat conftest.err >&5 26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26564 (exit $ac_status); } && { 26565 test -z "$ac_c_werror_flag" || 26566 test ! -s conftest.err 26567 } && test -s conftest$ac_exeext && 26568 $as_test_x conftest$ac_exeext; then 26569 ac_cv_func_getipnodebyname=yes 26570else 26571 echo "$as_me: failed program was:" >&5 26572sed 's/^/| /' conftest.$ac_ext >&5 26573 26574 ac_cv_func_getipnodebyname=no 26575fi 26576 26577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26578 conftest$ac_exeext conftest.$ac_ext 26579fi 26580{ echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5 26581echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6; } 26582if test $ac_cv_func_getipnodebyname = yes; then 26583 ISC_LWRES_GETIPNODEPROTO="#undef ISC_LWRES_GETIPNODEPROTO" 26584else 26585 ISC_LWRES_GETIPNODEPROTO="#define ISC_LWRES_GETIPNODEPROTO 1" 26586fi 26587 26588{ echo "$as_me:$LINENO: checking for getnameinfo" >&5 26589echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; } 26590if test "${ac_cv_func_getnameinfo+set}" = set; then 26591 echo $ECHO_N "(cached) $ECHO_C" >&6 26592else 26593 cat >conftest.$ac_ext <<_ACEOF 26594/* confdefs.h. */ 26595_ACEOF 26596cat confdefs.h >>conftest.$ac_ext 26597cat >>conftest.$ac_ext <<_ACEOF 26598/* end confdefs.h. */ 26599/* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo. 26600 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26601#define getnameinfo innocuous_getnameinfo 26602 26603/* System header to define __stub macros and hopefully few prototypes, 26604 which can conflict with char getnameinfo (); below. 26605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26606 <limits.h> exists even on freestanding compilers. */ 26607 26608#ifdef __STDC__ 26609# include <limits.h> 26610#else 26611# include <assert.h> 26612#endif 26613 26614#undef getnameinfo 26615 26616/* Override any GCC internal prototype to avoid an error. 26617 Use char because int might match the return type of a GCC 26618 builtin and then its argument prototype would still apply. */ 26619#ifdef __cplusplus 26620extern "C" 26621#endif 26622char getnameinfo (); 26623/* The GNU C library defines this for functions which it implements 26624 to always fail with ENOSYS. Some functions are actually named 26625 something starting with __ and the normal name is an alias. */ 26626#if defined __stub_getnameinfo || defined __stub___getnameinfo 26627choke me 26628#endif 26629 26630int 26631main () 26632{ 26633return getnameinfo (); 26634 ; 26635 return 0; 26636} 26637_ACEOF 26638rm -f conftest.$ac_objext conftest$ac_exeext 26639if { (ac_try="$ac_link" 26640case "(($ac_try" in 26641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26642 *) ac_try_echo=$ac_try;; 26643esac 26644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26645 (eval "$ac_link") 2>conftest.er1 26646 ac_status=$? 26647 grep -v '^ *+' conftest.er1 >conftest.err 26648 rm -f conftest.er1 26649 cat conftest.err >&5 26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26651 (exit $ac_status); } && { 26652 test -z "$ac_c_werror_flag" || 26653 test ! -s conftest.err 26654 } && test -s conftest$ac_exeext && 26655 $as_test_x conftest$ac_exeext; then 26656 ac_cv_func_getnameinfo=yes 26657else 26658 echo "$as_me: failed program was:" >&5 26659sed 's/^/| /' conftest.$ac_ext >&5 26660 26661 ac_cv_func_getnameinfo=no 26662fi 26663 26664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26665 conftest$ac_exeext conftest.$ac_ext 26666fi 26667{ echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5 26668echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; } 26669if test $ac_cv_func_getnameinfo = yes; then 26670 ISC_LWRES_GETNAMEINFOPROTO="#undef ISC_LWRES_GETNAMEINFOPROTO" 26671else 26672 ISC_LWRES_GETNAMEINFOPROTO="#define ISC_LWRES_GETNAMEINFOPROTO 1" 26673fi 26674 26675{ echo "$as_me:$LINENO: checking for getaddrinfo" >&5 26676echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; } 26677if test "${ac_cv_func_getaddrinfo+set}" = set; then 26678 echo $ECHO_N "(cached) $ECHO_C" >&6 26679else 26680 cat >conftest.$ac_ext <<_ACEOF 26681/* confdefs.h. */ 26682_ACEOF 26683cat confdefs.h >>conftest.$ac_ext 26684cat >>conftest.$ac_ext <<_ACEOF 26685/* end confdefs.h. */ 26686/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 26687 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26688#define getaddrinfo innocuous_getaddrinfo 26689 26690/* System header to define __stub macros and hopefully few prototypes, 26691 which can conflict with char getaddrinfo (); below. 26692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26693 <limits.h> exists even on freestanding compilers. */ 26694 26695#ifdef __STDC__ 26696# include <limits.h> 26697#else 26698# include <assert.h> 26699#endif 26700 26701#undef getaddrinfo 26702 26703/* Override any GCC internal prototype to avoid an error. 26704 Use char because int might match the return type of a GCC 26705 builtin and then its argument prototype would still apply. */ 26706#ifdef __cplusplus 26707extern "C" 26708#endif 26709char getaddrinfo (); 26710/* The GNU C library defines this for functions which it implements 26711 to always fail with ENOSYS. Some functions are actually named 26712 something starting with __ and the normal name is an alias. */ 26713#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 26714choke me 26715#endif 26716 26717int 26718main () 26719{ 26720return getaddrinfo (); 26721 ; 26722 return 0; 26723} 26724_ACEOF 26725rm -f conftest.$ac_objext conftest$ac_exeext 26726if { (ac_try="$ac_link" 26727case "(($ac_try" in 26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26729 *) ac_try_echo=$ac_try;; 26730esac 26731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26732 (eval "$ac_link") 2>conftest.er1 26733 ac_status=$? 26734 grep -v '^ *+' conftest.er1 >conftest.err 26735 rm -f conftest.er1 26736 cat conftest.err >&5 26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26738 (exit $ac_status); } && { 26739 test -z "$ac_c_werror_flag" || 26740 test ! -s conftest.err 26741 } && test -s conftest$ac_exeext && 26742 $as_test_x conftest$ac_exeext; then 26743 ac_cv_func_getaddrinfo=yes 26744else 26745 echo "$as_me: failed program was:" >&5 26746sed 's/^/| /' conftest.$ac_ext >&5 26747 26748 ac_cv_func_getaddrinfo=no 26749fi 26750 26751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26752 conftest$ac_exeext conftest.$ac_ext 26753fi 26754{ echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 26755echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; } 26756if test $ac_cv_func_getaddrinfo = yes; then 26757 ISC_LWRES_GETADDRINFOPROTO="#undef ISC_LWRES_GETADDRINFOPROTO" 26758 cat >>confdefs.h <<\_ACEOF 26759#define HAVE_GETADDRINFO 1 26760_ACEOF 26761 26762else 26763 ISC_LWRES_GETADDRINFOPROTO="#define ISC_LWRES_GETADDRINFOPROTO 1" 26764fi 26765 26766{ echo "$as_me:$LINENO: checking for gai_strerror" >&5 26767echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6; } 26768if test "${ac_cv_func_gai_strerror+set}" = set; then 26769 echo $ECHO_N "(cached) $ECHO_C" >&6 26770else 26771 cat >conftest.$ac_ext <<_ACEOF 26772/* confdefs.h. */ 26773_ACEOF 26774cat confdefs.h >>conftest.$ac_ext 26775cat >>conftest.$ac_ext <<_ACEOF 26776/* end confdefs.h. */ 26777/* Define gai_strerror to an innocuous variant, in case <limits.h> declares gai_strerror. 26778 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26779#define gai_strerror innocuous_gai_strerror 26780 26781/* System header to define __stub macros and hopefully few prototypes, 26782 which can conflict with char gai_strerror (); below. 26783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26784 <limits.h> exists even on freestanding compilers. */ 26785 26786#ifdef __STDC__ 26787# include <limits.h> 26788#else 26789# include <assert.h> 26790#endif 26791 26792#undef gai_strerror 26793 26794/* Override any GCC internal prototype to avoid an error. 26795 Use char because int might match the return type of a GCC 26796 builtin and then its argument prototype would still apply. */ 26797#ifdef __cplusplus 26798extern "C" 26799#endif 26800char gai_strerror (); 26801/* The GNU C library defines this for functions which it implements 26802 to always fail with ENOSYS. Some functions are actually named 26803 something starting with __ and the normal name is an alias. */ 26804#if defined __stub_gai_strerror || defined __stub___gai_strerror 26805choke me 26806#endif 26807 26808int 26809main () 26810{ 26811return gai_strerror (); 26812 ; 26813 return 0; 26814} 26815_ACEOF 26816rm -f conftest.$ac_objext conftest$ac_exeext 26817if { (ac_try="$ac_link" 26818case "(($ac_try" in 26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26820 *) ac_try_echo=$ac_try;; 26821esac 26822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26823 (eval "$ac_link") 2>conftest.er1 26824 ac_status=$? 26825 grep -v '^ *+' conftest.er1 >conftest.err 26826 rm -f conftest.er1 26827 cat conftest.err >&5 26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26829 (exit $ac_status); } && { 26830 test -z "$ac_c_werror_flag" || 26831 test ! -s conftest.err 26832 } && test -s conftest$ac_exeext && 26833 $as_test_x conftest$ac_exeext; then 26834 ac_cv_func_gai_strerror=yes 26835else 26836 echo "$as_me: failed program was:" >&5 26837sed 's/^/| /' conftest.$ac_ext >&5 26838 26839 ac_cv_func_gai_strerror=no 26840fi 26841 26842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26843 conftest$ac_exeext conftest.$ac_ext 26844fi 26845{ echo "$as_me:$LINENO: result: $ac_cv_func_gai_strerror" >&5 26846echo "${ECHO_T}$ac_cv_func_gai_strerror" >&6; } 26847if test $ac_cv_func_gai_strerror = yes; then 26848 cat >>confdefs.h <<\_ACEOF 26849#define HAVE_GAISTRERROR 1 26850_ACEOF 26851 26852fi 26853 26854 26855 26856 26857{ echo "$as_me:$LINENO: checking for pselect" >&5 26858echo $ECHO_N "checking for pselect... $ECHO_C" >&6; } 26859if test "${ac_cv_func_pselect+set}" = set; then 26860 echo $ECHO_N "(cached) $ECHO_C" >&6 26861else 26862 cat >conftest.$ac_ext <<_ACEOF 26863/* confdefs.h. */ 26864_ACEOF 26865cat confdefs.h >>conftest.$ac_ext 26866cat >>conftest.$ac_ext <<_ACEOF 26867/* end confdefs.h. */ 26868/* Define pselect to an innocuous variant, in case <limits.h> declares pselect. 26869 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26870#define pselect innocuous_pselect 26871 26872/* System header to define __stub macros and hopefully few prototypes, 26873 which can conflict with char pselect (); below. 26874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26875 <limits.h> exists even on freestanding compilers. */ 26876 26877#ifdef __STDC__ 26878# include <limits.h> 26879#else 26880# include <assert.h> 26881#endif 26882 26883#undef pselect 26884 26885/* Override any GCC internal prototype to avoid an error. 26886 Use char because int might match the return type of a GCC 26887 builtin and then its argument prototype would still apply. */ 26888#ifdef __cplusplus 26889extern "C" 26890#endif 26891char pselect (); 26892/* The GNU C library defines this for functions which it implements 26893 to always fail with ENOSYS. Some functions are actually named 26894 something starting with __ and the normal name is an alias. */ 26895#if defined __stub_pselect || defined __stub___pselect 26896choke me 26897#endif 26898 26899int 26900main () 26901{ 26902return pselect (); 26903 ; 26904 return 0; 26905} 26906_ACEOF 26907rm -f conftest.$ac_objext conftest$ac_exeext 26908if { (ac_try="$ac_link" 26909case "(($ac_try" in 26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26911 *) ac_try_echo=$ac_try;; 26912esac 26913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26914 (eval "$ac_link") 2>conftest.er1 26915 ac_status=$? 26916 grep -v '^ *+' conftest.er1 >conftest.err 26917 rm -f conftest.er1 26918 cat conftest.err >&5 26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26920 (exit $ac_status); } && { 26921 test -z "$ac_c_werror_flag" || 26922 test ! -s conftest.err 26923 } && test -s conftest$ac_exeext && 26924 $as_test_x conftest$ac_exeext; then 26925 ac_cv_func_pselect=yes 26926else 26927 echo "$as_me: failed program was:" >&5 26928sed 's/^/| /' conftest.$ac_ext >&5 26929 26930 ac_cv_func_pselect=no 26931fi 26932 26933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26934 conftest$ac_exeext conftest.$ac_ext 26935fi 26936{ echo "$as_me:$LINENO: result: $ac_cv_func_pselect" >&5 26937echo "${ECHO_T}$ac_cv_func_pselect" >&6; } 26938if test $ac_cv_func_pselect = yes; then 26939 NEED_PSELECT="#undef NEED_PSELECT" 26940else 26941 NEED_PSELECT="#define NEED_PSELECT" 26942fi 26943 26944 26945{ echo "$as_me:$LINENO: checking for gettimeofday" >&5 26946echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; } 26947if test "${ac_cv_func_gettimeofday+set}" = set; then 26948 echo $ECHO_N "(cached) $ECHO_C" >&6 26949else 26950 cat >conftest.$ac_ext <<_ACEOF 26951/* confdefs.h. */ 26952_ACEOF 26953cat confdefs.h >>conftest.$ac_ext 26954cat >>conftest.$ac_ext <<_ACEOF 26955/* end confdefs.h. */ 26956/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday. 26957 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26958#define gettimeofday innocuous_gettimeofday 26959 26960/* System header to define __stub macros and hopefully few prototypes, 26961 which can conflict with char gettimeofday (); below. 26962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26963 <limits.h> exists even on freestanding compilers. */ 26964 26965#ifdef __STDC__ 26966# include <limits.h> 26967#else 26968# include <assert.h> 26969#endif 26970 26971#undef gettimeofday 26972 26973/* Override any GCC internal prototype to avoid an error. 26974 Use char because int might match the return type of a GCC 26975 builtin and then its argument prototype would still apply. */ 26976#ifdef __cplusplus 26977extern "C" 26978#endif 26979char gettimeofday (); 26980/* The GNU C library defines this for functions which it implements 26981 to always fail with ENOSYS. Some functions are actually named 26982 something starting with __ and the normal name is an alias. */ 26983#if defined __stub_gettimeofday || defined __stub___gettimeofday 26984choke me 26985#endif 26986 26987int 26988main () 26989{ 26990return gettimeofday (); 26991 ; 26992 return 0; 26993} 26994_ACEOF 26995rm -f conftest.$ac_objext conftest$ac_exeext 26996if { (ac_try="$ac_link" 26997case "(($ac_try" in 26998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26999 *) ac_try_echo=$ac_try;; 27000esac 27001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27002 (eval "$ac_link") 2>conftest.er1 27003 ac_status=$? 27004 grep -v '^ *+' conftest.er1 >conftest.err 27005 rm -f conftest.er1 27006 cat conftest.err >&5 27007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27008 (exit $ac_status); } && { 27009 test -z "$ac_c_werror_flag" || 27010 test ! -s conftest.err 27011 } && test -s conftest$ac_exeext && 27012 $as_test_x conftest$ac_exeext; then 27013 ac_cv_func_gettimeofday=yes 27014else 27015 echo "$as_me: failed program was:" >&5 27016sed 's/^/| /' conftest.$ac_ext >&5 27017 27018 ac_cv_func_gettimeofday=no 27019fi 27020 27021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27022 conftest$ac_exeext conftest.$ac_ext 27023fi 27024{ echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 27025echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; } 27026if test $ac_cv_func_gettimeofday = yes; then 27027 NEED_GETTIMEOFDAY="#undef NEED_GETTIMEOFDAY" 27028else 27029 NEED_GETTIMEOFDAY="#define NEED_GETTIMEOFDAY 1" 27030fi 27031 27032 27033{ echo "$as_me:$LINENO: checking for strndup" >&5 27034echo $ECHO_N "checking for strndup... $ECHO_C" >&6; } 27035if test "${ac_cv_func_strndup+set}" = set; then 27036 echo $ECHO_N "(cached) $ECHO_C" >&6 27037else 27038 cat >conftest.$ac_ext <<_ACEOF 27039/* confdefs.h. */ 27040_ACEOF 27041cat confdefs.h >>conftest.$ac_ext 27042cat >>conftest.$ac_ext <<_ACEOF 27043/* end confdefs.h. */ 27044/* Define strndup to an innocuous variant, in case <limits.h> declares strndup. 27045 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27046#define strndup innocuous_strndup 27047 27048/* System header to define __stub macros and hopefully few prototypes, 27049 which can conflict with char strndup (); below. 27050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27051 <limits.h> exists even on freestanding compilers. */ 27052 27053#ifdef __STDC__ 27054# include <limits.h> 27055#else 27056# include <assert.h> 27057#endif 27058 27059#undef strndup 27060 27061/* Override any GCC internal prototype to avoid an error. 27062 Use char because int might match the return type of a GCC 27063 builtin and then its argument prototype would still apply. */ 27064#ifdef __cplusplus 27065extern "C" 27066#endif 27067char strndup (); 27068/* The GNU C library defines this for functions which it implements 27069 to always fail with ENOSYS. Some functions are actually named 27070 something starting with __ and the normal name is an alias. */ 27071#if defined __stub_strndup || defined __stub___strndup 27072choke me 27073#endif 27074 27075int 27076main () 27077{ 27078return strndup (); 27079 ; 27080 return 0; 27081} 27082_ACEOF 27083rm -f conftest.$ac_objext conftest$ac_exeext 27084if { (ac_try="$ac_link" 27085case "(($ac_try" in 27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27087 *) ac_try_echo=$ac_try;; 27088esac 27089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27090 (eval "$ac_link") 2>conftest.er1 27091 ac_status=$? 27092 grep -v '^ *+' conftest.er1 >conftest.err 27093 rm -f conftest.er1 27094 cat conftest.err >&5 27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27096 (exit $ac_status); } && { 27097 test -z "$ac_c_werror_flag" || 27098 test ! -s conftest.err 27099 } && test -s conftest$ac_exeext && 27100 $as_test_x conftest$ac_exeext; then 27101 ac_cv_func_strndup=yes 27102else 27103 echo "$as_me: failed program was:" >&5 27104sed 's/^/| /' conftest.$ac_ext >&5 27105 27106 ac_cv_func_strndup=no 27107fi 27108 27109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27110 conftest$ac_exeext conftest.$ac_ext 27111fi 27112{ echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 27113echo "${ECHO_T}$ac_cv_func_strndup" >&6; } 27114if test $ac_cv_func_strndup = yes; then 27115 HAVE_STRNDUP="#define HAVE_STRNDUP 1" 27116else 27117 HAVE_STRNDUP="#undef HAVE_STRNDUP" 27118fi 27119 27120 27121 27122# 27123# Look for a sysctl call to get the list of network interfaces. 27124# 27125{ echo "$as_me:$LINENO: checking for interface list sysctl" >&5 27126echo $ECHO_N "checking for interface list sysctl... $ECHO_C" >&6; } 27127cat >conftest.$ac_ext <<_ACEOF 27128/* confdefs.h. */ 27129_ACEOF 27130cat confdefs.h >>conftest.$ac_ext 27131cat >>conftest.$ac_ext <<_ACEOF 27132/* end confdefs.h. */ 27133 27134#include <sys/param.h> 27135#include <sys/sysctl.h> 27136#include <sys/socket.h> 27137#ifdef NET_RT_IFLIST 27138found_rt_iflist 27139#endif 27140 27141_ACEOF 27142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27143 $EGREP "found_rt_iflist" >/dev/null 2>&1; then 27144 { echo "$as_me:$LINENO: result: yes" >&5 27145echo "${ECHO_T}yes" >&6; } 27146 cat >>confdefs.h <<\_ACEOF 27147#define HAVE_IFLIST_SYSCTL 1 27148_ACEOF 27149 27150else 27151 { echo "$as_me:$LINENO: result: no" >&5 27152echo "${ECHO_T}no" >&6; } 27153fi 27154rm -f conftest* 27155 27156 27157# 27158# Check for some other useful functions that are not ever-present. 27159# 27160{ echo "$as_me:$LINENO: checking for strsep" >&5 27161echo $ECHO_N "checking for strsep... $ECHO_C" >&6; } 27162if test "${ac_cv_func_strsep+set}" = set; then 27163 echo $ECHO_N "(cached) $ECHO_C" >&6 27164else 27165 cat >conftest.$ac_ext <<_ACEOF 27166/* confdefs.h. */ 27167_ACEOF 27168cat confdefs.h >>conftest.$ac_ext 27169cat >>conftest.$ac_ext <<_ACEOF 27170/* end confdefs.h. */ 27171/* Define strsep to an innocuous variant, in case <limits.h> declares strsep. 27172 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27173#define strsep innocuous_strsep 27174 27175/* System header to define __stub macros and hopefully few prototypes, 27176 which can conflict with char strsep (); below. 27177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27178 <limits.h> exists even on freestanding compilers. */ 27179 27180#ifdef __STDC__ 27181# include <limits.h> 27182#else 27183# include <assert.h> 27184#endif 27185 27186#undef strsep 27187 27188/* Override any GCC internal prototype to avoid an error. 27189 Use char because int might match the return type of a GCC 27190 builtin and then its argument prototype would still apply. */ 27191#ifdef __cplusplus 27192extern "C" 27193#endif 27194char strsep (); 27195/* The GNU C library defines this for functions which it implements 27196 to always fail with ENOSYS. Some functions are actually named 27197 something starting with __ and the normal name is an alias. */ 27198#if defined __stub_strsep || defined __stub___strsep 27199choke me 27200#endif 27201 27202int 27203main () 27204{ 27205return strsep (); 27206 ; 27207 return 0; 27208} 27209_ACEOF 27210rm -f conftest.$ac_objext conftest$ac_exeext 27211if { (ac_try="$ac_link" 27212case "(($ac_try" in 27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27214 *) ac_try_echo=$ac_try;; 27215esac 27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27217 (eval "$ac_link") 2>conftest.er1 27218 ac_status=$? 27219 grep -v '^ *+' conftest.er1 >conftest.err 27220 rm -f conftest.er1 27221 cat conftest.err >&5 27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27223 (exit $ac_status); } && { 27224 test -z "$ac_c_werror_flag" || 27225 test ! -s conftest.err 27226 } && test -s conftest$ac_exeext && 27227 $as_test_x conftest$ac_exeext; then 27228 ac_cv_func_strsep=yes 27229else 27230 echo "$as_me: failed program was:" >&5 27231sed 's/^/| /' conftest.$ac_ext >&5 27232 27233 ac_cv_func_strsep=no 27234fi 27235 27236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27237 conftest$ac_exeext conftest.$ac_ext 27238fi 27239{ echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 27240echo "${ECHO_T}$ac_cv_func_strsep" >&6; } 27241if test $ac_cv_func_strsep = yes; then 27242 ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP" 27243else 27244 ISC_PLATFORM_NEEDSTRSEP="#define ISC_PLATFORM_NEEDSTRSEP 1" 27245fi 27246 27247 27248 27249{ echo "$as_me:$LINENO: checking for char *sprintf" >&5 27250echo $ECHO_N "checking for char *sprintf... $ECHO_C" >&6; } 27251cat >conftest.$ac_ext <<_ACEOF 27252/* confdefs.h. */ 27253_ACEOF 27254cat confdefs.h >>conftest.$ac_ext 27255cat >>conftest.$ac_ext <<_ACEOF 27256/* end confdefs.h. */ 27257 27258#include <stdio.h> 27259 27260int 27261main () 27262{ 27263 char buf[2]; return(*sprintf(buf,"x")); 27264 ; 27265 return 0; 27266} 27267_ACEOF 27268rm -f conftest.$ac_objext 27269if { (ac_try="$ac_compile" 27270case "(($ac_try" in 27271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27272 *) ac_try_echo=$ac_try;; 27273esac 27274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27275 (eval "$ac_compile") 2>conftest.er1 27276 ac_status=$? 27277 grep -v '^ *+' conftest.er1 >conftest.err 27278 rm -f conftest.er1 27279 cat conftest.err >&5 27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27281 (exit $ac_status); } && { 27282 test -z "$ac_c_werror_flag" || 27283 test ! -s conftest.err 27284 } && test -s conftest.$ac_objext; then 27285 cat >>confdefs.h <<\_ACEOF 27286#define SPRINTF_CHAR 1 27287_ACEOF 27288 27289{ echo "$as_me:$LINENO: result: yes" >&5 27290echo "${ECHO_T}yes" >&6; } 27291 27292else 27293 echo "$as_me: failed program was:" >&5 27294sed 's/^/| /' conftest.$ac_ext >&5 27295 27296 { echo "$as_me:$LINENO: result: no" >&5 27297echo "${ECHO_T}no" >&6; } 27298 27299fi 27300 27301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27302 27303{ echo "$as_me:$LINENO: checking for char *vsprintf" >&5 27304echo $ECHO_N "checking for char *vsprintf... $ECHO_C" >&6; } 27305case $host in 27306*sunos4*) # not decared in any header file. 27307cat >>confdefs.h <<\_ACEOF 27308#define VSPRINTF_CHAR 1 27309_ACEOF 27310 27311{ echo "$as_me:$LINENO: result: yes" >&5 27312echo "${ECHO_T}yes" >&6; } 27313;; 27314*) 27315cat >conftest.$ac_ext <<_ACEOF 27316/* confdefs.h. */ 27317_ACEOF 27318cat confdefs.h >>conftest.$ac_ext 27319cat >>conftest.$ac_ext <<_ACEOF 27320/* end confdefs.h. */ 27321 27322#include <stdio.h> 27323 27324int 27325main () 27326{ 27327 char buf[2]; return(*vsprintf(buf,"x")); 27328 ; 27329 return 0; 27330} 27331_ACEOF 27332rm -f conftest.$ac_objext 27333if { (ac_try="$ac_compile" 27334case "(($ac_try" in 27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27336 *) ac_try_echo=$ac_try;; 27337esac 27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27339 (eval "$ac_compile") 2>conftest.er1 27340 ac_status=$? 27341 grep -v '^ *+' conftest.er1 >conftest.err 27342 rm -f conftest.er1 27343 cat conftest.err >&5 27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27345 (exit $ac_status); } && { 27346 test -z "$ac_c_werror_flag" || 27347 test ! -s conftest.err 27348 } && test -s conftest.$ac_objext; then 27349 cat >>confdefs.h <<\_ACEOF 27350#define VSPRINTF_CHAR 1 27351_ACEOF 27352 27353{ echo "$as_me:$LINENO: result: yes" >&5 27354echo "${ECHO_T}yes" >&6; } 27355 27356else 27357 echo "$as_me: failed program was:" >&5 27358sed 's/^/| /' conftest.$ac_ext >&5 27359 27360 { echo "$as_me:$LINENO: result: no" >&5 27361echo "${ECHO_T}no" >&6; } 27362 27363fi 27364 27365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27366;; 27367esac 27368 27369{ echo "$as_me:$LINENO: checking for vsnprintf" >&5 27370echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; } 27371if test "${ac_cv_func_vsnprintf+set}" = set; then 27372 echo $ECHO_N "(cached) $ECHO_C" >&6 27373else 27374 cat >conftest.$ac_ext <<_ACEOF 27375/* confdefs.h. */ 27376_ACEOF 27377cat confdefs.h >>conftest.$ac_ext 27378cat >>conftest.$ac_ext <<_ACEOF 27379/* end confdefs.h. */ 27380/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. 27381 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27382#define vsnprintf innocuous_vsnprintf 27383 27384/* System header to define __stub macros and hopefully few prototypes, 27385 which can conflict with char vsnprintf (); below. 27386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27387 <limits.h> exists even on freestanding compilers. */ 27388 27389#ifdef __STDC__ 27390# include <limits.h> 27391#else 27392# include <assert.h> 27393#endif 27394 27395#undef vsnprintf 27396 27397/* Override any GCC internal prototype to avoid an error. 27398 Use char because int might match the return type of a GCC 27399 builtin and then its argument prototype would still apply. */ 27400#ifdef __cplusplus 27401extern "C" 27402#endif 27403char vsnprintf (); 27404/* The GNU C library defines this for functions which it implements 27405 to always fail with ENOSYS. Some functions are actually named 27406 something starting with __ and the normal name is an alias. */ 27407#if defined __stub_vsnprintf || defined __stub___vsnprintf 27408choke me 27409#endif 27410 27411int 27412main () 27413{ 27414return vsnprintf (); 27415 ; 27416 return 0; 27417} 27418_ACEOF 27419rm -f conftest.$ac_objext conftest$ac_exeext 27420if { (ac_try="$ac_link" 27421case "(($ac_try" in 27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27423 *) ac_try_echo=$ac_try;; 27424esac 27425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27426 (eval "$ac_link") 2>conftest.er1 27427 ac_status=$? 27428 grep -v '^ *+' conftest.er1 >conftest.err 27429 rm -f conftest.er1 27430 cat conftest.err >&5 27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27432 (exit $ac_status); } && { 27433 test -z "$ac_c_werror_flag" || 27434 test ! -s conftest.err 27435 } && test -s conftest$ac_exeext && 27436 $as_test_x conftest$ac_exeext; then 27437 ac_cv_func_vsnprintf=yes 27438else 27439 echo "$as_me: failed program was:" >&5 27440sed 's/^/| /' conftest.$ac_ext >&5 27441 27442 ac_cv_func_vsnprintf=no 27443fi 27444 27445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27446 conftest$ac_exeext conftest.$ac_ext 27447fi 27448{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 27449echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; } 27450if test $ac_cv_func_vsnprintf = yes; then 27451 ISC_PLATFORM_NEEDVSNPRINTF="#undef ISC_PLATFORM_NEEDVSNPRINTF" 27452else 27453 ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS print.$O" 27454 ISC_EXTRA_SRCS="$ISC_EXTRA_SRCS print.c" 27455 ISC_PLATFORM_NEEDVSNPRINTF="#define ISC_PLATFORM_NEEDVSNPRINTF 1" 27456fi 27457 27458 27459 27460 27461 27462 27463 27464# Determine the printf format characters to use when printing 27465# values of type isc_int64_t. We make the assumption that platforms 27466# where a "long long" is the same size as a "long" (e.g., Alpha/OSF1) 27467# want "%ld" and everyone else can use "%lld". Win32 uses "%I64d", 27468# but that's defined elsewhere since we don't use configure on Win32. 27469# 27470{ echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5 27471echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6; } 27472if test "$cross_compiling" = yes; then 27473 { echo "$as_me:$LINENO: result: default ll" >&5 27474echo "${ECHO_T}default ll" >&6; } 27475 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 27476else 27477 cat >conftest.$ac_ext <<_ACEOF 27478/* confdefs.h. */ 27479_ACEOF 27480cat confdefs.h >>conftest.$ac_ext 27481cat >>conftest.$ac_ext <<_ACEOF 27482/* end confdefs.h. */ 27483main() { exit(!(sizeof(long long int) == sizeof(long int))); } 27484_ACEOF 27485rm -f conftest$ac_exeext 27486if { (ac_try="$ac_link" 27487case "(($ac_try" in 27488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27489 *) ac_try_echo=$ac_try;; 27490esac 27491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27492 (eval "$ac_link") 2>&5 27493 ac_status=$? 27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 27496 { (case "(($ac_try" in 27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27498 *) ac_try_echo=$ac_try;; 27499esac 27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27501 (eval "$ac_try") 2>&5 27502 ac_status=$? 27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27504 (exit $ac_status); }; }; then 27505 { echo "$as_me:$LINENO: result: l" >&5 27506echo "${ECHO_T}l" >&6; } 27507 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"' 27508else 27509 echo "$as_me: program exited with status $ac_status" >&5 27510echo "$as_me: failed program was:" >&5 27511sed 's/^/| /' conftest.$ac_ext >&5 27512 27513( exit $ac_status ) 27514{ echo "$as_me:$LINENO: result: ll" >&5 27515echo "${ECHO_T}ll" >&6; } 27516 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"' 27517fi 27518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 27519fi 27520 27521 27522 27523 27524# 27525# Security Stuff 27526# 27527{ echo "$as_me:$LINENO: checking for chroot" >&5 27528echo $ECHO_N "checking for chroot... $ECHO_C" >&6; } 27529if test "${ac_cv_func_chroot+set}" = set; then 27530 echo $ECHO_N "(cached) $ECHO_C" >&6 27531else 27532 cat >conftest.$ac_ext <<_ACEOF 27533/* confdefs.h. */ 27534_ACEOF 27535cat confdefs.h >>conftest.$ac_ext 27536cat >>conftest.$ac_ext <<_ACEOF 27537/* end confdefs.h. */ 27538/* Define chroot to an innocuous variant, in case <limits.h> declares chroot. 27539 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27540#define chroot innocuous_chroot 27541 27542/* System header to define __stub macros and hopefully few prototypes, 27543 which can conflict with char chroot (); below. 27544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27545 <limits.h> exists even on freestanding compilers. */ 27546 27547#ifdef __STDC__ 27548# include <limits.h> 27549#else 27550# include <assert.h> 27551#endif 27552 27553#undef chroot 27554 27555/* Override any GCC internal prototype to avoid an error. 27556 Use char because int might match the return type of a GCC 27557 builtin and then its argument prototype would still apply. */ 27558#ifdef __cplusplus 27559extern "C" 27560#endif 27561char chroot (); 27562/* The GNU C library defines this for functions which it implements 27563 to always fail with ENOSYS. Some functions are actually named 27564 something starting with __ and the normal name is an alias. */ 27565#if defined __stub_chroot || defined __stub___chroot 27566choke me 27567#endif 27568 27569int 27570main () 27571{ 27572return chroot (); 27573 ; 27574 return 0; 27575} 27576_ACEOF 27577rm -f conftest.$ac_objext conftest$ac_exeext 27578if { (ac_try="$ac_link" 27579case "(($ac_try" in 27580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27581 *) ac_try_echo=$ac_try;; 27582esac 27583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27584 (eval "$ac_link") 2>conftest.er1 27585 ac_status=$? 27586 grep -v '^ *+' conftest.er1 >conftest.err 27587 rm -f conftest.er1 27588 cat conftest.err >&5 27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27590 (exit $ac_status); } && { 27591 test -z "$ac_c_werror_flag" || 27592 test ! -s conftest.err 27593 } && test -s conftest$ac_exeext && 27594 $as_test_x conftest$ac_exeext; then 27595 ac_cv_func_chroot=yes 27596else 27597 echo "$as_me: failed program was:" >&5 27598sed 's/^/| /' conftest.$ac_ext >&5 27599 27600 ac_cv_func_chroot=no 27601fi 27602 27603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27604 conftest$ac_exeext conftest.$ac_ext 27605fi 27606{ echo "$as_me:$LINENO: result: $ac_cv_func_chroot" >&5 27607echo "${ECHO_T}$ac_cv_func_chroot" >&6; } 27608if test $ac_cv_func_chroot = yes; then 27609 cat >>confdefs.h <<\_ACEOF 27610#define HAVE_CHROOT 1 27611_ACEOF 27612 27613fi 27614 27615 27616# 27617# for accept, recvfrom, getpeername etc. 27618# 27619{ echo "$as_me:$LINENO: checking for socket length type" >&5 27620echo $ECHO_N "checking for socket length type... $ECHO_C" >&6; } 27621cat >conftest.$ac_ext <<_ACEOF 27622/* confdefs.h. */ 27623_ACEOF 27624cat confdefs.h >>conftest.$ac_ext 27625cat >>conftest.$ac_ext <<_ACEOF 27626/* end confdefs.h. */ 27627 27628#include <sys/types.h> 27629#include <sys/socket.h> 27630int accept(int, struct sockaddr *, socklen_t *); 27631 27632int 27633main () 27634{ 27635 27636 ; 27637 return 0; 27638} 27639_ACEOF 27640rm -f conftest.$ac_objext 27641if { (ac_try="$ac_compile" 27642case "(($ac_try" in 27643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27644 *) ac_try_echo=$ac_try;; 27645esac 27646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27647 (eval "$ac_compile") 2>conftest.er1 27648 ac_status=$? 27649 grep -v '^ *+' conftest.er1 >conftest.err 27650 rm -f conftest.er1 27651 cat conftest.err >&5 27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27653 (exit $ac_status); } && { 27654 test -z "$ac_c_werror_flag" || 27655 test ! -s conftest.err 27656 } && test -s conftest.$ac_objext; then 27657 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T socklen_t" 27658{ echo "$as_me:$LINENO: result: socklen_t" >&5 27659echo "${ECHO_T}socklen_t" >&6; } 27660 27661else 27662 echo "$as_me: failed program was:" >&5 27663sed 's/^/| /' conftest.$ac_ext >&5 27664 27665 cat >conftest.$ac_ext <<_ACEOF 27666/* confdefs.h. */ 27667_ACEOF 27668cat confdefs.h >>conftest.$ac_ext 27669cat >>conftest.$ac_ext <<_ACEOF 27670/* end confdefs.h. */ 27671 27672#include <sys/types.h> 27673#include <sys/socket.h> 27674int accept(int, struct sockaddr *, unsigned int *); 27675 27676int 27677main () 27678{ 27679 27680 ; 27681 return 0; 27682} 27683_ACEOF 27684rm -f conftest.$ac_objext 27685if { (ac_try="$ac_compile" 27686case "(($ac_try" in 27687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27688 *) ac_try_echo=$ac_try;; 27689esac 27690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27691 (eval "$ac_compile") 2>conftest.er1 27692 ac_status=$? 27693 grep -v '^ *+' conftest.er1 >conftest.err 27694 rm -f conftest.er1 27695 cat conftest.err >&5 27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27697 (exit $ac_status); } && { 27698 test -z "$ac_c_werror_flag" || 27699 test ! -s conftest.err 27700 } && test -s conftest.$ac_objext; then 27701 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned int" 27702{ echo "$as_me:$LINENO: result: unsigned int" >&5 27703echo "${ECHO_T}unsigned int" >&6; } 27704 27705else 27706 echo "$as_me: failed program was:" >&5 27707sed 's/^/| /' conftest.$ac_ext >&5 27708 27709 cat >conftest.$ac_ext <<_ACEOF 27710/* confdefs.h. */ 27711_ACEOF 27712cat confdefs.h >>conftest.$ac_ext 27713cat >>conftest.$ac_ext <<_ACEOF 27714/* end confdefs.h. */ 27715 27716#include <sys/types.h> 27717#include <sys/socket.h> 27718int accept(int, struct sockaddr *, unsigned long *); 27719 27720int 27721main () 27722{ 27723 27724 ; 27725 return 0; 27726} 27727_ACEOF 27728rm -f conftest.$ac_objext 27729if { (ac_try="$ac_compile" 27730case "(($ac_try" in 27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27732 *) ac_try_echo=$ac_try;; 27733esac 27734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27735 (eval "$ac_compile") 2>conftest.er1 27736 ac_status=$? 27737 grep -v '^ *+' conftest.er1 >conftest.err 27738 rm -f conftest.er1 27739 cat conftest.err >&5 27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27741 (exit $ac_status); } && { 27742 test -z "$ac_c_werror_flag" || 27743 test ! -s conftest.err 27744 } && test -s conftest.$ac_objext; then 27745 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T unsigned long" 27746{ echo "$as_me:$LINENO: result: unsigned long" >&5 27747echo "${ECHO_T}unsigned long" >&6; } 27748 27749else 27750 echo "$as_me: failed program was:" >&5 27751sed 's/^/| /' conftest.$ac_ext >&5 27752 27753 cat >conftest.$ac_ext <<_ACEOF 27754/* confdefs.h. */ 27755_ACEOF 27756cat confdefs.h >>conftest.$ac_ext 27757cat >>conftest.$ac_ext <<_ACEOF 27758/* end confdefs.h. */ 27759 27760#include <sys/types.h> 27761#include <sys/socket.h> 27762int accept(int, struct sockaddr *, long *); 27763 27764int 27765main () 27766{ 27767 27768 ; 27769 return 0; 27770} 27771_ACEOF 27772rm -f conftest.$ac_objext 27773if { (ac_try="$ac_compile" 27774case "(($ac_try" in 27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27776 *) ac_try_echo=$ac_try;; 27777esac 27778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27779 (eval "$ac_compile") 2>conftest.er1 27780 ac_status=$? 27781 grep -v '^ *+' conftest.er1 >conftest.err 27782 rm -f conftest.er1 27783 cat conftest.err >&5 27784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27785 (exit $ac_status); } && { 27786 test -z "$ac_c_werror_flag" || 27787 test ! -s conftest.err 27788 } && test -s conftest.$ac_objext; then 27789 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T long" 27790{ echo "$as_me:$LINENO: result: long" >&5 27791echo "${ECHO_T}long" >&6; } 27792 27793else 27794 echo "$as_me: failed program was:" >&5 27795sed 's/^/| /' conftest.$ac_ext >&5 27796 27797 ISC_SOCKLEN_T="#define ISC_SOCKLEN_T int" 27798{ echo "$as_me:$LINENO: result: int" >&5 27799echo "${ECHO_T}int" >&6; } 27800 27801fi 27802 27803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27804fi 27805 27806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27807fi 27808 27809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27810fi 27811 27812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27813 27814 27815{ echo "$as_me:$LINENO: checking for getgrouplist" >&5 27816echo $ECHO_N "checking for getgrouplist... $ECHO_C" >&6; } 27817if test "${ac_cv_func_getgrouplist+set}" = set; then 27818 echo $ECHO_N "(cached) $ECHO_C" >&6 27819else 27820 cat >conftest.$ac_ext <<_ACEOF 27821/* confdefs.h. */ 27822_ACEOF 27823cat confdefs.h >>conftest.$ac_ext 27824cat >>conftest.$ac_ext <<_ACEOF 27825/* end confdefs.h. */ 27826/* Define getgrouplist to an innocuous variant, in case <limits.h> declares getgrouplist. 27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27828#define getgrouplist innocuous_getgrouplist 27829 27830/* System header to define __stub macros and hopefully few prototypes, 27831 which can conflict with char getgrouplist (); below. 27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27833 <limits.h> exists even on freestanding compilers. */ 27834 27835#ifdef __STDC__ 27836# include <limits.h> 27837#else 27838# include <assert.h> 27839#endif 27840 27841#undef getgrouplist 27842 27843/* Override any GCC internal prototype to avoid an error. 27844 Use char because int might match the return type of a GCC 27845 builtin and then its argument prototype would still apply. */ 27846#ifdef __cplusplus 27847extern "C" 27848#endif 27849char getgrouplist (); 27850/* The GNU C library defines this for functions which it implements 27851 to always fail with ENOSYS. Some functions are actually named 27852 something starting with __ and the normal name is an alias. */ 27853#if defined __stub_getgrouplist || defined __stub___getgrouplist 27854choke me 27855#endif 27856 27857int 27858main () 27859{ 27860return getgrouplist (); 27861 ; 27862 return 0; 27863} 27864_ACEOF 27865rm -f conftest.$ac_objext conftest$ac_exeext 27866if { (ac_try="$ac_link" 27867case "(($ac_try" in 27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27869 *) ac_try_echo=$ac_try;; 27870esac 27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27872 (eval "$ac_link") 2>conftest.er1 27873 ac_status=$? 27874 grep -v '^ *+' conftest.er1 >conftest.err 27875 rm -f conftest.er1 27876 cat conftest.err >&5 27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27878 (exit $ac_status); } && { 27879 test -z "$ac_c_werror_flag" || 27880 test ! -s conftest.err 27881 } && test -s conftest$ac_exeext && 27882 $as_test_x conftest$ac_exeext; then 27883 ac_cv_func_getgrouplist=yes 27884else 27885 echo "$as_me: failed program was:" >&5 27886sed 's/^/| /' conftest.$ac_ext >&5 27887 27888 ac_cv_func_getgrouplist=no 27889fi 27890 27891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 27892 conftest$ac_exeext conftest.$ac_ext 27893fi 27894{ echo "$as_me:$LINENO: result: $ac_cv_func_getgrouplist" >&5 27895echo "${ECHO_T}$ac_cv_func_getgrouplist" >&6; } 27896if test $ac_cv_func_getgrouplist = yes; then 27897 cat >conftest.$ac_ext <<_ACEOF 27898/* confdefs.h. */ 27899_ACEOF 27900cat confdefs.h >>conftest.$ac_ext 27901cat >>conftest.$ac_ext <<_ACEOF 27902/* end confdefs.h. */ 27903#include <unistd.h> 27904int 27905getgrouplist(const char *name, int basegid, int *groups, int *ngroups) { 27906} 27907 27908int 27909main () 27910{ 27911return (0); 27912 ; 27913 return 0; 27914} 27915_ACEOF 27916rm -f conftest.$ac_objext 27917if { (ac_try="$ac_compile" 27918case "(($ac_try" in 27919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27920 *) ac_try_echo=$ac_try;; 27921esac 27922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27923 (eval "$ac_compile") 2>conftest.er1 27924 ac_status=$? 27925 grep -v '^ *+' conftest.er1 >conftest.err 27926 rm -f conftest.er1 27927 cat conftest.err >&5 27928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27929 (exit $ac_status); } && { 27930 test -z "$ac_c_werror_flag" || 27931 test ! -s conftest.err 27932 } && test -s conftest.$ac_objext; then 27933 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, int *ngroups" 27934 27935else 27936 echo "$as_me: failed program was:" >&5 27937sed 's/^/| /' conftest.$ac_ext >&5 27938 27939 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups" 27940 27941fi 27942 27943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27944else 27945 GETGROUPLIST_ARGS="#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups" 27946cat >>confdefs.h <<\_ACEOF 27947#define NEED_GETGROUPLIST 1 27948_ACEOF 27949 27950 27951fi 27952 27953 27954 27955{ echo "$as_me:$LINENO: checking for setgroupent" >&5 27956echo $ECHO_N "checking for setgroupent... $ECHO_C" >&6; } 27957if test "${ac_cv_func_setgroupent+set}" = set; then 27958 echo $ECHO_N "(cached) $ECHO_C" >&6 27959else 27960 cat >conftest.$ac_ext <<_ACEOF 27961/* confdefs.h. */ 27962_ACEOF 27963cat confdefs.h >>conftest.$ac_ext 27964cat >>conftest.$ac_ext <<_ACEOF 27965/* end confdefs.h. */ 27966/* Define setgroupent to an innocuous variant, in case <limits.h> declares setgroupent. 27967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27968#define setgroupent innocuous_setgroupent 27969 27970/* System header to define __stub macros and hopefully few prototypes, 27971 which can conflict with char setgroupent (); below. 27972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27973 <limits.h> exists even on freestanding compilers. */ 27974 27975#ifdef __STDC__ 27976# include <limits.h> 27977#else 27978# include <assert.h> 27979#endif 27980 27981#undef setgroupent 27982 27983/* Override any GCC internal prototype to avoid an error. 27984 Use char because int might match the return type of a GCC 27985 builtin and then its argument prototype would still apply. */ 27986#ifdef __cplusplus 27987extern "C" 27988#endif 27989char setgroupent (); 27990/* The GNU C library defines this for functions which it implements 27991 to always fail with ENOSYS. Some functions are actually named 27992 something starting with __ and the normal name is an alias. */ 27993#if defined __stub_setgroupent || defined __stub___setgroupent 27994choke me 27995#endif 27996 27997int 27998main () 27999{ 28000return setgroupent (); 28001 ; 28002 return 0; 28003} 28004_ACEOF 28005rm -f conftest.$ac_objext conftest$ac_exeext 28006if { (ac_try="$ac_link" 28007case "(($ac_try" in 28008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28009 *) ac_try_echo=$ac_try;; 28010esac 28011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28012 (eval "$ac_link") 2>conftest.er1 28013 ac_status=$? 28014 grep -v '^ *+' conftest.er1 >conftest.err 28015 rm -f conftest.er1 28016 cat conftest.err >&5 28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28018 (exit $ac_status); } && { 28019 test -z "$ac_c_werror_flag" || 28020 test ! -s conftest.err 28021 } && test -s conftest$ac_exeext && 28022 $as_test_x conftest$ac_exeext; then 28023 ac_cv_func_setgroupent=yes 28024else 28025 echo "$as_me: failed program was:" >&5 28026sed 's/^/| /' conftest.$ac_ext >&5 28027 28028 ac_cv_func_setgroupent=no 28029fi 28030 28031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28032 conftest$ac_exeext conftest.$ac_ext 28033fi 28034{ echo "$as_me:$LINENO: result: $ac_cv_func_setgroupent" >&5 28035echo "${ECHO_T}$ac_cv_func_setgroupent" >&6; } 28036if test $ac_cv_func_setgroupent = yes; then 28037 : 28038else 28039 cat >>confdefs.h <<\_ACEOF 28040#define NEED_SETGROUPENT 1 28041_ACEOF 28042 28043fi 28044 28045 28046case $host in 28047ia64-hp-hpux11.*) 28048;; 28049*) 28050{ echo "$as_me:$LINENO: checking for getnetbyaddr_r" >&5 28051echo $ECHO_N "checking for getnetbyaddr_r... $ECHO_C" >&6; } 28052if test "${ac_cv_func_getnetbyaddr_r+set}" = set; then 28053 echo $ECHO_N "(cached) $ECHO_C" >&6 28054else 28055 cat >conftest.$ac_ext <<_ACEOF 28056/* confdefs.h. */ 28057_ACEOF 28058cat confdefs.h >>conftest.$ac_ext 28059cat >>conftest.$ac_ext <<_ACEOF 28060/* end confdefs.h. */ 28061/* Define getnetbyaddr_r to an innocuous variant, in case <limits.h> declares getnetbyaddr_r. 28062 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28063#define getnetbyaddr_r innocuous_getnetbyaddr_r 28064 28065/* System header to define __stub macros and hopefully few prototypes, 28066 which can conflict with char getnetbyaddr_r (); below. 28067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28068 <limits.h> exists even on freestanding compilers. */ 28069 28070#ifdef __STDC__ 28071# include <limits.h> 28072#else 28073# include <assert.h> 28074#endif 28075 28076#undef getnetbyaddr_r 28077 28078/* Override any GCC internal prototype to avoid an error. 28079 Use char because int might match the return type of a GCC 28080 builtin and then its argument prototype would still apply. */ 28081#ifdef __cplusplus 28082extern "C" 28083#endif 28084char getnetbyaddr_r (); 28085/* The GNU C library defines this for functions which it implements 28086 to always fail with ENOSYS. Some functions are actually named 28087 something starting with __ and the normal name is an alias. */ 28088#if defined __stub_getnetbyaddr_r || defined __stub___getnetbyaddr_r 28089choke me 28090#endif 28091 28092int 28093main () 28094{ 28095return getnetbyaddr_r (); 28096 ; 28097 return 0; 28098} 28099_ACEOF 28100rm -f conftest.$ac_objext conftest$ac_exeext 28101if { (ac_try="$ac_link" 28102case "(($ac_try" in 28103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28104 *) ac_try_echo=$ac_try;; 28105esac 28106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28107 (eval "$ac_link") 2>conftest.er1 28108 ac_status=$? 28109 grep -v '^ *+' conftest.er1 >conftest.err 28110 rm -f conftest.er1 28111 cat conftest.err >&5 28112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28113 (exit $ac_status); } && { 28114 test -z "$ac_c_werror_flag" || 28115 test ! -s conftest.err 28116 } && test -s conftest$ac_exeext && 28117 $as_test_x conftest$ac_exeext; then 28118 ac_cv_func_getnetbyaddr_r=yes 28119else 28120 echo "$as_me: failed program was:" >&5 28121sed 's/^/| /' conftest.$ac_ext >&5 28122 28123 ac_cv_func_getnetbyaddr_r=no 28124fi 28125 28126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28127 conftest$ac_exeext conftest.$ac_ext 28128fi 28129{ echo "$as_me:$LINENO: result: $ac_cv_func_getnetbyaddr_r" >&5 28130echo "${ECHO_T}$ac_cv_func_getnetbyaddr_r" >&6; } 28131if test $ac_cv_func_getnetbyaddr_r = yes; then 28132 cat >conftest.$ac_ext <<_ACEOF 28133/* confdefs.h. */ 28134_ACEOF 28135cat confdefs.h >>conftest.$ac_ext 28136cat >>conftest.$ac_ext <<_ACEOF 28137/* end confdefs.h. */ 28138 28139#undef _REENTRANT 28140#define _REENTRANT 28141#define _OSF_SOURCE 28142#undef __USE_MISC 28143#define __USE_MISC 28144#include <netdb.h> 28145struct netent * 28146getnetbyaddr_r(long net, int type, struct netent *result, char *buffer, 28147int buflen) {} 28148 28149int 28150main () 28151{ 28152return (0) 28153 ; 28154 return 0; 28155} 28156_ACEOF 28157rm -f conftest.$ac_objext 28158if { (ac_try="$ac_compile" 28159case "(($ac_try" in 28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28161 *) ac_try_echo=$ac_try;; 28162esac 28163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28164 (eval "$ac_compile") 2>conftest.er1 28165 ac_status=$? 28166 grep -v '^ *+' conftest.er1 >conftest.err 28167 rm -f conftest.er1 28168 cat conftest.err >&5 28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28170 (exit $ac_status); } && { 28171 test -z "$ac_c_werror_flag" || 28172 test ! -s conftest.err 28173 } && test -s conftest.$ac_objext; then 28174 28175NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen" 28176NET_R_BAD="#define NET_R_BAD NULL" 28177NET_R_COPY="#define NET_R_COPY buf, buflen" 28178NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS" 28179NET_R_OK="#define NET_R_OK nptr" 28180NET_R_SETANSWER="#undef NET_R_SETANSWER" 28181NET_R_RETURN="#define NET_R_RETURN struct netent *" 28182GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28183NETENT_DATA="#undef NETENT_DATA" 28184 28185else 28186 echo "$as_me: failed program was:" >&5 28187sed 's/^/| /' conftest.$ac_ext >&5 28188 28189 cat >conftest.$ac_ext <<_ACEOF 28190/* confdefs.h. */ 28191_ACEOF 28192cat confdefs.h >>conftest.$ac_ext 28193cat >>conftest.$ac_ext <<_ACEOF 28194/* end confdefs.h. */ 28195 28196#undef _REENTRANT 28197#define _REENTRANT 28198#define _OSF_SOURCE 28199#undef __USE_MISC 28200#define __USE_MISC 28201#include <netdb.h> 28202int getnetbyaddr_r (unsigned long int, int, struct netent *, 28203 char *, size_t, struct netent **, int *); 28204 28205int 28206main () 28207{ 28208return (0) 28209 ; 28210 return 0; 28211} 28212_ACEOF 28213rm -f conftest.$ac_objext 28214if { (ac_try="$ac_compile" 28215case "(($ac_try" in 28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28217 *) ac_try_echo=$ac_try;; 28218esac 28219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28220 (eval "$ac_compile") 2>conftest.er1 28221 ac_status=$? 28222 grep -v '^ *+' conftest.er1 >conftest.err 28223 rm -f conftest.er1 28224 cat conftest.err >&5 28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28226 (exit $ac_status); } && { 28227 test -z "$ac_c_werror_flag" || 28228 test ! -s conftest.err 28229 } && test -s conftest.$ac_objext; then 28230 28231NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop" 28232NET_R_BAD="#define NET_R_BAD ERANGE" 28233NET_R_COPY="#define NET_R_COPY buf, buflen" 28234NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen" 28235NET_R_OK="#define NET_R_OK 0" 28236NET_R_SETANSWER="#define NET_R_SETANSWER 1" 28237NET_R_RETURN="#define NET_R_RETURN int" 28238GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int" 28239NETENT_DATA="#undef NETENT_DATA" 28240 28241else 28242 echo "$as_me: failed program was:" >&5 28243sed 's/^/| /' conftest.$ac_ext >&5 28244 28245 cat >conftest.$ac_ext <<_ACEOF 28246/* confdefs.h. */ 28247_ACEOF 28248cat confdefs.h >>conftest.$ac_ext 28249cat >>conftest.$ac_ext <<_ACEOF 28250/* end confdefs.h. */ 28251 28252#undef _REENTRANT 28253#define _REENTRANT 28254#define _OSF_SOURCE 28255#undef __USE_MISC 28256#define __USE_MISC 28257#include <netdb.h> 28258extern int getnetbyaddr_r(int, int, struct netent *, struct netent_data *); 28259 28260int 28261main () 28262{ 28263return (0) 28264 ; 28265 return 0; 28266} 28267_ACEOF 28268rm -f conftest.$ac_objext 28269if { (ac_try="$ac_compile" 28270case "(($ac_try" in 28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28272 *) ac_try_echo=$ac_try;; 28273esac 28274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28275 (eval "$ac_compile") 2>conftest.er1 28276 ac_status=$? 28277 grep -v '^ *+' conftest.er1 >conftest.err 28278 rm -f conftest.er1 28279 cat conftest.err >&5 28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28281 (exit $ac_status); } && { 28282 test -z "$ac_c_werror_flag" || 28283 test ! -s conftest.err 28284 } && test -s conftest.$ac_objext; then 28285 28286NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28287NET_R_BAD="#define NET_R_BAD (-1)" 28288NET_R_COPY="#define NET_R_COPY ndptr" 28289NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28290NET_R_OK="#define NET_R_OK 0" 28291NET_R_SETANSWER="#undef NET_R_SETANSWER" 28292NET_R_RETURN="#define NET_R_RETURN int" 28293GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" 28294NETENT_DATA="#define NETENT_DATA 1" 28295 28296else 28297 echo "$as_me: failed program was:" >&5 28298sed 's/^/| /' conftest.$ac_ext >&5 28299 28300 cat >conftest.$ac_ext <<_ACEOF 28301/* confdefs.h. */ 28302_ACEOF 28303cat confdefs.h >>conftest.$ac_ext 28304cat >>conftest.$ac_ext <<_ACEOF 28305/* end confdefs.h. */ 28306#undef __USE_MISC 28307#define __USE_MISC 28308#include <netdb.h> 28309int getnetbyaddr_r (in_addr_t, int, struct netent *, struct netent_data *); 28310 28311int 28312main () 28313{ 28314return (0) 28315 ; 28316 return 0; 28317} 28318_ACEOF 28319rm -f conftest.$ac_objext 28320if { (ac_try="$ac_compile" 28321case "(($ac_try" in 28322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28323 *) ac_try_echo=$ac_try;; 28324esac 28325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28326 (eval "$ac_compile") 2>conftest.er1 28327 ac_status=$? 28328 grep -v '^ *+' conftest.er1 >conftest.err 28329 rm -f conftest.er1 28330 cat conftest.err >&5 28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28332 (exit $ac_status); } && { 28333 test -z "$ac_c_werror_flag" || 28334 test ! -s conftest.err 28335 } && test -s conftest.$ac_objext; then 28336 28337NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28338NET_R_BAD="#define NET_R_BAD (-1)" 28339NET_R_COPY="#define NET_R_COPY ndptr" 28340NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28341NET_R_OK="#define NET_R_OK 0" 28342NET_R_SETANSWER="#undef NET_R_SETANSWER" 28343NET_R_RETURN="#define NET_R_RETURN int" 28344GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28345NETENT_DATA="#define NETENT_DATA 1" 28346 28347else 28348 echo "$as_me: failed program was:" >&5 28349sed 's/^/| /' conftest.$ac_ext >&5 28350 28351 cat >conftest.$ac_ext <<_ACEOF 28352/* confdefs.h. */ 28353_ACEOF 28354cat confdefs.h >>conftest.$ac_ext 28355cat >>conftest.$ac_ext <<_ACEOF 28356/* end confdefs.h. */ 28357#undef __USE_MISC 28358#define __USE_MISC 28359#include <netdb.h> 28360int getnetbyaddr_r (long, int, struct netent *, struct netent_data *); 28361 28362int 28363main () 28364{ 28365return (0) 28366 ; 28367 return 0; 28368} 28369_ACEOF 28370rm -f conftest.$ac_objext 28371if { (ac_try="$ac_compile" 28372case "(($ac_try" in 28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28374 *) ac_try_echo=$ac_try;; 28375esac 28376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28377 (eval "$ac_compile") 2>conftest.er1 28378 ac_status=$? 28379 grep -v '^ *+' conftest.er1 >conftest.err 28380 rm -f conftest.er1 28381 cat conftest.err >&5 28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28383 (exit $ac_status); } && { 28384 test -z "$ac_c_werror_flag" || 28385 test ! -s conftest.err 28386 } && test -s conftest.$ac_objext; then 28387 28388NET_R_ARGS="#define NET_R_ARGS struct netent_data *ndptr" 28389NET_R_BAD="#define NET_R_BAD (-1)" 28390NET_R_COPY="#define NET_R_COPY ndptr" 28391NET_R_COPY_ARGS="#define NET_R_COPY_ARGS struct netent_data *ndptr" 28392NET_R_OK="#define NET_R_OK 0" 28393NET_R_SETANSWER="#undef NET_R_SETANSWER" 28394NET_R_RETURN="#define NET_R_RETURN int" 28395GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28396NETENT_DATA="#define NETENT_DATA 1" 28397 28398else 28399 echo "$as_me: failed program was:" >&5 28400sed 's/^/| /' conftest.$ac_ext >&5 28401 28402 cat >conftest.$ac_ext <<_ACEOF 28403/* confdefs.h. */ 28404_ACEOF 28405cat confdefs.h >>conftest.$ac_ext 28406cat >>conftest.$ac_ext <<_ACEOF 28407/* end confdefs.h. */ 28408#undef __USE_MISC 28409#define __USE_MISC 28410#include <netdb.h> 28411int getnetbyaddr_r (uint32_t, int, struct netent *, 28412 char *, size_t, struct netent **, int *); 28413 28414int 28415main () 28416{ 28417return (0) 28418 ; 28419 return 0; 28420} 28421_ACEOF 28422rm -f conftest.$ac_objext 28423if { (ac_try="$ac_compile" 28424case "(($ac_try" in 28425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28426 *) ac_try_echo=$ac_try;; 28427esac 28428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28429 (eval "$ac_compile") 2>conftest.er1 28430 ac_status=$? 28431 grep -v '^ *+' conftest.er1 >conftest.err 28432 rm -f conftest.er1 28433 cat conftest.err >&5 28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28435 (exit $ac_status); } && { 28436 test -z "$ac_c_werror_flag" || 28437 test ! -s conftest.err 28438 } && test -s conftest.$ac_objext; then 28439 28440NET_R_ARGS="#define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop" 28441NET_R_BAD="#define NET_R_BAD ERANGE" 28442NET_R_COPY="#define NET_R_COPY buf, buflen" 28443NET_R_COPY_ARGS="#define NET_R_COPY_ARGS char *buf, size_t buflen" 28444NET_R_OK="#define NET_R_OK 0" 28445NET_R_SETANSWER="#define NET_R_SETANSWER 1" 28446NET_R_RETURN="#define NET_R_RETURN int" 28447GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T unsigned long int" 28448NETENT_DATA="#undef NETENT_DATA" 28449 28450else 28451 echo "$as_me: failed program was:" >&5 28452sed 's/^/| /' conftest.$ac_ext >&5 28453 28454 28455fi 28456 28457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28458 28459fi 28460 28461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28462 28463fi 28464 28465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28466 28467fi 28468 28469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28470 28471fi 28472 28473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28474 28475fi 28476 28477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28478 28479else 28480 NET_R_ARGS="#define NET_R_ARGS char *buf, int buflen" 28481NET_R_BAD="#define NET_R_BAD NULL" 28482NET_R_COPY="#define NET_R_COPY buf, buflen" 28483NET_R_COPY_ARGS="#define NET_R_COPY_ARGS NET_R_ARGS" 28484NET_R_OK="#define NET_R_OK nptr" 28485NET_R_SETANSWER="#undef NET_R_SETANSWER" 28486NET_R_RETURN="#define NET_R_RETURN struct netent *" 28487GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long" 28488NETENT_DATA="#undef NETENT_DATA" 28489 28490fi 28491 28492esac 28493 28494case "$host" in 28495*dec-osf*) GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T int" ;; 28496esac 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507{ echo "$as_me:$LINENO: checking for setnetent_r" >&5 28508echo $ECHO_N "checking for setnetent_r... $ECHO_C" >&6; } 28509if test "${ac_cv_func_setnetent_r+set}" = set; then 28510 echo $ECHO_N "(cached) $ECHO_C" >&6 28511else 28512 cat >conftest.$ac_ext <<_ACEOF 28513/* confdefs.h. */ 28514_ACEOF 28515cat confdefs.h >>conftest.$ac_ext 28516cat >>conftest.$ac_ext <<_ACEOF 28517/* end confdefs.h. */ 28518/* Define setnetent_r to an innocuous variant, in case <limits.h> declares setnetent_r. 28519 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28520#define setnetent_r innocuous_setnetent_r 28521 28522/* System header to define __stub macros and hopefully few prototypes, 28523 which can conflict with char setnetent_r (); below. 28524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28525 <limits.h> exists even on freestanding compilers. */ 28526 28527#ifdef __STDC__ 28528# include <limits.h> 28529#else 28530# include <assert.h> 28531#endif 28532 28533#undef setnetent_r 28534 28535/* Override any GCC internal prototype to avoid an error. 28536 Use char because int might match the return type of a GCC 28537 builtin and then its argument prototype would still apply. */ 28538#ifdef __cplusplus 28539extern "C" 28540#endif 28541char setnetent_r (); 28542/* The GNU C library defines this for functions which it implements 28543 to always fail with ENOSYS. Some functions are actually named 28544 something starting with __ and the normal name is an alias. */ 28545#if defined __stub_setnetent_r || defined __stub___setnetent_r 28546choke me 28547#endif 28548 28549int 28550main () 28551{ 28552return setnetent_r (); 28553 ; 28554 return 0; 28555} 28556_ACEOF 28557rm -f conftest.$ac_objext conftest$ac_exeext 28558if { (ac_try="$ac_link" 28559case "(($ac_try" in 28560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28561 *) ac_try_echo=$ac_try;; 28562esac 28563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28564 (eval "$ac_link") 2>conftest.er1 28565 ac_status=$? 28566 grep -v '^ *+' conftest.er1 >conftest.err 28567 rm -f conftest.er1 28568 cat conftest.err >&5 28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28570 (exit $ac_status); } && { 28571 test -z "$ac_c_werror_flag" || 28572 test ! -s conftest.err 28573 } && test -s conftest$ac_exeext && 28574 $as_test_x conftest$ac_exeext; then 28575 ac_cv_func_setnetent_r=yes 28576else 28577 echo "$as_me: failed program was:" >&5 28578sed 's/^/| /' conftest.$ac_ext >&5 28579 28580 ac_cv_func_setnetent_r=no 28581fi 28582 28583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28584 conftest$ac_exeext conftest.$ac_ext 28585fi 28586{ echo "$as_me:$LINENO: result: $ac_cv_func_setnetent_r" >&5 28587echo "${ECHO_T}$ac_cv_func_setnetent_r" >&6; } 28588if test $ac_cv_func_setnetent_r = yes; then 28589 cat >conftest.$ac_ext <<_ACEOF 28590/* confdefs.h. */ 28591_ACEOF 28592cat confdefs.h >>conftest.$ac_ext 28593cat >>conftest.$ac_ext <<_ACEOF 28594/* end confdefs.h. */ 28595 28596#undef __USE_MISC 28597#define __USE_MISC 28598#include <netdb.h> 28599void setnetent_r (int); 28600 28601int 28602main () 28603{ 28604return (0); 28605 ; 28606 return 0; 28607} 28608_ACEOF 28609rm -f conftest.$ac_objext 28610if { (ac_try="$ac_compile" 28611case "(($ac_try" in 28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28613 *) ac_try_echo=$ac_try;; 28614esac 28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28616 (eval "$ac_compile") 2>conftest.er1 28617 ac_status=$? 28618 grep -v '^ *+' conftest.er1 >conftest.err 28619 rm -f conftest.er1 28620 cat conftest.err >&5 28621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28622 (exit $ac_status); } && { 28623 test -z "$ac_c_werror_flag" || 28624 test ! -s conftest.err 28625 } && test -s conftest.$ac_objext; then 28626 28627NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/" 28628NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/" 28629NET_R_SET_RETURN="#define NET_R_SET_RETURN void" 28630 28631else 28632 echo "$as_me: failed program was:" >&5 28633sed 's/^/| /' conftest.$ac_ext >&5 28634 28635 cat >conftest.$ac_ext <<_ACEOF 28636/* confdefs.h. */ 28637_ACEOF 28638cat confdefs.h >>conftest.$ac_ext 28639cat >>conftest.$ac_ext <<_ACEOF 28640/* end confdefs.h. */ 28641 28642#define _REENTRANT 28643#undef __USE_MISC 28644#define __USE_MISC 28645#include <netdb.h> 28646extern int setnetent_r(int, struct netent_data *); 28647 28648int 28649main () 28650{ 28651return (0); 28652 ; 28653 return 0; 28654} 28655_ACEOF 28656rm -f conftest.$ac_objext 28657if { (ac_try="$ac_compile" 28658case "(($ac_try" in 28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28660 *) ac_try_echo=$ac_try;; 28661esac 28662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28663 (eval "$ac_compile") 2>conftest.er1 28664 ac_status=$? 28665 grep -v '^ *+' conftest.er1 >conftest.err 28666 rm -f conftest.er1 28667 cat conftest.err >&5 28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28669 (exit $ac_status); } && { 28670 test -z "$ac_c_werror_flag" || 28671 test ! -s conftest.err 28672 } && test -s conftest.$ac_objext; then 28673 28674NET_R_ENT_ARGS="#define NET_R_ENT_ARGS struct netent_data *ndptr" 28675NET_R_SET_RESULT="#define NET_R_SET_RESULT NET_R_OK" 28676NET_R_SET_RETURN="#define NET_R_SET_RETURN int" 28677 28678else 28679 echo "$as_me: failed program was:" >&5 28680sed 's/^/| /' conftest.$ac_ext >&5 28681 28682 28683fi 28684 28685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28686 28687fi 28688 28689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28690 28691else 28692 NET_R_ENT_ARGS="#undef NET_R_ENT_ARGS /*empty*/" 28693NET_R_SET_RESULT="#undef NET_R_SET_RESULT /*empty*/" 28694NET_R_SET_RETURN="#define NET_R_SET_RETURN void" 28695 28696fi 28697 28698 28699 28700 28701 28702 28703case $host in 28704ia64-hp-hpux11.*) 28705;; 28706*) 28707{ echo "$as_me:$LINENO: checking for endnetent_r" >&5 28708echo $ECHO_N "checking for endnetent_r... $ECHO_C" >&6; } 28709if test "${ac_cv_func_endnetent_r+set}" = set; then 28710 echo $ECHO_N "(cached) $ECHO_C" >&6 28711else 28712 cat >conftest.$ac_ext <<_ACEOF 28713/* confdefs.h. */ 28714_ACEOF 28715cat confdefs.h >>conftest.$ac_ext 28716cat >>conftest.$ac_ext <<_ACEOF 28717/* end confdefs.h. */ 28718/* Define endnetent_r to an innocuous variant, in case <limits.h> declares endnetent_r. 28719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28720#define endnetent_r innocuous_endnetent_r 28721 28722/* System header to define __stub macros and hopefully few prototypes, 28723 which can conflict with char endnetent_r (); below. 28724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28725 <limits.h> exists even on freestanding compilers. */ 28726 28727#ifdef __STDC__ 28728# include <limits.h> 28729#else 28730# include <assert.h> 28731#endif 28732 28733#undef endnetent_r 28734 28735/* Override any GCC internal prototype to avoid an error. 28736 Use char because int might match the return type of a GCC 28737 builtin and then its argument prototype would still apply. */ 28738#ifdef __cplusplus 28739extern "C" 28740#endif 28741char endnetent_r (); 28742/* The GNU C library defines this for functions which it implements 28743 to always fail with ENOSYS. Some functions are actually named 28744 something starting with __ and the normal name is an alias. */ 28745#if defined __stub_endnetent_r || defined __stub___endnetent_r 28746choke me 28747#endif 28748 28749int 28750main () 28751{ 28752return endnetent_r (); 28753 ; 28754 return 0; 28755} 28756_ACEOF 28757rm -f conftest.$ac_objext conftest$ac_exeext 28758if { (ac_try="$ac_link" 28759case "(($ac_try" in 28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28761 *) ac_try_echo=$ac_try;; 28762esac 28763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28764 (eval "$ac_link") 2>conftest.er1 28765 ac_status=$? 28766 grep -v '^ *+' conftest.er1 >conftest.err 28767 rm -f conftest.er1 28768 cat conftest.err >&5 28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28770 (exit $ac_status); } && { 28771 test -z "$ac_c_werror_flag" || 28772 test ! -s conftest.err 28773 } && test -s conftest$ac_exeext && 28774 $as_test_x conftest$ac_exeext; then 28775 ac_cv_func_endnetent_r=yes 28776else 28777 echo "$as_me: failed program was:" >&5 28778sed 's/^/| /' conftest.$ac_ext >&5 28779 28780 ac_cv_func_endnetent_r=no 28781fi 28782 28783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 28784 conftest$ac_exeext conftest.$ac_ext 28785fi 28786{ echo "$as_me:$LINENO: result: $ac_cv_func_endnetent_r" >&5 28787echo "${ECHO_T}$ac_cv_func_endnetent_r" >&6; } 28788if test $ac_cv_func_endnetent_r = yes; then 28789 cat >conftest.$ac_ext <<_ACEOF 28790/* confdefs.h. */ 28791_ACEOF 28792cat confdefs.h >>conftest.$ac_ext 28793cat >>conftest.$ac_ext <<_ACEOF 28794/* end confdefs.h. */ 28795 28796#undef _REENTRANT 28797#define _REENTRANT 28798#undef __USE_MISC 28799#define __USE_MISC 28800#include <netdb.h> 28801void endnetent_r (void); 28802 28803int 28804main () 28805{ 28806return (0); 28807 ; 28808 return 0; 28809} 28810_ACEOF 28811rm -f conftest.$ac_objext 28812if { (ac_try="$ac_compile" 28813case "(($ac_try" in 28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28815 *) ac_try_echo=$ac_try;; 28816esac 28817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28818 (eval "$ac_compile") 2>conftest.er1 28819 ac_status=$? 28820 grep -v '^ *+' conftest.er1 >conftest.err 28821 rm -f conftest.er1 28822 cat conftest.err >&5 28823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28824 (exit $ac_status); } && { 28825 test -z "$ac_c_werror_flag" || 28826 test ! -s conftest.err 28827 } && test -s conftest.$ac_objext; then 28828 28829NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28830NET_R_END_RETURN="#define NET_R_END_RETURN void" 28831 28832else 28833 echo "$as_me: failed program was:" >&5 28834sed 's/^/| /' conftest.$ac_ext >&5 28835 28836 cat >conftest.$ac_ext <<_ACEOF 28837/* confdefs.h. */ 28838_ACEOF 28839cat confdefs.h >>conftest.$ac_ext 28840cat >>conftest.$ac_ext <<_ACEOF 28841/* end confdefs.h. */ 28842 28843#undef _REENTRANT 28844#define _REENTRANT 28845#undef __USE_MISC 28846#define __USE_MISC 28847#include <netdb.h> 28848extern int endnetent_r(struct netent_data *); 28849 28850int 28851main () 28852{ 28853return (0); 28854 ; 28855 return 0; 28856} 28857_ACEOF 28858rm -f conftest.$ac_objext 28859if { (ac_try="$ac_compile" 28860case "(($ac_try" in 28861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28862 *) ac_try_echo=$ac_try;; 28863esac 28864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28865 (eval "$ac_compile") 2>conftest.er1 28866 ac_status=$? 28867 grep -v '^ *+' conftest.er1 >conftest.err 28868 rm -f conftest.er1 28869 cat conftest.err >&5 28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28871 (exit $ac_status); } && { 28872 test -z "$ac_c_werror_flag" || 28873 test ! -s conftest.err 28874 } && test -s conftest.$ac_objext; then 28875 28876NET_R_END_RESULT="#define NET_R_END_RESULT(x) return (x)" 28877NET_R_END_RETURN="#define NET_R_END_RETURN int" 28878 28879else 28880 echo "$as_me: failed program was:" >&5 28881sed 's/^/| /' conftest.$ac_ext >&5 28882 28883 cat >conftest.$ac_ext <<_ACEOF 28884/* confdefs.h. */ 28885_ACEOF 28886cat confdefs.h >>conftest.$ac_ext 28887cat >>conftest.$ac_ext <<_ACEOF 28888/* end confdefs.h. */ 28889 28890#undef _REENTRANT 28891#define _REENTRANT 28892#undef __USE_MISC 28893#define __USE_MISC 28894#include <netdb.h> 28895extern void endnetent_r(struct netent_data *); 28896 28897int 28898main () 28899{ 28900return (0); 28901 ; 28902 return 0; 28903} 28904_ACEOF 28905rm -f conftest.$ac_objext 28906if { (ac_try="$ac_compile" 28907case "(($ac_try" in 28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28909 *) ac_try_echo=$ac_try;; 28910esac 28911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 28912 (eval "$ac_compile") 2>conftest.er1 28913 ac_status=$? 28914 grep -v '^ *+' conftest.er1 >conftest.err 28915 rm -f conftest.er1 28916 cat conftest.err >&5 28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28918 (exit $ac_status); } && { 28919 test -z "$ac_c_werror_flag" || 28920 test ! -s conftest.err 28921 } && test -s conftest.$ac_objext; then 28922 28923NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28924NET_R_END_RETURN="#define NET_R_END_RETURN void" 28925 28926else 28927 echo "$as_me: failed program was:" >&5 28928sed 's/^/| /' conftest.$ac_ext >&5 28929 28930 28931fi 28932 28933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28934 28935fi 28936 28937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28938 28939fi 28940 28941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28942 28943else 28944 NET_R_END_RESULT="#define NET_R_END_RESULT(x) /*empty*/" 28945NET_R_END_RETURN="#define NET_R_END_RETURN void" 28946 28947fi 28948 28949esac 28950 28951 28952 28953{ echo "$as_me:$LINENO: checking for getgrnam_r" >&5 28954echo $ECHO_N "checking for getgrnam_r... $ECHO_C" >&6; } 28955if test "${ac_cv_func_getgrnam_r+set}" = set; then 28956 echo $ECHO_N "(cached) $ECHO_C" >&6 28957else 28958 cat >conftest.$ac_ext <<_ACEOF 28959/* confdefs.h. */ 28960_ACEOF 28961cat confdefs.h >>conftest.$ac_ext 28962cat >>conftest.$ac_ext <<_ACEOF 28963/* end confdefs.h. */ 28964/* Define getgrnam_r to an innocuous variant, in case <limits.h> declares getgrnam_r. 28965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28966#define getgrnam_r innocuous_getgrnam_r 28967 28968/* System header to define __stub macros and hopefully few prototypes, 28969 which can conflict with char getgrnam_r (); below. 28970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 28971 <limits.h> exists even on freestanding compilers. */ 28972 28973#ifdef __STDC__ 28974# include <limits.h> 28975#else 28976# include <assert.h> 28977#endif 28978 28979#undef getgrnam_r 28980 28981/* Override any GCC internal prototype to avoid an error. 28982 Use char because int might match the return type of a GCC 28983 builtin and then its argument prototype would still apply. */ 28984#ifdef __cplusplus 28985extern "C" 28986#endif 28987char getgrnam_r (); 28988/* The GNU C library defines this for functions which it implements 28989 to always fail with ENOSYS. Some functions are actually named 28990 something starting with __ and the normal name is an alias. */ 28991#if defined __stub_getgrnam_r || defined __stub___getgrnam_r 28992choke me 28993#endif 28994 28995int 28996main () 28997{ 28998return getgrnam_r (); 28999 ; 29000 return 0; 29001} 29002_ACEOF 29003rm -f conftest.$ac_objext conftest$ac_exeext 29004if { (ac_try="$ac_link" 29005case "(($ac_try" in 29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29007 *) ac_try_echo=$ac_try;; 29008esac 29009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29010 (eval "$ac_link") 2>conftest.er1 29011 ac_status=$? 29012 grep -v '^ *+' conftest.er1 >conftest.err 29013 rm -f conftest.er1 29014 cat conftest.err >&5 29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29016 (exit $ac_status); } && { 29017 test -z "$ac_c_werror_flag" || 29018 test ! -s conftest.err 29019 } && test -s conftest$ac_exeext && 29020 $as_test_x conftest$ac_exeext; then 29021 ac_cv_func_getgrnam_r=yes 29022else 29023 echo "$as_me: failed program was:" >&5 29024sed 's/^/| /' conftest.$ac_ext >&5 29025 29026 ac_cv_func_getgrnam_r=no 29027fi 29028 29029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29030 conftest$ac_exeext conftest.$ac_ext 29031fi 29032{ echo "$as_me:$LINENO: result: $ac_cv_func_getgrnam_r" >&5 29033echo "${ECHO_T}$ac_cv_func_getgrnam_r" >&6; } 29034if test $ac_cv_func_getgrnam_r = yes; then 29035 : 29036else 29037 cat >>confdefs.h <<\_ACEOF 29038#define NEED_GETGRNAM_R 1 29039_ACEOF 29040 29041fi 29042 29043{ echo "$as_me:$LINENO: checking for getgrgid_r" >&5 29044echo $ECHO_N "checking for getgrgid_r... $ECHO_C" >&6; } 29045if test "${ac_cv_func_getgrgid_r+set}" = set; then 29046 echo $ECHO_N "(cached) $ECHO_C" >&6 29047else 29048 cat >conftest.$ac_ext <<_ACEOF 29049/* confdefs.h. */ 29050_ACEOF 29051cat confdefs.h >>conftest.$ac_ext 29052cat >>conftest.$ac_ext <<_ACEOF 29053/* end confdefs.h. */ 29054/* Define getgrgid_r to an innocuous variant, in case <limits.h> declares getgrgid_r. 29055 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29056#define getgrgid_r innocuous_getgrgid_r 29057 29058/* System header to define __stub macros and hopefully few prototypes, 29059 which can conflict with char getgrgid_r (); below. 29060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29061 <limits.h> exists even on freestanding compilers. */ 29062 29063#ifdef __STDC__ 29064# include <limits.h> 29065#else 29066# include <assert.h> 29067#endif 29068 29069#undef getgrgid_r 29070 29071/* Override any GCC internal prototype to avoid an error. 29072 Use char because int might match the return type of a GCC 29073 builtin and then its argument prototype would still apply. */ 29074#ifdef __cplusplus 29075extern "C" 29076#endif 29077char getgrgid_r (); 29078/* The GNU C library defines this for functions which it implements 29079 to always fail with ENOSYS. Some functions are actually named 29080 something starting with __ and the normal name is an alias. */ 29081#if defined __stub_getgrgid_r || defined __stub___getgrgid_r 29082choke me 29083#endif 29084 29085int 29086main () 29087{ 29088return getgrgid_r (); 29089 ; 29090 return 0; 29091} 29092_ACEOF 29093rm -f conftest.$ac_objext conftest$ac_exeext 29094if { (ac_try="$ac_link" 29095case "(($ac_try" in 29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29097 *) ac_try_echo=$ac_try;; 29098esac 29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29100 (eval "$ac_link") 2>conftest.er1 29101 ac_status=$? 29102 grep -v '^ *+' conftest.er1 >conftest.err 29103 rm -f conftest.er1 29104 cat conftest.err >&5 29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29106 (exit $ac_status); } && { 29107 test -z "$ac_c_werror_flag" || 29108 test ! -s conftest.err 29109 } && test -s conftest$ac_exeext && 29110 $as_test_x conftest$ac_exeext; then 29111 ac_cv_func_getgrgid_r=yes 29112else 29113 echo "$as_me: failed program was:" >&5 29114sed 's/^/| /' conftest.$ac_ext >&5 29115 29116 ac_cv_func_getgrgid_r=no 29117fi 29118 29119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29120 conftest$ac_exeext conftest.$ac_ext 29121fi 29122{ echo "$as_me:$LINENO: result: $ac_cv_func_getgrgid_r" >&5 29123echo "${ECHO_T}$ac_cv_func_getgrgid_r" >&6; } 29124if test $ac_cv_func_getgrgid_r = yes; then 29125 : 29126else 29127 cat >>confdefs.h <<\_ACEOF 29128#define NEED_GETGRGID_R 1 29129_ACEOF 29130 29131fi 29132 29133 29134{ echo "$as_me:$LINENO: checking for getgrent_r" >&5 29135echo $ECHO_N "checking for getgrent_r... $ECHO_C" >&6; } 29136if test "${ac_cv_func_getgrent_r+set}" = set; then 29137 echo $ECHO_N "(cached) $ECHO_C" >&6 29138else 29139 cat >conftest.$ac_ext <<_ACEOF 29140/* confdefs.h. */ 29141_ACEOF 29142cat confdefs.h >>conftest.$ac_ext 29143cat >>conftest.$ac_ext <<_ACEOF 29144/* end confdefs.h. */ 29145/* Define getgrent_r to an innocuous variant, in case <limits.h> declares getgrent_r. 29146 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29147#define getgrent_r innocuous_getgrent_r 29148 29149/* System header to define __stub macros and hopefully few prototypes, 29150 which can conflict with char getgrent_r (); below. 29151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29152 <limits.h> exists even on freestanding compilers. */ 29153 29154#ifdef __STDC__ 29155# include <limits.h> 29156#else 29157# include <assert.h> 29158#endif 29159 29160#undef getgrent_r 29161 29162/* Override any GCC internal prototype to avoid an error. 29163 Use char because int might match the return type of a GCC 29164 builtin and then its argument prototype would still apply. */ 29165#ifdef __cplusplus 29166extern "C" 29167#endif 29168char getgrent_r (); 29169/* The GNU C library defines this for functions which it implements 29170 to always fail with ENOSYS. Some functions are actually named 29171 something starting with __ and the normal name is an alias. */ 29172#if defined __stub_getgrent_r || defined __stub___getgrent_r 29173choke me 29174#endif 29175 29176int 29177main () 29178{ 29179return getgrent_r (); 29180 ; 29181 return 0; 29182} 29183_ACEOF 29184rm -f conftest.$ac_objext conftest$ac_exeext 29185if { (ac_try="$ac_link" 29186case "(($ac_try" in 29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29188 *) ac_try_echo=$ac_try;; 29189esac 29190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29191 (eval "$ac_link") 2>conftest.er1 29192 ac_status=$? 29193 grep -v '^ *+' conftest.er1 >conftest.err 29194 rm -f conftest.er1 29195 cat conftest.err >&5 29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29197 (exit $ac_status); } && { 29198 test -z "$ac_c_werror_flag" || 29199 test ! -s conftest.err 29200 } && test -s conftest$ac_exeext && 29201 $as_test_x conftest$ac_exeext; then 29202 ac_cv_func_getgrent_r=yes 29203else 29204 echo "$as_me: failed program was:" >&5 29205sed 's/^/| /' conftest.$ac_ext >&5 29206 29207 ac_cv_func_getgrent_r=no 29208fi 29209 29210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29211 conftest$ac_exeext conftest.$ac_ext 29212fi 29213{ echo "$as_me:$LINENO: result: $ac_cv_func_getgrent_r" >&5 29214echo "${ECHO_T}$ac_cv_func_getgrent_r" >&6; } 29215if test $ac_cv_func_getgrent_r = yes; then 29216 cat >conftest.$ac_ext <<_ACEOF 29217/* confdefs.h. */ 29218_ACEOF 29219cat confdefs.h >>conftest.$ac_ext 29220cat >>conftest.$ac_ext <<_ACEOF 29221/* end confdefs.h. */ 29222 29223#include <grp.h> 29224struct group *getgrent_r(struct group *grp, char *buffer, 29225 int buflen) {} 29226 29227int 29228main () 29229{ 29230return (0); 29231 ; 29232 return 0; 29233} 29234_ACEOF 29235rm -f conftest.$ac_objext 29236if { (ac_try="$ac_compile" 29237case "(($ac_try" in 29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29239 *) ac_try_echo=$ac_try;; 29240esac 29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29242 (eval "$ac_compile") 2>conftest.er1 29243 ac_status=$? 29244 grep -v '^ *+' conftest.er1 >conftest.err 29245 rm -f conftest.er1 29246 cat conftest.err >&5 29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29248 (exit $ac_status); } && { 29249 test -z "$ac_c_werror_flag" || 29250 test ! -s conftest.err 29251 } && test -s conftest.$ac_objext; then 29252 29253GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen" 29254GROUP_R_BAD="#define GROUP_R_BAD NULL" 29255GROUP_R_OK="#define GROUP_R_OK gptr" 29256GROUP_R_RETURN="#define GROUP_R_RETURN struct group *" 29257 29258else 29259 echo "$as_me: failed program was:" >&5 29260sed 's/^/| /' conftest.$ac_ext >&5 29261 29262 29263fi 29264 29265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29266 29267else 29268 GROUP_R_ARGS="#define GROUP_R_ARGS char *buf, int buflen" 29269GROUP_R_BAD="#define GROUP_R_BAD NULL" 29270GROUP_R_OK="#define GROUP_R_OK gptr" 29271GROUP_R_RETURN="#define GROUP_R_RETURN struct group *" 29272cat >>confdefs.h <<\_ACEOF 29273#define NEED_GETGRENT_R 1 29274_ACEOF 29275 29276 29277fi 29278 29279 29280 29281 29282 29283 29284{ echo "$as_me:$LINENO: checking for endgrent_r" >&5 29285echo $ECHO_N "checking for endgrent_r... $ECHO_C" >&6; } 29286if test "${ac_cv_func_endgrent_r+set}" = set; then 29287 echo $ECHO_N "(cached) $ECHO_C" >&6 29288else 29289 cat >conftest.$ac_ext <<_ACEOF 29290/* confdefs.h. */ 29291_ACEOF 29292cat confdefs.h >>conftest.$ac_ext 29293cat >>conftest.$ac_ext <<_ACEOF 29294/* end confdefs.h. */ 29295/* Define endgrent_r to an innocuous variant, in case <limits.h> declares endgrent_r. 29296 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29297#define endgrent_r innocuous_endgrent_r 29298 29299/* System header to define __stub macros and hopefully few prototypes, 29300 which can conflict with char endgrent_r (); below. 29301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29302 <limits.h> exists even on freestanding compilers. */ 29303 29304#ifdef __STDC__ 29305# include <limits.h> 29306#else 29307# include <assert.h> 29308#endif 29309 29310#undef endgrent_r 29311 29312/* Override any GCC internal prototype to avoid an error. 29313 Use char because int might match the return type of a GCC 29314 builtin and then its argument prototype would still apply. */ 29315#ifdef __cplusplus 29316extern "C" 29317#endif 29318char endgrent_r (); 29319/* The GNU C library defines this for functions which it implements 29320 to always fail with ENOSYS. Some functions are actually named 29321 something starting with __ and the normal name is an alias. */ 29322#if defined __stub_endgrent_r || defined __stub___endgrent_r 29323choke me 29324#endif 29325 29326int 29327main () 29328{ 29329return endgrent_r (); 29330 ; 29331 return 0; 29332} 29333_ACEOF 29334rm -f conftest.$ac_objext conftest$ac_exeext 29335if { (ac_try="$ac_link" 29336case "(($ac_try" in 29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29338 *) ac_try_echo=$ac_try;; 29339esac 29340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29341 (eval "$ac_link") 2>conftest.er1 29342 ac_status=$? 29343 grep -v '^ *+' conftest.er1 >conftest.err 29344 rm -f conftest.er1 29345 cat conftest.err >&5 29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29347 (exit $ac_status); } && { 29348 test -z "$ac_c_werror_flag" || 29349 test ! -s conftest.err 29350 } && test -s conftest$ac_exeext && 29351 $as_test_x conftest$ac_exeext; then 29352 ac_cv_func_endgrent_r=yes 29353else 29354 echo "$as_me: failed program was:" >&5 29355sed 's/^/| /' conftest.$ac_ext >&5 29356 29357 ac_cv_func_endgrent_r=no 29358fi 29359 29360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29361 conftest$ac_exeext conftest.$ac_ext 29362fi 29363{ echo "$as_me:$LINENO: result: $ac_cv_func_endgrent_r" >&5 29364echo "${ECHO_T}$ac_cv_func_endgrent_r" >&6; } 29365if test $ac_cv_func_endgrent_r = yes; then 29366 : 29367else 29368 GROUP_R_END_RESULT="#define GROUP_R_END_RESULT(x) /*empty*/" 29369GROUP_R_END_RETURN="#define GROUP_R_END_RETURN void" 29370GROUP_R_ENT_ARGS="#define GROUP_R_ENT_ARGS void" 29371cat >>confdefs.h <<\_ACEOF 29372#define NEED_ENDGRENT_R 1 29373_ACEOF 29374 29375 29376fi 29377 29378 29379 29380 29381 29382{ echo "$as_me:$LINENO: checking for setgrent_r" >&5 29383echo $ECHO_N "checking for setgrent_r... $ECHO_C" >&6; } 29384if test "${ac_cv_func_setgrent_r+set}" = set; then 29385 echo $ECHO_N "(cached) $ECHO_C" >&6 29386else 29387 cat >conftest.$ac_ext <<_ACEOF 29388/* confdefs.h. */ 29389_ACEOF 29390cat confdefs.h >>conftest.$ac_ext 29391cat >>conftest.$ac_ext <<_ACEOF 29392/* end confdefs.h. */ 29393/* Define setgrent_r to an innocuous variant, in case <limits.h> declares setgrent_r. 29394 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29395#define setgrent_r innocuous_setgrent_r 29396 29397/* System header to define __stub macros and hopefully few prototypes, 29398 which can conflict with char setgrent_r (); below. 29399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29400 <limits.h> exists even on freestanding compilers. */ 29401 29402#ifdef __STDC__ 29403# include <limits.h> 29404#else 29405# include <assert.h> 29406#endif 29407 29408#undef setgrent_r 29409 29410/* Override any GCC internal prototype to avoid an error. 29411 Use char because int might match the return type of a GCC 29412 builtin and then its argument prototype would still apply. */ 29413#ifdef __cplusplus 29414extern "C" 29415#endif 29416char setgrent_r (); 29417/* The GNU C library defines this for functions which it implements 29418 to always fail with ENOSYS. Some functions are actually named 29419 something starting with __ and the normal name is an alias. */ 29420#if defined __stub_setgrent_r || defined __stub___setgrent_r 29421choke me 29422#endif 29423 29424int 29425main () 29426{ 29427return setgrent_r (); 29428 ; 29429 return 0; 29430} 29431_ACEOF 29432rm -f conftest.$ac_objext conftest$ac_exeext 29433if { (ac_try="$ac_link" 29434case "(($ac_try" in 29435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29436 *) ac_try_echo=$ac_try;; 29437esac 29438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29439 (eval "$ac_link") 2>conftest.er1 29440 ac_status=$? 29441 grep -v '^ *+' conftest.er1 >conftest.err 29442 rm -f conftest.er1 29443 cat conftest.err >&5 29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29445 (exit $ac_status); } && { 29446 test -z "$ac_c_werror_flag" || 29447 test ! -s conftest.err 29448 } && test -s conftest$ac_exeext && 29449 $as_test_x conftest$ac_exeext; then 29450 ac_cv_func_setgrent_r=yes 29451else 29452 echo "$as_me: failed program was:" >&5 29453sed 's/^/| /' conftest.$ac_ext >&5 29454 29455 ac_cv_func_setgrent_r=no 29456fi 29457 29458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29459 conftest$ac_exeext conftest.$ac_ext 29460fi 29461{ echo "$as_me:$LINENO: result: $ac_cv_func_setgrent_r" >&5 29462echo "${ECHO_T}$ac_cv_func_setgrent_r" >&6; } 29463if test $ac_cv_func_setgrent_r = yes; then 29464 : 29465else 29466 GROUP_R_SET_RESULT="#undef GROUP_R_SET_RESULT /*empty*/" 29467GROUP_R_SET_RETURN="#define GROUP_R_SET_RETURN void" 29468cat >>confdefs.h <<\_ACEOF 29469#define NEED_SETGRENT_R 1 29470_ACEOF 29471 29472 29473fi 29474 29475 29476 29477 29478 29479case $host in 29480ia64-hp-hpux11.*) 29481;; 29482*) 29483{ echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 29484echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; } 29485if test "${ac_cv_func_gethostbyname_r+set}" = set; then 29486 echo $ECHO_N "(cached) $ECHO_C" >&6 29487else 29488 cat >conftest.$ac_ext <<_ACEOF 29489/* confdefs.h. */ 29490_ACEOF 29491cat confdefs.h >>conftest.$ac_ext 29492cat >>conftest.$ac_ext <<_ACEOF 29493/* end confdefs.h. */ 29494/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. 29495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29496#define gethostbyname_r innocuous_gethostbyname_r 29497 29498/* System header to define __stub macros and hopefully few prototypes, 29499 which can conflict with char gethostbyname_r (); below. 29500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29501 <limits.h> exists even on freestanding compilers. */ 29502 29503#ifdef __STDC__ 29504# include <limits.h> 29505#else 29506# include <assert.h> 29507#endif 29508 29509#undef gethostbyname_r 29510 29511/* Override any GCC internal prototype to avoid an error. 29512 Use char because int might match the return type of a GCC 29513 builtin and then its argument prototype would still apply. */ 29514#ifdef __cplusplus 29515extern "C" 29516#endif 29517char gethostbyname_r (); 29518/* The GNU C library defines this for functions which it implements 29519 to always fail with ENOSYS. Some functions are actually named 29520 something starting with __ and the normal name is an alias. */ 29521#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 29522choke me 29523#endif 29524 29525int 29526main () 29527{ 29528return gethostbyname_r (); 29529 ; 29530 return 0; 29531} 29532_ACEOF 29533rm -f conftest.$ac_objext conftest$ac_exeext 29534if { (ac_try="$ac_link" 29535case "(($ac_try" in 29536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29537 *) ac_try_echo=$ac_try;; 29538esac 29539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29540 (eval "$ac_link") 2>conftest.er1 29541 ac_status=$? 29542 grep -v '^ *+' conftest.er1 >conftest.err 29543 rm -f conftest.er1 29544 cat conftest.err >&5 29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29546 (exit $ac_status); } && { 29547 test -z "$ac_c_werror_flag" || 29548 test ! -s conftest.err 29549 } && test -s conftest$ac_exeext && 29550 $as_test_x conftest$ac_exeext; then 29551 ac_cv_func_gethostbyname_r=yes 29552else 29553 echo "$as_me: failed program was:" >&5 29554sed 's/^/| /' conftest.$ac_ext >&5 29555 29556 ac_cv_func_gethostbyname_r=no 29557fi 29558 29559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29560 conftest$ac_exeext conftest.$ac_ext 29561fi 29562{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 29563echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; } 29564if test $ac_cv_func_gethostbyname_r = yes; then 29565 cat >conftest.$ac_ext <<_ACEOF 29566/* confdefs.h. */ 29567_ACEOF 29568cat confdefs.h >>conftest.$ac_ext 29569cat >>conftest.$ac_ext <<_ACEOF 29570/* end confdefs.h. */ 29571 29572#undef __USE_MISC 29573#define __USE_MISC 29574#include <netdb.h> 29575struct hostent *gethostbyname_r 29576(const char *name, struct hostent *hp, char *buf, int len, int *h_errnop) {} 29577 29578int 29579main () 29580{ 29581return (0); 29582 ; 29583 return 0; 29584} 29585_ACEOF 29586rm -f conftest.$ac_objext 29587if { (ac_try="$ac_compile" 29588case "(($ac_try" in 29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29590 *) ac_try_echo=$ac_try;; 29591esac 29592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29593 (eval "$ac_compile") 2>conftest.er1 29594 ac_status=$? 29595 grep -v '^ *+' conftest.er1 >conftest.err 29596 rm -f conftest.er1 29597 cat conftest.err >&5 29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29599 (exit $ac_status); } && { 29600 test -z "$ac_c_werror_flag" || 29601 test ! -s conftest.err 29602 } && test -s conftest.$ac_objext; then 29603 29604HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop" 29605HOST_R_BAD="#define HOST_R_BAD NULL" 29606HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29607HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29608HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29609HOST_R_OK="#define HOST_R_OK hptr" 29610HOST_R_RETURN="#define HOST_R_RETURN struct hostent *" 29611HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29612HOSTENT_DATA="#undef HOSTENT_DATA" 29613 29614 29615else 29616 echo "$as_me: failed program was:" >&5 29617sed 's/^/| /' conftest.$ac_ext >&5 29618 29619 cat >conftest.$ac_ext <<_ACEOF 29620/* confdefs.h. */ 29621_ACEOF 29622cat confdefs.h >>conftest.$ac_ext 29623cat >>conftest.$ac_ext <<_ACEOF 29624/* end confdefs.h. */ 29625 29626#undef __USE_MISC 29627#define __USE_MISC 29628#include <netdb.h> 29629int gethostbyname_r(const char *name, 29630 struct hostent *result, 29631 struct hostent_data *hdptr); 29632 29633int 29634main () 29635{ 29636 29637 ; 29638 return 0; 29639} 29640_ACEOF 29641rm -f conftest.$ac_objext 29642if { (ac_try="$ac_compile" 29643case "(($ac_try" in 29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29645 *) ac_try_echo=$ac_try;; 29646esac 29647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29648 (eval "$ac_compile") 2>conftest.er1 29649 ac_status=$? 29650 grep -v '^ *+' conftest.er1 >conftest.err 29651 rm -f conftest.er1 29652 cat conftest.err >&5 29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29654 (exit $ac_status); } && { 29655 test -z "$ac_c_werror_flag" || 29656 test ! -s conftest.err 29657 } && test -s conftest.$ac_objext; then 29658 29659HOST_R_ARGS="#define HOST_R_ARGS struct hostent_data *hdptr" 29660HOST_R_BAD="#define HOST_R_BAD (-1)" 29661HOST_R_COPY="#define HOST_R_COPY hdptr" 29662HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS HOST_R_ARGS" 29663HOST_R_ERRNO="#undef HOST_R_ERRNO" 29664HOST_R_OK="#define HOST_R_OK 0" 29665HOST_R_RETURN="#define HOST_R_RETURN int" 29666HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29667HOSTENT_DATA="#define HOSTENT_DATA 1" 29668 29669else 29670 echo "$as_me: failed program was:" >&5 29671sed 's/^/| /' conftest.$ac_ext >&5 29672 29673 cat >conftest.$ac_ext <<_ACEOF 29674/* confdefs.h. */ 29675_ACEOF 29676cat confdefs.h >>conftest.$ac_ext 29677cat >>conftest.$ac_ext <<_ACEOF 29678/* end confdefs.h. */ 29679 29680#undef __USE_MISC 29681#define __USE_MISC 29682#include <netdb.h> 29683extern int gethostbyname_r (const char *, 29684 struct hostent *, 29685 char *, size_t, 29686 struct hostent **, 29687 int *); 29688 29689int 29690main () 29691{ 29692 29693 ; 29694 return 0; 29695} 29696_ACEOF 29697rm -f conftest.$ac_objext 29698if { (ac_try="$ac_compile" 29699case "(($ac_try" in 29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29701 *) ac_try_echo=$ac_try;; 29702esac 29703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29704 (eval "$ac_compile") 2>conftest.er1 29705 ac_status=$? 29706 grep -v '^ *+' conftest.er1 >conftest.err 29707 rm -f conftest.er1 29708 cat conftest.err >&5 29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29710 (exit $ac_status); } && { 29711 test -z "$ac_c_werror_flag" || 29712 test ! -s conftest.err 29713 } && test -s conftest.$ac_objext; then 29714 29715HOST_R_ARGS="#define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop" 29716HOST_R_BAD="#define HOST_R_BAD ERANGE" 29717HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29718HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29719HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29720HOST_R_OK="#define HOST_R_OK 0" 29721HOST_R_RETURN="#define HOST_R_RETURN int" 29722HOST_R_SETANSWER="#define HOST_R_SETANSWER 1" 29723HOSTENT_DATA="#undef HOSTENT_DATA" 29724 29725else 29726 echo "$as_me: failed program was:" >&5 29727sed 's/^/| /' conftest.$ac_ext >&5 29728 29729 29730fi 29731 29732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29733fi 29734 29735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29736fi 29737 29738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29739 29740else 29741 HOST_R_ARGS="#define HOST_R_ARGS char *buf, int buflen, int *h_errnop" 29742HOST_R_BAD="#define HOST_R_BAD NULL" 29743HOST_R_COPY="#define HOST_R_COPY buf, buflen" 29744HOST_R_COPY_ARGS="#define HOST_R_COPY_ARGS char *buf, int buflen" 29745HOST_R_ERRNO="#define HOST_R_ERRNO *h_errnop = h_errno" 29746HOST_R_OK="#define HOST_R_OK hptr" 29747HOST_R_RETURN="#define HOST_R_RETURN struct hostent *" 29748HOST_R_SETANSWER="#undef HOST_R_SETANSWER" 29749HOSTENT_DATA="#undef HOSTENT_DATA" 29750 29751fi 29752 29753esac 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764case $host in 29765ia64-hp-hpux11.*) 29766;; 29767*) 29768{ echo "$as_me:$LINENO: checking for endhostent_r" >&5 29769echo $ECHO_N "checking for endhostent_r... $ECHO_C" >&6; } 29770if test "${ac_cv_func_endhostent_r+set}" = set; then 29771 echo $ECHO_N "(cached) $ECHO_C" >&6 29772else 29773 cat >conftest.$ac_ext <<_ACEOF 29774/* confdefs.h. */ 29775_ACEOF 29776cat confdefs.h >>conftest.$ac_ext 29777cat >>conftest.$ac_ext <<_ACEOF 29778/* end confdefs.h. */ 29779/* Define endhostent_r to an innocuous variant, in case <limits.h> declares endhostent_r. 29780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29781#define endhostent_r innocuous_endhostent_r 29782 29783/* System header to define __stub macros and hopefully few prototypes, 29784 which can conflict with char endhostent_r (); below. 29785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29786 <limits.h> exists even on freestanding compilers. */ 29787 29788#ifdef __STDC__ 29789# include <limits.h> 29790#else 29791# include <assert.h> 29792#endif 29793 29794#undef endhostent_r 29795 29796/* Override any GCC internal prototype to avoid an error. 29797 Use char because int might match the return type of a GCC 29798 builtin and then its argument prototype would still apply. */ 29799#ifdef __cplusplus 29800extern "C" 29801#endif 29802char endhostent_r (); 29803/* The GNU C library defines this for functions which it implements 29804 to always fail with ENOSYS. Some functions are actually named 29805 something starting with __ and the normal name is an alias. */ 29806#if defined __stub_endhostent_r || defined __stub___endhostent_r 29807choke me 29808#endif 29809 29810int 29811main () 29812{ 29813return endhostent_r (); 29814 ; 29815 return 0; 29816} 29817_ACEOF 29818rm -f conftest.$ac_objext conftest$ac_exeext 29819if { (ac_try="$ac_link" 29820case "(($ac_try" in 29821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29822 *) ac_try_echo=$ac_try;; 29823esac 29824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29825 (eval "$ac_link") 2>conftest.er1 29826 ac_status=$? 29827 grep -v '^ *+' conftest.er1 >conftest.err 29828 rm -f conftest.er1 29829 cat conftest.err >&5 29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29831 (exit $ac_status); } && { 29832 test -z "$ac_c_werror_flag" || 29833 test ! -s conftest.err 29834 } && test -s conftest$ac_exeext && 29835 $as_test_x conftest$ac_exeext; then 29836 ac_cv_func_endhostent_r=yes 29837else 29838 echo "$as_me: failed program was:" >&5 29839sed 's/^/| /' conftest.$ac_ext >&5 29840 29841 ac_cv_func_endhostent_r=no 29842fi 29843 29844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 29845 conftest$ac_exeext conftest.$ac_ext 29846fi 29847{ echo "$as_me:$LINENO: result: $ac_cv_func_endhostent_r" >&5 29848echo "${ECHO_T}$ac_cv_func_endhostent_r" >&6; } 29849if test $ac_cv_func_endhostent_r = yes; then 29850 cat >conftest.$ac_ext <<_ACEOF 29851/* confdefs.h. */ 29852_ACEOF 29853cat confdefs.h >>conftest.$ac_ext 29854cat >>conftest.$ac_ext <<_ACEOF 29855/* end confdefs.h. */ 29856 29857#undef _REENTRANT 29858#define _REENTRANT 29859#undef __USE_MISC 29860#define __USE_MISC 29861#include <netdb.h> 29862int endhostent_r(struct hostent_data *buffer); 29863 29864int 29865main () 29866{ 29867 29868 ; 29869 return 0; 29870} 29871_ACEOF 29872rm -f conftest.$ac_objext 29873if { (ac_try="$ac_compile" 29874case "(($ac_try" in 29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29876 *) ac_try_echo=$ac_try;; 29877esac 29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29879 (eval "$ac_compile") 2>conftest.er1 29880 ac_status=$? 29881 grep -v '^ *+' conftest.er1 >conftest.err 29882 rm -f conftest.er1 29883 cat conftest.err >&5 29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29885 (exit $ac_status); } && { 29886 test -z "$ac_c_werror_flag" || 29887 test ! -s conftest.err 29888 } && test -s conftest.$ac_objext; then 29889 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) return (x)" 29890HOST_R_END_RETURN="#define HOST_R_END_RETURN int" 29891HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr" 29892 29893else 29894 echo "$as_me: failed program was:" >&5 29895sed 's/^/| /' conftest.$ac_ext >&5 29896 29897 cat >conftest.$ac_ext <<_ACEOF 29898/* confdefs.h. */ 29899_ACEOF 29900cat confdefs.h >>conftest.$ac_ext 29901cat >>conftest.$ac_ext <<_ACEOF 29902/* end confdefs.h. */ 29903 29904#undef _REENTRANT 29905#define _REENTRANT 29906#undef __USE_MISC 29907#define __USE_MISC 29908#include <netdb.h> 29909extern void endhostent_r(struct hostent_data *ht_data); 29910 29911int 29912main () 29913{ 29914 29915 ; 29916 return 0; 29917} 29918_ACEOF 29919rm -f conftest.$ac_objext 29920if { (ac_try="$ac_compile" 29921case "(($ac_try" in 29922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29923 *) ac_try_echo=$ac_try;; 29924esac 29925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29926 (eval "$ac_compile") 2>conftest.er1 29927 ac_status=$? 29928 grep -v '^ *+' conftest.er1 >conftest.err 29929 rm -f conftest.er1 29930 cat conftest.err >&5 29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29932 (exit $ac_status); } && { 29933 test -z "$ac_c_werror_flag" || 29934 test ! -s conftest.err 29935 } && test -s conftest.$ac_objext; then 29936 29937HOST_R_END_RESULT="#define HOST_R_END_RESULT(x)" 29938HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 29939HOST_R_ENT_ARGS="#define HOST_R_ENT_ARGS struct hostent_data *hdptr" 29940 29941else 29942 echo "$as_me: failed program was:" >&5 29943sed 's/^/| /' conftest.$ac_ext >&5 29944 29945 cat >conftest.$ac_ext <<_ACEOF 29946/* confdefs.h. */ 29947_ACEOF 29948cat confdefs.h >>conftest.$ac_ext 29949cat >>conftest.$ac_ext <<_ACEOF 29950/* end confdefs.h. */ 29951 29952#undef _REENTRANT 29953#define _REENTRANT 29954#undef __USE_MISC 29955#define __USE_MISC 29956#include <netdb.h> 29957extern void endhostent_r(void); 29958 29959int 29960main () 29961{ 29962 29963 ; 29964 return 0; 29965} 29966_ACEOF 29967rm -f conftest.$ac_objext 29968if { (ac_try="$ac_compile" 29969case "(($ac_try" in 29970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29971 *) ac_try_echo=$ac_try;; 29972esac 29973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 29974 (eval "$ac_compile") 2>conftest.er1 29975 ac_status=$? 29976 grep -v '^ *+' conftest.er1 >conftest.err 29977 rm -f conftest.er1 29978 cat conftest.err >&5 29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29980 (exit $ac_status); } && { 29981 test -z "$ac_c_werror_flag" || 29982 test ! -s conftest.err 29983 } && test -s conftest.$ac_objext; then 29984 29985HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/" 29986HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 29987HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/" 29988 29989else 29990 echo "$as_me: failed program was:" >&5 29991sed 's/^/| /' conftest.$ac_ext >&5 29992 29993 29994fi 29995 29996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29997 29998fi 29999 30000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30001 30002fi 30003 30004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30005 30006else 30007 HOST_R_END_RESULT="#define HOST_R_END_RESULT(x) /*empty*/" 30008HOST_R_END_RETURN="#define HOST_R_END_RETURN void" 30009HOST_R_ENT_ARGS="#undef HOST_R_ENT_ARGS /*empty*/" 30010 30011fi 30012 30013esac; 30014 30015 30016 30017 30018case $host in 30019ia64-hp-hpux11.*) 30020;; 30021*) 30022{ echo "$as_me:$LINENO: checking for sethostent_r" >&5 30023echo $ECHO_N "checking for sethostent_r... $ECHO_C" >&6; } 30024if test "${ac_cv_func_sethostent_r+set}" = set; then 30025 echo $ECHO_N "(cached) $ECHO_C" >&6 30026else 30027 cat >conftest.$ac_ext <<_ACEOF 30028/* confdefs.h. */ 30029_ACEOF 30030cat confdefs.h >>conftest.$ac_ext 30031cat >>conftest.$ac_ext <<_ACEOF 30032/* end confdefs.h. */ 30033/* Define sethostent_r to an innocuous variant, in case <limits.h> declares sethostent_r. 30034 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30035#define sethostent_r innocuous_sethostent_r 30036 30037/* System header to define __stub macros and hopefully few prototypes, 30038 which can conflict with char sethostent_r (); below. 30039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30040 <limits.h> exists even on freestanding compilers. */ 30041 30042#ifdef __STDC__ 30043# include <limits.h> 30044#else 30045# include <assert.h> 30046#endif 30047 30048#undef sethostent_r 30049 30050/* Override any GCC internal prototype to avoid an error. 30051 Use char because int might match the return type of a GCC 30052 builtin and then its argument prototype would still apply. */ 30053#ifdef __cplusplus 30054extern "C" 30055#endif 30056char sethostent_r (); 30057/* The GNU C library defines this for functions which it implements 30058 to always fail with ENOSYS. Some functions are actually named 30059 something starting with __ and the normal name is an alias. */ 30060#if defined __stub_sethostent_r || defined __stub___sethostent_r 30061choke me 30062#endif 30063 30064int 30065main () 30066{ 30067return sethostent_r (); 30068 ; 30069 return 0; 30070} 30071_ACEOF 30072rm -f conftest.$ac_objext conftest$ac_exeext 30073if { (ac_try="$ac_link" 30074case "(($ac_try" in 30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30076 *) ac_try_echo=$ac_try;; 30077esac 30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30079 (eval "$ac_link") 2>conftest.er1 30080 ac_status=$? 30081 grep -v '^ *+' conftest.er1 >conftest.err 30082 rm -f conftest.er1 30083 cat conftest.err >&5 30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30085 (exit $ac_status); } && { 30086 test -z "$ac_c_werror_flag" || 30087 test ! -s conftest.err 30088 } && test -s conftest$ac_exeext && 30089 $as_test_x conftest$ac_exeext; then 30090 ac_cv_func_sethostent_r=yes 30091else 30092 echo "$as_me: failed program was:" >&5 30093sed 's/^/| /' conftest.$ac_ext >&5 30094 30095 ac_cv_func_sethostent_r=no 30096fi 30097 30098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30099 conftest$ac_exeext conftest.$ac_ext 30100fi 30101{ echo "$as_me:$LINENO: result: $ac_cv_func_sethostent_r" >&5 30102echo "${ECHO_T}$ac_cv_func_sethostent_r" >&6; } 30103if test $ac_cv_func_sethostent_r = yes; then 30104 cat >conftest.$ac_ext <<_ACEOF 30105/* confdefs.h. */ 30106_ACEOF 30107cat confdefs.h >>conftest.$ac_ext 30108cat >>conftest.$ac_ext <<_ACEOF 30109/* end confdefs.h. */ 30110 30111#undef _REENTRANT 30112#define _REENTRANT 30113#undef __USE_MISC 30114#define __USE_MISC 30115#include <netdb.h> 30116extern void sethostent_r(int flag, struct hostent_data *ht_data); 30117int 30118main () 30119{ 30120 30121 ; 30122 return 0; 30123} 30124_ACEOF 30125rm -f conftest.$ac_objext 30126if { (ac_try="$ac_compile" 30127case "(($ac_try" in 30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30129 *) ac_try_echo=$ac_try;; 30130esac 30131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30132 (eval "$ac_compile") 2>conftest.er1 30133 ac_status=$? 30134 grep -v '^ *+' conftest.er1 >conftest.err 30135 rm -f conftest.er1 30136 cat conftest.err >&5 30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30138 (exit $ac_status); } && { 30139 test -z "$ac_c_werror_flag" || 30140 test ! -s conftest.err 30141 } && test -s conftest.$ac_objext; then 30142 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT /*empty*/" 30143HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30144else 30145 echo "$as_me: failed program was:" >&5 30146sed 's/^/| /' conftest.$ac_ext >&5 30147 30148 cat >conftest.$ac_ext <<_ACEOF 30149/* confdefs.h. */ 30150_ACEOF 30151cat confdefs.h >>conftest.$ac_ext 30152cat >>conftest.$ac_ext <<_ACEOF 30153/* end confdefs.h. */ 30154 30155#undef _REENTRANT 30156#define _REENTRANT 30157#undef __USE_MISC 30158#define __USE_MISC 30159#include <netdb.h> 30160extern int sethostent_r(int flag, struct hostent_data *ht_data); 30161int 30162main () 30163{ 30164 30165 ; 30166 return 0; 30167} 30168_ACEOF 30169rm -f conftest.$ac_objext 30170if { (ac_try="$ac_compile" 30171case "(($ac_try" in 30172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30173 *) ac_try_echo=$ac_try;; 30174esac 30175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30176 (eval "$ac_compile") 2>conftest.er1 30177 ac_status=$? 30178 grep -v '^ *+' conftest.er1 >conftest.err 30179 rm -f conftest.er1 30180 cat conftest.err >&5 30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30182 (exit $ac_status); } && { 30183 test -z "$ac_c_werror_flag" || 30184 test ! -s conftest.err 30185 } && test -s conftest.$ac_objext; then 30186 HOST_R_SET_RESULT="#define HOST_R_SET_RESULT 0" 30187HOST_R_SET_RETURN="#define HOST_R_SET_RETURN int" 30188else 30189 echo "$as_me: failed program was:" >&5 30190sed 's/^/| /' conftest.$ac_ext >&5 30191 30192 cat >conftest.$ac_ext <<_ACEOF 30193/* confdefs.h. */ 30194_ACEOF 30195cat confdefs.h >>conftest.$ac_ext 30196cat >>conftest.$ac_ext <<_ACEOF 30197/* end confdefs.h. */ 30198 30199#undef _REENTRANT 30200#define _REENTRANT 30201#undef __USE_MISC 30202#define __USE_MISC 30203#include <netdb.h> 30204void sethostent_r (int); 30205int 30206main () 30207{ 30208 30209 ; 30210 return 0; 30211} 30212_ACEOF 30213rm -f conftest.$ac_objext 30214if { (ac_try="$ac_compile" 30215case "(($ac_try" in 30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30217 *) ac_try_echo=$ac_try;; 30218esac 30219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30220 (eval "$ac_compile") 2>conftest.er1 30221 ac_status=$? 30222 grep -v '^ *+' conftest.er1 >conftest.err 30223 rm -f conftest.er1 30224 cat conftest.err >&5 30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30226 (exit $ac_status); } && { 30227 test -z "$ac_c_werror_flag" || 30228 test ! -s conftest.err 30229 } && test -s conftest.$ac_objext; then 30230 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT" 30231HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30232else 30233 echo "$as_me: failed program was:" >&5 30234sed 's/^/| /' conftest.$ac_ext >&5 30235 30236 30237fi 30238 30239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30240 30241fi 30242 30243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30244 30245fi 30246 30247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30248 30249else 30250 HOST_R_SET_RESULT="#undef HOST_R_SET_RESULT" 30251HOST_R_SET_RETURN="#define HOST_R_SET_RETURN void" 30252 30253fi 30254 30255esac 30256 30257 30258 30259 30260{ echo "$as_me:$LINENO: checking struct passwd element pw_class" >&5 30261echo $ECHO_N "checking struct passwd element pw_class... $ECHO_C" >&6; } 30262cat >conftest.$ac_ext <<_ACEOF 30263/* confdefs.h. */ 30264_ACEOF 30265cat confdefs.h >>conftest.$ac_ext 30266cat >>conftest.$ac_ext <<_ACEOF 30267/* end confdefs.h. */ 30268 30269#include <sys/types.h> 30270#include <pwd.h> 30271 30272int 30273main () 30274{ 30275struct passwd *pw; pw->pw_class = ""; 30276 ; 30277 return 0; 30278} 30279_ACEOF 30280rm -f conftest.$ac_objext 30281if { (ac_try="$ac_compile" 30282case "(($ac_try" in 30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30284 *) ac_try_echo=$ac_try;; 30285esac 30286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30287 (eval "$ac_compile") 2>conftest.er1 30288 ac_status=$? 30289 grep -v '^ *+' conftest.er1 >conftest.err 30290 rm -f conftest.er1 30291 cat conftest.err >&5 30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30293 (exit $ac_status); } && { 30294 test -z "$ac_c_werror_flag" || 30295 test ! -s conftest.err 30296 } && test -s conftest.$ac_objext; then 30297 { echo "$as_me:$LINENO: result: yes" >&5 30298echo "${ECHO_T}yes" >&6; } 30299cat >>confdefs.h <<\_ACEOF 30300#define HAS_PW_CLASS 1 30301_ACEOF 30302 30303 30304else 30305 echo "$as_me: failed program was:" >&5 30306sed 's/^/| /' conftest.$ac_ext >&5 30307 30308 { echo "$as_me:$LINENO: result: no" >&5 30309echo "${ECHO_T}no" >&6; } 30310 30311fi 30312 30313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30314 30315cat >conftest.$ac_ext <<_ACEOF 30316/* confdefs.h. */ 30317_ACEOF 30318cat confdefs.h >>conftest.$ac_ext 30319cat >>conftest.$ac_ext <<_ACEOF 30320/* end confdefs.h. */ 30321 30322#include <sys/types.h> 30323#include <pwd.h> 30324void 30325setpwent(void) {} 30326 30327int 30328main () 30329{ 30330return (0); 30331 ; 30332 return 0; 30333} 30334_ACEOF 30335rm -f conftest.$ac_objext 30336if { (ac_try="$ac_compile" 30337case "(($ac_try" in 30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30339 *) ac_try_echo=$ac_try;; 30340esac 30341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30342 (eval "$ac_compile") 2>conftest.er1 30343 ac_status=$? 30344 grep -v '^ *+' conftest.er1 >conftest.err 30345 rm -f conftest.er1 30346 cat conftest.err >&5 30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30348 (exit $ac_status); } && { 30349 test -z "$ac_c_werror_flag" || 30350 test ! -s conftest.err 30351 } && test -s conftest.$ac_objext; then 30352 SETPWENT_VOID="#define SETPWENT_VOID 1" 30353 30354else 30355 echo "$as_me: failed program was:" >&5 30356sed 's/^/| /' conftest.$ac_ext >&5 30357 30358 SETPWENT_VOID="#undef SETPWENT_VOID" 30359 30360fi 30361 30362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30363 30364 30365cat >conftest.$ac_ext <<_ACEOF 30366/* confdefs.h. */ 30367_ACEOF 30368cat confdefs.h >>conftest.$ac_ext 30369cat >>conftest.$ac_ext <<_ACEOF 30370/* end confdefs.h. */ 30371 30372#include <sys/types.h> 30373#include <grp.h> 30374void 30375setgrent(void) {} 30376 30377int 30378main () 30379{ 30380return (0); 30381 ; 30382 return 0; 30383} 30384_ACEOF 30385rm -f conftest.$ac_objext 30386if { (ac_try="$ac_compile" 30387case "(($ac_try" in 30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30389 *) ac_try_echo=$ac_try;; 30390esac 30391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30392 (eval "$ac_compile") 2>conftest.er1 30393 ac_status=$? 30394 grep -v '^ *+' conftest.er1 >conftest.err 30395 rm -f conftest.er1 30396 cat conftest.err >&5 30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30398 (exit $ac_status); } && { 30399 test -z "$ac_c_werror_flag" || 30400 test ! -s conftest.err 30401 } && test -s conftest.$ac_objext; then 30402 SETGRENT_VOID="#define SETGRENT_VOID 1" 30403 30404else 30405 echo "$as_me: failed program was:" >&5 30406sed 's/^/| /' conftest.$ac_ext >&5 30407 30408 SETGRENT_VOID="#undef SETGRENT_VOID" 30409 30410fi 30411 30412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30413 30414 30415case $host in 30416ia64-hp-hpux11.*) 30417NGR_R_CONST="#define NGR_R_CONST" 30418;; 30419*-hp-hpux11.*) 30420# 30421# HPUX doesn't have a prototype for getnetgrent_r(). 30422# 30423NGR_R_CONST="#define NGR_R_CONST" 30424NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30425NGR_R_BAD="#define NGR_R_BAD (0)" 30426NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30427NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30428NGR_R_OK="#define NGR_R_OK 1" 30429NGR_R_RETURN="#define NGR_R_RETURN int" 30430;; 30431 30432*) 30433{ echo "$as_me:$LINENO: checking for getnetgrent_r" >&5 30434echo $ECHO_N "checking for getnetgrent_r... $ECHO_C" >&6; } 30435if test "${ac_cv_func_getnetgrent_r+set}" = set; then 30436 echo $ECHO_N "(cached) $ECHO_C" >&6 30437else 30438 cat >conftest.$ac_ext <<_ACEOF 30439/* confdefs.h. */ 30440_ACEOF 30441cat confdefs.h >>conftest.$ac_ext 30442cat >>conftest.$ac_ext <<_ACEOF 30443/* end confdefs.h. */ 30444/* Define getnetgrent_r to an innocuous variant, in case <limits.h> declares getnetgrent_r. 30445 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30446#define getnetgrent_r innocuous_getnetgrent_r 30447 30448/* System header to define __stub macros and hopefully few prototypes, 30449 which can conflict with char getnetgrent_r (); below. 30450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30451 <limits.h> exists even on freestanding compilers. */ 30452 30453#ifdef __STDC__ 30454# include <limits.h> 30455#else 30456# include <assert.h> 30457#endif 30458 30459#undef getnetgrent_r 30460 30461/* Override any GCC internal prototype to avoid an error. 30462 Use char because int might match the return type of a GCC 30463 builtin and then its argument prototype would still apply. */ 30464#ifdef __cplusplus 30465extern "C" 30466#endif 30467char getnetgrent_r (); 30468/* The GNU C library defines this for functions which it implements 30469 to always fail with ENOSYS. Some functions are actually named 30470 something starting with __ and the normal name is an alias. */ 30471#if defined __stub_getnetgrent_r || defined __stub___getnetgrent_r 30472choke me 30473#endif 30474 30475int 30476main () 30477{ 30478return getnetgrent_r (); 30479 ; 30480 return 0; 30481} 30482_ACEOF 30483rm -f conftest.$ac_objext conftest$ac_exeext 30484if { (ac_try="$ac_link" 30485case "(($ac_try" in 30486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30487 *) ac_try_echo=$ac_try;; 30488esac 30489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30490 (eval "$ac_link") 2>conftest.er1 30491 ac_status=$? 30492 grep -v '^ *+' conftest.er1 >conftest.err 30493 rm -f conftest.er1 30494 cat conftest.err >&5 30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30496 (exit $ac_status); } && { 30497 test -z "$ac_c_werror_flag" || 30498 test ! -s conftest.err 30499 } && test -s conftest$ac_exeext && 30500 $as_test_x conftest$ac_exeext; then 30501 ac_cv_func_getnetgrent_r=yes 30502else 30503 echo "$as_me: failed program was:" >&5 30504sed 's/^/| /' conftest.$ac_ext >&5 30505 30506 ac_cv_func_getnetgrent_r=no 30507fi 30508 30509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30510 conftest$ac_exeext conftest.$ac_ext 30511fi 30512{ echo "$as_me:$LINENO: result: $ac_cv_func_getnetgrent_r" >&5 30513echo "${ECHO_T}$ac_cv_func_getnetgrent_r" >&6; } 30514if test $ac_cv_func_getnetgrent_r = yes; then 30515 cat >conftest.$ac_ext <<_ACEOF 30516/* confdefs.h. */ 30517_ACEOF 30518cat confdefs.h >>conftest.$ac_ext 30519cat >>conftest.$ac_ext <<_ACEOF 30520/* end confdefs.h. */ 30521 30522#undef __USE_MISC 30523#define __USE_MISC 30524#undef _REEENTRANT 30525#define _REEENTRANT 30526#include <netdb.h> 30527#include <unistd.h> 30528int getnetgrent_r(char **m, char **u, char **d, char *b, int l) {} 30529 30530 30531int 30532main () 30533{ 30534return (0); 30535 ; 30536 return 0; 30537} 30538_ACEOF 30539rm -f conftest.$ac_objext 30540if { (ac_try="$ac_compile" 30541case "(($ac_try" in 30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30543 *) ac_try_echo=$ac_try;; 30544esac 30545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30546 (eval "$ac_compile") 2>conftest.er1 30547 ac_status=$? 30548 grep -v '^ *+' conftest.er1 >conftest.err 30549 rm -f conftest.er1 30550 cat conftest.err >&5 30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30552 (exit $ac_status); } && { 30553 test -z "$ac_c_werror_flag" || 30554 test ! -s conftest.err 30555 } && test -s conftest.$ac_objext; then 30556 30557NGR_R_CONST="#define NGR_R_CONST" 30558NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30559NGR_R_BAD="#define NGR_R_BAD (0)" 30560NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30561NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30562NGR_R_OK="#define NGR_R_OK 1" 30563NGR_R_RETURN="#define NGR_R_RETURN int" 30564 30565 30566else 30567 echo "$as_me: failed program was:" >&5 30568sed 's/^/| /' conftest.$ac_ext >&5 30569 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 30577#undef __USE_MISC 30578#define __USE_MISC 30579#undef _REEENTRANT 30580#define _REEENTRANT 30581#include <netdb.h> 30582#include <unistd.h> 30583int getnetgrent_r(char **m, char **u, char **d, char *b, size_t l) {} 30584 30585 30586int 30587main () 30588{ 30589return (0); 30590 ; 30591 return 0; 30592} 30593_ACEOF 30594rm -f conftest.$ac_objext 30595if { (ac_try="$ac_compile" 30596case "(($ac_try" in 30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30598 *) ac_try_echo=$ac_try;; 30599esac 30600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30601 (eval "$ac_compile") 2>conftest.er1 30602 ac_status=$? 30603 grep -v '^ *+' conftest.er1 >conftest.err 30604 rm -f conftest.er1 30605 cat conftest.err >&5 30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30607 (exit $ac_status); } && { 30608 test -z "$ac_c_werror_flag" || 30609 test ! -s conftest.err 30610 } && test -s conftest.$ac_objext; then 30611 30612NGR_R_CONST="#define NGR_R_CONST" 30613NGR_R_ARGS="#define NGR_R_ARGS char *buf, size_t buflen" 30614NGR_R_BAD="#define NGR_R_BAD (0)" 30615NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30616NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30617NGR_R_OK="#define NGR_R_OK 1" 30618NGR_R_RETURN="#define NGR_R_RETURN int" 30619 30620 30621else 30622 echo "$as_me: failed program was:" >&5 30623sed 's/^/| /' conftest.$ac_ext >&5 30624 30625 cat >conftest.$ac_ext <<_ACEOF 30626/* confdefs.h. */ 30627_ACEOF 30628cat confdefs.h >>conftest.$ac_ext 30629cat >>conftest.$ac_ext <<_ACEOF 30630/* end confdefs.h. */ 30631 30632#undef __USE_MISC 30633#define __USE_MISC 30634#undef _REEENTRANT 30635#define _REEENTRANT 30636#include <netdb.h> 30637#include <unistd.h> 30638extern int getnetgrent_r(char **, char **, char **, void **); 30639 30640 30641int 30642main () 30643{ 30644return (0); 30645 ; 30646 return 0; 30647} 30648_ACEOF 30649rm -f conftest.$ac_objext 30650if { (ac_try="$ac_compile" 30651case "(($ac_try" in 30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30653 *) ac_try_echo=$ac_try;; 30654esac 30655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30656 (eval "$ac_compile") 2>conftest.er1 30657 ac_status=$? 30658 grep -v '^ *+' conftest.er1 >conftest.err 30659 rm -f conftest.er1 30660 cat conftest.err >&5 30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30662 (exit $ac_status); } && { 30663 test -z "$ac_c_werror_flag" || 30664 test ! -s conftest.err 30665 } && test -s conftest.$ac_objext; then 30666 30667NGR_R_CONST="#define NGR_R_CONST" 30668NGR_R_ARGS="#define NGR_R_ARGS void **buf" 30669NGR_R_BAD="#define NGR_R_BAD (0)" 30670NGR_R_COPY="#define NGR_R_COPY buf" 30671NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30672NGR_R_OK="#define NGR_R_OK 1" 30673NGR_R_RETURN="#define NGR_R_RETURN int" 30674NGR_R_PRIVATE="#define NGR_R_PRIVATE 1" 30675 30676 30677else 30678 echo "$as_me: failed program was:" >&5 30679sed 's/^/| /' conftest.$ac_ext >&5 30680 30681 cat >conftest.$ac_ext <<_ACEOF 30682/* confdefs.h. */ 30683_ACEOF 30684cat confdefs.h >>conftest.$ac_ext 30685cat >>conftest.$ac_ext <<_ACEOF 30686/* end confdefs.h. */ 30687 30688#undef __USE_MISC 30689#define __USE_MISC 30690#undef _REEENTRANT 30691#define _REEENTRANT 30692#include <netdb.h> 30693#include <unistd.h> 30694extern int getnetgrent_r(const char **, const char **, const char **, void *); 30695 30696 30697int 30698main () 30699{ 30700return (0); 30701 ; 30702 return 0; 30703} 30704_ACEOF 30705rm -f conftest.$ac_objext 30706if { (ac_try="$ac_compile" 30707case "(($ac_try" in 30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30709 *) ac_try_echo=$ac_try;; 30710esac 30711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30712 (eval "$ac_compile") 2>conftest.er1 30713 ac_status=$? 30714 grep -v '^ *+' conftest.er1 >conftest.err 30715 rm -f conftest.er1 30716 cat conftest.err >&5 30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30718 (exit $ac_status); } && { 30719 test -z "$ac_c_werror_flag" || 30720 test ! -s conftest.err 30721 } && test -s conftest.$ac_objext; then 30722 30723NGR_R_CONST="#define NGR_R_CONST const" 30724NGR_R_ARGS="#define NGR_R_ARGS void *buf" 30725NGR_R_BAD="#define NGR_R_BAD (0)" 30726NGR_R_COPY="#define NGR_R_COPY buf" 30727NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30728NGR_R_OK="#define NGR_R_OK 1" 30729NGR_R_RETURN="#define NGR_R_RETURN int" 30730NGR_R_PRIVATE="#define NGR_R_PRIVATE 2" 30731 30732 30733else 30734 echo "$as_me: failed program was:" >&5 30735sed 's/^/| /' conftest.$ac_ext >&5 30736 30737 30738fi 30739 30740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30741 30742fi 30743 30744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30745 30746fi 30747 30748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30749 30750fi 30751 30752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30753 30754else 30755 NGR_R_CONST="#define NGR_R_CONST" 30756NGR_R_ARGS="#define NGR_R_ARGS char *buf, int buflen" 30757NGR_R_BAD="#define NGR_R_BAD (0)" 30758NGR_R_COPY="#define NGR_R_COPY buf, buflen" 30759NGR_R_COPY_ARGS="#define NGR_R_COPY_ARGS NGR_R_ARGS" 30760NGR_R_OK="#define NGR_R_OK 1" 30761NGR_R_RETURN="#define NGR_R_RETURN int" 30762 30763fi 30764 30765esac 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775{ echo "$as_me:$LINENO: checking for endnetgrent_r" >&5 30776echo $ECHO_N "checking for endnetgrent_r... $ECHO_C" >&6; } 30777if test "${ac_cv_func_endnetgrent_r+set}" = set; then 30778 echo $ECHO_N "(cached) $ECHO_C" >&6 30779else 30780 cat >conftest.$ac_ext <<_ACEOF 30781/* confdefs.h. */ 30782_ACEOF 30783cat confdefs.h >>conftest.$ac_ext 30784cat >>conftest.$ac_ext <<_ACEOF 30785/* end confdefs.h. */ 30786/* Define endnetgrent_r to an innocuous variant, in case <limits.h> declares endnetgrent_r. 30787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30788#define endnetgrent_r innocuous_endnetgrent_r 30789 30790/* System header to define __stub macros and hopefully few prototypes, 30791 which can conflict with char endnetgrent_r (); below. 30792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30793 <limits.h> exists even on freestanding compilers. */ 30794 30795#ifdef __STDC__ 30796# include <limits.h> 30797#else 30798# include <assert.h> 30799#endif 30800 30801#undef endnetgrent_r 30802 30803/* Override any GCC internal prototype to avoid an error. 30804 Use char because int might match the return type of a GCC 30805 builtin and then its argument prototype would still apply. */ 30806#ifdef __cplusplus 30807extern "C" 30808#endif 30809char endnetgrent_r (); 30810/* The GNU C library defines this for functions which it implements 30811 to always fail with ENOSYS. Some functions are actually named 30812 something starting with __ and the normal name is an alias. */ 30813#if defined __stub_endnetgrent_r || defined __stub___endnetgrent_r 30814choke me 30815#endif 30816 30817int 30818main () 30819{ 30820return endnetgrent_r (); 30821 ; 30822 return 0; 30823} 30824_ACEOF 30825rm -f conftest.$ac_objext conftest$ac_exeext 30826if { (ac_try="$ac_link" 30827case "(($ac_try" in 30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30829 *) ac_try_echo=$ac_try;; 30830esac 30831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30832 (eval "$ac_link") 2>conftest.er1 30833 ac_status=$? 30834 grep -v '^ *+' conftest.er1 >conftest.err 30835 rm -f conftest.er1 30836 cat conftest.err >&5 30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30838 (exit $ac_status); } && { 30839 test -z "$ac_c_werror_flag" || 30840 test ! -s conftest.err 30841 } && test -s conftest$ac_exeext && 30842 $as_test_x conftest$ac_exeext; then 30843 ac_cv_func_endnetgrent_r=yes 30844else 30845 echo "$as_me: failed program was:" >&5 30846sed 's/^/| /' conftest.$ac_ext >&5 30847 30848 ac_cv_func_endnetgrent_r=no 30849fi 30850 30851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 30852 conftest$ac_exeext conftest.$ac_ext 30853fi 30854{ echo "$as_me:$LINENO: result: $ac_cv_func_endnetgrent_r" >&5 30855echo "${ECHO_T}$ac_cv_func_endnetgrent_r" >&6; } 30856if test $ac_cv_func_endnetgrent_r = yes; then 30857 cat >conftest.$ac_ext <<_ACEOF 30858/* confdefs.h. */ 30859_ACEOF 30860cat confdefs.h >>conftest.$ac_ext 30861cat >>conftest.$ac_ext <<_ACEOF 30862/* end confdefs.h. */ 30863 30864#undef __USE_MISC 30865#define __USE_MISC 30866#undef _REEENTRANT 30867#define _REEENTRANT 30868#include <netdb.h> 30869#include <unistd.h> 30870void endnetgrent_r(void **ptr); 30871 30872 30873int 30874main () 30875{ 30876return (0); 30877 30878 ; 30879 return 0; 30880} 30881_ACEOF 30882rm -f conftest.$ac_objext 30883if { (ac_try="$ac_compile" 30884case "(($ac_try" in 30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30886 *) ac_try_echo=$ac_try;; 30887esac 30888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30889 (eval "$ac_compile") 2>conftest.er1 30890 ac_status=$? 30891 grep -v '^ *+' conftest.er1 >conftest.err 30892 rm -f conftest.er1 30893 cat conftest.err >&5 30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30895 (exit $ac_status); } && { 30896 test -z "$ac_c_werror_flag" || 30897 test ! -s conftest.err 30898 } && test -s conftest.$ac_objext; then 30899 30900NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */" 30901NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30902NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS" 30903 30904 30905else 30906 echo "$as_me: failed program was:" >&5 30907sed 's/^/| /' conftest.$ac_ext >&5 30908 30909 cat >conftest.$ac_ext <<_ACEOF 30910/* confdefs.h. */ 30911_ACEOF 30912cat confdefs.h >>conftest.$ac_ext 30913cat >>conftest.$ac_ext <<_ACEOF 30914/* end confdefs.h. */ 30915 30916#undef __USE_MISC 30917#define __USE_MISC 30918#undef _REEENTRANT 30919#define _REEENTRANT 30920#include <netdb.h> 30921#include <unistd.h> 30922void endnetgrent_r(void *ptr); 30923 30924 30925int 30926main () 30927{ 30928return (0); 30929 30930 ; 30931 return 0; 30932} 30933_ACEOF 30934rm -f conftest.$ac_objext 30935if { (ac_try="$ac_compile" 30936case "(($ac_try" in 30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30938 *) ac_try_echo=$ac_try;; 30939esac 30940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 30941 (eval "$ac_compile") 2>conftest.er1 30942 ac_status=$? 30943 grep -v '^ *+' conftest.er1 >conftest.err 30944 rm -f conftest.er1 30945 cat conftest.err >&5 30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30947 (exit $ac_status); } && { 30948 test -z "$ac_c_werror_flag" || 30949 test ! -s conftest.err 30950 } && test -s conftest.$ac_objext; then 30951 30952NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /* empty */" 30953NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30954NGR_R_END_ARGS="#define NGR_R_END_ARGS void *buf" 30955 30956 30957else 30958 echo "$as_me: failed program was:" >&5 30959sed 's/^/| /' conftest.$ac_ext >&5 30960 30961 30962NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) return (x)" 30963NGR_R_END_RETURN="#define NGR_R_END_RETURN int" 30964NGR_R_END_ARGS="#define NGR_R_END_ARGS NGR_R_ARGS" 30965 30966 30967fi 30968 30969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30970 30971fi 30972 30973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30974 30975else 30976 NGR_R_END_RESULT="#define NGR_R_END_RESULT(x) /*empty*/" 30977NGR_R_END_RETURN="#define NGR_R_END_RETURN void" 30978NGR_R_END_ARGS="#undef NGR_R_END_ARGS /*empty*/" 30979cat >>confdefs.h <<\_ACEOF 30980#define NEED_ENDNETGRENT_R 1 30981_ACEOF 30982 30983 30984fi 30985 30986 30987 30988 30989 30990{ echo "$as_me:$LINENO: checking for setnetgrent_r" >&5 30991echo $ECHO_N "checking for setnetgrent_r... $ECHO_C" >&6; } 30992if test "${ac_cv_func_setnetgrent_r+set}" = set; then 30993 echo $ECHO_N "(cached) $ECHO_C" >&6 30994else 30995 cat >conftest.$ac_ext <<_ACEOF 30996/* confdefs.h. */ 30997_ACEOF 30998cat confdefs.h >>conftest.$ac_ext 30999cat >>conftest.$ac_ext <<_ACEOF 31000/* end confdefs.h. */ 31001/* Define setnetgrent_r to an innocuous variant, in case <limits.h> declares setnetgrent_r. 31002 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31003#define setnetgrent_r innocuous_setnetgrent_r 31004 31005/* System header to define __stub macros and hopefully few prototypes, 31006 which can conflict with char setnetgrent_r (); below. 31007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31008 <limits.h> exists even on freestanding compilers. */ 31009 31010#ifdef __STDC__ 31011# include <limits.h> 31012#else 31013# include <assert.h> 31014#endif 31015 31016#undef setnetgrent_r 31017 31018/* Override any GCC internal prototype to avoid an error. 31019 Use char because int might match the return type of a GCC 31020 builtin and then its argument prototype would still apply. */ 31021#ifdef __cplusplus 31022extern "C" 31023#endif 31024char setnetgrent_r (); 31025/* The GNU C library defines this for functions which it implements 31026 to always fail with ENOSYS. Some functions are actually named 31027 something starting with __ and the normal name is an alias. */ 31028#if defined __stub_setnetgrent_r || defined __stub___setnetgrent_r 31029choke me 31030#endif 31031 31032int 31033main () 31034{ 31035return setnetgrent_r (); 31036 ; 31037 return 0; 31038} 31039_ACEOF 31040rm -f conftest.$ac_objext conftest$ac_exeext 31041if { (ac_try="$ac_link" 31042case "(($ac_try" in 31043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31044 *) ac_try_echo=$ac_try;; 31045esac 31046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31047 (eval "$ac_link") 2>conftest.er1 31048 ac_status=$? 31049 grep -v '^ *+' conftest.er1 >conftest.err 31050 rm -f conftest.er1 31051 cat conftest.err >&5 31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31053 (exit $ac_status); } && { 31054 test -z "$ac_c_werror_flag" || 31055 test ! -s conftest.err 31056 } && test -s conftest$ac_exeext && 31057 $as_test_x conftest$ac_exeext; then 31058 ac_cv_func_setnetgrent_r=yes 31059else 31060 echo "$as_me: failed program was:" >&5 31061sed 's/^/| /' conftest.$ac_ext >&5 31062 31063 ac_cv_func_setnetgrent_r=no 31064fi 31065 31066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31067 conftest$ac_exeext conftest.$ac_ext 31068fi 31069{ echo "$as_me:$LINENO: result: $ac_cv_func_setnetgrent_r" >&5 31070echo "${ECHO_T}$ac_cv_func_setnetgrent_r" >&6; } 31071if test $ac_cv_func_setnetgrent_r = yes; then 31072 31073case "$host" in 31074*bsdi*) 31075 # 31076 # No prototype 31077 # 31078 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/" 31079 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31080 NGR_R_SET_ARGS="#define NGR_R_SET_ARGS NGR_R_ARGS" 31081 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31082 ;; 31083*hpux*) 31084 # 31085 # No prototype 31086 # 31087 NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31088 NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31089 NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS /* empty */" 31090 NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31091 ;; 31092*) 31093cat >conftest.$ac_ext <<_ACEOF 31094/* confdefs.h. */ 31095_ACEOF 31096cat confdefs.h >>conftest.$ac_ext 31097cat >>conftest.$ac_ext <<_ACEOF 31098/* end confdefs.h. */ 31099 31100#undef __USE_MISC 31101#define __USE_MISC 31102#undef _REEENTRANT 31103#define _REEENTRANT 31104#include <netdb.h> 31105#include <unistd.h> 31106void setnetgrent_r(void **ptr); 31107 31108 31109int 31110main () 31111{ 31112return (0); 31113 31114 ; 31115 return 0; 31116} 31117_ACEOF 31118rm -f conftest.$ac_objext 31119if { (ac_try="$ac_compile" 31120case "(($ac_try" in 31121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31122 *) ac_try_echo=$ac_try;; 31123esac 31124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31125 (eval "$ac_compile") 2>conftest.er1 31126 ac_status=$? 31127 grep -v '^ *+' conftest.er1 >conftest.err 31128 rm -f conftest.er1 31129 cat conftest.err >&5 31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31131 (exit $ac_status); } && { 31132 test -z "$ac_c_werror_flag" || 31133 test ! -s conftest.err 31134 } && test -s conftest.$ac_objext; then 31135 31136NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /* empty */" 31137NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31138NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf" 31139NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31140 31141 31142else 31143 echo "$as_me: failed program was:" >&5 31144sed 's/^/| /' conftest.$ac_ext >&5 31145 31146 cat >conftest.$ac_ext <<_ACEOF 31147/* confdefs.h. */ 31148_ACEOF 31149cat confdefs.h >>conftest.$ac_ext 31150cat >>conftest.$ac_ext <<_ACEOF 31151/* end confdefs.h. */ 31152 31153#undef __USE_MISC 31154#define __USE_MISC 31155#undef _REEENTRANT 31156#define _REEENTRANT 31157#include <netdb.h> 31158#include <unistd.h> 31159extern int setnetgrent_r(char *, void **); 31160 31161 31162int 31163main () 31164{ 31165return (0); 31166 31167 ; 31168 return 0; 31169} 31170_ACEOF 31171rm -f conftest.$ac_objext 31172if { (ac_try="$ac_compile" 31173case "(($ac_try" in 31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31175 *) ac_try_echo=$ac_try;; 31176esac 31177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31178 (eval "$ac_compile") 2>conftest.er1 31179 ac_status=$? 31180 grep -v '^ *+' conftest.er1 >conftest.err 31181 rm -f conftest.er1 31182 cat conftest.err >&5 31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31184 (exit $ac_status); } && { 31185 test -z "$ac_c_werror_flag" || 31186 test ! -s conftest.err 31187 } && test -s conftest.$ac_objext; then 31188 31189NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31190NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31191NGR_R_SET_ARGS="#define NGR_R_SET_ARGS void **buf" 31192NGR_R_SET_CONST="#define NGR_R_SET_CONST" 31193 31194 31195else 31196 echo "$as_me: failed program was:" >&5 31197sed 's/^/| /' conftest.$ac_ext >&5 31198 31199 31200NGR_R_SET_RESULT="#define NGR_R_SET_RESULT NGR_R_OK" 31201NGR_R_SET_RETURN="#define NGR_R_SET_RETURN int" 31202NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS" 31203NGR_R_SET_CONST="#define NGR_R_SET_CONST const" 31204 31205 31206fi 31207 31208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31209fi 31210 31211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31212;; 31213esac 31214 31215 31216else 31217 NGR_R_SET_RESULT="#undef NGR_R_SET_RESULT /*empty*/" 31218NGR_R_SET_RETURN="#define NGR_R_SET_RETURN void" 31219NGR_R_SET_ARGS="#undef NGR_R_SET_ARGS" 31220NGR_R_SET_CONST="#define NGR_R_SET_CONST const" 31221 31222fi 31223 31224 31225 31226 31227 31228 31229 31230{ echo "$as_me:$LINENO: checking for innetgr_r" >&5 31231echo $ECHO_N "checking for innetgr_r... $ECHO_C" >&6; } 31232if test "${ac_cv_func_innetgr_r+set}" = set; then 31233 echo $ECHO_N "(cached) $ECHO_C" >&6 31234else 31235 cat >conftest.$ac_ext <<_ACEOF 31236/* confdefs.h. */ 31237_ACEOF 31238cat confdefs.h >>conftest.$ac_ext 31239cat >>conftest.$ac_ext <<_ACEOF 31240/* end confdefs.h. */ 31241/* Define innetgr_r to an innocuous variant, in case <limits.h> declares innetgr_r. 31242 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31243#define innetgr_r innocuous_innetgr_r 31244 31245/* System header to define __stub macros and hopefully few prototypes, 31246 which can conflict with char innetgr_r (); below. 31247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31248 <limits.h> exists even on freestanding compilers. */ 31249 31250#ifdef __STDC__ 31251# include <limits.h> 31252#else 31253# include <assert.h> 31254#endif 31255 31256#undef innetgr_r 31257 31258/* Override any GCC internal prototype to avoid an error. 31259 Use char because int might match the return type of a GCC 31260 builtin and then its argument prototype would still apply. */ 31261#ifdef __cplusplus 31262extern "C" 31263#endif 31264char innetgr_r (); 31265/* The GNU C library defines this for functions which it implements 31266 to always fail with ENOSYS. Some functions are actually named 31267 something starting with __ and the normal name is an alias. */ 31268#if defined __stub_innetgr_r || defined __stub___innetgr_r 31269choke me 31270#endif 31271 31272int 31273main () 31274{ 31275return innetgr_r (); 31276 ; 31277 return 0; 31278} 31279_ACEOF 31280rm -f conftest.$ac_objext conftest$ac_exeext 31281if { (ac_try="$ac_link" 31282case "(($ac_try" in 31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31284 *) ac_try_echo=$ac_try;; 31285esac 31286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31287 (eval "$ac_link") 2>conftest.er1 31288 ac_status=$? 31289 grep -v '^ *+' conftest.er1 >conftest.err 31290 rm -f conftest.er1 31291 cat conftest.err >&5 31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31293 (exit $ac_status); } && { 31294 test -z "$ac_c_werror_flag" || 31295 test ! -s conftest.err 31296 } && test -s conftest$ac_exeext && 31297 $as_test_x conftest$ac_exeext; then 31298 ac_cv_func_innetgr_r=yes 31299else 31300 echo "$as_me: failed program was:" >&5 31301sed 's/^/| /' conftest.$ac_ext >&5 31302 31303 ac_cv_func_innetgr_r=no 31304fi 31305 31306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31307 conftest$ac_exeext conftest.$ac_ext 31308fi 31309{ echo "$as_me:$LINENO: result: $ac_cv_func_innetgr_r" >&5 31310echo "${ECHO_T}$ac_cv_func_innetgr_r" >&6; } 31311if test $ac_cv_func_innetgr_r = yes; then 31312 : 31313else 31314 cat >>confdefs.h <<\_ACEOF 31315#define NEED_INNETGR_R 1 31316_ACEOF 31317 31318fi 31319 31320 31321case $host in 31322ia64-hp-hpux11.*) 31323;; 31324*) 31325{ echo "$as_me:$LINENO: checking for getprotoent_r" >&5 31326echo $ECHO_N "checking for getprotoent_r... $ECHO_C" >&6; } 31327if test "${ac_cv_func_getprotoent_r+set}" = set; then 31328 echo $ECHO_N "(cached) $ECHO_C" >&6 31329else 31330 cat >conftest.$ac_ext <<_ACEOF 31331/* confdefs.h. */ 31332_ACEOF 31333cat confdefs.h >>conftest.$ac_ext 31334cat >>conftest.$ac_ext <<_ACEOF 31335/* end confdefs.h. */ 31336/* Define getprotoent_r to an innocuous variant, in case <limits.h> declares getprotoent_r. 31337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31338#define getprotoent_r innocuous_getprotoent_r 31339 31340/* System header to define __stub macros and hopefully few prototypes, 31341 which can conflict with char getprotoent_r (); below. 31342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31343 <limits.h> exists even on freestanding compilers. */ 31344 31345#ifdef __STDC__ 31346# include <limits.h> 31347#else 31348# include <assert.h> 31349#endif 31350 31351#undef getprotoent_r 31352 31353/* Override any GCC internal prototype to avoid an error. 31354 Use char because int might match the return type of a GCC 31355 builtin and then its argument prototype would still apply. */ 31356#ifdef __cplusplus 31357extern "C" 31358#endif 31359char getprotoent_r (); 31360/* The GNU C library defines this for functions which it implements 31361 to always fail with ENOSYS. Some functions are actually named 31362 something starting with __ and the normal name is an alias. */ 31363#if defined __stub_getprotoent_r || defined __stub___getprotoent_r 31364choke me 31365#endif 31366 31367int 31368main () 31369{ 31370return getprotoent_r (); 31371 ; 31372 return 0; 31373} 31374_ACEOF 31375rm -f conftest.$ac_objext conftest$ac_exeext 31376if { (ac_try="$ac_link" 31377case "(($ac_try" in 31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31379 *) ac_try_echo=$ac_try;; 31380esac 31381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31382 (eval "$ac_link") 2>conftest.er1 31383 ac_status=$? 31384 grep -v '^ *+' conftest.er1 >conftest.err 31385 rm -f conftest.er1 31386 cat conftest.err >&5 31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31388 (exit $ac_status); } && { 31389 test -z "$ac_c_werror_flag" || 31390 test ! -s conftest.err 31391 } && test -s conftest$ac_exeext && 31392 $as_test_x conftest$ac_exeext; then 31393 ac_cv_func_getprotoent_r=yes 31394else 31395 echo "$as_me: failed program was:" >&5 31396sed 's/^/| /' conftest.$ac_ext >&5 31397 31398 ac_cv_func_getprotoent_r=no 31399fi 31400 31401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31402 conftest$ac_exeext conftest.$ac_ext 31403fi 31404{ echo "$as_me:$LINENO: result: $ac_cv_func_getprotoent_r" >&5 31405echo "${ECHO_T}$ac_cv_func_getprotoent_r" >&6; } 31406if test $ac_cv_func_getprotoent_r = yes; then 31407 cat >conftest.$ac_ext <<_ACEOF 31408/* confdefs.h. */ 31409_ACEOF 31410cat confdefs.h >>conftest.$ac_ext 31411cat >>conftest.$ac_ext <<_ACEOF 31412/* end confdefs.h. */ 31413 31414#undef __USE_MISC 31415#define __USE_MISC 31416#include <netdb.h> 31417struct protoent *getprotoent_r(struct protoent *result, 31418 char *buffer, int buflen) {} 31419 31420 31421int 31422main () 31423{ 31424return (0); 31425 31426 ; 31427 return 0; 31428} 31429_ACEOF 31430rm -f conftest.$ac_objext 31431if { (ac_try="$ac_compile" 31432case "(($ac_try" in 31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31434 *) ac_try_echo=$ac_try;; 31435esac 31436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31437 (eval "$ac_compile") 2>conftest.er1 31438 ac_status=$? 31439 grep -v '^ *+' conftest.er1 >conftest.err 31440 rm -f conftest.er1 31441 cat conftest.err >&5 31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31443 (exit $ac_status); } && { 31444 test -z "$ac_c_werror_flag" || 31445 test ! -s conftest.err 31446 } && test -s conftest.$ac_objext; then 31447 31448PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen" 31449PROTO_R_BAD="#define PROTO_R_BAD NULL" 31450PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31451PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS" 31452PROTO_R_OK="#define PROTO_R_OK pptr" 31453PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31454PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *" 31455PROTOENT_DATA="#undef PROTOENT_DATA" 31456 31457 31458else 31459 echo "$as_me: failed program was:" >&5 31460sed 's/^/| /' conftest.$ac_ext >&5 31461 31462 cat >conftest.$ac_ext <<_ACEOF 31463/* confdefs.h. */ 31464_ACEOF 31465cat confdefs.h >>conftest.$ac_ext 31466cat >>conftest.$ac_ext <<_ACEOF 31467/* end confdefs.h. */ 31468 31469#undef __USE_MISC 31470#define __USE_MISC 31471#include <netdb.h> 31472int getprotoent_r (struct protoent *, char *, size_t, struct protoent **); 31473 31474 31475 31476int 31477main () 31478{ 31479return (0); 31480 31481 ; 31482 return 0; 31483} 31484_ACEOF 31485rm -f conftest.$ac_objext 31486if { (ac_try="$ac_compile" 31487case "(($ac_try" in 31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31489 *) ac_try_echo=$ac_try;; 31490esac 31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31492 (eval "$ac_compile") 2>conftest.er1 31493 ac_status=$? 31494 grep -v '^ *+' conftest.er1 >conftest.err 31495 rm -f conftest.er1 31496 cat conftest.err >&5 31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31498 (exit $ac_status); } && { 31499 test -z "$ac_c_werror_flag" || 31500 test ! -s conftest.err 31501 } && test -s conftest.$ac_objext; then 31502 31503PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp" 31504PROTO_R_BAD="#define PROTO_R_BAD ERANGE" 31505PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31506PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS char *buf, size_t buflen" 31507PROTO_R_OK="#define PROTO_R_OK 0" 31508PROTO_R_SETANSWER="#define PROTO_R_SETANSWER 1" 31509PROTO_R_RETURN="#define PROTO_R_RETURN int" 31510PROTOENT_DATA="#undef PROTOENT_DATA" 31511 31512 31513else 31514 echo "$as_me: failed program was:" >&5 31515sed 's/^/| /' conftest.$ac_ext >&5 31516 31517 cat >conftest.$ac_ext <<_ACEOF 31518/* confdefs.h. */ 31519_ACEOF 31520cat confdefs.h >>conftest.$ac_ext 31521cat >>conftest.$ac_ext <<_ACEOF 31522/* end confdefs.h. */ 31523 31524#undef __USE_MISC 31525#define __USE_MISC 31526#include <netdb.h> 31527int getprotoent_r (struct protoent *, struct protoent_data *prot_data); 31528 31529 31530 31531int 31532main () 31533{ 31534return (0); 31535 31536 ; 31537 return 0; 31538} 31539_ACEOF 31540rm -f conftest.$ac_objext 31541if { (ac_try="$ac_compile" 31542case "(($ac_try" in 31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31544 *) ac_try_echo=$ac_try;; 31545esac 31546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31547 (eval "$ac_compile") 2>conftest.er1 31548 ac_status=$? 31549 grep -v '^ *+' conftest.er1 >conftest.err 31550 rm -f conftest.er1 31551 cat conftest.err >&5 31552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31553 (exit $ac_status); } && { 31554 test -z "$ac_c_werror_flag" || 31555 test ! -s conftest.err 31556 } && test -s conftest.$ac_objext; then 31557 31558PROTO_R_ARGS="#define PROTO_R_ARGS struct protoent_data *prot_data" 31559PROTO_R_BAD="#define PROTO_R_BAD (-1)" 31560PROTO_R_COPY="#define PROTO_R_COPY prot_data" 31561PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS struct protoent_data *pdptr" 31562PROTO_R_OK="#define PROTO_R_OK 0" 31563PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31564PROTO_R_RETURN="#define PROTO_R_RETURN int" 31565PROTOENT_DATA="#define PROTOENT_DATA 1" 31566 31567 31568else 31569 echo "$as_me: failed program was:" >&5 31570sed 's/^/| /' conftest.$ac_ext >&5 31571 31572 31573fi 31574 31575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31576 31577fi 31578 31579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31580 31581fi 31582 31583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31584 31585else 31586 PROTO_R_ARGS="#define PROTO_R_ARGS char *buf, int buflen" 31587PROTO_R_BAD="#define PROTO_R_BAD NULL" 31588PROTO_R_COPY="#define PROTO_R_COPY buf, buflen" 31589PROTO_R_COPY_ARGS="#define PROTO_R_COPY_ARGS PROTO_R_ARGS" 31590PROTO_R_OK="#define PROTO_R_OK pptr" 31591PROTO_R_SETANSWER="#undef PROTO_R_SETANSWER" 31592PROTO_R_RETURN="#define PROTO_R_RETURN struct protoent *" 31593PROTOENT_DATA="#undef PROTOENT_DATA" 31594 31595fi 31596 31597;; 31598esac 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608case $host in 31609ia64-hp-hpux11.*) 31610;; 31611*) 31612{ echo "$as_me:$LINENO: checking for endprotoent_r" >&5 31613echo $ECHO_N "checking for endprotoent_r... $ECHO_C" >&6; } 31614if test "${ac_cv_func_endprotoent_r+set}" = set; then 31615 echo $ECHO_N "(cached) $ECHO_C" >&6 31616else 31617 cat >conftest.$ac_ext <<_ACEOF 31618/* confdefs.h. */ 31619_ACEOF 31620cat confdefs.h >>conftest.$ac_ext 31621cat >>conftest.$ac_ext <<_ACEOF 31622/* end confdefs.h. */ 31623/* Define endprotoent_r to an innocuous variant, in case <limits.h> declares endprotoent_r. 31624 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31625#define endprotoent_r innocuous_endprotoent_r 31626 31627/* System header to define __stub macros and hopefully few prototypes, 31628 which can conflict with char endprotoent_r (); below. 31629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31630 <limits.h> exists even on freestanding compilers. */ 31631 31632#ifdef __STDC__ 31633# include <limits.h> 31634#else 31635# include <assert.h> 31636#endif 31637 31638#undef endprotoent_r 31639 31640/* Override any GCC internal prototype to avoid an error. 31641 Use char because int might match the return type of a GCC 31642 builtin and then its argument prototype would still apply. */ 31643#ifdef __cplusplus 31644extern "C" 31645#endif 31646char endprotoent_r (); 31647/* The GNU C library defines this for functions which it implements 31648 to always fail with ENOSYS. Some functions are actually named 31649 something starting with __ and the normal name is an alias. */ 31650#if defined __stub_endprotoent_r || defined __stub___endprotoent_r 31651choke me 31652#endif 31653 31654int 31655main () 31656{ 31657return endprotoent_r (); 31658 ; 31659 return 0; 31660} 31661_ACEOF 31662rm -f conftest.$ac_objext conftest$ac_exeext 31663if { (ac_try="$ac_link" 31664case "(($ac_try" in 31665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31666 *) ac_try_echo=$ac_try;; 31667esac 31668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31669 (eval "$ac_link") 2>conftest.er1 31670 ac_status=$? 31671 grep -v '^ *+' conftest.er1 >conftest.err 31672 rm -f conftest.er1 31673 cat conftest.err >&5 31674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31675 (exit $ac_status); } && { 31676 test -z "$ac_c_werror_flag" || 31677 test ! -s conftest.err 31678 } && test -s conftest$ac_exeext && 31679 $as_test_x conftest$ac_exeext; then 31680 ac_cv_func_endprotoent_r=yes 31681else 31682 echo "$as_me: failed program was:" >&5 31683sed 's/^/| /' conftest.$ac_ext >&5 31684 31685 ac_cv_func_endprotoent_r=no 31686fi 31687 31688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31689 conftest$ac_exeext conftest.$ac_ext 31690fi 31691{ echo "$as_me:$LINENO: result: $ac_cv_func_endprotoent_r" >&5 31692echo "${ECHO_T}$ac_cv_func_endprotoent_r" >&6; } 31693if test $ac_cv_func_endprotoent_r = yes; then 31694 cat >conftest.$ac_ext <<_ACEOF 31695/* confdefs.h. */ 31696_ACEOF 31697cat confdefs.h >>conftest.$ac_ext 31698cat >>conftest.$ac_ext <<_ACEOF 31699/* end confdefs.h. */ 31700 31701#undef _REENTRANT 31702#define _REENTRANT 31703#undef __USE_MISC 31704#define __USE_MISC 31705#include <netdb.h> 31706void endprotoent_r(void); 31707 31708 31709int 31710main () 31711{ 31712 31713 ; 31714 return 0; 31715} 31716_ACEOF 31717rm -f conftest.$ac_objext 31718if { (ac_try="$ac_compile" 31719case "(($ac_try" in 31720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31721 *) ac_try_echo=$ac_try;; 31722esac 31723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31724 (eval "$ac_compile") 2>conftest.er1 31725 ac_status=$? 31726 grep -v '^ *+' conftest.er1 >conftest.err 31727 rm -f conftest.er1 31728 cat conftest.err >&5 31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31730 (exit $ac_status); } && { 31731 test -z "$ac_c_werror_flag" || 31732 test ! -s conftest.err 31733 } && test -s conftest.$ac_objext; then 31734 31735PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31736PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31737PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS" 31738PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED" 31739 31740 31741else 31742 echo "$as_me: failed program was:" >&5 31743sed 's/^/| /' conftest.$ac_ext >&5 31744 31745 cat >conftest.$ac_ext <<_ACEOF 31746/* confdefs.h. */ 31747_ACEOF 31748cat confdefs.h >>conftest.$ac_ext 31749cat >>conftest.$ac_ext <<_ACEOF 31750/* end confdefs.h. */ 31751 31752#undef _REENTRANT 31753#define _REENTRANT 31754#undef __USE_MISC 31755#define __USE_MISC 31756#include <netdb.h> 31757void endprotoent_r(struct protoent_data *); 31758 31759 31760int 31761main () 31762{ 31763 31764 ; 31765 return 0; 31766} 31767_ACEOF 31768rm -f conftest.$ac_objext 31769if { (ac_try="$ac_compile" 31770case "(($ac_try" in 31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31772 *) ac_try_echo=$ac_try;; 31773esac 31774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31775 (eval "$ac_compile") 2>conftest.er1 31776 ac_status=$? 31777 grep -v '^ *+' conftest.er1 >conftest.err 31778 rm -f conftest.er1 31779 cat conftest.err >&5 31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31781 (exit $ac_status); } && { 31782 test -z "$ac_c_werror_flag" || 31783 test ! -s conftest.err 31784 } && test -s conftest.$ac_objext; then 31785 31786PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31787PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31788PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data" 31789PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)" 31790 31791 31792else 31793 echo "$as_me: failed program was:" >&5 31794sed 's/^/| /' conftest.$ac_ext >&5 31795 31796 cat >conftest.$ac_ext <<_ACEOF 31797/* confdefs.h. */ 31798_ACEOF 31799cat confdefs.h >>conftest.$ac_ext 31800cat >>conftest.$ac_ext <<_ACEOF 31801/* end confdefs.h. */ 31802 31803#undef _REENTRANT 31804#define _REENTRANT 31805#undef __USE_MISC 31806#define __USE_MISC 31807#include <netdb.h> 31808int endprotoent_r(struct protoent_data *); 31809 31810 31811int 31812main () 31813{ 31814 31815 ; 31816 return 0; 31817} 31818_ACEOF 31819rm -f conftest.$ac_objext 31820if { (ac_try="$ac_compile" 31821case "(($ac_try" in 31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31823 *) ac_try_echo=$ac_try;; 31824esac 31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31826 (eval "$ac_compile") 2>conftest.er1 31827 ac_status=$? 31828 grep -v '^ *+' conftest.er1 >conftest.err 31829 rm -f conftest.er1 31830 cat conftest.err >&5 31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31832 (exit $ac_status); } && { 31833 test -z "$ac_c_werror_flag" || 31834 test ! -s conftest.err 31835 } && test -s conftest.$ac_objext; then 31836 31837PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) return(0)" 31838PROTO_R_END_RETURN="#define PROTO_R_END_RETURN int" 31839PROTO_R_ENT_ARGS="#define PROTO_R_ENT_ARGS struct protoent_data *proto_data" 31840PROTO_R_ENT_UNUSED="#define PROTO_R_ENT_UNUSED UNUSED(proto_data)" 31841 31842 31843else 31844 echo "$as_me: failed program was:" >&5 31845sed 's/^/| /' conftest.$ac_ext >&5 31846 31847 31848fi 31849 31850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31851 31852fi 31853 31854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31855 31856fi 31857 31858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31859 31860else 31861 PROTO_R_END_RESULT="#define PROTO_R_END_RESULT(x) /*empty*/" 31862PROTO_R_END_RETURN="#define PROTO_R_END_RETURN void" 31863PROTO_R_ENT_ARGS="#undef PROTO_R_ENT_ARGS /*empty*/" 31864PROTO_R_ENT_UNUSED="#undef PROTO_R_ENT_UNUSED" 31865 31866fi 31867 31868esac 31869 31870 31871 31872 31873 31874case $host in 31875ia64-hp-hpux11.*) 31876;; 31877*) 31878{ echo "$as_me:$LINENO: checking for setprotoent_r" >&5 31879echo $ECHO_N "checking for setprotoent_r... $ECHO_C" >&6; } 31880if test "${ac_cv_func_setprotoent_r+set}" = set; then 31881 echo $ECHO_N "(cached) $ECHO_C" >&6 31882else 31883 cat >conftest.$ac_ext <<_ACEOF 31884/* confdefs.h. */ 31885_ACEOF 31886cat confdefs.h >>conftest.$ac_ext 31887cat >>conftest.$ac_ext <<_ACEOF 31888/* end confdefs.h. */ 31889/* Define setprotoent_r to an innocuous variant, in case <limits.h> declares setprotoent_r. 31890 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31891#define setprotoent_r innocuous_setprotoent_r 31892 31893/* System header to define __stub macros and hopefully few prototypes, 31894 which can conflict with char setprotoent_r (); below. 31895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31896 <limits.h> exists even on freestanding compilers. */ 31897 31898#ifdef __STDC__ 31899# include <limits.h> 31900#else 31901# include <assert.h> 31902#endif 31903 31904#undef setprotoent_r 31905 31906/* Override any GCC internal prototype to avoid an error. 31907 Use char because int might match the return type of a GCC 31908 builtin and then its argument prototype would still apply. */ 31909#ifdef __cplusplus 31910extern "C" 31911#endif 31912char setprotoent_r (); 31913/* The GNU C library defines this for functions which it implements 31914 to always fail with ENOSYS. Some functions are actually named 31915 something starting with __ and the normal name is an alias. */ 31916#if defined __stub_setprotoent_r || defined __stub___setprotoent_r 31917choke me 31918#endif 31919 31920int 31921main () 31922{ 31923return setprotoent_r (); 31924 ; 31925 return 0; 31926} 31927_ACEOF 31928rm -f conftest.$ac_objext conftest$ac_exeext 31929if { (ac_try="$ac_link" 31930case "(($ac_try" in 31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31932 *) ac_try_echo=$ac_try;; 31933esac 31934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31935 (eval "$ac_link") 2>conftest.er1 31936 ac_status=$? 31937 grep -v '^ *+' conftest.er1 >conftest.err 31938 rm -f conftest.er1 31939 cat conftest.err >&5 31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31941 (exit $ac_status); } && { 31942 test -z "$ac_c_werror_flag" || 31943 test ! -s conftest.err 31944 } && test -s conftest$ac_exeext && 31945 $as_test_x conftest$ac_exeext; then 31946 ac_cv_func_setprotoent_r=yes 31947else 31948 echo "$as_me: failed program was:" >&5 31949sed 's/^/| /' conftest.$ac_ext >&5 31950 31951 ac_cv_func_setprotoent_r=no 31952fi 31953 31954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 31955 conftest$ac_exeext conftest.$ac_ext 31956fi 31957{ echo "$as_me:$LINENO: result: $ac_cv_func_setprotoent_r" >&5 31958echo "${ECHO_T}$ac_cv_func_setprotoent_r" >&6; } 31959if test $ac_cv_func_setprotoent_r = yes; then 31960 cat >conftest.$ac_ext <<_ACEOF 31961/* confdefs.h. */ 31962_ACEOF 31963cat confdefs.h >>conftest.$ac_ext 31964cat >>conftest.$ac_ext <<_ACEOF 31965/* end confdefs.h. */ 31966 31967#undef _REENTRANT 31968#define _REENTRANT 31969#undef __USE_MISC 31970#define __USE_MISC 31971#include <netdb.h> 31972void setprotoent_r __P((int)); 31973 31974int 31975main () 31976{ 31977 31978 ; 31979 return 0; 31980} 31981_ACEOF 31982rm -f conftest.$ac_objext 31983if { (ac_try="$ac_compile" 31984case "(($ac_try" in 31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31986 *) ac_try_echo=$ac_try;; 31987esac 31988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 31989 (eval "$ac_compile") 2>conftest.er1 31990 ac_status=$? 31991 grep -v '^ *+' conftest.er1 >conftest.err 31992 rm -f conftest.er1 31993 cat conftest.err >&5 31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31995 (exit $ac_status); } && { 31996 test -z "$ac_c_werror_flag" || 31997 test ! -s conftest.err 31998 } && test -s conftest.$ac_objext; then 31999 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT" 32000PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void" 32001 32002else 32003 echo "$as_me: failed program was:" >&5 32004sed 's/^/| /' conftest.$ac_ext >&5 32005 32006 cat >conftest.$ac_ext <<_ACEOF 32007/* confdefs.h. */ 32008_ACEOF 32009cat confdefs.h >>conftest.$ac_ext 32010cat >>conftest.$ac_ext <<_ACEOF 32011/* end confdefs.h. */ 32012 32013#undef _REENTRANT 32014#define _REENTRANT 32015#undef __USE_MISC 32016#define __USE_MISC 32017#include <netdb.h> 32018int setprotoent_r (int, struct protoent_data *); 32019 32020int 32021main () 32022{ 32023 32024 ; 32025 return 0; 32026} 32027_ACEOF 32028rm -f conftest.$ac_objext 32029if { (ac_try="$ac_compile" 32030case "(($ac_try" in 32031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32032 *) ac_try_echo=$ac_try;; 32033esac 32034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32035 (eval "$ac_compile") 2>conftest.er1 32036 ac_status=$? 32037 grep -v '^ *+' conftest.er1 >conftest.err 32038 rm -f conftest.er1 32039 cat conftest.err >&5 32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32041 (exit $ac_status); } && { 32042 test -z "$ac_c_werror_flag" || 32043 test ! -s conftest.err 32044 } && test -s conftest.$ac_objext; then 32045 PROTO_R_SET_RESULT="#define PROTO_R_SET_RESULT (0)" 32046PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN int" 32047 32048else 32049 echo "$as_me: failed program was:" >&5 32050sed 's/^/| /' conftest.$ac_ext >&5 32051 32052 32053fi 32054 32055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32056 32057fi 32058 32059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32060 32061else 32062 PROTO_R_SET_RESULT="#undef PROTO_R_SET_RESULT" 32063PROTO_R_SET_RETURN="#define PROTO_R_SET_RETURN void" 32064 32065fi 32066 32067esac 32068 32069 32070 32071{ echo "$as_me:$LINENO: checking for getpwent_r" >&5 32072echo $ECHO_N "checking for getpwent_r... $ECHO_C" >&6; } 32073if test "${ac_cv_func_getpwent_r+set}" = set; then 32074 echo $ECHO_N "(cached) $ECHO_C" >&6 32075else 32076 cat >conftest.$ac_ext <<_ACEOF 32077/* confdefs.h. */ 32078_ACEOF 32079cat confdefs.h >>conftest.$ac_ext 32080cat >>conftest.$ac_ext <<_ACEOF 32081/* end confdefs.h. */ 32082/* Define getpwent_r to an innocuous variant, in case <limits.h> declares getpwent_r. 32083 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32084#define getpwent_r innocuous_getpwent_r 32085 32086/* System header to define __stub macros and hopefully few prototypes, 32087 which can conflict with char getpwent_r (); below. 32088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32089 <limits.h> exists even on freestanding compilers. */ 32090 32091#ifdef __STDC__ 32092# include <limits.h> 32093#else 32094# include <assert.h> 32095#endif 32096 32097#undef getpwent_r 32098 32099/* Override any GCC internal prototype to avoid an error. 32100 Use char because int might match the return type of a GCC 32101 builtin and then its argument prototype would still apply. */ 32102#ifdef __cplusplus 32103extern "C" 32104#endif 32105char getpwent_r (); 32106/* The GNU C library defines this for functions which it implements 32107 to always fail with ENOSYS. Some functions are actually named 32108 something starting with __ and the normal name is an alias. */ 32109#if defined __stub_getpwent_r || defined __stub___getpwent_r 32110choke me 32111#endif 32112 32113int 32114main () 32115{ 32116return getpwent_r (); 32117 ; 32118 return 0; 32119} 32120_ACEOF 32121rm -f conftest.$ac_objext conftest$ac_exeext 32122if { (ac_try="$ac_link" 32123case "(($ac_try" in 32124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32125 *) ac_try_echo=$ac_try;; 32126esac 32127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32128 (eval "$ac_link") 2>conftest.er1 32129 ac_status=$? 32130 grep -v '^ *+' conftest.er1 >conftest.err 32131 rm -f conftest.er1 32132 cat conftest.err >&5 32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32134 (exit $ac_status); } && { 32135 test -z "$ac_c_werror_flag" || 32136 test ! -s conftest.err 32137 } && test -s conftest$ac_exeext && 32138 $as_test_x conftest$ac_exeext; then 32139 ac_cv_func_getpwent_r=yes 32140else 32141 echo "$as_me: failed program was:" >&5 32142sed 's/^/| /' conftest.$ac_ext >&5 32143 32144 ac_cv_func_getpwent_r=no 32145fi 32146 32147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32148 conftest$ac_exeext conftest.$ac_ext 32149fi 32150{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwent_r" >&5 32151echo "${ECHO_T}$ac_cv_func_getpwent_r" >&6; } 32152if test $ac_cv_func_getpwent_r = yes; then 32153 cat >conftest.$ac_ext <<_ACEOF 32154/* confdefs.h. */ 32155_ACEOF 32156cat confdefs.h >>conftest.$ac_ext 32157cat >>conftest.$ac_ext <<_ACEOF 32158/* end confdefs.h. */ 32159 32160#include <sys/types.h> 32161#include <pwd.h> 32162struct passwd * 32163getpwent_r(struct passwd *pwptr, char *buf, int buflen) {} 32164 32165 32166int 32167main () 32168{ 32169 32170 32171 ; 32172 return 0; 32173} 32174_ACEOF 32175rm -f conftest.$ac_objext 32176if { (ac_try="$ac_compile" 32177case "(($ac_try" in 32178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32179 *) ac_try_echo=$ac_try;; 32180esac 32181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32182 (eval "$ac_compile") 2>conftest.er1 32183 ac_status=$? 32184 grep -v '^ *+' conftest.er1 >conftest.err 32185 rm -f conftest.er1 32186 cat conftest.err >&5 32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32188 (exit $ac_status); } && { 32189 test -z "$ac_c_werror_flag" || 32190 test ! -s conftest.err 32191 } && test -s conftest.$ac_objext; then 32192 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen" 32193PASS_R_BAD="#define PASS_R_BAD NULL" 32194PASS_R_COPY="#define PASS_R_COPY buf, buflen" 32195PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS" 32196PASS_R_OK="#define PASS_R_OK pwptr" 32197PASS_R_RETURN="#define PASS_R_RETURN struct passwd *" 32198 32199else 32200 echo "$as_me: failed program was:" >&5 32201sed 's/^/| /' conftest.$ac_ext >&5 32202 32203 32204fi 32205 32206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32207 32208else 32209 PASS_R_ARGS="#define PASS_R_ARGS char *buf, int buflen" 32210PASS_R_BAD="#define PASS_R_BAD NULL" 32211PASS_R_COPY="#define PASS_R_COPY buf, buflen" 32212PASS_R_COPY_ARGS="#define PASS_R_COPY_ARGS PASS_R_ARGS" 32213PASS_R_OK="#define PASS_R_OK pwptr" 32214PASS_R_RETURN="#define PASS_R_RETURN struct passwd *" 32215cat >>confdefs.h <<\_ACEOF 32216#define NEED_GETPWENT_R 1 32217_ACEOF 32218 32219 32220fi 32221 32222 32223 32224 32225 32226 32227 32228 32229{ echo "$as_me:$LINENO: checking for endpwent_r" >&5 32230echo $ECHO_N "checking for endpwent_r... $ECHO_C" >&6; } 32231if test "${ac_cv_func_endpwent_r+set}" = set; then 32232 echo $ECHO_N "(cached) $ECHO_C" >&6 32233else 32234 cat >conftest.$ac_ext <<_ACEOF 32235/* confdefs.h. */ 32236_ACEOF 32237cat confdefs.h >>conftest.$ac_ext 32238cat >>conftest.$ac_ext <<_ACEOF 32239/* end confdefs.h. */ 32240/* Define endpwent_r to an innocuous variant, in case <limits.h> declares endpwent_r. 32241 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32242#define endpwent_r innocuous_endpwent_r 32243 32244/* System header to define __stub macros and hopefully few prototypes, 32245 which can conflict with char endpwent_r (); below. 32246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32247 <limits.h> exists even on freestanding compilers. */ 32248 32249#ifdef __STDC__ 32250# include <limits.h> 32251#else 32252# include <assert.h> 32253#endif 32254 32255#undef endpwent_r 32256 32257/* Override any GCC internal prototype to avoid an error. 32258 Use char because int might match the return type of a GCC 32259 builtin and then its argument prototype would still apply. */ 32260#ifdef __cplusplus 32261extern "C" 32262#endif 32263char endpwent_r (); 32264/* The GNU C library defines this for functions which it implements 32265 to always fail with ENOSYS. Some functions are actually named 32266 something starting with __ and the normal name is an alias. */ 32267#if defined __stub_endpwent_r || defined __stub___endpwent_r 32268choke me 32269#endif 32270 32271int 32272main () 32273{ 32274return endpwent_r (); 32275 ; 32276 return 0; 32277} 32278_ACEOF 32279rm -f conftest.$ac_objext conftest$ac_exeext 32280if { (ac_try="$ac_link" 32281case "(($ac_try" in 32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32283 *) ac_try_echo=$ac_try;; 32284esac 32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32286 (eval "$ac_link") 2>conftest.er1 32287 ac_status=$? 32288 grep -v '^ *+' conftest.er1 >conftest.err 32289 rm -f conftest.er1 32290 cat conftest.err >&5 32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32292 (exit $ac_status); } && { 32293 test -z "$ac_c_werror_flag" || 32294 test ! -s conftest.err 32295 } && test -s conftest$ac_exeext && 32296 $as_test_x conftest$ac_exeext; then 32297 ac_cv_func_endpwent_r=yes 32298else 32299 echo "$as_me: failed program was:" >&5 32300sed 's/^/| /' conftest.$ac_ext >&5 32301 32302 ac_cv_func_endpwent_r=no 32303fi 32304 32305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32306 conftest$ac_exeext conftest.$ac_ext 32307fi 32308{ echo "$as_me:$LINENO: result: $ac_cv_func_endpwent_r" >&5 32309echo "${ECHO_T}$ac_cv_func_endpwent_r" >&6; } 32310if test $ac_cv_func_endpwent_r = yes; then 32311 cat >conftest.$ac_ext <<_ACEOF 32312/* confdefs.h. */ 32313_ACEOF 32314cat confdefs.h >>conftest.$ac_ext 32315cat >>conftest.$ac_ext <<_ACEOF 32316/* end confdefs.h. */ 32317 32318#include <pwd.h> 32319void endpwent_r(FILE **pwfp); 32320 32321int 32322main () 32323{ 32324 32325 ; 32326 return 0; 32327} 32328_ACEOF 32329rm -f conftest.$ac_objext 32330if { (ac_try="$ac_compile" 32331case "(($ac_try" in 32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32333 *) ac_try_echo=$ac_try;; 32334esac 32335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32336 (eval "$ac_compile") 2>conftest.er1 32337 ac_status=$? 32338 grep -v '^ *+' conftest.er1 >conftest.err 32339 rm -f conftest.er1 32340 cat conftest.err >&5 32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32342 (exit $ac_status); } && { 32343 test -z "$ac_c_werror_flag" || 32344 test ! -s conftest.err 32345 } && test -s conftest.$ac_objext; then 32346 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/" 32347PASS_R_END_RETURN="#define PASS_R_END_RETURN void" 32348PASS_R_ENT_ARGS="#define PASS_R_ENT_ARGS FILE **pwptr" 32349 32350else 32351 echo "$as_me: failed program was:" >&5 32352sed 's/^/| /' conftest.$ac_ext >&5 32353 32354 32355fi 32356 32357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32358 32359else 32360 PASS_R_END_RESULT="#define PASS_R_END_RESULT(x) /*empty*/" 32361PASS_R_END_RETURN="#define PASS_R_END_RETURN void" 32362PASS_R_ENT_ARGS="#undef PASS_R_ENT_ARGS" 32363cat >>confdefs.h <<\_ACEOF 32364#define NEED_ENDPWENT_R 1 32365_ACEOF 32366 32367 32368fi 32369 32370 32371 32372 32373{ echo "$as_me:$LINENO: checking for setpassent_r" >&5 32374echo $ECHO_N "checking for setpassent_r... $ECHO_C" >&6; } 32375if test "${ac_cv_func_setpassent_r+set}" = set; then 32376 echo $ECHO_N "(cached) $ECHO_C" >&6 32377else 32378 cat >conftest.$ac_ext <<_ACEOF 32379/* confdefs.h. */ 32380_ACEOF 32381cat confdefs.h >>conftest.$ac_ext 32382cat >>conftest.$ac_ext <<_ACEOF 32383/* end confdefs.h. */ 32384/* Define setpassent_r to an innocuous variant, in case <limits.h> declares setpassent_r. 32385 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32386#define setpassent_r innocuous_setpassent_r 32387 32388/* System header to define __stub macros and hopefully few prototypes, 32389 which can conflict with char setpassent_r (); below. 32390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32391 <limits.h> exists even on freestanding compilers. */ 32392 32393#ifdef __STDC__ 32394# include <limits.h> 32395#else 32396# include <assert.h> 32397#endif 32398 32399#undef setpassent_r 32400 32401/* Override any GCC internal prototype to avoid an error. 32402 Use char because int might match the return type of a GCC 32403 builtin and then its argument prototype would still apply. */ 32404#ifdef __cplusplus 32405extern "C" 32406#endif 32407char setpassent_r (); 32408/* The GNU C library defines this for functions which it implements 32409 to always fail with ENOSYS. Some functions are actually named 32410 something starting with __ and the normal name is an alias. */ 32411#if defined __stub_setpassent_r || defined __stub___setpassent_r 32412choke me 32413#endif 32414 32415int 32416main () 32417{ 32418return setpassent_r (); 32419 ; 32420 return 0; 32421} 32422_ACEOF 32423rm -f conftest.$ac_objext conftest$ac_exeext 32424if { (ac_try="$ac_link" 32425case "(($ac_try" in 32426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32427 *) ac_try_echo=$ac_try;; 32428esac 32429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32430 (eval "$ac_link") 2>conftest.er1 32431 ac_status=$? 32432 grep -v '^ *+' conftest.er1 >conftest.err 32433 rm -f conftest.er1 32434 cat conftest.err >&5 32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32436 (exit $ac_status); } && { 32437 test -z "$ac_c_werror_flag" || 32438 test ! -s conftest.err 32439 } && test -s conftest$ac_exeext && 32440 $as_test_x conftest$ac_exeext; then 32441 ac_cv_func_setpassent_r=yes 32442else 32443 echo "$as_me: failed program was:" >&5 32444sed 's/^/| /' conftest.$ac_ext >&5 32445 32446 ac_cv_func_setpassent_r=no 32447fi 32448 32449rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32450 conftest$ac_exeext conftest.$ac_ext 32451fi 32452{ echo "$as_me:$LINENO: result: $ac_cv_func_setpassent_r" >&5 32453echo "${ECHO_T}$ac_cv_func_setpassent_r" >&6; } 32454if test $ac_cv_func_setpassent_r = yes; then 32455 : 32456else 32457 cat >>confdefs.h <<\_ACEOF 32458#define NEED_SETPASSENT_R 1 32459_ACEOF 32460 32461fi 32462 32463{ echo "$as_me:$LINENO: checking for setpassent" >&5 32464echo $ECHO_N "checking for setpassent... $ECHO_C" >&6; } 32465if test "${ac_cv_func_setpassent+set}" = set; then 32466 echo $ECHO_N "(cached) $ECHO_C" >&6 32467else 32468 cat >conftest.$ac_ext <<_ACEOF 32469/* confdefs.h. */ 32470_ACEOF 32471cat confdefs.h >>conftest.$ac_ext 32472cat >>conftest.$ac_ext <<_ACEOF 32473/* end confdefs.h. */ 32474/* Define setpassent to an innocuous variant, in case <limits.h> declares setpassent. 32475 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32476#define setpassent innocuous_setpassent 32477 32478/* System header to define __stub macros and hopefully few prototypes, 32479 which can conflict with char setpassent (); below. 32480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32481 <limits.h> exists even on freestanding compilers. */ 32482 32483#ifdef __STDC__ 32484# include <limits.h> 32485#else 32486# include <assert.h> 32487#endif 32488 32489#undef setpassent 32490 32491/* Override any GCC internal prototype to avoid an error. 32492 Use char because int might match the return type of a GCC 32493 builtin and then its argument prototype would still apply. */ 32494#ifdef __cplusplus 32495extern "C" 32496#endif 32497char setpassent (); 32498/* The GNU C library defines this for functions which it implements 32499 to always fail with ENOSYS. Some functions are actually named 32500 something starting with __ and the normal name is an alias. */ 32501#if defined __stub_setpassent || defined __stub___setpassent 32502choke me 32503#endif 32504 32505int 32506main () 32507{ 32508return setpassent (); 32509 ; 32510 return 0; 32511} 32512_ACEOF 32513rm -f conftest.$ac_objext conftest$ac_exeext 32514if { (ac_try="$ac_link" 32515case "(($ac_try" in 32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32517 *) ac_try_echo=$ac_try;; 32518esac 32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32520 (eval "$ac_link") 2>conftest.er1 32521 ac_status=$? 32522 grep -v '^ *+' conftest.er1 >conftest.err 32523 rm -f conftest.er1 32524 cat conftest.err >&5 32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32526 (exit $ac_status); } && { 32527 test -z "$ac_c_werror_flag" || 32528 test ! -s conftest.err 32529 } && test -s conftest$ac_exeext && 32530 $as_test_x conftest$ac_exeext; then 32531 ac_cv_func_setpassent=yes 32532else 32533 echo "$as_me: failed program was:" >&5 32534sed 's/^/| /' conftest.$ac_ext >&5 32535 32536 ac_cv_func_setpassent=no 32537fi 32538 32539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32540 conftest$ac_exeext conftest.$ac_ext 32541fi 32542{ echo "$as_me:$LINENO: result: $ac_cv_func_setpassent" >&5 32543echo "${ECHO_T}$ac_cv_func_setpassent" >&6; } 32544if test $ac_cv_func_setpassent = yes; then 32545 : 32546else 32547 cat >>confdefs.h <<\_ACEOF 32548#define NEED_SETPASSENT 1 32549_ACEOF 32550 32551fi 32552 32553 32554{ echo "$as_me:$LINENO: checking for setpwent_r" >&5 32555echo $ECHO_N "checking for setpwent_r... $ECHO_C" >&6; } 32556if test "${ac_cv_func_setpwent_r+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 setpwent_r to an innocuous variant, in case <limits.h> declares setpwent_r. 32566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32567#define setpwent_r innocuous_setpwent_r 32568 32569/* System header to define __stub macros and hopefully few prototypes, 32570 which can conflict with char setpwent_r (); 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 setpwent_r 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 setpwent_r (); 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_setpwent_r || defined __stub___setpwent_r 32593choke me 32594#endif 32595 32596int 32597main () 32598{ 32599return setpwent_r (); 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_setpwent_r=yes 32623else 32624 echo "$as_me: failed program was:" >&5 32625sed 's/^/| /' conftest.$ac_ext >&5 32626 32627 ac_cv_func_setpwent_r=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_setpwent_r" >&5 32634echo "${ECHO_T}$ac_cv_func_setpwent_r" >&6; } 32635if test $ac_cv_func_setpwent_r = yes; then 32636 cat >conftest.$ac_ext <<_ACEOF 32637/* confdefs.h. */ 32638_ACEOF 32639cat confdefs.h >>conftest.$ac_ext 32640cat >>conftest.$ac_ext <<_ACEOF 32641/* end confdefs.h. */ 32642 32643#include <pwd.h> 32644void setpwent_r(FILE **pwfp); 32645 32646int 32647main () 32648{ 32649 32650 ; 32651 return 0; 32652} 32653_ACEOF 32654rm -f conftest.$ac_objext 32655if { (ac_try="$ac_compile" 32656case "(($ac_try" in 32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32658 *) ac_try_echo=$ac_try;; 32659esac 32660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32661 (eval "$ac_compile") 2>conftest.er1 32662 ac_status=$? 32663 grep -v '^ *+' conftest.er1 >conftest.err 32664 rm -f conftest.er1 32665 cat conftest.err >&5 32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32667 (exit $ac_status); } && { 32668 test -z "$ac_c_werror_flag" || 32669 test ! -s conftest.err 32670 } && test -s conftest.$ac_objext; then 32671 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /* empty */" 32672PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int" 32673 32674else 32675 echo "$as_me: failed program was:" >&5 32676sed 's/^/| /' conftest.$ac_ext >&5 32677 32678 cat >conftest.$ac_ext <<_ACEOF 32679/* confdefs.h. */ 32680_ACEOF 32681cat confdefs.h >>conftest.$ac_ext 32682cat >>conftest.$ac_ext <<_ACEOF 32683/* end confdefs.h. */ 32684 32685#include <pwd.h> 32686int setpwent_r(FILE **pwfp); 32687 32688int 32689main () 32690{ 32691 32692 ; 32693 return 0; 32694} 32695_ACEOF 32696rm -f conftest.$ac_objext 32697if { (ac_try="$ac_compile" 32698case "(($ac_try" in 32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32700 *) ac_try_echo=$ac_try;; 32701esac 32702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32703 (eval "$ac_compile") 2>conftest.er1 32704 ac_status=$? 32705 grep -v '^ *+' conftest.er1 >conftest.err 32706 rm -f conftest.er1 32707 cat conftest.err >&5 32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32709 (exit $ac_status); } && { 32710 test -z "$ac_c_werror_flag" || 32711 test ! -s conftest.err 32712 } && test -s conftest.$ac_objext; then 32713 PASS_R_SET_RESULT="#define PASS_R_SET_RESULT 0" 32714PASS_R_SET_RETURN="#define PASS_R_SET_RETURN int" 32715 32716else 32717 echo "$as_me: failed program was:" >&5 32718sed 's/^/| /' conftest.$ac_ext >&5 32719 32720 32721fi 32722 32723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32724 32725fi 32726 32727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32728 32729else 32730 PASS_R_SET_RESULT="#undef PASS_R_SET_RESULT /*empty*/" 32731PASS_R_SET_RETURN="#define PASS_R_SET_RETURN void" 32732cat >>confdefs.h <<\_ACEOF 32733#define NEED_SETPWENT_R 1 32734_ACEOF 32735 32736 32737fi 32738 32739 32740 32741 32742{ echo "$as_me:$LINENO: checking for getpwnam_r" >&5 32743echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6; } 32744if test "${ac_cv_func_getpwnam_r+set}" = set; then 32745 echo $ECHO_N "(cached) $ECHO_C" >&6 32746else 32747 cat >conftest.$ac_ext <<_ACEOF 32748/* confdefs.h. */ 32749_ACEOF 32750cat confdefs.h >>conftest.$ac_ext 32751cat >>conftest.$ac_ext <<_ACEOF 32752/* end confdefs.h. */ 32753/* Define getpwnam_r to an innocuous variant, in case <limits.h> declares getpwnam_r. 32754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32755#define getpwnam_r innocuous_getpwnam_r 32756 32757/* System header to define __stub macros and hopefully few prototypes, 32758 which can conflict with char getpwnam_r (); below. 32759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32760 <limits.h> exists even on freestanding compilers. */ 32761 32762#ifdef __STDC__ 32763# include <limits.h> 32764#else 32765# include <assert.h> 32766#endif 32767 32768#undef getpwnam_r 32769 32770/* Override any GCC internal prototype to avoid an error. 32771 Use char because int might match the return type of a GCC 32772 builtin and then its argument prototype would still apply. */ 32773#ifdef __cplusplus 32774extern "C" 32775#endif 32776char getpwnam_r (); 32777/* The GNU C library defines this for functions which it implements 32778 to always fail with ENOSYS. Some functions are actually named 32779 something starting with __ and the normal name is an alias. */ 32780#if defined __stub_getpwnam_r || defined __stub___getpwnam_r 32781choke me 32782#endif 32783 32784int 32785main () 32786{ 32787return getpwnam_r (); 32788 ; 32789 return 0; 32790} 32791_ACEOF 32792rm -f conftest.$ac_objext conftest$ac_exeext 32793if { (ac_try="$ac_link" 32794case "(($ac_try" in 32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32796 *) ac_try_echo=$ac_try;; 32797esac 32798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32799 (eval "$ac_link") 2>conftest.er1 32800 ac_status=$? 32801 grep -v '^ *+' conftest.er1 >conftest.err 32802 rm -f conftest.er1 32803 cat conftest.err >&5 32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32805 (exit $ac_status); } && { 32806 test -z "$ac_c_werror_flag" || 32807 test ! -s conftest.err 32808 } && test -s conftest$ac_exeext && 32809 $as_test_x conftest$ac_exeext; then 32810 ac_cv_func_getpwnam_r=yes 32811else 32812 echo "$as_me: failed program was:" >&5 32813sed 's/^/| /' conftest.$ac_ext >&5 32814 32815 ac_cv_func_getpwnam_r=no 32816fi 32817 32818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32819 conftest$ac_exeext conftest.$ac_ext 32820fi 32821{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r" >&5 32822echo "${ECHO_T}$ac_cv_func_getpwnam_r" >&6; } 32823if test $ac_cv_func_getpwnam_r = yes; then 32824 : 32825else 32826 cat >>confdefs.h <<\_ACEOF 32827#define NEED_GETPWNAM_R 1 32828_ACEOF 32829 32830fi 32831 32832{ echo "$as_me:$LINENO: checking for getpwuid_r" >&5 32833echo $ECHO_N "checking for getpwuid_r... $ECHO_C" >&6; } 32834if test "${ac_cv_func_getpwuid_r+set}" = set; then 32835 echo $ECHO_N "(cached) $ECHO_C" >&6 32836else 32837 cat >conftest.$ac_ext <<_ACEOF 32838/* confdefs.h. */ 32839_ACEOF 32840cat confdefs.h >>conftest.$ac_ext 32841cat >>conftest.$ac_ext <<_ACEOF 32842/* end confdefs.h. */ 32843/* Define getpwuid_r to an innocuous variant, in case <limits.h> declares getpwuid_r. 32844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32845#define getpwuid_r innocuous_getpwuid_r 32846 32847/* System header to define __stub macros and hopefully few prototypes, 32848 which can conflict with char getpwuid_r (); below. 32849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32850 <limits.h> exists even on freestanding compilers. */ 32851 32852#ifdef __STDC__ 32853# include <limits.h> 32854#else 32855# include <assert.h> 32856#endif 32857 32858#undef getpwuid_r 32859 32860/* Override any GCC internal prototype to avoid an error. 32861 Use char because int might match the return type of a GCC 32862 builtin and then its argument prototype would still apply. */ 32863#ifdef __cplusplus 32864extern "C" 32865#endif 32866char getpwuid_r (); 32867/* The GNU C library defines this for functions which it implements 32868 to always fail with ENOSYS. Some functions are actually named 32869 something starting with __ and the normal name is an alias. */ 32870#if defined __stub_getpwuid_r || defined __stub___getpwuid_r 32871choke me 32872#endif 32873 32874int 32875main () 32876{ 32877return getpwuid_r (); 32878 ; 32879 return 0; 32880} 32881_ACEOF 32882rm -f conftest.$ac_objext conftest$ac_exeext 32883if { (ac_try="$ac_link" 32884case "(($ac_try" in 32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32886 *) ac_try_echo=$ac_try;; 32887esac 32888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32889 (eval "$ac_link") 2>conftest.er1 32890 ac_status=$? 32891 grep -v '^ *+' conftest.er1 >conftest.err 32892 rm -f conftest.er1 32893 cat conftest.err >&5 32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32895 (exit $ac_status); } && { 32896 test -z "$ac_c_werror_flag" || 32897 test ! -s conftest.err 32898 } && test -s conftest$ac_exeext && 32899 $as_test_x conftest$ac_exeext; then 32900 ac_cv_func_getpwuid_r=yes 32901else 32902 echo "$as_me: failed program was:" >&5 32903sed 's/^/| /' conftest.$ac_ext >&5 32904 32905 ac_cv_func_getpwuid_r=no 32906fi 32907 32908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 32909 conftest$ac_exeext conftest.$ac_ext 32910fi 32911{ echo "$as_me:$LINENO: result: $ac_cv_func_getpwuid_r" >&5 32912echo "${ECHO_T}$ac_cv_func_getpwuid_r" >&6; } 32913if test $ac_cv_func_getpwuid_r = yes; then 32914 : 32915else 32916 cat >>confdefs.h <<\_ACEOF 32917#define NEED_GETPWUID_R 1 32918_ACEOF 32919 32920fi 32921 32922 32923case $host in 32924ia64-hp-hpux11.*) 32925;; 32926*) 32927{ echo "$as_me:$LINENO: checking for getservent_r" >&5 32928echo $ECHO_N "checking for getservent_r... $ECHO_C" >&6; } 32929if test "${ac_cv_func_getservent_r+set}" = set; then 32930 echo $ECHO_N "(cached) $ECHO_C" >&6 32931else 32932 cat >conftest.$ac_ext <<_ACEOF 32933/* confdefs.h. */ 32934_ACEOF 32935cat confdefs.h >>conftest.$ac_ext 32936cat >>conftest.$ac_ext <<_ACEOF 32937/* end confdefs.h. */ 32938/* Define getservent_r to an innocuous variant, in case <limits.h> declares getservent_r. 32939 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32940#define getservent_r innocuous_getservent_r 32941 32942/* System header to define __stub macros and hopefully few prototypes, 32943 which can conflict with char getservent_r (); below. 32944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32945 <limits.h> exists even on freestanding compilers. */ 32946 32947#ifdef __STDC__ 32948# include <limits.h> 32949#else 32950# include <assert.h> 32951#endif 32952 32953#undef getservent_r 32954 32955/* Override any GCC internal prototype to avoid an error. 32956 Use char because int might match the return type of a GCC 32957 builtin and then its argument prototype would still apply. */ 32958#ifdef __cplusplus 32959extern "C" 32960#endif 32961char getservent_r (); 32962/* The GNU C library defines this for functions which it implements 32963 to always fail with ENOSYS. Some functions are actually named 32964 something starting with __ and the normal name is an alias. */ 32965#if defined __stub_getservent_r || defined __stub___getservent_r 32966choke me 32967#endif 32968 32969int 32970main () 32971{ 32972return getservent_r (); 32973 ; 32974 return 0; 32975} 32976_ACEOF 32977rm -f conftest.$ac_objext conftest$ac_exeext 32978if { (ac_try="$ac_link" 32979case "(($ac_try" in 32980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32981 *) ac_try_echo=$ac_try;; 32982esac 32983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 32984 (eval "$ac_link") 2>conftest.er1 32985 ac_status=$? 32986 grep -v '^ *+' conftest.er1 >conftest.err 32987 rm -f conftest.er1 32988 cat conftest.err >&5 32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32990 (exit $ac_status); } && { 32991 test -z "$ac_c_werror_flag" || 32992 test ! -s conftest.err 32993 } && test -s conftest$ac_exeext && 32994 $as_test_x conftest$ac_exeext; then 32995 ac_cv_func_getservent_r=yes 32996else 32997 echo "$as_me: failed program was:" >&5 32998sed 's/^/| /' conftest.$ac_ext >&5 32999 33000 ac_cv_func_getservent_r=no 33001fi 33002 33003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33004 conftest$ac_exeext conftest.$ac_ext 33005fi 33006{ echo "$as_me:$LINENO: result: $ac_cv_func_getservent_r" >&5 33007echo "${ECHO_T}$ac_cv_func_getservent_r" >&6; } 33008if test $ac_cv_func_getservent_r = yes; then 33009 cat >conftest.$ac_ext <<_ACEOF 33010/* confdefs.h. */ 33011_ACEOF 33012cat confdefs.h >>conftest.$ac_ext 33013cat >>conftest.$ac_ext <<_ACEOF 33014/* end confdefs.h. */ 33015 33016#undef __USE_MISC 33017#define __USE_MISC 33018#include <netdb.h> 33019struct servent * 33020getservent_r(struct servent *result, char *buffer, int buflen) {} 33021 33022int 33023main () 33024{ 33025return (0); 33026 ; 33027 return 0; 33028} 33029_ACEOF 33030rm -f conftest.$ac_objext 33031if { (ac_try="$ac_compile" 33032case "(($ac_try" in 33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33034 *) ac_try_echo=$ac_try;; 33035esac 33036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33037 (eval "$ac_compile") 2>conftest.er1 33038 ac_status=$? 33039 grep -v '^ *+' conftest.er1 >conftest.err 33040 rm -f conftest.er1 33041 cat conftest.err >&5 33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33043 (exit $ac_status); } && { 33044 test -z "$ac_c_werror_flag" || 33045 test ! -s conftest.err 33046 } && test -s conftest.$ac_objext; then 33047 33048SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen" 33049SERV_R_BAD="#define SERV_R_BAD NULL" 33050SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33051SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS" 33052SERV_R_OK="#define SERV_R_OK sptr" 33053SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33054SERV_R_RETURN="#define SERV_R_RETURN struct servent *" 33055 33056 33057else 33058 echo "$as_me: failed program was:" >&5 33059sed 's/^/| /' conftest.$ac_ext >&5 33060 33061 cat >conftest.$ac_ext <<_ACEOF 33062/* confdefs.h. */ 33063_ACEOF 33064cat confdefs.h >>conftest.$ac_ext 33065cat >>conftest.$ac_ext <<_ACEOF 33066/* end confdefs.h. */ 33067 33068#undef __USE_MISC 33069#define __USE_MISC 33070#include <netdb.h> 33071int 33072getservent_r (struct servent *, char *, size_t, struct servent **); 33073 33074int 33075main () 33076{ 33077return (0); 33078 ; 33079 return 0; 33080} 33081_ACEOF 33082rm -f conftest.$ac_objext 33083if { (ac_try="$ac_compile" 33084case "(($ac_try" in 33085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33086 *) ac_try_echo=$ac_try;; 33087esac 33088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33089 (eval "$ac_compile") 2>conftest.er1 33090 ac_status=$? 33091 grep -v '^ *+' conftest.er1 >conftest.err 33092 rm -f conftest.er1 33093 cat conftest.err >&5 33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33095 (exit $ac_status); } && { 33096 test -z "$ac_c_werror_flag" || 33097 test ! -s conftest.err 33098 } && test -s conftest.$ac_objext; then 33099 33100SERV_R_ARGS="#define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp" 33101SERV_R_BAD="#define SERV_R_BAD ERANGE" 33102SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33103SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS char *buf, size_t buflen" 33104SERV_R_OK="#define SERV_R_OK (0)" 33105SERV_R_SETANSWER="#define SERV_R_SETANSWER 1" 33106SERV_R_RETURN="#define SERV_R_RETURN int" 33107 33108 33109else 33110 echo "$as_me: failed program was:" >&5 33111sed 's/^/| /' conftest.$ac_ext >&5 33112 33113 cat >conftest.$ac_ext <<_ACEOF 33114/* confdefs.h. */ 33115_ACEOF 33116cat confdefs.h >>conftest.$ac_ext 33117cat >>conftest.$ac_ext <<_ACEOF 33118/* end confdefs.h. */ 33119 33120#undef __USE_MISC 33121#define __USE_MISC 33122#include <netdb.h> 33123int 33124getservent_r (struct servent *, struct servent_data *serv_data); 33125 33126int 33127main () 33128{ 33129return (0); 33130 ; 33131 return 0; 33132} 33133_ACEOF 33134rm -f conftest.$ac_objext 33135if { (ac_try="$ac_compile" 33136case "(($ac_try" in 33137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33138 *) ac_try_echo=$ac_try;; 33139esac 33140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33141 (eval "$ac_compile") 2>conftest.er1 33142 ac_status=$? 33143 grep -v '^ *+' conftest.er1 >conftest.err 33144 rm -f conftest.er1 33145 cat conftest.err >&5 33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33147 (exit $ac_status); } && { 33148 test -z "$ac_c_werror_flag" || 33149 test ! -s conftest.err 33150 } && test -s conftest.$ac_objext; then 33151 33152SERV_R_ARGS="#define SERV_R_ARGS struct servent_data *serv_data" 33153SERV_R_BAD="#define SERV_R_BAD (-1)" 33154SERV_R_COPY="#define SERV_R_COPY serv_data" 33155SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS struct servent_data *sdptr" 33156SERV_R_OK="#define SERV_R_OK (0)" 33157SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33158SERV_R_RETURN="#define SERV_R_RETURN int" 33159SERVENT_DATA="#define SERVENT_DATA 1" 33160 33161 33162else 33163 echo "$as_me: failed program was:" >&5 33164sed 's/^/| /' conftest.$ac_ext >&5 33165 33166 33167fi 33168 33169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33170 33171fi 33172 33173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33174 33175fi 33176 33177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33178 33179else 33180 SERV_R_ARGS="#define SERV_R_ARGS char *buf, int buflen" 33181SERV_R_BAD="#define SERV_R_BAD NULL" 33182SERV_R_COPY="#define SERV_R_COPY buf, buflen" 33183SERV_R_COPY_ARGS="#define SERV_R_COPY_ARGS SERV_R_ARGS" 33184SERV_R_OK="#define SERV_R_OK sptr" 33185SERV_R_SETANSWER="#undef SERV_R_SETANSWER" 33186SERV_R_RETURN="#define SERV_R_RETURN struct servent *" 33187 33188fi 33189 33190esac 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200case $host in 33201ia64-hp-hpux11.*) 33202;; 33203*) 33204{ echo "$as_me:$LINENO: checking for endservent_r" >&5 33205echo $ECHO_N "checking for endservent_r... $ECHO_C" >&6; } 33206if test "${ac_cv_func_endservent_r+set}" = set; then 33207 echo $ECHO_N "(cached) $ECHO_C" >&6 33208else 33209 cat >conftest.$ac_ext <<_ACEOF 33210/* confdefs.h. */ 33211_ACEOF 33212cat confdefs.h >>conftest.$ac_ext 33213cat >>conftest.$ac_ext <<_ACEOF 33214/* end confdefs.h. */ 33215/* Define endservent_r to an innocuous variant, in case <limits.h> declares endservent_r. 33216 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33217#define endservent_r innocuous_endservent_r 33218 33219/* System header to define __stub macros and hopefully few prototypes, 33220 which can conflict with char endservent_r (); below. 33221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33222 <limits.h> exists even on freestanding compilers. */ 33223 33224#ifdef __STDC__ 33225# include <limits.h> 33226#else 33227# include <assert.h> 33228#endif 33229 33230#undef endservent_r 33231 33232/* Override any GCC internal prototype to avoid an error. 33233 Use char because int might match the return type of a GCC 33234 builtin and then its argument prototype would still apply. */ 33235#ifdef __cplusplus 33236extern "C" 33237#endif 33238char endservent_r (); 33239/* The GNU C library defines this for functions which it implements 33240 to always fail with ENOSYS. Some functions are actually named 33241 something starting with __ and the normal name is an alias. */ 33242#if defined __stub_endservent_r || defined __stub___endservent_r 33243choke me 33244#endif 33245 33246int 33247main () 33248{ 33249return endservent_r (); 33250 ; 33251 return 0; 33252} 33253_ACEOF 33254rm -f conftest.$ac_objext conftest$ac_exeext 33255if { (ac_try="$ac_link" 33256case "(($ac_try" in 33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33258 *) ac_try_echo=$ac_try;; 33259esac 33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33261 (eval "$ac_link") 2>conftest.er1 33262 ac_status=$? 33263 grep -v '^ *+' conftest.er1 >conftest.err 33264 rm -f conftest.er1 33265 cat conftest.err >&5 33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33267 (exit $ac_status); } && { 33268 test -z "$ac_c_werror_flag" || 33269 test ! -s conftest.err 33270 } && test -s conftest$ac_exeext && 33271 $as_test_x conftest$ac_exeext; then 33272 ac_cv_func_endservent_r=yes 33273else 33274 echo "$as_me: failed program was:" >&5 33275sed 's/^/| /' conftest.$ac_ext >&5 33276 33277 ac_cv_func_endservent_r=no 33278fi 33279 33280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33281 conftest$ac_exeext conftest.$ac_ext 33282fi 33283{ echo "$as_me:$LINENO: result: $ac_cv_func_endservent_r" >&5 33284echo "${ECHO_T}$ac_cv_func_endservent_r" >&6; } 33285if test $ac_cv_func_endservent_r = yes; then 33286 cat >conftest.$ac_ext <<_ACEOF 33287/* confdefs.h. */ 33288_ACEOF 33289cat confdefs.h >>conftest.$ac_ext 33290cat >>conftest.$ac_ext <<_ACEOF 33291/* end confdefs.h. */ 33292 33293#undef _REENTRANT 33294#define _REENTRANT 33295#undef __USE_MISC 33296#define __USE_MISC 33297#include <netdb.h> 33298void endservent_r(void); 33299 33300 33301int 33302main () 33303{ 33304 33305 ; 33306 return 0; 33307} 33308_ACEOF 33309rm -f conftest.$ac_objext 33310if { (ac_try="$ac_compile" 33311case "(($ac_try" in 33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33313 *) ac_try_echo=$ac_try;; 33314esac 33315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33316 (eval "$ac_compile") 2>conftest.er1 33317 ac_status=$? 33318 grep -v '^ *+' conftest.er1 >conftest.err 33319 rm -f conftest.er1 33320 cat conftest.err >&5 33321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33322 (exit $ac_status); } && { 33323 test -z "$ac_c_werror_flag" || 33324 test ! -s conftest.err 33325 } && test -s conftest.$ac_objext; then 33326 33327SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33328SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33329SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/" 33330SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/" 33331 33332 33333else 33334 echo "$as_me: failed program was:" >&5 33335sed 's/^/| /' conftest.$ac_ext >&5 33336 33337 cat >conftest.$ac_ext <<_ACEOF 33338/* confdefs.h. */ 33339_ACEOF 33340cat confdefs.h >>conftest.$ac_ext 33341cat >>conftest.$ac_ext <<_ACEOF 33342/* end confdefs.h. */ 33343 33344#undef _REENTRANT 33345#define _REENTRANT 33346#undef __USE_MISC 33347#define __USE_MISC 33348#include <netdb.h> 33349void endservent_r(struct servent_data *serv_data); 33350 33351 33352int 33353main () 33354{ 33355 33356 ; 33357 return 0; 33358} 33359_ACEOF 33360rm -f conftest.$ac_objext 33361if { (ac_try="$ac_compile" 33362case "(($ac_try" in 33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33364 *) ac_try_echo=$ac_try;; 33365esac 33366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33367 (eval "$ac_compile") 2>conftest.er1 33368 ac_status=$? 33369 grep -v '^ *+' conftest.er1 >conftest.err 33370 rm -f conftest.er1 33371 cat conftest.err >&5 33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33373 (exit $ac_status); } && { 33374 test -z "$ac_c_werror_flag" || 33375 test ! -s conftest.err 33376 } && test -s conftest.$ac_objext; then 33377 33378SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33379SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33380SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data" 33381SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)" 33382 33383 33384else 33385 echo "$as_me: failed program was:" >&5 33386sed 's/^/| /' conftest.$ac_ext >&5 33387 33388 cat >conftest.$ac_ext <<_ACEOF 33389/* confdefs.h. */ 33390_ACEOF 33391cat confdefs.h >>conftest.$ac_ext 33392cat >>conftest.$ac_ext <<_ACEOF 33393/* end confdefs.h. */ 33394 33395#undef _REENTRANT 33396#define _REENTRANT 33397#undef __USE_MISC 33398#define __USE_MISC 33399#include <netdb.h> 33400int endservent_r(struct servent_data *serv_data); 33401 33402 33403int 33404main () 33405{ 33406 33407 ; 33408 return 0; 33409} 33410_ACEOF 33411rm -f conftest.$ac_objext 33412if { (ac_try="$ac_compile" 33413case "(($ac_try" in 33414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33415 *) ac_try_echo=$ac_try;; 33416esac 33417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33418 (eval "$ac_compile") 2>conftest.er1 33419 ac_status=$? 33420 grep -v '^ *+' conftest.er1 >conftest.err 33421 rm -f conftest.er1 33422 cat conftest.err >&5 33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33424 (exit $ac_status); } && { 33425 test -z "$ac_c_werror_flag" || 33426 test ! -s conftest.err 33427 } && test -s conftest.$ac_objext; then 33428 33429SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) return(x)" 33430SERV_R_END_RETURN="#define SERV_R_END_RETURN int " 33431SERV_R_ENT_ARGS="#define SERV_R_ENT_ARGS struct servent_data *serv_data" 33432SERV_R_ENT_UNUSED="#define SERV_R_ENT_UNUSED UNUSED(serv_data)" 33433 33434 33435else 33436 echo "$as_me: failed program was:" >&5 33437sed 's/^/| /' conftest.$ac_ext >&5 33438 33439 33440fi 33441 33442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33443 33444fi 33445 33446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33447 33448fi 33449 33450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33451 33452else 33453 SERV_R_END_RESULT="#define SERV_R_END_RESULT(x) /*empty*/" 33454SERV_R_END_RETURN="#define SERV_R_END_RETURN void " 33455SERV_R_ENT_ARGS="#undef SERV_R_ENT_ARGS /*empty*/" 33456SERV_R_ENT_UNUSED="#undef SERV_R_ENT_UNUSED /*empty*/" 33457 33458fi 33459 33460esac 33461 33462 33463 33464 33465 33466case $host in 33467ia64-hp-hpux11.*) 33468;; 33469*) 33470{ echo "$as_me:$LINENO: checking for setservent_r" >&5 33471echo $ECHO_N "checking for setservent_r... $ECHO_C" >&6; } 33472if test "${ac_cv_func_setservent_r+set}" = set; then 33473 echo $ECHO_N "(cached) $ECHO_C" >&6 33474else 33475 cat >conftest.$ac_ext <<_ACEOF 33476/* confdefs.h. */ 33477_ACEOF 33478cat confdefs.h >>conftest.$ac_ext 33479cat >>conftest.$ac_ext <<_ACEOF 33480/* end confdefs.h. */ 33481/* Define setservent_r to an innocuous variant, in case <limits.h> declares setservent_r. 33482 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33483#define setservent_r innocuous_setservent_r 33484 33485/* System header to define __stub macros and hopefully few prototypes, 33486 which can conflict with char setservent_r (); below. 33487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 33488 <limits.h> exists even on freestanding compilers. */ 33489 33490#ifdef __STDC__ 33491# include <limits.h> 33492#else 33493# include <assert.h> 33494#endif 33495 33496#undef setservent_r 33497 33498/* Override any GCC internal prototype to avoid an error. 33499 Use char because int might match the return type of a GCC 33500 builtin and then its argument prototype would still apply. */ 33501#ifdef __cplusplus 33502extern "C" 33503#endif 33504char setservent_r (); 33505/* The GNU C library defines this for functions which it implements 33506 to always fail with ENOSYS. Some functions are actually named 33507 something starting with __ and the normal name is an alias. */ 33508#if defined __stub_setservent_r || defined __stub___setservent_r 33509choke me 33510#endif 33511 33512int 33513main () 33514{ 33515return setservent_r (); 33516 ; 33517 return 0; 33518} 33519_ACEOF 33520rm -f conftest.$ac_objext conftest$ac_exeext 33521if { (ac_try="$ac_link" 33522case "(($ac_try" in 33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33524 *) ac_try_echo=$ac_try;; 33525esac 33526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33527 (eval "$ac_link") 2>conftest.er1 33528 ac_status=$? 33529 grep -v '^ *+' conftest.er1 >conftest.err 33530 rm -f conftest.er1 33531 cat conftest.err >&5 33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33533 (exit $ac_status); } && { 33534 test -z "$ac_c_werror_flag" || 33535 test ! -s conftest.err 33536 } && test -s conftest$ac_exeext && 33537 $as_test_x conftest$ac_exeext; then 33538 ac_cv_func_setservent_r=yes 33539else 33540 echo "$as_me: failed program was:" >&5 33541sed 's/^/| /' conftest.$ac_ext >&5 33542 33543 ac_cv_func_setservent_r=no 33544fi 33545 33546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 33547 conftest$ac_exeext conftest.$ac_ext 33548fi 33549{ echo "$as_me:$LINENO: result: $ac_cv_func_setservent_r" >&5 33550echo "${ECHO_T}$ac_cv_func_setservent_r" >&6; } 33551if test $ac_cv_func_setservent_r = yes; then 33552 cat >conftest.$ac_ext <<_ACEOF 33553/* confdefs.h. */ 33554_ACEOF 33555cat confdefs.h >>conftest.$ac_ext 33556cat >>conftest.$ac_ext <<_ACEOF 33557/* end confdefs.h. */ 33558 33559#undef _REENTRANT 33560#define _REENTRANT 33561#undef __USE_MISC 33562#define __USE_MISC 33563#include <netdb.h> 33564void setservent_r(int); 33565 33566 33567int 33568main () 33569{ 33570 33571 ; 33572 return 0; 33573} 33574_ACEOF 33575rm -f conftest.$ac_objext 33576if { (ac_try="$ac_compile" 33577case "(($ac_try" in 33578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33579 *) ac_try_echo=$ac_try;; 33580esac 33581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33582 (eval "$ac_compile") 2>conftest.er1 33583 ac_status=$? 33584 grep -v '^ *+' conftest.er1 >conftest.err 33585 rm -f conftest.er1 33586 cat conftest.err >&5 33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33588 (exit $ac_status); } && { 33589 test -z "$ac_c_werror_flag" || 33590 test ! -s conftest.err 33591 } && test -s conftest.$ac_objext; then 33592 33593SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT" 33594SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void" 33595 33596 33597else 33598 echo "$as_me: failed program was:" >&5 33599sed 's/^/| /' conftest.$ac_ext >&5 33600 33601 cat >conftest.$ac_ext <<_ACEOF 33602/* confdefs.h. */ 33603_ACEOF 33604cat confdefs.h >>conftest.$ac_ext 33605cat >>conftest.$ac_ext <<_ACEOF 33606/* end confdefs.h. */ 33607 33608#undef _REENTRANT 33609#define _REENTRANT 33610#undef __USE_MISC 33611#define __USE_MISC 33612#include <netdb.h> 33613int setservent_r(int, struct servent_data *); 33614 33615 33616int 33617main () 33618{ 33619 33620 ; 33621 return 0; 33622} 33623_ACEOF 33624rm -f conftest.$ac_objext 33625if { (ac_try="$ac_compile" 33626case "(($ac_try" in 33627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33628 *) ac_try_echo=$ac_try;; 33629esac 33630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33631 (eval "$ac_compile") 2>conftest.er1 33632 ac_status=$? 33633 grep -v '^ *+' conftest.er1 >conftest.err 33634 rm -f conftest.er1 33635 cat conftest.err >&5 33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33637 (exit $ac_status); } && { 33638 test -z "$ac_c_werror_flag" || 33639 test ! -s conftest.err 33640 } && test -s conftest.$ac_objext; then 33641 33642SERV_R_SET_RESULT="#define SERV_R_SET_RESULT (0)" 33643SERV_R_SET_RETURN="#define SERV_R_SET_RETURN int" 33644 33645 33646else 33647 echo "$as_me: failed program was:" >&5 33648sed 's/^/| /' conftest.$ac_ext >&5 33649 33650 33651fi 33652 33653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33654 33655fi 33656 33657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33658 33659else 33660 SERV_R_SET_RESULT="#undef SERV_R_SET_RESULT" 33661SERV_R_SET_RETURN="#define SERV_R_SET_RETURN void" 33662 33663fi 33664 33665esac 33666 33667 33668 33669cat >conftest.$ac_ext <<_ACEOF 33670/* confdefs.h. */ 33671_ACEOF 33672cat confdefs.h >>conftest.$ac_ext 33673cat >>conftest.$ac_ext <<_ACEOF 33674/* end confdefs.h. */ 33675 33676#undef _REENTRANT 33677#define _REENTRANT 33678#undef __USE_MISC 33679#define __USE_MISC 33680#include <unistd.h> 33681#include <netdb.h> 33682int innetgr(const char *netgroup, const char *host, const char *user, const char *domain); 33683 33684 33685int 33686main () 33687{ 33688 33689 ; 33690 return 0; 33691} 33692_ACEOF 33693rm -f conftest.$ac_objext 33694if { (ac_try="$ac_compile" 33695case "(($ac_try" in 33696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33697 *) ac_try_echo=$ac_try;; 33698esac 33699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33700 (eval "$ac_compile") 2>conftest.er1 33701 ac_status=$? 33702 grep -v '^ *+' conftest.er1 >conftest.err 33703 rm -f conftest.er1 33704 cat conftest.err >&5 33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33706 (exit $ac_status); } && { 33707 test -z "$ac_c_werror_flag" || 33708 test ! -s conftest.err 33709 } && test -s conftest.$ac_objext; then 33710 33711INNETGR_ARGS="#undef INNETGR_ARGS" 33712 33713 33714else 33715 echo "$as_me: failed program was:" >&5 33716sed 's/^/| /' conftest.$ac_ext >&5 33717 33718 cat >conftest.$ac_ext <<_ACEOF 33719/* confdefs.h. */ 33720_ACEOF 33721cat confdefs.h >>conftest.$ac_ext 33722cat >>conftest.$ac_ext <<_ACEOF 33723/* end confdefs.h. */ 33724 33725#undef _REENTRANT 33726#define _REENTRANT 33727#undef __USE_MISC 33728#define __USE_MISC 33729#include <unistd.h> 33730#include <netdb.h> 33731int innetgr(char *netgroup, char *host, char *user, char *domain); 33732 33733 33734int 33735main () 33736{ 33737 33738 ; 33739 return 0; 33740} 33741_ACEOF 33742rm -f conftest.$ac_objext 33743if { (ac_try="$ac_compile" 33744case "(($ac_try" in 33745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33746 *) ac_try_echo=$ac_try;; 33747esac 33748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33749 (eval "$ac_compile") 2>conftest.er1 33750 ac_status=$? 33751 grep -v '^ *+' conftest.er1 >conftest.err 33752 rm -f conftest.er1 33753 cat conftest.err >&5 33754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33755 (exit $ac_status); } && { 33756 test -z "$ac_c_werror_flag" || 33757 test ! -s conftest.err 33758 } && test -s conftest.$ac_objext; then 33759 33760INNETGR_ARGS="#define INNETGR_ARGS char *netgroup, char *host, char *user, char *domain" 33761 33762 33763else 33764 echo "$as_me: failed program was:" >&5 33765sed 's/^/| /' conftest.$ac_ext >&5 33766 33767 33768fi 33769 33770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33771fi 33772 33773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33774 33775cat >conftest.$ac_ext <<_ACEOF 33776/* confdefs.h. */ 33777_ACEOF 33778cat confdefs.h >>conftest.$ac_ext 33779cat >>conftest.$ac_ext <<_ACEOF 33780/* end confdefs.h. */ 33781 33782#undef _REENTRANT 33783#define _REENTRANT 33784#undef __USE_MISC 33785#define __USE_MISC 33786#include <unistd.h> 33787#include <netdb.h> 33788void setnetgrent(const char *); 33789 33790 33791int 33792main () 33793{ 33794 33795 ; 33796 return 0; 33797} 33798_ACEOF 33799rm -f conftest.$ac_objext 33800if { (ac_try="$ac_compile" 33801case "(($ac_try" in 33802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33803 *) ac_try_echo=$ac_try;; 33804esac 33805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33806 (eval "$ac_compile") 2>conftest.er1 33807 ac_status=$? 33808 grep -v '^ *+' conftest.er1 >conftest.err 33809 rm -f conftest.er1 33810 cat conftest.err >&5 33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33812 (exit $ac_status); } && { 33813 test -z "$ac_c_werror_flag" || 33814 test ! -s conftest.err 33815 } && test -s conftest.$ac_objext; then 33816 33817SETNETGRENT_ARGS="#undef SETNETGRENT_ARGS" 33818 33819 33820else 33821 echo "$as_me: failed program was:" >&5 33822sed 's/^/| /' conftest.$ac_ext >&5 33823 33824 cat >conftest.$ac_ext <<_ACEOF 33825/* confdefs.h. */ 33826_ACEOF 33827cat confdefs.h >>conftest.$ac_ext 33828cat >>conftest.$ac_ext <<_ACEOF 33829/* end confdefs.h. */ 33830 33831#undef _REENTRANT 33832#define _REENTRANT 33833#undef __USE_MISC 33834#define __USE_MISC 33835#include <unistd.h> 33836#include <netdb.h> 33837void setnetgrent(char *); 33838 33839 33840int 33841main () 33842{ 33843 33844 ; 33845 return 0; 33846} 33847_ACEOF 33848rm -f conftest.$ac_objext 33849if { (ac_try="$ac_compile" 33850case "(($ac_try" in 33851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33852 *) ac_try_echo=$ac_try;; 33853esac 33854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 33855 (eval "$ac_compile") 2>conftest.er1 33856 ac_status=$? 33857 grep -v '^ *+' conftest.er1 >conftest.err 33858 rm -f conftest.er1 33859 cat conftest.err >&5 33860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33861 (exit $ac_status); } && { 33862 test -z "$ac_c_werror_flag" || 33863 test ! -s conftest.err 33864 } && test -s conftest.$ac_objext; then 33865 33866SETNETGRENT_ARGS="#define SETNETGRENT_ARGS char *netgroup" 33867 33868 33869else 33870 echo "$as_me: failed program was:" >&5 33871sed 's/^/| /' conftest.$ac_ext >&5 33872 33873 33874fi 33875 33876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33877fi 33878 33879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33880 33881 33882 33883# 33884# Random remaining OS-specific issues involving compiler warnings. 33885# XXXDCL print messages to indicate some compensation is being done? 33886# 33887BROKEN_IN6ADDR_INIT_MACROS="#undef BROKEN_IN6ADDR_INIT_MACROS" 33888 33889case "$host" in 33890 *-aix5.1.*) 33891 hack_shutup_pthreadmutexinit=yes 33892 hack_shutup_in6addr_init_macros=yes 33893 ;; 33894 *-aix5.[23].*) 33895 hack_shutup_in6addr_init_macros=yes 33896 ;; 33897 *-bsdi3.1*) 33898 hack_shutup_sputaux=yes 33899 ;; 33900 *-bsdi4.0*) 33901 hack_shutup_sigwait=yes 33902 hack_shutup_sputaux=yes 33903 hack_shutup_in6addr_init_macros=yes 33904 ;; 33905 *-bsdi4.1*) 33906 hack_shutup_stdargcast=yes 33907 ;; 33908 *-hpux11.11) 33909 hack_shutup_in6addr_init_macros=yes 33910 ;; 33911 *-osf5.1|*-osf5.1b) 33912 hack_shutup_in6addr_init_macros=yes 33913 ;; 33914 *-solaris2.8) 33915 hack_shutup_in6addr_init_macros=yes 33916 ;; 33917 *-solaris2.9) 33918 hack_shutup_in6addr_init_macros=yes 33919 ;; 33920 *-solaris2.1[0-9]) 33921 hack_shutup_in6addr_init_macros=yes 33922 ;; 33923esac 33924 33925case "$hack_shutup_pthreadmutexinit" in 33926 yes) 33927 # 33928 # Shut up PTHREAD_MUTEX_INITIALIZER unbraced 33929 # initializer warnings. 33930 # 33931 cat >>confdefs.h <<\_ACEOF 33932#define SHUTUP_MUTEX_INITIALIZER 1 33933_ACEOF 33934 33935 ;; 33936esac 33937 33938case "$hack_shutup_sigwait" in 33939 yes) 33940 # 33941 # Shut up a -Wmissing-prototypes warning for sigwait(). 33942 # 33943 cat >>confdefs.h <<\_ACEOF 33944#define SHUTUP_SIGWAIT 1 33945_ACEOF 33946 33947 ;; 33948esac 33949 33950case "$hack_shutup_sputaux" in 33951 yes) 33952 # 33953 # Shut up a -Wmissing-prototypes warning from <stdio.h>. 33954 # 33955 cat >>confdefs.h <<\_ACEOF 33956#define SHUTUP_SPUTAUX 1 33957_ACEOF 33958 33959 ;; 33960esac 33961 33962case "$hack_shutup_stdargcast" in 33963 yes) 33964 # 33965 # Shut up a -Wcast-qual warning from va_start(). 33966 # 33967 cat >>confdefs.h <<\_ACEOF 33968#define SHUTUP_STDARG_CAST 1 33969_ACEOF 33970 33971 ;; 33972esac 33973 33974case "$hack_shutup_in6addr_init_macros" in 33975 yes) 33976 33977cat >>confdefs.h <<\_ACEOF 33978#define BROKEN_IN6ADDR_INIT_MACROS 1 33979_ACEOF 33980 33981 ;; 33982esac 33983 33984# 33985# Substitutions 33986# 33987 33988BIND9_TOP_BUILDDIR=`pwd` 33989 33990 33991BIND9_INCLUDES=$BIND9_TOP_BUILDDIR/make/includes 33992 33993 33994BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules 33995 33996 33997LIBBIND_API=$srcdir/api 33998 33999ac_config_files="$ac_config_files make/rules make/mkdep make/includes Makefile bsd/Makefile doc/Makefile dst/Makefile include/Makefile inet/Makefile irs/Makefile isc/Makefile nameser/Makefile port_after.h port_before.h resolv/Makefile port/Makefile ${PORT_DIR}/Makefile ${PORT_INCLUDE}/Makefile include/isc/platform.h tests/Makefile" 34000 34001cat >confcache <<\_ACEOF 34002# This file is a shell script that caches the results of configure 34003# tests run on this system so they can be shared between configure 34004# scripts and configure runs, see configure's option --config-cache. 34005# It is not useful on other systems. If it contains results you don't 34006# want to keep, you may remove or edit it. 34007# 34008# config.status only pays attention to the cache file if you give it 34009# the --recheck option to rerun configure. 34010# 34011# `ac_cv_env_foo' variables (set or unset) will be overridden when 34012# loading this file, other *unset* `ac_cv_foo' will be assigned the 34013# following values. 34014 34015_ACEOF 34016 34017# The following way of writing the cache mishandles newlines in values, 34018# but we know of no workaround that is simple, portable, and efficient. 34019# So, we kill variables containing newlines. 34020# Ultrix sh set writes to stderr and can't be redirected directly, 34021# and sets the high bit in the cache file unless we assign to the vars. 34022( 34023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 34024 eval ac_val=\$$ac_var 34025 case $ac_val in #( 34026 *${as_nl}*) 34027 case $ac_var in #( 34028 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 34029echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 34030 esac 34031 case $ac_var in #( 34032 _ | IFS | as_nl) ;; #( 34033 *) $as_unset $ac_var ;; 34034 esac ;; 34035 esac 34036 done 34037 34038 (set) 2>&1 | 34039 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34040 *${as_nl}ac_space=\ *) 34041 # `set' does not quote correctly, so add quotes (double-quote 34042 # substitution turns \\\\ into \\, and sed turns \\ into \). 34043 sed -n \ 34044 "s/'/'\\\\''/g; 34045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34046 ;; #( 34047 *) 34048 # `set' quotes correctly as required by POSIX, so do not add quotes. 34049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34050 ;; 34051 esac | 34052 sort 34053) | 34054 sed ' 34055 /^ac_cv_env_/b end 34056 t clear 34057 :clear 34058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 34059 t end 34060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34061 :end' >>confcache 34062if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34063 if test -w "$cache_file"; then 34064 test "x$cache_file" != "x/dev/null" && 34065 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 34066echo "$as_me: updating cache $cache_file" >&6;} 34067 cat confcache >$cache_file 34068 else 34069 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 34070echo "$as_me: not updating unwritable cache $cache_file" >&6;} 34071 fi 34072fi 34073rm -f confcache 34074 34075test "x$prefix" = xNONE && prefix=$ac_default_prefix 34076# Let make expand exec_prefix. 34077test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34078 34079DEFS=-DHAVE_CONFIG_H 34080 34081ac_libobjs= 34082ac_ltlibobjs= 34083for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34084 # 1. Remove the extension, and $U if already installed. 34085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34086 ac_i=`echo "$ac_i" | sed "$ac_script"` 34087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34088 # will be set to the directory where LIBOBJS objects are built. 34089 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34090 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 34091done 34092LIBOBJS=$ac_libobjs 34093 34094LTLIBOBJS=$ac_ltlibobjs 34095 34096 34097 34098: ${CONFIG_STATUS=./config.status} 34099ac_clean_files_save=$ac_clean_files 34100ac_clean_files="$ac_clean_files $CONFIG_STATUS" 34101{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 34102echo "$as_me: creating $CONFIG_STATUS" >&6;} 34103cat >$CONFIG_STATUS <<_ACEOF 34104#! $SHELL 34105# Generated by $as_me. 34106# Run this file to recreate the current configuration. 34107# Compiler output produced by configure, useful for debugging 34108# configure, is in config.log if it exists. 34109 34110debug=false 34111ac_cs_recheck=false 34112ac_cs_silent=false 34113SHELL=\${CONFIG_SHELL-$SHELL} 34114_ACEOF 34115 34116cat >>$CONFIG_STATUS <<\_ACEOF 34117## --------------------- ## 34118## M4sh Initialization. ## 34119## --------------------- ## 34120 34121# Be more Bourne compatible 34122DUALCASE=1; export DUALCASE # for MKS sh 34123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 34124 emulate sh 34125 NULLCMD=: 34126 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 34127 # is contrary to our usage. Disable this feature. 34128 alias -g '${1+"$@"}'='"$@"' 34129 setopt NO_GLOB_SUBST 34130else 34131 case `(set -o) 2>/dev/null` in 34132 *posix*) set -o posix ;; 34133esac 34134 34135fi 34136 34137 34138 34139 34140# PATH needs CR 34141# Avoid depending upon Character Ranges. 34142as_cr_letters='abcdefghijklmnopqrstuvwxyz' 34143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34144as_cr_Letters=$as_cr_letters$as_cr_LETTERS 34145as_cr_digits='0123456789' 34146as_cr_alnum=$as_cr_Letters$as_cr_digits 34147 34148# The user is always right. 34149if test "${PATH_SEPARATOR+set}" != set; then 34150 echo "#! /bin/sh" >conf$$.sh 34151 echo "exit 0" >>conf$$.sh 34152 chmod +x conf$$.sh 34153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 34154 PATH_SEPARATOR=';' 34155 else 34156 PATH_SEPARATOR=: 34157 fi 34158 rm -f conf$$.sh 34159fi 34160 34161# Support unset when possible. 34162if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34163 as_unset=unset 34164else 34165 as_unset=false 34166fi 34167 34168 34169# IFS 34170# We need space, tab and new line, in precisely that order. Quoting is 34171# there to prevent editors from complaining about space-tab. 34172# (If _AS_PATH_WALK were called with IFS unset, it would disable word 34173# splitting by setting IFS to empty value.) 34174as_nl=' 34175' 34176IFS=" "" $as_nl" 34177 34178# Find who we are. Look in the path if we contain no directory separator. 34179case $0 in 34180 *[\\/]* ) as_myself=$0 ;; 34181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34182for as_dir in $PATH 34183do 34184 IFS=$as_save_IFS 34185 test -z "$as_dir" && as_dir=. 34186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 34187done 34188IFS=$as_save_IFS 34189 34190 ;; 34191esac 34192# We did not find ourselves, most probably we were run as `sh COMMAND' 34193# in which case we are not to be found in the path. 34194if test "x$as_myself" = x; then 34195 as_myself=$0 34196fi 34197if test ! -f "$as_myself"; then 34198 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34199 { (exit 1); exit 1; } 34200fi 34201 34202# Work around bugs in pre-3.0 UWIN ksh. 34203for as_var in ENV MAIL MAILPATH 34204do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 34205done 34206PS1='$ ' 34207PS2='> ' 34208PS4='+ ' 34209 34210# NLS nuisances. 34211for as_var in \ 34212 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 34213 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 34214 LC_TELEPHONE LC_TIME 34215do 34216 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 34217 eval $as_var=C; export $as_var 34218 else 34219 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 34220 fi 34221done 34222 34223# Required to use basename. 34224if expr a : '\(a\)' >/dev/null 2>&1 && 34225 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34226 as_expr=expr 34227else 34228 as_expr=false 34229fi 34230 34231if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 34232 as_basename=basename 34233else 34234 as_basename=false 34235fi 34236 34237 34238# Name of the executable. 34239as_me=`$as_basename -- "$0" || 34240$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 34241 X"$0" : 'X\(//\)$' \| \ 34242 X"$0" : 'X\(/\)' \| . 2>/dev/null || 34243echo X/"$0" | 34244 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34245 s//\1/ 34246 q 34247 } 34248 /^X\/\(\/\/\)$/{ 34249 s//\1/ 34250 q 34251 } 34252 /^X\/\(\/\).*/{ 34253 s//\1/ 34254 q 34255 } 34256 s/.*/./; q'` 34257 34258# CDPATH. 34259$as_unset CDPATH 34260 34261 34262 34263 as_lineno_1=$LINENO 34264 as_lineno_2=$LINENO 34265 test "x$as_lineno_1" != "x$as_lineno_2" && 34266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 34267 34268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 34269 # uniformly replaced by the line number. The first 'sed' inserts a 34270 # line-number line after each line using $LINENO; the second 'sed' 34271 # does the real work. The second script uses 'N' to pair each 34272 # line-number line with the line containing $LINENO, and appends 34273 # trailing '-' during substitution so that $LINENO is not a special 34274 # case at line end. 34275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 34276 # scripts with optimization help from Paolo Bonzini. Blame Lee 34277 # E. McMahon (1931-1989) for sed's syntax. :-) 34278 sed -n ' 34279 p 34280 /[$]LINENO/= 34281 ' <$as_myself | 34282 sed ' 34283 s/[$]LINENO.*/&-/ 34284 t lineno 34285 b 34286 :lineno 34287 N 34288 :loop 34289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 34290 t loop 34291 s/-\n.*// 34292 ' >$as_me.lineno && 34293 chmod +x "$as_me.lineno" || 34294 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 34295 { (exit 1); exit 1; }; } 34296 34297 # Don't try to exec as it changes $[0], causing all sort of problems 34298 # (the dirname of $[0] is not the place where we might find the 34299 # original and so on. Autoconf is especially sensitive to this). 34300 . "./$as_me.lineno" 34301 # Exit status is that of the last command. 34302 exit 34303} 34304 34305 34306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 34307 as_dirname=dirname 34308else 34309 as_dirname=false 34310fi 34311 34312ECHO_C= ECHO_N= ECHO_T= 34313case `echo -n x` in 34314-n*) 34315 case `echo 'x\c'` in 34316 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 34317 *) ECHO_C='\c';; 34318 esac;; 34319*) 34320 ECHO_N='-n';; 34321esac 34322 34323if expr a : '\(a\)' >/dev/null 2>&1 && 34324 test "X`expr 00001 : '.*\(...\)'`" = X001; then 34325 as_expr=expr 34326else 34327 as_expr=false 34328fi 34329 34330rm -f conf$$ conf$$.exe conf$$.file 34331if test -d conf$$.dir; then 34332 rm -f conf$$.dir/conf$$.file 34333else 34334 rm -f conf$$.dir 34335 mkdir conf$$.dir 34336fi 34337echo >conf$$.file 34338if ln -s conf$$.file conf$$ 2>/dev/null; then 34339 as_ln_s='ln -s' 34340 # ... but there are two gotchas: 34341 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 34342 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 34343 # In both cases, we have to default to `cp -p'. 34344 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 34345 as_ln_s='cp -p' 34346elif ln conf$$.file conf$$ 2>/dev/null; then 34347 as_ln_s=ln 34348else 34349 as_ln_s='cp -p' 34350fi 34351rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 34352rmdir conf$$.dir 2>/dev/null 34353 34354if mkdir -p . 2>/dev/null; then 34355 as_mkdir_p=: 34356else 34357 test -d ./-p && rmdir ./-p 34358 as_mkdir_p=false 34359fi 34360 34361if test -x / >/dev/null 2>&1; then 34362 as_test_x='test -x' 34363else 34364 if ls -dL / >/dev/null 2>&1; then 34365 as_ls_L_option=L 34366 else 34367 as_ls_L_option= 34368 fi 34369 as_test_x=' 34370 eval sh -c '\'' 34371 if test -d "$1"; then 34372 test -d "$1/."; 34373 else 34374 case $1 in 34375 -*)set "./$1";; 34376 esac; 34377 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 34378 ???[sx]*):;;*)false;;esac;fi 34379 '\'' sh 34380 ' 34381fi 34382as_executable_p=$as_test_x 34383 34384# Sed expression to map a string onto a valid CPP name. 34385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 34386 34387# Sed expression to map a string onto a valid variable name. 34388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 34389 34390 34391exec 6>&1 34392 34393# Save the log message, to keep $[0] and so on meaningful, and to 34394# report actual input values of CONFIG_FILES etc. instead of their 34395# values after options handling. 34396ac_log=" 34397This file was extended by $as_me, which was 34398generated by GNU Autoconf 2.61. Invocation command line was 34399 34400 CONFIG_FILES = $CONFIG_FILES 34401 CONFIG_HEADERS = $CONFIG_HEADERS 34402 CONFIG_LINKS = $CONFIG_LINKS 34403 CONFIG_COMMANDS = $CONFIG_COMMANDS 34404 $ $0 $@ 34405 34406on `(hostname || uname -n) 2>/dev/null | sed 1q` 34407" 34408 34409_ACEOF 34410 34411cat >>$CONFIG_STATUS <<_ACEOF 34412# Files that config.status was made for. 34413config_files="$ac_config_files" 34414config_headers="$ac_config_headers" 34415 34416_ACEOF 34417 34418cat >>$CONFIG_STATUS <<\_ACEOF 34419ac_cs_usage="\ 34420\`$as_me' instantiates files from templates according to the 34421current configuration. 34422 34423Usage: $0 [OPTIONS] [FILE]... 34424 34425 -h, --help print this help, then exit 34426 -V, --version print version number and configuration settings, then exit 34427 -q, --quiet do not print progress messages 34428 -d, --debug don't remove temporary files 34429 --recheck update $as_me by reconfiguring in the same conditions 34430 --file=FILE[:TEMPLATE] 34431 instantiate the configuration file FILE 34432 --header=FILE[:TEMPLATE] 34433 instantiate the configuration header FILE 34434 34435Configuration files: 34436$config_files 34437 34438Configuration headers: 34439$config_headers 34440 34441Report bugs to <bug-autoconf@gnu.org>." 34442 34443_ACEOF 34444cat >>$CONFIG_STATUS <<_ACEOF 34445ac_cs_version="\\ 34446config.status 34447configured by $0, generated by GNU Autoconf 2.61, 34448 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 34449 34450Copyright (C) 2006 Free Software Foundation, Inc. 34451This config.status script is free software; the Free Software Foundation 34452gives unlimited permission to copy, distribute and modify it." 34453 34454ac_pwd='$ac_pwd' 34455srcdir='$srcdir' 34456INSTALL='$INSTALL' 34457_ACEOF 34458 34459cat >>$CONFIG_STATUS <<\_ACEOF 34460# If no file are specified by the user, then we need to provide default 34461# value. By we need to know if files were specified by the user. 34462ac_need_defaults=: 34463while test $# != 0 34464do 34465 case $1 in 34466 --*=*) 34467 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34469 ac_shift=: 34470 ;; 34471 *) 34472 ac_option=$1 34473 ac_optarg=$2 34474 ac_shift=shift 34475 ;; 34476 esac 34477 34478 case $ac_option in 34479 # Handling of the options. 34480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34481 ac_cs_recheck=: ;; 34482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34483 echo "$ac_cs_version"; exit ;; 34484 --debug | --debu | --deb | --de | --d | -d ) 34485 debug=: ;; 34486 --file | --fil | --fi | --f ) 34487 $ac_shift 34488 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 34489 ac_need_defaults=false;; 34490 --header | --heade | --head | --hea ) 34491 $ac_shift 34492 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 34493 ac_need_defaults=false;; 34494 --he | --h) 34495 # Conflict between --help and --header 34496 { echo "$as_me: error: ambiguous option: $1 34497Try \`$0 --help' for more information." >&2 34498 { (exit 1); exit 1; }; };; 34499 --help | --hel | -h ) 34500 echo "$ac_cs_usage"; exit ;; 34501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34502 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34503 ac_cs_silent=: ;; 34504 34505 # This is an error. 34506 -*) { echo "$as_me: error: unrecognized option: $1 34507Try \`$0 --help' for more information." >&2 34508 { (exit 1); exit 1; }; } ;; 34509 34510 *) ac_config_targets="$ac_config_targets $1" 34511 ac_need_defaults=false ;; 34512 34513 esac 34514 shift 34515done 34516 34517ac_configure_extra_args= 34518 34519if $ac_cs_silent; then 34520 exec 6>/dev/null 34521 ac_configure_extra_args="$ac_configure_extra_args --silent" 34522fi 34523 34524_ACEOF 34525cat >>$CONFIG_STATUS <<_ACEOF 34526if \$ac_cs_recheck; then 34527 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 34528 CONFIG_SHELL=$SHELL 34529 export CONFIG_SHELL 34530 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34531fi 34532 34533_ACEOF 34534cat >>$CONFIG_STATUS <<\_ACEOF 34535exec 5>>config.log 34536{ 34537 echo 34538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34539## Running $as_me. ## 34540_ASBOX 34541 echo "$ac_log" 34542} >&5 34543 34544_ACEOF 34545cat >>$CONFIG_STATUS <<_ACEOF 34546_ACEOF 34547 34548cat >>$CONFIG_STATUS <<\_ACEOF 34549 34550# Handling of arguments. 34551for ac_config_target in $ac_config_targets 34552do 34553 case $ac_config_target in 34554 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 34555 "make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;; 34556 "make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;; 34557 "make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;; 34558 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34559 "bsd/Makefile") CONFIG_FILES="$CONFIG_FILES bsd/Makefile" ;; 34560 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34561 "dst/Makefile") CONFIG_FILES="$CONFIG_FILES dst/Makefile" ;; 34562 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34563 "inet/Makefile") CONFIG_FILES="$CONFIG_FILES inet/Makefile" ;; 34564 "irs/Makefile") CONFIG_FILES="$CONFIG_FILES irs/Makefile" ;; 34565 "isc/Makefile") CONFIG_FILES="$CONFIG_FILES isc/Makefile" ;; 34566 "nameser/Makefile") CONFIG_FILES="$CONFIG_FILES nameser/Makefile" ;; 34567 "port_after.h") CONFIG_FILES="$CONFIG_FILES port_after.h" ;; 34568 "port_before.h") CONFIG_FILES="$CONFIG_FILES port_before.h" ;; 34569 "resolv/Makefile") CONFIG_FILES="$CONFIG_FILES resolv/Makefile" ;; 34570 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 34571 "${PORT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${PORT_DIR}/Makefile" ;; 34572 "${PORT_INCLUDE}/Makefile") CONFIG_FILES="$CONFIG_FILES ${PORT_INCLUDE}/Makefile" ;; 34573 "include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES include/isc/platform.h" ;; 34574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 34575 34576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 34577echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 34578 { (exit 1); exit 1; }; };; 34579 esac 34580done 34581 34582 34583# If the user did not use the arguments to specify the items to instantiate, 34584# then the envvar interface is used. Set only those that are not. 34585# We use the long form for the default assignment because of an extremely 34586# bizarre bug on SunOS 4.1.3. 34587if $ac_need_defaults; then 34588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34590fi 34591 34592# Have a temporary directory for convenience. Make it in the build tree 34593# simply because there is no reason against having it here, and in addition, 34594# creating and moving files from /tmp can sometimes cause problems. 34595# Hook for its removal unless debugging. 34596# Note that there is a small window in which the directory will not be cleaned: 34597# after its creation but before its name has been assigned to `$tmp'. 34598$debug || 34599{ 34600 tmp= 34601 trap 'exit_status=$? 34602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 34603' 0 34604 trap '{ (exit 1); exit 1; }' 1 2 13 15 34605} 34606# Create a (secure) tmp directory for tmp files. 34607 34608{ 34609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34610 test -n "$tmp" && test -d "$tmp" 34611} || 34612{ 34613 tmp=./conf$$-$RANDOM 34614 (umask 077 && mkdir "$tmp") 34615} || 34616{ 34617 echo "$me: cannot create a temporary directory in ." >&2 34618 { (exit 1); exit 1; } 34619} 34620 34621# 34622# Set up the sed scripts for CONFIG_FILES section. 34623# 34624 34625# No need to generate the scripts if there are no CONFIG_FILES. 34626# This happens for instance when ./config.status config.h 34627if test -n "$CONFIG_FILES"; then 34628 34629_ACEOF 34630 34631# Create sed commands to just substitute file output variables. 34632 34633# Remaining file output variables are in a fragment that also has non-file 34634# output varibles. 34635 34636 34637 34638ac_delim='%!_!# ' 34639for ac_last_try in false false false false false :; do 34640 cat >conf$$subs.sed <<_ACEOF 34641SHELL!$SHELL$ac_delim 34642PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 34643PACKAGE_NAME!$PACKAGE_NAME$ac_delim 34644PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 34645PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 34646PACKAGE_STRING!$PACKAGE_STRING$ac_delim 34647PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 34648exec_prefix!$exec_prefix$ac_delim 34649prefix!$prefix$ac_delim 34650program_transform_name!$program_transform_name$ac_delim 34651bindir!$bindir$ac_delim 34652sbindir!$sbindir$ac_delim 34653libexecdir!$libexecdir$ac_delim 34654datarootdir!$datarootdir$ac_delim 34655datadir!$datadir$ac_delim 34656sysconfdir!$sysconfdir$ac_delim 34657sharedstatedir!$sharedstatedir$ac_delim 34658localstatedir!$localstatedir$ac_delim 34659includedir!$includedir$ac_delim 34660oldincludedir!$oldincludedir$ac_delim 34661docdir!$docdir$ac_delim 34662infodir!$infodir$ac_delim 34663htmldir!$htmldir$ac_delim 34664dvidir!$dvidir$ac_delim 34665pdfdir!$pdfdir$ac_delim 34666psdir!$psdir$ac_delim 34667libdir!$libdir$ac_delim 34668localedir!$localedir$ac_delim 34669mandir!$mandir$ac_delim 34670DEFS!$DEFS$ac_delim 34671ECHO_C!$ECHO_C$ac_delim 34672ECHO_N!$ECHO_N$ac_delim 34673ECHO_T!$ECHO_T$ac_delim 34674LIBS!$LIBS$ac_delim 34675build_alias!$build_alias$ac_delim 34676host_alias!$host_alias$ac_delim 34677target_alias!$target_alias$ac_delim 34678build!$build$ac_delim 34679build_cpu!$build_cpu$ac_delim 34680build_vendor!$build_vendor$ac_delim 34681build_os!$build_os$ac_delim 34682host!$host$ac_delim 34683host_cpu!$host_cpu$ac_delim 34684host_vendor!$host_vendor$ac_delim 34685host_os!$host_os$ac_delim 34686SET_MAKE!$SET_MAKE$ac_delim 34687CC!$CC$ac_delim 34688CFLAGS!$CFLAGS$ac_delim 34689LDFLAGS!$LDFLAGS$ac_delim 34690CPPFLAGS!$CPPFLAGS$ac_delim 34691ac_ct_CC!$ac_ct_CC$ac_delim 34692EXEEXT!$EXEEXT$ac_delim 34693OBJEXT!$OBJEXT$ac_delim 34694SED!$SED$ac_delim 34695GREP!$GREP$ac_delim 34696EGREP!$EGREP$ac_delim 34697LN_S!$LN_S$ac_delim 34698ECHO!$ECHO$ac_delim 34699AR!$AR$ac_delim 34700RANLIB!$RANLIB$ac_delim 34701STRIP!$STRIP$ac_delim 34702DSYMUTIL!$DSYMUTIL$ac_delim 34703NMEDIT!$NMEDIT$ac_delim 34704CPP!$CPP$ac_delim 34705CXX!$CXX$ac_delim 34706CXXFLAGS!$CXXFLAGS$ac_delim 34707ac_ct_CXX!$ac_ct_CXX$ac_delim 34708CXXCPP!$CXXCPP$ac_delim 34709F77!$F77$ac_delim 34710FFLAGS!$FFLAGS$ac_delim 34711ac_ct_F77!$ac_ct_F77$ac_delim 34712LIBTOOL!$LIBTOOL$ac_delim 34713INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 34714INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 34715INSTALL_DATA!$INSTALL_DATA$ac_delim 34716STD_CINCLUDES!$STD_CINCLUDES$ac_delim 34717STD_CDEFINES!$STD_CDEFINES$ac_delim 34718STD_CWARNINGS!$STD_CWARNINGS$ac_delim 34719CCOPT!$CCOPT$ac_delim 34720ARFLAGS!$ARFLAGS$ac_delim 34721TBL!$TBL$ac_delim 34722NROFF!$NROFF$ac_delim 34723TR!$TR$ac_delim 34724LN!$LN$ac_delim 34725ETAGS!$ETAGS$ac_delim 34726PERL!$PERL$ac_delim 34727ISC_PLATFORM_NEEDSYSSELECTH!$ISC_PLATFORM_NEEDSYSSELECTH$ac_delim 34728WANT_IRS_GR!$WANT_IRS_GR$ac_delim 34729_ACEOF 34730 34731 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then 34732 break 34733 elif $ac_last_try; then 34734 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 34735echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 34736 { (exit 1); exit 1; }; } 34737 else 34738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34739 fi 34740done 34741 34742ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 34743if test -n "$ac_eof"; then 34744 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 34745 ac_eof=`expr $ac_eof + 1` 34746fi 34747 34748cat >>$CONFIG_STATUS <<_ACEOF 34749cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 34750/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34751/^[ ]*@BIND9_INCLUDES@[ ]*$/{ 34752r $BIND9_INCLUDES 34753d 34754} 34755/^[ ]*@BIND9_MAKE_RULES@[ ]*$/{ 34756r $BIND9_MAKE_RULES 34757d 34758} 34759/^[ ]*@LIBBIND_API@[ ]*$/{ 34760r $LIBBIND_API 34761d 34762} 34763_ACEOF 34764sed ' 34765s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 34766s/^/s,@/; s/!/@,|#_!!_#|/ 34767:n 34768t n 34769s/'"$ac_delim"'$/,g/; t 34770s/$/\\/; p 34771N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 34772' >>$CONFIG_STATUS <conf$$subs.sed 34773rm -f conf$$subs.sed 34774cat >>$CONFIG_STATUS <<_ACEOF 34775CEOF$ac_eof 34776_ACEOF 34777 34778 34779ac_delim='%!_!# ' 34780for ac_last_try in false false false false false :; do 34781 cat >conf$$subs.sed <<_ACEOF 34782WANT_IRS_GR_OBJS!$WANT_IRS_GR_OBJS$ac_delim 34783WANT_IRS_PW!$WANT_IRS_PW$ac_delim 34784WANT_IRS_PW_OBJS!$WANT_IRS_PW_OBJS$ac_delim 34785WANT_IRS_NIS!$WANT_IRS_NIS$ac_delim 34786WANT_IRS_NIS_OBJS!$WANT_IRS_NIS_OBJS$ac_delim 34787WANT_IRS_NISGR_OBJS!$WANT_IRS_NISGR_OBJS$ac_delim 34788WANT_IRS_NISPW_OBJS!$WANT_IRS_NISPW_OBJS$ac_delim 34789WANT_IRS_DBPW_OBJS!$WANT_IRS_DBPW_OBJS$ac_delim 34790ALWAYS_DEFINES!$ALWAYS_DEFINES$ac_delim 34791DO_PTHREADS!$DO_PTHREADS$ac_delim 34792WANT_IRS_THREADSGR_OBJS!$WANT_IRS_THREADSGR_OBJS$ac_delim 34793WANT_IRS_THREADSPW_OBJS!$WANT_IRS_THREADSPW_OBJS$ac_delim 34794WANT_IRS_THREADS_OBJS!$WANT_IRS_THREADS_OBJS$ac_delim 34795WANT_THREADS_OBJS!$WANT_THREADS_OBJS$ac_delim 34796USE_IFNAMELINKID!$USE_IFNAMELINKID$ac_delim 34797ISC_THREAD_DIR!$ISC_THREAD_DIR$ac_delim 34798DAEMON_OBJS!$DAEMON_OBJS$ac_delim 34799NEED_DAEMON!$NEED_DAEMON$ac_delim 34800STRSEP_OBJS!$STRSEP_OBJS$ac_delim 34801NEED_STRSEP!$NEED_STRSEP$ac_delim 34802NEED_STRERROR!$NEED_STRERROR$ac_delim 34803MKDEPCC!$MKDEPCC$ac_delim 34804MKDEPCFLAGS!$MKDEPCFLAGS$ac_delim 34805MKDEPPROG!$MKDEPPROG$ac_delim 34806IRIX_DNSSEC_WARNINGS_HACK!$IRIX_DNSSEC_WARNINGS_HACK$ac_delim 34807purify_path!$purify_path$ac_delim 34808PURIFY!$PURIFY$ac_delim 34809O!$O$ac_delim 34810A!$A$ac_delim 34811SA!$SA$ac_delim 34812LIBTOOL_MKDEP_SED!$LIBTOOL_MKDEP_SED$ac_delim 34813LIBTOOL_MODE_COMPILE!$LIBTOOL_MODE_COMPILE$ac_delim 34814LIBTOOL_MODE_INSTALL!$LIBTOOL_MODE_INSTALL$ac_delim 34815LIBTOOL_MODE_LINK!$LIBTOOL_MODE_LINK$ac_delim 34816HAS_INET6_STRUCTS!$HAS_INET6_STRUCTS$ac_delim 34817ISC_PLATFORM_NEEDNETINETIN6H!$ISC_PLATFORM_NEEDNETINETIN6H$ac_delim 34818ISC_PLATFORM_NEEDNETINET6IN6H!$ISC_PLATFORM_NEEDNETINET6IN6H$ac_delim 34819HAS_IN_ADDR6!$HAS_IN_ADDR6$ac_delim 34820NEED_IN6ADDR_ANY!$NEED_IN6ADDR_ANY$ac_delim 34821ISC_PLATFORM_HAVEIN6PKTINFO!$ISC_PLATFORM_HAVEIN6PKTINFO$ac_delim 34822ISC_PLATFORM_FIXIN6ISADDR!$ISC_PLATFORM_FIXIN6ISADDR$ac_delim 34823ISC_IPV6_H!$ISC_IPV6_H$ac_delim 34824ISC_IPV6_O!$ISC_IPV6_O$ac_delim 34825ISC_ISCIPV6_O!$ISC_ISCIPV6_O$ac_delim 34826ISC_IPV6_C!$ISC_IPV6_C$ac_delim 34827HAVE_SIN6_SCOPE_ID!$HAVE_SIN6_SCOPE_ID$ac_delim 34828HAVE_SOCKADDR_STORAGE!$HAVE_SOCKADDR_STORAGE$ac_delim 34829ISC_PLATFORM_NEEDNTOP!$ISC_PLATFORM_NEEDNTOP$ac_delim 34830ISC_PLATFORM_NEEDPTON!$ISC_PLATFORM_NEEDPTON$ac_delim 34831ISC_PLATFORM_NEEDATON!$ISC_PLATFORM_NEEDATON$ac_delim 34832HAVE_SA_LEN!$HAVE_SA_LEN$ac_delim 34833HAVE_MINIMUM_IFREQ!$HAVE_MINIMUM_IFREQ$ac_delim 34834BSD_COMP!$BSD_COMP$ac_delim 34835SOLARIS_BITTYPES!$SOLARIS_BITTYPES$ac_delim 34836USE_FIONBIO_IOCTL!$USE_FIONBIO_IOCTL$ac_delim 34837PORT_NONBLOCK!$PORT_NONBLOCK$ac_delim 34838PORT_DIR!$PORT_DIR$ac_delim 34839USE_POLL!$USE_POLL$ac_delim 34840HAVE_MD5!$HAVE_MD5$ac_delim 34841SOLARIS2!$SOLARIS2$ac_delim 34842PORT_INCLUDE!$PORT_INCLUDE$ac_delim 34843ISC_PLATFORM_MSGHDRFLAVOR!$ISC_PLATFORM_MSGHDRFLAVOR$ac_delim 34844ISC_PLATFORM_NEEDPORTT!$ISC_PLATFORM_NEEDPORTT$ac_delim 34845ISC_PLATFORM_NEEDTIMESPEC!$ISC_PLATFORM_NEEDTIMESPEC$ac_delim 34846ISC_LWRES_ENDHOSTENTINT!$ISC_LWRES_ENDHOSTENTINT$ac_delim 34847ISC_LWRES_SETNETENTINT!$ISC_LWRES_SETNETENTINT$ac_delim 34848ISC_LWRES_ENDNETENTINT!$ISC_LWRES_ENDNETENTINT$ac_delim 34849ISC_LWRES_GETHOSTBYADDRVOID!$ISC_LWRES_GETHOSTBYADDRVOID$ac_delim 34850ISC_LWRES_NEEDHERRNO!$ISC_LWRES_NEEDHERRNO$ac_delim 34851ISC_LWRES_GETIPNODEPROTO!$ISC_LWRES_GETIPNODEPROTO$ac_delim 34852ISC_LWRES_GETADDRINFOPROTO!$ISC_LWRES_GETADDRINFOPROTO$ac_delim 34853ISC_LWRES_GETNAMEINFOPROTO!$ISC_LWRES_GETNAMEINFOPROTO$ac_delim 34854NEED_PSELECT!$NEED_PSELECT$ac_delim 34855NEED_GETTIMEOFDAY!$NEED_GETTIMEOFDAY$ac_delim 34856HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim 34857ISC_PLATFORM_NEEDSTRSEP!$ISC_PLATFORM_NEEDSTRSEP$ac_delim 34858ISC_PLATFORM_NEEDVSNPRINTF!$ISC_PLATFORM_NEEDVSNPRINTF$ac_delim 34859ISC_EXTRA_OBJS!$ISC_EXTRA_OBJS$ac_delim 34860ISC_EXTRA_SRCS!$ISC_EXTRA_SRCS$ac_delim 34861ISC_PLATFORM_QUADFORMAT!$ISC_PLATFORM_QUADFORMAT$ac_delim 34862ISC_SOCKLEN_T!$ISC_SOCKLEN_T$ac_delim 34863GETGROUPLIST_ARGS!$GETGROUPLIST_ARGS$ac_delim 34864NET_R_ARGS!$NET_R_ARGS$ac_delim 34865NET_R_BAD!$NET_R_BAD$ac_delim 34866NET_R_COPY!$NET_R_COPY$ac_delim 34867NET_R_COPY_ARGS!$NET_R_COPY_ARGS$ac_delim 34868NET_R_OK!$NET_R_OK$ac_delim 34869NET_R_SETANSWER!$NET_R_SETANSWER$ac_delim 34870NET_R_RETURN!$NET_R_RETURN$ac_delim 34871GETNETBYADDR_ADDR_T!$GETNETBYADDR_ADDR_T$ac_delim 34872NETENT_DATA!$NETENT_DATA$ac_delim 34873NET_R_ENT_ARGS!$NET_R_ENT_ARGS$ac_delim 34874NET_R_SET_RESULT!$NET_R_SET_RESULT$ac_delim 34875NET_R_SET_RETURN!$NET_R_SET_RETURN$ac_delim 34876NET_R_END_RESULT!$NET_R_END_RESULT$ac_delim 34877NET_R_END_RETURN!$NET_R_END_RETURN$ac_delim 34878GROUP_R_ARGS!$GROUP_R_ARGS$ac_delim 34879_ACEOF 34880 34881 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 34882 break 34883 elif $ac_last_try; then 34884 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 34885echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 34886 { (exit 1); exit 1; }; } 34887 else 34888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34889 fi 34890done 34891 34892ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 34893if test -n "$ac_eof"; then 34894 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 34895 ac_eof=`expr $ac_eof + 1` 34896fi 34897 34898cat >>$CONFIG_STATUS <<_ACEOF 34899cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 34900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34901_ACEOF 34902sed ' 34903s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 34904s/^/s,@/; s/!/@,|#_!!_#|/ 34905:n 34906t n 34907s/'"$ac_delim"'$/,g/; t 34908s/$/\\/; p 34909N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 34910' >>$CONFIG_STATUS <conf$$subs.sed 34911rm -f conf$$subs.sed 34912cat >>$CONFIG_STATUS <<_ACEOF 34913CEOF$ac_eof 34914_ACEOF 34915 34916 34917ac_delim='%!_!# ' 34918for ac_last_try in false false false false false :; do 34919 cat >conf$$subs.sed <<_ACEOF 34920GROUP_R_BAD!$GROUP_R_BAD$ac_delim 34921GROUP_R_OK!$GROUP_R_OK$ac_delim 34922GROUP_R_RETURN!$GROUP_R_RETURN$ac_delim 34923GROUP_R_END_RESULT!$GROUP_R_END_RESULT$ac_delim 34924GROUP_R_END_RETURN!$GROUP_R_END_RETURN$ac_delim 34925GROUP_R_ENT_ARGS!$GROUP_R_ENT_ARGS$ac_delim 34926GROUP_R_SET_RESULT!$GROUP_R_SET_RESULT$ac_delim 34927GROUP_R_SET_RETURN!$GROUP_R_SET_RETURN$ac_delim 34928HOST_R_ARGS!$HOST_R_ARGS$ac_delim 34929HOST_R_BAD!$HOST_R_BAD$ac_delim 34930HOST_R_COPY!$HOST_R_COPY$ac_delim 34931HOST_R_COPY_ARGS!$HOST_R_COPY_ARGS$ac_delim 34932HOST_R_ERRNO!$HOST_R_ERRNO$ac_delim 34933HOST_R_OK!$HOST_R_OK$ac_delim 34934HOST_R_RETURN!$HOST_R_RETURN$ac_delim 34935HOST_R_SETANSWER!$HOST_R_SETANSWER$ac_delim 34936HOSTENT_DATA!$HOSTENT_DATA$ac_delim 34937HOST_R_END_RESULT!$HOST_R_END_RESULT$ac_delim 34938HOST_R_END_RETURN!$HOST_R_END_RETURN$ac_delim 34939HOST_R_ENT_ARGS!$HOST_R_ENT_ARGS$ac_delim 34940HOST_R_SET_RESULT!$HOST_R_SET_RESULT$ac_delim 34941HOST_R_SET_RETURN!$HOST_R_SET_RETURN$ac_delim 34942SETPWENT_VOID!$SETPWENT_VOID$ac_delim 34943SETGRENT_VOID!$SETGRENT_VOID$ac_delim 34944NGR_R_CONST!$NGR_R_CONST$ac_delim 34945NGR_R_ARGS!$NGR_R_ARGS$ac_delim 34946NGR_R_BAD!$NGR_R_BAD$ac_delim 34947NGR_R_COPY!$NGR_R_COPY$ac_delim 34948NGR_R_COPY_ARGS!$NGR_R_COPY_ARGS$ac_delim 34949NGR_R_OK!$NGR_R_OK$ac_delim 34950NGR_R_RETURN!$NGR_R_RETURN$ac_delim 34951NGR_R_PRIVATE!$NGR_R_PRIVATE$ac_delim 34952NGR_R_END_RESULT!$NGR_R_END_RESULT$ac_delim 34953NGR_R_END_RETURN!$NGR_R_END_RETURN$ac_delim 34954NGR_R_END_ARGS!$NGR_R_END_ARGS$ac_delim 34955NGR_R_SET_RESULT!$NGR_R_SET_RESULT$ac_delim 34956NGR_R_SET_RETURN!$NGR_R_SET_RETURN$ac_delim 34957NGR_R_SET_ARGS!$NGR_R_SET_ARGS$ac_delim 34958NGR_R_SET_CONST!$NGR_R_SET_CONST$ac_delim 34959PROTO_R_ARGS!$PROTO_R_ARGS$ac_delim 34960PROTO_R_BAD!$PROTO_R_BAD$ac_delim 34961PROTO_R_COPY!$PROTO_R_COPY$ac_delim 34962PROTO_R_COPY_ARGS!$PROTO_R_COPY_ARGS$ac_delim 34963PROTO_R_OK!$PROTO_R_OK$ac_delim 34964PROTO_R_SETANSWER!$PROTO_R_SETANSWER$ac_delim 34965PROTO_R_RETURN!$PROTO_R_RETURN$ac_delim 34966PROTOENT_DATA!$PROTOENT_DATA$ac_delim 34967PROTO_R_END_RESULT!$PROTO_R_END_RESULT$ac_delim 34968PROTO_R_END_RETURN!$PROTO_R_END_RETURN$ac_delim 34969PROTO_R_ENT_ARGS!$PROTO_R_ENT_ARGS$ac_delim 34970PROTO_R_ENT_UNUSED!$PROTO_R_ENT_UNUSED$ac_delim 34971PROTO_R_SET_RESULT!$PROTO_R_SET_RESULT$ac_delim 34972PROTO_R_SET_RETURN!$PROTO_R_SET_RETURN$ac_delim 34973PASS_R_ARGS!$PASS_R_ARGS$ac_delim 34974PASS_R_BAD!$PASS_R_BAD$ac_delim 34975PASS_R_COPY!$PASS_R_COPY$ac_delim 34976PASS_R_COPY_ARGS!$PASS_R_COPY_ARGS$ac_delim 34977PASS_R_OK!$PASS_R_OK$ac_delim 34978PASS_R_RETURN!$PASS_R_RETURN$ac_delim 34979PASS_R_END_RESULT!$PASS_R_END_RESULT$ac_delim 34980PASS_R_END_RETURN!$PASS_R_END_RETURN$ac_delim 34981PASS_R_ENT_ARGS!$PASS_R_ENT_ARGS$ac_delim 34982PASS_R_SET_RESULT!$PASS_R_SET_RESULT$ac_delim 34983PASS_R_SET_RETURN!$PASS_R_SET_RETURN$ac_delim 34984SERV_R_ARGS!$SERV_R_ARGS$ac_delim 34985SERV_R_BAD!$SERV_R_BAD$ac_delim 34986SERV_R_COPY!$SERV_R_COPY$ac_delim 34987SERV_R_COPY_ARGS!$SERV_R_COPY_ARGS$ac_delim 34988SERV_R_OK!$SERV_R_OK$ac_delim 34989SERV_R_SETANSWER!$SERV_R_SETANSWER$ac_delim 34990SERV_R_RETURN!$SERV_R_RETURN$ac_delim 34991SERVENT_DATA!$SERVENT_DATA$ac_delim 34992SERV_R_END_RESULT!$SERV_R_END_RESULT$ac_delim 34993SERV_R_END_RETURN!$SERV_R_END_RETURN$ac_delim 34994SERV_R_ENT_ARGS!$SERV_R_ENT_ARGS$ac_delim 34995SERV_R_ENT_UNUSED!$SERV_R_ENT_UNUSED$ac_delim 34996SERV_R_SET_RESULT!$SERV_R_SET_RESULT$ac_delim 34997SERV_R_SET_RETURN!$SERV_R_SET_RETURN$ac_delim 34998SETNETGRENT_ARGS!$SETNETGRENT_ARGS$ac_delim 34999INNETGR_ARGS!$INNETGR_ARGS$ac_delim 35000BIND9_TOP_BUILDDIR!$BIND9_TOP_BUILDDIR$ac_delim 35001LIBOBJS!$LIBOBJS$ac_delim 35002LTLIBOBJS!$LTLIBOBJS$ac_delim 35003_ACEOF 35004 35005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then 35006 break 35007 elif $ac_last_try; then 35008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 35009echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 35010 { (exit 1); exit 1; }; } 35011 else 35012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35013 fi 35014done 35015 35016ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 35017if test -n "$ac_eof"; then 35018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 35019 ac_eof=`expr $ac_eof + 1` 35020fi 35021 35022cat >>$CONFIG_STATUS <<_ACEOF 35023cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 35024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 35025_ACEOF 35026sed ' 35027s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 35028s/^/s,@/; s/!/@,|#_!!_#|/ 35029:n 35030t n 35031s/'"$ac_delim"'$/,g/; t 35032s/$/\\/; p 35033N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 35034' >>$CONFIG_STATUS <conf$$subs.sed 35035rm -f conf$$subs.sed 35036cat >>$CONFIG_STATUS <<_ACEOF 35037:end 35038s/|#_!!_#|//g 35039CEOF$ac_eof 35040_ACEOF 35041 35042 35043# VPATH may cause trouble with some makes, so we remove $(srcdir), 35044# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 35045# trailing colons and then remove the whole line if VPATH becomes empty 35046# (actually we leave an empty line to preserve line numbers). 35047if test "x$srcdir" = x.; then 35048 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 35049s/:*\$(srcdir):*/:/ 35050s/:*\${srcdir}:*/:/ 35051s/:*@srcdir@:*/:/ 35052s/^\([^=]*=[ ]*\):*/\1/ 35053s/:*$// 35054s/^[^=]*=[ ]*$// 35055}' 35056fi 35057 35058cat >>$CONFIG_STATUS <<\_ACEOF 35059fi # test -n "$CONFIG_FILES" 35060 35061 35062for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 35063do 35064 case $ac_tag in 35065 :[FHLC]) ac_mode=$ac_tag; continue;; 35066 esac 35067 case $ac_mode$ac_tag in 35068 :[FHL]*:*);; 35069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 35070echo "$as_me: error: Invalid tag $ac_tag." >&2;} 35071 { (exit 1); exit 1; }; };; 35072 :[FH]-) ac_tag=-:-;; 35073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 35074 esac 35075 ac_save_IFS=$IFS 35076 IFS=: 35077 set x $ac_tag 35078 IFS=$ac_save_IFS 35079 shift 35080 ac_file=$1 35081 shift 35082 35083 case $ac_mode in 35084 :L) ac_source=$1;; 35085 :[FH]) 35086 ac_file_inputs= 35087 for ac_f 35088 do 35089 case $ac_f in 35090 -) ac_f="$tmp/stdin";; 35091 *) # Look for the file first in the build tree, then in the source tree 35092 # (if the path is not absolute). The absolute path cannot be DOS-style, 35093 # because $ac_f cannot contain `:'. 35094 test -f "$ac_f" || 35095 case $ac_f in 35096 [\\/$]*) false;; 35097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 35098 esac || 35099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 35100echo "$as_me: error: cannot find input file: $ac_f" >&2;} 35101 { (exit 1); exit 1; }; };; 35102 esac 35103 ac_file_inputs="$ac_file_inputs $ac_f" 35104 done 35105 35106 # Let's still pretend it is `configure' which instantiates (i.e., don't 35107 # use $as_me), people would be surprised to read: 35108 # /* config.h. Generated by config.status. */ 35109 configure_input="Generated from "`IFS=: 35110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 35111 if test x"$ac_file" != x-; then 35112 configure_input="$ac_file. $configure_input" 35113 { echo "$as_me:$LINENO: creating $ac_file" >&5 35114echo "$as_me: creating $ac_file" >&6;} 35115 fi 35116 35117 case $ac_tag in 35118 *:-:* | *:-) cat >"$tmp/stdin";; 35119 esac 35120 ;; 35121 esac 35122 35123 ac_dir=`$as_dirname -- "$ac_file" || 35124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35125 X"$ac_file" : 'X\(//\)[^/]' \| \ 35126 X"$ac_file" : 'X\(//\)$' \| \ 35127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 35128echo X"$ac_file" | 35129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35130 s//\1/ 35131 q 35132 } 35133 /^X\(\/\/\)[^/].*/{ 35134 s//\1/ 35135 q 35136 } 35137 /^X\(\/\/\)$/{ 35138 s//\1/ 35139 q 35140 } 35141 /^X\(\/\).*/{ 35142 s//\1/ 35143 q 35144 } 35145 s/.*/./; q'` 35146 { as_dir="$ac_dir" 35147 case $as_dir in #( 35148 -*) as_dir=./$as_dir;; 35149 esac 35150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 35151 as_dirs= 35152 while :; do 35153 case $as_dir in #( 35154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 35155 *) as_qdir=$as_dir;; 35156 esac 35157 as_dirs="'$as_qdir' $as_dirs" 35158 as_dir=`$as_dirname -- "$as_dir" || 35159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35160 X"$as_dir" : 'X\(//\)[^/]' \| \ 35161 X"$as_dir" : 'X\(//\)$' \| \ 35162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35163echo X"$as_dir" | 35164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35165 s//\1/ 35166 q 35167 } 35168 /^X\(\/\/\)[^/].*/{ 35169 s//\1/ 35170 q 35171 } 35172 /^X\(\/\/\)$/{ 35173 s//\1/ 35174 q 35175 } 35176 /^X\(\/\).*/{ 35177 s//\1/ 35178 q 35179 } 35180 s/.*/./; q'` 35181 test -d "$as_dir" && break 35182 done 35183 test -z "$as_dirs" || eval "mkdir $as_dirs" 35184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 35185echo "$as_me: error: cannot create directory $as_dir" >&2;} 35186 { (exit 1); exit 1; }; }; } 35187 ac_builddir=. 35188 35189case "$ac_dir" in 35190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 35191*) 35192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 35193 # A ".." for each directory in $ac_dir_suffix. 35194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 35195 case $ac_top_builddir_sub in 35196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 35197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 35198 esac ;; 35199esac 35200ac_abs_top_builddir=$ac_pwd 35201ac_abs_builddir=$ac_pwd$ac_dir_suffix 35202# for backward compatibility: 35203ac_top_builddir=$ac_top_build_prefix 35204 35205case $srcdir in 35206 .) # We are building in place. 35207 ac_srcdir=. 35208 ac_top_srcdir=$ac_top_builddir_sub 35209 ac_abs_top_srcdir=$ac_pwd ;; 35210 [\\/]* | ?:[\\/]* ) # Absolute name. 35211 ac_srcdir=$srcdir$ac_dir_suffix; 35212 ac_top_srcdir=$srcdir 35213 ac_abs_top_srcdir=$srcdir ;; 35214 *) # Relative name. 35215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 35216 ac_top_srcdir=$ac_top_build_prefix$srcdir 35217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 35218esac 35219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 35220 35221 35222 case $ac_mode in 35223 :F) 35224 # 35225 # CONFIG_FILE 35226 # 35227 35228 case $INSTALL in 35229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35231 esac 35232_ACEOF 35233 35234cat >>$CONFIG_STATUS <<\_ACEOF 35235# If the template does not know about datarootdir, expand it. 35236# FIXME: This hack should be removed a few years after 2.60. 35237ac_datarootdir_hack=; ac_datarootdir_seen= 35238 35239case `sed -n '/datarootdir/ { 35240 p 35241 q 35242} 35243/@datadir@/p 35244/@docdir@/p 35245/@infodir@/p 35246/@localedir@/p 35247/@mandir@/p 35248' $ac_file_inputs` in 35249*datarootdir*) ac_datarootdir_seen=yes;; 35250*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35251 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35252echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35253_ACEOF 35254cat >>$CONFIG_STATUS <<_ACEOF 35255 ac_datarootdir_hack=' 35256 s&@datadir@&$datadir&g 35257 s&@docdir@&$docdir&g 35258 s&@infodir@&$infodir&g 35259 s&@localedir@&$localedir&g 35260 s&@mandir@&$mandir&g 35261 s&\\\${datarootdir}&$datarootdir&g' ;; 35262esac 35263_ACEOF 35264 35265# Neutralize VPATH when `$srcdir' = `.'. 35266# Shell code in configure.ac might set extrasub. 35267# FIXME: do we really want to maintain this feature? 35268cat >>$CONFIG_STATUS <<_ACEOF 35269 sed "$ac_vpsub 35270$extrasub 35271_ACEOF 35272cat >>$CONFIG_STATUS <<\_ACEOF 35273:t 35274/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35275s&@configure_input@&$configure_input&;t t 35276s&@top_builddir@&$ac_top_builddir_sub&;t t 35277s&@srcdir@&$ac_srcdir&;t t 35278s&@abs_srcdir@&$ac_abs_srcdir&;t t 35279s&@top_srcdir@&$ac_top_srcdir&;t t 35280s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35281s&@builddir@&$ac_builddir&;t t 35282s&@abs_builddir@&$ac_abs_builddir&;t t 35283s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35284s&@INSTALL@&$ac_INSTALL&;t t 35285$ac_datarootdir_hack 35286" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 35287 35288test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 35290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 35291 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35292which seems to be undefined. Please make sure it is defined." >&5 35293echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35294which seems to be undefined. Please make sure it is defined." >&2;} 35295 35296 rm -f "$tmp/stdin" 35297 case $ac_file in 35298 -) cat "$tmp/out"; rm -f "$tmp/out";; 35299 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 35300 esac 35301 ;; 35302 :H) 35303 # 35304 # CONFIG_HEADER 35305 # 35306_ACEOF 35307 35308# Transform confdefs.h into a sed script `conftest.defines', that 35309# substitutes the proper values into config.h.in to produce config.h. 35310rm -f conftest.defines conftest.tail 35311# First, append a space to every undef/define line, to ease matching. 35312echo 's/$/ /' >conftest.defines 35313# Then, protect against being on the right side of a sed subst, or in 35314# an unquoted here document, in config.status. If some macros were 35315# called several times there might be several #defines for the same 35316# symbol, which is useless. But do not sort them, since the last 35317# AC_DEFINE must be honored. 35318ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 35319# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 35320# NAME is the cpp macro being defined, VALUE is the value it is being given. 35321# PARAMS is the parameter list in the macro definition--in most cases, it's 35322# just an empty string. 35323ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 35324ac_dB='\\)[ (].*,\\1define\\2' 35325ac_dC=' ' 35326ac_dD=' ,' 35327 35328uniq confdefs.h | 35329 sed -n ' 35330 t rset 35331 :rset 35332 s/^[ ]*#[ ]*define[ ][ ]*// 35333 t ok 35334 d 35335 :ok 35336 s/[\\&,]/\\&/g 35337 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 35338 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 35339 ' >>conftest.defines 35340 35341# Remove the space that was appended to ease matching. 35342# Then replace #undef with comments. This is necessary, for 35343# example, in the case of _POSIX_SOURCE, which is predefined and required 35344# on some systems where configure will not decide to define it. 35345# (The regexp can be short, since the line contains either #define or #undef.) 35346echo 's/ $// 35347s,^[ #]*u.*,/* & */,' >>conftest.defines 35348 35349# Break up conftest.defines: 35350ac_max_sed_lines=50 35351 35352# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 35353# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 35354# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 35355# et cetera. 35356ac_in='$ac_file_inputs' 35357ac_out='"$tmp/out1"' 35358ac_nxt='"$tmp/out2"' 35359 35360while : 35361do 35362 # Write a here document: 35363 cat >>$CONFIG_STATUS <<_ACEOF 35364 # First, check the format of the line: 35365 cat >"\$tmp/defines.sed" <<\\CEOF 35366/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 35367/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 35368b 35369:def 35370_ACEOF 35371 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 35372 echo 'CEOF 35373 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 35374 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 35375 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 35376 grep . conftest.tail >/dev/null || break 35377 rm -f conftest.defines 35378 mv conftest.tail conftest.defines 35379done 35380rm -f conftest.defines conftest.tail 35381 35382echo "ac_result=$ac_in" >>$CONFIG_STATUS 35383cat >>$CONFIG_STATUS <<\_ACEOF 35384 if test x"$ac_file" != x-; then 35385 echo "/* $configure_input */" >"$tmp/config.h" 35386 cat "$ac_result" >>"$tmp/config.h" 35387 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 35388 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 35389echo "$as_me: $ac_file is unchanged" >&6;} 35390 else 35391 rm -f $ac_file 35392 mv "$tmp/config.h" $ac_file 35393 fi 35394 else 35395 echo "/* $configure_input */" 35396 cat "$ac_result" 35397 fi 35398 rm -f "$tmp/out12" 35399 ;; 35400 35401 35402 esac 35403 35404done # for ac_tag 35405 35406 35407{ (exit 0); exit 0; } 35408_ACEOF 35409chmod +x $CONFIG_STATUS 35410ac_clean_files=$ac_clean_files_save 35411 35412 35413# configure is writing to config.log, and then calls config.status. 35414# config.status does its own redirection, appending to config.log. 35415# Unfortunately, on DOS this fails, as config.log is still kept open 35416# by configure, so config.status won't be able to write to it; its 35417# output is simply discarded. So we exec the FD to /dev/null, 35418# effectively closing config.log, so it can be properly (re)opened and 35419# appended to by config.status. When coming back to configure, we 35420# need to make the FD available again. 35421if test "$no_create" != yes; then 35422 ac_cs_success=: 35423 ac_config_status_args= 35424 test "$silent" = yes && 35425 ac_config_status_args="$ac_config_status_args --quiet" 35426 exec 5>/dev/null 35427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35428 exec 5>>config.log 35429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35430 # would make configure fail if this is the last instruction. 35431 $ac_cs_success || { (exit 1); exit 1; } 35432fi 35433 35434 35435# Tell Emacs to edit this file in shell mode. 35436# Local Variables: 35437# mode: sh 35438# End: 35439